PageSourceSearch

https://thenewyou.vercel.app/_next/static/chunks/pages/_app-afa2ea…?dpl=dpl_Bh8wAGPt1Hxof2WnUpwu7jV4XXaA

js thenewyou.vercel.app collected 2026-10-03 07:52:17 UTC 1,106,024 bytes, 36 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{95852:(e,t,r)=>{"use strict";r.d(t,{A:()=>$});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++}
vendor: 6,787 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,s=Object.assign;function a(e,t,r){return e.replace(t,r)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,r){return e.slice(t,r)}function h(e){return e.length}function d(e,t){return t.push(e),e}var f=1,p=1,m=0,g=0,y=0,v="";function b(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:f,column:p,length:s,return:""}}function w(e,t){return s(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return y=g<m?u(v,g++):0,p++,10===y&&(p=1,f++),y}function _(){return u(v,g)}function E(e){switch(e){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 S(e){return f=p=1,m=h(v=e),g=0,[]}function T(e){var t,r;return(t=g-1,r=function e(t){for(;x();)switch(y){case t:return g;case 34:case 39:34!==t&&39!==t&&e(y);break;case 40:41===t&&e(t);break;case 92:x()}return g}(91===e?e+2:40===e?e+1:e),c(v,t,r)).trim()}var k="-ms-",A="-moz-",C="-webkit-",I="comm",P="rule",R="decl",O="@keyframes";function M(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function N(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case R:return e.return=e.return||e.value;case I:return"";case O:return e.return=e.value+"{"+M(e.children,n)+"}";case P:e.value=e.props.join(",")}return h(r=M(e.children,n))?e.return=e.value+"{"+r+"}":""}function L(e,t,r,n,o,s,l,u,h,d,f){for(var p=o-1,m=0===o?s:[""],g=m.length,y=0,v=0,w=0;y<n;++y)for(var x=0,_=c(e,p+1,p=i(v=l[y])),E=e;x<g;++x)(E=(v>0?m[x]+" "+_:a(_,/&\f/g,m[x])).trim())&&(h[w++]=E);return b(e,t,r,0===o?P:u,h,d,f)}function D(e,t,r,n){return b(e,t,r,R,c(e,0,n),c(e,n+1,-1),n)}var j=function(e,t,r){for(var n=0,i=0;n=i,i=_(),38===n&&12===i&&(t[r]=1),!E(i);)x();return c(v,e,g)},V=function(e,t){var r=-1,n=44;do switch(E(n)){case 0:38===n&&12===_()&&(t[r]=1),e[r]+=j(g-1,t,r);break;case 2:e[r]+=T(n);break;case 4:if(44===n){e[++r]=58===_()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=x());return e},F=function(e,t){var r;return r=V(S(e),t),v="",r},U=new WeakMap,B=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||U.get(r))&&!n){U.set(e,!0);for(var i=[],o=F(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},z=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},H=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case R:e.return=function e(t,r){switch(45^u(t,0)?(((r<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return C+"print-"+t+t;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 C+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return C+t+A+t+k+t+t;case 6828:case 4268:return C+t+k+t+t;case 6165:return C+t+k+"flex-"+t+t;case 5187:return C+t+a(t,/(\w+).+(:[^]+)/,C+"box-$1$2"+k+"flex-$1$2")+t;case 5443:return C+t+k+"flex-item-"+a(t,/flex-|-self/,"")+t;case 4675:return C+t+k+"flex-line-pack"+a(t,/align-content|flex-|-self/,"")+t;case 5548:return C+t+k+a(t,"shrink","negative")+t;case 5292:return C+t+k+a(t,"basis","preferred-size")+t;case 6060:return C+"box-"+a(t,"-grow","")+C+t+k+a(t,"grow","positive")+t;case 4554:return C+a(t,/([^-])(transform)/g,"$1"+C+"$2")+t;case 6187:return a(a(a(t,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),t,"")+t;case 5495:case 3959:return a(t,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return a(a(t,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+t+t;case 4095:case 3583:case 4068:case 2532:return a(t,/(.+)-inline(.+)/,C+"$1$2")+t;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(h(t)-1-r>6)switch(u(t,r+1)){case 109:if(45!==u(t,r+4))break;case 102:return a(t,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+A+(108==u(t,r+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(a(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==u(t,r+1))break;case 6444:switch(u(t,h(t)-3-(~l(t,"!important")&&10))){case 107:return a(t,":",":"+C)+t;case 101:return a(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+C+(45===u(t,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+k+"$2box$3")+t}break;case 5936:switch(u(t,r+11)){case 114:return C+t+k+a(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return C+t+k+a(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return C+t+k+a(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return C+t+k+t+t}return t}(e.value,e.length);break;case O:return M([w(e,{value:a(e.value,"@","@"+C)})],n);case P:if(e.length){var i,o;return i=e.props,o=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return M([w(e,{props:[a(t,/:(read-\w+)/,":"+A+"$1")]})],n);case"::placeholder":return M([w(e,{props:[a(t,/:(plac\w+)/,":"+C+"input-$1")]}),w(e,{props:[a(t,/:(plac\w+)/,":"+A+"$1")]}),w(e,{props:[a(t,/:(plac\w+)/,k+"input-$1")]})],n)}return""},i.map(o).join("")}}}],$=function(e){var t,r,i,s,m,w,k=e.key;if("css"===k){var A=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(A,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var C=e.stylisPlugins||H,P={},R=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+k+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)P[t[r]]=!0;R.push(e)});var O=(r=(t=[B,z].concat(C,[N,(i=function(e){w.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,n,i,o){for(var s="",a=0;a<r;a++)s+=t[a](e,n,i,o)||"";return s}),j=function(e){var t,r;return M((r=function e(t,r,n,i,s,m,w,S,k){for(var A,C=0,P=0,R=w,O=0,M=0,N=0,j=1,V=1,F=1,U=0,B="",z=s,H=m,$=i,W=B;V;)switch(N=U,U=x()){case 40:if(108!=N&&58==u(W,R-1)){-1!=l(W+=a(T(U),"&","&\f"),"&\f")&&(F=-1);break}case 34:case 39:case 91:W+=T(U);break;case 9:case 10:case 13:case 32:W+=function(e){for(;y=_();)if(y<33)x();else break;return E(e)>2||E(y)>3?"":" "}(N);break;case 92:W+=function(e,t){for(var r;--t&&x()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>
170)||!(y<97)););return r=g+(t<6&&32==_()&&32==x()),c(v,e,r)}(g-1,7);continue;case 47:switch(_()){case 42:case 47:d(b(A=function(e,t){for(;x();)if(e+y===57)break;else if(e+y===84&&47===_())break;return"/*"+c(v,t,g-1)+"*"+o(47===e?e:x())}(x(),g),r,n,I,o(y),c(A,2,-2),0),k);break;default:W+="/"}break;case 123*j:S[C++]=h(W)*F;case 125*j:case 59:case 0:switch(U){case 0:case 125:V=0;case 59+P:-1==F&&(W=a(W,/\f/g,"")),M>0&&h(W)-R&&d(M>32?D(W+";",i,n,R-1):D(a(W," ","")+";",i,n,R-2),k);break;case 59:W+=";";default:if(d($=L(W,r,n,C,P,s,S,B,z=[],H=[],R),m),123===U){if(0===P)e(W,r,$,$,z,m,R,S,H);else switch(99===O&&110===u(W,3)?100:O){case 100:case 108:case 109:case 115:e(t,$,$,i&&d(L(t,$,$,0,0,s,S,B,s,z=[],R),H),s,H,R,S,i?z:H);break;default:e(W,$,$,$,[""],H,0,S,H)}}}C=P=M=0,j=F=1,B=W="",R=w;break;case 58:R=1+h(W),M=N;default:if(j<1){if(123==U)--j;else if(125==U&&0==j++&&125==(y=g>0?u(v,--g):0,p--,10===y&&(p=1,f--),y))continue}switch(W+=o(U),U*j){case 38:F=P>0?1:(W+="\f",-1);break;case 44:S[C++]=(h(W)-1)*F,F=1;break;case 64:45===_()&&(W+=T(x())),O=_(),P=R=h(B=W+=function(e){for(;!E(_());)x();return c(v,e,g)}(g)),U++;break;case 45:45===N&&2==h(W)&&(j=0)}}return m}("",null,null,null,[""],t=S(t=e),0,[0],t),v="",r),O)};m=function(e,t,r,n){w=r,j(e?e+"{"+t.styles+"}":t.styles),n&&(V.inserted[t.name]=!0)};var V={key:k,sheet:new n({key:k,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:m};return V.sheet.hydrate(R),V}},36289:(e,t,r)=>{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},24684:(e,t,r)=>{"use strict";r.d(t,{E:()=>m,T:()=>c,c:()=>f,h:()=>h,w:()=>u});var n=r(96540),i=r(95852),o=r(30041),s=r(46255),a=r(71287),l=n.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null);l.Provider;var u=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(l),r)})},c=n.createContext({}),h={}.hasOwnProperty,d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var r={};for(var n in t)h.call(t,n)&&(r[n]=t[n]);return r[d]=e,r},p=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,o.SF)(t,r,n),(0,a.s)(function(){return(0,o.sk)(t,r,n)}),null},m=u(function(e,t,r){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var a=e[d],l=[i],u="";"string"==typeof e.className?u=(0,o.Rk)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var f=(0,s.J)(l,void 0,n.useContext(c));u+=t.key+"-"+f.name;var m={};for(var g in e)h.call(e,g)&&"css"!==g&&g!==d&&(m[g]=e[g]);return m.className=u,r&&(m.ref=r),n.createElement(n.Fragment,null,n.createElement(p,{cache:t,serialized:f,isStringTag:"string"==typeof a}),n.createElement(a,m))})},17437:(e,t,r)=>{"use strict";r.d(t,{AH:()=>c,i7:()=>h,mL:()=>u});var n=r(24684),i=r(96540),o=r(30041),s=r(71287),a=r(46255);r(95852),r(4146);var l=function(e,t){var r=arguments;if(null==t||!n.h.call(t,"css"))return i.createElement.apply(void 0,r);var o=r.length,s=Array(o);s[0]=n.E,s[1]=(0,n.c)(e,t);for(var a=2;a<o;a++)s[a]=r[a];return i.createElement.apply(null,s)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var u=(0,n.w)(function(e,t){var r=e.styles,l=(0,a.J)([r],void 0,i.useContext(n.T)),u=i.useRef();return(0,s.i)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),u.current=[r,n],function(){r.flush()}},[t]),(0,s.i)(function(){var e=u.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)},[t,l.name]),null});function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.J)(t)}function h(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},46255:(e,t,r)=>{"use strict";r.d(t,{J:()=>p});var n,i={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,msGr
1idRow: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},o=r(36289),s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.A)(function(e){return l(e)?e:e.replace(s,"-$&").toLowerCase()}),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=d(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":u(s)&&(n+=c(o)+":"+h(o,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var a=0;a<s.length;a++)u(s[a])&&(n+=c(o)+":"+h(o,s[a])+";");else{var l=d(e,t,s);switch(o){case"animation":case"animationName":n+=c(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,s=r(e);return n=o,d(e,t,s)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var f=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,s="";n=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,s+=d(r,t,a)):s+=a[0];for(var l=1;l<e.length;l++)s+=d(r,t,e[l]),o&&(s+=a[l]);f.lastIndex=0;for(var u="";null!==(i=f.exec(s));)u+="-"+i[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(s)+u,styles:s,next:n}}},71287:(e,t,r)=>{"use strict";r.d(t,{i:()=>a,s:()=>s});var n,i=r(96540),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,s=o||function(e){return e()},a=o||i.useLayoutEffect},30041:(e,t,r)=>{"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}r.d(t,{Rk:()=>n,SF:()=>i,sk:()=>o});var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},11072:(e,t,r)=>{"use strict";r.d(t,{cY:()=>w,FA:()=>O,g:()=>R,u:()=>h,Uj:()=>c,Fy:()=>x,tD:()=>F,bD:()=>function e(t,r){if(t===r)return!0;let n=Object.keys(t),i=Object.keys(r);for(let o of n){if(!i.includes(o))return!1;let n=t[o],s=r[o];if(L(n)&&L(s)){if(!e(n,s))return!1}else if(n!==s)return!1}for(let e of i)if(!n.includes(e))return!1;return!0},hp:()=>V,T9:()=>v,Tj:()=>g,yU:()=>y,XA:()=>b,Ku:()=>z,ZQ:()=>_,sr:()=>T,c1:()=>S,Im:()=>N,lT:()=>A,zW:()=>I,jZ:()=>E,lV:()=>k,nr:()=>C,Am:()=>D,I9:()=>j,eX:()=>P});let n=()=>void 0;var i=r(77836);let o=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},s=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let o=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){let o=((7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(o>>10)),t[n++]=String.fromCharCode(56320+(1023&o))}else{let o=e[r++],s=e[r++];
1t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")},a={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){let i=e[t],o=t+1<e.length,s=o?e[t+1]:0,a=t+2<e.length,l=a?e[t+2]:0,u=i>>2,c=(3&i)<<4|s>>4,h=(15&s)<<2|l>>6,d=63&l;a||(d=64,o||(h=64)),n.push(r[u],r[c],r[h],r[d])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(o(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):s(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){let i=r[e.charAt(t++)],o=t<e.length?r[e.charAt(t)]:0,s=++t<e.length?r[e.charAt(t)]:64,a=++t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==o||null==s||null==a)throw new l;let u=i<<2|o>>4;if(n.push(u),64!==s){let e=o<<4&240|s>>2;if(n.push(e),64!==a){let e=s<<6&192|a;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class l extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let u=function(e){let t=o(e);return a.encodeByteArray(t,!0)},c=function(e){return u(e).replace(/\./g,"")},h=function(e){try{return a.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},d=()=>(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,f=()=>{if(void 0===i||void 0===i.env)return;let e=i.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},p=()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&h(e[1]);return t&&JSON.parse(t)},m=()=>{try{return n()||d()||f()||p()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},g=e=>{var t,r;return null===(r=null===(t=m())||void 0===t?void 0:t.emulatorHosts)||void 0===r?void 0:r[e]},y=e=>{let t=g(e);if(!t)return;let r=t.lastIndexOf(":");if(r<=0||r+1===t.length)throw Error(`Invalid host ${t} with no separate hostname and port!`);let n=parseInt(t.substring(r+1),10);return"["===t[0]?[t.substring(1,r-1),n]:[t.substring(0,r),n]},v=()=>{var e;return null===(e=m())||void 0===e?void 0:e.config},b=e=>{var t;return null===(t=m())||void 0===t?void 0:t[`_${e}`]};class w{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function x(e,t){if(e.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let r=t||"demo-project",n=e.iat||0,i=e.sub||e.user_id;if(!i)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:n,exp:n+3600,auth_time:n,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[c(JSON.stringify({alg:"none",type:"JWT"})),c(JSON.stringify(o)),""].join(".")}function _(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function E(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(_())}function S(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function T(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function k(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function A(){let e=_();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function C(){return!function(){var e;let t=null===(e=m())||void 0===e?void 0:e.forceEnvironment;if("node"===t)return!0;
1if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(r.g.process)}catch(e){return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function I(){try{return"object"==typeof indexedDB}catch(e){return!1}}function P(){return new Promise((e,t)=>{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}})}class R extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,R.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,O.prototype.create)}}class O{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){let r=t[0]||{},n=`${this.service}/${e}`,i=this.errors[e],o=i?i.replace(M,(e,t)=>{let n=r[t];return null!=n?String(n):`<${t}?>`}):"Error",s=`${this.serviceName}: ${o} (${n}).`;return new R(n,s,r)}}let M=/\{\$([^}]+)}/g;function N(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function L(e){return null!==e&&"object"==typeof e}function D(e){let t=[];for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.push(encodeURIComponent(r)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return t.length?"&"+t.join("&"):""}function j(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[r,n]=e.split("=");
1t[decodeURIComponent(r)]=decodeURIComponent(n)}}),t}function V(e){let t=e.indexOf("?");if(!t)return"";let r=e.indexOf("#",t);return e.substring(t,r>0?r:void 0)}function F(e,t){let r=new U(e,t);return r.subscribe.bind(r)}class U{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let n;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:r}:e).next&&(n.next=B),void 0===n.error&&(n.error=B),void 0===n.complete&&(n.complete=B);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(e){}}),this.observers.push(n),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function B(){}function z(e){return e&&e._delegate?e._delegate:e}},39940:(e,t,r)=>{"use strict";r.d(t,{A:()=>o}),r(96540);var n=r(17437),i=r(74848);function o(e){let{styles:t,defaultTheme:r={}}=e,o="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,i.jsx)(n.mL,{styles:o})}},87806:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>y,HX:()=>v,tT:()=>w});var n=r(58168),i=r(24684),o=r(46255),s=r(71287),a=r(30041),l=r(96540),u=r(36289),c=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|playsInline|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|colorRen
1dering|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)-.*))$/,h=(0,u.A)(function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),d=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:d},p=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},m=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,a.SF)(t,r,n),(0,s.s)(function(){return(0,a.sk)(t,r,n)}),null},g=(function e(t,r){var s,u,c=t.__emotion_real===t,h=c&&t.__emotion_base||t;void 0!==r&&(s=r.label,u=r.target);var d=p(t,r,c),g=d||f(h),y=!g("as");return function(){var v=arguments,b=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==s&&b.push("label:"+s+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{var w=v[0];b.push(w[0]);for(var x=v.length,_=1;_<x;_++)b.push(v[_],w[_])}var E=(0,i.w)(function(e,t,r){var n=y&&e.as||h,s="",c=[],p=e;if(null==e.theme){for(var v in p={},e)p[v]=e[v];p.theme=l.useContext(i.T)}"string"==typeof e.className?s=(0,a.Rk)(t.registered,c,e.className):null!=e.className&&(s=e.className+" ");var w=(0,o.J)(b.concat(c),t.registered,p);s+=t.key+"-"+w.name,void 0!==u&&(s+=" "+u);var x=y&&void 0===d?f(n):g,_={};for(var E in e)(!y||"as"!==E)&&x(E)&&(_[E]=e[E]);return _.className=s,r&&(_.ref=r),l.createElement(l.Fragment,null,l.createElement(m,{cache:t,serialized:w,isStringTag:"string"==typeof n}),l.createElement(n,_))});return E.displayName=void 0!==s?s:"Styled("+("string"==typeof h?h:h.displayName||h.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=h,E.__emotion_styles=b,E.__emotion_forwardProp=d,Object.defineProperty(E,"toString",{value:function(){return"."+u}}),E.withComponent=function(t,i){return e(t,(0,n.A)({},r,i,{shouldForwardProp:p(E,i,!0)})).apply(void 0,b)},E}}).bind(null);function y(e,t){return g(e,t)}function v(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){g[e]=g(e)});let b=[];function w(e){return b[0]=e,(0,o.J)(b)}},72221:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,b:()=>a});var n=r(96540),i=r(47379),o=r(74848);let s=n.createContext(void 0);function a({props:e,name:t}){return function(e){let{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;let o=t.components[r];return o.defaultProps?(0,i.A)(o.defaultProps,n):o.styleOverrides||o.variants?n:(0,i.A)(o,n)}({props:e,name:t,theme:{components:n.useContext(s)}})}let l=function({value:e,children:t}){return(0,o.jsx)(s.Provider,{value:e,children:t})}},73788:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,I:()=>s});var n=r(96540),i=r(74848);let o=n.createContext(),s=()=>n.useContext(o)??!1,a=function({value:e,...t}){return(0,i.jsx)(o.Provider,{value:e??!0,...t})}},89499:(e,t,r)=>{"use strict";r.d(t,{EU:()=>l,NI:()=>a,vf:()=>u,zu:()=>i});var n=r(76171);let i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`},s={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:i[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function a(e,t,r){let a=e.theme||{};if(Array.isArray(t)){let e=a.breakpoints||o;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){let e=a.breakpoints||o;return Object.keys(t).reduce((o,l)=>{if((0,n.ob)(e.keys,l)){let e=(0,n.CT)(a.containerQueries?a:s,l);e&&(o[e]=r(t[l],l))}else Object.keys(e.values||i).includes(l)?o[e.up(l)]=r(t[l],l):o[l]=t[l];return o},{})}return r(t)}function l(e={}){return e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{})||{}}function u(e,t){return e.reduce((e,t)=>
1{let r=e[t];return r&&0!==Object.keys(r).length||delete e[t],e},t)}},74136:(e,t,r)=>{"use strict";r.d(t,{X4:()=>d,e$:()=>p,rP:()=>o,tL:()=>v,eM:()=>h,YL:()=>u,a:()=>g,Cg:()=>f,Me:()=>a,Nd:()=>m,Y9:()=>b,j4:()=>y,X0:()=>l});var n=r(89453);function i(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function o(e){let t;if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),i=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw Error((0,n.A)(9,e));let s=e.substring(r+1,e.length-1);if("color"===i){if(t=(s=s.split(" ")).shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(t))throw Error((0,n.A)(10,t))}else s=s.split(",");return{type:i,values:s=s.map(e=>parseFloat(e)),colorSpace:t}}let s=e=>{let t=o(e);return t.values.slice(0,3).map((e,r)=>t.type.includes("hsl")&&0!==r?`${e}%`:e).join(" ")},a=(e,t)=>{try{return s(e)}catch(t){return e}};function l(e){let{type:t,colorSpace:r}=e,{values:n}=e;return t.includes("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=t.includes("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function u(e){let{values:t}=e=o(e),r=t[0],n=t[1]/100,i=t[2]/100,s=n*Math.min(i,1-i),a=(e,t=(e+r/30)%12)=>i-s*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}function c(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(u(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){let r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function d(e,t){return e=o(e),t=i(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)}function f(e,t,r){try{return d(e,t)}catch(t){return e}}function p(e,t){if(e=o(e),t=i(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return l(e)}function m(e,t,r){try{return p(e,t)}catch(t){return e}}function g(e,t){if(e=o(e),t=i(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return l(e)}function y(e,t,r){try{return g(e,t)}catch(t){return e}}function v(e,t=.15){return c(e)>.5?p(e,t):g(e,t)}function b(e,t,r){try{return v(e,t)}catch(t){return e}}},28351:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d});var n=r(87806),i=r(11317),o=r(42370),s=r(33571),a=r(47118);let l=(0,o.A)();function u(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function c(e,t){let r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>c(e,t));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=r.style;else{let{variants:e,...n}=r;t=n}return h(e,r.variants,[t])}return r?.isProcessed?r.style:r}function h(e,t,r=[]){let n;e:for(let i=0;i<t.length;i+=1){let o=t[i];if("function"==typeof o.props){if(n??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(n))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue e;"function"==typeof o.style?(n??={...e,...e.ownerState,ownerState:e.ownerState},r.push(o.style(n))):r.push(o.style)}return r}function d(e={}){let{themeId:t,defaultTheme:r=l,rootShouldForwardProp:o=u,slotShouldForwardProp:f=u}=e;function p(e){e.theme=!function(e){for(let t in e)return!1;return!0}(e.theme)?e.theme[t]||e.theme:r}return(e,t={})=>{var r;(0,n.HX)(e,e=>e.filter(e=>e!==s.A));
1let{name:l,slot:d,skipVariantsResolver:m,skipSx:g,overridesResolver:y=(r=d?d.charAt(0).toLowerCase()+d.slice(1):d)?(e,t)=>t[r]:null,...v}=t,b=void 0!==m?m:d&&"Root"!==d&&"root"!==d||!1,w=g||!1,x=u;"Root"===d||"root"===d?x=o:d?x=f:"string"==typeof e&&e.charCodeAt(0)>96&&(x=void 0);let _=(0,n.Ay)(e,{shouldForwardProp:x,label:void 0,...v}),E=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return c(t,e)};if((0,i.Q)(e)){let t=(0,a.A)(e);return t.variants?function(e){return c(e,t)}:t.style}return e},S=(...t)=>{let r=[],n=t.map(E),i=[];if(r.push(p),l&&y&&i.push(function(e){let t=e.theme,r=t.components?.[l]?.styleOverrides;if(!r)return null;let n={};for(let t in r)n[t]=c(e,r[t]);return y(e,n)}),l&&!b&&i.push(function(e){let t=e.theme,r=t?.components?.[l]?.variants;return r?h(e,r):null}),w||i.push(s.A),Array.isArray(n[0])){let e;let t=n.shift(),o=Array(r.length).fill(""),s=Array(i.length).fill("");(e=[...o,...t,...s]).raw=[...o,...t.raw,...s],r.unshift(e)}let o=_(...r,...n,...i);return e.muiName&&(o.muiName=e.muiName),o};return _.withConfig&&(S.withConfig=_.withConfig),S}}},16955:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(52308);function i(e=8,t=(0,n.LX)({spacing:e})){if(e.mui)return e;let r=(...e)=>(0===e.length?[1]:e).map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}},42370:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(11317);let i=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};var o=r(76171);let s={borderRadius:4};var a=r(16955),l=r(33571),u=r(52957);function c(e,t){if(this.vars){if(!this.colorSchemes?.[e]||"function"!=typeof this.getColorSchemeSelector)return{};let r=this.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return this.palette.mode===e?t:{}}let h=function(e={},...t){let{breakpoints:r={},palette:h={},spacing:d,shape:f={},...p}=e,m=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,s=i(t),a=Object.keys(s);function l(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function u(e){let i="number"==typeof t[e]?t[e]:e;return`@media (max-width:${i-n/100}${r})`}function c(e,i){let o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-n/100}${r})`}return{keys:a,values:s,up:l,down:u,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){let t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?u(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r,...o}}(r),g=(0,a.A)(d),y=(0,n.A)({breakpoints:m,direction:"ltr",components:{},palette:{mode:"light",...h},spacing:g,shape:{...s,...f}},p);return(y=(0,o.Ay)(y)).applyStyles=c,(y=t.reduce((e,t)=>(0,n.A)(e,t),y)).unstable_sxConfig={...u.A,...p?.unstable_sxConfig},y.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},y}},76171:(e,t,r)=>{"use strict";function n(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{let r=/min-width:\s*([0-9.]+)/;return+(e.match(r)?.[1]||0)-+(t.match(r)?.[1]||0)});return r.length?r.reduce((e,r)=>{let n=t[r];return delete e[r],e[r]=n,e},{...t}):t}function i(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function o(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;let[,n,i]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(o)}function s(e){let t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function r(r,n){r.up=(...r)=>t(e.breakpoints.up(...r),n),r.down=(...r)=>t(e.breakpoints.down(...r),n),r.between=(...r)=>t(e.breakpoints.between(...r),n),r.only=(...r)=>t(e.breakpoints.only(...r),n),r.not=(...r)=>{let i=t(e.breakpoints.not(...r),n);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}let n={},i=e=>(r(n,e),n);return r(i),{...e,containerQueries:i}}r.d(t,{Ay:()=>s,CT:()=>o,_S:()=>n,ob:()=>i})},87611:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(11317);let i=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},47118:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(87806);function i(e){let{variants:t,...r}=e,i={variants:t,style:(0,n.tT)(r),isProcessed:!0};
1return i.style===r||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=(0,n.tT)(e.style))}),i}},52308:(e,t,r)=>{"use strict";r.d(t,{LX:()=>p,MA:()=>f,_W:()=>m,Lc:()=>y,Ms:()=>v});var n=r(89499),i=r(93539),o=r(87611);let s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}let[t,r]=e.split(""),n=s[t],i=a[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]}),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],h=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...c,...h];function f(e,t,r,n){let o=(0,i.Yn)(e,t,!0)??r;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;let t=o[Math.abs(e)];return e>=0?t:"number"==typeof t?-t:`-${t}`}:"function"==typeof o?o:()=>void 0}function p(e){return f(e,"spacing",8,"spacing")}function m(e,t){return"string"==typeof t||null==t?t:e(t)}function g(e,t){let r=p(e.theme);return Object.keys(e).map(i=>(function(e,t,r,i){var o;if(!t.includes(r))return null;let s=(o=u(r),e=>o.reduce((t,r)=>(t[r]=m(i,e),t),{})),a=e[r];return(0,n.NI)(e,a,s)})(e,t,i,r)).reduce(o.A,{})}function y(e){return g(e,c)}function v(e){return g(e,h)}function b(e){return g(e,d)}y.propTypes={},y.filterProps=c,v.propTypes={},v.filterProps=h,b.propTypes={},b.filterProps=d},93539:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,BO:()=>s,Yn:()=>o});var n=r(13967),i=r(89499);function o(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function s(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:o(e,r)||n,t&&(i=t(i,n,e)),i}let a=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:a,transform:l}=e,u=e=>{if(null==e[t])return null;let u=e[t],c=o(e.theme,a)||{};return(0,i.NI)(e,u,e=>{let i=s(c,l,e);return(e===i&&"string"==typeof e&&(i=s(c,l,`${t}${"default"===e?"":(0,n.A)(e)}`,e)),!1===r)?i:{[r]:i}})};return u.propTypes={},u.filterProps=[t],u}},52957:(e,t,r)=>{"use strict";r.d(t,{A:()=>U});var n=r(52308),i=r(93539),o=r(87611);let s=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,o.A)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r};var a=r(89499);function l(e){return"number"!=typeof e?e:`${e}px solid`}function u(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}let c=u("border",l),h=u("borderTop",l),d=u("borderRight",l),f=u("borderBottom",l),p=u("borderLeft",l),m=u("borderColor"),g=u("borderTopColor"),y=u("borderRightColor"),v=u("borderBottomColor"),b=u("borderLeftColor"),w=u("outline",l),x=u("outlineColor"),_=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,a.NI)(e,e.borderRadius,e=>({borderRadius:(0,n._W)(t,e)}))}return null};_.propTypes={},_.filterProps=["borderRadius"],s(c,h,d,f,p,m,g,y,v,b,_,w,x);let E=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.MA)(e.theme,"spacing",8,"gap");return(0,a.NI)(e,e.gap,e=>({gap:(0,n._W)(t,e)}))}return null};E.propTypes={},E.filterProps=["gap"];let S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.MA)(e.theme,"spacing",8,"columnGap");return(0,a.NI)(e,e.columnGap,e=>({columnGap:(0,n._W)(t,e)}))}return null};S.propTypes={},S.filterProps=["columnGap"];let T=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.MA)(e.theme,"spacing",8,"rowGap");return(0,a.NI)(e,e.rowGap,e=>({rowGap:(0,n._W)(t,e)}))}return null};T.propTypes={},T.filterProps=["rowGap"];let k=(0,i.Ay)({prop:"gridColumn"}),A=(0,i.Ay)({prop:"gridRow"}),C=(0,i.Ay)({prop:"gridAutoFlow"}),I=(0,i.Ay)({prop:"gridAutoColumns"}),P=(0,i.Ay)({prop:"gridAutoRows"}),R=(0,i.Ay)({prop:"gridTemplateColumns"});function O(e,t){return"grey"===t?t:e}function M(e){return e<=1&&0!==e?`${100*e}%`:e}s(E,S,T,k,A,C,I,P,R,(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"})),s((0,i.Ay)({prop:"color",themeKey:"palette",transform:O}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:O}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:O}));let N=(0,i.Ay)({prop:"width",transform:M}),L=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,a.NI)(e,e.maxWidth,t=>{let r=e.theme?.breakpoints?.values?.[t]||a.zu[t];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:M(t)}}):null;L.filterProps=["maxWidth"];let D=(0,i.Ay)({prop:"minWidth",transform:M}),j=(0,i.Ay)({prop:"height",transform:M}),V=(0,i.Ay)({prop:"maxHeight",transform:M}),F=(0,i.Ay)({prop:"minHeight",transform:M});(0,i.Ay)({prop:"size",cssProperty:"width",transform:M}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:M}),s(N,L,D,j,V,F,(0,i.Ay)({prop:"boxSizing"}));let U={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_},color:{themeKey:"palette",transform:O},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:O},backgroundColor:{themeKey:"palette",transform:O},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms}
1,pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:E},rowGap:{style:T},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:M},maxWidth:{style:L},minWidth:{transform:M},height:{transform:M},maxHeight:{transform:M},minHeight:{transform:M},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},33571:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(13967),i=r(87611),o=r(93539),s=r(89499),a=r(76171),l=r(52957);let u=function(){function e(e,t,r,i){let a={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};let{cssProperty:u=e,themeKey:c,transform:h,style:d}=l;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};let f=(0,o.Yn)(r,c)||{};return d?d(a):(0,s.NI)(a,t,t=>{let r=(0,o.BO)(f,h,t);return(t===r&&"string"==typeof t&&(r=(0,o.BO)(f,h,`${e}${"default"===t?"":(0,n.A)(t)}`,t)),!1===u)?r:{[u]:r}})}return function t(r){let{sx:n,theme:o={}}=r||{};if(!n)return null;let u=o.unstable_sxConfig??l.A;function c(r){let n=r;if("function"==typeof r)n=r(o);else if("object"!=typeof r)return r;if(!n)return null;let l=(0,s.EU)(o.breakpoints),c=Object.keys(l),h=l;return Object.keys(n).forEach(r=>{var a;let l="function"==typeof(a=n[r])?a(o):a;if(null!=l){if("object"==typeof l){if(u[r])h=(0,i.A)(h,e(r,l,o,u));else{let e=(0,s.NI)({theme:o},l,e=>({[r]:e}));(function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)})(e,l)?h[r]=t({sx:l,theme:o}):h=(0,i.A)(h,e)}}else h=(0,i.A)(h,e(r,l,o,u))}}),(0,a._S)(o,(0,s.vf)(c,h))}return Array.isArray(n)?n.map(c):c(n)}}();u.filterProps=["sx"];let c=u},40973:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(42370),i=r(25463);let o=(0,n.A)(),s=function(e=o){return(0,i.A)(e)}},25463:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96540),i=r(24684);let o=function(e=null){let t=n.useContext(i.T);return t&&0!==Object.keys(t).length?t:e}},34388:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t,r){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...r}}}},13967:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(89453);function i(e){if("string"!=typeof e)throw Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},75659:(e,t,r)=>{"use strict";function n(e,t,r){let n={};for(let i in e){let o=e[i],s="",a=!0;for(let e=0;e<o.length;e+=1){let n=o[e];n&&(s+=(!0===a?"":" ")+t(n),a=!1,r&&r[n]&&(s+=" "+r[n]))}n[i]=s}return n}r.d(t,{A:()=>n})},74705:(e,t,r)=>{"use strict";function n(e,t=166){let r;function i(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return i.clear=()=>{clearTimeout(r)},i}r.d(t,{A:()=>n})},11317:(e,t,r)=>{"use strict";r.d(t,{A:()=>function e(t,r,s={clone:!0}){let a=s.clone?{...t}:t;return o(t)&&o(r)&&Object.keys(r).forEach(l=>{n.isValidElement(r[l])||(0,i.Hy)(r[l])?a[l]=r[l]:o(r[l])&&Object.prototype.hasOwnProperty.call(t,l)&&o(t[l])?a[l]=e(t[l],r[l],s):s.clone?a[l]=o(r[l])?function e(t){if(n.isValidElement(t)||(0,i.Hy)(t)||!o(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[l]):r[l]:a[l]=r[l]}),a},Q:()=>o});var n=r(96540),i=r(6774);function o(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},97340:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEac
1h(t=>{r[t]=e[t]}),r}},89453:(e,t,r)=>{"use strict";function n(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}r.d(t,{A:()=>n})},57936:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s});let n=e=>e,i=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})(),o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function s(e,t,r="Mui"){let n=o[t];return n?`${r}-${n}`:`${i.generate(e)}-${t}`}},38413:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(57936);function i(e,t,r="Mui"){let o={};return t.forEach(t=>{o[t]=(0,n.Ay)(e,t,r)}),o}},57223:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96540);function i(e){return parseInt(n.version,10)>=19?e?.props?.ref||null:e?.ref||null}},93205:(e,t,r)=>{"use strict";function n(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}r.d(t,{A:()=>n})},24899:(e,t,r)=>{"use strict";function n(e){try{return e.matches(":focus-visible")}catch(e){}return!1}r.d(t,{A:()=>n})},56099:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(34164),i=r(97340);let o=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t},s=function(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:s,externalForwardedProps:a,className:l}=e;if(!t){let e=(0,n.A)(r?.className,l,a?.className,s?.className),t={...r?.style,...a?.style,...s?.style},i={...r,...a,...s};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.A)({...a,...s}),c=o(s),h=o(a),d=t(u),f=(0,n.A)(d?.className,r?.className,l,a?.className,s?.className),p={...d?.style,...r?.style,...a?.style,...s?.style},m={...d,...r,...h,...c};return f.length>0&&(m.className=f),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:d.ref}}},32325:(e,t,r)=>{"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{A:()=>n})},44877:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(32325);function i(e){return(0,n.A)(e).defaultView||window}},56677:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t,r){return"function"==typeof e?e(t,r):e}},47379:(e,t,r)=>{"use strict";r.d(t,{A:()=>function e(t,r){let n={...r};for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)){if("components"===i||"slots"===i)n[i]={...t[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){let o=t[i],s=r[i];if(s){if(o)for(let t in n[i]={...s},o)Object.prototype.hasOwnProperty.call(o,t)&&(n[i][t]=e(o[t],s[t]));else n[i]=s}else n[i]=o||{}}else void 0===n[i]&&(n[i]=t[i])}return n}})},17365:(e,t,r)=>{"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{A:()=>n})},2501:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96540);function i({controlled:e,default:t,name:r,state:i="value"}){let{current:o}=n.useRef(void 0!==e),[s,a]=n.useState(t),l=n.useCallback(e=>{o||a(e)},[]);return[o?e:s,l]}},21529:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96540);let i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},71547:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96540),i=r(21529);let o=function(e){let t=n.useRef(e);return(0,i.A)(()=>{t.current=e}),n.useRef((...e)=>(0,t.current)(...e)).current}},31523:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96540),i=r(17365);function o(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,i.A)(e,t)})},e)}},34661:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n,i=r(96540);let o=0,s={...n||(n=r.t(i,2))}.useId;function a(e){if(void 0!==s){let t=s();return e??t}return function(e){let[t,r]=i.useState(e),n=e||t;return i.useEffect(()=>{null==t&&(o+=1,r(`mui-${o}`))},[t]),n}(e)}},72295:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96540);let i={};function o(e,t){let r=n.useRef(i);return r.current===i&&(r.current=e(t)),r}},58829:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(96540);let i=[];function o(e){n.useEffect(e,i)}},8299:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96540);let i=e=>{let t=n.useRef({});return n.useEffect(()=>{t.current=e}),t.current}},79329:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(31523),i=r(34388),o=r(56099),s=r(56677);let a=function(e){let{elementType:t,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:l=!1,...u}=e,c=l?{}:(0,s.A)(r,a),{props:h,internalRef:d}=(0,o.A)({...u,externalSlotProps:c}),f=(0,n.A)(d,c?.ref,e.additionalProps?.ref);return(0,i.A)(t,{...h,ref:f},a)}},88535:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,E:()=>o});var n=r(72295),i=r(58829);class o{static create(){return new o}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function s(){let e=(0,n.A)(o.create).current;return(0,i.A)(e.disposeEffect),e}},6774:(e,t)=>{"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal");var r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler");Symbol.for("react.provider");var o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===n||e===l||e===u||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===c||e.$$typeof===s||e.$$typeof===o||e.$$typeof===a||e.$$typeof===f||void 0!==e.getModuleId)}},22926:function(e,t,r){!function(e,t){"use strict";function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=i){var o=[],s=!0,a=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(a)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u,c,h,d,f,p={exports:{}};p.exports=(function(){if(f)return d;f=1;var e=h?c:(h=1,c="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function r(){}return r.resetWarningCache=t,d=function(){function n(t,r,n,i,o,s){if
1(s!==e){var a=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 a.name="Invariant Violation",a}}function i(){return n}n.isRequired=n;var o={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o}})()();var m=(u=p.exports)&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,g=function(e,r,n){var i=!!n,o=t.useRef(n);t.useEffect(function(){o.current=n},[n]),t.useEffect(function(){if(!i||!e)return function(){};var t=function(){o.current&&o.current.apply(o,arguments)};return e.on(r,t),function(){e.off(r,t)}},[i,r,e,o])},y=function(e){var r=t.useRef(e);return t.useEffect(function(){r.current=e},[e]),r.current},v=function(e){return null!==e&&"object"===i(e)},b="[object Object]",w=function e(t,r){if(!v(t)||!v(r))return t===r;var n=Array.isArray(t);if(n!==Array.isArray(r))return!1;var i=Object.prototype.toString.call(t)===b;if(i!==(Object.prototype.toString.call(r)===b))return!1;if(!i&&!n)return t===r;var o=Object.keys(t),s=Object.keys(r);if(o.length!==s.length)return!1;for(var a={},l=0;l<o.length;l+=1)a[o[l]]=!0;for(var u=0;u<s.length;u+=1)a[s[u]]=!0;var c=Object.keys(a);return c.length===o.length&&c.every(function(n){return e(t[n],r[n])})},x=function(e,t,r){return v(e)?Object.keys(e).reduce(function(i,s){var a=!v(t)||!w(e[s],t[s]);return r.includes(s)?(a&&console.warn("Unsupported prop change: options.".concat(s," is not a mutable property.")),i):a?n(n({},i||{}),{},o({},s,e[s])):i},null):null},_="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_;if(null===e||v(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_;if(v(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return E(e,t)})};var r=E(e,t);return null===r?{tag:"empty"}:{tag:"sync",stripe:r}},T=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.7.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.7.0",url:"https://stripe.com/docs/stripe-js/react"}))},k=t.createContext(null);k.displayName="ElementsContext";var A=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},C=function(e){var r=e.stripe,n=e.options,i=e.children,o=t.useMemo(function(){return S(r)},[r]),s=a(t.useState(function(){return{stripe:"sync"===o.tag?o.stripe:null,elements:"sync"===o.tag?o.stripe.elements(n):null}}),2),l=s[0],u=s[1];t.useEffect(function(){var e=!0,t=function(e){u(function(t){return t.stripe?t:{stripe:e,elements:e.elements(n)}})};return"async"!==o.tag||l.stripe?"sync"!==o.tag||l.stripe||t(o.stripe):o.stripePromise.then(function(r){r&&e&&t(r)}),function(){e=!1}},[o,l,n]);var c=y(r);t.useEffect(function(){null!==c&&c!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[c,r]);var h=y(n);return t.useEffect(function(){if(l.elements){var e=x(n,h,["clientSecret","fonts"]);e&&l.elements.update(e)}},[n,h,l.elements]),t.useEffect(function(){T(l.stripe)},[l.stripe]),t.createElement(k.Provider,{value:l},i)};C.propTypes={stripe:m.any,options:m.object};var I=function(e){return A(t.useContext(k),e)},P=function(e){return(0,e.children)(I("mounts <ElementsConsumer>"))};P.propTypes={children:m.func.isRequired};var R=["on","session"],O=t.createContext(null);O.displayName="CheckoutSdkContext";var M=function(e,t){if(!e)throw Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},N=t.createContext(null);N.displayName="CheckoutContext";var L=function(e,t){if(!e)return null;e.on,e.session;var r=s(e,R);return t?Object.assign(t,r):Object.assign(e.session(),r)},D=function(e){var r=e.stripe,n=e.options,i=e.children,o=t.useMemo(function(){return S(r,"Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},[r]),s=a(t.useState(null),2),l=s[0],u=s[1],c=a(t.useState(function(){return{stripe:"sync"===o.tag?o.stripe:null,checkoutSdk:null}}),2),h=c[0],d=c[1],f=function(e,t){d(function(r){return r.stripe&&r.checkoutSdk?r:{stripe:e,checkoutSdk:t}})},p=t.useRef(!1);t.useEffect(function(){var e=!0;return"async"!==o.tag||h.stripe?"sync"===o.tag&&o.stripe&&!p.current&&(p.current=!0,o.stripe.initCheckout(n).then(function(e){e&&(f(o.stripe,e),e.on("change",u))})):o.stripePromise.then(function(t){t&&e&&!p.current&&(p.current=!0,t.initCheckout(n).then(function(e){e&&(f(t,e),e.on("change",u))}))}),function(){e=!1}},[o,h,n,u]);var m=y(r);t.useEffect(function(){null!==m&&m!==r&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")},[m,r]);var g=y(n),v=y(h.checkoutSdk);t.useEffect(function(){if(h.checkoutSdk){var e,t,r=null==g?void 0:null===(e=g.elementsOptions)||void 0===e?void 0:e.appearance,i=null==n?void 0:null===(t=n.elementsOptions)||void 0===t?void 0:t.appearance,o=!w(i,r),s=!v&&h.checkoutSdk;
1i&&(o||s)&&h.checkoutSdk.changeAppearance(i)}},[n,g,h.checkoutSdk,v]),t.useEffect(function(){T(h.stripe)},[h.stripe]);var b=t.useMemo(function(){return L(h.checkoutSdk,l)},[h.checkoutSdk,l]);return h.checkoutSdk?t.createElement(O.Provider,{value:h},t.createElement(N.Provider,{value:b},i)):null};D.propTypes={stripe:m.any,options:m.shape({fetchClientSecret:m.func.isRequired,elementsOptions:m.object}).isRequired};var j=function(e){var r=t.useContext(O),n=t.useContext(k);if(r&&n)throw Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return r?M(r,e):A(n,e)},V=["mode"],F=function(e,r){var n="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),i=r?function(e){j("mounts <".concat(n,">"));var r=e.id,i=e.className;return t.createElement("div",{id:r,className:i})}:function(r){var i,o=r.id,l=r.className,u=r.options,c=void 0===u?{}:u,h=r.onBlur,d=r.onFocus,f=r.onReady,p=r.onChange,m=r.onEscape,v=r.onClick,b=r.onLoadError,w=r.onLoaderStart,_=r.onNetworksChange,E=r.onConfirm,S=r.onCancel,T=r.onShippingAddressChange,k=r.onShippingRateChange,A=j("mounts <".concat(n,">")),C="elements"in A?A.elements:null,I="checkoutSdk"in A?A.checkoutSdk:null,P=a(t.useState(null),2),R=P[0],O=P[1],M=t.useRef(null),N=t.useRef(null);g(R,"blur",h),g(R,"focus",d),g(R,"escape",m),g(R,"click",v),g(R,"loaderror",b),g(R,"loaderstart",w),g(R,"networkschange",_),g(R,"confirm",E),g(R,"cancel",S),g(R,"shippingaddresschange",T),g(R,"shippingratechange",k),g(R,"change",p),f&&(i="expressCheckout"===e?f:function(){f(R)}),g(R,"ready",i),t.useLayoutEffect(function(){if(null===M.current&&null!==N.current&&(C||I)){var t=null;if(I)switch(e){case"payment":t=I.createPaymentElement(c);break;case"address":if("mode"in c){var r=c.mode,i=s(c,V);if("shipping"===r)t=I.createShippingAddressElement(i);else if("billing"===r)t=I.createBillingAddressElement(i);else throw Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":t=I.createExpressCheckoutElement(c);break;case"currencySelector":t=I.createCurrencySelectorElement();break;default:throw Error("Invalid Element type ".concat(n,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else C&&(t=C.create(e,c));M.current=t,O(t),t&&t.mount(N.current)}},[C,I,c]);var L=y(c);return t.useEffect(function(){if(M.current){var e=x(c,L,["paymentRequest"]);e&&"update"in M.current&&M.current.update(e)}},[c,L]),t.useLayoutEffect(function(){return function(){if(M.current&&"function"==typeof M.current.destroy)try{M.current.destroy(),M.current=null}catch(e){}}},[]),t.createElement("div",{id:o,className:l,ref:N})};return i.propTypes={id:m.string,className:m.string,onChange:m.func,onBlur:m.func,onFocus:m.func,onReady:m.func,onEscape:m.func,onClick:m.func,onLoadError:m.func,onLoaderStart:m.func,onNetworksChange:m.func,onConfirm:m.func,onCancel:m.func,onShippingAddressChange:m.func,onShippingRateChange:m.func,options:m.object},i.displayName=n,i.__elementType=e,i},U="undefined"==typeof window,B=t.createContext(null);B.displayName="EmbeddedCheckoutProviderContext";var z=function(){var e=t.useContext(B);if(!e)throw Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},H=U?function(e){var r=e.id,n=e.className;return z(),t.createElement("div",{id:r,className:n})}:function(e){var r=e.id,n=e.className,i=z().embeddedCheckout,o=t.useRef(!1),s=t.useRef(null);return t.useLayoutEffect(function(){return!o.current&&i&&null!==s.current&&(i.mount(s.current),o.current=!0),function(){if(o.current&&i)try{i.unmount(),o.current=!1}catch(e){}}},[i]),t.createElement("div",{ref:s,id:r,className:n})},$=F("auBankAccount",U),W=F("card",U),q=F("cardNumber",U),G=F("cardExpiry",U),K=F("cardCvc",U),Y=F("fpxBank",U),X=F("iban",U),Z=F("idealBank",U),Q=F("p24Bank",U),J=F("epsBank",U),ee=F("payment",U),et=F("expressCheckout",U),er=F("currencySelector",U),en=F("paymentRequestButton",U),ei=F("linkAuthentication",U),eo=F("address",U),es=F("shippingAddress",U),ea=F("paymentMethodMessaging",U),el=F("affirmMessage",U),eu=F("afterpayClearpayMessage",U);e.AddressElement=eo,e.AffirmMessageElement=el,e.AfterpayClearpayMessageElement=eu,e.AuBankAccountElement=$,e.CardCvcElement=K,e.CardElement=W,e.CardExpiryElement=G,e.CardNumberElement=q,e.CheckoutProvider=D,e.CurrencySelectorElement=er,e.Elements=C,e.ElementsConsumer=P,e.EmbeddedCheckout=H,e.EmbeddedCheckoutProvider=function(e){var r=e.stripe,n=e.options,i=e.children,o=t.useMemo(function(){return S(r,"Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},[r]),s=t.useRef(null),l=t.useRef(null),u=a(t.useState({embeddedCheckout:null}),2),c=u[0],h=u[1];t.useEffect(function(){if(!l.current&&!s.current){var e=function(e){l.current||s.current||(l.current=e,s.current=l.current.initEmbeddedCheckout(n).then(function(e){h({embeddedCheckout:e})}))};"async"===o.tag&&!l.current&&(n.clientSecret||n.fetchClientSecret)?o.stripePromise.then(function(t){t&&e(t)}):"sync"===o.tag&&!l.current&&(n.clientSecret||n.fetchClientSecret)&&e(o.str
1ipe)}},[o,n,c,l]),t.useEffect(function(){return function(){c.embeddedCheckout?(s.current=null,c.embeddedCheckout.destroy()):s.current&&s.current.then(function(){s.current=null,c.embeddedCheckout&&c.embeddedCheckout.destroy()})}},[c.embeddedCheckout]),t.useEffect(function(){T(l)},[l]);var d=y(r);t.useEffect(function(){null!==d&&d!==r&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[d,r]);var f=y(n);return t.useEffect(function(){if(null!=f){if(null==n){console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.");return}void 0===n.clientSecret&&void 0===n.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=f.clientSecret&&n.clientSecret!==f.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=f.fetchClientSecret&&n.fetchClientSecret!==f.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=f.onComplete&&n.onComplete!==f.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=f.onShippingDetailsChange&&n.onShippingDetailsChange!==f.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=f.onLineItemsChange&&n.onLineItemsChange!==f.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")}},[f,n]),t.createElement(B.Provider,{value:c},i)},e.EpsBankElement=J,e.ExpressCheckoutElement=et,e.FpxBankElement=Y,e.IbanElement=X,e.IdealBankElement=Z,e.LinkAuthenticationElement=ei,e.P24BankElement=Q,e.PaymentElement=ee,e.PaymentMethodMessagingElement=ea,e.PaymentRequestButtonElement=en,e.ShippingAddressElement=es,e.useCheckout=function(){e="calls useCheckout()",M(t.useContext(O),e);var e,r=t.useContext(N);if(!r)throw Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider.");return r},e.useElements=function(){return I("calls useElements()").elements},e.useStripe=function(){return j("calls useStripe()").stripe}}(t,r(96540))},4146:(e,t,r)=>{"use strict";var n=r(44363),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var s=c(r);h&&(s=s.concat(h(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var y=s[g];if(!o[y]&&!(n&&n[y])&&!(m&&m[y])&&!(a&&a[y])){var v=d(r,y);try{u(t,y,v)}catch(e){}}}}return t}},84647:(e,t,r)=>{"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastChannel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(t){var r=function(r){if(r.key===e){var n,i=JSON.parse(null!==(n=r.newValue)&&void 0!==n?n:"{}");(null==i?void 0:i.event)==="session"&&null!=i&&i.data&&t(i)}};return window.addEventListener("storage",r),function(){return window.removeEventListener("storage",r)}},post:function(t){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(l(l({},t),{},{timestamp:h()})))}catch(e){}}}},t.apiBaseUrl=c,t.fetchData=function(e,t,r){return u.apply(this,arguments)},t.now=h;var i=n(r(54756)),o=n(r(43693)),s=n(r(29293));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(){return(u=(0,s.default)(i.default.mark(function e(t,r,n){var o,s,a,u,h,d,f,p,m,g=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=(o=g.length>3&&void 0!==g[3]?g[3]:{}).ctx,u=void 0===(a=o.req)?null==s?void 0:s.req:a,h="".concat(c(r),"/").concat(t),e.prev=2,f={headers:l({"Content-Type":"application/json"},null!=u&&null!==(d=u.headers)&&void 0!==d&&d.cookie?{cookie:u.headers.cookie}:{})},null!=u&&u.body&&(f.body=JSON.stringify(u.body),f.method="POST"),e.next=7,fetch(h,f);case 7:return p=e.sent,e.next=10,p.json();case 10:if(m=e.sent,p.ok){e.next=13;break}throw m;case 13:return e.abrupt("return",Object.keys(m).length>0?m:null);case 16:return e.prev=16,e.t0=e.catch(2),n.error("CLIENT_FETCH_ERROR",{error:e.t0,url:h}),e.abrupt("return",null);case 20:case"end":return e.stop()}},e,null,[[2,16]])}))).apply(this,arguments)}function c(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function h(){return Math.floor(Date.now()/1e3)}},33370:(e,t,r)=>{"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=function(e,t){if(e)return Object.keys(e).reduce(function(r,n){return r[n]=(0,o.default)(i.default.mark(function r(){var o,s,a,l,u,c=arguments;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(r.prev=0,s=Array(o=c.length),a=0;a<o;a++)s[a]=c[a];return t.debug("adapter_".concat(n),{args:s}),l=e[n],r.next=6,l.apply(void 0,s);case 6:return r.abrupt("return",r.sent);case 9:throw r.prev=9,r.t0=r.catch(0),t.error("adapter_error_".concat(n),r.t0),(u=new m(r.t0)).name="".concat(y(n),"Error"),u;case 15:case"end":return r.stop()}},r,null,[[0,9]])})),r},{})},t.capitalize=y,t.eventsErrorHandler=function(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=(0,o.default)(i.default.mark(function r(){var o,s=arguments;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=e[n],r.next=4,o.apply(void 0,s);case 4:return r.abrupt("return",r.sent);case 7:r.prev=7,r.t0=r.catch(0),t.error("".concat(g(n),"_EVENT_ERROR"),r.t0);case 10:case"end":return r.stop()}},r,null,[[0,7]])})),r},{})},t.upperSnake=g;var i=n(r(54756)),o=n(r(29293)),s=n(r(43693)),a=n(r(17383)),l=n(r(34579)),u=n(r(28452)),c=n(r(63072)),h=n(r(29511)),d=n(r(61837));function f(e,t,r){return t=(0,c.default)(t),(0,u.default)(e,p()?Reflect.construct(t,r||[],(0,c.default)(e).constructor):t.apply(e,r))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var m=t.UnknownError=function(e){function t(e){var r,n;return(0,a.default)(this,t),(n=f(this,t,[null!==(r=null==e?void 0:e.message)&&void 0!==r?r:e])).name="UnknownError",n.code=e.code,e instanceof Error&&(n.stack=e.stack),n}return(0,h.default)(t,e),(0,l.default)(t,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}])}((0,d.default)(Error));function g(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function y(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}t.OAuthCallbackError=function(e){function t(){var e;(0,a.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=f(this,t,[].concat(n)),(0,s.default)(e,"name","OAuthCallbackError"),e}return(0,h.default)(t,e),(0,l.default)(t)}(m),t.AccountNotLinkedError=function(e){function t(){var e;(0,a.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=f(this,t,[].concat(n)),(0,s.default)(e,"name","AccountNotLinkedError"),e}return(0,h.default)(t,e),(0,l.default)(t)}(m),t.MissingAPIRoute=function(e){function t(){var e;(0,a.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=f(this,t,[].concat(n)),(0,s.default)(e,"name","MissingAPIRouteError"),(0,s.default)(e,"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,h.default)(t,e),(0,l.default)(t)}(m),t.MissingSecret=function(e){function t(){var e;(0,a.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=f(this,t,[].concat(n)),(0,s.default)(e,"name","MissingSecretError"),(0,s.default)(e,"code","NO_SECRET"),e}return(0,h.default)(t,e),(0,l.default)(t)}(m),t.MissingAuthorize=function(e){function t(){var e;(0,a.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=f(this,t,[].concat(n)),(0,s.default)(e,"name","MissingAuthorizeError"),(0,s.default)(e,"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,h.default)(t,e),(0,l.default)(t)}(m),t.MissingAdapter=function(e){function t(){var e;(0,a.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=f(this,t,[].concat(n)),(0,s.default)(e,"name","MissingAdapterError"),(0,s.default)(e,"code","
1EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,h.default)(t,e),(0,l.default)(t)}(m),t.MissingAdapterMethods=function(e){function t(){var e;(0,a.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=f(this,t,[].concat(n)),(0,s.default)(e,"name","MissingAdapterMethodsError"),(0,s.default)(e,"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,h.default)(t,e),(0,l.default)(t)}(m),t.UnsupportedStrategy=function(e){function t(){var e;(0,a.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=f(this,t,[].concat(n)),(0,s.default)(e,"name","UnsupportedStrategyError"),(0,s.default)(e,"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,h.default)(t,e),(0,l.default)(t)}(m),t.InvalidCallbackUrl=function(e){function t(){var e;(0,a.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=f(this,t,[].concat(n)),(0,s.default)(e,"name","InvalidCallbackUrl"),(0,s.default)(e,"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,h.default)(t,e),(0,l.default)(t)}(m)},33013:(e,t,r)=>{"use strict";var n,i,o,s,a,l=r(77836),u=r(24994),c=r(73738);Object.defineProperty(t,"__esModule",{value:!0});var h={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};t.SessionContext=void 0,t.SessionProvider=function(e){if(!I)throw Error("React Context is unavailable in Server Components");var t,r,n,i,o,s,a=e.children,l=e.basePath,u=e.refetchInterval,c=e.refetchWhenOffline;l&&(k.basePath=l);var h=void 0!==e.session;k._lastSync=h?(0,b.now)():0;var f=g.useState(function(){return h&&(k._session=e.session),e.session}),y=(0,m.default)(f,2),v=y[0],x=y[1],_=g.useState(!h),E=(0,m.default)(_,2),S=E[0],T=E[1];g.useEffect(function(){return k._getSession=(0,p.default)(d.default.mark(function e(){var t,r,n=arguments;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(n.length>0&&void 0!==n[0]?n[0]:{}).event,e.prev=1,!((r="storage"===t)||void 0===k._session)){e.next=10;break}return k._lastSync=(0,b.now)(),e.next=7,P({broadcast:!r});case 7:return k._session=e.sent,x(k._session),e.abrupt("return");case 10:if(!(!t||null===k._session||(0,b.now)()<k._lastSync)){e.next=12;break}return e.abrupt("return");case 12:return k._lastSync=(0,b.now)(),e.next=15,P();case 15:k._session=e.sent,x(k._session),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),C.error("CLIENT_SESSION_ERROR",e.t0);case 22:return e.prev=22,T(!1),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,19,22,25]])})),k._getSession(),function(){k._lastSync=0,k._session=void 0,k._getSession=function(){}}},[]),g.useEffect(function(){var e=A.receive(function(){return k._getSession({event:"storage"})});return function(){return e()}},[]),g.useEffect(function(){var t=e.refetchOnWindowFocus,r=void 0===t||t,n=function(){r&&"visible"===document.visibilityState&&k._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",n,!1),function(){return document.removeEventListener("visibilitychange",n,!1)}},[e.refetchOnWindowFocus]);var R=(t=g.useState("undefined"!=typeof navigator&&navigator.onLine),n=(r=(0,m.default)(t,2))[0],i=r[1],o=function(){return i(!0)},s=function(){return i(!1)},g.useEffect(function(){return window.addEventListener("online",o),window.addEventListener("offline",s),function(){window.removeEventListener("online",o),window.removeEventListener("offline",s)}},[]),n),M=!1!==c||R;g.useEffect(function(){if(u&&M){var e=setInterval(function(){k._session&&k._getSession({event:"poll"})},1e3*u);return function(){return clearInterval(e)}}},[u,M]);var N=g.useMemo(function(){return{data:v,status:S?"loading":v?"authenticated":"unauthenticated",update:function(e){return(0,p.default)(d.default.mark(function t(){var r;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(S||!v)){t.next=2;break}return t.abrupt("return");case 2:return T(!0),t.t0=b.fetchData,t.t1=k,t.t2=C,t.next=8,O();case 8:return t.t3=t.sent,t.t4=e,t.t5={csrfToken:t.t3,data:t.t4},t.t6={body:t.t5},t.t7={req:t.t6},t.next=15,(0,t.t0)("session",t.t1,t.t2,t.t7);case 15:return r=t.sent,T(!1),r&&(x(r),A.post({event:"session",data:{trigger:"getSession"}})),t.abrupt("return",r);case 19:case"end":return t.stop()}},t)}))()}}},[v,S]);return(0,w.jsx)(I.Provider,{value:N,children:a})},t.getCsrfToken=O,t.getProviders=N,t.getSession=P,t.signIn=function(e,t,r){return D.apply(this,arguments)},t.signOut=function(e){return j.apply(this,arguments)},t.useSession=function(e){if(!I)throw Error("React Context is unavailable in Server Components");var t=g.useContext(I),r=null!=e?e:{},n=r.required,i=r.onUnauthenticated,o=n&&"unauthenticated"===t.status;return(g.useEffect(function(){if(o){var e="/api/auth/signin?".concat(new 
1URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));i?i():window.location.href=e}},[o,i]),o)?{data:t.data,update:t.update,status:"loading"}:t};var d=u(r(54756)),f=u(r(43693)),p=u(r(29293)),m=u(r(85715)),g=E(r(96540)),y=E(r(81267)),v=u(r(3004)),b=r(84647),w=r(74848),x=r(52028);function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_=function(e){return e?r:t})(e)}function E(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var r=_(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach(function(t){(0,f.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.keys(x).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(h,e))&&(e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))});var k={baseUrl:(0,v.default)(null!==(n=l.env.NEXTAUTH_URL)&&void 0!==n?n:l.env.VERCEL_URL).origin,basePath:(0,v.default)(l.env.NEXTAUTH_URL).path,baseUrlServer:(0,v.default)(null!==(i=null!==(o=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==o?o:l.env.NEXTAUTH_URL)&&void 0!==i?i:l.env.VERCEL_URL).origin,basePathServer:(0,v.default)(null!==(s=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==s?s:l.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},A=(0,b.BroadcastChannel)(),C=(0,y.proxyLogger)(y.default,k.basePath),I=t.SessionContext=null===(a=g.createContext)||void 0===a?void 0:a.call(g,void 0);function P(e){return R.apply(this,arguments)}function R(){return(R=(0,p.default)(d.default.mark(function e(t){var r,n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("session",k,C,t);case 2:return n=e.sent,(null===(r=null==t?void 0:t.broadcast)||void 0===r||r)&&A.post({event:"session",data:{trigger:"getSession"}}),e.abrupt("return",n);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function O(e){return M.apply(this,arguments)}function M(){return(M=(0,p.default)(d.default.mark(function e(t){var r;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("csrf",k,C,t);case 2:return r=e.sent,e.abrupt("return",null==r?void 0:r.csrfToken);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function N(){return L.apply(this,arguments)}function L(){return(L=(0,p.default)(d.default.mark(function e(){return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("providers",k,C);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function D(){return(D=(0,p.default)(d.default.mark(function e(t,r,n){var i,o,s,a,l,u,c,h,f,p,m,g,y,v,w,x,_;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=void 0===(o=(i=null!=r?r:{}).callbackUrl)?window.location.href:o,l=void 0===(a=i.redirect)||a,u=(0,b.apiBaseUrl)(k),e.next=4,N();case 4:if(c=e.sent){e.next=8;break}return window.location.href="".concat(u,"/error"),e.abrupt("return");case 8:if(!(!t||!(t in c))){e.next=11;break}return window.location.href="".concat(u,"/signin?").concat(new URLSearchParams({callbackUrl:s})),e.abrupt("return");case 11:return h="credentials"===c[t].type,f="email"===c[t].type,p=h||f,m="".concat(u,"/").concat(h?"callback":"signin","/").concat(t),g="".concat(m).concat(n?"?".concat(new 
1URLSearchParams(n)):""),e.t0=fetch,e.t1=g,e.t2={"Content-Type":"application/x-www-form-urlencoded"},e.t3=URLSearchParams,e.t4=T,e.t5=T({},r),e.t6={},e.next=25,O();case 25:return e.t7=e.sent,e.t8=s,e.t9={csrfToken:e.t7,callbackUrl:e.t8,json:!0},e.t10=(0,e.t4)(e.t5,e.t6,e.t9),e.t11=new e.t3(e.t10),e.t12={method:"post",headers:e.t2,body:e.t11},e.next=33,(0,e.t0)(e.t1,e.t12);case 33:return y=e.sent,e.next=36,y.json();case 36:if(v=e.sent,!(l||!p)){e.next=42;break}return x=null!==(w=v.url)&&void 0!==w?w:s,window.location.href=x,x.includes("#")&&window.location.reload(),e.abrupt("return");case 42:if(_=new URL(v.url).searchParams.get("error"),!y.ok){e.next=46;break}return e.next=46,k._getSession({event:"storage"});case 46:return e.abrupt("return",{error:_,status:y.status,ok:y.ok,url:_?null:v.url});case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function j(){return(j=(0,p.default)(d.default.mark(function e(t){var r,n,i,o,s,a,l,u,c;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=void 0===(n=(null!=t?t:{}).callbackUrl)?window.location.href:n,o=(0,b.apiBaseUrl)(k),e.t0={"Content-Type":"application/x-www-form-urlencoded"},e.t1=URLSearchParams,e.next=6,O();case 6:return e.t2=e.sent,e.t3=i,e.t4={csrfToken:e.t2,callbackUrl:e.t3,json:!0},e.t5=new e.t1(e.t4),s={method:"post",headers:e.t0,body:e.t5},e.next=13,fetch("".concat(o,"/signout"),s);case 13:return a=e.sent,e.next=16,a.json();case 16:if(l=e.sent,A.post({event:"session",data:{trigger:"signout"}}),!(null===(r=null==t?void 0:t.redirect)||void 0===r||r)){e.next=23;break}return c=null!==(u=l.url)&&void 0!==u?u:i,window.location.href=c,c.includes("#")&&window.location.reload(),e.abrupt("return");case 23:return e.next=25,k._getSession({event:"storage"});case 25:return e.abrupt("return",l);case 26:case"end":return e.stop()}},e)}))).apply(this,arguments)}},52028:(e,t)=>
1{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81267:(e,t,r)=>{"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var r={},n=function(e){var n;r[e]=(n=(0,s.default)(i.default.mark(function r(n,s){var a,h;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(c[e](n,s),"error"===e&&(s=u(s)),s.client=!0,a="".concat(t,"/_log"),h=new URLSearchParams(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({level:e,code:n},s)),!navigator.sendBeacon){r.next=8;break}return r.abrupt("return",navigator.sendBeacon(a,h));case 8:return r.next=10,fetch(a,{method:"POST",body:h,keepalive:!0});case 10:return r.abrupt("return",r.sent);case 11:case"end":return r.stop()}},r)})),function(e,t){return n.apply(this,arguments)})};for(var a in e)n(a);return r}catch(e){return c}},t.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(c.debug=function(){}),e.error&&(c.error=e.error),e.warn&&(c.warn=e.warn),e.debug&&(c.debug=e.debug)};var i=n(r(54756)),o=n(r(43693)),s=n(r(29293)),a=r(33370);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){var t;return e instanceof Error&&!(e instanceof a.UnknownError)?{message:e.message,stack:e.stack,name:e.name}:(null!=e&&e.error&&(e.error=u(e.error),e.message=null!==(t=e.message)&&void 0!==t?t:e.error.message),e)}var c={error:function(e,t){t=u(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};t.default=c},3004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let n=new URL(null!==(t=e)&&void 0!==t?t:r),i=("/"===n.pathname?r.pathname:n.pathname).replace(/\/$/,""),o=`${n.origin}${i}`;return{origin:n.origin,host:n.host,path:i,base:o,toString:()=>o}}},86170:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(14039)}])},45169:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(74848),i=r(86715),o=r(29965),s=r.n(o);function a(e){let{size:t}=e,r=(0,i.useRouter)();return(0,n.jsx)("div",{className:"flex flex-col items-center",children:(0,n.jsx)(s(),{src:"/images/logo/thenewyou_logo.jpeg",alt:"Logo",width:t,height:t,onClick:()=>r.push("/"),className:"cursor-pointer rounded-full",priority:!0})})}},28621:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(74848),i=r(13368),o=r.n(i),s=r(86715),a=r(28133),l=r.n(a);function u(e){let{title:t,description:r}=e,i=(0,s.useRouter)(),a="The New You Academy",u=t?"".concat(a," | ").concat(t):a,c=r||"เรียนรู้และพัฒนาตัวเองกับ The New You Academy";return"".concat("https://thenewyou.vercel.app/api","/opengraph-image?pathname=").concat(i.asPath),(0,n.jsxs)(o(),{children:[(0,n.jsx)("title",{children:u}),(0,n.jsx)("meta",{name:"description",content:c}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,n.jsx)("meta",{name:"theme-color",content:"#000000"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,n.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,n.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/favicon/apple-touch-icon.png"}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon/favicon-32x32.png"}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon/favicon-16x16.png"}),(0,n.jsx)("meta",{property:"og:title",content:u}),(0,n.jsx)("meta",{property:"og:description",content:c}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:url",content:"https://www.thenewyouacademy.com".concat(i.asPath)}),(0,n.jsx)("meta",{property:"og:image",content:"{ogImageUrl}"}
1),(0,n.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,n.jsx)("meta",{property:"og:image:height",content:"630"}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{name:"twitter:title",content:u}),(0,n.jsx)("meta",{name:"twitter:description",content:c}),(0,n.jsx)("meta",{name:"twitter:image",content:"{ogImageUrl}"}),(0,n.jsx)("meta",{name:"google-site-verification",content:"google-site-verification=google-site-verification=google-site-verification"}),(0,n.jsx)(l(),{dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n  })(window,document,'script','dataLayer','GTM-WQXH48SP');"}})]})}},47091:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>oC});var i,o,s=r(74848),a=r(29965),l=r.n(a),u=r(96540);function c(e,t){-1===e.indexOf(t)&&e.push(t)}function h(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}let d=e=>e,f={skipAnimations:!1,useManualTiming:!1};function p(e){let t;return()=>(void 0===t&&(t=e()),t)}let m=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n};class g{constructor(){this.subscriptions=[]}add(e){return c(this.subscriptions,e),()=>h(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let y=e=>1e3*e,v=e=>e/1e3;function b(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function w(e,t,r,n){if("function"==typeof t||("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t)){let[i,o]=function(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}(n);t=t(void 0!==r?r:e.custom,i,o)}return t}function x(e,t,r){let n=e.getProps();return w(n,t,void 0!==r?r:n.custom,e)}let _=p(()=>void 0!==window.ScrollTimeline);class E{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){let r=this.animations.map(r=>_()&&r.attachTimeline?r.attachTimeline(e):"function"==typeof t?t(r):void 0);return()=>{r.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class S extends E{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function T(e,t){return e?e[t]||e.default||e:void 0}function k(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}function A(e){return"function"==typeof e}function C(e,t){e.timeline=t,e.onfinish=null}let I=e=>Array.isArray(e)&&"number"==typeof e[0],P={linearEasing:void 0},R=function(e,t){let r=p(e);return()=>{var e;return null!==(e=P[t])&&void 0!==e?e:r()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),O=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let t=0;t<i;t++)n+=e(m(0,i-1,t))+", ";return`linear(${n.substring(0,n.length-2)})`},M=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,N={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:M([0,.65,.55,1]),circOut:M([.55,0,1,.45]),backIn:M([.31,.01,.66,-.59]),backOut:M([.33,1.53,.69,.99])},L=["read","resolveKeyframes","update","preRender","render","postRender"],D={value:null,addProjectionMetrics:null};function j(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=L.reduce((e,r)=>(e[r]=function(e,t){let r=new Set,n=new Set,i=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){s.has(t)&&(c.schedule(t),e()),l++,t(a)}let c={schedule:(e,t=!1,o=!1)=>{let a=o&&i?r:n;return t&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),s.delete(e)},process:e=>{if(a=e,i){o=!0;return}i=!0,[r,n]=[n,r],r.forEach(u),t&&D.value&&D.value.frameloop[t].push(l),l=0,r.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(o,t?r:void 0),e),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=s,p=()=>{let o=f.useManualTiming?i.timestamp:performance.now();r=!1,f.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),d.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(p))},m=()=>{r=!0,n=!0,i.isProcessing||e(p)};return{schedule:L.reduce((e,t)=>{let n=s[t];return e[t]=(e,t=!1,i=!1)=>(r||m(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<L.length;t++)s[L[t]].cancel(e)},state:i,steps:s}}let{schedule:V,cancel:F,state:U,steps:B}=j("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:d,!0),{schedule:z}=j(queueMicrotask,!1);function H(){n=void 0}let $={now:()=>(void 0===n&&$.set(U.isProcessing||f.useManualTiming?U.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(H)}},W={x:!1,y:!1};function q(e,t){let r=function(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function G(e){return!("touch"===e.pointerType||W.x||W.y)}function K(e,t){let r=`${t}PointerCapture`;if(e.target instanceof Element&&r in e.target&&void 0!==e.pointerId)try{e.target[r](e.pointerId)}catch(e){}}let Y=(e,t)=>!!t&&(e===t||Y(e,t.parentElement)),X=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Z=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Q=new WeakSet;function J(e){return t=>{"Enter"===t.key&&e(t)}}function ee(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let et=(e,t)=>{let r=e.currentTarget;if(!r)return;let n=J(()=>{if(Q.has(r))return;ee(r,"down");let e=J(()=>{ee(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>ee(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function er(e){return X(e)&&!(W.x||W.y)}let en={layout:0,mainThread:0,waapi:0};function ei(){let{value:e}=statsBuffer;if(null===e){cancelFrame(ei);return}e.frameloop.rate.push(frameData.delta),e.animations.mainThread.push(activeAnimations.mainThread),e.animations.waapi.push(activeAnimations.waapi),e.animations.layout.push(activeAnimations.layout)}function eo(e){return e.reduce((e,t)=>e+t,0)/e.length}let es=e=>!isNaN(parseFloat(e)),ea={current:void 0};class el{constructor(e,t={}){this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=$.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=$.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=es(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new g);let r=this.events[e].add(t);return"change"===e?()=>{r(),V.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return ea.current&&ea.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=$.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eu(e,t){return new el(e,t)}let ec=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],eh=new Set(ec),ed=new Set(["width","height","top","left","right","bottom",...ec]),ef=e=>Array.isArray(e),ep=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),em=e=>ef(e)?e[e.length-1]||0:e,eg=e=>!!(e&&e.getVelocity);function ey(e,t){let r=e.getValue("willChange");if(eg(r)&&r.add)return r.add(t)}let ev=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eb="data-"+ev("framerAppearId"),ew={current:!1},ex=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function e_(e,t,r,n){if(e===t&&r===n)return d;let i=t=>(function(e,t,r,n,i){let o,s;let a=0;do(o=ex(s=t+(r-t)/2,n,i)-e)>0?r=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,r);return e=>0===e||1===e?e:ex(i(e),t,n)}let eE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eS=e=>t=>1-e(1-t),eT=e_(.33,1.53,.69,.99),ek=eS(eT),eA=eE(ek),eC=e=>(e*=2)<1?.5*ek(e):.5*(2-Math.pow(2,-10*(e-1))),eI=e=>1-Math.sin(Math.acos(e)),eP=eS(eI),eR=eE(eI),eO=e=>/^0[^.\s]+$/u.test(e),eM=(e,t,r)=>r>t?t:r<e?e:r,eN={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eL={...eN,transform:e=>eM(0,1,e)},eD={...eN,default:1},ej=e=>Math.round(1e5*e)/1e5,eV=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eU=(e,t)=>r=>!!("string"==typeof r&&eF.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),eB=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,o,s,a]=n.match(eV);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},ez=e=>eM(0,255,e),eH={...eN,transform:e=>Math.round(ez(e))},e$={test:eU("rgb","red"),parse:eB("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+eH.transform(e)+", "+eH.transform(t)+", "+eH.transform(r)+", "+ej(eL.transform(n))+")"},eW={test:eU("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alph
1a:i?parseInt(i,16)/255:1}},transform:e$.transform},eq=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eG=eq("deg"),eK=eq("%"),eY=eq("px"),eX=eq("vh"),eZ=eq("vw"),eQ={...eK,parse:e=>eK.parse(e)/100,transform:e=>eK.transform(100*e)},eJ={test:eU("hsl","hue"),parse:eB("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+eK.transform(ej(t))+", "+eK.transform(ej(r))+", "+ej(eL.transform(n))+")"},e0={test:e=>e$.test(e)||eW.test(e)||eJ.test(e),parse:e=>e$.test(e)?e$.parse(e):eJ.test(e)?eJ.parse(e):eW.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?e$.transform(e):eJ.transform(e)},e1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,e2="number",e4="color",e3=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function e5(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,s=t.replace(e3,e=>(e0.test(e)?(n.color.push(o),i.push(e4),r.push(e0.parse(e))):e.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(e)):(n.number.push(o),i.push(e2),r.push(parseFloat(e))),++o,"${}")).split("${}");return{values:r,split:s,indexes:n,types:i}}function e6(e){return e5(e).values}function e8(e){let{split:t,types:r}=e5(e),n=t.length;return e=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],void 0!==e[o]){let t=r[o];t===e2?i+=ej(e[o]):t===e4?i+=e0.transform(e[o]):i+=e[o]}return i}}let e7=e=>"number"==typeof e?0:e,e9={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(eV))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(e1))||void 0===r?void 0:r.length)||0)>0},parse:e6,createTransformer:e8,getAnimatableNone:function(e){let t=e6(e);return e8(e)(t.map(e7))}},te=new Set(["brightness","contrast","saturate","opacity"]);function tt(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(eV)||[];if(!n)return e;let i=r.replace(n,""),o=te.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let tr=/\b([a-z-]*)\(.*?\)/gu,tn={...e9,getAnimatableNone:e=>{let t=e.match(tr);return t?t.map(tt).join(" "):e}},ti={...eN,transform:Math.round},to={borderWidth:eY,borderTopWidth:eY,borderRightWidth:eY,borderBottomWidth:eY,borderLeftWidth:eY,borderRadius:eY,radius:eY,borderTopLeftRadius:eY,borderTopRightRadius:eY,borderBottomRightRadius:eY,borderBottomLeftRadius:eY,width:eY,maxWidth:eY,height:eY,maxHeight:eY,top:eY,right:eY,bottom:eY,left:eY,padding:eY,paddingTop:eY,paddingRight:eY,paddingBottom:eY,paddingLeft:eY,margin:eY,marginTop:eY,marginRight:eY,marginBottom:eY,marginLeft:eY,backgroundPositionX:eY,backgroundPositionY:eY,rotate:eG,rotateX:eG,rotateY:eG,rotateZ:eG,scale:eD,scaleX:eD,scaleY:eD,scaleZ:eD,skew:eG,skewX:eG,skewY:eG,distance:eY,translateX:eY,translateY:eY,translateZ:eY,x:eY,y:eY,z:eY,perspective:eY,transformPerspective:eY,opacity:eL,originX:eQ,originY:eQ,originZ:eY,zIndex:ti,size:eY,fillOpacity:eL,strokeOpacity:eL,numOctaves:ti},ts={...to,color:e0,backgroundColor:e0,outlineColor:e0,fill:e0,stroke:e0,borderColor:e0,borderTopColor:e0,borderRightColor:e0,borderBottomColor:e0,borderLeftColor:e0,filter:tn,WebkitFilter:tn},ta=e=>ts[e];function tl(e,t){let r=ta(e);return r!==tn&&(r=e9),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let tu=new Set(["auto","none","0"]),tc=e=>180*e/Math.PI,th=e=>tf(tc(Math.atan2(e[1],e[0]))),td={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:th,rotateZ:th,skewX:e=>tc(Math.atan(e[1])),skewY:e=>tc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tf=e=>((e%=360)<0&&(e+=360),e),tp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tm=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tp,scaleY:tm,scale:e=>(tp(e)+tm(e))/2,rotateX:e=>tf(tc(Math.atan2(e[6],e[5]))),rotateY:e=>tf(tc(Math.atan2(-e[2],e[0]))),rotateZ:th,rotate:th,skewX:e=>tc(Math.atan(e[4])),skewY:e=>tc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ty(e){return e.includes("scale")?1:0}function tv(e,t){let r,n;if(!e||"none"===e)return ty(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=tg,n=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=td,n=t}if(!n)return ty(t);let o=r[t],s=n[1].split(",").map(tw);return"function"==typeof o?o(s):s[o]}let tb=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return tv(r,t)};function tw(e){return parseFloat(e.trim())}let tx=e=>e===eN||e===eY,t_=new Set(["x","y","z"]),tE=ec.filter(e=>!t_.has(e)),tS={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>tv(t,"x"),y:(e,{transform:t})=>tv(t,"y")};tS.translateX=tS.x,tS.translateY=tS.y;let tT=new Set,tk=!1,tA=!1;function tC(){if(tA){let e=Array.from(tT).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;
1t.forEach(e=>{let t=function(e){let t=[];return tE.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tA=!1,tk=!1,tT.forEach(e=>e.complete()),tT.clear()}function tI(){tT.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tA=!0)})}class tP{constructor(e,t,r,n,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tT.add(this),tk||(tk=!0,V.read(tI),V.resolveKeyframes(tC))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let i=0;i<e.length;i++)if(null===e[i]){if(0===i){let i=null==n?void 0:n.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,o);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=o),n&&void 0===i&&n.set(e[0])}else e[i]=e[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tT.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tT.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tO=e=>t=>"string"==typeof t&&t.startsWith(e),tM=tO("--"),tN=tO("var(--"),tL=e=>!!tN(e)&&tD.test(e.split("/*")[0].trim()),tD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tV=e=>t=>t.test(e),tF=[eN,eY,eK,eG,eZ,eX,{test:e=>"auto"===e,parse:e=>e}],tU=e=>tF.find(tV(e));class tB extends tP{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&tL(n=n.trim())){let i=function e(t,r,n=1){d(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=tj.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${null!=r?r:n}`,i]}(t);if(!i)return;let s=window.getComputedStyle(r).getPropertyValue(i);if(s){let e=s.trim();return tR(e)?parseFloat(e):e}return tL(o)?e(o,r,n+1):o}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ed.has(r)||2!==e.length)return;let[n,i]=e,o=tU(n),s=tU(i);if(o!==s){if(tx(o)&&tx(s))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var n;("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||eO(n))&&r.push(t)}r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!tu.has(t)&&e5(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=tl(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tS[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);let o=n.length-1,s=n[o];n[o]=tS[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
1h(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}let tz=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e9.test(e)||"0"===e)&&!e.startsWith("url(")),tH=e=>null!==e;function t$(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(tH),o=t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}class tW{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=$.now(),this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tI(),tC()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=$.now(),this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=tz(i,t),a=tz(o,t);return d(s===a,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||A(r))&&n)}(e,r,n,i)){if(ew.current||!o){a&&a(t$(e,this.options,t)),s&&s(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}let tq=(e,t,r)=>e+(t-e)*r;function tG(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tK(e,t){return r=>r>0?t:e}let tY=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},tX=[eW,e$,eJ],tZ=e=>tX.find(t=>t.test(e));function tQ(e){let t=tZ(e);if(d(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===eJ&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;i=tG(a,n,e+1/3),o=tG(a,n,e),s=tG(a,n,e-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:n}}(r)),r}let tJ=(e,t)=>{let r=tQ(e),n=tQ(t);if(!r||!n)return tK(e,t);let i={...r};return e=>(i.red=tY(r.red,n.red,e),i.green=tY(r.green,n.green,e),i.blue=tY(r.blue,n.blue,e),i.alpha=tq(r.alpha,n.alpha,e),e$.transform(i))},t0=(e,t)=>r=>t(e(r)),t1=(...e)=>e.reduce(t0),t2=new Set(["none","hidden"]);function t4(e,t){return r=>tq(e,t,r)}function t3(e){return"number"==typeof e?t4:"string"==typeof e?tL(e)?tK:e0.test(e)?tJ:t8:Array.isArray(e)?t5:"object"==typeof e?e0.test(e)?tJ:t6:tK}function t5(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>t3(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function t6(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=t3(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let t8=(e,t)=>{let r=e9.createTransformer(t),n=e5(e),i=e5(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?t2.has(e)&&!i.values.length||t2.has(t)&&!n.values.length?function(e,t){return t2.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):t1(t5(function(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let s=t.types[o],a=e.indexes[s][i[s]],l=null!==(r=e.values[a])&&void 0!==r?r:0;n[o]=l,i[s]++}return n}(n,i),i.values),r):(d(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tK(e,t))};function t7(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?tq(e,t,r):t3(e)(e,t)}function t9(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?1e3/i*n:0}let re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function rt(e,t){return e*Math.sqrt(1-t*t)}let rr=["duration","bounce"],rn=["stiffness","damping","mass"];function ri(e,t){return t.some(t=>void 0!==e[t])}function ro(e=re.visualDuration,t=re.bounce){let r;let n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=n,s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:h,duration:f,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!ri(e,rn)&&ri(e,rr)){if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,i=2*eM(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:re.mass,stiffness:n,damping:i}}else{let r=function({duration:e=re.duration,bounce:t=re.bounce,velocity:r=re.velocity,mass:n=re.mass}){let i,o;d(e<=y(re.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=eM(re.minDamping,re.maxDamping,s),e=eM(re.minDuration,re.maxDuration,v(e)),s<1?(i=t=>{let n=t*s,i=n*e;return .001-(n-r)/rt(t,s)*Math.exp(-i)},o=t=>{let n=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-n),l=rt(Math.pow(t,2),s);return(n*r+r-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let a=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,5/e);if(e=y(e),isNaN(a))return{stiffness:re.stiffness,damping:re.damping,duration:e};{let t=Math.pow(a,2)*n;return{stiffness:t,damping:2*s*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:re.mass}).isResolvedFromDuration=!0}}return t}({...n,velocity:-v(n.velocity||0)}),g=p||0,b=c/(2*Math.sqrt(u*h)),w=a-s,x=v(Math.sqrt(u/h)),_=5>
1Math.abs(w);if(i||(i=_?re.restSpeed.granular:re.restSpeed.default),o||(o=_?re.restDelta.granular:re.restDelta.default),b<1){let e=rt(x,b);r=t=>a-Math.exp(-b*x*t)*((g+b*x*w)/e*Math.sin(e*t)+w*Math.cos(e*t))}else if(1===b)r=e=>a-Math.exp(-x*e)*(w+(g+x*w)*e);else{let e=x*Math.sqrt(b*b-1);r=t=>{let r=Math.exp(-b*x*t),n=Math.min(e*t,300);return a-r*((g+b*x*w)*Math.sinh(n)+e*w*Math.cosh(n))/e}}let E={calculatedDuration:m&&f||null,next:e=>{let t=r(e);if(m)l.done=e>=f;else{let n=0;b<1&&(n=0===e?y(g):t9(r,e,t));let s=Math.abs(n)<=i,u=Math.abs(a-t)<=o;l.done=s&&u}return l.value=l.done?a:t,l},toString:()=>{let e=Math.min(k(E),2e4),t=O(t=>E.next(e*t).value,e,30);return e+"ms "+t}};return E}function rs({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let f=e[0],p={done:!1,value:f},m=e=>void 0!==a&&e<a||void 0!==l&&e>l,g=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)<Math.abs(l-e)?a:l,y=r*t,v=f+y,b=void 0===s?v:s(v);b!==v&&(y=b-f);let w=e=>-y*Math.exp(-e/n),x=e=>b+w(e),_=e=>{let t=w(e),r=x(e);p.done=Math.abs(t)<=u,p.value=p.done?b:r},E=e=>{m(p.value)&&(h=e,d=ro({keyframes:[p.value,g(p.value)],velocity:t9(x,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==h||(t=!0,_(e),E(e)),void 0!==h&&e>=h)?d.next(e-h):(t||_(e),p)}}}let ra=e_(.42,0,1,1),rl=e_(0,0,.58,1),ru=e_(.42,0,.58,1),rc=e=>Array.isArray(e)&&"number"!=typeof e[0],rh={linear:d,easeIn:ra,easeInOut:ru,easeOut:rl,circIn:eI,circInOut:eR,circOut:eP,backIn:ek,backInOut:eA,backOut:eT,anticipate:eC},rd=e=>{if(I(e)){d(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return e_(t,r,n,i)}return"string"==typeof e?(d(void 0!==rh[e],`Invalid easing type '${e}'`),rh[e]):e};function rf({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=rc(n)?n.map(rd):rd(n),o={done:!1,value:t[0]},s=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if(d(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let n=[],i=r||t7,o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);t&&(o=t1(Array.isArray(t)?t[r]||d:t,o)),n.push(o)}return n}(t,n,i),l=a.length,u=r=>{if(s&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let i=m(e[n],e[n+1],r);return a[n](i)};return r?t=>u(eM(e[0],e[o-1],t)):u}((r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=m(0,t,n);e.push(tq(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||ru).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let rp=e=>{let t=({timestamp:t})=>e(t);return{start:()=>V.update(t,!0),stop:()=>F(t),now:()=>U.isProcessing?U.timestamp:$.now()}},rm={decay:rs,inertia:rs,tween:rf,keyframes:rf,spring:ro},rg=e=>e/100;class ry extends tW{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:r,element:n,keyframes:i}=this.options,o=(null==n?void 0:n.KeyframeResolver)||tP;this.resolver=new o(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,r;let{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=A(n)?n:rm[n]||rf;l!==rf&&"number"!=typeof e[0]&&(t=t1(rg,t7(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=k(u));let{calculatedDuration:c}=u,h=c+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;en.mainThread++,this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);
1let{delay:h,repeat:d,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-h*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=i;if(d){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/c)):"mirror"===f&&(b=o)),v=eM(0,1,r)*c}let w=y?{done:!1,value:a[0]}:b.next(v);s&&(w.value=s(w.value));let{done:x}=w;y||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return _&&void 0!==n&&(w.value=t$(a,this.options,n)),m&&m(w.value),_&&this.finish(),w}get duration(){let{resolved:e}=this;return e?v(e.calculatedDuration):0}get time(){return v(this.currentTime)}set time(e){e=y(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=v(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=rp,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),en.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}
1let rv=new Set(["opacity","clipPath","filter","transform"]),rb=p(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rw={anticipate:eC,backInOut:eA,circInOut:eR};class rx extends tW{constructor(e){super(e);let{name:t,motionValue:r,element:n,keyframes:i}=this.options;this.resolver=new tB(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}initPlayback(e,t){var r;let{duration:n=300,times:i,ease:o,type:s,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof o&&R()&&o in rw&&(o=rw[o]),A((r=this.options).type)||"spring"===r.type||!function e(t){return!!("function"==typeof t&&R()||!t||"string"==typeof t&&(t in N||R())||I(t)||Array.isArray(t)&&t.every(e))}(r.ease)){let{onComplete:t,onUpdate:r,motionValue:a,element:l,...u}=this.options,c=function(e,t){let r=new ry({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},i=[],o=0;for(;!n.done&&o<2e4;)i.push((n=r.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),n=c.duration,i=c.times,o=c.ease,s="keyframes"}let c=function(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=function e(t,r){if(t)return"function"==typeof t&&R()?O(t,r):I(t)?M(t):Array.isArray(t)?t.map(t=>e(t,r)||N.easeOut):N[t]}(a,i);Array.isArray(c)&&(u.easing=c),D.value&&en.waapi++;let h=e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"});return D.value&&h.finished.finally(()=>{en.waapi--}),h}(a.owner.current,l,e,{...this.options,duration:n,times:i,ease:o});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(C(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;a.set(t$(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:i,type:s,ease:o,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return v(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return v(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=y(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return d;let{animation:r}=t;C(r,e)}else this.pendingTimeline=e;return d}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:n,type:i,ease:o,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new ry({...u,keyframes:r,duration:n,type:i,ease:o,times:s,isGenerator:!0}),h=y(this.time);e.setWithVelocity(c.sample(h-10).value,c.sample(h).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:o,type:s}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return rb()&&r&&rv.has(r)&&!a&&!l&&!n&&"mirror"!==i&&0!==o&&"inertia"!==s}}let r_={type:"spring",stiffness:500,damping:25,restSpeed:10},rE=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),rS={type:"keyframes",duration:.8},rT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rk=(e,{keyframes:t})=>t.length>2?rS:eh.has(e)?e.startsWith("scale")?rE(t[1]):r_:rT,rA=(e,t,r,n={},i,o)=>s=>{let a=T(n,e)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=y(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...rk(e,c)}),c.duration&&(c.duration=y(c.duration)),c.repeatDelay&&(c.repeatDelay=y(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(h=!0)),(ew.current||f.skipAnimations)&&(h=!0,c.duration=0,
1c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&void 0!==t.get()){let e=t$(c.keyframes,a);if(void 0!==e)return V.update(()=>{c.onUpdate(e),c.onComplete()}),new S([])}return!o&&rx.supports(c)?new rx(c):new ry(c)};function rC(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;n&&(s=n);let u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in l){let n=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),i=l[t];if(void 0===i||c&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(c,t))continue;let a={delay:r,...T(s||{},t)},h=!1;if(window.MotionHandoffAnimation){let r=e.props[eb];if(r){let e=window.MotionHandoffAnimation(r,t,V);null!==e&&(a.startTime=e,h=!0)}}ey(e,t),n.start(rA(t,n,i,e.shouldReduceMotion&&ed.has(t)?{type:!1}:a,e,h));let d=n.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{V.update(()=>{a&&function(e,t){let{transitionEnd:r={},transition:n={},...i}=x(e,t)||{};for(let t in i={...i,...r}){let r=em(i[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,eu(r))}}(e,a)})}),u}function rI(e,t,r={}){var n;let i=x(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>Promise.all(rC(e,i,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>a-e*n;return Array.from(e.variantChildren).sort(rP).forEach((e,n)=>{e.notify("AnimationStart",t),s.push(rI(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+n,s,a,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(r.delay)]);{let[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}}function rP(e,t){return e.sortNodePosition(t)}function rR(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function rO(e){return"string"==typeof e||Array.isArray(e)}let rM=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rN=["initial",...rM],rL=rN.length,rD=[...rM].reverse(),rj=rM.length;function rV(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rF(){return{animate:rV(!0),whileInView:rV(),whileHover:rV(),whileTap:rV(),whileDrag:rV(),whileFocus:rV(),exit:rV()}}class rU{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rB extends rU{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>rI(e,t,r)));else if("string"==typeof t)n=rI(e,t,r);else{let i="function"==typeof t?x(e,t,r.custom):t;n=Promise.all(rC(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=rF(),n=!0,i=t=>(r,n)=>{var i;let o=x(e,n,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...n}=o;r={...r,...n,...t}}return r};function o(o){let{props:s}=e,a=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<rL;e++){let n=rN[e],i=t.props[n];(rO(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},l=[],u=new Set,c={},h=1/0;for(let t=0;t<rj;t++){var d;let f=rD[t],p=r[f],m=void 0!==s[f]?s[f]:a[f],g=rO(m),y=f===o?p.isActive:null;!1===y&&(h=t);let v=m===a[f]&&m!==s[f]&&g;if(v&&n&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...c},!p.isActive&&null===y||!m&&!p.prevProp||b(m)||"boolean"==typeof m)continue;let w=(d=p.prevProp,"string"==typeof m?m!==d:!!Array.isArray(m)&&!rR(m,d)),x=w||f===o&&p.isActive&&!v&&g||t>h&&g,_=!1,E=Array.isArray(m)?m:[m],S=E.reduce(i(f),{});!1===y&&(S={});let{prevResolvedValues:T={}}=p,k={...T,...S},A=t=>{x=!0,u.has(t)&&(_=!0,u.delete(t)),p.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in k){let t=S[e],r=T[e];if(!c.hasOwnProperty(e))(ef(t)&&ef(r)?rR(t,r):t===r)?void 0!==t&&u.has(e)?A(e):p.protectedKeys[e]=!0:null!=t?A(e):u.add(e)}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(c={...c,...S}),n&&e.blockInitialAnimation&&(x=!1);let C=!(v&&w)||_;x&&C&&l.push(...E.map(e=>({animation:e,options:{type:f}})))}if(u.size){let t={};if("boolean"!=typeof s.initial){let r=x(e,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(t.transition=r.transition)}u.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=null!=n?n:null}),l.push({animation:t})}let f=!!l.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,f?t(l):Promise.resolve()}
1return{animateChanges:o,setActive:function(t,n){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let s=o(t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rF(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();b(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}let rz=0;class rH extends rU{constructor(){super(...arguments),this.id=rz++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}function r$(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function rW(e){return{point:{x:e.pageX,y:e.pageY}}}let rq=e=>t=>X(t)&&e(t,rW(t));function rG(e,t,r,n){return r$(e,t,rq(r),n)}function rK({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function rY(e){return e.max-e.min}function rX(e,t,r,n=.5){e.origin=n,e.originPoint=tq(t.min,t.max,e.origin),e.scale=rY(r)/rY(t),e.translate=tq(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rZ(e,t,r,n){rX(e.x,t.x,r.x,n?n.originX:void 0),rX(e.y,t.y,r.y,n?n.originY:void 0)}function rQ(e,t,r){e.min=r.min+t.min,e.max=e.min+rY(t)}function rJ(e,t,r){e.min=t.min-r.min,e.max=e.min+rY(t)}function r0(e,t,r){rJ(e.x,t.x,r.x),rJ(e.y,t.y,r.y)}let r1=()=>({translate:0,scale:1,origin:0,originPoint:0}),r2=()=>({x:r1(),y:r1()}),r4=()=>({min:0,max:0}),r3=()=>({x:r4(),y:r4()});function r5(e){return[e("x"),e("y")]}function r6(e){return void 0===e||1===e}function r8({scale:e,scaleX:t,scaleY:r}){return!r6(e)||!r6(t)||!r6(r)}function r7(e){return r8(e)||r9(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function r9(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function ne(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function nt(e,t=0,r=1,n,i){e.min=ne(e.min,t,r,n,i),e.max=ne(e.max,t,r,n,i)}function nr(e,{x:t,y:r}){nt(e.x,t.translate,t.scale,t.originPoint),nt(e.y,r.translate,r.scale,r.originPoint)}function nn(e,t){e.min=e.min+t,e.max=e.max+t}function ni(e,t,r,n,i=.5){let o=tq(e.min,e.max,i);nt(e,t,r,o,n)}function no(e,t){ni(e.x,t.x,t.scaleX,t.scale,t.originX),ni(e.y,t.y,t.scaleY,t.scale,t.originY)}function ns(e,t){return rK(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let na=({current:e})=>e?e.ownerDocument.defaultView:null;function nl(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nu=(e,t)=>Math.abs(e-t);class nc{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=nf(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(nu(e.x,t.x)**2+nu(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=U;this.history.push({...n,timestamp:i});let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>
1{this.lastMoveEvent=e,this.lastMoveEventInfo=nh(t,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nf("pointercancel"===e.type?this.lastMoveEventInfo:nh(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!X(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let o=nh(rW(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=U;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,nf(o,this.history)),this.removeListeners=t1(rG(this.contextWindow,"pointermove",this.handlePointerMove),rG(this.contextWindow,"pointerup",this.handlePointerUp),rG(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),F(this.updatePoint)}}function nh(e,t){return t?{point:t(e.point)}:e}function nd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nf({point:e},t){return{point:e,delta:nd(e,np(t)),offset:nd(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=np(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>y(.1)));)r--;if(!n)return{x:0,y:0};let o=v(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function np(e){return e[e.length-1]}function nm(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function ng(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function ny(e,t,r){return{min:nv(e,t),max:nv(e,r)}}function nv(e,t){return"number"==typeof e?e:e[t]||0}let nb=new WeakMap;class nw{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=r3(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new nc(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rW(e).point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===r||"y"===r?W[r]?null:(W[r]=!0,()=>{W[r]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),r5(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eK.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=rY(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&V.postRender(()=>i(e,t)),ey(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:s}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>r5(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:na(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&V.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!nx(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?tq(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?tq(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&nl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:nm(e.x,r,i),y:nm(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ny(e,"left","right"),y:ny(e,"to
1p","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&r5(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!nl(t))return!1;let n=t.current;d(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=ns(e,r),{scroll:i}=t;return i&&(nn(n.x,i.offset.x),nn(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),s={x:ng((e=i.layout.layoutBox).x,o.x),y:ng(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=rK(e))}return s}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(r5(s=>{if(!nx(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return ey(this.visualElement,e),r.start(rA(e,r,0,t,this.visualElement,!1))}stopAnimation(){r5(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){r5(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){r5(t=>{let{drag:r}=this.getProps();if(!nx(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-tq(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!nl(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};r5(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=rY(e),i=rY(t);return i>n?r=m(t.min,t.max-n,e.min):n>i&&(r=m(e.min,e.max-i,t.min)),eM(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),r5(t=>{if(!nx(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(tq(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;nb.set(this.visualElement,this);let e=rG(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nl(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),V.read(t);let i=r$(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(r5(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function nx(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class n_ extends rU{constructor(e){super(e),this.removeGroupControls=d,this.removeListeners=d,this.controls=new nw(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||d}unmount(){this.removeGroupControls(),this.removeListeners()}}let nE=e=>(t,r)=>{e&&V.postRender(()=>e(t,r))};
1class nS extends rU{constructor(){super(...arguments),this.removePointerDownListener=d}onPointerDown(e){this.session=new nc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:na(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nE(e),onStart:nE(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&V.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rG(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let nT=(0,u.createContext)(null),nk=(0,u.createContext)({}),nA=(0,u.createContext)({}),nC={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nP={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!eY.test(e))return e;e=parseFloat(e)}let r=nI(e,t.target.x),n=nI(e,t.target.y);return`${r}% ${n}%`}},nR={};class nO extends u.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;!function(e){for(let t in e)nR[t]=e[t],tM(t)&&(nR[t].isCSSVariable=!0)}(nN),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nC.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||V.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),z.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nM(e){let[t,r]=function(e=!0){let t=(0,u.useContext)(nT);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:n,register:i}=t,o=(0,u.useId)();(0,u.useEffect)(()=>{if(e)return i(o)},[e]);let s=(0,u.useCallback)(()=>e&&n&&n(o),[o,n,e]);return!r&&n?[!1,s]:[!0]}(),n=(0,u.useContext)(nk);return(0,s.jsx)(nO,{...e,layoutGroup:n,switchLayoutGroup:(0,u.useContext)(nA),isPresent:t,safeToRemove:r})}let nN={borderRadius:{...nP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nP,borderTopRightRadius:nP,borderBottomLeftRadius:nP,borderBottomRightRadius:nP,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e9.parse(e);if(n.length>5)return e;let i=e9.createTransformer(e),o="number"!=typeof n[0]?1:0,s=r.x.scale*t.x,a=r.y.scale*t.y;n[0+o]/=s,n[1+o]/=a;let l=tq(s,a,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}},nL=(e,t)=>e.depth-t.depth;class nD{constructor(){this.children=[],this.isDirty=!1}add(e){c(this.children,e),this.isDirty=!0}remove(e){h(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nL),this.isDirty=!1,this.children.forEach(e)}}function nj(e){let t=eg(e)?e.get():e;return ep(t)?t.toValue():t}let nV=["TopLeft","TopRight","BottomLeft","BottomRight"],nF=nV.length,nU=e=>"string"==typeof e?parseFloat(e):e,nB=e=>"number"==typeof e||eY.test(e);function nz(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nH=nW(0,.5,eP),n$=nW(.5,.95,d);function nW(e,t,r){return n=>n<e?0:n>t?1:r(m(e,t,n))}function nq(e,t){e.min=t.min,e.max=t.max}function nG(e,t){nq(e.x,t.x),nq(e.y,t.y)}function nK(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nY(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function nX(e,t,[r,n,i],o,s){!function(e,t=0,r=1,n=.5,i,o=e,s=e){if(eK.test(t)&&(t=parseFloat(t),t=tq(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tq(o.min,o.max,n);e===o&&(a-=t),e.min=nY(e.min,t,r,a,i),e.max=nY(e.max,t,r,a,i)}(e,t[r],t[n],t[i],t.scale,o,s)}let nZ=["x","scaleX","originX"],nQ=["y","scaleY","originY"];function nJ(e,t,r,n){nX(e.x,t,nZ,r?r.x:void 0,n?n.x:void 0),nX(e.y,t,nQ,r?r.y:void 0,n?n.y:void 0)}function n0(e){return 0===e.translate&&1===e.scale}function n1(e){return n0(e.x)&&n0(e.y)}function n2(e,t){return e.min===t.min&&e.max===t.max}function n4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function n3(e,t){return n4(e.x,t.x)&&n4(e.y,t.y)}function n5(e){return rY(e.x)/rY(e.y)}function n6(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class n8{constructor(){this.members=[]}add(e){c(this.members,e),e.scheduleRender()}remove(e){if(h(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let n7={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},n9=["","X","Y","Z"],ie={visibility:"hidden"},it=0;function ir(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function ii({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=it++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,D.value&&(n7.nodes=n7.calculatedTargetDeltas=n7.calculatedProjections=0),this.nodes.forEach(ia),this.nodes.forEach(im),this.nodes.forEach(ig),this.nodes.forEach(il),D.addProjectionMetrics&&D.addProjectionMetrics(n7)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nD)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new g),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=$.now(),n=({timestamp:t})=>{let i=t-r;i>=250&&(F(n),e(i-250))};return V.read(n,!0),()=>F(n)}(n,250),nC.hasAnimatedSinceResize&&(nC.hasAnimatedSinceResize=!1,this.nodes.forEach(ip))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||i_,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!n3(this.targetLayout,n),u=!t&&r;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...T(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ip(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,F(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(iy),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[eb];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ic);return}this.isUpdating||this.nodes.forEach(ih),this.isUpdating=!1,this.nodes.forEach(id),this.nodes.forEach(io),this.nodes.forEach(is),this.clearAllSnapshots();let e=$.now();U.delta=eM(0,1e3/60,e-U.timestamp),U.timestamp=e,U.isProcessing=!0,B.update.process(U),B.preRender.process(U),B.render.process(U),U.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,z.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iu),this.sharedNodes.forEach(iv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||rY(this.snapshot.measuredBox.x)||rY(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=r3(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!n1(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||r7(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),iT((t=n).x),iT(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return r3();let r=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(iA))){let{scroll:e}=this.root;e&&(nn(r.x,e.offset.x),nn(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=r3();if(nG(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let n=this.path[t],{scroll:i,options:o}=n;n!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&nG(r,e),nn(r.x,i.offset.x),nn(r.y,i.offset.y))}return r}applyTransform(e,t=!1){let r=r3();nG(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&no(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r7(n.latestValues)&&no(r,n.latestValues)}return r7(this.latestValues)&&no(r,this.latestValues),r}removeTransform(e){let t=r3();nG(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!r7(r.latestValues))continue;r8(r.latestValues)&&r.updateSnapshot();let n=r3();nG(n,r.measurePageBox()),nJ(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return r7(this.latestValues)&&nJ(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==U.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=U.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r3(),this.relativeTargetOrigin=r3(),r0(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nG(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=r3(),this.targetWithTransforms=r3()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,rQ(r.x,n.x,i.x),rQ(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nG(this.target,this.layout.layoutBox),nr(this.target,this.targetDelta)):nG(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r3(),this.relativeTargetOrigin=r3(),r0(this.relativeTargetOrigin,this.target,e.target),nG(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}D.value&&n7.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||r8(this.parent.latestValues)||r9(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===U.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;nG(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,n=!1){let i,o;let s=r.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=r[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&no(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nr(e,o)),n&&r7(i.latestValues)&&no(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=r3());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nK(this.prevProjectionDelta.x,this.projectionDelta.x),nK(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rZ(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&n6(this.projectionDelta.x,this.prevProjectionDelta.x)&&n6(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),D.value&&n7.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=r2(),this.projectionDelta=r2(),this.projectionDeltaWithTransform=r2()}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},s=r2();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=r3(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(ix));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(ib(s.x,e.x,n),ib(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;r0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,iw(f.x,p.x,a.x,n),iw(f.y,p.y,a.y,n),r&&(u=this.relativeTarget,d=r,n2(u.x,d.x)&&n2(u.y,d.y))&&(this.isProjectionDirty=!1),r||(r=r3()),nG(r,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=tq(0,void 0!==r.opacity?r.opacity:1,nH(n)),e.opacityExit=tq(void 0!==t.opacity?t.opacity:1,0,n$(n))):o&&(e.opacity=tq(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<nF;i++){let o=`border${nV[i]}Radius`,s=nz(t,o),a=nz(r,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||nB(s)===nB(a)?(e[o]=Math.max(tq(nU(s),nU(a),n),0),(eK.test(a)||eK.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||r.rotate)&&(e.rotate=tq(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(F(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{nC.hasAnimatedSinceResize=!0,en.layout++,this.currentAnimation=function(e,t,r){let n=eg(0)?0:eu(0);return n.start(rA("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{en.layout--},onComplete:()=>{en.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ik(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||r3();let t=rY(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rY(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nG(t,r),no(t,i),rZ(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new n8),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&ir("z",e,n,this.animationValues);for(let t=0;t<n9.length;t++)ir(`rotate${n9[t]}`,e,n,this.animationValues),ir(`skew${n9[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ie;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=nj(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nj(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!r7(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,r){let n="",i=e.x.translate/t.x,o=e.
1y.translate/t.y,s=(null==r?void 0:r.z)||0;if((i||o||s)&&(n=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:s,skewY:a}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),o&&(n+=`rotateY(${o}deg) `),s&&(n+=`skewX(${s}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(n.transform=i(s,n.transform));let{x:a,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:n.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,nR){if(void 0===s[e])continue;let{correct:t,applyTo:r,isCSSVariable:i}=nR[e],a="none"===n.transform?s[e]:t(s[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=a}else i?this.options.visualElement.renderState.vars[e]=a:n[e]=a}return this.options.layoutId&&(n.pointerEvents=o===this?nj(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(ic),this.root.sharedNodes.clear()}}}function io(e){e.updateLayout()}function is(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?r5(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=rY(n);n.min=t[e].min,n.max=n.min+i}):ik(i,r.layoutBox,t)&&r5(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],s=rY(t[n]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+s)});let s=r2();rZ(s,t,r.layoutBox);let a=r2();o?rZ(a,e.applyTransform(n,!0),r.measuredBox):rZ(a,t,r.layoutBox);let l=!n1(s),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let s=r3();r0(s,r.layoutBox,i.layoutBox);let a=r3();r0(a,t,o.layoutBox),n3(s,a)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ia(e){D.value&&n7.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function il(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iu(e){e.clearSnapshot()}function ic(e){e.clearMeasurements()}function ih(e){e.isLayoutDirty=!1}function id(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ip(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function im(e){e.resolveTargetDelta()}function ig(e){e.calcProjection()}function iy(e){e.resetSkewAndRotation()}function iv(e){e.removeLeadSnapshot()}function ib(e,t,r){e.translate=tq(t.translate,0,r),e.scale=tq(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function iw(e,t,r,n){e.min=tq(t.min,r.min,n),e.max=tq(t.max,r.max,n)}function ix(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let i_={duration:.45,ease:[.4,0,.1,1]},iE=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iS=iE("applewebkit/")&&!iE("chrome/")?Math.round:d;function iT(e){e.min=iS(e.min),e.max=iS(e.max)}function ik(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n5(t)-n5(r)))}function iA(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let iC=ii({attachResizeListener:(e,t)=>r$(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iI={current:void 0},iP=ii({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iI.current){let e=new iC({});e.mount(window),e.setOptions({layoutScroll:!0}),iI.current=e}return iI.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function iR(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&V.postRender(()=>i(t,rW(t)))}class iO extends rU{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,o]=q(e,r),s=e=>{if(!G(e))return;let{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;let o=e=>{G(e)&&(n(e),r.removeEventListener("pointerleave",o))};r.addEventListener("pointerleave",o,i)};return n.forEach(e=>{e.addEventListener("pointerenter",s,i)}),o}(e,(e,t)=>(iR(this.node,t,"Start"),e=>iR(this.node,e,"End"))))}unmount(){}}class iM extends rU{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=t1(r$(this.node.current,"focus",()=>this.onFocus()),r$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function iN(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&V.postRender(()=>i(t,rW(t)))}class iL extends rU{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,o]=q(e,r),s=e=>{let r=e.currentTarget;if(!r||!er(e)||Q.has(r))return;Q.add(r),K(e,"set");let n=t(r,e),o=(e,t)=>{r.removeEventListener("pointerup",s),r.removeEventListener("pointercancel",a),K(e,"release"),er(e)&&Q.has(r)&&(Q.delete(r),"function"==typeof n&&n(e,{success:t}))},s=e=>{var t;e.isTrusted&&(t=r instanceof Element?r.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight},e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)?o(e,!1):o(e,!(r instanceof Element)||Y(r,e.target))},a=e=>{o(e,!1)};r.addEventListener("pointerup",s,i),r.addEventListener("pointercancel",a,i),r.addEventListener("lostpointercapture",a,i)};return n.forEach(e=>{e=r.useGlobalTarget?window:e;let t=!1;if(e instanceof HTMLElement){var n;t=!0,n=e,Z.has(n.tagName)||-1!==n.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0)}e.addEventListener("pointerdown",s,i),t&&e.addEventListener("focus",e=>et(e,i),i)}),o}(e,(e,t)=>(iN(this.node,t,"Start"),(e,{success:t})=>iN(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let iD=new WeakMap,ij=new WeakMap,iV=e=>{let t=iD.get(e.target);t&&t(e)},iF=e=>{e.forEach(iV)},iU={some:0,all:1};class iB extends rU{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:iU[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;ij.has(r)||ij.set(r,{});let n=ij.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(iF,{root:e,...t})),n[i]}(t);return iD.set(e,r),n.observe(e),()=>{iD.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let iz=(0,u.createContext)({strict:!1}),iH=(0,u.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),i$=(0,u.createContext)({});function iW(e){return b(e.animate)||rN.some(t=>rO(e[t]))}function iq(e){return!!(iW(e)||e.variants)}function iG(e){return Array.isArray(e)?e.join(" "):e}let iK="undefined"!=typeof window,iY={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},iX={};for(let e in iY)iX[e]={isEnabled:t=>iY[e].some(e=>!!t[e])};let iZ=Symbol.for("motionComponentSymbol"),iQ=iK?u.useLayoutEffect:u.useEffect;function iJ(e,{layout:t,layoutId:r}){return eh.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!nR[e]||"opacity"===e)}let i0=(e,t)=>t&&"number"==typeof e?t.transform(e):e,i1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},i2=ec.length;function i4(e,t,r){let{style:n,vars:i,transformOrigin:o}=e,s=!1,a=!1;for(let e in t){let r=t[e];if(eh.has(e)){s=!0;continue}
1if(tM(e)){i[e]=r;continue}{let t=i0(r,to[e]);e.startsWith("origin")?(a=!0,o[e]=t):n[e]=t}}if(!t.transform&&(s||r?n.transform=function(e,t,r){let n="",i=!0;for(let o=0;o<i2;o++){let s=ec[o],a=e[s];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a))||r){let e=i0(a,to[s]);if(!l){i=!1;let t=i1[s]||s;n+=`${t}(${e}) `}r&&(t[s]=e)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;n.transformOrigin=`${e} ${t} ${r}`}}let i3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function i5(e,t,r){for(let n in t)eg(t[n])||iJ(n,r)||(e[n]=t[n])}let i6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function i8(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||i6.has(e)}let i7=e=>!i8(e);try{!function(e){e&&(i7=t=>t.startsWith("on")?!i8(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let i9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function oe(e){if("string"!=typeof e||e.includes("-"));else if(i9.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let ot={offset:"stroke-dashoffset",array:"stroke-dasharray"},or={offset:"strokeDashoffset",array:"strokeDasharray"};function on(e,t,r){return"string"==typeof e?e:eY.transform(t+r*e)}function oi(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(i4(e,u,h),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:p}=e;d.transform&&(p&&(f.transform=d.transform),delete d.transform),p&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,r){let n=on(t,e.x,e.width),i=on(r,e.y,e.height);return`${n} ${i}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==s&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?ot:or;e[o.offset]=eY.transform(-n);let s=eY.transform(t),a=eY.transform(r);e[o.array]=`${s} ${a}`}(d,s,a,l,!1)}let oo=()=>({...i3(),attrs:{}}),os=e=>"string"==typeof e&&"svg"===e.toLowerCase(),oa=e=>(t,r)=>{let n=(0,u.useContext)(i$),i=(0,u.useContext)(nT),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},n,i,o){let s={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=nj(o[e]);let{initial:s,animate:a}=e,l=iW(e),u=iq(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!r&&!1===r.initial,h=(c=c||!1===s)?a:s;if(h&&"boolean"!=typeof h&&!b(h)){let t=Array.isArray(h)?h:[h];for(let r=0;r<t.length;r++){let n=w(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,i,o,e),renderState:t()};return r&&(s.onMount=e=>r({props:n,current:e,...s}),s.onUpdate=e=>r(e)),s})(e,t,n,i);return r?o():function(e){let t=(0,u.useRef)(null);return null===t.current&&(t.current=e()),t.current}(o)};function ol(e,t,r){var n;let{style:i}=e,o={};for(let s in i)(eg(i[s])||t.style&&eg(t.style[s])||iJ(s,e)||(null===(n=null==r?void 0:r.getValue(s))||void 0===n?void 0:n.liveStyle)!==void 0)&&(o[s]=i[s]);return o}let ou={useVisualState:oa({scrapeMotionValuesFromProps:ol,createRenderState:i3})};function oc(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}function oh(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let od=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function of(e,t,r,n){for(let r in oh(e,t,void 0,n),t.attrs)e.setAttribute(od.has(r)?r:ev(r),t.attrs[r])}function op(e,t,r){let n=ol(e,t,r);for(let r in e)(eg(e[r])||eg(t[r]))&&(n[-1!==ec.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}let om=["x","y","width","height","cx","cy","r"],og={useVisualState:oa({scrapeMotionValuesFromProps:op,createRenderState:oo,onUpdate:({props:e,prevProps:t,current:r,render
1State:n,latestValues:i})=>{if(!r)return;let o=!!e.drag;if(!o){for(let e in i)if(eh.has(e)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let r=0;r<om.length;r++){let n=om[r];e[n]!==t[n]&&(s=!0)}s&&V.read(()=>{oc(r,n),V.render(()=>{oi(n,i,os(r.tagName),e.transformTemplate),of(r,n)})})}})},oy={current:null},ov={current:!1},ob=[...tF,e0,e9],ow=e=>ob.find(tV(e)),ox=new WeakMap,o_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class oE{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tP,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=$.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,V.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=iW(t),this.isVariantNode=iq(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==a[e]&&eg(t)&&t.set(a[e],!1)}}mount(e){this.current=e,ox.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),ov.current||function(){if(ov.current=!0,iK){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oy.current=e.matches;e.addListener(t),t()}else oy.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||oy.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),F(this.notifyUpdate),F(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=eh.has(e);n&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&V.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in iX){let t=iX[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):r3()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<o_.length;t++){let r=o_[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],o=r[n];if(eg(i))e.addValue(n,i);else if(eg(o))e.addValue(n,eu(i,{owner:e}));else if(o!==i){if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,eu(void 0!==t?t:i,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=eu(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(tR(n)||eO(n))?n=parseFloat(n):!ow(n)&&e9.test(t)&&(n=tl(e,t)),this.setBaseTarget(e,eg(n)?n.get():n)),eg(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=w(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||eg(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new g),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class oS extends oE{constructor(){super(...arguments),this.KeyframeResolver=tB}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eg(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class oT extends oS{constructor(){super(...arguments),this.type="html",this.renderInstance=oh}readValueFromInstance(e,t){if(eh.has(t))return tb(e,t);{let r=window.getComputedStyle(e),n=(tM(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ns(e,t)}build(e,t,r){i4(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return ol(e,t,r)}}class ok extends oS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=r3,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&oc(this.current,this.renderState)}}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(eh.has(t)){let e=ta(t);return e&&e.default||0}return t=od.has(t)?t:ev(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return op(e,t,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&V.postRender(this.updateDimensions)}build(e,t,r){oi(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){of(e,t,r,n)}mount(e){this.isSVGTag=os(e.tagName),super.mount(e)}}let oA=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}((i={animation:{Feature:rB},exit:{Feature:rH},inView:{Feature:iB},tap:{Feature:iL},focus:{Feature:iM},hover:{Feature:iO},pan:{Feature:nS},drag:{Feature:n_,ProjectionNode:iP,MeasureLayout:nM},layout:{ProjectionNode:iP,MeasureLayout:nM}},o=(e,t)=>oe(e)?new ok(t):new oT(t,{allowProjection:e!==u.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){var o,a;function l(e,o){var a;let l;let c={...(0,u.useContext)(iH),...e,layoutId:function({layoutId:e}){let t=(0,u.useContext)(nk).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:h}=c,d=function(e){let{initial:t,animate:r}=function(e,t){if(iW(e)){let{initial:t,animate:r}=e;return{initial:!1===t||rO(t)?t:void 0,animate:rO(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,u.useContext)(i$));return(0,u.useMemo)(()=>({initial:t,animate:r}),[iG(t),iG(r)])}(e),f=n(e,h);if(!h&&iK){(0,u.useContext)(iz).strict;let e=function(e){let{drag:t,layout:r}=iX;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(c);l=e.MeasureLayout,d.visualElement=function(e,t,r,n,i){var o,s;let{visualElement:a}=(0,u.useContext)(i$),l=(0,u.useContext)(iz),c=(0,u.useContext)(nT),h=(0,u.useContext)(iH).reducedMotion,d=(0,u.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:a,props:r,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:h}));let f=d.current,p=(0,u.useContext)(nA);f&&!f.projection&&i&&("html"===f.type||"svg"===f.type)&&function(e,t,r,n){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&nl(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,r,i,p);let m=(0,u.useRef)(!1);(0,u.useInsertionEffect)(()=>{f&&m.current&&f.update(r,c)});let g=r[eb],y=(0,u.useRef)(!!g&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,g))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,g)));return iQ(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),z.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),(0,u.useEffect)(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)}),y.current=!1))}),f}(i,f,c,t,e.ProjectionNode)}return(0,s.jsxs)(i$.Provider,{value:d,children:[l&&d.visualElement?(0,s.jsx)(l,{visualElement:d.visualElement,...c}):null,r(i,e,(a=d.visualElement,(0,u.useCallback)(e=>{e&&f.onMount&&f.onMount(e),a&&(e?a.mount(e):a.unmount()),o&&("function"==typeof o?o(e):nl(o)&&(o.current=e))},[a])),f,h,d.visualElement)]})}e&&function(e){for(let t in e)iX[t]={...iX[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof i?i:`create(${null!==(a=null!==(o=i.displayName)&&void 0!==o?o:i.name)&&void 0!==a?a:""})`}`;let c=(0,u.forwardRef)(l);return c[iZ]=i,c}({...oe(e)?og:ou,preloadedFeatures:i,useRender:function(e=!1){return(t,r,n,{latestValues:i},o)=>{let s=(oe(t)?function(e,t,r,n){let i=(0,u.useMemo)(()=>{let r=oo();return oi(r,t,os(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};i5(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r={},n=function(e,t){let r=e.style||{},n={};return i5(n,r,e),Object.assign(n,function({transformTemplate:e},t){return(0,u.useMemo)(()=>{let r=i3();return i4(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,i,o,t),a=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(i7(i)||!0===r&&i8(i)||!t&&!i8(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),l=t!==u.Fragment?{...a,...s,ref:n}:{},{children:c}=r,h=(0,u.useMemo)(()=>eg(c)?c.get():c,[c]);return(0,u.createElement)(t,{...l,children:h})}}(t),createVisualElement:o,Component:e})}));function oC(){let e="Loading...",[t,r]=(0,u.useState)("");return(0,u.useEffect)(()=>{let t=0,n=setInterval(()=>{r(e.substring(0,t+1)),t=(t+1)%(e.length+1)},100);return()=>clearInterval(n)},[]),(0,s.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center h-screen relative",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(l(),{src:"/images/logo/thenewyou_logo.jpeg",alt:"Logo",width:100,height:100,className:"mb-4 rounded-full animate-bounce",priority:!0}),(0,s.jsx)(oA.div,{className:"absolute bottom-[-10px] left-7 -translate-x-1/2 w-12 h-6 bg-black opacity-30 rounded-full blur-lg",animate:{scale:[1,1.2,1],opacity:[.2,.3,.2]},transition:{duration:.6,repeat:1/0}})]}),(0,s.jsx)("div",{className:"flex text-2xl font-bold",children:e.split("").map((e,t)=>(0,s.jsx)(oA.span,{initial:{opacity:0,y:-10}
1,animate:{opacity:1,y:0},transition:{delay:.1*t,repeat:1/0,repeatDelay:1},children:e},t))})]})}},78119:(e,t,r)=>{"use strict";r.d(t,{G:()=>o});var n=r(74848),i=r(11583);let o=[{name:"facebook",icon:(0,n.jsx)("svg",{className:"w-8 h-8",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z",clipRule:"evenodd"})}),label:"Facebook",input:"facebookUrl"},{name:"instagram",icon:(0,n.jsx)("svg",{className:"w-8 h-8","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 8a5 5 0 0 1 5-5h8a5 5 0 0 1 5 5v8a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5V8Zm5-3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3H8Zm7.597 2.214a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2h-.01a1 1 0 0 1-1-1ZM12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-5 3a5 5 0 1 1 10 0 5 5 0 0 1-10 0Z",clipRule:"evenodd"})}),label:"Instagram",input:"instagramUrl"},{name:"twitter",icon:(0,n.jsx)(i.TCj,{size:24}),label:"Twitter",input:"twitterUrl"},{name:"youtube",icon:(0,n.jsx)("svg",{className:"w-8 h-8","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M21.7 8.037a4.26 4.26 0 0 0-.789-1.964 2.84 2.84 0 0 0-1.984-.839c-2.767-.2-6.926-.2-6.926-.2s-4.157 0-6.928.2a2.836 2.836 0 0 0-1.983.839 4.225 4.225 0 0 0-.79 1.965 30.146 30.146 0 0 0-.2 3.206v1.5a30.12 30.12 0 0 0 .2 3.206c.094.712.364 1.39.784 1.972.604.536 1.38.837 2.187.848 1.583.151 6.731.2 6.731.2s4.161 0 6.928-.2a2.844 2.844 0 0 0 1.985-.84 4.27 4.27 0 0 0 .787-1.965 30.12 30.12 0 0 0 .2-3.206v-1.516a30.672 30.672 0 0 0-.202-3.206Zm-11.692 6.554v-5.62l5.4 2.819-5.4 2.801Z",clipRule:"evenodd"})}),label:"Youtube",input:"youtubeUrl"},{name:"tiktok",icon:(0,n.jsx)("svg",{fill:"currentColor",className:"w-8 h-8",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",children:(0,n.jsx)("path",{d:"M19.589 6.686a4.793 4.793 0 0 1-3.77-4.245V2h-3.445v13.672a2.896 2.896 0 0 1-5.201 1.743l-.002-.001.002.001a2.895 2.895 0 0 1 3.183-4.51v-3.5a6.329 6.329 0 0 0-5.394 10.692 6.33 6.33 0 0 0 10.857-4.424V8.687a8.182 8.182 0 0 0 4.773 1.526V6.79a4.831 4.831 0 0 1-1.003-.104z"})}),label:"Tiktok",input:"tiktokUrl"},{name:"line",icon:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",id:"Capa_1",className:"w-7 h-7",fill:"currentColor",version:"1.1",viewBox:"0 0 296.528 296.528",children:(0,n.jsx)("path",{d:"m295.838 115.347.003-.001-.092-.76a.4.4 0 0 0-.008-.068l-.344-2.858-.238-1.974-.072-.594-.147.018c-3.617-20.571-13.553-40.093-28.942-56.762-15.317-16.589-35.217-29.687-57.548-37.878-19.133-7.018-39.434-10.577-60.337-10.577-28.22 0-55.627 6.637-79.257 19.193C23.289 47.297-3.585 91.799.387 136.461c2.056 23.111 11.11 45.11 26.184 63.621 14.188 17.423 33.381 31.483 55.503 40.66 13.602 5.642 27.051 8.301 41.291 11.116l1.667.33c3.921.776 4.975 1.842 5.247 2.264.503.784.24 2.329.038 3.18q-.28 1.177-.57 2.352c-1.529 6.235-3.11 12.683-1.868 19.792 1.428 8.172 6.531 12.859 14.001 12.86h.002c8.035 0 17.18-5.39 23.231-8.956l.808-.475c14.436-8.478 28.036-18.041 38.271-25.425 22.397-16.159 47.783-34.475 66.815-58.17 19.165-23.865 28.193-54.532 24.831-84.263M92.343 160.561H66.761a7 7 0 0 1-7-7V99.865a7 7 0 1 1 14 0v46.696h18.581a7 7 0 0 1 .001 14m26.687-7.19a7 7 0 1 1-14 0V99.675a7 7 0 1 1 14 0zm63.274 0a7 7 0 0 1-12.665 4.113l-25.207-34.717v30.605a7 7 0 1 1-14 0v-52.16a7 7 0 0 1 12.665-4.113l25.207 34.717V99.675a7 7 0 1 1 14 0zm51.007 5.898h-34.645a7 7 0 0 1-7-7V98.573a7 7 0 0 1 7-7h33.57a7 7 0 1 1 0 14h-26.57v12.849h21.562a7 7 0 1 1 0 14h-21.562v12.847h27.645a7 7 0 1 1 0 14"})}),label:"Line",input:"lineUrl"}]},16047:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(96540),i=r(79219),o=r(71884);
1function s(e){let[t,r]=(0,n.useState)([]),[s,a]=(0,n.useState)(!0),[l,u]=(0,n.useState)(null),c=async()=>{a(!0),u(null);try{let t=(await (0,o.GG)((0,o.rJ)(i.db,e))).docs.map(e=>({id:e.id,...e.data()}));return r(t),t}catch(e){return u(e.message),[]}finally{a(!1)}},h=async t=>{u(null);try{return(await (0,o.gS)((0,o.rJ)(i.db,e),t)).id}catch(e){return u(e.message),null}},d=async(t,r)=>{u(null);try{let n=(0,o.H9)(i.db,e,t);return await (0,o.mZ)(n,r),!0}catch(e){return u(e.message),!1}},f=async t=>{u(null);try{let r=(0,o.H9)(i.db,e,t);return await (0,o.kd)(r),!0}catch(e){return u(e.message),!1}};return(0,n.useEffect)(()=>{c()},[e]),{data:t,loading:s,error:l,getAll:c,getById:(t,r)=>{a(!0),u(null);let n=(0,o.H9)(i.db,e,t);return(0,o.aQ)(n,e=>{e.exists()?r({id:e.id,...e.data()}):r(null),a(!1)},e=>{u(e.message),a(!1)})},add:h,update:d,remove:f,subscribe:t=>(0,o.aQ)((0,o.rJ)(i.db,e),e=>{let n=e.docs.map(e=>({id:e.id,...e.data()}));r(n),t(n)})}}},47719:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(96540),i=r(87867),o=r(28408);function s(){let[e,t]=(0,n.useState)("th"),[r,s]=(0,n.useState)(i),[a,l]=(0,n.use
1State)("th"),u={th:i,en:o};return(0,n.useEffect)(()=>{let e=localStorage.getItem("language")||"th";t(e),s(u[e]),l(e)},[]),{language:e,lang:r||{},changeLanguage:r=>{e!==r&&(localStorage.setItem("language",r),t(r),s(u[r]),setTimeout(()=>{window.location.reload()},100))},t:t=>(null==t?void 0:t[e])||(null==t?void 0:t.th)||"",selectedLang:a}}},71493:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(96540),i=r(34164),o=r(75659),s=r(3552),a=r(98301),l=r(62849),u=r(93381),c=r(38413),h=r(57936);function d(e){return(0,h.Ay)("MuiBackdrop",e)}(0,c.A)("MuiBackdrop",["root","invisible"]);var f=r(74848);let p=e=>{let{classes:t,invisible:r}=e;return(0,o.A)({root:["root",r&&"invisible"]},d,t)},m=(0,s.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),g=n.forwardRef(function(e,t){let r=(0,a.b)({props:e,name:"MuiBackdrop"}),{children:n,className:o,component:s="div",invisible:c=!1,open:h,components:d={},componentsProps:g={},slotProps:y={},slots:v={},TransitionComponent:b,transitionDuration:w,...x}
1=r,_={...r,component:s,invisible:c},E=p(_),S={slots:{transition:b,root:d.Root,...v},slotProps:{...g,...y}},[T,k]=(0,l.A)("root",{elementType:m,externalForwardedProps:S,className:(0,i.A)(E.root,o),ownerState:_}),[A,C]=(0,l.A)("transition",{elementType:u.A,externalForwardedProps:S,ownerState:_});return(0,f.jsx)(A,{in:h,timeout:w,...x,...C,children:(0,f.jsx)(T,{"aria-hidden":!0,...k,classes:E,ref:t,children:n})})})},95109:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(96540),i=r(34164),o=r(8299),s=r(75659),a=r(79329);let l=function(e){let{badgeContent:t,invisible:r=!1,max:n=99,showZero:i=!1}=e,s=(0,o.A)({badgeContent:t,max:n}),a=r;!1!==r||0!==t||i||(a=!0);let{badgeContent:l,max:u=n}=a?s:e,c=l&&Number(l)>u?"".concat(u,"+"):l;return{badgeContent:l,invisible:a,max:u,displayValue:c}};var u=r(3552),c=r(50186),h=r(50172),d=r(98301),f=r(97306),p=r(38413),m=r(57936);function g(e){return(0,m.Ay)("MuiBadge",e)}let y=(0,p.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);var v=r(74848);let b=e=>{let{color:t,anchorOrigin:r,invisible:n,overlap:i,variant:o,classes:a={}}=e,l={root:["root"],badge:["badge",o,n&&"invisible","anchorOrigin".concat((0,f.A)(r.vertical)).concat((0,f.A)(r.horizontal)),"anchorOrigin".concat((0,f.A)(r.vertical)).concat((0,f.A)(r.horizontal)).concat((0,f.A)(i)),"overlap".concat((0,f.A)(i)),"default"!==t&&"color".concat((0,f.A)(t))]};return(0,s.A)(l,g,a)},w=(0,u.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),x=(0,u.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.badge,t[r.variant],t["anchorOrigin".concat((0,f.A)(r.anchorOrigin.vertical)).concat((0,f.A)(r.anchorOrigin.horizontal)).concat((0,f.A)(r.overlap))],"default"!==r.color&&t["color".concat((0,f.A)(r.color))],r.invisible&&t.invisible]}})((0,c.A)(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.entries(t.palette).filter((0,h.A)(["contrastText"])).map(e=>{let[r]=e;return{props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main,color:(t.vars||t).palette[r].contrastText}}}),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(y.invisible)]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(y.invisible)]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(y.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(y.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap}
1,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(y.invisible)]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(y.invisible)]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(y.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(y.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}}));function _(e){var t,r;return{vertical:null!==(t=null==e?void 0:e.vertical)&&void 0!==t?t:"top",horizontal:null!==(r=null==e?void 0:e.horizontal)&&void 0!==r?r:"right"}}let E=n.forwardRef(function(e,t){var r,n,s,u,c,h;let f=(0,d.b)({props:e,name:"MuiBadge"}),{anchorOrigin:p,className:m,classes:g,component:y,components:E={},componentsProps:S={},children:T,overlap:k="rectangular",color:A="default",invisible:C=!1,max:I=99,badgeContent:P,slots:R,slotProps:O,showZero:M=!1,variant:N="standard",...L}=f,{badgeContent:D,invisible:j,max:V,displayValue:F}=l({max:I,invisible:C,badgeContent:P,showZero:M}),U=(0,o.A)({anchorOrigin:_(p),color:A,overlap:k,variant:N,badgeContent:P}),B=j||null==D&&"dot"!==N,{color:z=A,overlap:H=k,anchorOrigin:$,variant:W=N}=B?U:f,q=_($),G="dot"!==W?F:void 0,K={...f,badgeContent:D,invisible:B,max:V,displayValue:G,showZero:M,anchorOrigin:q,color:z,overlap:H,variant:W},Y=b(K),X=null!==(n=null!==(r=null==R?void 0:R.root)&&void 0!==r?r:E.Root)&&void 0!==n?n:w,Z=null!==(u=null!==(s=null==R?void 0:R.badge)&&void 0!==s?s:E.Badge)&&void 0!==u?u:x,Q=null!==(c=null==O?void 0:O.root)&&void 0!==c?c:S.root,J=null!==(h=null==O?void 0:O.badge)&&void 0!==h?h:S.badge,ee=(0,a.A)({elementType:X,externalSlotProps:Q,externalForwardedProps:L,additionalProps:{ref:t,as:y},ownerState:K,className:(0,i.A)(null==Q?void 0:Q.className,Y.root,m)}),et=(0,a.A)({elementType:Z,externalSlotProps:J,ownerState:K,className:(0,i.A)(Y.badge,null==J?void 0:J.className)});return(0,v.jsxs)(X,{...ee,children:[T,(0,v.jsx)(Z,{...et,children:G})]})})},74874:(e,t,r)=>{"use strict";r.d(t,{A:()=>H});var n=r(96540),i=r(34164),o=r(75659),s=r(24899),a=r(3552),l=r(98301),u=r(13372),c=r(75170),h=r(72295);class d{static create(){return new d}static use(){let e=(0,h.A)(d.create).current,[t,r]=n.useState(!1);return e.shouldMount=t,e.setShouldMount=r,n.useEffect(e.mountEffect,[t]),e}mount(){return this.mounted||(this.mounted=function(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.mount().then(()=>{var e;return null===(e=this.ref.current)||void 0===e?void 0:e.start(...t)})}stop(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.mount().then(()=>{var e;return null===(e=this.ref.current)||void 0===e?void 0:e.stop(...t)})}pulsate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.mount().then(()=>{var e;return null===(e=this.ref.current)||void 0===e?void 0:e.pulsate(...t)})}constructor(){this.mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())},this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}}var f=r(84577),p=r(98587),m=r(58168),g=r(42892),y=r(17241);function v(e,t){var r=Object.create(null);return e&&n.Children.map(e,function(e){return e}
1).forEach(function(e){r[e.key]=t&&(0,n.isValidElement)(e)?t(e):e}),r}function b(e,t,r){return null!=r[t]?r[t]:e.props[t]}var w=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},x=function(e){function t(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,g.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,i,o=t.children,s=t.handleExited;return{children:t.firstRender?v(e.children,function(t){return(0,n.cloneElement)(t,{onExited:s.bind(null,t),in:!0,appear:b(t,"appear",e),enter:b(t,"enter",e),exit:b(t,"exit",e)})}):(Object.keys(i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var u=i[l][n];a[i[l][n]]=r(u)}a[l]=r(l)}for(n=0;n<o.length;n++)a[o[n]]=r(o[n]);return a}(o,r=v(e.children))).forEach(function(t){var a=i[t];if((0,n.isValidElement)(a)){var l=t in o,u=t in r,c=o[t],h=(0,n.isValidElement)(c)&&!c.props.in;u&&(!l||h)?i[t]=(0,n.cloneElement)(a,{onExited:s.bind(null,a),in:!0,exit:b(a,"exit",e),enter:b(a,"enter",e)}):u||!l||h?u&&l&&(0,n.isValidElement)(c)&&(i[t]=(0,n.cloneElement)(a,{onExited:s.bind(null,a),in:c.props.in,exit:b(a,"exit",e),enter:b(a,"enter",e)})):i[t]=(0,n.cloneElement)(a,{in:!1})}}),i),firstRender:!1}},r.handleExited=function(e,t){var r=v(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,m.A)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=(0,p.A)(e,["component","childFactory"]),o=this.state.contextValue,s=w(this.state.children).map(r);return(delete i.appear,delete i.enter,delete i.exit,null===t)?n.createElement(y.A.Provider,{value:o},s):n.createElement(y.A.Provider,{value:o},n.createElement(t,i,s))},t}(n.Component);x.propTypes={},x.defaultProps={component:"div",childFactory:function(e){return e}};var _=r(88535),E=r(17437),S=r(74848),T=r(38413);let k=(0,T.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function A(){let e=(0,f._)(["\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n"]);return A=function(){return e},e}function C(){let e=(0,f._)(["\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n"]);return C=function(){return e},e}function I(){let e=(0,f._)(["\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n"]);return I=function(){return e},e}function P(){let e=(0,f._)(["\n  opacity: 0;\n  position: absolute;\n\n  &."," {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  &."," {\n    animation-duration: ","ms;\n  }\n\n  & ."," {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & ."," {\n    opacity: 0;\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  & ."," {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ",";\n    animation-duration: 2500ms;\n    animation-timing-function: ",";\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n"]);return P=function(){return e},e}let R=(0,E.i7)(A()),O=(0,E.i7)(C()),M=(0,E.i7)(I()),N=(0,a.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),L=(0,a.Ay)(function(e){let{className:t,classes:r,pulsate:o=!1,rippleX:s,r
1ippleY:a,rippleSize:l,in:u,onExited:c,timeout:h}=e,[d,f]=n.useState(!1),p=(0,i.A)(t,r.ripple,r.rippleVisible,o&&r.ripplePulsate),m=(0,i.A)(r.child,d&&r.childLeaving,o&&r.childPulsate);return u||d||f(!0),n.useEffect(()=>{if(!u&&null!=c){let e=setTimeout(c,h);return()=>{clearTimeout(e)}}},[c,u,h]),(0,S.jsx)("span",{className:p,style:{width:l,height:l,top:-(l/2)+a,left:-(l/2)+s},children:(0,S.jsx)("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})(P(),k.rippleVisible,R,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},k.ripplePulsate,e=>{let{theme:t}=e;return t.transitions.duration.shorter},k.child,k.childLeaving,O,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},k.childPulsate,M,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),D=n.forwardRef(function(e,t){let{center:r=!1,classes:o={},className:s,...a}=(0,l.b)({props:e,name:"MuiTouchRipple"}),[u,c]=n.useState([]),h=n.useRef(0),d=n.useRef(null);n.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);let f=n.useRef(!1),p=(0,_.A)(),m=n.useRef(null),g=n.useRef(null),y=n.useCallback(e=>{let{pulsate:t,rippleX:r,rippleY:n,rippleSize:s,cb:a}=e;c(e=>[...e,(0,S.jsx)(L,{classes:{ripple:(0,i.A)(o.ripple,k.ripple),rippleVisible:(0,i.A)(o.rippleVisible,k.rippleVisible),ripplePulsate:(0,i.A)(o.ripplePulsate,k.ripplePulsate),child:(0,i.A)(o.child,k.child),childLeaving:(0,i.A)(o.childLeaving,k.childLeaving),childPulsate:(0,i.A)(o.childPulsate,k.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:s},h.current)]),h.current+=1,d.current=a},[o]),v=n.useCallback(function(){let e,t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:a=!1,center:l=r||o.pulsate,fakeElement:u=!1}=o;if((null==i?void 0:i.type)==="mousedown"&&f.current){f.current=!1;return}(null==i?void 0:i.type)==="touchstart"&&(f.current=!0);let c=u?null:g.current,h=c?c.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!l&&void 0!==i&&(0!==i.clientX||0!==i.clientY)&&(i.clientX||i.touches)){let{clientX:r,clientY:n}=i.touches&&i.touches.length>0?i.touches[0]:i;e=Math.round(r-h.left),t=Math.round(n-h.top)}else e=Math.round(h.width/2),t=Math.round(h.height/2);l?(n=Math.sqrt((2*h.width**2+h.height**2)/3))%2==0&&(n+=1):n=Math.sqrt((2*Math.max(Math.abs((c?c.clientWidth:0)-e),e)+2)**2+(2*Math.max(Math.abs((c?c.clientHeight:0)-t),t)+2)**2),(null==i?void 0:i.touches)?null===m.current&&(m.current=()=>{y({pulsate:a,rippleX:e,rippleY:t,rippleSize:n,cb:s})},p.start(80,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:a,rippleX:e,rippleY:t,rippleSize:n,cb:s})},[r,y,p]),b=n.useCallback(()=>{v({},{pulsate:!0})},[v]),w=n.useCallback((e,t)=>{if(p.clear(),(null==e?void 0:e.type)==="touchend"&&m.current){m.current(),m.current=null,p.start(0,()=>{w(e,t)});return}m.current=null,c(e=>e.length>0?e.slice(1):e),d.current=t},[p]);return n.useImperativeHandle(t,()=>({pulsate:b,start:v,stop:w}),[b,v,w]),(0,S.jsx)(N,{className:(0,i.A)(k.root,o.root,s),ref:g,...a,children:(0,S.jsx)(x,{component:null,exit:!0,children:u})})});var j=r(57936);function V(e){return(0,j.Ay)("MuiButtonBase",e)}let F=(0,T.A)("MuiButtonBase",["root","disabled","focusVisible"]),U=e=>{let{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,s=(0,o.A)({root:["root",t&&"disabled",r&&"focusVisible"]},V,i);return r&&n&&(s.root+=" ".concat(n)),s},B=(0,a.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(F.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});function z(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,c.A)(i=>(r&&r(i),n||e[t](i),!0))}let H=n.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:h,className:f,component:p="button",disabled:m=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:v=!1,focusVisibleClassName:b,LinkComponent:w="a",onBlur:x,onClick:_,onContextMenu:E,onDragLeave:T,onFocus:k,onFocusVisible:A,onKeyDown:C,onKeyUp:I,onMouseDown:P,onMouseLeave:R,onMouseUp:O,onTouchEnd:M,onTouchMove:N,onTouchStart:L,tabIndex:j=0,TouchRippleProps:V,touchRippleRef:F,type:H,...$}=r,W=n.useRef(null),q=d.use(),G=(0,u.A)(q.ref,F),[K,Y]=n.useState(!1);m&&K&&Y(!1),n.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),W.current.focus()}}),[]);let X=q.shouldMount&&!g&&!m;n.useEffect(()=>{K&&v&&!g&&q.pulsate()},[g,v,K,q]);let Z=z(q,"start",P,y),Q=z(q,"stop",E,y),J=z(q,"stop",T,y),ee=z(q,"stop",O,y),et=z(q,"stop",e=>{K&&e.preventDefault(),R&&R(e)},y),er=z(q,"start",L,y),en=z(q,"stop",M,y),ei=z(q,"stop",N,y),eo=z(q,"stop",e=>{(0,s.A)(e.target)||Y(!1),x&&x(e)},!1),es=(0,c.A)(e=>
1{W.current||(W.current=e.currentTarget),(0,s.A)(e.target)&&(Y(!0),A&&A(e)),k&&k(e)}),ea=()=>{let e=W.current;return p&&"button"!==p&&!("A"===e.tagName&&e.href)},el=(0,c.A)(e=>{v&&!e.repeat&&K&&" "===e.key&&q.stop(e,()=>{q.start(e)}),e.target===e.currentTarget&&ea()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ea()&&"Enter"===e.key&&!m&&(e.preventDefault(),_&&_(e))}),eu=(0,c.A)(e=>{v&&" "===e.key&&K&&!e.defaultPrevented&&q.stop(e,()=>{q.pulsate(e)}),I&&I(e),_&&e.target===e.currentTarget&&ea()&&" "===e.key&&!e.defaultPrevented&&_(e)}),ec=p;"button"===ec&&($.href||$.to)&&(ec=w);let eh={};"button"===ec?(eh.type=void 0===H?"button":H,eh.disabled=m):($.href||$.to||(eh.role="button"),m&&(eh["aria-disabled"]=m));let ed=(0,u.A)(t,W),ef={...r,centerRipple:a,component:p,disabled:m,disableRipple:g,disableTouchRipple:y,focusRipple:v,tabIndex:j,focusVisible:K},ep=U(ef);return(0,S.jsxs)(B,{as:ec,className:(0,i.A)(ep.root,f),ownerState:ef,onBlur:eo,onClick:_,onContextMenu:Q,onFocus:es,onKeyDown:el,onKeyUp:eu,onMouseDown:Z,onMouseLeave:et,onMouseUp:ee,onDragLeave:J,onTouchEnd:en,onTouchMove:ei,onTouchStart:er,ref:ed,tabIndex:m?-1:j,type:H,...eh,...$,children:[h,X?(0,S.jsx)(D,{ref:G,center:a,...V}):null]})})},98301:(e,t,r)=>{"use strict";r.d(t,{b:()=>i}),r(96540);var n=r(72221);function i(e){return(0,n.b)(e)}r(74848)},84061:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(96540),i=r(34164),o=r(75659),s=r(34661),a=r(97306),l=r(13459),u=r(93381),c=r(91703),h=r(38413),d=r(57936);function f(e){return(0,d.Ay)("MuiDialog",e)}let p=(0,h.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),m=n.createContext({});var g=r(71493),y=r(3552),v=r(42907),b=r(50186),w=r(98301),x=r(62849),_=r(74848);let E=(0,y.Ay)(g.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),S=e=>{let{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:s}=e,l={root:["root"],container:["container","scroll".concat((0,a.A)(r))],paper:["paper","paperScroll".concat((0,a.A)(r)),"paperWidth".concat((0,a.A)(String(n))),i&&"paperFullWidth",s&&"paperFullScreen"]};return(0,o.A)(l,f,t)},T=(0,y.Ay)(l.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),k=(0,y.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.container,t["scroll".concat((0,a.A)(r.scroll))]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),A=(0,y.Ay)(c.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,a.A)(r.scroll))],t["paperWidth".concat((0,a.A)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((0,b.A)(e=>{let{theme:t}=e;return{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:e=>{let{ownerState:t}=e;return!t.maxWidth},style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(p.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>"xs"!==e).map(e=>({props:{maxWidth:e},style:{maxWidth:"".concat(t.breakpoints.values[e]).concat(t.breakpoints.unit),["&.".concat(p.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:e=>{let{ownerState:t}=e;return t.fullWidth},style:{width:"calc(100% - 64px)"}},{props:e=>{let{ownerState:t}=e;return t.fullScreen},style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(p.paperScrollBody)]:{margin:0,maxWidth:"100%"}}}]}})),C=n.forwardRef(function(e,t){let r=(0,w.b)({props:e,name:"MuiDialog"}),o=(0,v.A)(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":h,"aria-modal":d=!0,BackdropComponent:f,BackdropProps:p,children:g,className:y,disableEscapeKeyDown:b=!1,fullScreen:C=!1,fullWidth:I=!1,maxWidth:P="sm",onBackdropClick:R,onClick:O,onClose:M,open:N,PaperComponent:L=c.A,PaperProps:D={},scroll:j="paper",slots:V={},slotProps:F={},TransitionComponent:U=u.A,transitionDuration:B=a,TransitionProps:z,...H}=r,$={...r,disableEscapeKeyDown:b,fullScreen:C,fullWidth:I,maxWidth:P,scroll:j},W=S($),q=n.useRef(),G=(0,s.A)(h),K=n.useMemo(()=>({titleId:G}),[G]),Y={slots:{transition:U,...V},slotProps:{transition:z,paper:D,backdrop:p,...F}},[X,Z]=(0,x.A)("root",{elementType:T,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:$,className:(0,i.A)(W.root,y),ref:t}),[Q,J]=(0,x.A)("backdrop",{elementType:E,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:$}),[ee,et]=(0,x.A)("paper",{elementType:A,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:$,className:(0,i.A)(W.paper,D.className)}),[er,en]=(0,x.A)("container",{elementType:k,externalForwardedProps:Y,ownerState:$,className:(0,i.A)(W.container)}),[ei,eo]=(0,x.A)("transition",{elementType:u.A,externalForwardedProps:Y,ownerState:$,additionalProps:{appear:!0,in:N,timeout:B,role:"presentation"}});return(0,_.jsx)(X,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:B,as:f,...J}},disableEscapeKeyDown:b,onClose:M,open:N,onClick:e=>{O&&O(e),q.current&&(q.current=null,R&&R(e),M&&M(e,"backdropClick"))},...Z,...H,children:(0,_.jsx)(ei,{...eo,children:(0,_.jsx)(er,{onMouseDown:e=>{q.current=e.target===e.currentTarget},...en,children:(0,_.jsx)(ee,{as:L,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":G,"aria-modal":d,...et,children:(0,_.jsx)(m.Provider,{value:K,children:g})})})})})})},94191:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(96540),i=r(34164),o=r(75659),s=r(74136),a=r(3552),l=r(50186),u=r(98301),c=r(9307),h=r(74848);let d=e=>{let{absolute:t,children:r,classes:n,flexItem:i,light:s,orientation:a,textAlign:l,variant:u}=e;return(0,o.A)({root:["root",t&&"absolute",u,s&&"light","vertical"===a&&"vertical",i&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},c.K,n)},f=(0,a.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((0,l.A)(e=>{let{theme:t}=e;return{margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,s.X4)(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:e=>{let{ownerState:t}=e;return!!t.children},style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:e=>{let{ownerState:t}=e;return t.children&&"vertical"!==t.orientation},style:{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"vertical"===t.orientation&&t.children},style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"right"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:e=>{let{ownerState:t}=e;return"left"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}})),p=(0,a.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((0,l.A)(e=>{let{theme:t}=e;return{display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)"),whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")}}]}})),m=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:s,orientation:a="horizontal",component:l=o||"vertical"===a?"div":"hr",flexItem:c=!1,light:m=!1,role:g="hr"!==l?"separator":void 0,textAlign:y="center",variant:v="fullWidth",...b}=r,w={...r,absolute:n,component:l,flexItem:c,light:m,orientation:a,role:g,textAlign:y,variant:v},x=d(w);return(0,h.jsx)(f,{as:l,className:(0,i.A)(x.root,s),role:g,ref:t,ownerState:w,"aria-orientation":"separator"===g&&("hr"!==l||"vertical"===a)?a:void 0,...b,children:o?(0,h.jsx)(p,{className:x.wrapper,ownerState:w,children:o}):null})});m&&(m.muiSkipListHighlight=!0);let g=m},9307:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,K:()=>o});var n=r(38413),i=r(57936);function o(e){return(0,i.Ay)("MuiDivider",e)}let s=(0,n.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},93381:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(96540),i=r(12062),o=r(57223),s=r(42907),a=r(82586),l=r(13372),u=r(74848);let c={entering:{opacity:1},entered:{opacity:1}},h=n.forwardRef(function(e,t){let r=(0,s.A)(),h={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:d,appear:f=!0,children:p,easing:m,in:g,onEnter:y,onEntered:v,onEntering:b,onExit:w,onExited:x,onExiting:_,style:E,timeout:S=h,TransitionComponent:T=i.Ay,...k}=e,A=n.useRef(null),C=(0,l.A)(A,(0,o.A)(p),t),I=e=>t=>{if(e){let r=A.current;void 0===t?e(r):e(r,t)}},P=I(b),R=I((e,t)=>{(0,a.q)(e);let n=(0,a.c)({style:E,timeout:S,easing:m},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),y&&y(e,t)}),O=I(v),M=I(_),N=I(e=>{let t=(0,a.c)({style:E,timeout:S,easing:m},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),w&&w(e)}),L=I(x);return(0,u.jsx)(T,{appear:f,in:g,nodeRef:A,onEnter:R,onEntered:O,onEntering:P,onExit:N,onExited:L,onExiting:M,addEndListener:e=>{d&&d(A.current,e)},timeout:S,...k,children:(e,t)=>{let{ownerState:r,...i}=t;return n.cloneElement(p,{style:{opacity:0,visibility:"exited"!==e||g?void 0:"hidden",...c[e],...E,...p.props.style},ref:C,...i})}})})},45027:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(96540),i=r(88535),o=r(57223),s=r(12062),a=r(42907),l=r(82586),u=r(13372),c=r(74848);function h(e){return"scale(".concat(e,", ").concat(e**2,")")}let d={entering:{opacity:1,transform:h(1)},entered:{opacity:1,transform:"none"}},f="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),p=n.forwardRef(function(e,t){let{addEndListener:r,appear:p=!0,children:m,easing:g,in:y,onEnter:v,onEntered:b,onEntering:w,onExit:x,onExited:_,onExiting:E,style:S,timeout:T="auto",TransitionComponent:k=s.Ay,...A}=e,C=(0,i.A)(),I=n.useRef(),P=(0,a.A)(),R=n.useRef(null),O=(0,u.A)(R,(0,o.A)(m),t),M=e=>t=>{if(e){let r=R.current;void 0===t?e(r):e(r,t)}},N=M(w),L=M((e,t)=>{let r;(0,l.q)(e);let{duration:n,delay:i,easing:o}=(0,l.c)({style:S,timeout:T,easing:g},{mode:"enter"});"auto"===T?(r=P.transitions.getAutoHeightDuration(e.clientHeight),I.current=r):r=n,e.style.transition=[P.transitions.create("opacity",{duration:r,delay:i}),P.transitions.create("transform",{duration:f?r:.666*r,delay:i,easing:o})].join(","),v&&v(e,t)}),D=M(b),j=M(E),V=M(e=>{let t;let{duration:r,delay:n,easing:i}=(0,l.c)({style:S,timeout:T,easing:g},{mode:"exit"});"auto"===T?(t=P.transitions.getAutoHeightDuration(e.clientHeight),I.current=t):t=r,e.style.transition=[P.transitions.create("opacity",{duration:t,delay:n}),P.transitions.create("transform",{duration:f?t:.666*t,delay:f?n:n||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=h(.75),x&&x(e)}),F=M(_);return(0,c.jsx)(k,{appear:p,in:y,nodeRef:R,onEnter:L,onEntered:D,onEntering:N,onExit:V,onExited:F,onExiting:j,addEndListener:e=>{"auto"===T&&C.start(I.current||0,e),r&&r(R.current,e)},timeout:"auto"===T?null:T,...A,children:(e,t)=>{let{ownerState:r,...i}=t;return n.cloneElement(m,{style:{opacity:0,transform:h(.75),visibility:"exited"!==e||y?void 0:"hidden",...d[e],...S,...m.props.style},ref:O,...i})}})});p&&(p.muiSupportAuto=!0);let m=p},72035:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});
1var n=r(96540),i=r(34164),o=r(75659),s=r(3552),a=r(98301),l=r(36490),u=r(38413),c=r(57936);function h(e){return(0,c.Ay)("MuiList",e)}(0,u.A)("MuiList",["root","padding","dense","subheader"]);var d=r(74848);let f=e=>{let{classes:t,disablePadding:r,dense:n,subheader:i}=e;return(0,o.A)({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},h,t)},p=(0,s.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:e=>{let{ownerState:t}=e;return!t.disablePadding},style:{paddingTop:8,paddingBottom:8}},{props:e=>{let{ownerState:t}=e;return t.subheader},style:{paddingTop:0}}]}),m=n.forwardRef(function(e,t){let r=(0,a.b)({props:e,name:"MuiList"}),{children:o,className:s,component:u="ul",dense:c=!1,disablePadding:h=!1,subheader:m,...g}=r,y=n.useMemo(()=>({dense:c}),[c]),v={...r,component:u,dense:c,disablePadding:h},b=f(v);return(0,d.jsx)(l.A.Provider,{value:y,children:(0,d.jsxs)(p,{as:u,className:(0,i.A)(b.root,s),ref:t,ownerState:v,...g,children:[m,o]})})})},36490:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(96540).createContext({})},62713:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,f:()=>o});var n=r(38413),i=r(57936);function o(e){return(0,i.Ay)("MuiListItemIcon",e)}let s=(0,n.A)("MuiListItemIcon",["root","alignItemsFlexStart"])},20889:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(96540),i=r(34164),o=r(75659),s=r(84659),a=r(66247),l=r(36490),u=r(3552),c=r(98301),h=r(24745),d=r(62849),f=r(74848);let p=e=>{let{classes:t,inset:r,primary:n,secondary:i,dense:s}=e;return(0,o.A)({root:["root",r&&"inset",s&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},h.b,t)},m=(0,u.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(h.A.primary)]:t.primary},{["& .".concat(h.A.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[".".concat(s.A.root,":where(& .").concat(h.A.primary,")")]:{display:"block"},[".".concat(s.A.root,":where(& .").concat(h.A.secondary,")")]:{display:"block"},variants:[{props:e=>{let{ownerState:t}=e;return t.primary&&t.secondary},style:{marginTop:6,marginBottom:6}},{props:e=>{let{ownerState:t}=e;return t.inset},style:{paddingLeft:56}}]}),g=n.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiListItemText"}),{children:o,className:s,disableTypography:u=!1,inset:h=!1,primary:g,primaryTypographyProps:y,secondary:v,secondaryTypographyProps:b,slots:w={},slotProps:x={},..._}=r,{dense:E}=n.useContext(l.A),S=null!=g?g:o,T=v,k={...r,disableTypography:u,inset:h,primary:!!S,secondary:!!T,dense:E},A=p(k),C={slots:w,slotProps:{primary:y,secondary:b,...x}},[I,P]=(0,d.A)("primary",{className:A.primary,elementType:a.A,externalForwardedProps:C,ownerState:k}),[R,O]=(0,d.A)("secondary",{className:A.secondary,elementType:a.A,externalForwardedProps:C,ownerState:k});return null==S||S.type===a.A||u||(S=(0,f.jsx)(I,{variant:E?"body2":"body1",component:(null==P?void 0:P.variant)?void 0:"span",...P,children:S})),null==T||T.type===a.A||u||(T=(0,f.jsx)(R,{variant:"body2",color:"textSecondary",...O,children:T})),(0,f.jsxs)(m,{className:(0,i.A)(A.root,s),ownerState:k,ref:t,..._,children:[S,T]})})},24745:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,b:()=>o});var n=r(38413),i=r(57936);function o(e){return(0,i.Ay)("MuiListItemText",e)}let s=(0,n.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},41881:(e,t,r)=>{"use strict";r.d(t,{A:()=>S});var n=r(96540),i=r(34164),o=r(75659),s=r(73788),a=r(79329),l=r(45728),u=r(82163),c=r(11794),h=r(3552),d=r(98301),f=r(38413),p=r(57936);function m(e){return(0,p.Ay)("MuiMenu",e)}(0,f.A)("MuiMenu",["root","paper","list"]);var g=r(62849),y=r(74848);let v={vertical:"top",horizontal:"right"},b={vertical:"top",horizontal:"left"},w=e=>{let{classes:t}=e;return(0,o.A)({root:["root"],paper:["paper"],list:["list"]},m,t)},x=(0,h.Ay)(u.Ay,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_=(0,h.Ay)(u.IJ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),E=(0,h.Ay)(l.A,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),S=n.forwardRef(function(e,t){let r=(0,d.b)({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:l,className:u,disableAutoFocusItem:c=!1,MenuListProps:h={},onClose:f,open:p,PaperProps:m={},PopoverClasses:S,transitionDuration:T="auto",TransitionProps:{onEntering:k,...A}={},variant:C="selectedMenu",slots:I={},slotProps:P={},...R}=r,O=(0,s.I)(),M={...r,autoFocus:o,disableAutoFocusItem:c,MenuListProps:h,onEntering:k,PaperProps:m,transitionDuration:T,TransitionProps:A,variant:C},N=w(M),L=o&&!c&&p,D=n.useRef(null),j=(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,{direction:O?"rtl":"ltr"}),k&&k(e,t)},V=e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},F=-1;n.Children.map(l,(e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===C&&e.props.selected?F=t:-1!==F||(F=t)))});let U={slots:I,slotProps:{list:h,transition:A,paper:m,...P}},B=(0,a.A)({elementType:I.root,externalSlotProps:P.root,ownerState:M,className:[N.root,u]}),[z,H]=(0,g.A)("paper",{className:N.paper,elementType:_,externalForwardedProps:U,shouldForwardComponentProp:!0,ownerState:M}),[$,W]=(0,g.A)("list",{className:(0,i.A)(N.list,h.className),elementType:E,shouldForwardComponentProp:!0,externalForwardedProps:U,getSlotProps:e=>({...e,onKeyDown:t=>{var r;V(t),null===(r=e.onKeyDown)||void 0===r||r.call(e,t)}}),ownerState:M}),q="function"==typeof U.slotProps.transition?U.slotProps.transition(M):U.slotProps.transition;return(0,y.jsx)(x,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?v:b,slots:{root:I.root,paper:z,backdrop:I.backdrop,...I.transition&&{transition:I.transition}},slotProps:{root:B,paper:H,backdrop:"function"==typeof P.backdrop?P.backdrop(M):P.backdrop,transition:{...q,onEntering:function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];j(...r),null==q||null===(e=q.onEntering)||void 0===e||e.call(q,...r)}}},open:p,ref:t,transitionDuration:T,ownerState:M,...R,classes:S,children:(0,y.jsx)($,{actions:D,autoFocus:o&&(-1===F||c),autoFocusItem:L,variant:C,...W,children:l})})})},35820:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var n=r(96540),i=r(34164),o=r(75659),s=r(74136),a=r(11794),l=r(3552),u=r(50186),c=r(98301),h=r(36490),d=r(74874),f=r(40706),p=r(13372),m=r(9307),g=r(62713),y=r(24745),v=r(38413),b=r(57936);function w(e){return(0,b.Ay)("MuiMenuItem",e)}let x=(0,v.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var _=r(74848);let E=e=>{let{disabled:t,dense:r,divider:n,disableGutters:i,selected:s,classes:a}=e,l=(0,o.A)({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",s&&"selected"]},w,a);return{...a,...l}},S=(0,l.Ay)(d.A,{shouldForwardProp:e=>(0,a.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((0,u.A)(e=>{let{theme:t}=e;return{...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(x.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(x.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(x.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(x.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(x.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(m.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(m.A.inset)]:{marginLeft:52},["& .".concat(y.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(y.A.inset)]:{paddingLeft:36},["& .".concat(g.A.root)]:{minWidth:36},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:16,paddingRight:16}},{props:e=>{let{ownerState:t}=e;
1return t.divider},style:{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"}},{props:e=>{let{ownerState:t}=e;return!t.dense},style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:e=>{let{ownerState:t}=e;return t.dense},style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,["& .".concat(g.A.root," svg")]:{fontSize:"1.25rem"}}}]}})),T=n.forwardRef(function(e,t){let r;let o=(0,c.b)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:a="li",dense:l=!1,divider:u=!1,disableGutters:d=!1,focusVisibleClassName:m,role:g="menuitem",tabIndex:y,className:v,...b}=o,w=n.useContext(h.A),x=n.useMemo(()=>({dense:l||w.dense||!1,disableGutters:d}),[w.dense,l,d]),T=n.useRef(null);(0,f.A)(()=>{s&&T.current&&T.current.focus()},[s]);let k={...o,dense:x.dense,divider:u,disableGutters:d},A=E(o),C=(0,p.A)(T,t);return o.disabled||(r=void 0!==y?y:-1),(0,_.jsx)(h.A.Provider,{value:x,children:(0,_.jsx)(S,{ref:C,role:g,tabIndex:r,component:a,focusVisibleClassName:(0,i.A)(A.focusVisible,m),className:(0,i.A)(A.root,v),...b,ownerState:k,classes:A})})})},45728:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(96540),i=r(46208),o=r(72035);let s=r(93205).A;var a=r(13372),l=r(40706),u=r(34013),c=r(74848);function h(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function d(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function f(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join("")))}function p(e,t,r,n,i,o){let s=!1,a=i(e,t,!!t&&r);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}let t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&f(a,o)&&!t)return a.focus(),!0;a=i(e,a,r)}return!1}let m=n.forwardRef(function(e,t){let{actions:r,autoFocus:m=!1,autoFocusItem:g=!1,children:y,className:v,disabledItemsFocusable:b=!1,disableListWrap:w=!1,onKeyDown:x,variant:_="selectedMenu",...E}=e,S=n.useRef(null),T=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,l.A)(()=>{m&&S.current.focus()},[m]),n.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:r}=t,n=!S.current.style.width;if(e.clientHeight<S.current.clientHeight&&n){let t="".concat(s((0,u.A)(e)),"px");S.current.style["rtl"===r?"paddingLeft":"paddingRight"]=t,S.current.style.width="calc(100% + ".concat(t,")")}return S.current}}),[]);let k=(0,a.A)(S,t),A=-1;n.Children.forEach(y,(e,t)=>{if(!n.isValidElement(e)){A===t&&(A+=1)>=y.length&&(A=-1);return}e.props.disabled||("selectedMenu"===_&&e.props.selected?A=t:-1!==A||(A=t)),A===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(A+=1)>=y.length&&(A=-1)});let C=n.Children.map(y,(e,t)=>{if(t===A){let t={};return g&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===_&&(t.tabIndex=0),n.cloneElement(e,t)}return e});return(0,c.jsx)(o.A,{role:"menu",ref:k,className:v,onKeyDown:e=>{let t=S.current,r=e.key;if(e.ctrlKey||e.metaKey||e.altKey){x&&x(e);return}let n=(0,i.A)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),p(t,n,w,b,h);else if("ArrowUp"===r)e.preventDefault(),p(t,n,w,b,d);else if("Home"===r)e.preventDefault(),p(t,null,w,b,h);else if("End"===r)e.preventDefault(),p(t,null,w,b,d);else if(1===r.length){let i=T.current,o=r.toLowerCase(),s=performance.now();i.keys.length>0&&(s-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=s,i.keys.push(o);let a=n&&!i.repeating&&f(n,i);i.previousKeyMatched&&(a||p(t,n,!1,b,h,i))?e.preventDefault():i.previousKeyMatched=!1}x&&x(e)},tabIndex:m?0:-1,...E,children:C})})},13459:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});var n=r(96540),i=r(34164),o=r(75659),s=r(95692),a=r(87901),l=r(3552),u=r(50186),c=r(98301),h=r(71493),d=r(31523),f=r(32325),p=r(71547);function m(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}var g=r(97340),y=r(44877),v=r(93205);function b(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function w(e){return parseInt((0,y.A)(e).getComputedStyle(e).paddingRight,10)||0}function x(e,t,r,n,i){let o=[t,r,...n];[].forEach.call(e.children,e=>{let t=!o.includes(e),r=!function(e){let t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&b(e,i)})}function _(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}class E{add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&b(e.modalRef,!1);let n=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);x(t,e.mount,e.modalRef,n,!0);let i=_(this.containers,e=>e.container===t);return -1!==i?this.containers[i].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r}mount(e,t){let r=_(this.containers,t=>t.modals.includes(e)),n=this.containers[r];n.restore||(n.restore=function(e,t){let r=[],n=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,f.A)(e);return t.body===e?(0,y.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){let e=(0,v.A)((0,y.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(w(n)+e,"px");let t=(0,f.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(w(t)+e,"px")})}if(n.parentNode instanceof DocumentFragment)e=(0,f.A)(n).body;else{let t=n.parentElement,r=(0,y.A)(n);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>
1{r.forEach(e=>{let{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)})}}(n,t))}remove(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;let n=_(this.containers,t=>t.modals.includes(e)),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&b(e.modalRef,t),x(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&b(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.modals=[],this.containers=[]}}let S=()=>{},T=new E,k=function(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:h}=e,y=n.useRef({}),v=n.useRef(null),w=n.useRef(null),x=(0,d.A)(w,h),[_,E]=n.useState(!c),k=!!l&&l.props.hasOwnProperty("in"),A=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(A=!1);let C=()=>(0,f.A)(v.current),I=()=>(y.current.modalRef=w.current,y.current.mount=v.current,y.current),P=()=>{T.mount(I(),{disableScrollLock:i}),w.current&&(w.current.scrollTop=0)},R=(0,p.A)(()=>{let e=("function"==typeof t?t():t)||C().body;T.add(I(),e),w.current&&P()}),O=()=>T.isTopModal(I()),M=(0,p.A)(e=>{v.current=e,e&&(c&&O()?P():w.current&&b(w.current,A))}),N=n.useCallback(()=>{T.remove(I(),A)},[A]);n.useEffect(()=>()=>{N()},[N]),n.useEffect(()=>{c?R():k&&o||N()},[c,N,k,o,R]);let L=e=>t=>{var n;null===(n=e.onKeyDown)||void 0===n||n.call(e,t),"Escape"===t.key&&229!==t.which&&O()&&!r&&(t.stopPropagation(),u&&u(t,"escapeKeyDown"))},D=e=>t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,g.A)(e);delete r.onTransitionEnter,delete r.onTransitionExited;let n={...r,...t};return{role:"presentation",...n,onKeyDown:L(n),ref:x}},getBackdropProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":!0,...e,onClick:D(e),open:c}},getTransitionProps:()=>{var e,t;return{onEnter:m(()=>{E(!1),s&&s()},null!==(e=null==l?void 0:l.props.onEnter)&&void 0!==e?e:S),onExited:m(()=>{E(!0),a&&a(),o&&N()},null!==(t=null==l?void 0:l.props.onExited)&&void 0!==t?t:S)}},rootRef:x,portalRef:M,isTopModal:O,exited:_,hasTransition:k}};var A=r(38413),C=r(57936);function I(e){return(0,C.Ay)("MuiModal",e)}(0,A.A)("MuiModal",["root","hidden","backdrop"]);var P=r(62849),R=r(74848);let O=e=>{let{open:t,exited:r,classes:n}=e;return(0,o.A)({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},I,n)},M=(0,l.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((0,u.A)(e=>{let{theme:t}=e;return{position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:e=>{let{ownerState:t}=e;return!t.open&&t.exited},style:{visibility:"hidden"}}]}})),N=(0,l.Ay)(h.A,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),L=n.forwardRef(function(e,t){let r=(0,c.b)({name:"MuiModal",props:e}),{BackdropComponent:o=N,BackdropProps:l,classes:u,className:h,closeAfterTransition:d=!1,children:f,container:p,component:m,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:w=!1,disablePortal:x=!1,disableRestoreFocus:_=!1,disableScrollLock:E=!1,hideBackdrop:S=!1,keepMounted:T=!1,onBackdropClick:A,onClose:C,onTransitionEnter:I,onTransitionExited:L,open:D,slotProps:j={},slots:V={},theme:F,...U}=r,B={...r,closeAfterTransition:d,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:w,disablePortal:x,disableRestoreFocus:_,disableScrollLock:E,hideBackdrop:S,keepMounted:T},{getRootProps:z,getBackdropProps:H,getTransitionProps:$,portalRef:W,isTopModal:q,exited:G,hasTransition:K}=k({...B,rootRef:t}),Y={...B,exited:G},X=O(Y),Z={};if(void 0===f.props.tabIndex&&(Z.tabIndex="-1"),K){let{onEnter:e,onExited:t}=$();Z.onEnter=e,Z.onExited=t}let Q={slots:{root:g.Root,backdrop:g.Backdrop,...V},slotProps:{...y,...j}},[J,ee]=(0,P.A)("root",{ref:t,elementType:M,externalForwardedProps:{...Q,...U,component:m}
1,getSlotProps:z,ownerState:Y,className:(0,i.A)(h,null==X?void 0:X.root,!Y.open&&Y.exited&&(null==X?void 0:X.hidden))}),[et,er]=(0,P.A)("backdrop",{ref:null==l?void 0:l.ref,elementType:o,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:l,getSlotProps:e=>H({...e,onClick:t=>{A&&A(t),(null==e?void 0:e.onClick)&&e.onClick(t)}}),className:(0,i.A)(null==l?void 0:l.className,null==X?void 0:X.backdrop),ownerState:Y});return T||D||K&&!G?(0,R.jsx)(a.A,{ref:W,container:p,disablePortal:x,children:(0,R.jsxs)(J,{...ee,children:[!S&&o?(0,R.jsx)(et,{...er}):null,(0,R.jsx)(s.A,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:_,isEnabled:q,open:D,children:n.cloneElement(f,Z)})]})}):null})},91703:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(96540),i=r(34164),o=r(75659),s=r(74136),a=r(3552),l=r(42907),u=r(50186),c=r(98301),h=r(63863),d=r(38413),f=r(57936);function p(e){return(0,f.Ay)("MuiPaper",e)}(0,d.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var m=r(74848);let g=e=>{let{square:t,elevation:r,variant:n,classes:i}=e;return(0,o.A)({root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]},p,i)},y=(0,a.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((0,u.A)(e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:e=>{let{ownerState:t}=e;return!t.square},style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:"1px solid ".concat((t.vars||t).palette.divider)}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}})),v=n.forwardRef(function(e,t){var r;let n=(0,c.b)({props:e,name:"MuiPaper"}),o=(0,l.A)(),{className:a,component:u="div",elevation:d=1,square:f=!1,variant:p="elevation",...v}=n,b={...n,component:u,elevation:d,square:f,variant:p},w=g(b);return(0,m.jsx)(y,{as:u,ownerState:b,className:(0,i.A)(w.root,a),ref:t,...v,style:{..."elevation"===p&&{"--Paper-shadow":(o.vars||o).shadows[d],...o.vars&&{"--Paper-overlay":null===(r=o.vars.overlays)||void 0===r?void 0:r[d]},...!o.vars&&"dark"===o.palette.mode&&{"--Paper-overlay":"linear-gradient(".concat((0,s.X4)("#fff",(0,h.A)(d)),", ").concat((0,s.X4)("#fff",(0,h.A)(d)),")")}},...v.style}})})},82163:(e,t,r)=>{"use strict";r.d(t,{IJ:()=>A,Ay:()=>C});var n=r(96540),i=r(34164),o=r(75659),s=r(47907),a=r(3552),l=r(98301),u=r(40855),c=r(46208),h=r(34013),d=r(45027),f=r(13459),p=r(91703),m=r(38413),g=r(57936);function y(e){return(0,g.Ay)("MuiPopover",e)}(0,m.A)("MuiPopover",["root","paper"]);var v=r(62849),b=r(40362),w=r(74848);function x(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function _(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function E(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?"".concat(e,"px"):e).join(" ")}function S(e){return"function"==typeof e?e():e}let T=e=>{let{classes:t}=e;return(0,o.A)({root:["root"],paper:["paper"]},y,t)},k=(0,a.Ay)(f.A,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A=(0,a.Ay)(p.A,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),C=n.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:g,className:y,container:C,elevation:I=8,marginThreshold:P=16,open:R,PaperProps:O={},slots:M={},slotProps:N={},transformOrigin:L={vertical:"top",horizontal:"left"},TransitionComponent:D,transitionDuration:j="auto",TransitionProps:V={},disableScrollLock:F=!1,...U}=r,B=n.useRef(),z={...r,anchorOrigin:f,anchorReference:m,elevation:I,marginThreshold:P,transformOrigin:L,TransitionComponent:D,transitionDuration:j,TransitionProps:V},H=T(z),$=n.useCallback(()=>
1{if("anchorPosition"===m)return p;let e=S(a),t=(e&&1===e.nodeType?e:(0,c.A)(B.current).body).getBoundingClientRect();return{top:t.top+x(t,f.vertical),left:t.left+_(t,f.horizontal)}},[a,f.horizontal,f.vertical,p,m]),W=n.useCallback(e=>({vertical:x(e,L.vertical),horizontal:_(e,L.horizontal)}),[L.horizontal,L.vertical]),q=n.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},r=W(t);if("none"===m)return{top:null,left:null,transformOrigin:E(r)};let n=$(),i=n.top-r.vertical,o=n.left-r.horizontal,s=i+t.height,l=o+t.width,u=(0,h.A)(S(a)),c=u.innerHeight-P,d=u.innerWidth-P;if(null!==P&&i<P){let e=i-P;i-=e,r.vertical+=e}else if(null!==P&&s>c){let e=s-c;i-=e,r.vertical+=e}if(null!==P&&o<P){let e=o-P;o-=e,r.horizontal+=e}else if(l>d){let e=l-d;o-=e,r.horizontal+=e}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:E(r)}},[a,m,$,W,P]),[G,K]=n.useState(R),Y=n.useCallback(()=>{let e=B.current;if(!e)return;let t=q(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,K(!0)},[q]);n.useEffect(()=>(F&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,F,Y]);let X=()=>{Y()},Z=()=>{K(!1)};n.useEffect(()=>{R&&Y()}),n.useImperativeHandle(o,()=>R?{updatePosition:()=>{Y()}}:null,[R,Y]),n.useEffect(()=>{if(!R)return;let e=(0,u.A)(()=>{Y()}),t=(0,h.A)(a);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[a,R,Y]);let Q=j,J={slots:{transition:D,...M},slotProps:{transition:V,paper:O,...N}},[ee,et]=(0,v.A)("transition",{elementType:d.A,externalForwardedProps:J,ownerState:z,getSlotProps:e=>({...e,onEntering:(t,r)=>{var n;null===(n=e.onEntering)||void 0===n||n.call(e,t,r),X()},onExited:t=>{var r;null===(r=e.onExited)||void 0===r||r.call(e,t),Z()}}),additionalProps:{appear:!0,in:R}});"auto"!==j||ee.muiSupportAuto||(Q=void 0);let er=C||(a?(0,c.A)(S(a)).body:void 0),[en,{slots:ei,slotProps:eo,...es}]=(0,v.A)("root",{ref:t,elementType:k,externalForwardedProps:{...J,...U},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:M.backdrop},slotProps:{backdrop:(0,b.A)("function"==typeof N.backdrop?N.backdrop(z):N.backdrop,{invisible:!0})},container:er,open:R},ownerState:z,className:(0,i.A)(H.root,y)}),[ea,el]=(0,v.A)("paper",{ref:B,className:H.paper,elementType:A,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:{elevation:I,style:G?void 0:{opacity:0}},ownerState:z});return(0,w.jsx)(en,{...es,...!(0,s.A)(en)&&{slots:ei,slotProps:eo,disableScrollLock:F},children:(0,w.jsx)(ee,{...et,timeout:Q,children:(0,w.jsx)(ea,{...el,children:g})})})})},34032:(e,t,r)=>{"use strict";r.d(t,{A:()=>eT});var n=r(73788),i=r(96540),o=r(31523),s=r(21529),a=r(32325);function l(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function u(e){var t=l(e).Element;return e instanceof t||e instanceof Element}function c(e){var t=l(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function h(e){if("undefined"==typeof ShadowRoot)return!1;var t=l(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var d=Math.max,f=Math.min,p=Math.round;function m(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(m())}function y(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&c(e)&&(i=e.offsetWidth>0&&p(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&p(n.height)/e.offsetHeight||1);var s=(u(e)?l(e):window).visualViewport,a=!g()&&r,h=(n.left+(a&&s?s.offsetLeft:0))/i,d=(n.top+(a&&s?s.offsetTop:0))/o,f=n.width/i,m=n.height/o;return{width:f,height:m,top:d,right:h+f,bottom:d+m,left:h,x:h,y:d}}function v(e){var t=l(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function b(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((u(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return y(w(e)).left+v(e).scrollLeft}function _(e){return l(e).getComputedStyle(e)}function E(e){var t=_(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function S(e){var t=y(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function T(e){return"html"===b(e)?e:e.assignedSlot||e.parentNode||(h(e)?e.host:null)||w(e)}function k(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(b(t))>=0?t.ownerDocument.body:c(t)&&E(t)?t:e(T(t))}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=l(n),s=i?[o].concat(o.visualVie
vendor: 16,202 bytes, line 1
1wport||[],E(n)?n:[]):n,a=t.concat(s);return i?a:a.concat(k(T(s)))}function A(e){return c(e)&&"fixed"!==_(e).position?e.offsetParent:null}function C(e){for(var t=l(e),r=A(e);r&&["table","td","th"].indexOf(b(r))>=0&&"static"===_(r).position;)r=A(r);return r&&("html"===b(r)||"body"===b(r)&&"static"===_(r).position)?t:r||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&c(e)&&"fixed"===_(e).position)return null;var r=T(e);for(h(r)&&(r=r.host);c(r)&&0>["html","body"].indexOf(b(r));){var n=_(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var I="bottom",P="right",R="left",O="auto",M=["top",I,P,R],N="start",L="viewport",D="popper",j=M.reduce(function(e,t){return e.concat([t+"-"+N,t+"-end"])},[]),V=[].concat(M,[O]).reduce(function(e,t){return e.concat([t,t+"-"+N,t+"-end"])},[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],U={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var z={passive:!0};function H(e){return e.split("-")[0]}function $(e){return e.split("-")[1]}function W(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function q(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?H(i):null,s=i?$(i):null,a=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case"top":t={x:a,y:r.y-n.height};break;case I:t={x:a,y:r.y+r.height};break;case P:t={x:r.x+r.width,y:l};break;case R:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=o?W(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case N:t[u]=t[u]-(r[c]/2-n[c]/2);break;case"end":t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,r,n,i,o,s,a,u=e.popper,c=e.popperRect,h=e.placement,d=e.variation,f=e.offsets,m=e.position,g=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,b=e.isFixed,x=f.x,E=void 0===x?0:x,S=f.y,T=void 0===S?0:S,k="function"==typeof v?v({x:E,y:T}):{x:E,y:T};E=k.x,T=k.y;var A=f.hasOwnProperty("x"),O=f.hasOwnProperty("y"),M=R,N="top",L=window;if(y){var D=C(u),j="clientHeight",V="clientWidth";D===l(u)&&"static"!==_(D=w(u)).position&&"absolute"===m&&(j="scrollHeight",V="scrollWidth"),("top"===h||(h===R||h===P)&&"end"===d)&&(N=I,T-=(b&&D===L&&L.visualViewport?L.visualViewport.height:D[j])-c.height,T*=g?1:-1),(h===R||("top"===h||h===I)&&"end"===d)&&(M=P,E-=(b&&D===L&&L.visualViewport?L.visualViewport.width:D[V])-c.width,E*=g?1:-1)}var F=Object.assign({position:m},y&&G),U=!0===v?(t={x:E,y:T},r=l(u),n=t.x,i=t.y,{x:p(n*(o=r.devicePixelRatio||1))/o||0,y:p(i*o)/o||0}):{x:E,y:T};return(E=U.x,T=U.y,g)?Object.assign({},F,((a={})[N]=O?"0":"",a[M]=A?"0":"",a.transform=1>=(L.devicePixelRatio||1)?"translate("+E+"px, "+T+"px)":"translate3d("+E+"px, "+T+"px, 0)",a)):Object.assign({},F,((s={})[N]=O?T+"px":"",s[M]=A?E+"px":"",s.transform="",s))}var Y={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,function(e){return Y[e]})}var Z={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,function(e){return Z[e]})}function J(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&h(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function et(e,t,r){var n,i,o,s,a,c,h,f,p,m;return t===L?ee(function(e,t){var r=l(e),n=w(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,u=0;if(i){o=i.width,s=i.height;var c=g();(c||!c&&"fixed"===t)&&(a=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:a+x(e),y:u}}(e,r)):u(t)?((n=y(t,!1,"fixed"===r)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):ee((i=w(e),s=w(i),a=v(i),c=null==(o=i.ownerDocument)?void 0:o.body,h=d(s.scrollWidth,s.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),f=d(s.scrollHeight,s.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),p=-a.scrollLeft+x(i),m=-a.scrollTop,"rtl"===_(c||s).direction&&(p+=d(s.clientWidth,c?c.clientWidth:0)-h),{width:h,height:f,x:p,y:m}))}function er(){return{top:0,right:0,bottom:0,left:0}}function en(e){return Object.assign({},er(),e)}function ei(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function eo(e,t){void 0===t&&(t={});var r,n,i,o,s,a,l,h,p=t,m=p.placement,g=void 0===m?e.placement:m,v=p.strategy,x=void 0===v?e.strategy:v,E=p.boundary,S=p.rootBoundary,A=p.elementContext,R=void 0===A?D:A,O=p.altBoundary,N=p.padding,j=void 0===N?0:N,V=en("number"!=typeof j?j:ei(j,M)),F=e.rects.popper,U=e.elements[void 0!==O&&O?R===D?"reference":D:R],B=(r=u(U)?U:U.contextElement||w(e.elements.popper),n=void 0===E?"clippingParents":E,i=void 0===S?L:S,l=(a=[].concat("clippingParents"===n?(o=k(T(r)),u(s=["absolute","fixed"].indexOf(_(r).position)>=0&&c(r)?C(r):r)?o.filter(function(e){return u(e)&&J(e,s)&&"body"!==b(e)}):[]):[].concat(n),[i]))[0],(h=a.reduce(function(e,t){var n=et(r,t,x);return e.top=d(n.top,e.top),e.right=f(n.right,e.right),e.bottom=f(n.bottom,e.bottom),e.left=d(n.left,e.left),e},et(r,l,x))).width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h),z=y(e.elements.reference),H=q({reference:z,element:F,strategy:"absolute",placement:g}),$=ee(Object.assign({},F,H)),W=R===D?$:z,G={top:B.top-W.top+V.top,bottom:W.bottom-B.bottom+V.bottom,left:B.left-W.left+V.left,right:W.right-B.right+V.right},K=e.modifiersData.offset;if(R===D&&K){var Y=K[g];Object.keys(G).forEach(function(e){var t=[P,I].indexOf(e)>=0?1:-1,r=["top",I].indexOf(e)>=0?"y":"x";G[e]+=Y[r]*t})}return G}function es(e,t,r){return d(e,f(t,r))}function ea(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function el(e){return["top",P,I,R].some(function(t){return e[t]>=0})}var eu=function(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?U:i;return function(e,t,r){void 0===r&&(r=o);var i,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},h=[],d=!1,f={state:a,setOptions:function(r){var i,s,l,c,d,p="function"==typeof r?r(a.options):r;m(),a.options=Object.assign({},o,a.options,p),a.scrollParents={reference:u(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var g=(s=Object.keys(i=[].concat(n,a.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return i[e]}),l=new Map,c=new Set,d=[],s.forEach(function(e){l.set(e.name,e)}),s.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var r=l.get(t);r&&e(r)}}),d.push(t)}(e)}),F.reduce(function(e,t){return e.concat(d.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=g.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var i=n({state:a,name:t,instance:f,options:void 0===r?{}:r});h.push(i||function(){})}}),f.update()},forceUpdate:function(){if(!d){var e,t,r,n,i,o,s,u,h,m,g,_,T=a.elements,k=T.reference,A=T.popper;if(B(k,A)){a.rects={reference:(t=C(A),r="fixed"===a.options.strategy,n=c(t),u=c(t)&&(o=p((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=p(i.height)/t.offsetHeight||1,1!==o||1!==s),h=w(t),m=y(k,u,r),g={scrollLeft:0,scrollTop:0},_={x:0,y:0},(n||!n&&!r)&&(("body"!==b(t)||E(h))&&(g=(e=t)!==l(e)&&c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:v(e)),c(t)?(_=y(t,!0),_.x+=t.clientLeft,_.y+=t.clientTop):h&&(_.x=x(h))),{x:m.left+g.scrollLeft-_.x,y:m.top+g.scrollTop-_.y,width:m.width,height:m.height}),popper:S(A)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var I=0;I<a.orderedModifiers.length;I++){if(!0===a.reset){a.reset=!1,I=-1;continue}var P=a.orderedModifiers[I],R=P.fn,O=P.options,M=void 0===O?{}:O,N=P.name;"function"==typeof R&&(a=R({state:a,options:M,name:N,instance:f})||a)}}}},update:(i=function(){return new Promise(function(e){f.forceUpdate(),e(a)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(i())})})),s}),destroy:function(){m(),d=!0}};if(!B(e,t))return f;function m(){h.forEach(function(e){return e()}),h=[]}return f.setOptions(r).then(function(e){!d&&r.onFirstUpdate&&r.onFirstUpdate(e)}),f}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,s=n.resize,a=void 0===s||s,u=l(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",r.update,z)}),a&&u.addEventListener("resize",r.update,z),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",r.update,z)}),a&&u.removeEventListener("resize",r.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=r.adaptive,o=r.roundOffsets,s=void 0===o||o,a={placement:H(t.placement),variation:$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];c(i)&&b(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});c(n)&&b(n)&&(Object.assign(n.style,o),Object.keys(i).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,s=V.reduce(function(e,r){var n,i,s,a,l,u;return e[r]=(n=t.rects,s=[R,"top"].indexOf(i=H(r))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:r})):o)[0],u=a[1],l=l||0,u=(u||0)*s,[R,P].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,h=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,p=void 0===f||f,m=r.allowedAutoPlacements,g=t.options.placement,y=H(g)===g,v=l||(y||!p?[X(g)]:function(e){if(H(e)===O)return[];var t=X(e);return[Q(e),t,Q(t)]}(g)),b=[g].concat(v).reduce(function(e,r){var n,i,o,s,a,l,d,f,g,y,v,b;return e.concat(H(r)===O?(i=(n={placement:r,boundary:c,rootBoundary:h,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,f=void 0===(d=n.allowedAutoPlacements)?V:d,0===(v=(y=(g=$(i))?l?j:j.filter(function(e){return $(e)===g}):M).filter(function(e){return f.indexOf(e)>=0})).length&&(v=y),Object.keys(b=v.reduce(function(e,r){return e[r]=eo(t,{placement:r,boundary:o,rootBoundary:s,padding:a})[H(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,S=b[0],T=0;T<b.length;T++){var k=b[T],A=H(k),C=$(k)===N,L=["top",I].indexOf(A)>=0,D=L?"width":"height",F=eo(t,{placement:k,boundary:c,rootBoundary:h,altBoundary:d,padding:u}),U=L?C?P:R:C?I:"top";w[D]>x[D]&&(U=X(U));var B=X(U),z=[];if(o&&z.push(F[A]<=0),a&&z.push(F[U]<=0,F[B]<=0),z.every(function(e){return e})){S=k,E=!1;break}_.set(k,z)}if(E)for(var W=p?3:1,q=function(e){var t=b.find(function(t){var r=_.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},G=W;G>0&&"break"!==q(G);G--);t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=r.altAxis,s=r.boundary,a=r.rootBoundary,l=r.altBoundary,u=r.padding,c=r.tether,h=void 0===c||c,p=r.tetherOffset,m=void 0===p?0:p,g=eo(t,{boundary:s,rootBoundary:a,padding:u,altBoundary:l}),y=H(t.placement),v=$(t.placement),b=!v,w=W(y),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,E=t.rects.reference,T=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(_){if(void 0===i||i){var L,D="y"===w?"top":R,j="y"===w?I:P,V="y"===w?"height":"width",F=_[w],U=F+g[D],B=F-g[j],z=h?-T[V]/2:0,q=v===N?E[V]:T[V],G=v===N?-T[V]:-E[V],K=t.elements.arrow,Y=h&&K?S(K):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:er(),Z=X[D],Q=X[j],J=es(0,E[V],Y[V]),ee=b?E[V]/2-z-J-Z-A.mainAxis:q-J-Z-A.mainAxis,et=b?-E[V]/2+z+J+Q+A.mainAxis:G+J+Q+A.mainAxis,en=t.elements.arrow&&C(t.elements.arrow),ei=en?"y"===w?en.clientTop||0:en.clientLeft||0:0,ea=null!=(L=null==O?void 0:O[w])?L:0,el=es(h?f(U,F+ee-ea-ei):U,F,h?d(B,F+et-ea):B);_[w]=el,M[w]=el-F}if(void 0!==o&&o){var eu,ec,eh="x"===w?"top":R,ed="x"===w?I:P,ef=_[x],ep="y"===x?"height":"width",em=ef+g[eh],eg=ef-g[ed],ey=-1!==["top",R].indexOf(y),ev=null!=(ec=null==O?void 0:O[x])?ec:0,eb=ey?em:ef-E[ep]-T[ep]-ev+A.altAxis,ew=ey?ef+E[ep]+T[ep]-ev-A.altAxis:eg,ex=h&&ey?(eu=es(eb,ef,ew))>ew?ew:eu:es(h?eb:em,ef,h?ew:eg);_[x]=ex,M[x]=ex-ef}t.modifiersData[n]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=H(n.placement),u=W(l),c=[R,P].indexOf(l)>=0?"height":"width";if(s&&a){var h=en("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:ei(t,M)),d=S(s),f="y"===u?"top":R,p="y"===u?I:P,m=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],g=a[u]-n.rects.reference[u],y=C(s),v=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,b=h[f],w=v-d[c]-h[p],x=v/2-d[c]/2+(m/2-g/2),_=es(b,x,w);n.modifiersData[i]=((r={})[u]=_,r.centerOffset=_-x,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-
1popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&J(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=eo(t,{elementContext:"reference"}),a=eo(t,{altBoundary:!0}),l=ea(s,n),u=ea(a,i,o),c=el(l),h=el(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}}]}),ec=r(75659),eh=r(79329),ed=r(87901),ef=r(38413),ep=r(57936);function em(e){return(0,ep.Ay)("MuiPopper",e)}(0,ef.A)("MuiPopper",["root"]);var eg=r(74848);function ey(e){return"function"==typeof e?e():e}let ev=e=>{let{classes:t}=e;return(0,ec.A)({root:["root"]},em,t)},eb={},ew=i.forwardRef(function(e,t){var r;let{anchorEl:n,children:a,direction:l,disablePortal:u,modifiers:c,open:h,placement:d,popperOptions:f,popperRef:p,slotProps:m={},slots:g={},TransitionProps:y,ownerState:v,...b}=e,w=i.useRef(null),x=(0,o.A)(w,t),_=i.useRef(null),E=(0,o.A)(_,p),S=i.useRef(E);(0,s.A)(()=>{S.current=E},[E]),i.useImperativeHandle(p,()=>_.current,[]);let T=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,l),[k,A]=i.useState(T),[C,I]=i.useState(ey(n));i.useEffect(()=>{_.current&&_.current.forceUpdate()}),i.useEffect(()=>{n&&I(ey(n))},[n]),(0,s.A)(()=>{if(!C||!h)return;let e=e=>{A(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:t=>{let{state:r}=t;e(r)}}];null!=c&&(t=t.concat(c)),f&&null!=f.modifiers&&(t=t.concat(f.modifiers));let r=eu(C,w.current,{placement:T,...f,modifiers:t});return S.current(r),()=>{r.destroy(),S.current(null)}},[C,u,c,h,f,T]);let P={placement:k};null!==y&&(P.TransitionProps=y);let R=ev(e),O=null!==(r=g.root)&&void 0!==r?r:"div",M=(0,eh.A)({elementType:O,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:R.root});return(0,eg.jsx)(O,{...M,children:"function"==typeof a?a(P):a})}),ex=i.forwardRef(function(e,t){let r;let{anchorEl:n,children:o,container:s,direction:l="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:h,open:d,placement:f="bottom",popperOptions:p=eb,popperRef:m,style:g,transition:y=!1,slotProps:v={},slots:b={},...w}=e,[x,_]=i.useState(!0);if(!c&&!d&&(!y||x))return null;if(s)r=s;else if(n){let e=ey(n);r=e&&void 0!==e.nodeType?(0,a.A)(e).body:(0,a.A)(null).body}
1let E=!d&&c&&(!y||x)?"none":void 0,S=y?{in:d,onEnter:()=>{_(!1)},onExited:()=>{_(!0)}}:void 0;return(0,eg.jsx)(ed.A,{disablePortal:u,container:r,children:(0,eg.jsx)(ew,{anchorEl:n,direction:l,disablePortal:u,modifiers:h,ref:t,open:y?!x:d,placement:f,popperOptions:p,popperRef:m,slotProps:v,slots:b,...w,style:{position:"fixed",top:0,left:0,display:E,...g},TransitionProps:S,children:o})})});var e_=r(3552),eE=r(98301);let eS=(0,e_.Ay)(ex,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eT=i.forwardRef(function(e,t){var r;let i=(0,n.I)(),{anchorEl:o,component:s,components:a,componentsProps:l,container:u,disablePortal:c,keepMounted:h,modifiers:d,open:f,placement:p,popperOptions:m,popperRef:g,transition:y,slots:v,slotProps:b,...w}=(0,eE.b)({props:e,name:"MuiPopper"}),x=null!==(r=null==v?void 0:v.root)&&void 0!==r?r:null==a?void 0:a.Root,_={anchorEl:o,container:u,disablePortal:c,keepMounted:h,modifiers:d,open:f,placement:p,popperOptions:m,popperRef:g,transition:y,...w};return(0,eg.jsx)(eS,{as:s,direction:i?"rtl":"ltr",slots:{root:x},slotProps:null!=b?b:l,..._,ref:t})})},87901:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(96540),i=r(40961),o=r(31523),s=r(57223),a=r(21529),l=r(17365);let u=n.forwardRef(function(e,t){let{children:r,container:u,disablePortal:c=!1}=e,[h,d]=n.useState(null),f=(0,o.A)(n.isValidElement(r)?(0,s.A)(r):null,t);return((0,a.A)(()=>{!c&&d(("function"==typeof u?u():u)||document.body)},[u,c]),(0,a.A)(()=>{if(h&&!c)return(0,l.A)(t,h),()=>{(0,l.A)(t,null)}},[t,h,c]),c)?n.isValidElement(r)?n.cloneElement(r,{ref:f}):r:h?i.createPortal(r,h):h})},76835:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(96540),i=r(12062),o=r(57223),s=r(40855),a=r(13372),l=r(42907),u=r(82586),c=r(34013),h=r(74848);function d(e,t,r){let n=function(e,t,r){let n;let i=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),s=(0,c.A)(t);if(t.fakeTransform)n=t.fakeTransform;else{let e=s.getComputedStyle(t);n=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let a=0,l=0;if(n&&"none"!==n&&"string"==typeof n){let e=n.split("(")[1].split(")")[0].split(",");a=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?"translateX(".concat(o.right+a-i.left,"px)"):"translateX(".concat(s.innerWidth+a-i.left,"px)"):"right"===e?o?"translateX(-".concat(i.right-o.left-a,"px)"):"translateX(-".concat(i.left+i.width-a,"px)"):"up"===e?o?"translateY(".concat(o.bottom+l-i.top,"px)"):"translateY(".concat(s.innerHeight+l-i.top,"px)"):o?"translateY(-".concat(i.top-o.top+i.height-l,"px)"):"translateY(-".concat(i.top+i.height-l,"px)")}(e,t,"function"==typeof r?r():r);n&&(t.style.webkitTransform=n,t.style.transform=n)}let f=n.forwardRef(function(e,t){let r=(0,l.A)(),f={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},p={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:m,appear:g=!0,children:y,container:v,direction:b="down",easing:w=f,in:x,onEnter:_,onEntered:E,onEntering:S,onExit:T,onExited:k,onExiting:A,style:C,timeout:I=p,TransitionComponent:P=i.Ay,...R}=e,O=n.useRef(null),M=(0,a.A)((0,o.A)(y),O,t),N=e=>t=>{e&&(void 0===t?e(O.current):e(O.current,t))},L=N((e,t)=>{d(b,e,v),(0,u.q)(e),_&&_(e,t)}),D=N((e,t)=>{let n=(0,u.c)({timeout:I,style:C,easing:w},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",{...n}),e.style.transition=r.transitions.create("transform",{...n}),e.style.webkitTransform="none",e.style.transform="none",S&&S(e,t)}),j=N(E),V=N(A),F=N(e=>{let t=(0,u.c)({timeout:I,style:C,easing:w},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),d(b,e,v),T&&T(e)}),U=N(e=>{e.style.webkitTransition="",e.style.transition="",k&&k(e)}),B=n.useCallback(()=>{O.current&&d(b,O.current,v)},[b,v]);return n.useEffect(()=>{if(x||"down"===b||"right"===b)return;let e=(0,s.A)(()=>{O.current&&d(b,O.current,v)}),t=(0,c.A)(O.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[b,x,v]),n.useEffect(()=>{x||B()},[x,B]),(0,h.jsx)(P,{nodeRef:O,onEnter:L,onEntered:j,onEntering:D,onExit:F,onExited:U,onExiting:V,addEndListener:e=>{m&&m(O.current,e)},appear:g,in:x,timeout:I,...R,children:(e,t)=>{let{ownerState:r,...i}=t;return n.cloneElement(y,{ref:M,style:{visibility:"exited"!==e||x?void 0:"hidden",...C,...y.props.style},...i})}})})},60373:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var n=r(96540),i=r(34164),o=r(88535),s=r(75659),a=r(74136),l=r(73788),u=r(24899),c=r(57223),h=r(3552),d=r(42907),f=r(50186),p=r(98301),m=r(97306),g=r(45027),y=r(34032),v=r(75170),b=r(13372),w=r(12876),x=r(19439),_=r(62849),E=r(38413),S=r(57936);function T(e){return(0,S.Ay)("MuiTooltip",e)}let k=(0,E.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var A=r(74848);let C=e=>{let{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch","tooltipPlacement".concat((0,m.A)(o.split("-")[0]))],arrow:["arrow"]};return(0,s.A)(a,T,t)},I=(0,h.Ay)(y.A,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((0,f.A)(e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableInteractive},style:{pointerEvents:"auto"}},{props:e=>{let{open:t}=e;return!t},style:{pointerEvents:"none"}},{props:e=>{let{ownerState:t}=e;return t.arrow},style:{['&[data-popper-placement*="bottom"] .'.concat(k.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(k.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(k.arrow)]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},['&[data-popper-placement*="left"] .'.concat(k.arrow)]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!t.isRtl},style:{['&[data-popper-placement*="right"] .'.concat(k.arrow)]:{left:0,marginLeft:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!!t.isRtl},style:{['&[data-popper-placement*="right"] .'.concat(k.arrow)]:{right:0,marginRight:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!t.isRtl},style:{['&[data-popper-placement*="left"] .'.concat(k.arrow)]:{right:0,marginRight:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!!t.isRtl},style:{['&[data-popper-placement*="left"] .'.concat(k.arrow)]:{left:0,marginLeft:"-0.71em"}}}]}})),P=(0,h.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,m.A)(r.placement.split("-")[0]))]]}})((0,f.A)(e=>{let{theme:t}=e;return{backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,a.X4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[".".concat(k.popper,'[data-popper-placement*="left"] &')]:{transformOrigin:"right center"},[".".concat(k.popper,'[data-popper-placement*="right"] &')]:{transformOrigin:"left center"},[".".concat(k.popper,'[data-popper-placement*="top"] &')]:{transformOrigin:"center bottom",marginBottom:"14px"},[".".concat(k.popper,'[data-popper-placement*="bottom"] &')]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:e=>{let{ownerState:t}=e;return t.arrow},style:{position:"relative",margin:0}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(Math.round(16/14*1e5)/1e5,"em"),fontWeight:t.typography.fontWeightRegular}},{props:e=>{let{ownerState:t}=e;return!t.isRtl},style:{[".".concat(k.popper,'[data-popper-placement*="left"] &')]:{marginRight:"14px"},[".".concat(k.popper,'[data-popper-placement*="right"] &')]:{marginLeft:"14px"}}},{props:e=>{let{ownerState:t}=e;return!t.isRtl&&t.touch},style:{[".".concat(k.popper,'[data-popper-placement*="left"] &')]:{marginRight:"24px"},[".".concat(k.popper,'[data-popper-placement*="right"] &')]:{marginLeft:"24px"}}},{props:e=>{let{ownerState:t}=e;return!!t.isRtl},style:{[".".concat(k.popper,'[data-popper-placement*="left"] &')]:{marginLeft:"14px"},[".".concat(k.popper,'[data-popper-placement*="right"] &')]:{marginRight:"14px"}}},{props:e=>{let{ownerState:t}=e;return!!t.isRtl&&t.touch},style:{[".".concat(k.popper,'[data-popper-placement*="left"] &')]:{marginLeft:"24px"},[".".concat(k.popper,'[data-popper-placement*="right"] &')]:{marginRight:"24px"}}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{[".".concat(k.popper,'[data-popper-placement*="top"] &')]:{marginBottom:"24px"}}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{[".".concat(k.popper,'[data-popper-placement*="bottom"] &')]:{marginTop:"24px"}}}]}})),R=(0,h.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,f.A)(e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,a.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),O=!1,M=new o.E,N={x:0,y:0};function L(e,t){return function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];t&&t(r,...i),e(r,...i)}}let D=n.forwardRef(function(e,t){var r,s,a;let h=(0,p.b)({props:e,name:"MuiTooltip"}
1),{arrow:f=!1,children:m,classes:E,components:S={},componentsProps:T={},describeChild:k=!1,disableFocusListener:D=!1,disableHoverListener:j=!1,disableInteractive:V=!1,disableTouchListener:F=!1,enterDelay:U=100,enterNextDelay:B=0,enterTouchDelay:z=700,followCursor:H=!1,id:$,leaveDelay:W=0,leaveTouchDelay:q=1500,onClose:G,onOpen:K,open:Y,placement:X="bottom",PopperComponent:Z,PopperProps:Q={},slotProps:J={},slots:ee={},title:et,TransitionComponent:er,TransitionProps:en,...ei}=h,eo=n.isValidElement(m)?m:(0,A.jsx)("span",{children:m}),es=(0,d.A)(),ea=(0,l.I)(),[el,eu]=n.useState(),[ec,eh]=n.useState(null),ed=n.useRef(!1),ef=V||H,ep=(0,o.A)(),em=(0,o.A)(),eg=(0,o.A)(),ey=(0,o.A)(),[ev,eb]=(0,x.A)({controlled:Y,default:!1,name:"Tooltip",state:"open"}),ew=ev,ex=(0,w.A)($),e_=n.useRef(),eE=(0,v.A)(()=>{void 0!==e_.current&&(document.body.style.WebkitUserSelect=e_.current,e_.current=void 0),ey.clear()});n.useEffect(()=>eE,[eE]);let eS=e=>{M.clear(),O=!0,eb(!0),K&&!ew&&K(e)},eT=(0,v.A)(e=>{M.start(800+W,()=>{O=!1}),eb(!1),G&&ew&&G(e),ep.start(es.transitions.duration.shortest,()=>{ed.current=!1})}),ek=e=>{ed.current&&"touchstart"!==e.type||(el&&el.removeAttribute("title"),em.clear(),eg.clear(),U||O&&B?em.start(O?B:U,()=>{eS(e)}):eS(e))},eA=e=>{em.clear(),eg.start(W,()=>{eT(e)})},[,eC]=n.useState(!1),eI=e=>{(0,u.A)(e.target)||(eC(!1),eA(e))},eP=e=>{el||eu(e.currentTarget),(0,u.A)(e.target)&&(eC(!0),ek(e))},eR=e=>{ed.current=!0;let t=eo.props;t.onTouchStart&&t.onTouchStart(e)};n.useEffect(()=>{if(ew)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eT(e)}},[eT,ew]);let eO=(0,b.A)((0,c.A)(eo),eu,t);et||0===et||(ew=!1);let eM=n.useRef(),eN={},eL="string"==typeof et;k?(eN.title=ew||!eL||j?null:et,eN["aria-describedby"]=ew?ex:null):(eN["aria-label"]=eL?et:null,eN["aria-labelledby"]=ew&&!eL?ex:null);let eD={...eN,...ei,...eo.props,className:(0,i.A)(ei.className,eo.props.className),onTouchStart:eR,ref:eO,...H?{onMouseMove:e=>{let t=eo.props;t.onMouseMove&&t.onMouseMove(e),N={x:e.clientX,y:e.clientY},eM.current&&eM.current.update()}}:{}},ej={};F||(eD.onTouchStart=e=>{eR(e),eg.clear(),ep.clear(),eE(),e_.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ey.start(z,()=>{document.body.style.WebkitUserSelect=e_.current,ek(e)})},eD.onTouchEnd=e=>{eo.props.onTouchEnd&&eo.props.onTouchEnd(e),eE(),eg.start(q,()=>{eT(e)})}),j||(eD.onMouseOver=L(ek,eD.onMouseOver),eD.onMouseLeave=L(eA,eD.onMouseLeave),ef||(ej.onMouseOver=ek,ej.onMouseLeave=eA)),D||(eD.onFocus=L(eP,eD.onFocus),eD.onBlur=L(eI,eD.onBlur),ef||(ej.onFocus=eP,ej.onBlur=eI));let eV={...h,isRtl:ea,arrow:f,disableInteractive:ef,placement:X,PopperComponentProp:Z,touch:ed.current},eF="function"==typeof J.popper?J.popper(eV):J.popper,eU=n.useMemo(()=>{var e,t;let r=[{name:"arrow",enabled:!!ec,options:{element:ec,padding:4}}];return(null===(e=Q.popperOptions)||void 0===e?void 0:e.modifiers)&&(r=r.concat(Q.popperOptions.modifiers)),(null==eF?void 0:null===(t=eF.popperOptions)||void 0===t?void 0:t.modifiers)&&(r=r.concat(eF.popperOptions.modifiers)),{...Q.popperOptions,...null==eF?void 0:eF.popperOptions,modifiers:r}},[ec,Q.popperOptions,null==eF?void 0:eF.popperOptions]),eB=C(eV),ez="function"==typeof J.transition?J.transition(eV):J.transition,eH={slots:{popper:S.Popper,transition:null!==(r=S.Transition)&&void 0!==r?r:er,tooltip:S.Tooltip,arrow:S.Arrow,...ee},slotProps:{arrow:null!==(s=J.arrow)&&void 0!==s?s:T.arrow,popper:{...Q,...null!=eF?eF:T.popper},tooltip:null!==(a=J.tooltip)&&void 0!==a?a:T.tooltip,transition:{...en,...null!=ez?ez:T.transition}}},[e$,eW]=(0,_.A)("popper",{elementType:I,externalForwardedProps:eH,ownerState:eV,className:(0,i.A)(eB.popper,null==Q?void 0:Q.className)}),[eq,eG]=(0,_.A)("transition",{elementType:g.A,externalForwardedProps:eH,ownerState:eV}),[eK,eY]=(0,_.A)("tooltip",{elementType:P,className:eB.tooltip,externalForwardedProps:eH,ownerState:eV}),[eX,eZ]=(0,_.A)("arrow",{elementType:R,className:eB.arrow,externalForwardedProps:eH,ownerState:eV,ref:eh});return(0,A.jsxs)(n.Fragment,{children:[n.cloneElement(eo,eD),(0,A.jsx)(e$,{as:null!=Z?Z:y.A,placement:X,anchorEl:H?{getBoundingClientRect:()=>({top:N.y,left:N.x,right:N.x,bottom:N.y,width:0,height:0})}:el,popperRef:eM,open:!!el&&ew,id:ex,transition:!0,...ej,...eW,popperOptions:eU,children:e=>{let{TransitionProps:t}=e;return(0,A.jsx)(eq,{timeout:es.transitions.duration.shorter,...t,...eG,children:(0,A.jsxs)(eK,{...eY,children:[et,f?(0,A.jsx)(eX,{...eZ}
1):null]})})}})]})})},66247:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(96540),i=r(34164),o=r(75659),s=r(1485),a=r(3552),l=r(50186),u=r(98301),c=r(97306),h=r(50172),d=r(84659),f=r(74848);let p={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},m=(0,s.Dg)(),g=e=>{let{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:s,classes:a}=e,l={root:["root",s,"inherit"!==e.align&&"align".concat((0,c.A)(t)),r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return(0,o.A)(l,d.y,a)},y=(0,a.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,c.A)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((0,l.A)(e=>{var t;let{theme:r}=e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(r.typography).filter(e=>{let[t,r]=e;return"inherit"!==t&&r&&"object"==typeof r}).map(e=>{let[t,r]=e;return{props:{variant:t},style:r}}),...Object.entries(r.palette).filter((0,h.A)()).map(e=>{let[t]=e;return{props:{color:t},style:{color:(r.vars||r).palette[t].main}}}),...Object.entries((null===(t=r.palette)||void 0===t?void 0:t.text)||{}).filter(e=>{let[,t]=e;return"string"==typeof t}).map(e=>{let[t]=e;return{props:{color:"text".concat((0,c.A)(t))},style:{color:(r.vars||r).palette.text[t]}}}),{props:e=>{let{ownerState:t}=e;return"inherit"!==t.align},style:{textAlign:"var(--Typography-textAlign)"}},{props:e=>{let{ownerState:t}=e;return t.noWrap},style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:e=>{let{ownerState:t}=e;return t.gutterBottom},style:{marginBottom:"0.35em"}},{props:e=>{let{ownerState:t}=e;return t.paragraph},style:{marginBottom:16}}]}})),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b=n.forwardRef(function(e,t){let{color:r,...n}=(0,u.b)({props:e,name:"MuiTypography"}),o=!p[r],s=m({...n,...o&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:h=!1,noWrap:d=!1,paragraph:b=!1,variant:w="body1",variantMapping:x=v,..._}=s,E={...s,align:a,color:r,className:l,component:c,gutterBottom:h,noWrap:d,paragraph:b,variant:w,variantMapping:x},S=c||(b?"p":x[w]||v[w])||"span",T=g(E);return(0,f.jsx)(y,{as:S,ref:t,className:(0,i.A)(T.root,l),..._,ownerState:E,style:{..."inherit"!==a&&{"--Typography-textAlign":a},..._.style}})})},84659:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,y:()=>o});var n=r(38413),i=r(57936);function o(e){return(0,i.Ay)("MuiTypography",e)}let s=(0,n.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])},95692:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96540),i=r(31523),o=r(57223),s=r(32325),a=r(74848);function l(e){let t=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,n)=>{let i=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===i||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t)),r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e)||(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function u(){return!0}let c=function(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:c=!1,disableRestoreFocus:h=!1,getTabbable:d=l,isEnabled:f=u,open:p}=e,m=n.useRef(!1),g=n.useRef(null),y=n.useRef(null),v=n.useRef(null),b=n.useRef(null),w=n.useRef(!1),x=n.useRef(null),_=(0,i.A)((0,o.A)(t),x),E=n.useRef(null);n.useEffect(()=>{p&&x.current&&(w.current=!r)},[r,p]),n.useEffect(()=>{if(!p||!x.current)return;let e=(0,s.A)(x.current);return!x.current.contains(e.activeElement)&&(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),w.current&&x.current.focus()),()=>{h||(v.current&&v.current.focus&&(m.current=!0,v.current.focus()),v.current=null)}}
1,[p]),n.useEffect(()=>{if(!p||!x.current)return;let e=(0,s.A)(x.current),t=t=>{E.current=t,!c&&f()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(m.current=!0,y.current&&y.current.focus())},r=()=>{let t=x.current;if(null===t)return;if(!e.hasFocus()||!f()||m.current){m.current=!1;return}if(t.contains(e.activeElement)||c&&e.activeElement!==g.current&&e.activeElement!==y.current)return;if(e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!w.current)return;let r=[];if((e.activeElement===g.current||e.activeElement===y.current)&&(r=d(x.current)),r.length>0){var n,i;let e=!!((null===(n=E.current)||void 0===n?void 0:n.shiftKey)&&(null===(i=E.current)||void 0===i?void 0:i.key)==="Tab"),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);let n=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,c,h,f,p,d]);let S=e=>{null===v.current&&(v.current=e.relatedTarget),w.current=!0};return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:g,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:_,onFocus:e=>{null===v.current&&(v.current=e.relatedTarget),w.current=!0,b.current=e.target;let r=t.props.onFocus;r&&r(e)}}),(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:y,"data-testid":"sentinelEnd"})]})}},62026:(e,t,r)=>{"use strict";r.d(t,{A:()=>ee});var n=r(89453),i=r(11317),o=r(74136);let s={black:"#000",white:"#fff"},a={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},l={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},u={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},c={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},h={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},d={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},f={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function p(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:s.white,default:s.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}let m=p();function g(){return{text:{primary:s.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:s.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}let y=g();function v(e,t,r,n){let i=n.light||n,s=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,o.a)(e.main,i):"dark"===t&&(e.dark=(0,o.e$)(e.main,s)))}function b(e){let t;let{mode:r="light",contrastThreshold:b=3,tonalOffset:w=.2,...x}=e,_=e.primary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:h[200],light:h[50],dark:h[400]}
1:{main:h[700],light:h[400],dark:h[800]}}(r),E=e.secondary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:l[200],light:l[50],dark:l[400]}:{main:l[500],light:l[300],dark:l[700]}}(r),S=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:u[500],light:u[300],dark:u[700]}:{main:u[700],light:u[400],dark:u[800]}}(r),T=e.info||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:d[400],light:d[300],dark:d[700]}:{main:d[700],light:d[500],dark:d[900]}}(r),k=e.success||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:f[400],light:f[300],dark:f[700]}:{main:f[800],light:f[500],dark:f[900]}}(r),A=e.warning||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:c[400],light:c[300],dark:c[700]}:{main:"#ed6c02",light:c[500],dark:c[900]}}(r);function C(e){return(0,o.eM)(e,y.text.primary)>=b?y.text.primary:m.text.primary}let I=e=>{let{color:t,name:r,mainShade:i=500,lightShade:o=300,darkShade:s=700}=e;if(!(t={...t}).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw Error((0,n.A)(11,r?" (".concat(r,")"):"",i));if("string"!=typeof t.main)throw Error((0,n.A)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return v(t,"light",o,w),v(t,"dark",s,w),t.contrastText||(t.contrastText=C(t.main)),t};return"light"===r?t=p():"dark"===r&&(t=g()),(0,i.A)({common:{...s},mode:r,primary:I({color:_,name:"primary"}),secondary:I({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:I({color:S,name:"error"}),warning:I({color:A,name:"warning"}),info:I({color:T,name:"info"}),success:I({color:k,name:"success"}),grey:a,contrastThreshold:b,getContrastText:C,augmentColor:I,tonalOffset:w,...t},x)}var w=r(16955),x=r(52308);let _=(e,t,r,n=[])=>{let i=e;t.forEach((e,o)=>{o===t.length-1?Array.isArray(i)?i[Number(e)]=r:i&&"object"==typeof i&&(i[e]=r):i&&"object"==typeof i&&(i[e]||(i[e]=n.includes(e)?[]:{}),i=i[e])})},E=(e,t,r)=>{!function e(n,i=[],o=[]){Object.entries(n).forEach(([n,s])=>{r&&(!r||r([...i,n]))||null==s||("object"==typeof s&&Object.keys(s).length>0?e(s,[...i,n],Array.isArray(s)?[...o,n]:o):t([...i,n],s,o))})}(e)},S=(e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function T(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},o={},s={};return E(e,(e,t,a)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`,l=S(e,t);Object.assign(i,{[n]:l}),_(o,e,`var(${n})`,a),_(s,e,`var(${n}, ${l})`,a)}},e=>"vars"===e[0]),{css:i,vars:o,varsWithDefaults:s}}let k=function(e,t={}){let{getSelector:r=function(t,r){let n=o;if("class"===o&&(n=".%s"),"data"===o&&(n="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(n=`[${o}="%s"]`),t){if("media"===n){if(e.defaultColorScheme===t)return":root";let n=s[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${n})`]:{":root":r}}}if(n)return e.defaultColorScheme===t?`:root, ${n.replace("%s",String(t))}`:n.replace("%s",String(t))}return":root"},disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:s={},components:a,defaultColorScheme:l="light",...u}=e,{vars:c,css:h,varsWithDefaults:d}=T(u,t),f=d,p={},{[l]:m,...g}=s;if(Object.entries(g||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:s}=T(r,t);f=(0,i.A)(f,s),p[e]={css:o,vars:n}}),m){let{css:e,vars:r,varsWithDefaults:n}=T(m,t);f=(0,i.A)(f,n),p[l]={css:e,vars:r}}return{vars:f,generateThemeVars:()=>{let e={...c};return Object.entries(p).forEach(([,{vars:t}])=>{e=(0,i.A)(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||"light";function o(e,r){Object.keys(r).length&&t.push("string"==typeof e?{[e]:{...r}}:e)}o(r(void 0,{...h}),h);let{[i]:a,...l}=p;if(a){let{css:e}=a,t=s[i]?.palette?.mode,l=!n&&t?{colorScheme:t,...e}:{...e};o(r(i,{...l}),l)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=s[e]?.palette?.mode,a=!n&&i?{colorScheme:i,...t}:{...t};o(r(e,{...a}
1),a)}),t}}};var A=r(52957),C=r(33571),I=r(42370),P=r(89730);function R(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}let O=["none",R(0,2,1,-1,0,1,1,0,0,1,3,0),R(0,3,1,-2,0,2,2,0,0,1,5,0),R(0,3,3,-2,0,3,4,0,0,1,8,0),R(0,2,4,-1,0,4,5,0,0,1,10,0),R(0,3,5,-1,0,5,8,0,0,1,14,0),R(0,3,5,-1,0,6,10,0,0,1,18,0),R(0,4,5,-2,0,7,10,1,0,2,16,1),R(0,5,5,-3,0,8,10,1,0,3,14,2),R(0,5,6,-3,0,9,12,1,0,3,16,2),R(0,6,6,-3,0,10,14,1,0,4,18,3),R(0,6,7,-4,0,11,15,1,0,4,20,3),R(0,7,8,-4,0,12,17,2,0,5,22,4),R(0,7,8,-4,0,13,19,2,0,5,24,4),R(0,7,9,-4,0,14,21,2,0,5,26,4),R(0,8,9,-5,0,15,22,2,0,6,28,5),R(0,8,10,-5,0,16,24,2,0,6,30,5),R(0,8,11,-5,0,17,26,2,0,6,32,5),R(0,9,11,-5,0,18,28,2,0,7,34,6),R(0,9,12,-6,0,19,29,2,0,7,36,6),R(0,10,13,-6,0,20,31,3,0,8,38,7),R(0,10,13,-6,0,21,33,3,0,8,40,7),R(0,10,14,-6,0,22,35,3,0,8,42,7),R(0,11,14,-7,0,23,36,3,0,9,44,8),R(0,11,15,-7,0,24,38,3,0,9,46,8)],M={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},N={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function L(e){return"".concat(Math.round(e),"ms")}function D(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}let j={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function V(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={...e};return!function e(t){let r=Object.entries(t);for(let n=0;n<r.length;n++){let[o,s]=r[n];!((0,i.Q)(s)||void 0===s||"string"==typeof s||"boolean"==typeof s||"number"==typeof s||Array.isArray(s))||o.startsWith("unstable_")?delete t[o]:(0,i.Q)(s)&&(t[o]={...s},e(t[o]))}}(t),"import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ".concat(JSON.stringify(t,null,2),";\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;")}function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];let{breakpoints:a,mixins:l={},spacing:u,palette:c={},transitions:h={},typography:d={},shape:f,...p}=e;if(e.vars&&void 0===e.generateThemeVars)throw Error((0,n.A)(20));let m=b(c),g=(0,I.A)(e),y=(0,i.A)(g,{mixins:{toolbar:{minHeight:56,[(t=g.breakpoints).up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...l},palette:m,shadows:O.slice(),typography:(0,P.A)(m,d),transitions:function(e){let t={...M,...e.easing},r={...N,...e.duration};return{getAutoHeightDuration:D,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:i=r.standard,easing:o=t.easeInOut,delay:s=0,...a}=n;return(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"==typeof i?i:L(i)," ").concat(o," ").concat("string"==typeof s?s:L(s))).join(",")},...e,easing:t,duration:r}}(h),zIndex:{...j}});return y=(0,i.A)(y,p),(y=o.reduce((e,t)=>(0,i.A)(e,t),y)).unstable_sxConfig={...A.A,...null==p?void 0:p.unstable_sxConfig},y.unstable_sx=function(e){return(0,C.A)({sx:e,theme:this})},y.toRuntimeSource=V,y}var U=r(63863);let B=[...Array(25)].map((e,t)=>{if(0===t)return"none";let r=(0,U.A)(t);return"linear-gradient(rgba(255 255 255 / ".concat(r,"), rgba(255 255 255 / ").concat(r,"))")});function z(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function H(e){return"dark"===e?B:[]}function $(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null===(t=e[1])||void 0===t?void 0:t.match(/(mode|contrastThreshold|tonalOffset)/))}let W=e=>[...[...Array(25)].map((t,r)=>"--".concat(e?"".concat(e,"-"):"","overlays-").concat(r)),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkBg"),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkColor")],q=e=>(t,r)=>{let n=e.rootSelector||":root",i=e.colorSchemeSelector,o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),(null==i?void 0:i.startsWith("data-"))&&!i.includes("%s")&&(o="[".concat(i,'="%s"]')),e.defaultColorScheme===t){if("dark"===t){let i={};
1return(W(e.cssVarPrefix).forEach(e=>{i[e]=r[e],delete r[e]}),"media"===o)?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:o?{[o.replace("%s",t)]:i,["".concat(n,", ").concat(o.replace("%s",t))]:r}:{[n]:{...r,...i}}}if(o&&"media"!==o)return"".concat(n,", ").concat(o.replace("%s",String(t)))}else if(t){if("media"===o)return{["@media (prefers-color-scheme: ".concat(String(t),")")]:{[n]:r}};if(o)return o.replace("%s",String(t))}return n};function G(e,t,r){!e[t]&&r&&(e[t]=r)}function K(e){return"string"==typeof e&&e.startsWith("hsl")?(0,o.YL)(e):e}function Y(e,t){"".concat(t,"Channel")in e||(e["".concat(t,"Channel")]=(0,o.Me)(K(e[t]),"MUI: Can't create `palette.".concat(t,"Channel` because `palette.").concat(t,"` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().")+"\n"+"To suppress this warning, you need to explicitly provide the `palette.".concat(t,'Channel` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.')))}let X=e=>{try{return e()}catch(e){}},Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mui";return function(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`}(e)};function Q(e,t,r,n){if(!t)return;t=!0===t?{}:t;let i="dark"===n?"dark":"light";if(!r){e[n]=function(e){let{palette:t={mode:"light"},opacity:r,overlays:n,...i}=e,o=b(t);return{palette:o,opacity:{...z(o.mode),...r},overlays:n||H(o.mode),...i}}({...t,palette:{mode:i,...null==t?void 0:t.palette}});return}let{palette:o,...s}=F({...r,palette:{mode:i,...null==t?void 0:t.palette}});return e[n]={...t,palette:o,opacity:{...z(i),...null==t?void 0:t.opacity},overlays:(null==t?void 0:t.overlays)||H(i)},s}function J(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...!0!==r&&r,palette:b({...!0===r?{}:r.palette,mode:t})})}function ee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t=arguments.length,r=Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];let{palette:a,cssVariables:l=!1,colorSchemes:u=a?void 0:{light:!0},defaultColorScheme:c=null==a?void 0:a.mode,...h}=e,d=c||"light",f=null==u?void 0:u[d],p={...u,...a?{[d]:{..."boolean"!=typeof f&&f,palette:a}}:void 0};if(!1===l){if(!("colorSchemes"in e))return F(e,...r);let t=a;"palette"in e||!p[d]||(!0!==p[d]?t=p[d].palette:"dark"!==d||(t={mode:"dark"}));let n=F({...e,palette:t},...r);return n.defaultColorScheme=d,n.colorSchemes=p,"light"===n.palette.mode&&(n.colorSchemes.light={...!0!==p.light&&p.light,palette:n.palette},J(n,"dark",p.dark)),"dark"===n.palette.mode&&(n.colorSchemes.dark={...!0!==p.dark&&p.dark,palette:n.palette},J(n,"light",p.light)),n}return a||"light"in p||"light"!==d||(p.light=!0),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,r=arguments.length,s=Array(r>1?r-1:0),a=1;a<r;a++)s[a-1]=arguments[a];let{colorSchemes:l={light:!0},defaultColorScheme:u,disableCssColorScheme:c=!1,cssVarPrefix:h="mui",shouldSkipGeneratingVar:d=$,colorSchemeSelector:f=l.light&&l.dark?"media":void 0,rootSelector:p=":root",...m}=e,g=Object.keys(l)[0],y=u||(l.light&&"light"!==g?"light":g),v=Z(h),{[y]:b,light:_,dark:E,...S}=l,T={...S},I=b;if(("dark"!==y||"dark"in l)&&("light"!==y||"light"in l)||(I=!0),!I)throw Error((0,n.A)(21,y));let P=Q(T,I,m,y);_&&!T.light&&Q(T,_,void 0,"light"),E&&!T.dark&&Q(T,E,void 0,"dark");let R={defaultColorScheme:y,...P,cssVarPrefix:h,colorSchemeSelector:f,rootSelector:p,getCssVar:v,colorSchemes:T,font:{...function(e){let t={};return Object.entries(e).forEach(e=>{let[r,n]=e;"object"==typeof n&&(t[r]=`${n.fontStyle?`${n.fontStyle} `:""}${n.fontVariant?`${n.fontVariant} `:""}${n.fontWeight?`${n.fontWeight} `:""}${n.fontStretch?`${n.fontStretch} `:""}${n.fontSize||""}${n.lineHeight?`/${n.lineHeight} `:""}${n.fontFamily||""}`)}),t}(P.typography),...P.font},spacing:"number"==typeof(t=m.spacing)?"".concat(t,"px"):"string"==typeof t||"function"==typeof t||Array.isArray(t)?t:"8px"};
1Object.keys(R.colorSchemes).forEach(e=>{let t=R.colorSchemes[e].palette,r=e=>{let r=e.split("-"),n=r[1],i=r[2];return v(e,t[n][i])};if("light"===t.mode&&(G(t.common,"background","#fff"),G(t.common,"onBackground","#000")),"dark"===t.mode&&(G(t.common,"background","#000"),G(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){G(t.Alert,"errorColor",(0,o.Nd)(t.error.light,.6)),G(t.Alert,"infoColor",(0,o.Nd)(t.info.light,.6)),G(t.Alert,"successColor",(0,o.Nd)(t.success.light,.6)),G(t.Alert,"warningColor",(0,o.Nd)(t.warning.light,.6)),G(t.Alert,"errorFilledBg",r("palette-error-main")),G(t.Alert,"infoFilledBg",r("palette-info-main")),G(t.Alert,"successFilledBg",r("palette-success-main")),G(t.Alert,"warningFilledBg",r("palette-warning-main")),G(t.Alert,"errorFilledColor",X(()=>t.getContrastText(t.error.main))),G(t.Alert,"infoFilledColor",X(()=>t.getContrastText(t.info.main))),G(t.Alert,"successFilledColor",X(()=>t.getContrastText(t.success.main))),G(t.Alert,"warningFilledColor",X(()=>t.getContrastText(t.warning.main))),G(t.Alert,"errorStandardBg",(0,o.j4)(t.error.light,.9)),G(t.Alert,"infoStandardBg",(0,o.j4)(t.info.light,.9)),G(t.Alert,"successStandardBg",(0,o.j4)(t.success.light,.9)),G(t.Alert,"warningStandardBg",(0,o.j4)(t.warning.light,.9)),G(t.Alert,"errorIconColor",r("palette-error-main")),G(t.Alert,"infoIconColor",r("palette-info-main")),G(t.Alert,"successIconColor",r("palette-success-main")),G(t.Alert,"warningIconColor",r("palette-warning-main")),G(t.AppBar,"defaultBg",r("palette-grey-100")),G(t.Avatar,"defaultBg",r("palette-grey-400")),G(t.Button,"inheritContainedBg",r("palette-grey-300")),G(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),G(t.Chip,"defaultBorder",r("palette-grey-400")),G(t.Chip,"defaultAvatarColor",r("palette-grey-700")),G(t.Chip,"defaultIconColor",r("palette-grey-700")),G(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),G(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),G(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),G(t.LinearProgress,"primaryBg",(0,o.j4)(t.primary.main,.62)),G(t.LinearProgress,"secondaryBg",(0,o.j4)(t.secondary.main,.62)),G(t.LinearProgress,"errorBg",(0,o.j4)(t.error.main,.62)),G(t.LinearProgress,"infoBg",(0,o.j4)(t.info.main,.62)),G(t.LinearProgress,"successBg",(0,o.j4)(t.success.main,.62)),G(t.LinearProgress,"warningBg",(0,o.j4)(t.warning.main,.62)),G(t.Skeleton,"bg","rgba(".concat(r("palette-text-primaryChannel")," / 0.11)")),G(t.Slider,"primaryTrack",(0,o.j4)(t.primary.main,.62)),G(t.Slider,"secondaryTrack",(0,o.j4)(t.secondary.main,.62)),G(t.Slider,"errorTrack",(0,o.j4)(t.error.main,.62)),G(t.Slider,"infoTrack",(0,o.j4)(t.info.main,.62)),G(t.Slider,"successTrack",(0,o.j4)(t.success.main,.62)),G(t.Slider,"warningTrack",(0,o.j4)(t.warning.main,.62));let e=(0,o.Y9)(t.background.default,.8);G(t.SnackbarContent,"bg",e),G(t.SnackbarContent,"color",X(()=>t.getContrastText(e))),G(t.SpeedDialAction,"fabHoverBg",(0,o.Y9)(t.background.paper,.15)),G(t.StepConnector,"border",r("palette-grey-400")),G(t.StepContent,"border",r("palette-grey-400")),G(t.Switch,"defaultColor",r("palette-common-white")),G(t.Switch,"defaultDisabledColor",r("palette-grey-100")),G(t.Switch,"primaryDisabledColor",(0,o.j4)(t.primary.main,.62)),G(t.Switch,"secondaryDisabledColor",(0,o.j4)(t.secondary.main,.62)),G(t.Switch,"errorDisabledColor",(0,o.j4)(t.error.main,.62)),G(t.Switch,"infoDisabledColor",(0,o.j4)(t.info.main,.62)),G(t.Switch,"successDisabledColor",(0,o.j4)(t.success.main,.62)),G(t.Switch,"warningDisabledColor",(0,o.j4)(t.warning.main,.62)),G(t.TableCell,"border",(0,o.j4)((0,o.Cg)(t.divider,1),.88)),G(t.Tooltip,"bg",(0,o.Cg)(t.grey[700],.92))}if("dark"===t.mode){G(t.Alert,"errorColor",(0,o.j4)(t.error.light,.6)),G(t.Alert,"infoColor",(0,o.j4)(t.info.light,.6)),G(t.Alert,"successColor",(0,o.j4)(t.success.light,.6)),G(t.Alert,"warningColor",(0,o.j4)(t.warning.light,.6)),G(t.Alert,"errorFilledBg",r("palette-error-dark")),G(t.Alert,"infoFilledBg",r("palette-info-dark")),G(t.Alert,"successFilledBg",r("palette-success-dark")),G(t.Alert,"warningFilledBg",r("palette-warning-dark")),G(t.Alert,"errorFilledColor",X(()=>t.getContrastText(t.error.dark))),G(t.Alert,"infoFilledColor",X(()=>t.getContrastText(t.info.dark))),G(t.Alert,"successFilledColor",X(()=>t.getContrastText(t.success.dark))),G(t.Alert,"warningFilledColor",X(()=>t.getContrastText(t.warning.dark))),G(t.Alert,"errorStandardBg",(0,o.Nd)(t.error.light,.9)),G(t.Alert,"infoStandardBg",(0,o.Nd)(t.info.light,.9)),G(t.Alert,"successStandardBg",(0,o.Nd)(t.success.light,.9)),G(t.Alert,"warningStandardBg",(0,o.Nd)(t.warning.light,.9)),G(t.Alert,"errorIconColor",r("palette-error-main")),G(t.Alert,"infoIconColor",r("palette-info-main")),G(t.Alert,"successIconColor",r("palette-success-main")),G(t.Alert,"warningIconColor",r("palette-warning-main")),G(t.AppBar,"defaultBg",r("palette-grey-900")),G(t.AppBar,"darkBg",r("palette-background-paper")),G(t.AppBar,"darkColor",r("palette-text-primary")),G(t.Avatar,"defaultBg",r("palette-grey-600")),G(t.Button,"inheritContainedBg",r("palette-grey-800")),G(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),G(t.Chip,"defaultBorder",r("palette-grey-700")),G(t.Chip,"defaultAvatarColor",r("palette-grey-300")),G(t.Chip,"defaultIconColor",r("palette-grey-300")),G(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),G(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),G(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),G(t.LinearProgress,"primaryBg",(0,o.Nd)(t.primary.main,.5)),G(t.LinearProgress,"secondaryBg",(0,o.Nd)(t.secondary.main,.5)),G(t.LinearProgress,"errorBg",(0,o.Nd)(t.error.main,.5)),G(t.LinearProgress,"infoBg",(0,o.Nd)(t.info.main,.5)),G(t.LinearProgress,"successBg",(0,o.Nd)(t.success.main,.5)),G(t.LinearProgress,"warningBg",(0,o.Nd)(t.warning.main,.5)),G(t.Skeleton,"bg","rgba(".concat(r("palette-text-primaryChannel")," / 0.13)")),G(t.Slider,"primaryTrack",(0,o.Nd)(t.primary.main,.5)),G(t.Slider,"secondaryTrack",(0,o.Nd)(t.secondary.main,.5)),G(t.Slider,"errorTrack",(0,o.Nd)(t.error.main,.5)),G(t.Slider,"infoTrack",(0,o.Nd)(t.info.main,.5)),G(t.Slider,"successTrack",(0,o.Nd)(t.success.main,.5)),G(t.Slider,"warningTrack",(0,o.Nd)(t.warning.main,.5));let e=(0,o.Y9)(t.background.default,.98);G(t.SnackbarContent,"bg",e),G(t.SnackbarContent,"color",X(()=>t.getContrastText(e))),G(t.SpeedDialAction,"fabHoverBg",(0,o.Y9)(t.background.paper,.15)),G(t.StepConnector,"border",r("palette-grey-600")),G(t.StepContent,"border",r("palette-grey-600")),G(t.Switch,"defaultColor",r("palette-grey-300")),G(t.Switch,"defaultDisabledColor",r("palette-grey-600")),G(t.Switch,"primaryDisabledColor",(0,o.Nd)(t.primary.main,.55)),G(t.Switch,"secondary
1DisabledColor",(0,o.Nd)(t.secondary.main,.55)),G(t.Switch,"errorDisabledColor",(0,o.Nd)(t.error.main,.55)),G(t.Switch,"infoDisabledColor",(0,o.Nd)(t.info.main,.55)),G(t.Switch,"successDisabledColor",(0,o.Nd)(t.success.main,.55)),G(t.Switch,"warningDisabledColor",(0,o.Nd)(t.warning.main,.55)),G(t.TableCell,"border",(0,o.Nd)((0,o.Cg)(t.divider,1),.68)),G(t.Tooltip,"bg",(0,o.Cg)(t.grey[700],.92))}Y(t.background,"default"),Y(t.background,"paper"),Y(t.common,"background"),Y(t.common,"onBackground"),Y(t,"divider"),Object.keys(t).forEach(e=>{let r=t[e];"tonalOffset"!==e&&r&&"object"==typeof r&&(r.main&&G(t[e],"mainChannel",(0,o.Me)(K(r.main))),r.light&&G(t[e],"lightChannel",(0,o.Me)(K(r.light))),r.dark&&G(t[e],"darkChannel",(0,o.Me)(K(r.dark))),r.contrastText&&G(t[e],"contrastTextChannel",(0,o.Me)(K(r.contrastText))),"text"===e&&(Y(t[e],"primary"),Y(t[e],"secondary")),"action"===e&&(r.active&&Y(t[e],"active"),r.selected&&Y(t[e],"selected")))})});let O={prefix:h,disableCssColorScheme:c,shouldSkipGeneratingVar:d,getSelector:q(R=s.reduce((e,t)=>(0,i.A)(e,t),R))},{vars:M,generateThemeVars:N,generateStyleSheets:L}=k(R,O);return R.vars=M,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(e=>{let[t,r]=e;R[t]=r}),R.generateThemeVars=N,R.generateStyleSheets=L,R.generateSpacing=function(){return(0,w.A)(m.spacing,(0,x.LX)(this))},R.getColorSchemeSelector=function(e){return"media"===f?`@media (prefers-color-scheme: ${e})`:f?f.startsWith("data-")&&!f.includes("%s")?`[${f}="${e}"] &`:"class"===f?`.${e} &`:"data"===f?`[data-${e}] &`:`${f.replace("%s",e)} &`:"&"},R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=d,R.unstable_sxConfig={...A.A,...null==m?void 0:m.unstable_sxConfig},R.unstable_sx=function(e){return(0,C.A)({sx:e,theme:this})},R.toRuntimeSource=V,R}({...h,colorSchemes:p,defaultColorScheme:d,..."boolean"!=typeof l&&l},...r)}},89730:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(11317);let i={textTransform:"uppercase"},o='"Roboto", "Helvetica", "Arial", sans-serif';function s(e,t){let{fontFamily:r=o,fontSize:s=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:h=16,allVariants:d,pxToRem:f,...p}="function"==typeof t?t(e):t,m=s/14,g=f||(e=>"".concat(e/h*m,"rem")),y=(e,t,n,i,s)=>({fontFamily:r,fontWeight:e,fontSize:g(t),lineHeight:n,...r===o?{letterSpacing:"".concat(Math.round(i/t*1e5)/1e5,"em")}:{},...s,...d}),v={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(u,14,1.75,.4,i),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,i),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,n.A)({htmlFontSize:h,pxToRem:g,fontFamily:r,fontSize:s,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:c,...v},p,{clone:!1})}},40949:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62026).A)()},63863:(e,t,r)=>{"use strict";function n(e){return Math.round(10*(e<1?5.11916*e**2:4.5*Math.log(e+1)+2))/1e3}r.d(t,{A:()=>n})},58720:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n="$$material"},11794:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(66414);let i=e=>(0,n.A)(e)&&"classes"!==e},66414:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},3552:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a});var n=r(28351),i=r(40949),o=r(58720),s=r(11794);let a=(0,n.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:s.A})},42907:(e,t,r)=>{"use strict";r.d(t,{A:()=>s}),r(96540);var n=r(40973),i=r(40949),o=r(58720);function s(){let e=(0,n.A)(i.A);return e[o.A]||e}},82586:(e,t,r)=>{"use strict";r.d(t,{c:()=>i,q:()=>n});let n=e=>e.scrollTop;function i(e,t){var r,n;let{timeout:i,easing:o,style:s={}}=e;return{duration:null!==(r=s.transitionDuration)&&void 0!==r?r:"number"==typeof i?i:i[t.mode]||0,easing:null!==(n=s.transitionTimingFunction)&&void 0!==n?n:"object"==typeof o?o[t.mode]:o,delay:s.transitionDelay}}},97306:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(13967).A},50172:(e,t,r)=>{"use strict";function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t=>{let[,r]=t;return r&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("string"!=typeof e.main)return!1;for(let r of t)if(!e.hasOwnProperty(r)||"string"!=typeof e[r])return!1;return!0}(r,e)}}r.d(t,{A:()=>n})},40855:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(74705).A},47907:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){return"string"==typeof e}},36334:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96540);let i=function(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}},50186:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(47118);let i={theme:void 0},o=function(e){let t,r;return function(o){let s=t;return(void 0===s||o.theme!==r)&&(i.theme=o.theme,t=s=(0,n.A)(e(i)),r=o.theme),s}}},40362:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(34164);function i(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return r=>{let i="function"==typeof t?t(r):t,o="function"==typeof e?e({...r,...i}):e,s=(0,n.A)(null==r?void 0:r.className,null==i?void 0:i.className,null==o?void 0:o.className);return{...i,...o,...!!s&&{className:s},...(null==i?void 0:i.style)&&(null==o?void 0:o.style)&&{style:{...i.style,...o.style}},...(null==i?void 0:i.sx)&&(null==o?void 0:o.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};let r=(0,n.A)(null==t?void 0:t.className,null==e?void 0:e.className);return{...t,...e,...!!r&&{className:r},...(null==t?void 0:t.style)&&(null==e?void 0:e.style)&&{style:{...t.style,...e.style}},...(null==t?void 0:t.sx)&&(null==e?void 0:e.sx)&&{sx:[...Array.isArray(t.sx)?t.sx:[t.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}},46208:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(32325).A},34013:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(44877).A},19439:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(2501).A},40706:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(21529).A},75170:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(71547).A},13372:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(31523).A},12876:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(34661).A},62849:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(31523),i=r(34388),o=r(56677),s=r(56099);function a(e,t){let{className:r,elementType:a,ownerState:l,externalForwardedProps:u,internalForwardedProps:c,shouldForwardComponentProp:h=!1,...d}=t,{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...g}=u,y=p[e]||a,v=(0,o.A)(m[e],l),{props:{component:b,...w},internalRef:x}=(0,s.A)({className:r,...d,externalForwardedProps:"root"===e?g:void 0,externalSlotProps:v}),_=(0,n.A)(x,null==v?void 0:v.ref,t.ref),E="root"===e?b||f:b,S=(0,i.A)(y,{..."root"===e&&!f&&!p[e]&&c,..."root"!==e&&!p[e]&&c,...w,...E&&!h&&{as:E},...E&&h&&{component:E},ref:_},l);return[y,S]}},1485:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>p,Dg:()=>m}),r(96540);var n=r(11317),i=r(52957);let o=e=>{let t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??i.A;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function s(e){let t;let{sx:r,...i}=e,{systemProps:s,otherProps:a}=o(i);return t=Array.isArray(r)?[s,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,n.Q)(t)?{...s,...t}:s}:{...s,...r},{...a,sx:t}}var a=r(39940),l=r(40973),u=r(74848);let c=function({styles:e,themeId:t,defaultTheme:r={}}){let n=(0,l.A)(r),i="function"==typeof e?e(t&&n[t]||n):e;return(0,u.jsx)(a.A,{styles:i})};var h=r(40949),d=r(58720);let f=function(e){return(0,u.jsx)(c,{...e,defaultTheme:h.A,themeId:d.A})};function p(e){return function(t){return(0,u.jsx)(f,{styles:"function"==typeof e?r=>e({theme:r,...t}):e})}}function m(){return s}},15157:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(2063),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let n=r(87677),i=r(40544),o=r(74848),s=i._(r(96540)),a=n._(r(40961)),l=n._(r(86085)),u=r(87282),c=r(72105),h=r(59641);r(27679);let d=r(47644),f=n._(r(15472)),p=r(1903),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,o,s){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>
1{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,s.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:l,decoding:u,className:c,style:h,fetchPriority:d,placeholder:f,loading:m,unoptimized:v,fill:b,onLoadRef:w,onLoadingCompleteRef:x,setBlurComplete:_,setShowAltText:E,sizesInput:S,onLoad:T,onError:k,...A}=e,C=(0,s.useCallback)(e=>{e&&(k&&(e.src=e.src),e.complete&&g(e,f,w,x,_,v,S))},[r,f,w,x,_,k,v,S]),I=(0,p.useMergedRef)(t,C);return(0,o.jsx)("img",{...A,...y(d),loading:m,width:l,height:a,decoding:u,"data-nimg":b?"fill":"1",className:c,style:h,sizes:i,srcSet:n,src:r,ref:I,onLoad:e=>{g(e.currentTarget,f,w,x,_,v,S)},onError:e=>{E(!0),"empty"!==f&&_(!0),k&&k(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(d.RouterContext),n=(0,s.useContext)(h.ImageConfigContext),i=(0,s.useMemo)(()=>{var e;let t=m||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:a,onLoadingComplete:l}=e,p=(0,s.useRef)(a);(0,s.useEffect)(()=>{p.current=a},[a]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[y,w]=(0,s.useState)(!1),[x,_]=(0,s.useState)(!1),{props:E,meta:S}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:x});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...E,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:_,sizesInput:e.sizes,ref:t}),S.priority?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let n=r(87677),i=r(74848),o=n._(r(96540)),s=r(56847),a=r(27785),l=r(42772),u=r(1278),c=r(26185),h=r(47644),d=r(56334),f=r(15157),p=r(90296),m=r(1903),g=new Set;function y(e,t,r,n){if((0,a.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:b,prefetch:w=null,passHref:x,replace:_,shallow:E,scroll:S,locale:T,onClick:k,onMouseEnter:A,onTouchStart:C,legacyBehavior:I=!1,...P}=e;r=b,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let R=o.default.useContext(h.RouterContext),O=!1!==w,{href:M,as:N}=o.default.useMemo(()=>{if(!R){let e=v(l);return{href:e,as:g?v(g):e}}let[e,t]=(0,s.resolveHref)(R,l,!0);return{href:e,as:g?(0,s.resolveHref)(R,g):t||e}},[R,l,g]),L=o.default.useRef(M),D=o.default.useRef(N);I&&(n=o.default.Children.only(r));let j=I?n&&"object"==typeof n&&n.ref:t,[V,F,U]=(0,d.useIntersection)({rootMargin:"200px"}),B=o.default.useCallback(e=>{(D.current!==N||L.current!==M)&&(U(),D.current=N,L.current=M),V(e)},[N,M,U,V]),z=(0,m.useMergedRef)(B,j);o.default.useEffect(()=>{R&&F&&O&&y(R,M,N,{locale:T})},[N,M,F,T,O,null==R?void 0:R.locale,R]);let H={ref:z,onClick(e){I||"function"!=typeof k||k(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,r,n,i,o,s,l){let{nodeName:u}=e.currentTarget;"A"===u.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!(0,a.isLocalURL)(r))||(e.preventDefault(),(()=>{let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:o,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})())}(e,R,M,N,_,E,S,T)},onMouseEnter(e){I||"function"!=typeof A||A(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&y(R,M,N,{locale:T,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){I||"function"!=typeof C||C(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&y(R,M,N,{locale:T,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(N))H.href=N;else if(!I||x||"a"===n.type&&!("href"in n.props)){let e=void 0!==T?T:null==R?void 0:R.locale,t=(null==R?void 0:R.isLocaleDomain)&&(0,f.getDomainLocale)(N,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales);H.href=t||(0,p.addBasePath)((0,c.addLocale)(N,e,null==R?void 0:R.defaultLocale))}return I?o.default.cloneElement(n,H):(0,i.jsx)("a",{...P,...H,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(96540),i=r(74959),o="function"==typeof IntersectionObserver,s=new Map,a=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,h]=(0,n.useState)(!1),d=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{d.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},a.push(r),s.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),s.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&h(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>h(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,d.current]),[f,c,(0,n.useCallback)(()=>{h(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(96540);function i(e,t){let r=(0,n.useRef)(()=>{}),i=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>e&&t?n=>{null===n?(r.current(),i.current()):(r.current=o(e,n),i.current=o(t,n))}:e||t,[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return a},noSSR:function(){return s}});let n=r(87677);r(74848),r(96540);let i=n._(r(55645));function o(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let r=i.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let a=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=a?a().then(o):Promise.resolve(o(()=>null))}):(delete n.webpack,delete n.modules,s(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),r(27679);let n=r(89197),i=r(72105);function o(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var r,a;let l,u,c,{src:h,sizes:d,unoptimized:f=!1,priority:p=!1,loading:m,className:g,quality:y,width:v,height:b,fill:w=!1,style:x,overrideSrc:_,onLoad:E,onLoadingComplete:S,placeholder:T="empty",blurDataURL:k,fetchPriority:A,decoding:C="async",layout:I,objectFit:P,objectPosition:R,lazyBoundary:O,lazyRoot:M,...N}=e,{imgConf:L,showAltText:D,blurComplete:j,defaultLoader:V}=t,F=L||i.imageConfigDefault;if("allSizes"in F)l=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>
1e-t),t=F.deviceSizes.sort((e,t)=>e-t),n=null==(r=F.qualities)?void 0:r.sort((e,t)=>e-t);l={...F,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===V)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let U=N.loader||V;delete N.loader,delete N.srcSet;let B="__next_img_default"in U;if(B){if("custom"===l.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(I){"fill"===I&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!d&&(d=t)}let z="",H=s(v),$=s(b);if((a=h)&&"object"==typeof a&&(o(a)||void 0!==a.src)){let e=o(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,c=e.blurHeight,k=k||e.blurDataURL,z=e.src,!w){if(H||$){if(H&&!$){let t=H/e.width;$=Math.round(e.height*t)}else if(!H&&$){let t=$/e.height;H=Math.round(e.width*t)}}else H=e.width,$=e.height}}let W=!p&&("lazy"===m||void 0===m);(!(h="string"==typeof h?h:z)||h.startsWith("data:")||h.startsWith("blob:"))&&(f=!0,W=!1),l.unoptimized&&(f=!0),B&&!l.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(f=!0);let q=s(y),G=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:R}:{},D?{}:{color:"transparent"},x),K=j||"empty"===T?null:"blur"===T?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:H,heightInt:$,blurWidth:u,blurHeight:c,blurDataURL:k||"",objectFit:G.objectFit})+'")':'url("'+T+'")',Y=K?{backgroundSize:G.objectFit||"cover",backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},X=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:s,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,s),c=l.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:l.map((e,n)=>a({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:a({config:t,src:r,quality:o,width:l[c]})}}({config:l,src:h,unoptimized:f,width:H,quality:q,sizes:d,loader:U});return{props:{...N,loading:W?"lazy":m,fetchPriority:A,width:H,height:$,decoding:C,className:g,style:{...G,...Y},sizes:X.sizes,srcSet:X.srcSet,src:_||X.src},meta:{unoptimized:f,priority:p,placeholder:T,fill:w}}}},89197:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:s}=e,a=n?40*n:t,l=i?40*i:r,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},22364:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return a}});let n=r(87677),i=r(87282),o=r(36526),s=n._(r(15472));function a(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=o.Image},15472:(e,t)=>{"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:o}=e,s=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+s+(n.startsWith("/_next/static/media/")?"&dpl=dpl_Bh8wAGPt1Hxof2WnUpwu7jV4XXaA":"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},94319:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(87677)._(r(96540)).default.createContext(null)},55645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(87677)._(r(96540)),i=r(94319),o=[],s=[],a=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),o=null;function l(){if(!o){let t=new u(e,r);o={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return o.promise()}if(!a){let e=r.webpack?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return l()})}function c(e,t){!function(){l();let e=n.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let s=n.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:o.retry}),[]),n.default.useMemo(()=>{var t;return s.loading||s.error?n.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:o.retry}):s.loaded?n.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return c.preload=()=>l(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(l,e)}function h(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return h(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{h(o).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(a=!0,t());h(s,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let d=c},14039:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>rz});var n,i,o,s=r(74848);r(32091),r(46454),r(53157);var a=r(96540),l=r(79219),u=r(71884),c=r(28621),h=r(86715),d=r(47719),f=r(78885),p=r(84961),m=r(85787),g=r(60373),y=r(82163),v=r(72035),b=r(34164),w=r(75659),x=r(47907),_=r(3552),E=r(50186),S=r(98301),T=r(36334),k=r(13372),A=r(36490),C=r(38413),I=r(57936);function P(e){return(0,I.Ay)("MuiListItem",e)}
1(0,C.A)("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);let R=(0,C.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function O(e){return(0,I.Ay)("MuiListItemSecondaryAction",e)}(0,C.A)("MuiListItemSecondaryAction",["root","disableGutters"]);let M=e=>{let{disableGutters:t,classes:r}=e;return(0,w.A)({root:["root",t&&"disableGutters"]},O,r)},N=(0,_.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:e=>{let{ownerState:t}=e;return t.disableGutters},style:{right:0}}]}),L=a.forwardRef(function(e,t){let r=(0,S.b)({props:e,name:"MuiListItemSecondaryAction"}),{className:n,...i}=r,o=a.useContext(A.A),l={...r,disableGutters:o.disableGutters},u=M(l);return(0,s.jsx)(N,{className:(0,b.A)(u.root,n),ownerState:l,ref:t,...i})});L.muiName="ListItemSecondaryAction";let D=e=>{let{alignItems:t,classes:r,dense:n,disableGutters:i,disablePadding:o,divider:s,hasSecondaryAction:a}=e;return(0,w.A)({root:["root",n&&"dense",!i&&"gutters",!o&&"padding",s&&"divider","flex-start"===t&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},P,r)},j=(0,_.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]}})((0,E.A)(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:e=>{let{ownerState:t}=e;return!t.disablePadding},style:{paddingTop:8,paddingBottom:8}},{props:e=>{let{ownerState:t}=e;return!t.disablePadding&&t.dense},style:{paddingTop:4,paddingBottom:4}},{props:e=>{let{ownerState:t}=e;return!t.disablePadding&&!t.disableGutters},style:{paddingLeft:16,paddingRight:16}},{props:e=>{let{ownerState:t}=e;return!t.disablePadding&&!!t.secondaryAction},style:{paddingRight:48}},{props:e=>{let{ownerState:t}=e;return!!t.secondaryAction},style:{["& > .".concat(R.root)]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:e=>{let{ownerState:t}=e;return t.divider},style:{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"}},{props:e=>{let{ownerState:t}=e;return t.button},style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:e=>{let{ownerState:t}=e;return t.hasSecondaryAction},style:{paddingRight:48}}]}})),V=(0,_.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),F=a.forwardRef(function(e,t){let r=(0,S.b)({props:e,name:"MuiListItem"}),{alignItems:n="center",children:i,className:o,component:l,components:u={},componentsProps:c={},ContainerComponent:h="li",ContainerProps:{className:d,...f}={},dense:p=!1,disableGutters:m=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:v,slotProps:w={},slots:_={},...E}=r,C=a.useContext(A.A),I=a.useMemo(()=>({dense:p||C.dense||!1,alignItems:n,disableGutters:m}),[n,C.dense,p,m]),P=a.useRef(null),R=a.Children.toArray(i),O=R.length&&(0,T.A)(R[R.length-1],["ListItemSecondaryAction"]),M={...r,alignItems:n,dense:I.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:O},N=D(M),F=(0,k.A)(P,t),U=_.root||u.Root||j,B=w.root||c.root||{},z={className:(0,b.A)(N.root,B.className,o),...E},H=l||"li";return O?(H=z.component||l?H:"div","li"===h&&("li"===H?H="div":"li"===z.component&&(z.component="div")),(0,s.jsx)(A.A.Provider,{value:I,children:(0,s.jsxs)(V,{as:h,className:(0,b.A)(N.container,d),ref:F,ownerState:M,...f,children:[(0,s.jsx)(U,{...B,...!(0,x.A)(U)&&{as:H,ownerState:{...M,...B.ownerState}},...z,children:R}),R.pop()]})})):(0,s.jsx)(A.A.Provider,{value:I,children:(0,s.jsxs)(U,{...B,as:H,ref:F,...!(0,x.A)(U)&&{ownerState:{...M,...B.ownerState}},...z,children:[R,v&&(0,s.jsx)(L,{children:v})]})})});var U=r(20889);function B(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var z=function e(t,r){function n(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=B({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
1URIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+o}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=t.read(s,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){n(e,"",B({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,B({},this.attributes,t))},withConverter:function(t){return e(B({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),H=r(62026);let $=a.createContext(null);function W(){return a.useContext($)}let q="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",G=function(e){let{children:t,theme:r}=e,n=W(),i=a.useMemo(()=>{let e=null===n?{...r}:"function"==typeof r?r(n):{...n,...r};return null!=e&&(e[q]=null!==n),e},[r,n]);return(0,s.jsx)($.Provider,{value:i,children:t})};var K=r(24684),Y=r(25463),X=r(73788),Z=r(72221);let Q={};function J(e,t,r,n=!1){return a.useMemo(()=>{let i=e&&t[e]||t;if("function"==typeof r){let o=r(i),s=e?{...t,[e]:o}:o;return n?()=>s:s}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}let ee=function(e){let{children:t,theme:r,themeId:n}=e,i=(0,Y.A)(Q),o=W()||Q,a=J(n,i,r),l=J(n,o,r,!0),u="rtl"===(n?a[n]:a).direction;return(0,s.jsx)(G,{theme:l,children:(0,s.jsx)(K.T.Provider,{value:a,children:(0,s.jsx)(X.A,{value:u,children:(0,s.jsx)(Z.A,{value:n?a[n].components:a.components,children:t})})})})};var et=r(58720);function er(e){let{theme:t,...r}=e,n=et.A in t?t[et.A]:void 0;return(0,s.jsx)(ee,{...r,themeId:n?et.A:void 0,theme:n||t})}var en=r(33571),ei=r(39940),eo=r(21529);let es="mode",ea="color-scheme";function el(){}let eu=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(r){let n;if("undefined"!=typeof window){if(!t)return r;try{n=t.localStorage.getItem(e)}catch{}return n||r}},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return el;let n=t=>{let n=t.newValue;t.key===e&&r(n)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function ec(){}function eh(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function ed(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}var ef=r(89730);let ep={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:em,useColorScheme:eg,getInitColorSchemeScript:ey}=function(e){let{themeId:t,theme:r={},modeStorageKey:n=es,colorSchemeStorageKey:i=ea,disableTransitionOnChange:o=!1,defaultColorScheme:l,resolveTheme:u}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=a.createContext(void 0),d={},f={},p="string"==typeof l?l:l.light,m="string"==typeof l?l:l.dark;return{CssVarsProvider:function(e){let{children:c,theme:p,modeStorageKey:m=n,colorSchemeStorageKey:g=i,disableTransitionOnChange:y=o,storageManager:v,storageWindow:b="undefined"==typeof window?void 0:window,documentNode:w="undefined"==typeof document?void 0:document,colorSchemeNode:x="undefined"==typeof document?void 0:document.documentElement,disableNestedContext:_=!1,disableStyleSheetGeneration:E=!1,defaultMode:S="system",noSsr:T}=e,k=a.useRef(!1),A=W(),C=a.useContext(h),I=!!C&&!_,P=a.useMemo(()=>p||("function"==typeof r?r():r),[p]),R=P[t],O=R||P,{colorSchemes:M=d,components:N=f,cssVarPrefix:L}=O,D=Object.keys(M).filter(e=>!!M[e]).join(","),j=a.useMemo(()=>D.split(","),[D]),V="string"==typeof l?l:l.light,F="string"==typeof l?l:l.dark,U=M[V]&&M[F]?S:M[O.defaultColorScheme]?.palette?.mode||O.palette?.mode,{mode:B,setMode:z,systemMode:H,lightColorScheme:$,darkColorScheme:q,colorScheme:G,setColorScheme:K}=function(e){let{defaultMode:t="light",defaultLightColorScheme:r,defaultDar
vendor: 3,188 bytes, line 1
1kColorScheme:n,supportedColorSchemes:i=[],modeStorageKey:o=es,colorSchemeStorageKey:s=ea,storageWindow:l="undefined"==typeof window?void 0:window,storageManager:u=eu,noSsr:c=!1}=e,h=i.join(","),d=i.length>1,f=a.useMemo(()=>u?.({key:o,storageWindow:l}),[u,o,l]),p=a.useMemo(()=>u?.({key:`${s}-light`,storageWindow:l}),[u,s,l]),m=a.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:l}),[u,s,l]),[g,y]=a.useState(()=>{let e=f?.get(t)||t,i=p?.get(r)||r,o=m?.get(n)||n;return{mode:e,systemMode:eh(e),lightColorScheme:i,darkColorScheme:o}}),[v,b]=a.useState(c||!d);a.useEffect(()=>{b(!0)},[]);let w=ed(g,e=>"light"===e?g.lightColorScheme:"dark"===e?g.darkColorScheme:void 0),x=a.useCallback(e=>{y(r=>{if(e===r.mode)return r;let n=e??t;return f?.set(n),{...r,mode:n,systemMode:eh(n)}})},[f,t]),_=a.useCallback(e=>{e?"string"==typeof e?e&&!h.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):y(t=>{let r={...t};return ed(t,t=>{"light"===t&&(p?.set(e),r.lightColorScheme=e),"dark"===t&&(m?.set(e),r.darkColorScheme=e)}),r}):y(t=>{let i={...t},o=null===e.light?r:e.light,s=null===e.dark?n:e.dark;return o&&(h.includes(o)?(i.lightColorScheme=o,p?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),s&&(h.includes(s)?(i.darkColorScheme=s,m?.set(s)):console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`)),i}):y(e=>(p?.set(r),m?.set(n),{...e,lightColorScheme:r,darkColorScheme:n}))},[h,p,m,r,n]),E=a.useCallback(e=>{"system"===g.mode&&y(t=>{let r=e?.matches?"dark":"light";return t.systemMode===r?t:{...t,systemMode:r}})},[g.mode]),S=a.useRef(E);return S.current=E,a.useEffect(()=>{if("function"!=typeof window.matchMedia||!d)return;let e=(...e)=>S.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),a.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||["light","dark","system"].includes(e))&&x(e||t)})||ec,r=p?.subscribe(e=>{(!e||h.match(e))&&_({light:e})})||ec,n=m?.subscribe(e=>{(!e||h.match(e))&&_({dark:e})})||ec;return()=>{e(),r(),n()}}},[_,x,h,t,l,d,f,p,m]),{...g,mode:v?g.mode:void 0,systemMode:v?g.systemMode:void 0,colorScheme:v?w:void 0,setMode:x,setColorScheme:_}}({supportedColorSchemes:j,defaultLightColorScheme:V,defaultDarkColorScheme:F,modeStorageKey:m,colorSchemeStorageKey:g,defaultMode:U,storageManager:v,storageWindow:b,noSsr:T}),Y=B,X=G;I&&(Y=C.mode,X=C.colorScheme);let Z=a.useMemo(()=>{let e=X||O.defaultColorScheme,t=O.generateThemeVars?.()||O.vars,r={...O,components:N,colorSchemes:M,cssVarPrefix:L,vars:t};if("function"==typeof r.generateSpacing&&(r.spacing=r.generateSpacing()),e){let t=M[e];t&&"object"==typeof t&&Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?r[e]={...r[e],...t[e]}:r[e]=t[e]})}return u?u(r):r},[O,X,N,M,L]),Q=O.colorSchemeSelector;(0,eo.A)(()=>{if(X&&x&&Q&&"media"!==Q){let e=Q;if("class"===Q&&(e=".%s"),"data"===Q&&(e="[data-%s]"),Q?.startsWith("data-")&&!Q.includes("%s")&&(e=`[${Q}="%s"]`),e.startsWith("."))x.classList.remove(...j.map(t=>e.substring(1).replace("%s",t))),x.classList.add(e.substring(1).replace("%s",X));else{let t=e.replace("%s",X).match(/\[([^\]]+)\]/);if(t){let[e,r]=t[1].split("=");
1r||j.forEach(t=>{x.removeAttribute(e.replace(X,t))}),x.setAttribute(e,r?r.replace(/"|'/g,""):"")}else x.setAttribute(e,X)}}},[X,Q,x,j]),a.useEffect(()=>{let e;if(y&&k.current&&w){let t=w.createElement("style");t.appendChild(w.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),w.head.appendChild(t),window.getComputedStyle(w.body),e=setTimeout(()=>{w.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[X,y,w]),a.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);let J=a.useMemo(()=>({allColorSchemes:j,colorScheme:X,darkColorScheme:q,lightColorScheme:$,mode:Y,setColorScheme:K,setMode:z,systemMode:H}),[j,X,q,$,Y,K,z,H,Z.colorSchemeSelector]),et=!0;(E||!1===O.cssVariables||I&&A?.cssVarPrefix===L)&&(et=!1);let er=(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(ee,{themeId:R?t:void 0,theme:Z,children:c}),et&&(0,s.jsx)(ei.A,{styles:Z.generateStyleSheets?.()||[]})]});return I?er:(0,s.jsx)(h.Provider,{value:J,children:er})},useColorScheme:()=>a.useContext(h)||c,getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:i=es,colorSchemeStorageKey:o=ea,attribute:a="data-color-scheme",colorSchemeNode:l="document.documentElement",nonce:u}=e||{},c="",h=a;if("class"===a&&(h=".%s"),"data"===a&&(h="[data-%s]"),h.startsWith(".")){let e=h.substring(1);c+=`${l}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
2      ${l}.classList.add('${e}'.replace('%s', colorScheme));`}let d=h.match(/\[([^\]]+)\]/);if(d){let[e,t]=d[1].split("=");t||(c+=`${l}.removeAttribute('${e}'.replace('%s', light));
3      ${l}.removeAttribute('${e}'.replace('%s', dark));`),c+=`
4      ${l}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else c+=`${l}.setAttribute('${h}', colorScheme);`;return(0,s.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?u:"",dangerouslySetInnerHTML:{__html:`(function() {
5try {
6  let colorScheme = '';
7  const mode = localStorage.getItem('${i}') || '${t}';
8  const dark = localStorage.getItem('${o}-dark') || '${n}';
9  const light = localStorage.getItem('${o}-light') || '${r}';
10  if (mode === 'system') {
11    // handle system mode
12    const mql = window.matchMedia('(prefers-color-scheme: dark)');
13    if (mql.matches) {
14      colorScheme = dark
15    } else {
16      colorScheme = light
17    }
18  }
19  if (mode === 'light') {
20    colorScheme = light;
21  }
22  if (mode === 'dark') {
23    colorScheme = dark;
24  }
25  if (colorScheme) {
26    ${c}
27  }
28} catch(e){}})();`}},"mui-color-scheme-init")})({colorSchemeStorageKey:i,defaultLightColorScheme:p,defaultDarkColorScheme:m,modeStorageKey:n,...e})}}({themeId:et.A,theme:()=>(0,H.A)({cssVariables:!0}),colorSchemeStorageKey:ep.colorSchemeStorageKey,modeStorageKey:ep.modeStorageKey,defaultColorScheme:{light:ep.defaultLightColorScheme,dark:ep.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:(0,ef.A)(e.palette,e.typography)};return t.unstable_sx=function(e){return(0,en.A)({sx:e,theme:this})},t}});function ev(e){let{theme:t,...r}=e;return"function"!=typeof t&&"colorSchemes"in(et.A in t?t[et.A]:t)?(0,s.jsx)(em,{theme:t,...r}):(0,s.jsx)(er,{theme:t,...r})}var eb=r(1485);let ew="function"==typeof(0,eb.Dp)({}),ex=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),e_=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),eE=function(e){var t,r;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={};n&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(t=>{var r,n;let[o,s]=t,a=e.getColorSchemeSelector(o);a.startsWith("@")?i[a]={":root":{colorScheme:null===(r=s.palette)||void 0===r?void 0:r.mode}}:i[a.replace(/\s*&/,"")]={colorScheme:null===(n=s.palette)||void 0===n?void 0:n.mode}});let o={html:ex(e,n),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...e_(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i},s=null===(r=e.components)||void 0===r?void 0:null===(t=r.MuiCssBaseline)||void 0===t?void 0:t.styleOverrides;return s&&(o=[o,s]),o},eS="mui-ecs",eT=e=>{let t=eE(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[":root:has(".concat(eS,")")]={colorScheme:e.palette.mode}
28),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(t=>{var n,i;let[o,s]=t,a=e.getColorSchemeSelector(o);a.startsWith("@")?r[a]={[":root:not(:has(.".concat(eS,"))")]:{colorScheme:null===(n=s.palette)||void 0===n?void 0:n.mode}}:r[a.replace(/\s*&/,"")]={["&:not(:has(.".concat(eS,"))")]:{colorScheme:null===(i=s.palette)||void 0===i?void 0:i.mode}}}),t},ek=(0,eb.Dp)(ew?e=>{let{theme:t,enableColorScheme:r}=e;return eE(t,r)}:e=>{let{theme:t}=e;return eT(t)}),eA=function(e){let{children:t,enableColorScheme:r=!1}=(0,S.b)({props:e,name:"MuiCssBaseline"});return(0,s.jsxs)(a.Fragment,{children:[ew&&(0,s.jsx)(ek,{enableColorScheme:r}),!ew&&!r&&(0,s.jsx)("span",{className:eS,style:{display:"none"}}),t]})},eC=(0,a.createContext)(),eI=e=>{let{children:t}=e,[r,n]=(0,a.useState)("light");(0,a.useEffect)(()=>{let e=z.get("theme")||"light";n(e),"dark"===e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[]),(0,a.useEffect)(()=>{"dark"===r?(document.body.classList.add("bg-gray-800","text-white"),document.body.classList.remove("bg-gray-50","text-black")):(document.body.classList.add("bg-white","text-black"),document.body.classList.remove("bg-gray-800","text-white"))},[r]);let i=(0,H.A)({palette:{mode:r,primary:{main:"#FFA500"},background:{default:"dark"===r?"#121212":"#ffffff",paper:"dark"===r?"#1E1E1E":"#ffffff"}
28,text:{primary:"dark"===r?"#ffffff":"#111111"}}});return(0,s.jsx)(eC.Provider,{value:{theme:r,toggleTheme:()=>{let e="light"===r?"dark":"light";n(e),"dark"===e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),z.set("theme",e,{expires:30})}},children:(0,s.jsxs)(ev,{theme:i,children:[(0,s.jsx)(eA,{}),t]})})},eP=()=>(0,a.useContext)(eC);var eR=r(26923),eO=r(17795),eM=r(33877),eN=r(12397),eL=r(11583),eD=r(57004);let ej=[{title:{en:"Dashboard",th:"แดชบอร์ด"},icon:(0,s.jsx)(eD.jHl,{}),href:"/admin"},{title:{en:"Administrative",th:"ผู้ดูแลระบบ"},icon:(0,s.jsx)(function(e){return(0,m.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7C13.4477 7 13 7.44772 13 8V16C13 16.5523 13.4477 17 14 17H18C18.5523 17 19 16.5523 19 16V8C19 7.44772 18.5523 7 18 7H14ZM17 9H15V15H17V9Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M6 7C5.44772 7 5 7.44772 5 8C5 8.55228 5.44772 9 6 9H10C10.5523 9 11 8.55228 11 8C11 7.44772 10.5523 7 10 7H6Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13H10C10.5523 13 11 12.5523 11 12C11 11.4477 10.5523 11 10 11H6Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M5 16C5 15.4477 5.44772 15 6 15H10C10.5523 15 11 15.4477 11 16C11 16.5523 10.5523 17 10 17H6C5.44772 17 5 16.5523 5 16Z",fill:"currentColor"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C2.34315 3 1 4.34315 1 6V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V6C23 4.34315 21.6569 3 20 3H4ZM20 5H4C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18V6C21 5.44772 20.5523 5 20 5Z",fill:"currentColor"},child:[]}]})(e)},{}),subMenu:[{title:{en:"Company",th:"บริษัท"},href:"/admin/company"},{title:{en:"Document Numbering",th:"เลขที่เอกสาร"},href:"/admin/settings/document-numbering"}]},{title:{en:"Courses",th:"คอร์ส"},icon:(0,s.jsx)(p.Mzm,{}),href:"/admin/courses"},{title:{en:"Online Courses",th:"คอร์สออนไลน์"},icon:(0,s.jsx)(eM.Krg,{}),href:"/admin/courses/online-courses"},{title:{en:"Blog",th:"บล็อก"},icon:(0,s.jsx)(eM.sPF,{}),href:"/admin/blog"},{title:{en:"Articles",th:"บทความ"},icon:(0,s.jsx)(eN.Aez,{}),href:"/admin/articles"},{title:{en:"News",th:"ข่าวสาร"},icon:(0,s.jsx)(f.Ua$,{}),href:"/admin/news"},{title:{en:"Pages",th:"หน้าเพจ"},icon:(0,s.jsx)(p.mXD,{}),href:"/admin/pages"},{title:{en:"Menu",th:"เมนู"},icon:(0,s.jsx)(eR.T$Q,{}),href:"/admin/menu"},{title:{en:"Teams",th:"ทีม"},icon:(0,s.jsx)(p.TKI,{}),href:"/admin/teams"},{title:{en:"Media",th:"มีเดีย"},icon:(0,s.jsx)(eL.K$h,{}),href:"/admin/media"},{title:{en:"Forms",th:"แบบฟอร์ม"},icon:(0,s.jsx)(eL.sIf,{}),href:"/admin/forms"},{title:{en:"Chat",th:"แชท"},icon:(0,s.jsx)(f.Cku,{}),href:"/admin/chat"},{title:{en:"Coupons",th:"คูปอง"},icon:(0,s.jsx)(p.X9V,{}),href:"/admin/coupons"},{title:{en:"Payments",th:"การชําระเงิน"},icon:(0,s.jsx)(eM.yiX,{}),href:"/admin/payments"},{title:{en:"Themes",th:"ธีม"},icon:(0,s.jsx)(eO.WdH,{}),href:"/admin/themes"},{title:{en:"Users",th:"ผู้ใช้"},icon:(0,s.jsx)(f.GvN,{}),subMenu:[{title:{en:"Users",th:"ผู้ใช้"},href:"/admin/users"},{title:{en:"Groups",th:"กลุ่ม"},href:"/admin/users/groups"}]},{title:{en:"Settings",th:"การตั้งค่า"},icon:(0,s.jsx)(eR.T$Q,{}),subMenu:[{title:{en:"General",th:"ทั่วไป"},href:"/admin/settings"},{title:{en:"Appearance",th:"ออกแบบ"},href:"/admin/settings/appearance"}]},{title:{en:"Privacy Policy",th:"นโยบายความเป็นส่วนตัว"},icon:(0,s.jsx)(eM.Uvk,{}),href:"/admin/privacy-policy"}];function eV(e){let{isCollapsed:t}=e,{theme:r}=eP(),n=(0,h.useRouter)(),i=n.pathname,{t:o,lang:l}=(0,d.A)(),[u,c]=(0,a.useState)(null),[p,m]=(0,a.useState)(null),b=e=>{i!==e&&n.push(e),x()},w=(e,t)=>{c(e.currentTarget),m(t.subMenu)},x=()=>{c(null),m(null)};return(0,s.jsxs)("nav",{className:"sidebar ".concat(t?"collapsed":""," dark:bg-gray-900 dark:text-white"),children:[(0,s.jsxs)("ul",{className:"menu-list",children:[(0,s.jsx)("div",{children:t?(0,s.jsx)("div",{className:"text-lg font-bold ",children:(0,s.jsx)("span",{children:"TNY"})}):(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-lg font-bold",children:"The New You"}),(0,s.jsx)("span",{className:"text-sm font-light ml-2",children:"Academy"})]})}),ej.map((e,r)=>(0,s.jsx)(g.A,{title:t?e.title.en:"",placement:"right",children:(0,s.jsxs)("li",{onClick:t=>e.subMenu?w(t,e):b(e.href),className:"menu-item ".concat(i===e.href?"active":""),children:[(0,s.jsx)("span",{className:"dark:text-white",children:e.icon}),!t&&(0,s.jsx)("span",{className:"menu-text dark:text-white",children:o(e.title)}),e.subMenu&&!t&&(0,s.jsx)(f.ZK4,{className:"submenu-icon"})]})},r))]}),(0,s.jsx)(y.Ay,{open:!!u,anchorEl:u,onClose:x,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{sx:{minWidth:180,backgroundColor:"dark"===r?"#333":"#fff",color:"dark"===r?"#fff":"#000"}},children:(0,s.jsx)(v.A,{children:null==p?void 0:p.map((e,t)=>(0,s.jsx)(F,{button:!0,onClick:()=>b(e.href),className:"cursor-pointer",children:(0,s.jsx)(U.A,{primary:o(e.title)})},t))})})]})}var eF=r(33013),eU=r(41881),eB=r(35820),ez=r(94191),eH=r(29965),e$=r.n(eH);function eW(e){let{user:t,size:r}=e;return(0,s.jsx)(e$(),{src:(null==t?void 0:t.image)||"/default-avatar.png",alt:t.name,width:r,height:r,className:"rounded-full"})}function eq(e){var t;let{size:r}=e,[n,i]=(0,a.useState)(!1),[o,l]=(0,a.useState)(null),u=(0,h.useRouter)(),{lang:c}=(0,d.A)(),{data:f}=(0,eF.useSession)(),p=null==f?void 0:f.user,m=async()=>{await (0,eF.signOut)({callbackUrl:"/signin",redirect:!0})};return(0,s.jsx)("div",{className:"flex",children:p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.A,{title:c.clickmenu,placement:"bottom",arrow:!0,children:(0,s.jsx)("div",{className:"flex cursor-pointer",onClick:e=>{l(e.currentTarget),i(!0)},children:(0,s.jsx)(eW,{size:r,user:p})})}
28),(0,s.jsxs)(eU.A,{id:"basic-menu",anchorEl:o,keepMounted:!0,open:n,onClose:()=>i(!1),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[(null==f?void 0:null===(t=f.user)||void 0===t?void 0:t.role)==="admin"&&(0,s.jsx)(eB.A,{onClick:()=>u.push("/admin"),children:c.admin_console}),(0,s.jsx)(ez.A,{}),(0,s.jsx)(eB.A,{onClick:()=>u.push("/profile"),children:c.profile}),(0,s.jsx)(eB.A,{children:c["history-order"]}),(0,s.jsx)(eB.A,{children:c.courses}),(0,s.jsx)(ez.A,{}),(0,s.jsx)(eB.A,{onClick:m,children:c.signout})]})]}):null})}var eG=r(94650),eK=r(71468),eY=r(86274);let eX={th:r(87867),en:r(28408)},eZ={language:localStorage.getItem("language")||"th",langData:eX[localStorage.getItem("language")]||eX.th},eQ=(0,eY.Z0)({name:"language",initialState:eZ,reducers:{changeLanguage:(e,t)=>{e.language=t.payload,e.langData=eX[t.payload],localStorage.setItem("language",t.payload),window.location.reload()}}}),{changeLanguage:eJ}=eQ.actions,e0=eQ.reducer;function e1(e){let{isText:t}=e,r=(0,eK.d4)(e=>e.language.language),n=(0,eK.wA)(),[i,o]=(0,a.useState)(!1),{lang:l}=(0,d.A)(),u=[{name:"English",code:"en",flag:"/images/flags/en.png"},{name:"ไทย",code:"th",flag:"/images/flags/th.png"}],c=u.find(e=>e.code===r);return(0,s.jsxs)("div",{className:"relative inline-block",children:[(0,s.jsx)(g.A,{title:l.changelanguage,placement:"bottom",children:(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm dark:bg-white dark:text-black border border-gray-300 rounded-full px-3 py-1.5 cursor-pointer",onClick:()=>o(!i),children:[(0,s.jsx)(e$(),{src:null==c?void 0:c.flag,alt:null==c?void 0:c.name,width:20,height:20,className:t?"mr-2":"",priority:!0}),t?(0,s.jsx)("span",{children:null==c?void 0:c.name}):(0,s.jsx)("span",{className:"ml-2 uppercase",children:null==c?void 0:c.code}),(0,s.jsx)(eG.pte,{className:"ml-2 text-gray-500"})]})}),i&&(0,s.jsx)("ul",{className:"absolute left-0 mt-2 w-32 bg-white border border-gray-300 rounded-md shadow-lg z-10",children:u.map(e=>(0,s.jsxs)("li",{className:"flex items-center gap-2 px-3 py-2 hover:bg-gray-100 cursor-pointer",onClick:()=>{n(eJ(e.code)),o(!1)},children:[(0,s.jsx)(e$(),{src:e.flag,alt:e.name,width:20,height:20,priority:!0}),(0,s.jsx)("span",{className:"text-sm text-black",children:e.name})]},e.code))})]})}function e2(e){let{isCollapsed:t,setIsCollapsed:r}=e,{theme:n,toggleTheme:i}=eP(),{data:o}=(0,eF.useSession)();return(0,s.jsxs)("header",{className:"header-bar dark:bg-gray-900",style:{zIndex:1e3},children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)(f.yFL,{className:"menu-icon",onClick:()=>r(!t)}),(0,s.jsx)("h1",{className:"header-title",children:"Admin Panel"})]}),(0,s.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,s.jsx)(e1,{isText:!0}),(0,s.jsx)(g.A,{title:"light"===n?"Light Mode":"Dark Mode",placement:"bottom",children:(0,s.jsx)("button",{className:"theme-toggle dark:text-white",onClick:i,children:"light"===n?(0,s.jsx)(f._qs,{}):(0,s.jsx)(f.K_M,{})})}),(0,s.jsx)(eq,{user:null==o?void 0:o.user,size:32})]})]})}function e4(e){let{children:t}=e,[r,n]=(0,a.useState)(!1),[i,o]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{o(!0)},[]),(0,a.useEffect)(()=>{if(!i)return;let e=()=>{window.innerWidth<768?n(!0):n(!1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i]),i)?(0,s.jsxs)("div",{className:"admin-layout",children:[(0,s.jsx)(eV,{isCollapsed:r,setIsCollapsed:n}),(0,s.jsxs)("div",{className:"main-container",children:[(0,s.jsx)(e2,{isCollapsed:r,setIsCollapsed:n}),(0,s.jsx)("main",{className:"".concat(r?"collapsed":""," main-content overflow-y-auto overflow-x-hidden p-4"),children:t})]})]}):null}var e3=r(91106),e5=r.n(e3),e6=r(76835),e8=r(84061),e7=r(45169),e9=r(16047);function te(e){let{size:t}=e,[r,n]=(0,a.useState)(null),[i,o]=(0,a.useState)([]),[l,u]=(0,a.useState)(!1),[c,p]=(0,a.useState)(""),m=(0,h.useRouter)(),{t:y,lang:v}=(0,d.A)(),{subscribe:b}=(0,e9.A)("courses");(0,a.useEffect)(()=>{let e=b(e=>{if(e){let t=e.sort((e,t)=>
28{var r,n;return(null!==(r=e.order)&&void 0!==r?r:9999)-(null!==(n=t.order)&&void 0!==n?n:9999)});n(t),o(t)}});return()=>e()},[]),(0,a.useEffect)(()=>{if(c&&r){let e=c.toLowerCase();o(r.filter(t=>{var r,n,i,o,s,a,l,u;let c=(null==t?void 0:null===(n=t.name)||void 0===n?void 0:null===(r=n.th)||void 0===r?void 0:r.toLowerCase().includes(e))||(null==t?void 0:null===(o=t.name)||void 0===o?void 0:null===(i=o.en)||void 0===i?void 0:i.toLowerCase().includes(e)),h=(null==t?void 0:null===(a=t.description)||void 0===a?void 0:null===(s=a.th)||void 0===s?void 0:s.toLowerCase().includes(e))||(null==t?void 0:null===(u=t.description)||void 0===u?void 0:null===(l=u.en)||void 0===l?void 0:l.toLowerCase().includes(e)),d=((null==t?void 0:t.tags)||[]).some(t=>t.toLowerCase().includes(e));return c||h||d}))}else o(null)},[c,r]),(0,a.useEffect)(()=>{""===c&&o(null)},[c]);let w=()=>{p(""),o(null),u(!1)};return(0,s.jsxs)("div",{className:"relative",children:[l?(0,s.jsxs)("div",{className:"flex items-center gap-2 bg-white dark:bg-gray-800 px-4 py-1 rounded-full border border-gray-300",children:[(0,s.jsxs)("div",{className:"relative w-[250px]",children:[(0,s.jsx)("input",{type:"text",placeholder:"Search...",value:c,onChange:e=>p(e.target.value),className:"w-full lg:w-[250px] md:w-[200px] bg-white dark:bg-gray-800 border-none outline-none px-4 py-1 rounded-full text-sm"}),(0,s.jsx)(f.zfp,{size:18,className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"})]}),(0,s.jsx)(f.$8F,{size:22,onClick:w,className:"cursor-pointer text-gray-600 hover:text-orange-500"})]}):(0,s.jsx)(g.A,{title:v.search,placement:"bottom",arrow:!0,children:(0,s.jsx)(f.zfp,{size:t,onClick:()=>{p(""),o(null),u(!0)},className:"text-gray-600 hover:text-orange-500 dark:text-white dark:hover:text-orange-500 cursor-pointer"})}),i&&i.length>0&&l&&(0,s.jsx)("div",{className:"absolute left-0 mt-2 w-[300px] max-h-[400px] overflow-y-auto bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-xl shadow-lg z-50",children:i.map(e=>{var t;return(0,s.jsxs)("div",{className:"flex items-start gap-3 p-3 hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer",onClick:()=>{m.push("/courses/".concat(e.group,"/").concat(e.slug)),w()},children:[(0,s.jsx)(e$(),{src:null==e?void 0:null===(t=e.image)||void 0===t?void 0:t.url,alt:y(null==e?void 0:e.name),width:50,height:50,className:"rounded-md object-cover"}),(0,s.jsxs)("div",{className:"flex flex-col w-full",children:[(0,s.jsx)("span",{className:"font-semibold text-orange-500 text-sm",children:y(null==e?void 0:e.name)}),(0,s.jsx)("span",{className:"text-xs text-gray-600 dark:text-gray-400 mt-1 line-clamp-2",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:y(null==e?void 0:e.description)})]})]},null==e?void 0:e.id)})})]})}var tt=r(95109),tr=r(56103),tn=r(77037);function ti(e){let{size:t=24}=e,r=(0,h.useRouter)(),n=(0,eK.d4)(e=>e.cart.items),[i,o]=(0,a.useState)(!1),l=(0,a.useRef)(null),u=(0,eK.wA)(),{t:c}=(0,d.A)(),f=n.reduce((e,t)=>e+t.price*t.quantity,0);return(0,a.useEffect)(()=>{let e=e=>{l.current&&!l.current.contains(e.target)&&o(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.jsxs)("div",{className:"relative",ref:l,children:[(0,s.jsx)(g.A,{title:"Cart",children:(0,s.jsx)("button",{onClick:()=>o(e=>!e),className:"text-gray-600 hover:text-orange-500 dark:text-white dark:hover:text-orange-500 relative",children:(0,s.jsx)(tt.A,{badgeContent:n.length,color:"error",children:(0,s.jsx)(eO.OIH,{size:t})})})}),i&&(0,s.jsxs)("div",{className:"absolute right-0 z-50 mt-2 w-80 bg-white dark:bg-gray-800 shadow-xl rounded-lg border dark:border-gray-700 p-4",children:[(0,s.jsx)("h3",{className:"text-md font-bold mb-2 text-gray-800 dark:text-white",children:"รายการในตะกร้า"}),0===n.length?(0,s.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"ไม่มีสินค้าในตะกร้า"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("ul",{className:"max-h-60 overflow-y-auto space-y-2 list-disc",children:n.map(e=>(0,s.jsxs)("li",{className:"flex justify-between text-sm",children:[(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"font-medium text-gray-700 dark:text-gray-100",children:c(e.title)}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:()=>{1===e.quantity?u((0,tr.dt)({courseId:e.courseId})):u({type:"cart/decreaseQuantity",payload:{courseId:e.courseId}})},className:"bg-gray-50 border border-gray-300 rounded p-1 text-gray-600 hover:bg-gray-100",children:(0,s.jsx)(tn.iu5,{size:10})}),(0,s.jsx)("span",{className:"text-gray-800 dark:text-white",children:e.quantity}),(0,s.jsx)("button",{onClick:()=>u((0,tr.bE)(e)),className:"bg-gray-50 border border-gray-300 rounded p-1 text-gray-600 hover:bg-gray-100",children:(0,s.jsx)(tn.OiG,{size:10})})]}),(0,s.jsx)("button",{onClick:()=>u((0,tr.dt)({courseId:e.courseId})),children:(0,s.jsx)(p.Ku6,{className:"text-red-500 hover:text-red-700",size:18})})]})]}),(0,s.jsxs)("div",{className:"text-right text-gray-800 dark:text-white",children:["฿",Number(e.price*e.quantity).toLocaleStr
28ing("th-TH")]})]},e.courseId))}),(0,s.jsxs)("div",{className:"border-t border-gray-200 dark:border-gray-600 mt-3 pt-3 text-right",children:[(0,s.jsxs)("p",{className:"font-bold text-gray-900 dark:text-white",children:["รวมทั้งหมด: ฿",Number(f).toLocaleString("th-TH")]}),(0,s.jsx)("button",{onClick:()=>{o(!1),r.push("/payments/checkout")},className:"mt-2 w-full bg-orange-500 text-white py-2 px-4 rounded hover:bg-orange-600 transition",children:"ไปชำระเงิน"})]})]})]})]})}let to=(0,a.forwardRef)(function(e,t){return(0,s.jsx)(e6.A,{direction:"right",ref:t,...e})});function ts(){var e,t,r,n,i,o,c,p,m,y;let[v,b]=(0,a.useState)([]),[w,x]=(0,a.useState)(!1),[_,E]=(0,a.useState)("home"),{theme:S,toggleTheme:T}=eP(),[k,A]=(0,a.useState)(!1),{data:C,status:I}=(0,eF.useSession)(),P=(0,h.useRouter)(),{t:R,lang:O}=(0,d.A)(),{subscribe:M,getById:N,update:L}=(0,e9.A)("appdata");(0,a.useEffect)(()=>{(async()=>{b((await (0,u.GG)((0,u.rJ)(l.db,"menu"))).docs.map(e=>({...e.data(),id:e.id})))})()},[]),(0,a.useEffect)(()=>{var e;let t=P.asPath,r=((null===(e=v[0])||void 0===e?void 0:e.items)||[]).filter(e=>t===e.url||t.startsWith(e.url+"/")||t.startsWith(e.url+"?")||t.startsWith(e.url+"#")).sort((e,t)=>t.url.length-e.url.length)[0];E((null==r?void 0:r.url)||"home")},[P.asPath,v]),(0,a.useEffect)(()=>{let e=N("app",e=>{e&&A(e.isUsePayment)});return()=>e()},[]);let D=async()=>{await (0,eF.signOut)({callbackUrl:"/"}),x(!1)};return"loading"===I?null:(0,s.jsx)("header",{children:(0,s.jsxs)("nav",{className:"bg-white border-gray-200 px-4 lg:px-6 py-2.5 dark:bg-gray-800 w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mx-auto",children:[(0,s.jsx)(e7.A,{size:100}),(0,s.jsx)("div",{className:"hidden lg:flex items-center gap-8",children:null===(t=v[0])||void 0===t?void 0:null===(e=t.items)||void 0===e?void 0:e.map((e,t)=>(0,s.jsx)(e5(),{href:null==e?void 0:e.url,className:"text-lg text-gray-700 hover:text-orange-500 dark:text-gray-50 dark:hover:text-orange-500\n                ".concat(e.url===_?"font-semibold text-orange-500 dark:text-orange-500":"","\n              "),children:(0,s.jsx)("span",{className:"capitalize",children:R(e.title)})},t))}),(0,s.jsxs)("div",{className:"hidden lg:flex items-center gap-3",children:[!C&&(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("button",{className:"text-black dark:text-white hover:text-orange-500",onClick:()=>P.push("/signin"),children:"Sign In"}),(0,s.jsx)("span",{children:"/"}),(0,s.jsx)("button",{className:"text-black dark:text-white hover:text-orange-500",onClick:()=>P.push("/register"),children:"Register"})]}),(0,s.jsx)(te,{size:24}),(0,s.jsx)(e1,{}),C&&(null==C?void 0:null===(r=C.user)||void 0===r?void 0:r.role)==="admin"&&(0,s.jsx)(g.A,{title:O.cart,placement:"bottom",children:(0,s.jsx)(ti,{size:24})}),(0,s.jsx)(g.A,{title:"Change Theme",placement:"bottom",children:(0,s.jsx)("button",{className:"text-gray-700 dark:text-gray-50",onClick:T,children:"light"===S?(0,s.jsx)(f._qs,{size:22}):(0,s.jsx)(f.K_M,{size:22})})}),(0,s.jsx)(eq,{user:null==C?void 0:C.user,size:30})]}),(0,s.jsx)("div",{className:"lg:hidden text-gray-700 dark:text-gray-50",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(te,{size:28}),(0,s.jsx)("button",{className:"lg:hidden text-gray-700 dark:text-gray-50 ml-2",onClick:()=>x(!0),children:(0,s.jsx)(f.yFL,{size:28})})]})})]}),(0,s.jsx)(e8.A,{fullScreen:!0,open:w,onClose:()=>x(!1),TransitionComponent:to,children:(0,s.jsxs)("div",{className:"h-full w-full bg-white dark:bg-gray-800 flex flex-col",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center p-4 border-b dark:border-gray-700 w-full",children:[(0,s.jsx)("span",{className:"text-xl font-semibold dark:text-white",children:O.menu}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(e1,{}),(0,s.jsx)("button",{className:"text-gray-700 dark:text-gray-50",onClick:()=>x(!1),children:(0,s.jsx)(f.$8F,{size:28})})]})]}),(0,s.jsx)("div",{className:"flex justify-center items-center px-4 py-2 w-full",children:C?(0,s.jsxs)("div",{className:"flex items-center px-4 py-2 gap-4",children:[(0,s.jsx)(e$(),{src:(null==C?void 0:null===(n=C.user)||void 0===n?void 0:n.image)||"/default-avatar.png",alt:null==C?void 0:null===(i=C.user)||void 0===i?void 0:i.name,width:100,height:100,className:"rounded-full"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("p",{className:"text-md text-gray-700 font-bold dark:text-gray-50",children:null==C?void 0:null===(o=C.user)||void 0===o?void 0:o.name}),(0,s.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:null==C?void 0:null===(c=C.user)||void 0===c?void 0:c.email})]})]}):(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("button",{className:"text-black dark:text-white hover:text-orange-500",onClick:()=>P.push("/signin"),children:"Sign In"}),(0,s.jsx)("span",{children:"/"}),(0,s.jsx)("button",{className:"text-black dark:text-white hover:text-orange-500",onClick:()=>P.push("/register"),children:"Register"})]})}),(0,s.jsxs)("div",{className:"p-4 flex flex-col gap-4",children:[null===(m=v[0])||void 0===m?void 0:null===(p=m.items)||void 0===p?void 0:p.map((e,t)=>(0,s.jsx)(e5(),{href:e.url,className:"text-lg text-gray-700 dark:text-gray-50 ".concat(e.url===_?"font-semibold text-orange-500 dark:text-orange-500":""),onClick:()=>x(!1),children:R(e.title)}
28,t)),C&&(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(ez.A,{sx:{mb:2}}),(0,s.jsxs)("ul",{className:"flex flex-col gap-4 text-gray-700 dark:text-gray-50",children:[(null==C?void 0:null===(y=C.user)||void 0===y?void 0:y.role)==="admin"&&(0,s.jsx)("li",{onClick:()=>{P.push("/admin"),x(!1)},children:O.admin_console}),(0,s.jsx)("li",{onClick:()=>{P.push("/profile"),x(!1)},children:O.profile}),(0,s.jsx)("li",{children:O["history-order"]}),(0,s.jsx)("li",{children:O.courses}),(0,s.jsx)("li",{onClick:D,children:O.signout})]})]})]})]})})]})})}var ta=r(47091),tl=r(78119);function tu(){var e,t,r,n,i,o,c;let[h,f]=(0,a.useState)({}),[p,m]=(0,a.useState)({}),{t:y,lang:v}=(0,d.A)();(0,a.useEffect)(()=>{!async function(){(await (0,u.GG)((0,u.rJ)(l.db,"appdata"))).forEach(e=>{let t=e.data();"app"===e.id?f(t):"company"===e.id&&m(t)})}()},[]);let b=[{name:"facebook",url:null==h?void 0:null===(e=h.social)||void 0===e?void 0:e.facebookUrl},{name:"instagram",url:null==h?void 0:null===(t=h.social)||void 0===t?void 0:t.instagramUrl},{name:"twitter",url:null==h?void 0:null===(r=h.social)||void 0===r?void 0:r.twitterUrl},{name:"youtube",url:null==h?void 0:null===(n=h.social)||void 0===n?void 0:n.youtubeUrl},{name:"tiktok",url:null==h?void 0:null===(i=h.social)||void 0===i?void 0:i.tiktokUrl},{name:"line",url:null==h?void 0:null===(o=h.social)||void 0===o?void 0:o.lineUrl}];return(0,s.jsx)("footer",{className:"p-4 bg-white md:p-8 lg:p-10 dark:bg-gray-800",children:(0,s.jsxs)("div",{className:"mx-auto max-w-screen-xl text-center",children:[(0,s.jsx)("span",{className:"self-center text-xl font-semibold whitespace-nowrap dark:text-white",children:v.conact_us}),(0,s.jsx)(e5(),{href:"#",className:"flex justify-center items-center text-2xl mt-2 font-semibold text-orange-500 dark:text-white",children:y(null==p?void 0:p.name)}),(0,s.jsx)("p",{className:"mb-4 font-light text-sm lg:text-lg text-gray-500 dark:text-gray-400",children:y(null==h?void 0:h.shortDescription)}),(0,s.jsx)("p",{className:"mb-4 font-light text-sm lg:text-lg text-gray-800 dark:text-gray-400",children:y(null==p?void 0:p.address)}),(0,s.jsxs)("div",{className:"flex-row items-center self-center text-sm mb-6 lg:text-xl",children:[(0,s.jsxs)("span",{className:"mr-2",children:[(0,s.jsxs)("span",{className:"",children:[v.phone,": "]}),(null==p?void 0:null===(c=p.phone)||void 0===c?void 0:c.length)>0?p.phone.map((e,t)=>(0,s.jsxs)("span",{children:[(0,s.jsx)(e5(),{href:"tel:".concat(e),className:"text-orange-500 hover:text-orange-700",children:e}),t<p.phone.length-1?", ":""]},t)):null]}),"|",(0,s.jsxs)("span",{className:"ml-2",children:["Email:"," ",(0,s.jsx)(e5(),{href:"mailto:".concat(null==p?void 0:p.email),className:"text-orange-500 hover:text-orange-700",children:null==p?void 0:p.email})]})]}),(0,s.jsx)("ul",{className:"flex flex-wrap justify-center items-center mb-5 text-gray-500 dark:text-white gap-8",children:tl.G.map((e,t)=>{let r=b.find(t=>t.name===e.name&&t.url);return r?(0,s.jsx)("li",{children:(0,s.jsx)(g.A,{title:e.name,placement:"top",arrow:!0,children:(0,s.jsx)(e5(),{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-orange-500",children:e.icon})})},t):null})}),(0,s.jsxs)("span",{className:"text-sm text-gray-500 sm:text-center dark:text-gray-400",children:["\xa9 2025"," ",(0,s.jsx)(e5(),{href:"#",className:"hover:underline",children:"The New You™"}),". All Rights Reserved."]})]})})}function tc(e){let{children:t}=e,[r,n]=(0,a.useState)(!1);return((0,h.useRouter)(),(0,a.useEffect)(()=>{localStorage.getItem("language")||localStorage.setItem("language","th")},[]),r)?(0,s.jsx)(ta.A,{}):(0,s.jsxs)("main",{className:"flex-1 bg-white dark:bg-gray-800 text-black dark:text-gray-50 flex-col min-h-screen",children:[(0,s.jsx)(ts,{}),(0,s.jsx)("div",{children:t}),(0,s.jsx)(tu,{})]})}var th=r(61409);r(74338);var td=r(76932);let tf=(0,eY.U1)({reducer:{language:e0,cart:tr.Ay,user:td.Ay}});tf.subscribe(()=>{let e=tf.getState();localStorage.setItem("cart",JSON.stringify(e.cart))});var tp=r(31635),tm="4.6.2";function tg(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function ty(e){return!!e&&"function"==typeof e.then}function tv(e,t){try{var r=e();ty(r)?r.then(function(e){return t(!0,e)},function(e){return t(!1,e)}):t(!0,r)}catch(e){t(!1,e)}}function tb(e,t,r){return void 0===r&&(r=16),(0,tp.sH)(this,void 0,void 0,function(){var n,i,o,s;return(0,tp.YH)(this,function(a){switch(a.label){case 0:n=Array(e.length),i=Date.now(),o=0,a.label=1;case 1:if(!(o<e.length))return[3,4];if(n[o]=t(e[o],o),!((s=Date.now())>=i+r))return[3,3];return i=s,[4,new Promise(function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})];case 2:a.sent(),a.label=3;case 3:return++o,[3,1];case 4:return[2,n]}})})}function tw(e){return e.then(void 0,function(){}),e}function tx(e){return parseInt(e)}function t_(e){return parseFloat(e)}function tE(e,t){return"number"==typeof e&&isNaN(e)?t:e}function tS(e){return e.reduce(function(e,t){return e+(t?1:0)},0)}function tT(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var r=1/t;return Math.round(e*r)/r}function tk(e,t){var r,n,i=e[0]>>>16,o=65535&e[0],s=e[1]>>>16,a=65535&e[1],l=t[0]>>>16,u=65535&t[0],c=t[1]>>>16,h=65535&t[1],d=0,f=0;r=0+((n=0+(a+h))>>>16),n&=65535,r+=s+c,f+=r>>>16,r&=65535,f+=o+u,d+=f>>>16,f&=65535,d+=i+l,d&=65535,e[0]=d<<16|f,e[1]=r<<16|n}function tA(e,t){var r,n,i=e[0]>>>16,o=65535&e[0],s=e[1]>>>16,a=65535&e[1],l=t[0]>>>16,u=65535&t[0],c=t[1]>>>16,h=65535&t[1],d=0,f=0;r=0+((n=0+a*h)>>>16),n&=65535,r+=s*h,f+=r>>>16,r&=65535,r+=a*c,f+=r>>>16,r&=65535,f+=o*h,d+=f>>>16,f&=65535,f+=s*c,d+=f>>>16,f&=65535,f+=a*u,d+=f>>
28>16,f&=65535,d+=i*h+o*c+s*u+a*l,d&=65535,e[0]=d<<16|f,e[1]=r<<16|n}function tC(e,t){var r=e[0];32==(t%=64)?(e[0]=e[1],e[1]=r):t<32?(e[0]=r<<t|e[1]>>>32-t,e[1]=e[1]<<t|r>>>32-t):(t-=32,e[0]=e[1]<<t|r>>>32-t,e[1]=r<<t|e[1]>>>32-t)}function tI(e,t){0!=(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function tP(e,t){e[0]^=t[0],e[1]^=t[1]}var tR=[0xff51afd7,0xed558ccd],tO=[0xc4ceb9fe,0x1a85ec53];function tM(e){var t=[0,e[0]>>>1];tP(e,t),tA(e,tR),t[1]=e[0]>>>1,tP(e,t),tA(e,tO),t[1]=e[0]>>>1,tP(e,t)}var tN=[0x87c37b91,0x114253d5],tL=[0x4cf5ad43,0x2745937f],tD=[0,5],tj=[0,0x52dce729],tV=[0,0x38495ab5];function tF(){var e=window,t=navigator;return tS(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function tU(){var e=window,t=navigator;return tS(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===(t.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function tB(){var e=window;return tS(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function tz(){var e=window,t=e.HTMLElement,r=e.Document;return tS(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),r&&"pointerLockElement"in r.prototype])>=4}function tH(){var e,t=window;return e=t.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&"[object WebPageNamespace]"===String(t.browser)}function t$(){var e,t,r=window;return tS(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function tW(){var e=window,t=navigator,r=e.CSS,n=e.HTMLButtonElement;return tS([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,r.supports("font-size-adjust: ex-height 0.5"),r.supports("text-transform: full-width")])>=4}function tq(){var e=tU(),t=t$(),r=window,n=navigator,i="connection";return e?tS([!("SharedWorker"in r),n[i]&&"ontypechange"in n[i],!("sinkId"in new Audio)])>=2:!!t&&tS(["onorientationchange"in r,"orientation"in r,/android/i.test(n.appVersion)])>=2}function tG(e){var t=Error(e);return t.name=e,t}function tK(e,t,r){var n,i,o;return void 0===r&&(r=50),(0,tp.sH)(this,void 0,void 0,function(){var s,a;return(0,tp.YH)(this,function(l){switch(l.label){case 0:s=document,l.label=1;case 1:if(s.body)return[3,3];return[4,tg(r)];case 2:return l.sent(),[3,1];case 3:a=s.createElement("iframe"),l.label=4;case 4:return l.trys.push([4,,10,11]),[4,new Promise(function(e,r){var n=!1,i=function(){n=!0,e()};a.onload=i,a.onerror=function(e){n=!0,r(e)};var o=a.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",t&&"srcdoc"in a?a.srcdoc=t:a.src="about:blank",s.body.appendChild(a);var l=function(){var e,t;n||((null===(t=null===(e=a.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)==="complete"?i():setTimeout(l,10))};l()})];case 5:l.sent(),l.label=6;case 6:if(null===(i=null===(n=a.contentWindow)||void 0===n?void 0:n.document)||void 0===i?void 0:i.body)return[3,8];return[4,tg(r)];case 7:return l.sent(),[3,6];case 8:return[4,e(a,a.contentWindow)];case 9:return[2,l.sent()];case 10:return null===(o=a.parentNode)||void 0===o||o.removeChild(a),[7];case 11:return[2]}})})}var tY=["monospace","sans-serif","serif"],tX=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 5
285 Medium","Vrinda","ZWAdobeF"];function tZ(e){return e.toDataURL()}function tQ(){var e=screen;return[tE(t_(e.availTop),null),tE(t_(e.width)-t_(e.availWidth)-tE(t_(e.availLeft),0),null),tE(t_(e.height)-t_(e.availHeight)-tE(t_(e.availTop),0),null),tE(t_(e.availLeft),null)]}function tJ(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function t0(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function t1(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function t2(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function t4(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function t3(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function t5(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function t6(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var t8=Math,t7=function(){return 0},t9={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},re=function(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=t}},rt=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),rr=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),rn=["FRAGMENT_SHADER","VERTEX_SHADER"],ri=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],ro="WEBGL_debug_renderer_info";function rs(e){if(e.webgl)return e.webgl.context;var t,r=document.createElement("canvas");r.addEventListener("webglCreateContextError",function(){return t=void 0});for(var n=0,i=["webgl","experimental-webgl"];n<i.length;n++){var o=i[n];try{t=r.getContext(o)}catch(e){}if(t)break}return e.webgl={context:t},t}function ra(e){return Object.keys(e.__proto__).filter(rl)}function rl(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function ru(e){return"function"==typeof e.getParameter}var rc={fonts:function(){var e=this;return tK(function(t,r){var n=r.document;return(0,tp.sH)(e,void 0,void 0,function(){var e,t,r,i,o,s,a,l,u,c,h,d;return(0,tp.YH)(this,function(f){for((e=n.body).style.fontSize="48px",(t=n.createElement("div")).style.setProperty("visibility","hidden","important"),r={},i={},o=function(e){var r=n.createElement("span"),i=r.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=e,r.textContent="mmMwWLliI0O&1",t.appendChild(r),r},s=function(e,t){return o("'".concat(e,"',").concat(t))},a=function(){return tY.map(o)},l=function(){for(var e={},t=function(t){e[t]=tY.map(function(e){return s(t,e)})},r=0;r<tX.length;r++)t(tX[r]);return e},u=function(e){return tY.some(function(t,n){return e[n].offsetWidth!==r[t]||e[n].offsetHeight!==i[t]})},c=a(),h=l(),e.appendChild(t),d=0;d<tY.length;d++)r[tY[d]]=c[d].offsetWidth,i[tY[d]]=c[d].offsetHeight;return[2,tX.filter(function(e){return u(h[e])})]})})})},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return(0,tp.sH)(this,void 0,void 0,function(){var e,r,n,i,o;return(0,tp.YH)(this,function(s){switch(s.label){case 0:var a;if(!(tB()||tq()))return[2,void 0];return r=Object.keys(e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',(a=atob)("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2
28cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiX
28Q=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiX
28Q=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}),[4,function(e){var t;return(0,tp.sH)(this,void 0,void 0,function(){var r,n,i,o,s,a,l;return(0,tp.YH)(this,function(u){switch(u.label){case 0:for(n=(r=document).createElement("div"),i=Array(e.length),o={},t0(n),s=0;s<e.length;++s)"DIALOG"===(a=function(e){for(var t=function(e){for(var t,r,n="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,l=function(e,t){s[e]=s[e]||[],s[e].push(t)};;){var u=a.exec(i[2]);if(!u)break;var c=u[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":var h=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(h)l(h[1],null!==(r=null!==(t=h[4])&&void 0!==t?t:h[5])&&void 0!==r?r:"");else throw Error(n);break;default:throw Error(n)}}return[o,s]}(e),r=t[0],n=t[1],i=document.createElement(null!=r?r:"div"),o=0,s=Object.keys(n);o<s.length;o++){var a=s[o],l=n[a].join(" ");"style"===a?function(e,t){for(var r=0,n=t.split(";");r<n.length;r++){var i=n[r],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var s=o[1],a=o[2],l=o[4];e.setProperty(s,a,l||"")}}}(i.style,l):i.setAttribute(a,l)}return i}(e[s])).tagName&&a.show(),t0(l=r.createElement("div")),l.appendChild(a),n.appendChild(l),i[s]=a;u.label=1;case 1:if(r.body)return[3,3];return[4,tg(50)];case 2:return u.sent(),[3,1];case 3:r.body.appendChild(n);try{for(s=0;s<e.length;++s)i[s].offsetParent||(o[e[s]]=!0)}finally{null===(t=n.parentNode)||void 0===t||t.removeChild(n)}return[2,o]}})})}((o=[]).concat.apply(o,r.map(function(t){return e[t]})))];case 1:return n=s.sent(),t&&function(e,t){for(var r="DOM blockers debug:\n```",n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r+="\n".concat(o,":");for(var s=0,a=e[o];s<a.length;s++){var l=a[s];r+="\n  ".concat(t[l]?"\uD83D\uDEAB":"➡️"," ").concat(l)}}console.log("".concat(r,"\n```"))}(e,n),(i=r.filter(function(t){var r=e[t];return tS(r.map(function(e){return n[e]}))>.6*r.length})).sort(),[2,i]}})})},fontPreferences:function(){var e,t;return e=function(e,t){for(var r={},n={},i=0,o=Object.keys(t9);i<o.length;i++){var s=o[i],a=t9[s],l=a[0],u=void 0===l?{}:l,c=a[1],h=void 0===c?"mmMwWLliI0fiflO&1":c,d=e.createElement("span");d.textContent=h,d.style.whiteSpace="nowrap";for(var f=0,p=Object.keys(u);f<p.length;f++){var m=p[f],g=u[m];void 0!==g&&(d.style[m]=g)}r[s]=d,t.append(e.createElement("br"),d)}for(var y=0,v=Object.keys(t9);y<v.length;y++){var s=v[y];n[s]=r[s].getBoundingClientRect().width}return n},void 0===t&&(t=4e3),tK(function(r,n){var i=n.document,o=i.body,s=o.style;s.width="".concat(t,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",tU()?o.style.zoom="".concat(1/n.devicePixelRatio):tB()&&(o.style.zoom="reset");var a=i.createElement("div");return a.textContent=(0,tp.fX)([],Array(t/20<<0),!0).map(function(){return"word"}).join(" "),o.appendChild(a),e(i,o)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')},audio:function(){var e,t,r,n,i,o;return tB()&&tW()&&tH()||tU()&&(e=navigator,t=window,tS(["srLatency"in(r=Audio.prototype),"srChannelCount"in r,"devicePosture"in e,(n=t.visualViewport)&&"segments"in n,"getTextInformation"in Image.prototype])>=3)&&(o=(i=window).URLPattern,tS(["union"in Set.prototype,"Iterator"in i,o&&"hasRegExpGroups"in o.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3)?-4:function(){var e,t,r=window,n=r.OfflineAudioContext||r.webkitOfflineAudioContext;if(!n)return -2;if(tB()&&!tz()&&!(tS(["DOMRectList"in(e=window),"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3))return -1;var i=new n(1,5e3,44100),o=i.createOscillator();o.type="triangle",o.frequency.value=1e4;var s=i.createDynamicsCompressor();s.threshold.value=-50,s.knee.value=40,s.ratio.value=12,s.attack.value=0,s.release.value=.25,o.connect(s),s.connect(i.destination),o.start(0);var a=(t=function(){},[new Promise(function(e,r){var n=!1,o=0,s=0;i.oncomplete=function(t){return e(t.renderedBuffer)};var a=function(){setTimeout(function(){return r(tG("timeout"))},Math.min(500,s+5e3-Date.now()))},l=function(){try{var e=i.startRendering();switch(ty(e)&&tw(e),i.state){case"running":s=Date.now(),n&&a();break;case"suspended":!document.hidden&&o++,n&&o>=3?r(tG("suspended")):setTimeout(l,500)}}catch(e){r(e)}};l(),t=function(){!n&&(n=!0,s>0&&a())}}),t]),l=a[0],u=a[1],c=tw(l.then(function(e){return function(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}(e.getChannelData(0).subarray(4500))},function(e){if("timeout"===e.name||"suspended"===e.name)return -3;throw e}));return function(){return u(),c}}()},screenFrame:function(){var e=this;if(tB()&&tW()&&tH())return function(){return Promise.resolve(void 0)};var t=function(){var e=this;return!function(){if(void 0===i){var e=function(){var t=tQ();tJ(t)?i=setTimeout(e,2500):(n=t,i=void 0)};e()}}(),function(){return(0,tp.sH)(e,void 0,void 0,function(){var e;return(0,tp.YH)(this,function(t){switch(t.label){case 0:var r,i;if(!tJ(e=tQ()))return[3,2];if(n)return[2,(0,tp.fX)([],n,!0)];if(!((r=document).fullscreenElement||r.msFullscreenElement||r.mozFullScreenElement||r.webkitFullscreenElement))return[3,2];return[4,((i=document).exitFullscreen||i.msExitFullscreen||i.moz
28CancelFullScreen||i.webkitExitFullscreen).call(i)];case 1:t.sent(),e=tQ(),t.label=2;case 2:return tJ(e)||(n=e),[2,e]}})})}}();return function(){return(0,tp.sH)(e,void 0,void 0,function(){var e,r;return(0,tp.YH)(this,function(n){switch(n.label){case 0:return[4,t()];case 1:return e=n.sent(),[2,[(r=function(e){return null===e?null:tT(e,10)})(e[0]),r(e[1]),r(e[2]),r(e[3])]]}})})}},canvas:function(){var e,t,r,n,i,o,s,a,l,u,c;return e=tB()&&tW()&&tH(),o=!1,a=((t=document.createElement("canvas")).width=1,t.height=1,s=[t,t.getContext("2d")])[0],(l=s[1])&&a.toDataURL?(l.rect(0,0,10,10),l.rect(2,2,6,6),o=!l.isPointInPath(5,5,"evenodd"),e?n=i="skipped":(n=(a.width=240,a.height=60,l.textBaseline="alphabetic",l.fillStyle="#f60",l.fillRect(100,1,62,20),l.fillStyle="#069",l.font='11pt "Times New Roman"',u="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835)),l.fillText(u,2,15),l.fillStyle="rgba(102, 204, 0, 0.2)",l.font="18pt Arial",l.fillText(u,4,45),r=(c=tZ(a))!==tZ(a)?["unstable","unstable"]:(function(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var r=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<n.length;r++){var i=n[r],o=i[0],s=i[1],a=i[2];t.fillStyle=o,t.beginPath(),t.arc(s,a,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(a,l),[tZ(a),c]))[0],i=r[1])):n=i="unsupported",{winding:o,geometry:n,text:i}},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,r=[],n=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==n&&r.push([n]),Array.isArray(t.languages))tU()&&tS([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||r.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&r.push(i.split(","))}return r},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return tE(t_(navigator.deviceMemory),void 0)},screenResolution:function(){if(!(tB()&&tW()&&tH())){var e,t,r;return e=screen,(r=[(t=function(e){return tE(tx(e),null)})(e.width),t(e.height)]).sort().reverse(),r}},hardwareConcurrency:function(){return tE(tx(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t,r=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(r){var n=new r().resolvedOptions().timeZone;if(n)return n}var i=-Math.max(t_(new Date(e=new Date().getFullYear(),0,1).getTimezoneOffset()),t_(new Date(e,6,1).getTimezoneOffset()));return"UTC".concat(i>=0?"+":"").concat(i)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(tF()||tS(["msWriteProfilerMark"in(e=window),"MSStream"in e,"msLaunchUri"in(t=navigator),"msSaveBlob"in t])>=3&&!tF()))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&tB()&&!tz()?!function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return tS(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPhone":"iPad":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],r=0;r<e.length;++r){var n=e[r];if(n){for(var i=[],o=0;o<n.length;++o){var s=n[o];i.push({type:s.type,suffixes:s.suffixes})}t.push({name:n.name,description:n.description,mimeTypes:i})}}return t}},touchSupport:function(){var e,t=navigator,r=0;void 0!==t.maxTouchPoints?r=tx(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(r=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:r,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<r.length;t++){var n=r[t],i=window[n];i&&"object"==typeof i&&e.push(n)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var r=t[e];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}},invertedColors:function(){return!!t1("inverted")||!t1("none")&&void 0},forcedColors:function(){return!!t2("active")||!t2("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw Error("Too high value")}},contrast:function(){return t4("no-preference")?0:t4("high")||t4("more")?1:t4("low")||t4("less")?-1:t4("forced")?10:void 0},reducedMotion:function(){return!!t3("reduce")||!t3("no-preference")&&void 0},reducedTransparency:function(){return!!t5("reduce")||!t5("no-preference")&&void 0},hdr:function(){return!!t6("high")||!t6("standard")&&void 0},math:function(){var e=t8.acos||t7,t=t8.acosh||t7,r=t8.asin||t7,n=t8.asinh||t7,i=t8.atanh||t7,o=t8.atan||t7,s=t8.sin||t7,a=t8.sinh||t7,l=t8.cos||t7,u=t8.cosh||t7,
28c=t8.tan||t7,h=t8.tanh||t7,d=t8.exp||t7,f=t8.expm1||t7,p=t8.log1p||t7;return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:t8.log(1e154+t8.sqrt(1e154*1e154-1)),asin:r(.12312423423423424),asinh:n(1),asinhPf:t8.log(1+t8.sqrt(2)),atanh:i(.5),atanhPf:t8.log(3)/2,atan:o(.5),sin:s(-1e300),sinh:a(1),sinhPf:t8.exp(1)-1/t8.exp(1)/2,cos:l(10.000000000123),cosh:u(1),coshPf:(t8.exp(1)+1/t8.exp(1))/2,tan:c(-1e300),tanh:h(1),tanhPf:(t8.exp(2)-1)/(t8.exp(2)+1),exp:d(1),expm1:f(1),expm1Pf:t8.exp(1)-1,log1p:p(10),log1pPf:t8.log(11),powPI:t8.pow(t8.PI,-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]},applePay:function(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return -1;if(re())return -3;try{return e.canMakePayments()?1:0}catch(e){return function(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return -2;throw e}(e)}},privateClickMeasurement:function(){var e,t=document.createElement("a"),r=null!==(e=t.attributionSourceId)&&void 0!==e?e:t.attributionsourceid;return void 0===r?void 0:String(r)},audioBaseLatency:function(){if(!(tq()||tB()))return -2;if(!window.AudioContext)return -1;var e=new AudioContext().baseLatency;return null==e?-1:isFinite(e)?e:-3},dateTimeLocale:function(){if(!window.Intl)return -1;var e=window.Intl.DateTimeFormat;if(!e)return -2;var t=e().resolvedOptions().locale;return t||""===t?t:-3},webGlBasics:function(e){var t,r,n,i,o,s,a=rs(e.cache);if(!a)return -1;if(!ru(a))return -2;var l=t$()?null:a.getExtension(ro);return{version:(null===(t=a.getParameter(a.VERSION))||void 0===t?void 0:t.toString())||"",vendor:(null===(r=a.getParameter(a.VENDOR))||void 0===r?void 0:r.toString())||"",vendorUnmasked:l?null===(n=a.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===n?void 0:n.toString():"",renderer:(null===(i=a.getParameter(a.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:l?null===(o=a.getParameter(l.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(s=a.getParameter(a.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function(e){var t=rs(e.cache);if(!t)return -1;if(!ru(t))return -2;var r=t.getSupportedExtensions(),n=t.getContextAttributes(),i=[],o=[],s=[],a=[],l=[];if(n)for(var u=0,c=Object.keys(n);u<c.length;u++){var h=c[u];o.push("".concat(h,"=").concat(n[h]))}for(var d=ra(t),f=0;f<d.length;f++){var p=d[f],m=t[p];s.push("".concat(p,"=").concat(m).concat(rt.has(m)?"=".concat(t.getParameter(m)):""))}if(r)for(var g=0;g<r.length;g++){var y=r[g];if(!(y===ro&&t$()||"WEBGL_polygon_mode"===y&&(tU()||tB()))){var v=t.getExtension(y);if(!v){i.push(y);continue}for(var b=0,w=ra(v);b<w.length;b++){var p=w[b],m=v[p];a.push("".concat(p,"=").concat(m).concat(rr.has(m)?"=".concat(t.getParameter(m)):""))}}}for(var x=0;x<rn.length;x++)for(var _=rn[x],E=0;E<ri.length;E++){var S=ri[E],T=function(e,t,r){var n=e.getShaderPrecisionFormat(e[t],e[r]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}(t,_,S);l.push("".concat(_,".").concat(S,"=").concat(T.join(",")))}return a.sort(),s.sort(),{contextAttributes:o,parameters:s,shaderPrecisions:l,extensions:r,extensionParameters:a,unsupportedExtensions:i}}};function rh(e){return JSON.stringify(e,function(e,t){if(t instanceof Error){var r;return(0,tp.Cl)({name:t.name,message:t.message,stack:null===(r=t.stack)||void 0===r?void 0:r.split("\n")},t)}return t},2)}function rd(e){return function(e,t){var r,n=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n>127)return new TextEncoder().encode(e);t[r]=n}return t}(e);t=t||0;var i=[0,n.length],o=i[1]%16,s=i[1]-o,a=[0,t],l=[0,t],u=[0,0],c=[0,0];for(r=0;r<s;r+=16)u[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,u[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,c[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,c[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,tA(u,tN),tC(u,31),tA(u,tL),tP(a,u),tC(a,27),tk(a,l),tA(a,tD),tk(a,tj),tA(c,tL),tC(c,33),tA(c,tN),tP(l,c),tC(l,31),tk(l,a),tA(l,tD),tk(l,tV);u[0]=0,u[1]=0,c[0]=0,c[1]=0;var h=[0,0];switch(o){case 15:h[1]=n[r+14],tI(h,48),tP(c,h);case 14:h[1]=n[r+13],tI(h,40),tP(c,h);case 13:h[1]=n[r+12],tI(h,32),tP(c,h);case 12:h[1]=n[r+11],tI(h,24),tP(c,h);case 11:h[1]=n[r+10],tI(h,16),tP(c,h);case 10:h[1]=n[r+9],tI(h,8),tP(c,h);case 9:h[1]=n[r+8],tP(c,h),tA(c,tL),tC(c,33),tA(c,tN),tP(l,c);case 8:h[1]=n[r+7],tI(h,56),tP(u,h);case 7:h[1]=n[r+6],tI(h,48),tP(u,h);case 6:h[1]=n[r+5],tI(h,40),tP(u,h);case 5:h[1]=n[r+4],tI(h,32),tP(u,h);case 4:h[1]=n[r+3],tI(h,24),tP(u,h);case 3:h[1]=n[r+2],tI(h,16),tP(u,h);case 2:h[1]=n[r+1],tI(h,8),tP(u,h);case 1:h[1]=n[r],tP(u,h),tA(u,tN),tC(u,31),tA(u,tL),tP(a,u)}
28return tP(a,i),tP(l,i),tk(a,l),tk(l,a),tM(a),tM(l),tk(a,l),tk(l,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",r=0,n=Object.keys(e).sort();r<n.length;r++){var i=n[r],o=e[i],s="error"in o?"error":JSON.stringify(o.value);t+="".concat(t?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return t}(e))}var rf={load:function(e){var t;return void 0===e&&(e={}),(0,tp.sH)(this,void 0,void 0,function(){var r,n;return(0,tp.YH)(this,function(i){var o,s,a,l,u,c,h,d,f,p,m,g;switch(i.label){case 0:return(null===(t=e.monitoring)||void 0===t||t)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(tm,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),r=e.delayFallback,n=e.debug,[4,(void 0===(o=r)&&(o=50),s=o,a=2*o,(l=window.requestIdleCallback)?new Promise(function(e){return l.call(window,function(){return e()},{timeout:a})}):tg(Math.min(s,a)))];case 1:return i.sent(),u={cache:{},debug:n},c=[],f=tw(tb(d=Object.keys(rc).filter(function(e){return!function(e,t){for(var r=0,n=e.length;r<n;++r)if(e[r]===t)return!0;return!1}(c,e)}),function(e){var t,r;return t=rc[e],r=tw(new Promise(function(e){var r=Date.now();tv(t.bind(null,u),function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=Date.now()-r;if(!t[0])return e(function(){return{error:t[1],duration:i}});var o=t[1];if("function"!=typeof o)return e(function(){return{value:o,duration:i}});e(function(){return new Promise(function(e){var t=Date.now();tv(o,function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=i+Date.now()-t;if(!r[0])return e({error:r[1],duration:o});e({value:r[1],duration:o})})})})})})),function(){return r.then(function(e){return e()})}},void 0)),[2,(p=function(){return(0,tp.sH)(this,void 0,void 0,function(){var e,t,r;return(0,tp.YH)(this,function(n){switch(n.label){case 0:return[4,f];case 1:return[4,tb(n.sent(),function(e){return tw(e())},h)];case 2:return[4,Promise.all(n.sent())];case 3:for(r=0,e=n.sent(),t={};r<d.length;++r)t[d[r]]=e[r];return[2,t]}})})},m=n,g=Date.now(),{get:function(e){return(0,tp.sH)(this,void 0,void 0,function(){var t,r,n;return(0,tp.YH)(this,function(i){switch(i.label){case 0:return t=Date.now(),[4,p()];case 1:var o,s,a,l;return n={get visitorId(){return void 0===l&&(l=rd(this.components)),l},set visitorId(visitorId){l=visitorId},confidence:(a=tT(.99+.01*(s=function(e){if(tq())return .4;if(tB())return tz()&&!(tW()&&tH())?.5:.3;var t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}(o=r=i.sent())),1e-4),{score:s,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(a))}),components:o,version:tm},(m||(null==e?void 0:e.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(n.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(t-g,"\nvisitorId: ").concat(n.visitorId,"\ncomponents: ").concat(rh(r),"\n```")),[2,n]}})})}})]}})})},hashComponents:rd,componentsToDebugString:rh},rp=r(78446),rm=r(21303);let rg=()=>{let e=localStorage.getItem("session_id");return e||(e=(0,rm.A)(),localStorage.setItem("session_id",e)),e},ry=async()=>{let e=await rf.load();return(await e.get()).visitorId},rv=async()=>{var e;let t=await (0,eF.getSession)(),r=rg(),n=await ry(),i=new rp.UAParser(navigator.userAgent),o=i.getOS().name,s=i.getDevice().type||"desktop";await (0,u.gS)((0,u.rJ)(l.db,"user_page_view"),{userId:(null==t?void 0:null===(e=t.user)||void 0===e?void 0:e.userId)||null,fingerprint:n,sessionId:r,url:window.location.href,timestamp:(0,u.O5)(),userAgent:navigator.userAgent,referrer:document.referrer,os:o,deviceType:s})},rb=async e=>{var t;let r=await (0,eF.getSession)();await (0,u.gS)((0,u.rJ)(l.db,"user_clicks"),{userId:(null==r?void 0:null===(t=r.user)||void 0===t?void 0:t.userId)||"anonymous",element:e,time:new Date})},rw=()=>{let e=Date.now(),t=async()=>{var t;let r=await (0,eF.getSession)(),n=Date.now()-e;await (0,u.gS)((0,u.rJ)(l.db,"user_page_time"),{userId:(null==r?void 0:null===(t=r.user)||void 0===t?void 0:t.userId)||"anonymous",duration:n,url:window.location.href,time:new Date})};window.addEventListener("beforeunload",t)};var rx=r(14953),r_=r.n(rx),rE=r(22926),rS="basil",rT="https://js.stripe.com",rk="".concat(rT,"/").concat(rS,"/stripe.js"),rA=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,rC=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,rI=function(){for(var e=document.querySelectorAll('script[src^="'.concat(rT,'"]')),t=0;t<e.length;t++){var r,n=e[t];if(r=n.src,rA.test(r)||rC.test(r))return n}return null},rP=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(rk).concat(t);var n=document.head||document.body;if(!n)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r},rR=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"7.3.0",startTime:t})},rO=null,rM=null,rN=null,rL=function(e,t,r){if(null===e)return null;var n,i=t[0].match(/^pk_test/),o=3===(n=e.version)?"v3":n;i&&o!==rS&&console.warn("Stripe.js@".concat(o," was loaded on the page, but @stripe/stripe-js@").concat("7.3.0"," expected Stripe.js@").concat(rS,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var s=e.apply(void 0,t);return rR(s,r),s},rD=!1,rj=function(){return o||(o=(null!==rO?rO:(rO=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document){e(null);return}if(window.Stripe,window.Stripe){e(window.Stripe);return}try{var r,n=rI();n?n&&null!==rN&&null!==rM&&(n.removeEventListener("load",rN),n.removeEventListener("error",rM),null===(r=n.parentNode)||void 0===r||r.removeChild(n),n=rP(null)):n=rP(null),rN=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},rM=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},n.addEventListener("load",rN),n.addEventListener("error",rM)}catch(e){t(e);return}})).catch(function(e){return rO=null,Promise.reject(e)})).catch(function(e){return o=null,Promise.reject(e)}))};Promise.resolve().then(function(){return rj()}).catch(function(e){rD||console.warn(e)});var rV=r(91003),rF=r.n(rV);let rU=r_()(()=>r.e(4522).then(r.bind(r,14522)),{loadableGenerated:{webpack:()=>[14522]},ssr:!1}),rB=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];rD=!0;var n=Date.now();return rj().then(function(e){return rL(e,t,n)})}("pk_test_51RRpBfFbzaVXHXsjheysZkE1j4eJQTkqfveQ5DhYk4JKw7NnJv2douIx60rgKzTzeP9tSG0BHst0NcZ3SqwDDT9M009sTKfFCT");function rz(e){let{Component:t,pageProps:{session:r,...n}}=e,[i,o]=(0,a.useState)(!1),d=(0,h.useRouter)(),f=d.pathname.startsWith("/admin"),p=d.pathname.startsWith("/error"),m="/signin"===d.pathname,g="/register"===d.pathname,y="/loading"===d.pathname,v="/privacy-policy"===d.pathname;return((0,a.useEffect)(()=>{(async()=>{let e=(0,u.H9)(l.db,"settings","app_settings"),t=await (0,u.x7)(e);t.exists()&&t.data().maintenance_mode&&d.replace("/error/maintenance")})()},[]),(0,a.useEffect)(()=>{rF().initialize({gtmId:"GTM-WQXH48SP"});let e=e=>{window&&window.dataLayer&&window.dataLayer.push({event:"pageview",page:e})};return d.events.on("routeChangeComplete",e),()=>{d.events.off("routeChangeComplete",e)}},[d.events]),(0,a.useEffect)(()=>{let e=e=>rb(e.target.outerHTML);
28return document.addEventListener("click",e),rw(),rv(),()=>document.removeEventListener("click",e)},[]),(0,a.useEffect)(()=>{try{let e=localStorage.getItem("cart");if(e){let t=JSON.parse(e);tf.dispatch((0,tr.D4)(t.items))}let t=tf.subscribe(()=>{let e=tf.getState();localStorage.setItem("cart",JSON.stringify(e.cart))});return()=>t()}catch(e){console.error("Failed to load or save cart",e)}},[]),p||m||g||y||v)?(0,s.jsxs)(eF.SessionProvider,{session:r,children:[(0,s.jsx)(c.A,{}),(0,s.jsx)(eI,{children:(0,s.jsxs)(eK.Kq,{store:tf,children:[rB&&(0,s.jsx)(rE.Elements,{stripe:rB,children:(0,s.jsx)(t,{...n})}),(0,s.jsx)(rU,{}),(0,s.jsx)(th.N9,{position:"top-right",autoClose:3e3})]})})]}):(0,s.jsxs)(eF.SessionProvider,{session:r,children:[(0,s.jsx)(c.A,{}),(0,s.jsx)(eI,{children:(0,s.jsxs)(eK.Kq,{store:tf,children:[rB&&(0,s.jsx)(rE.Elements,{stripe:rB,children:(0,s.jsx)(f?e4:tc,{children:(0,s.jsx)(t,{...n})})}),(0,s.jsx)(rU,{}),(0,s.jsx)(th.N9,{position:"top-right",autoClose:3e3})]})})]})}},79219:(e,t,r)=>{"use strict";r.d(t,{j2:()=>u,db:()=>l,IG:()=>c});var n=r(49928);(0,n.KO)("firebase","11.4.0","app");let i=(0,n.Dk)().length?(0,n.Sx)():(0,n.Wp)({apiKey:"AIzaSyBwRCYI8ik7cND_LnqJYwlbpXTaQLKHGrE",authDomain:"thenewyou-60d50.firebaseapp.com",projectId:"thenewyou-60d50",storageBucket:"thenewyou-60d50.firebasestorage.app",messagingSenderId:"820219552998",appId:"1:820219552998:web:729b5d7607ed2016084727",measurementId:"G-07K64S7ZJ3"});var o=r(71884),s=r(36890),a=r(45904);let l=(0,o.aU)(i),u=(0,s.xI)(i),c=(0,a.c7)(i);new s.HF},56103:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,CG:()=>s,D4:()=>l,bE:()=>i,dt:()=>o,sX:()=>a});let n=(0,r(86274).Z0)({name:"cart",initialState:{items:[]},reducers:{setCartItems:(e,t)=>{e.items=t.payload},addToCart(e,t){let r=e.items.find(e=>e.courseId===t.payload.courseId);r?r.quantity+=1:e.items.push({...t.payload,quantity:1})},removeFromCart(e,t){e.items=e.items.filter(e=>e.courseId!==t.payload.courseId)},decreaseQuantity(e,t){let r=e.items.find(e=>e.courseId===t.payload.courseId);r&&(r.quantity>1?r.quantity-=1:e.items=e.items.filter(e=>e.courseId!==t.payload.courseId))},clearCart(e){e.items=[]}}}),{addToCart:i,removeFromCart:o,decreaseQuantity:s,clearCart:a,setCartItems:l}=n.actions,u=n.reducer},76932:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,iD:()=>i,ri:()=>o});let n=(0,r(86274).Z0)({name:"user",initialState:{user:null,isAuthenticated:!1},reducers:{login:(e,t)=>{e.user=t.payload,e.isAuthenticated=!0},logout:e=>{e.user=null,e.isAuthenticated=!1}}}),{login:i,logout:o}=n.actions,s=n.reducer},2928:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),s=o[0],a=o[1],u=new i((s+a)*3/4-a),c=0,h=a>0?s-4:s;for(r=0;r<h;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(e,t,n){for(var i,o=[],s=t;s<n;s+=3)o.push(r[(i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>
vendor: 18,547 bytes, line 28
280x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|f(e,t),n=s(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);var i=function(e){if(a.isBuffer(e)){var t,r=0|d(e.length),n=s(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|d(e))}function h(e){for(var t=e.length<0?0:0|d(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(i)return n?-1:T(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=P[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=t,o=r,0===i&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else -1!==c&&(o-=o-c),c=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return -1}function v(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,l,u=e[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function x(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function _(e,t,r,n,o){return t=+t,r>>>=0,o||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,o){return t=+t,r>>>=0,o||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.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(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).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}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(I(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,l=Math.min(o,s),u=this.slice(n,i),c=e.slice(t,r),h=0;h<l;++h)if(u[h]!==c[h]){o=u[h],s=c[h];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,u,c,h,d,f,p,m,g=this.length-t;if((void 0===r||r>g)&&(r=g),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var y=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(a!=a)break;e[r+s]=a}return s}(this,e,t,r);case"utf8":case"utf-8":return l=t,u=r,C(T(e,this.length-l),this,l,u);case"ascii":return c=t,h=r,C(k(e),this,c,h);case"latin1":case"binary":return i=this,o=e,s=t,a=r,C(k(o),i,s,a);case"base64":return d=t,f=r,C(A(e),this,d,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,m=r,C(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-p),this,p,m);default:if(y)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),y=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s<r&&(o*=256);)this[t+s]=e/o&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),l=s.length;
28if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function T(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function k(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function A(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,h=r?i-1:0,d=r?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+e[t+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,d=23===i?5960464477539062e-23:0,f=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*l-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+f]=255&s,f+=p,s/=256,u-=8);e[r+f-p]|=128*m}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,n),s=!1}finally{s&&delete r[e]}return o.exports}n.ab="//";var i=n(72);e.exports=i}()},74338:()=>{},46454:()=>{},32091:()=>{},53157:()=>{},14953:(e,t,r)=>{e.exports=r(55946)},13368:(e,t,r)=>{e.exports=r(86085)},29965:(e,t,r)=>{e.exports=r(22364)},91106:(e,t,r)=>{e.exports=r(6397)},86715:(e,t,r)=>{e.exports=r(88440)},28133:(e,t,r)=>{e.exports=r(17610)},65925:(e,t,r)=>{"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(r(28441));e.exports={tags:function(e){var t=e.id,r=e.events,i=e.dataLayer,o=e.dataLayerName,s=e.preview,a="&gtm_auth="+e.auth,l="&gtm_preview="+s;t||(0,n.default)("GTM Id is required");var u="\n      (function(w,d,s,l,i){w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', "+JSON.stringify(r).slice(1,-1)+"});\n        var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\n        j.async=true;
28j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'"+a+l+"&gtm_cookies_win=x';\n        f.parentNode.insertBefore(j,f);\n      })(window,document,'script','"+o+"','"+t+"');";return{iframe:'\n      <iframe src="https://www.googletagmanager.com/ns.html?id='+t+a+l+'&gtm_cookies_win=x"\n        height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>',script:u,dataLayerVar:this.dataLayer(i,o)}},dataLayer:function(e,t){return"\n      window."+t+" = window."+t+" || [];\n      window."+t+".push("+JSON.stringify(e)+")"}}},26324:(e,t,r)=>{"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(r(65925));e.exports={dataScript:function(e){var t=document.createElement("script");return t.innerHTML=e,t},gtm:function(e){var t=n.default.tags(e);return{noScript:function(){var e=document.createElement("noscript");return e.innerHTML=t.iframe,e},script:function(){var e=document.createElement("script");return e.innerHTML=t.script,e},dataScript:this.dataScript(t.dataLayerVar)}},initialize:function(e){var t=e.gtmId,r=e.events,n=e.dataLayer,i=e.dataLayerName,o=e.auth,s=e.preview,a=this.gtm({id:t,events:void 0===r?{}:r,dataLayer:n||void 0,dataLayerName:void 0===i?"dataLayer":i,auth:void 0===o?"":o,preview:void 0===s?"":s});n&&document.head.appendChild(a.dataScript),document.head.insertBefore(a.script(),document.head.childNodes[0]),document.body.insertBefore(a.noScript(),document.body.childNodes[0])},dataLayer:function(e){var t=e.dataLayer,r=e.dataLayerName,i=void 0===r?"dataLayer":r;if(window[i])return window[i].push(t);var o=n.default.dataLayer(t,i),s=this.dataScript(o);document.head.insertBefore(s,document.head.childNodes[0])}}},91003:(e,t,r)=>{"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(r(26324));e.exports=n.default},28441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){console.warn("[react-gtm]",e)}},22799:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case h:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===h}t.AsyncMode=c,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||x(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===h||e===a||e===s||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},44363:(e,t,r)=>{"use strict";e.exports=r(22799)},12062:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g});var n=r(98587),i=r(42892),o=r(96540),s=r(40961);let a={disabled:!1};var l=r(17241),u="unmounted",c="exited",h="entering",d="entered",f="exiting",p=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=c,n.appearStatus=h):i=d:i=t.unmountOnExit||t.mountOnEnter?u:c,n.state={status:i},n.nextCallback=null,n}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:c}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==h&&r!==d&&(t=h):(r===h||r===d)&&(t=f)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,a
28ppear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);r&&r.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[s.findDOMNode(this),n],o=i[0],l=i[1],u=this.getTimeouts(),c=n?u.appear:u.enter;if(!e&&!r||a.disabled){this.safeSetState({status:d},function(){t.props.onEntered(o)});return}this.props.onEnter(o,l),this.safeSetState({status:h},function(){t.props.onEntering(o,l),t.onTransitionEnd(c,function(){t.safeSetState({status:d},function(){t.props.onEntered(o,l)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:s.findDOMNode(this);if(!t||a.disabled){this.safeSetState({status:c},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:f},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(n)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(l.A.Provider,{value:null},"function"==typeof r?r(e,i):o.cloneElement(o.Children.only(r),i))},t}(o.Component);function m(){}p.contextType=l.A,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},p.UNMOUNTED=u,p.EXITED=c,p.ENTERING=h,p.ENTERED=d,p.EXITING=f;let g=p},17241:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(96540).createContext(null)},85160:(e,t,r)=>{"use strict";var n=r(96540),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,s=n.useRef,a=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var h=s(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var f=o(e,(h=l(function(){function e(e){if(!a){if(a=!0,o=e,e=n(e),void 0!==c&&d.hasValue){var t=d.value;if(c(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var r=n(e);return void 0!==c&&c(t,r)?(o=e,t):(o=e,s=r)}var o,s,a=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,c]))[0],h[1]);return a(function(){d.hasValue=!0,d.value=f},[f]),u(f),f}},78418:(e,t,r)=>{"use strict";e.exports=r(85160)},70079:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},92987:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},12475:e=>{e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},29293:e=>{function t(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}
28e.exports=function(e){return function(){var r=this,n=arguments;return new Promise(function(i,o){var s=e.apply(r,n);function a(e){t(s,i,o,a,l,"next",e)}function l(e){t(s,i,o,a,l,"throw",e)}a(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},17383:e=>{e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},59646:(e,t,r)=>{var n=r(27550),i=r(95636);e.exports=function(e,t,r){if(n())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var s=new(e.bind.apply(e,o));return r&&i(s,r.prototype),s},e.exports.__esModule=!0,e.exports.default=e.exports},34579:(e,t,r)=>{var n=r(77736);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},43693:(e,t,r)=>{var n=r(77736);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},63072:e=>{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},29511:(e,t,r)=>{var n=r(95636);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},40691:e=>{e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},27550:e=>{function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},58775:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},47752:e=>{e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},28452:(e,t,r)=>{var n=r(73738).default,i=r(12475);e.exports=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4633:(e,t,r)=>{var n=r(73738).default;function i(){"use strict";e.exports=i=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",h=l.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,r,n,i){var o,s,l=Object.create((r&&r.prototype instanceof b?r:b).prototype);return a(l,"_invoke",{value:(o=new P(i||[]),s=m,function(r,i){if(s===g)throw Error("Generator is already running");if(s===y){if("throw"===r)throw i;return{value:t,done:!0}}for(o.method=r,o.arg=i;;){var a=o.delegate;if(a){var l=function e(r,n){var i=n.method,o=r.iterator[i];if(o===t)return n.delegate=null,"throw"===i&&r.iterator.return&&
vendor: 5,137 bytes, line 28
28(n.method="return",n.arg=t,e(r,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+i+"' method")),v;var s=p(o,r.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,v;var a=s.arg;return a?a.done?(n[r.resultName]=a.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,v)}(a,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===m)throw s=y,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=g;var u=p(e,n,o);if("normal"===u.type){if(s=o.done?y:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(s=y,o.method="throw",o.arg=u.arg)}})}),l}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=f;var m="suspendedStart",g="executing",y="completed",v={};function b(){}function w(){}function x(){}var _={};d(_,u,function(){return this});var E=Object.getPrototypeOf,S=E&&E(E(R([])));S&&S!==o&&s.call(S,u)&&(_=S);var T=x.prototype=b.prototype=Object.create(_);function k(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){var r;a(this,"_invoke",{value:function(i,o){function a(){return new t(function(r,a){!function r(i,o,a,l){var u=p(e[i],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==n(h)&&s.call(h,"__await")?t.resolve(h.__await).then(function(e){r("next",e,a,l)},function(e){r("throw",e,a,l)}):t.resolve(h).then(function(e){c.value=e,a(c)},function(e){return r("throw",e,a,l)})}l(u.arg)}(i,o,r,a)})}return r=r?r.then(a,a):a()}})}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(s.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw TypeError(n(e)+" is not iterable")}return w.prototype=x,a(T,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=d(x,h,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,h,"GeneratorFunction")),e.prototype=Object.create(T),e},r.awrap=function(e){return{__await:e}},k(A.prototype),d(A.prototype,c,function(){return this}),r.AsyncIterator=A,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var s=new A(f(e,t,n,i),o);return r.isGeneratorFunction(t)?s:s.next().then(function(e){return e.done?e.value:s.next()})},k(T),d(T,h,"Generator"),d(T,u,function(){return this}),d(T,"toString",function(){return"[object Generator]"}),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=R,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return a.type="throw",a.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),u=s.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];
28if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;I(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},95636:e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},85715:(e,t,r)=>{var n=r(92987),i=r(58775),o=r(17122),s=r(47752);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},89045:(e,t,r)=>{var n=r(73738).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},77736:(e,t,r)=>{var n=r(73738).default,i=r(89045);e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},73738:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},17122:(e,t,r)=>{var n=r(70079);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},61837:(e,t,r)=>{var n=r(63072),i=r(95636),o=r(40691),s=r(59646);function a(t){var r="function"==typeof Map?new Map:void 0;return e.exports=a=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return s(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},54756:(e,t,r)=>{var n=r(4633)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},58168:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{A:()=>n})},42892:(e,t,r)=>{"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{A:()=>i})},98587:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},49928:(e,t,r)=>{"use strict";let n,i;r.d(t,{MF:()=>D,j6:()=>O,xZ:()=>M,om:()=>R,Sx:()=>V,Dk:()=>F,Wp:()=>j,KO:()=>U});var o=r(5125),s=r(63424),a=r(11072);let l=(e,t)=>t.some(t=>e instanceof t),u=new WeakMap,c=new WeakMap,h=new WeakMap,d=new WeakMap,f=new WeakMap,p={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return c.get(e);if("objectStoreNames"===t)return e.objectStoreNames||h.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return m(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function m(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(m(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&u.set(t,e)}).catch(()=>{}),f.set(t,e),t}(e);if(d.has(e))return d.get(e);let r="function"==typeof(t=e)?t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(g(this),e),m(u.get(this))}:function(...e){return m(t.apply(g(this),e))}:function(e,...r){let n=t.call(g(this),e,...r);return h.set(n,e.sort?e.sort():[e]),m(n)}:(t instanceof IDBTransaction&&function(e){if(c.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});c.set(e,t)}(t),l(t,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,p):t;return r!==e&&(d.set(e,r),f.set(r,e)),r}let g=e=>f.get(e),y=["get","getKey","getAll","getAllKeys","count"],v=["put","add","delete","clear"],b=new Map;function w(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(b.get(t))return b.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=v.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||y.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;
28return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),i&&o.done]))[0]};return b.set(t,o),o}p=(e=>({...e,get:(t,r,n)=>w(t,r)||e.get(t,r,n),has:(t,r)=>!!w(t,r)||e.has(t,r)}))(p);class x{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let _="@firebase/app",E="0.11.2",S=new s.Vy("@firebase/app"),T="[DEFAULT]",k={[_]:"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/data-connect":"fire-data-connect","@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","@firebase/vertexai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},A=new Map,C=new Map,I=new Map;function P(e,t){try{e.container.addComponent(t)}catch(r){S.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function R(e){let t=e.name;if(I.has(t))return S.debug(`There were multiple attempts to register component ${t}.`),!1;
28for(let r of(I.set(t,e),A.values()))P(r,e);for(let t of C.values())P(t,e);return!0}function O(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}function M(e){return null!=e&&void 0!==e.settings}let N=new a.FA("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","server-app-deleted":"Firebase Server App has been 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}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class L{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new o.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}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(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw N.create("app-deleted",{appName:this._name})}}let D="11.4.0";function j(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let n=Object.assign({name:T,automaticDataCollectionEnabled:!1},t),i=n.name;if("string"!=typeof i||!i)throw N.create("bad-app-name",{appName:String(i)});if(r||(r=(0,a.T9)()),!r)throw N.create("no-options");let s=A.get(i);if(s){if((0,a.bD)(r,s.options)&&(0,a.bD)(n,s.config))return s;throw N.create("duplicate-app",{appName:i})}let l=new o.h1(i);for(let e of I.values())l.addComponent(e);let u=new L(r,n,l);return A.set(i,u),u}function V(e=T){let t=A.get(e);if(!t&&e===T&&(0,a.T9)())return j();if(!t)throw N.create("no-app",{appName:e});return t}function F(){return Array.from(A.values())}function U(e,t,r){var n;let i=null!==(n=k[e])&&void 0!==n?n:e;r&&(i+=`-${r}`);let s=i.match(/\s|\//),a=t.match(/\s|\//);if(s||a){let e=[`Unable to register library "${i}" with version "${t}":`];s&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),S.warn(e.join(" "));return}R(new o.uA(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}let B="firebase-heartbeat-store",z=null;function H(){return z||(z=(function(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,1),a=m(s);return n&&s.addEventListener("upgradeneeded",e=>{n(m(s.result),e.oldVersion,e.newVersion,m(s.transaction),e)}),r&&s.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a})("firebase-heartbeat-database",0,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(B)}catch(e){console.warn(e)}}}).catch(e=>{throw N.create("idb-open",{originalErrorMessage:e.message})})),z}async function $(e){try{let t=(await H()).transaction(B),r=await t.objectStore(B).get(q(e));return await t.done,r}catch(e){if(e instanceof a.g)S.warn(e.message);else{let t=N.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});S.warn(t.message)}}}async function W(e,t){try{let r=(await H()).transaction(B,"readwrite"),n=r.objectStore(B);await n.put(t,q(e)),await r.done}catch(e){if(e instanceof a.g)S.warn(e.message);else{let t=N.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});S.warn(t.message)}}}function q(e){return`${e.name}!${e.options.appId}`}class G{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new Y(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{let r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=K();if((null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(e=>e.date===n))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:r}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,r=e[0].date;for(let n=1;n<e.length;n++)e[n].date<r&&(r=e[n].date,t=n);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){S.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)==null||0===this._heartbeatsCache.heartbeats.length)return"";let t=K(),{heartbeatsToSend:r,unsentEntries:n}=function(e,t=1024){let r=[],n=e.slice();for(let i of e){let e=r.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),X(r)>t){e.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),X(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),i=(0,a.Uj)(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=t,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return S.warn(e),""}}}function K(){return new Date().toISOString().substring(0,10)}class Y{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,a.zW)()&&(0,a.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await $(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return W(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return W(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}}function X(e){return(0,a.Uj)(JSON.stringify({version:2,heartbeats:e})).length}R(new o.uA("platform-logger",e=>new x(e),"PRIVATE")),R(new o.uA("heartbeat",e=>new G(e),"PRIVATE")),U(_,E,""),U(_,E,"esm2017"),U("fire-js","")},5125:(e,t,r)=>{"use strict";r.d(t,{h1:()=>a,uA:()=>i});var n=r(11072);class i{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let o="[DEFAULT]";class s{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new n.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),n=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}else{if(n)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:o})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=o){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=o){return this.instances.has(e)}getOptions(e=o){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){var r;let n=this.normalizeInstanceIdentifier(t),i=null!==(r=this.onInitCallbacks.get(n))&&void 0!==r?r:new Set;i.add(e),this.onInitCallbacks.set(n,i);let o=this.instances.get(n);return o&&e(o,n),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let n of r)try{n(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:e===o?void 0:e,options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(e){}return r||null}normalizeInstanceIdentifier(e=o){return this.component?this.component.multipleInstances?e:o:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class a{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},63424:(e,t,r)=>{"use strict";var n;r.d(t,{$b:()=>n,Vy:()=>u});let i=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
28RROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(n||(n={}));let o={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},s=n.INFO,a={[n.DEBUG]:"log",[n.VERBOSE]:"log",[n.INFO]:"info",[n.WARN]:"warn",[n.ERROR]:"error"},l=(e,t,...r)=>{if(t<e.logLevel)return;let n=new Date().toISOString(),i=a[t];if(i)console[i](`[${n}]  ${e.name}:`,...r);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class u{constructor(e){this.name=e,this._logLevel=s,this._logHandler=l,this._userLogHandler=null,i.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in n))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?o[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,n.DEBUG,...e),this._logHandler(this,n.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,n.VERBOSE,...e),this._logHandler(this,n.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,n.INFO,...e),this._logHandler(this,n.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,n.WARN,...e),this._logHandler(this,n.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,n.ERROR,...e),this._logHandler(this,n.ERROR,...e)}}},86274:(e,t,r)=>{"use strict";r.d(t,{U1:()=>v,VP:()=>u,Nc:()=>es,Z0:()=>T});var n=r(14644);function i(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var o=i(),s=r(1932);r(77836);var a="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?n.Zz:n.Zz.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var l=e=>e&&"function"==typeof e.match;function u(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(el(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>(0,n.ve)(t)&&t.type===e,r}function c(e){return["type","payload","error","meta"].indexOf(e)>-1}var h=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function d(e){return(0,s.a6)(e)?(0,s.jM)(e,()=>{}):e}function f(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var p=()=>function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},a=new h;return t&&("boolean"==typeof t?a.push(o):a.push(i(t.extraArgument))),a},m=e=>t=>{setTimeout(t,e)},g=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,s=!1,a=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:m(10):"callback"===e.type?e.queueNotification:m(e.timeout),u=()=>{s=!1,o&&(o=!1,a.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>i&&e());return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return(o=!(i=!e?.meta?.RTK_autoBatch))&&!s&&(s=!0,l(u)),n.dispatch(e)}finally{i=!0}}})},y=e=>function(t){let{autoBatch:r=!0}=t??{},n=new h(e);return r&&n.push(g("object"==typeof r?r:void 0)),n};function v(e){let t,r;let i=p(),{reducer:o,middleware:s,devTools:l=!0,preloadedState:u,enhancers:c}=e||{};if("function"==typeof o)t=o;else if((0,n.Qd)(o))t=(0,n.HY)(o);else throw Error(el(1));r="function"==typeof s?s(i):i();let h=n.Zz;l&&(h=a({trace:!1,..."object"==typeof l&&l}));let d=y((0,n.Tw)(...r)),f=h(..."function"==typeof c?c(d):d());return(0,n.y$)(t,u,f)}function b(e){let t;let r={},n=[],i={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(el(28));if(n in r)throw Error(el(29));return r[n]=t,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}var w=(e,t)=>l(e)?e.match(t):e(t),x=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},_=["name","message","stack","code"],E=Symbol.for("rtk-slice-createasyncthunk"),S=(e=>(e.reducer="reducer",e.reducerWithPrepare="reducerWithPrepare",e.asyncThunk="asyncThunk",e))(S||{}),T=function({creators:e}={}){let t=e?.asyncThunk?.[E];return function(e){let r;let{name:n,reducerPath:i=n}=e;if(!n)throw Error(el(11));let o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(o),l={},c={},h={},p=[],m={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(el(12));if(r in c)throw Error(el(13));return c[r]=t,m},addMatcher:(e,t)=>(p.push({matcher:e,reducer:t}),m),exposeAction:(e,t)=>(h[e]=t,m),exposeCaseReducer:(e,t)=>(l[e]=t,m)};function g(){let[t={},r=[],n]="function"==typeof e.extraReducers?b(e.extraReducers):[e.extraReducers],i={...t,...c};return function(e,t){let r;let[n,i,o]=b(t);if("function"==typeof e)r=()=>d(e());else{let t=d(e);r=()=>t}function a(e=r(),t){let l=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===l.filter(e=>!!e).length&&(l=[o]),l.reduce((e,r)=>{if(r){if((0,s.Qx)(e)){let n=r(e,t);return void 0===n?e:n}if((0,s.a6)(e))return(0,s.jM)(e,e=>r(e,t));{let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return a.getInitialState=r,a}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of p)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}
28a.forEach(r=>{let i=o[r],s={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(el(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:u,options:c}=r,h=i(e,o,c);n.exposeAction(t,h),s&&n.addCase(h.fulfilled,s),a&&n.addCase(h.pending,a),l&&n.addCase(h.rejected,l),u&&n.addMatcher(h.settled,u),n.exposeCaseReducer(t,{fulfilled:s||k,pending:a||k,rejected:l||k,settled:u||k})}(s,i,m,t):function({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(el(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?u(e,s):u(e))}(s,i,m)});let y=e=>e,v=new Map;function w(e,t){return r||(r=g()),r(e,t)}function x(){return r||(r=g()),r.getInitialState()}function _(t,r=!1){function n(e){let n=e[t];return void 0===n&&r&&(n=x()),n}function i(t=y){let n=f(v,r,()=>new WeakMap);return f(n,t,()=>{let n={};for(let[i,o]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function i(o,...s){let a=t(o);return void 0===a&&n&&(a=r()),e(a,...s)}return i.unwrapped=e,i}(o,t,x,r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}let E={name:n,reducer:w,actions:h,caseReducers:l,getInitialState:x,..._(i),injectInto(e,{reducerPath:t,...r}={}){let n=t??i;return e.inject({reducerPath:n,reducer:w},r),{...E,..._(n,!0)}}};return E}}();function k(){}var A="listener",C="completed",I="cancelled",P=`task-${I}`,R=`task-${C}`,O=`${A}-${I}`,M=`${A}-${C}`,N=class{constructor(e){this.code=e,this.message=`task ${I} (reason: ${e})`}name="TaskAbortError";message},L=(e,t)=>{if("function"!=typeof e)throw TypeError(el(32))},D=()=>{},j=(e,t=D)=>(e.catch(t),e),V=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),F=(e,t)=>{let r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},U=e=>{if(e.aborted){let{reason:t}=e;throw new N(t)}};function B(e,t){let r=D;return new Promise((n,i)=>{let o=()=>i(new N(e.reason));if(e.aborted){o();return}r=V(e,o),t.finally(()=>r()).then(n,i)}).finally(()=>{r=D})}var z=async(e,t)=>{try{await Promise.resolve();let t=await e();return{status:"ok",value:t}}catch(e){return{status:e instanceof N?"cancelled":"rejected",error:e}}finally{t?.()}},H=e=>t=>j(B(e,t).then(t=>(U(e),t))),$=e=>{let t=H(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:W}=Object,q={},G="listenerMiddleware",K=(e,t)=>{let r=t=>V(e,()=>F(t,e.reason));return(n,i)=>{L(n,"taskExecutor");let o=new AbortController;r(o);let s=z(async()=>{U(e),U(o.signal);let t=await n({pause:H(o.signal),delay:$(o.signal),signal:o.signal});return U(o.signal),t},()=>F(o,R));return i?.autoJoin&&t.push(s.catch(D)),{result:H(e)(s),cancel(){F(o,P)}}}},Y=(e,t)=>{let r=async(r,n)=>{U(t);let i=()=>{},o=[new Promise((t,n)=>{let o=e({predicate:r,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});i=()=>{o(),n()}})];null!=n&&o.push(new Promise(e=>setTimeout(e,n,null)));try{let e=await B(t,Promise.race(o));return U(t),e}finally{i()}};return(e,t)=>j(r(e,t))},X=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=u(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(el(21));return L(o,"options.listener"),{predicate:i,type:t,effect:o}},Z=W(e=>{let{type:t,predicate:r,effect:n}=X(e);
28return{id:x(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(el(22))}}},{withTypes:()=>Z}),Q=(e,t)=>{let{type:r,effect:n,predicate:i}=X(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},J=e=>{e.pending.forEach(e=>{F(e,O)})},ee=e=>()=>{e.forEach(J),e.clear()},et=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},er=W(u(`${G}/add`),{withTypes:()=>er}),en=u(`${G}/removeAll`),ei=W(u(`${G}/remove`),{withTypes:()=>ei}),eo=(...e)=>{console.error(`${G}/error`,...e)},es=(e={})=>{let t=new Map,{extra:r,onError:i=eo}=e;L(i,"onError");let o=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&J(e)}),s=e=>o(Q(t,e)??Z(e));W(s,{withTypes:()=>s});let a=e=>{let r=Q(t,e);return r&&(r.unsubscribe(),e.cancelActive&&J(r)),!!r};W(a,{withTypes:()=>a});let l=async(e,n,o,a)=>{let l=new AbortController,u=Y(s,l.signal),c=[];try{e.pending.add(l),await Promise.resolve(e.effect(n,W({},o,{getOriginalState:a,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:$(l.signal),pause:H(l.signal),extra:r,signal:l.signal,fork:K(l.signal,c),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==l&&(F(e,O),r.delete(e))})},cancel:()=>{F(l,O),e.pending.delete(l)},throwIfCancelled:()=>{U(l.signal)}})))}catch(e){e instanceof N||et(i,e,{raisedBy:"effect"})}finally{await Promise.all(c),F(l,M),e.pending.delete(l)}},u=ee(t);return{middleware:e=>r=>o=>{let c;if(!(0,n.ve)(o))return r(o);if(er.match(o))return s(o.payload);
28if(en.match(o)){u();return}if(ei.match(o))return a(o.payload);let h=e.getState(),d=()=>{if(h===q)throw Error(el(23));return h};try{if(c=r(o),t.size>0){let r=e.getState();for(let n of Array.from(t.values())){let t=!1;try{t=n.predicate(o,r,h)}catch(e){t=!1,et(i,e,{raisedBy:"predicate"})}t&&l(n,o,e,d)}}}finally{h=q}return c},startListening:s,stopListening:a,clearListeners:u}},ea=Symbol.for("rtk-state-proxy-original");function el(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},84577:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:()=>n})},34164:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>i});let i=n},36890:(e,t,r)=>{"use strict";r.d(t,{HF:()=>eQ,eJ:()=>ti,xI:()=>rw,x9:()=>to,CI:()=>ta});var n=r(49928),i=r(11072),o=r(63424),s=r(31635),a=r(5125);function l(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}let u=new i.FA("auth","Firebase",l()),c=new o.Vy("@firebase/auth");function h(e,...t){c.logLevel<=o.$b.ERROR&&c.error(`Auth (${n.MF}): ${e}`,...t)}function d(e,...t){throw g(e,...t)}function f(e,...t){return g(e,...t)}function p(e,t,r){let n=Object.assign(Object.assign({},l()),{[t]:r});return new i.FA("auth","Firebase",n).create(t,{appName:e.name})}function m(e){return p(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function g(e,...t){if("string"!=typeof e){let r=t[0],n=[...t.slice(1)];return n[0]&&(n[0].appName=e.name),e._errorFactory.create(r,...n)}return u.create(e,...t)}function y(e,t,...r){if(!e)throw g(t,...r)}function v(e){let t="INTERNAL ASSERTION FAILED: "+e;throw h(t),Error(t)}function b(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function w(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}class x{constructor(e,t){var r;this.shortDelay=e,this.longDelay=t,r="Short delay should be less than long delay!",t>e||v(r),this.isMobile=(0,i.jZ)()||(0,i.lV)()}get(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&("http:"===w()||"https:"===w()||(0,i.sr)()||"connection"in navigator))||navigator.onLine?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function _(e,t){var r,n;r=e.emulator,n="Emulator should always be set here",r||v(n);let{url:i}=e.emulator;return t?`${i}${t.startsWith("/")?t.slice(1):t}`:i}class E{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:"undefined"!=typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!=typeof fetch?fetch:void v("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:"undefined"!=typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!=typeof Headers?Headers:void v("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:"undefined"!=typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!=typeof Response?Response:void v("Could not find Response implementation, make sure you call FetchProvi
28der.initialize() with an appropriate polyfill")}}let S={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},T=new x(3e4,6e4);function k(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function A(e,t,r,n,o={}){return C(e,o,async()=>{let o={},s={};n&&("GET"===t?s=n:o={body:JSON.stringify(n)});let a=(0,i.Am)(Object.assign({key:e.config.apiKey},s)).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);let u=Object.assign({method:t,headers:l},o);return(0,i.c1)()||(u.referrerPolicy="no-referrer"),E.fetch()(P(e,e.config.apiHost,r,a),u)})}async function C(e,t,r){e._canInitEmulator=!1;let n=Object.assign(Object.assign({},S),t);try{let t=new R(e),i=await Promise.race([r(),t.promise]);t.clearNetworkTimeout();let o=await i.json();if("needConfirmation"in o)throw O(e,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{let[t,r]=(i.ok?o.errorMessage:o.error.message).split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===t)throw O(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===t)throw O(e,"email-already-in-use",o);if("USER_DISABLED"===t)throw O(e,"user-disabled",o);let s=n[t]||t.toLowerCase().replace(/[_\s]+/g,"-");if(r)throw p(e,s,r);d(e,s)}}catch(t){if(t instanceof i.g)throw t;d(e,"network-request-failed",{message:String(t)})}}async function I(e,t,r,n,i={}){let o=await A(e,t,r,n,i);return"mfaPendingCredential"in o&&d(e,"multi-factor-auth-required",{_serverResponse:o}),o}function P(e,t,r,n){let i=`${t}${r}?${n}`;return e.config.emulator?_(e.config,i):`${e.config.apiScheme}://${i}`}class R{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(f(this.auth,"network-request-failed")),T.get())})}}function O(e,t,r){let n={appName:e.name};r.email&&(n.email=r.email),r.phoneNumber&&(n.phoneNumber=r.phoneNumber);let i=f(e,t,n);return i.customData._tokenResponse=r,i}function M(e){return void 0!==e&&void 0!==e.enterprise}class N{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(let t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return function(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PRO
28VIDER")}}async function L(e,t){return A(e,"GET","/v2/recaptchaConfig",k(e,t))}async function D(e,t){return A(e,"POST","/v1/accounts:delete",t)}async function j(e,t){return A(e,"POST","/v1/accounts:lookup",t)}function V(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}async function F(e,t=!1){let r=(0,i.Ku)(e),n=await r.getIdToken(t),o=B(n);y(o&&o.exp&&o.auth_time&&o.iat,r.auth,"internal-error");let s="object"==typeof o.firebase?o.firebase:void 0,a=null==s?void 0:s.sign_in_provider;return{claims:o,token:n,authTime:V(U(o.auth_time)),issuedAtTime:V(U(o.iat)),expirationTime:V(U(o.exp)),signInProvider:a||null,signInSecondFactor:(null==s?void 0:s.sign_in_second_factor)||null}}function U(e){return 1e3*Number(e)}function B(e){let[t,r,n]=e.split(".");if(void 0===t||void 0===r||void 0===n)return h("JWT malformed, contained fewer than 3 sections"),null;try{let e=(0,i.u)(r);if(!e)return h("Failed to decode base64 JWT payload"),null;return JSON.parse(e)}catch(e){return h("Caught error parsing JWT payload as JSON",null==e?void 0:e.toString()),null}}function z(e){let t=B(e);return y(t,"internal-error"),y(void 0!==t.exp,"internal-error"),y(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function H(e,t,r=!1){if(r)return t;try{return await t}catch(t){throw t instanceof i.g&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}class ${constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(!e)return this.errorBackoff=3e4,Math.max(0,(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5);{let e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(null==e?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}class W{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=V(this.lastLoginAt),this.creationTime=V(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function q(e){var t;let r=e.auth,n=await e.getIdToken(),i=await H(e,j(r,{idToken:n}));y(null==i?void 0:i.users.length,r,"internal-error");let o=i.users[0];e._notifyReloadListener(o);let s=(null===(t=o.providerUserInfo)||void 0===t?void 0:t.length)?K(o.providerUserInfo):[],a=[...e.providerData.filter(e=>!s.some(t=>t.providerId===e.providerId)),...s],l=e.isAnonymous,u=!(e.email&&o.passwordHash)&&!(null==a?void 0:a.length);Object.assign(e,{uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new W(o.createdAt,o.lastLoginAt),isAnonymous:!!l&&u})}async function G(e){let t=(0,i.Ku)(e);await q(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function K(e){return e.map(e=>{var{providerId:t}=e,r=(0,s.Tt)(e,["providerId"]);return{providerId:t,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}async function Y(e,t){let r=await C(e,{},async()=>{let r=(0,i.Am)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:n,apiKey:o}=e.config,s=P(e,n,"/v1/token",`key=${o}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",E.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token}}async function X(e,t){return A(e,"POST","/v2/accounts:revokeToken",k(e,t))}class Z{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){y(e.idToken,"internal-error"),y(void 0!==e.idToken,"internal-error"),y(void 0!==e.refreshToken,"internal-error");
28let t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):z(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){y(0!==e.length,"internal-error");let t=z(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(y(this.refreshToken,e,"user-token-expired"),this.refreshToken)?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){let{accessToken:r,refreshToken:n,expiresIn:i}=await Y(e,t);this.updateTokensAndExpiration(r,n,Number(i))}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,t){let{refreshToken:r,accessToken:n,expirationTime:i}=t,o=new Z;return r&&(y("string"==typeof r,"internal-error",{appName:e}),o.refreshToken=r),n&&(y("string"==typeof n,"internal-error",{appName:e}),o.accessToken=n),i&&(y("number"==typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Z,this.toJSON())}_performRefresh(){return v("not implemented")}}function Q(e,t){y("string"==typeof e||void 0===e,"internal-error",{appName:t})}class J{constructor(e){var{uid:t,auth:r,stsTokenManager:n}=e,i=(0,s.Tt)(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new $(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=r,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new W(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){let t=await H(this,this.stsTokenManager.getToken(this.auth,e));return y(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return F(this,e)}reload(){return G(this)}_assign(e){this!==e&&(y(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){let t=new J(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){y(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),t&&await q(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,n.xZ)(this.auth.app))return Promise.reject(m(this.auth));let e=await this.getIdToken();return await H(this,D(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var r,n,i,o,s,a,l,u;let c=null!==(r=t.displayName)&&void 0!==r?r:void 0,h=null!==(n=t.email)&&void 0!==n?n:void 0,d=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,f=null!==(o=t.photoURL)&&void 0!==o?o:void 0,p=null!==(s=t.tenantId)&&void 0!==s?s:void 0,m=null!==(a=t._redirectEventId)&&void 0!==a?a:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,v=null!==(u=t.lastLoginAt)&&void 0!==u?u:void 0,{uid:b,emailVerified:w,isAnonymous:x,providerData:_,stsTokenManager:E}=t;y(b&&E,e,"internal-error");let S=Z.fromJSON(this.name,E);y("string"==typeof b,e,"internal-error"),Q(c,e.name),Q(h,e.name),y("boolean"==typeof w,e,"internal-error"),y("boolean"==typeof x,e,"internal-error"),Q(d,e.name),Q(f,e.name),Q(p,e.name),Q(m,e.name),Q(g,e.name),Q(v,e.name);let T=new J({uid:b,auth:e,email:h,emailVerified:w,displayName:c,isAnonymous:x,photoURL:f,phoneNumber:d,tenantId:p,stsTokenManager:S,createdAt:g,lastLoginAt:v});return _&&Array.isArray(_)&&(T.providerData=_.map(e=>Object.assign({},e))),m&&(T._redirectEventId=m),T}static async _fromIdTokenResponse(e,t,r=!1){let n=new Z;n.updateFromServerResponse(t);let i=new J({uid:t.localId,auth:e,stsTokenManager:n,isAnonymous:r});return await q(i),i}static async _fromGetAccountInfoResponse(e,t,r){let n=t.users[0];y(void 0!==n.localId,"internal-error");let i=void 0!==n.providerUserInfo?K(n.providerUserInfo):[],o=!(n.email&&n.passwordHash)&&!(null==i?void 0:i.length),s=new Z;s.updateFromIdToken(r);let a=new J({uid:n.localId,auth:e,stsTokenManager:s,isAnonymous:o});return Object.assign(a,{uid:n.localId,displayName:n.displayName||null,photoURL:n.photoUrl||null,email:n.email||null,emailVerified:n.emailVerified||!1,phoneNumber:n.phoneNumber||null,tenantId:n.tenantId||null,providerData:i,metadata:new W(n.createdAt,n.lastLoginAt),isAnonymous:!(n.email&&n.passwordHash)&&!(null==i?void 0:i.length)}),a}}let ee=new Map;function et(e){var t,r;t="Expected a class definition",e instanceof Function||v(t);let n=ee.get(e);return n?(r="Instance stored in cache mismatched with class",n instanceof e||v(r)):(n=new e,ee.set(e,n)),n}class er{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){let t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}function en(e,t,r){return`firebase:${e}:${t}:${r}`}er.type="NONE";class ei{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;let{config:n,name:i}=this.auth;this.fullUserKey=en(this.userKey,n.apiKey,i),this.fullPersistenceKey=en("persistence",n.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){let e=await this.persistence._get(this.fullUserKey);return e?J._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,r="authUser"){if(!t.length)return new ei(et(er),e,r);let n=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),i=n[0]||et(er),o=en(r,e.config.apiKey,e.name),s=null;for(let r of t)try{let t=await r._get(o);if(t){let n=J._fromJSON(e,t);r!==i&&(s=n),i=r;break}}catch(e){}let a=n.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&a.length&&(i=a[0],s&&await i._set(o,s.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(o)}catch(e){}}))),new ei(i,e,r)}}function eo(e){let t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(eu(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";{if(t.includes("edge/"))return"Edge";if(es(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(eh(t))return"Blackberry";if(ed(t))return"Webos";if(ea(t))return"Safari";
28if((t.includes("chrome/")||el(t))&&!t.includes("edge/"))return"Chrome";if(ec(t))return"Android";let r=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if((null==r?void 0:r.length)===2)return r[1]}return"Other"}function es(e=(0,i.ZQ)()){return/firefox\//i.test(e)}function ea(e=(0,i.ZQ)()){let t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function el(e=(0,i.ZQ)()){return/crios\//i.test(e)}function eu(e=(0,i.ZQ)()){return/iemobile/i.test(e)}function ec(e=(0,i.ZQ)()){return/android/i.test(e)}function eh(e=(0,i.ZQ)()){return/blackberry/i.test(e)}function ed(e=(0,i.ZQ)()){return/webos/i.test(e)}function ef(e=(0,i.ZQ)()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function ep(e=(0,i.ZQ)()){return ef(e)||ec(e)||ed(e)||eh(e)||/windows phone/i.test(e)||eu(e)}function em(e,t=[]){let r;switch(e){case"Browser":r=eo((0,i.ZQ)());break;case"Worker":r=`${eo((0,i.ZQ)())}-${e}`;break;default:r=e}let o=t.length?t.join(","):"FirebaseCore-web";return`${r}/JsCore/${n.MF}/${o}`}class eg{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let r=t=>new Promise((r,n)=>{try{let n=e(t);r(n)}catch(e){n(e)}});r.onAbort=t,this.queue.push(r);let n=this.queue.length-1;return()=>{this.queue[n]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let r of this.queue)await r(e),r.onAbort&&t.push(r.onAbort)}catch(e){for(let e of(t.reverse(),t))try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==e?void 0:e.message})}}}async function ey(e,t={}){return A(e,"GET","/v2/passwordPolicy",k(e,t))}class ev{constructor(e){var t,r,n,i;let o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=o.minPasswordLength)&&void 0!==t?t:6,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),void 0!==o.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),void 0!==o.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),void 0!==o.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),void 0!==o.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(n=null===(r=e.allowedNonAlphanumericCharacters)||void 0===r?void 0:r.join(""))&&void 0!==n?n:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,r,n,i,o,s;let a={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,a),this.validatePasswordCharacterOptions(e,a),a.isValid&&(a.isValid=null===(t=a.meetsMinPasswordLength)||void 0===t||t),a.isValid&&(a.isValid=null===(r=a.meetsMaxPasswordLength)||void 0===r||r),a.isValid&&(a.isValid=null===(n=a.containsLowercaseLetter)||void 0===n||n),a.isValid&&(a.isValid=null===(i=a.containsUppercaseLetter)||void 0===i||i),a.isValid&&(a.isValid=null===(o=a.containsNumericCharacter)||void 0===o||o),a.isValid&&(a.isValid=null===(s=a.containsNonAlphanumericCharacter)||void 0===s||s),a}validatePasswordLengthOptions(e,t){let r=this.customStrengthOptions.minPasswordLength,n=this.customStrengthOptions.maxPasswordLength;r&&(t.meetsMinPasswordLength=e.length>=r),n&&(t.meetsMaxPasswordLength=e.length<=n)}validatePasswordCharacterOptions(e,t){let r;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let n=0;n<e.length;n++)r=e.charAt(n),this.updatePasswordCharacterOptionsStatuses(t,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,t,r,n,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=n)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class eb{constructor(e,t,r,n){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new ex(this),this.idTokenSubscription=new ex(this),this.beforeStateQueue=new eg(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=u,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=n.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=et(t)),this._initializationPromise=this.queue(async()=>{var r,n;if(!this._deleted&&(this.persistenceManager=await ei.create(this,e),!this._deleted)){if
28(null===(r=this._popupRedirectResolver)||void 0===r?void 0:r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(n=this.currentUser)||void 0===n?void 0:n.uid)||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(this.currentUser||e){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{let t=await j(this,{idToken:e}),r=await J._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(r)}catch(e){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",e),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if((0,n.xZ)(this.app)){let e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}let r=await this.assertedPersistence.getCurrentUser(),i=r,o=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let r=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,n=null==i?void 0:i._redirectEventId,s=await this.tryRedirectSignIn(e);(!r||r===n)&&(null==s?void 0:s.user)&&(i=s.user,o=!0)}if(!i)return this.directlySetCurrentUser(null);if(!i._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(i)}catch(e){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return(y(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId)?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await q(e)}catch(e){if((null==e?void 0:e.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,n.xZ)(this.app))return Promise.reject(m(this));let t=e?(0,i.Ku)(e):null;return t&&y(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&y(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return(0,n.xZ)(this.app)?Promise.reject(m(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,n.xZ)(this.app)?Promise.reject(m(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(et(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();let t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){let e=new ev(await ey(this));null===this.tenantId?this._projectPasswordPolicy=e:this._tenantPasswordPolicies[this.tenantId]=e}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new i.FA("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>
28{if(this.currentUser)e();else{let r=this.onAuthStateChanged(()=>{r(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){let t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await X(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){let r=await this.getOrInitRedirectPersistenceManager(t);return null===e?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&et(e)||this._popupRedirectResolver;y(t,this,"argument-error"),this.redirectPersistenceManager=await ei.create(this,[et(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,r;return(this._isInitialized&&await this.queue(async()=>{}),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e)?this._currentUser:(null===(r=this.redirectUser)||void 0===r?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let r=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,n){if(this._deleted)return()=>{};let i="function"==typeof t?t:t.next.bind(t),o=!1,s=this._isInitialized?Promise.resolve():this._initializationPromise;if(y(s,this,"internal-error"),s.then(()=>{o||i(this.currentUser)}),"function"==typeof t){let i=e.addObserver(t,r,n);return()=>{o=!0,i()}}{let r=e.addObserver(t);return()=>{o=!0,r()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return y(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=em(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;let t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);let r=await (null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());r&&(t["X-Firebase-Client"]=r);let n=await this._getAppCheckToken();return n&&(t["X-Firebase-AppCheck"]=n),t}async _getAppCheckToken(){var e;if((0,n.xZ)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let t=await (null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null==t?void 0:t.error)&&function(e,...t){c.logLevel<=o.$b.WARN&&c.warn(`Auth (${n.MF}): ${e}`,...t)}(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}function ew(e){return(0,i.Ku)(e)}class ex{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,i.tD)(e=>this.observer=e)}get next(){return y(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let e_={async loadJS(){throw Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function eE(e){return`__${e}${Math.floor(1e6*Math.random())}`}class eS{constructor(){this.enterprise=new eT}ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class eT{ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}let ek="NO_RECAPTCHA";class eA{constructor(e){this.type="recaptcha-enterprise",this.auth=ew(e)}async verify(e="verify",t=!1){async function r(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,r)=>
28{L(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(n=>{if(void 0===n.recaptchaKey)r(Error("recaptcha Enterprise site key undefined"));else{let r=new N(n);return null==e.tenantId?e._agentRecaptchaConfig=r:e._tenantRecaptchaConfigs[e.tenantId]=r,t(r.siteKey)}}).catch(e=>{r(e)})})}function n(t,r,n){let i=window.grecaptcha;M(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{r(e)}).catch(()=>{r(ek)})}):n(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new eS().execute("siteKey",{action:"verify"}):new Promise((e,i)=>{r(this.auth).then(r=>{if(!t&&M(window.grecaptcha))n(r,e,i);else{var o;if("undefined"==typeof window){i(Error("RecaptchaVerifier is only supported in browser"));return}let t=e_.recaptchaEnterpriseScript;0!==t.length&&(t+=r),(o=t,e_.loadJS(o)).then(()=>{n(r,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}}async function eC(e,t,r,n=!1,i=!1){let o;let s=new eA(e);if(i)o=ek;else try{o=await s.verify(r)}catch(e){o=await s.verify(r,!0)}let a=Object.assign({},t);if("mfaSmsEnrollment"===r||"mfaSmsSignIn"===r){if("phoneEnrollmentInfo"in a){let e=a.phoneEnrollmentInfo.phoneNumber,t=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){let e=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return n?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function eI(e,t,r,n,i){var o,s;if("EMAIL_PASSWORD_PROVIDER"===i){if(null===(o=e._getRecaptchaConfig())||void 0===o||!o.isProviderEnabled("EMAIL_PASSWORD_PROVIDER"))return n(e,t).catch(async i=>{if("auth/missing-recaptcha-token"!==i.code)return Promise.reject(i);{console.log(`${r} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);let i=await eC(e,t,r,"getOobCode"===r);return n(e,i)}});{let i=await eC(e,t,r,"getOobCode"===r);return n(e,i)}}if("PHONE_PROVIDER"!==i)return Promise.reject(i+" provider is not supported.");if(null===(s=e._getRecaptchaConfig())||void 0===s?void 0:s.isProviderEnabled("PHONE_PROVIDER")){let i=await eC(e,t,r);return n(e,i).catch(async i=>{var o;if((null===(o=e._getRecaptchaConfig())||void 0===o?void 0:o.getProviderEnforcementState("PHONE_PROVIDER"))==="AUDIT"&&("auth/missing-recaptcha-token"===i.code||"auth/invalid-app-credential"===i.code)){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${r} flow.`);let i=await eC(e,t,r,!1,!0);return n(e,i)}return Promise.reject(i)})}{let i=await eC(e,t,r,!1,!0);return n(e,i)}}async function eP(e){let t=ew(e),r=new N(await L(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}));null==t.tenantId?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,r.isAnyProviderEnabled()&&new eA(t).verify()}function eR(e){let t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function eO(e){if(!e)return null;let t=Number(e);return isNaN(t)?null:t}class eM{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return v("not implemented")}_getIdTokenResponse(e){return v("not implemented")}_linkToIdToken(e,t){return v("not implemented")}_getReauthenticationResolver(e){return v("not implemented")}}async function eN(e,t){return A(e,"POST","/v1/accounts:signUp",t)}async function eL(e,t){return I(e,"POST","/v1/accounts:signInWithPassword",k(e,t))}async function eD(e,t){return I(e,"POST","/v1/accounts:signInWithEmailLink",k(e,t))}async function ej(e,t){return I(e,"POST","/v1/accounts:signInWithEmailLink",k(e,t))}class eV extends eM{constructor(e,t,r,n=null){super("password",r),this._email=e,this._password=t,this._tenantId=n}static _fromEmailAndPassword(e,t){return new eV(e,t,"password")}static _fromEmailAndCode(e,t,r=null){return new eV(e,t,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e;if((null==t?void 0:t.email)&&(null==t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return eI(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",eL,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return eD(e,{email:this._email,oobCode:this._password});default:d(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return eI(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",eN,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return ej(e,{idToken:t,email:this._email,oobCode:this._password});default:d(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function eF(e,t){return I(e,"POST","/v1/accounts:signInWithIdp",k(e,t))}class eU extends eM{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new eU(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
28(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):d("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e,{providerId:r,signInMethod:n}=t,i=(0,s.Tt)(t,["providerId","signInMethod"]);if(!r||!n)return null;let o=new eU(r,n);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return eF(e,this.buildRequest())}_linkToIdToken(e,t){let r=this.buildRequest();return r.idToken=t,eF(e,r)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,eF(e,t)}buildRequest(){let e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,i.Am)(t)}return e}}async function eB(e,t){return A(e,"POST","/v1/accounts:sendVerificationCode",k(e,t))}async function ez(e,t){return I(e,"POST","/v1/accounts:signInWithPhoneNumber",k(e,t))}async function eH(e,t){let r=await I(e,"POST","/v1/accounts:signInWithPhoneNumber",k(e,t));if(r.temporaryProof)throw O(e,"account-exists-with-different-credential",r);return r}let e$={USER_NOT_FOUND:"user-not-found"};async function eW(e,t){return I(e,"POST","/v1/accounts:signInWithPhoneNumber",k(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),e$)}class eq extends eM{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new eq({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new eq({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return ez(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return eH(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return eW(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:r,verificationCode:n}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:r,code:n}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));let{verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}=e;return r||t||n||i?new eq({verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}):null}}class eG{constructor(e){var t,r,n,o,s,a;let l=(0,i.I9)((0,i.hp)(e)),u=null!==(t=l.apiKey)&&void 0!==t?t:null,c=null!==(r=l.oobCode)&&void 0!==r?r:null,h=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(n=l.mode)&&void 0!==n?n:null);y(u&&c&&h,"argument-error"),this.apiKey=u,this.operation=h,this.code=c,this.continueUrl=null!==(o=l.continueUrl)&&void 0!==o?o:null,this.languageCode=null!==(s=l.languageCode)&&void 0!==s?s:null,this.tenantId=null!==(a=l.tenantId)&&void 0!==a?a:null}static parseLink(e){let t=function(e){let t=(0,i.I9)((0,i.hp)(e)).link,r=t?(0,i.I9)((0,i.hp)(t)).deep_link_id:null,n=(0,i.I9)((0,i.hp)(e)).deep_link_id;return(n?(0,i.I9)((0,i.hp)(n)).link:null)||n||r||t||e}(e);try{return new eG(t)}catch(e){return null}}}class eK{constructor(){this.providerId=eK.PROVIDER_ID}static credential(e,t){return eV._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let r=eG.parseLink(t);return y(r,"argument-error"),eV._fromEmailAndCode(e,r.code,r.tenantId)}}eK.PROVIDER_ID="password",eK.EMAIL_PASSWORD_SIGN_IN_METHOD="password",eK.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class eY{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class eX extends eY{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class eZ extends eX{constructor(){super("facebook.com")}static credential(e){return eU._fromParams({providerId:eZ.PROVIDER_ID,signInMethod:eZ.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return eZ.credentialFromTaggedObject(e)}static credentialFromError(e){return eZ.credentialFromTaggedObject(e.customData||{})}
28static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return eZ.credential(e.oauthAccessToken)}catch(e){return null}}}eZ.FACEBOOK_SIGN_IN_METHOD="facebook.com",eZ.PROVIDER_ID="facebook.com";class eQ extends eX{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return eU._fromParams({providerId:eQ.PROVIDER_ID,signInMethod:eQ.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return eQ.credentialFromTaggedObject(e)}static credentialFromError(e){return eQ.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:r}=e;if(!t&&!r)return null;try{return eQ.credential(t,r)}catch(e){return null}}}eQ.GOOGLE_SIGN_IN_METHOD="google.com",eQ.PROVIDER_ID="google.com";class eJ extends eX{constructor(){super("github.com")}static credential(e){return eU._fromParams({providerId:eJ.PROVIDER_ID,signInMethod:eJ.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return eJ.credentialFromTaggedObject(e)}static credentialFromError(e){return eJ.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return eJ.credential(e.oauthAccessToken)}catch(e){return null}}}eJ.GITHUB_SIGN_IN_METHOD="github.com",eJ.PROVIDER_ID="github.com";class e0 extends eX{constructor(){super("twitter.com")}static credential(e,t){return eU._fromParams({providerId:e0.PROVIDER_ID,signInMethod:e0.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return e0.credentialFromTaggedObject(e)}static credentialFromError(e){return e0.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthAccessToken:t,oauthTokenSecret:r}=e;if(!t||!r)return null;try{return e0.credential(t,r)}catch(e){return null}}}async function e1(e,t){return I(e,"POST","/v1/accounts:signUp",k(e,t))}e0.TWITTER_SIGN_IN_METHOD="twitter.com",e0.PROVIDER_ID="twitter.com";class e2{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,r,n=!1){return new e2({user:await J._fromIdTokenResponse(e,r,n),providerId:e4(r),_tokenResponse:r,operationType:t})}static async _forOperation(e,t,r){return await e._updateTokensIfNecessary(r,!0),new e2({user:e,providerId:e4(r),_tokenResponse:r,operationType:t})}}function e4(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class e3 extends i.g{constructor(e,t,r,n){var i;super(t.code,t.message),this.operationType=r,this.user=n,Object.setPrototypeOf(this,e3.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,t,r,n){return new e3(e,t,r,n)}}function e5(e,t,r,n){return("reauthenticate"===t?r._getReauthenticationResolver(e):r._getIdTokenResponse(e)).catch(r=>{if("auth/multi-factor-auth-required"===r.code)throw e3._fromErrorAndOperation(e,r,t,n);throw r})}async function e6(e,t,r=!1){let n=await H(e,t._linkToIdToken(e.auth,await e.getIdToken()),r);return e2._forOperation(e,"link",n)}async function e8(e,t,r=!1){let{auth:i}=e;if((0,n.xZ)(i.app))return Promise.reject(m(i));let o="reauthenticate";try{let n=await H(e,e5(i,o,t,e),r);y(n.idToken,i,"internal-error");let s=B(n.idToken);y(s,i,"internal-error");let{sub:a}=s;return y(e.uid===a,i,"user-mismatch"),e2._forOperation(e,o,n)}catch(e){throw(null==e?void 0:e.code)==="auth/user-not-found"&&d(i,"user-mismatch"),e}}async function e7(e,t,r=!1){if((0,n.xZ)(e.app))return Promise.reject(m(e));let i="signIn",o=await e5(e,i,t),s=await e2._fromIdTokenResponse(e,i,o);return r||await e._updateCurrentUser(s.user),s}async function e9(e,t){return e7(ew(e),t)}class te{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return"phoneInfo"in t?tt._fromServerResponse(e,t):"totpInfo"in t?tr._fromServerResponse(e,t):d(e,"internal-error")}}class tt extends te{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new tt(t)}}class tr extends te{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new tr(t)}}async function tn(e){let t=ew(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function ti(e,t,r){if((0,n.xZ)(e.app))return Promise.reject(m(e));let i=ew(e),o=eI(i,{returnSecureToken:!0,email:t,password:r,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",e1,"EMAIL_PASSWORD_PROVIDER"),s=await o.catch(t=>{throw"auth/password-does-not-meet-requirements"===t.code&&tn(e),t}),a=await e2._fromIdTokenResponse(i,"signIn",s);return await i._updateCurrentUser(a.user),a}function to(e,t,r){return(0,n.xZ)(e.app)?Promise.reject(m(e)):e9((0,i.Ku)(e),eK.credential(t,r)).catch(async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&tn(e),t})}class ts{constructor(e,t,r={}){this.isNewUser=e,this.providerId=t,this.profile=r}}function ta(e){return(0,i.Ku)(e).signOut()}class tl{constructor(e,t,r){this.type=e,this.credential=t,this.user=r}static _fromIdtoken(e,t){return new tl("enroll",e,t)}static _fromMfaPendingCredential(e){return new tl("signin",e)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(e){var t,r;if(null==e?void 0:e.multiFactorSession){if(null===(t=e.multiFactorSession)||void 0===t?void 0:t.pendingCredential)return tl._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);if(null===(r=e.multiFactorSession)||void 0===r?void 0:r.idToken)return tl._fromIdtoken(e.multiFactorSession.idToken)}return null}}class tu{constructor(e,t,r){this.session=e,this.hints=t,this.signInResolver=r}static _fromError(e,t){let r=ew(e),n=t.customData._serverResponse,i=(n.mfaInfo||[]).map(e=>te._fromServerResponse(r,e));y(n.mfaPendingCredential,r,"internal-error");let o=tl._fromMfaPendingCredential(n.mfaPendingCredential);return new tu(o,i,async e=>{let i=await e._process(r,o);delete n.mfaInfo,delete n.mfaPendingCredential;let s=Object.assign(Object.assign({},n),{idToken:i.idToken,refreshToken:i.refreshToken});switch(t.operationType){case"signIn":let a=await e2._fromIdTokenResponse(r,t.operationType,s);return await r._updateCurrentUser(a.user),a;case"reauthenticate":return y(t.user,r,"internal-error"),e2._forOperation(t.user,t.operationType,s);default:d(r,"internal-error")}})}async resolveSignIn(e){return this.signInResolver(e)}}function tc(e,t){return A(e,"POST","/v2/accounts/mfaEnrollment:start",k(e,t))}class th{constructor(e){this.user=e,this.enrolledFactors=[],e._onReload(t=>{t.mfaInfo&&(this.enrolledFactors=t.mfaInfo.map(t=>te._fromServerResponse(e.auth,t)))})}static _fromUser(e){return new th(e)}async getSession(){return tl._fromIdtoken(await this.user.getIdToken(),this.user)}
28async enroll(e,t){let r=await this.getSession(),n=await H(this.user,e._process(this.user.auth,r,t));return await this.user._updateTokensIfNecessary(n),this.user.reload()}async unenroll(e){let t="string"==typeof e?e:e.uid,r=await this.user.getIdToken();try{var n,i;let e=await H(this.user,(n=this.user.auth,i={idToken:r,mfaEnrollmentId:t},A(n,"POST","/v2/accounts/mfaEnrollment:withdraw",k(n,i))));this.enrolledFactors=this.enrolledFactors.filter(({uid:e})=>e!==t),await this.user._updateTokensIfNecessary(e),await this.user.reload()}catch(e){throw e}}}new WeakMap;let td="__sak";class tf{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{if(!this.storage)return Promise.resolve(!1);return this.storage.setItem(td,"1"),this.storage.removeItem(td),Promise.resolve(!0)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class tp extends tf{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=ep(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let r=this.storage.getItem(t),n=this.localCache[t];r!==n&&e(t,n,r)}}onStorageEvent(e,t=!1){if(!e.key){this.forAllChangedKeys((e,t,r)=>{this.notifyListeners(e,r)});return}let r=e.key;t?this.detachListener():this.stopPolling();let n=()=>{let e=this.storage.getItem(r);(t||this.localCache[r]!==e)&&this.notifyListeners(r,e)},o=this.storage.getItem(r);(0,i.lT)()&&10===document.documentMode&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(n,10):n()}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:r}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){let t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}tp.type="LOCAL";class tm extends tf{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}tm.type="SESSION";class tg{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){let t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;let r=new tg(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){let{eventId:t,eventType:r,data:n}=e.data,i=this.handlersMap[r];if(!(null==i?void 0:i.size))return;e.ports[0].postMessage({status:"ack",eventId:t,eventType:r});let o=Array.from(i).map(async t=>t(e.origin,n)),s=await Promise.all(o.map(async e=>{try{let t=await e;return{fulfilled:!0,value:t}}catch(e){return{fulfilled:!1,reason:e}}}));e.ports[0].postMessage({status:"done",eventId:t,eventType:r,response:s})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}
28function ty(e="",t=10){let r="";for(let e=0;e<t;e++)r+=Math.floor(10*Math.random());return e+r}tg.receivers=[];class tv{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,r=50){let n,i;let o="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!o)throw Error("connection_unavailable");return new Promise((s,a)=>{let l=ty("",20);o.port1.start();let u=setTimeout(()=>{a(Error("unsupported_event"))},r);i={messageChannel:o,onMessage(e){if(e.data.eventId===l)switch(e.data.status){case"ack":clearTimeout(u),n=setTimeout(()=>{a(Error("timeout"))},3e3);break;case"done":clearTimeout(n),s(e.data.response);break;default:clearTimeout(u),clearTimeout(n),a(Error("invalid_response"))}}},this.handlers.add(i),o.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[o.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}function tb(){return window}function tw(){return void 0!==tb().WorkerGlobalScope&&"function"==typeof tb().importScripts}async function tx(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}let t_="firebaseLocalStorageDb",tE="firebaseLocalStorage",tS="fbase_key";class tT{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function tk(e,t){return e.transaction([tE],t?"readwrite":"readonly").objectStore(tE)}function tA(){let e=indexedDB.open(t_,1);return new Promise((t,r)=>{e.addEventListener("error",()=>{r(e.error)}),e.addEventListener("upgradeneeded",()=>{let t=e.result;try{t.createObjectStore(tE,{keyPath:tS})}catch(e){r(e)}}),e.addEventListener("success",async()=>{let r=e.result;r.objectStoreNames.contains(tE)?t(r):(r.close(),await new tT(indexedDB.deleteDatabase(t_)).toPromise(),t(await tA()))})})}async function tC(e,t,r){return new tT(tk(e,!0).put({[tS]:t,value:r})).toPromise()}async function tI(e,t){let r=tk(e,!1).get(t),n=await new tT(r).toPromise();return void 0===n?null:n.value}function tP(e,t){return new tT(tk(e,!0).delete(t)).toPromise()}class tR{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await tA()),this.db}async _withRetries(e){let t=0;for(;;)try{let t=await this._openDb();return await e(t)}catch(e){if(t++>3)throw e;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return tw()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=tg._getInstance(tw()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await tx(),!this.activeServiceWorker)return;this.sender=new tv(this.activeServiceWorker);let r=await this.sender._send("ping",{},800);r&&(null===(e=r[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=r[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null===(t=null==navigator?void 0:navigator.serviceWorker)||void 0===t?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(e){}}async _isAvailable(){try{if(!indexedDB)return!1;let e=await tA();return await tC(e,td,"1"),await tP(e,td),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(r=>tC(r,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>tI(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>tP(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){let e=await this._withRetries(e=>new tT(tk(e,!1).getAll()).toPromise());if(!e||0!==this.pendingWrites)return[];let t=[],r=new Set;if(0!==e.length)for(let{fbase_key:n,value:i}of e)r.add(n),JSON.stringify(this.localCache[n])!==JSON.stringify(i)&&(this.notifyListeners(n,i),t.push(n));for(let e of Object.keys(this.localCache))this.localCache[e]&&!r.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))e(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}function tO(e,t){return A(e,"POST","/v2/accounts/mfaSignIn:start",k(e,t))}tR.type="LOCAL",eE("rcb"),new x(3e4,6e4);let tM="recaptcha";async function tN(e,t,r){var n;if(!e._getRecaptchaConfig())try{await eP(e)}catch(e){console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let i;if(i="string"==typeof t?{phoneNumber:t}
28:t,"session"in i){let t=i.session;if("phoneNumber"in i){y("enroll"===t.type,e,"internal-error");let n={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"}},o=async(e,t)=>{if(t.phoneEnrollmentInfo.captchaResponse===ek){y((null==r?void 0:r.type)===tM,e,"argument-error");let n=await tL(e,t,r);return tc(e,n)}return tc(e,t)},s=eI(e,n,"mfaSmsEnrollment",o,"PHONE_PROVIDER");return(await s.catch(e=>Promise.reject(e))).phoneSessionInfo.sessionInfo}{y("signin"===t.type,e,"internal-error");let o=(null===(n=i.multiFactorHint)||void 0===n?void 0:n.uid)||i.multiFactorUid;y(o,e,"missing-multi-factor-info");let s={mfaPendingCredential:t.credential,mfaEnrollmentId:o,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}},a=async(e,t)=>{if(t.phoneSignInInfo.captchaResponse===ek){y((null==r?void 0:r.type)===tM,e,"argument-error");let n=await tL(e,t,r);return tO(e,n)}return tO(e,t)},l=eI(e,s,"mfaSmsSignIn",a,"PHONE_PROVIDER");return(await l.catch(e=>Promise.reject(e))).phoneResponseInfo.sessionInfo}}{let t={phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"},n=async(e,t)=>{if(t.captchaResponse===ek){y((null==r?void 0:r.type)===tM,e,"argument-error");let n=await tL(e,t,r);return eB(e,n)}return eB(e,t)},o=eI(e,t,"sendVerificationCode",n,"PHONE_PROVIDER");return(await o.catch(e=>Promise.reject(e))).sessionInfo}}finally{null==r||r._reset()}}async function tL(e,t,r){y(r.type===tM,e,"argument-error");let n=await r.verify();y("string"==typeof n,e,"argument-error");let i=Object.assign({},t);if("phoneEnrollmentInfo"in i){let e=i.phoneEnrollmentInfo.phoneNumber,t=i.phoneEnrollmentInfo.captchaResponse,r=i.phoneEnrollmentInfo.clientType,o=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:n,captchaResponse:t,clientType:r,recaptchaVersion:o}}),i}if(!("phoneSignInInfo"in i))return Object.assign(i,{recaptchaToken:n}),i;{let e=i.phoneSignInInfo.captchaResponse,t=i.phoneSignInInfo.clientType,r=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:n,captchaResponse:e,clientType:t,recaptchaVersion:r}}),i}}class tD{constructor(e){this.providerId=tD.PROVIDER_ID,this.auth=ew(e)}verifyPhoneNumber(e,t){return tN(this.auth,e,(0,i.Ku)(t))}static credential(e,t){return eq._fromVerification(e,t)}static credentialFromResult(e){return tD.credentialFromTaggedObject(e)}static credentialFromError(e){return tD.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:r}=e;return t&&r?eq._fromTokenResponse(t,r):null}}tD.PROVIDER_ID="phone",tD.PHONE_SIGN_IN_METHOD="phone";class tj extends eM{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return eF(e,this._buildIdpRequest())}_linkToIdToken(e,t){return eF(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return eF(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function tV(e){return e7(e.auth,new tj(e),e.bypassAuthState)}function tF(e){let{auth:t,user:r}=e;return y(r,t,"internal-error"),e8(r,new tj(e),e.bypassAuthState)}async function tU(e){let{auth:t,user:r}=e;return y(r,t,"internal-error"),e6(r,new tj(e),e.bypassAuthState)}class tB{constructor(e,t,r,n,i=!1){this.auth=e,this.resolver=r,this.user=n,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){let{urlResponse:t,sessionId:r,postBody:n,tenantId:i,error:o,type:s}=e;if(o){this.reject(o);return}let a={auth:this.auth,requestUri:t,sessionId:r,tenantId:i||void 0,postBody:n||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(s)(a))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return tV;case"linkViaPopup":case"linkViaRedirect":return tU;case"reauthViaPopup":case"reauthViaRedirect":return tF;default:d(this.auth,"internal-error")}}resolve(e){var t,r;t=this.pendingPromise,r="Pending promise was never set",t||v(r),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){var t,r;t=this.pendingPromise,r="Pending promise was never set",t||v(r),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}let tz=new x(2e3,1e4);class tH extends tB{constructor(e,t,r,n,i){super(e,t,n,i),this.provider=r,this.authWindow=null,this.pollId=null,tH.currentPopupAction&&tH.currentPopupAction.cancel(),tH.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return y(e,this.auth,"internal-error"),e}async onExecution(){var e,t;e=1===this.filter.length,t="Popup operations only handle one event",e||v(t);let r=ty();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],r),this.authWindow.associatedEvent=r,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(f(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(f(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,tH.currentPopupAction=null}pollUserCancellation(){let e=()=>{var t,r;if(null===(r=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===r?void 0:r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(f(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,tz.get())};e()}}tH.currentPopupAction=null;let t$=new Map;class tW extends tB{constructor(e,t,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,r),this.eventId=null}async execute(){let e=t$.get(this.auth._key());if(!e){try{let t=await tq(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}t$.set(this.auth._key(),e)}return this.bypassAuthState||t$.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);
28if("unknown"===e.type){this.resolve(null);return}if(e.eventId){let t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function tq(e,t){let r=tY(t),n=tK(e);if(!await n._isAvailable())return!1;let i=await n._get(r)==="true";return await n._remove(r),i}function tG(e,t){t$.set(e._key(),t)}function tK(e){return et(e._redirectPersistence)}function tY(e){return en("pendingRedirect",e.config.apiKey,e.name)}async function tX(e,t,r=!1){var i,o;if((0,n.xZ)(e.app))return Promise.reject(m(e));let s=ew(e),a=(i=s,(o=t)?et(o):(y(i._popupRedirectResolver,i,"argument-error"),i._popupRedirectResolver)),l=new tW(s,a,r),u=await l.execute();return u&&!r&&(delete u.user._redirectEventId,await s._persistUserIfCurrent(u.user),await s._setRedirectUser(null,t)),u}class tZ{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(t=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return tJ(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var r;if(e.error&&!tJ(e)){let n=(null===(r=e.error.code)||void 0===r?void 0:r.split("auth/")[1])||"internal-error";t.onError(f(this.auth,n))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let r=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(tQ(e))}saveEventToCache(e){this.cachedEventUids.add(tQ(e)),this.lastProcessedEventTime=Date.now()}}function tQ(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function tJ({type:e,error:t}){return"unknown"===e&&(null==t?void 0:t.code)==="auth/no-auth-event"}async function t0(e,t={}){return A(e,"GET","/v1/projects",t)}let t1=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,t2=/^https?/;async function t4(e){if(e.config.emulator)return;let{authorizedDomains:t}=await t0(e);for(let e of t)try{if(function(e){let t=b(),{protocol:r,hostname:n}=new URL(t);if(e.startsWith("chrome-extension://")){let i=new URL(e);return""===i.hostname&&""===n?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&i.hostname===n}if(!t2.test(r))return!1;if(t1.test(e))return n===e;let i=e.replace(/\./g,"\\.");return RegExp("^(.+\\."+i+"|"+i+")$","i").test(n)}(e))return}catch(e){}d(e,"unauthorized-domain")}let t3=new x(3e4,6e4);function t5(){let e=tb().___jsl;if(null==e?void 0:e.H){for(let t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}}let t6=null,t8=new x(5e3,15e3),t7={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},t9=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);async function re(e){let t=await (t6=t6||new Promise((t,r)=>{var n,i,o,s;function a(){t5(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{t5(),r(f(e,"network-request-failed"))},timeout:t3.get()})}if(null===(i=null===(n=tb().gapi)||void 0===n?void 0:n.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else if(null===(o=tb().gapi)||void 0===o?void 0:o.load)a();else{let t=eE("iframefcb");return tb()[t]=()=>{gapi.load?a():r(f(e,"network-request-failed"))},(s=`${e_.gapiScript}?onload=${t}`,e_.loadJS(s)).catch(e=>r(e))}}).catch(e=>{throw t6=null,e})),r=tb().gapi;return y(r,e,"internal-error"),t.open({where:document.body,url:function(e){let t=e.config;y(t.authDomain,e,"auth-domain-config-required");let r=t.emulator?_(t,"emulator/auth/iframe"):`https://${e.config.authDomain}
28/__/auth/iframe`,o={apiKey:t.apiKey,appName:e.name,v:n.MF},s=t9.get(e.config.apiHost);s&&(o.eid=s);let a=e._getFrameworks();return a.length&&(o.fw=a.join(",")),`${r}?${(0,i.Am)(o).slice(1)}`}(e),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:t7,dontclear:!0},t=>new Promise(async(r,n)=>{await t.restyle({setHideOnLeave:!1});let i=f(e,"network-request-failed"),o=tb().setTimeout(()=>{n(i)},t8.get());function s(){tb().clearTimeout(o),r(t)}t.ping(s).then(s,()=>{n(i)})}))}let rt={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class rr{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}let rn=encodeURIComponent("fac");async function ri(e,t,r,o,s,a){y(e.config.authDomain,e,"auth-domain-config-required"),y(e.config.apiKey,e,"invalid-api-key");let l={apiKey:e.config.apiKey,appName:e.name,authType:r,redirectUrl:o,v:n.MF,eventId:s};if(t instanceof eY)for(let[r,n]of(t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,i.Im)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters())),Object.entries(a||{})))l[r]=n;if(t instanceof eX){let e=t.getScopes().filter(e=>""!==e);e.length>0&&(l.scopes=e.join(","))}for(let t of(e.tenantId&&(l.tid=e.tenantId),Object.keys(l)))void 0===l[t]&&delete l[t];let u=await e._getAppCheckToken(),c=u?`#${rn}=${encodeURIComponent(u)}`:"";return`${function({config:e}){return e.emulator?_(e,"emulator/auth/handler"):`https://${e.authDomain}/__/auth/handler`}(e)}?${(0,i.Am)(l).slice(1)}${c}`}let ro="webStorageSupport";class rs{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=tm,this._completeRedirectFn=tX,this._overrideRedirectResult=tG}async _openPopup(e,t,r,n){var o,s,a;s=null===(o=this.eventManagers[e._key()])||void 0===o?void 0:o.manager,a="_initialize() not called before _openPopup()",s||v(a);let l=await ri(e,t,r,b(),n);return function(e,t,r,n=500,o=600){let s=Math.max((window.screen.availHeight-o)/2,0).toString(),a=Math.max((window.screen.availWidth-n)/2,0).toString(),l="",u=Object.assign(Object.assign({},rt),{width:n.toString(),height:o.toString(),top:s,left:a}),c=(0,i.ZQ)().toLowerCase();r&&(l=el(c)?"_blank":r),es(c)&&(t=t||"http://localhost",u.scrollbars="yes");let h=Object.entries(u).reduce((e,[t,r])=>`${e}${t}=${r},`,"");if(function(e=(0,i.ZQ)()){var t;return ef(e)&&!!(null===(t=window.navigator)||void 0===t?void 0:t.standalone)}(c)&&"_self"!==l)return function(e,t){let r=document.createElement("a");r.href=e,r.target=t;let n=document.createEvent("MouseEvent");n.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),r.dispatchEvent(n)}(t||"",l),new rr(null);let d=window.open(t||"",l,h);y(d,e,"popup-blocked");try{d.focus()}catch(e){}return new rr(d)}(e,l,ty())}async _openRedirect(e,t,r,n){var i;return await this._originValidation(e),i=await ri(e,t,r,b(),n),tb().location.href=i,new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){var r;let{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(r="If manager is not set, promise should be",n||v(r),n)}let n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){let t=await re(e),r=new tZ(e);return t.register("authEvent",t=>(y(null==t?void 0:t.authEvent,e,"invalid-auth-event"),{status:r.onEvent(t.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(ro,{type:ro},r=>{var n;let i=null===(n=null==r?void 0:r[0])||void 0===n?void 0:n[ro];void 0!==i&&t(!!i),d(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=t4(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return ep()||ea()||ef()}}class ra{constructor(e){this.factorId=e}_process(e,t,r){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,r);case"signin":return this._finalizeSignIn(e,t.credential);default:return v("unexpected MultiFactorSessionType")}}}class rl extends ra{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new rl(e)}_finalizeEnroll(e,t,r){return A(e,"POST","/v2/accounts/mfaEnrollment:finalize",k(e,{idToken:t,displayName:r,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}_finalizeSignIn(e,t){return A(e,"POST","/v2/accounts/mfaSignIn:finalize",k(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}}class ru{constructor(){}static assertion(e){return rl._fromCredential(e)}}ru.FACTOR_ID="phone";class rc{static assertionForEnrollment(e,t){return rh._fromSecret(e,t)}static assertionForSignIn(e,t){return rh._fromEnrollmentId(e,t)}static async generateSecret(e){var t,r;y(void 0!==(null===(t=e.user)||void 0===t?void 0:t.auth),"internal-error");let n=await A(r=e.user.auth,"POST","/v2/accounts/mfaEnrollment:start",k(r,{idToken:e.credential,totpEnrollmentInfo:{}}));return rd._fromStartTotpMfaEnrollmentResponse(n,e.user.auth)}}rc.FACTOR_ID="totp";class rh extends ra{constructor(e,t,r){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=r}static _fromSecret(e,t){return new rh(t,void 0,e)}static _fromEnrollmentId(e,t){return new rh(t,e)}async _finalizeEnroll(e,t,r){return y(void 0!==this.secret,e,"argument-error"),A(e,"POST","/v2/accounts/mfaEnrollment:finalize",k(e,{idToken:t,displayName:r,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)}))}async _finalizeSignIn(e,t){y(void 0!==this.enrollmentId&&void 0!==this.otp,e,"argument-error");let r={verificationCode:this.otp};return A(e,"POST","/v2/accounts/mfaSignIn:finalize",k(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:r}))}}class rd{constructor(e,t,r,n,i,o,s){this.sessionInfo=o,this.auth=s,this.secretKey=e,this.hashingAlgorithm=t,this.co
28deLength=r,this.codeIntervalSeconds=n,this.enrollmentCompletionDeadline=i}static _fromStartTotpMfaEnrollmentResponse(e,t){return new rd(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){var r;let n=!1;return(rf(e)||rf(t))&&(n=!0),n&&(rf(e)&&(e=(null===(r=this.auth.currentUser)||void 0===r?void 0:r.email)||"unknownuser"),rf(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}}function rf(e){return void 0===e||(null==e?void 0:e.length)===0}var rp="@firebase/auth",rm="1.9.1";class rg{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){return(this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser)?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){y(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}let ry=(0,i.XA)("authIdTokenMaxAge")||300,rv=null,rb=e=>async t=>{let r=t&&await t.getIdTokenResult(),n=r&&(new Date().getTime()-Date.parse(r.issuedAtTime))/1e3;if(n&&n>ry)return;let i=null==r?void 0:r.token;rv!==i&&(rv=i,await fetch(e,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function rw(e=(0,n.Sx)()){let t=(0,n.j6)(e,"auth");if(t.isInitialized())return t.getImmediate();let r=function(e,t){let r=(0,n.j6)(e,"auth");if(r.isInitialized()){let e=r.getImmediate(),n=r.getOptions();if((0,i.bD)(n,null!=t?t:{}))return e;d(e,"already-initialized")}return r.initialize({options:t})}(e,{popupRedirectResolver:rs,persistence:[tR,tp,tm]}),o=(0,i.XA)("authTokenSyncURL");if(o&&"boolean"==typeof isSecureContext&&isSecureContext){let e=new URL(o,location.origin);if(location.origin===e.origin){var s,a;let t=rb(e.toString());s=()=>t(r.currentUser),(0,i.Ku)(r).beforeAuthStateChanged(t,s),a=e=>t(e),(0,i.Ku)(r).onIdTokenChanged(a,void 0,void 0)}}let l=(0,i.Tj)("auth");return l&&function(e,t,r){let n=ew(e);y(/^https?:\/\//.test(t),n,"invalid-emulator-scheme");let o=eR(t),{host:s,port:a}=function(e){let t=eR(e),r=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!r)return{host:"",port:null};let n=r[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(n);if(i){let e=i[1];return{host:e,port:eO(n.substr(e.length+1))}}{let[e,t]=n.split(":");return{host:e,port:eO(t)}}}(t),l=null===a?"":`:${a}`,u={url:`${o}//${s}${l}/`},c=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:!1})});if(!n._canInitEmulator){y(n.config.emulator&&n.emulatorConfig,n,"emulator-config-failed"),y((0,i.bD)(u,n.config.emulator)&&(0,i.bD)(c,n.emulatorConfig),n,"emulator-config-failed");return}n.config.emulator=u,n.emulatorConfig=c,n.settings.appVerificationDisabledForTesting=!0,function(){function e(){let e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}(r,`http://${l}`),r}e_={loadJS:e=>
28new Promise((t,r)=>{let n=document.createElement("script");n.setAttribute("src",e),n.onload=t,n.onerror=e=>{let t=f("internal-error");t.customData=e,r(t)},n.type="text/javascript",n.charset="UTF-8",(function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document})().appendChild(n)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},function(e){(0,n.om)(new a.uA("auth",(t,{options:r})=>{let n=t.getProvider("app").getImmediate(),i=t.getProvider("heartbeat"),o=t.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=n.options;y(s&&!s.includes(":"),"invalid-api-key",{appName:n.name});let l=new eb(n,i,o,{apiKey:s,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:em(e)});return function(e,t){let r=(null==t?void 0:t.persistence)||[],n=(Array.isArray(r)?r:[r]).map(et);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(n,null==t?void 0:t.popupRedirectResolver)}(l,r),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize()})),(0,n.om)(new a.uA("auth-internal",e=>new rg(ew(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,n.KO)(rp,rm,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(e)),(0,n.KO)(rp,rm,"esm2017")}("Browser")},71884:(e,t,r)=>{"use strict";r.d(t,{gS:()=>uc,rJ:()=>lr,kd:()=>uu,H9:()=>ln,x7:()=>ui,GG:()=>us,aU:()=>ll,AB:()=>l0,aQ:()=>uh,My:()=>lQ,P:()=>lG,O5:()=>um,BN:()=>ua,mZ:()=>ul,_M:()=>lY});var n,i,o,s,a,l,u,c,h,d,f,p,m,g,y=r(49928),v=r(5125),b=r(63424),w=r(11072),x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},_={};(function(){function e(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function t(e,t,r){r||(r=0);var n=Array(16);if("string"==typeof t)for(var i=0;16>i;++i)n[i]=t.charCodeAt(r++)|t.charCodeAt(r++)<<8|t.charCodeAt(r++)<<16|t.charCodeAt(r++)<<24;else for(i=0;16>i;++i)n[i]=t[r++]|t[r++]<<8|t[r++]<<16|t[r++]<<24;t=e.g[0],r=e.g[1],i=e.g[2];var o=e.g[3],s=t+(o^r&(i^o))+n[0]+0xd76aa478&0xffffffff;s=o+(i^(t=r+(s<<7&0xffffffff|s>>>25))&(r^i))+n[1]+0xe8c7b756&0xffffffff,s=i+(r^(o=t+(s<<12&0xffffffff|s>>>20))&(t^r))+n[2]+0x242070db&0xffffffff,s=r+(t^(i=o+(s<<17&0xffffffff|s>>>15))&(o^t))+n[3]+0xc1bdceee&0xffffffff,s=t+(o^(r=i+(s<<22&0xffffffff|s>>>10))&(i^o))+n[4]+0xf57c0faf&0xffffffff,s=o+(i^(t=r+(s<<7&0xffffffff|s>>>25))&(r^i))+n[5]+0x4787c62a&0xffffffff,s=i+(r^(o=t+(s<<12&0xffffffff|s>>>20))&(t^r))+n[6]+0xa8304613&0xffffffff,s=r+(t^(i=o+(s<<17&0xffffffff|s>>>15))&(o^t))+n[7]+0xfd469501&0xffffffff,s=t+(o^(r=i+(s<<22&0xffffffff|s>>>10))&(i^o))+n[8]+0x698098d8&0xffffffff,s=o+(i^(t=r+(s<<7&0xffffffff|s>>>25))&(r^i))+n[9]+0x8b44f7af&0xffffffff,s=i+(r^(o=t+(s<<12&0xffffffff|s>>>20))&(t^r))+n[10]+0xffff5bb1&0xffffffff,s=r+(t^(i=o+(s<<17&0xffffffff|s>>>15))&(o^t))+n[11]+0x895cd7be&0xffffffff,s=t+(o^(r=i+(s<<22&0xffffffff|s>>>10))&(i^o))+n[12]+0x6b901122&0xffffffff,s=o+(i^(t=r+(s<<7&0xffffffff|s>>>25))&(r^i))+n[13]+0xfd987193&0xffffffff,s=i+(r^(o=t+(s<<12&0xffffffff|s>>>20))&(t^r))+n[14]+0xa679438e&0xffffffff,s=r+(t^(i=o+(s<<17&0xffffffff|s>>>15))&(o^t))+n[15]+0x49b40821&0xffffffff,r=i+(s<<22&0xffffffff|s>>>10),s=t+(i^o&(r^i))+n[1]+0xf61e2562&0xffffffff,t=r+(s<<5&0xffffffff|s>>>27),s=o+(r^i&(t^r))+n[6]+0xc040b340&0xffffffff,o=t+(s<<9&0xffffffff|s>>>23),s=i+(t^r&(o^t))+n[11]+0x265e5a51&0xffffffff,i=o+(s<<14&0xffffffff|s>>>18),s=r+(o^t&(i^o))+n[0]+0xe9b6c7aa&0xffffffff,r=i+(s<<20&0xffffffff|s>>>12),s=t+(i^o&(r^i))+n[5]+0xd62f105d&0xffffffff,t=r+(s<<5&0xffffffff|s>>>27),s=o+(r^i&(t^r))+n[10]+0x2441453&0xffffffff,o=t+(s<<9&0xffffffff|s>>>23),s=i+(t^r&(o^t))+n[15]+0xd8a1e681&0xffffffff,i=o+(s<<14&0xffffffff|s>>>18),s=r+(o^t&(i^o))+n[4]+0xe7d3fbc8&0xffffffff,r=i+(s<<20&0xffffffff|s>>>12),s=t+(i^o&(r^i))+n[9]+0x21e1cde6&0xffffffff,t=r+(s<<5&0xffffffff|s>>>27),s=o+(r^i&(t^r))+n[14]+0xc33707d6&0xffffffff,o=t+(s<<9&0xffffffff|s>>>23),s=i+(t^r&(o^t))+n[3]+0xf4d50d87&0xffffffff,i=o+(s<<14&0xffffffff|s>>>18),s=r+(o^t&(i^o))+n[8]+0x455a14ed&0xffffffff,r=i+(s<<20&0xffffffff|s>>>12),s=t+(i^o&(r^i))+n[13]+0xa9e3e905&0xffffffff,t=r+(s<<5&0xffffffff|s>>>27),s=o+(r^i&(t^r))+n[2]+0xfcefa3f8&0xffffffff,o=t+(s<<9&0xffffffff|s>>>23),s=i+(t^r&(o^t))+n[7]+0x676f02d9&0xffffffff,i=o+(s<<14&0xffffffff|s>>>18),s=r+(o^t&(i^o))+n[12]+0x8d2a4c8a&0xffffffff,s=t+((r=i+(s<<20&0xffffffff|s>>>12))^i^o)+n[5]+0xfffa3942&0xffffffff,s=o+((t=r+(s<<4&0xffffffff|s>>>28))^r^i)+n[8]+0x8771f681&0xffffffff,s=i+((o=t+(s<<11&0xffffffff|s>>>21))^t^r)+n[11]+0x6d9d6122&0xffffffff,s=r+((i=o+(s<<16&0xffffffff|s>>>16))^o^t)+n[14]+0xfde5380c&0xffffffff,s=t+((r=i+(s<<23&0xffffffff|s>>>9))^i^o)+n[1]+0xa4beea44&0xffffffff,s=o+((t=r+(s<<4&0xffffffff|s>>>28))^r^i)+n[4]+0x4bdecfa9&0xffffffff,s=i+((o=t+(s<<11&0xffffffff|s>>>21))^t^r)+n[7]+0xf6bb4b60&0xffffffff,s=r+((i=o+(s<<16&0xffffffff|s>>>16))^o^t)+n[10]+0xbebfbc70&0xffffffff,s=t+((r=i+(s<<23&0xffffffff|s>>>9))^i^o)+n[13]+0x289b7ec6&0xffffffff,s=o+((t=r+(s<<4&0xffffffff|s>>>28))^r^i)+n[0]+0xeaa127fa&0xffffffff,s=i+((o=t+(s<<11&0xffffffff|s>>>21))^t^r)+n[3]+0xd4ef3085&0xffffffff,s=r+((i=o+(s<<16&0xffffffff|s>>>16))^o^t)+n[6]+0x4881d05&0xffffffff,s=t+((r=i+(s<<23&0xffffffff|s>>>9))^i^o)+n[9]+0xd9d4d039&0xffffffff,s=o+((t=r+(s<<4&0xffffffff|s>>>
2828))^r^i)+n[12]+0xe6db99e5&0xffffffff,s=i+((o=t+(s<<11&0xffffffff|s>>>21))^t^r)+n[15]+0x1fa27cf8&0xffffffff,s=r+((i=o+(s<<16&0xffffffff|s>>>16))^o^t)+n[2]+0xc4ac5665&0xffffffff,r=i+(s<<23&0xffffffff|s>>>9),s=t+(i^(r|~o))+n[0]+0xf4292244&0xffffffff,t=r+(s<<6&0xffffffff|s>>>26),s=o+(r^(t|~i))+n[7]+0x432aff97&0xffffffff,o=t+(s<<10&0xffffffff|s>>>22),s=i+(t^(o|~r))+n[14]+0xab9423a7&0xffffffff,i=o+(s<<15&0xffffffff|s>>>17),s=r+(o^(i|~t))+n[5]+0xfc93a039&0xffffffff,r=i+(s<<21&0xffffffff|s>>>11),s=t+(i^(r|~o))+n[12]+0x655b59c3&0xffffffff,t=r+(s<<6&0xffffffff|s>>>26),s=o+(r^(t|~i))+n[3]+0x8f0ccc92&0xffffffff,o=t+(s<<10&0xffffffff|s>>>22),s=i+(t^(o|~r))+n[10]+0xffeff47d&0xffffffff,i=o+(s<<15&0xffffffff|s>>>17),s=r+(o^(i|~t))+n[1]+0x85845dd1&0xffffffff,r=i+(s<<21&0xffffffff|s>>>11),s=t+(i^(r|~o))+n[8]+0x6fa87e4f&0xffffffff,t=r+(s<<6&0xffffffff|s>>>26),s=o+(r^(t|~i))+n[15]+0xfe2ce6e0&0xffffffff,o=t+(s<<10&0xffffffff|s>>>22),s=i+(t^(o|~r))+n[6]+0xa3014314&0xffffffff,i=o+(s<<15&0xffffffff|s>>>17),s=r+(o^(i|~t))+n[13]+0x4e0811a1&0xffffffff,r=i+(s<<21&0xffffffff|s>>>11),s=t+(i^(r|~o))+n[4]+0xf7537e82&0xffffffff,t=r+(s<<6&0xffffffff|s>>>26),s=o+(r^(t|~i))+n[11]+0xbd3af235&0xffffffff,o=t+(s<<10&0xffffffff|s>>>22),s=i+(t^(o|~r))+n[2]+0x2ad7d2bb&0xffffffff,i=o+(s<<15&0xffffffff|s>>>17),s=r+(o^(i|~t))+n[9]+0xeb86d391&0xffffffff,e.g[0]=e.g[0]+t&0xffffffff,e.g[1]=e.g[1]+(i+(s<<21&0xffffffff|s>>>11))&0xffffffff,e.g[2]=e.g[2]+i&0xffffffff,e.g[3]=e.g[3]+o&0xffffffff}function r(e,t){this.h=t;for(var r=[],n=!0,i=e.length-1;0<=i;i--){var o=0|e[i];n&&o==t||(r[i]=o,n=!1)}this.g=r}!function(e,t){function r(){}r.prototype=t.prototype,e.D=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.C=function(e,r,n){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[r].apply(e,i)}}(e,function(){this.blockSize=-1}),e.prototype.s=function(){this.g[0]=0x67452301,this.g[1]=0xefcdab89,this.g[2]=0x98badcfe,this.g[3]=0x10325476,this.o=this.h=0},e.prototype.u=function(e,r){void 0===r&&(r=e.length);for(var n=r-this.blockSize,i=this.B,o=this.h,s=0;s<r;){if(0==o)for(;s<=n;)t(this,e,s),s+=this.blockSize;if("string"==typeof e){for(;s<r;)if(i[o++]=e.charCodeAt(s++),o==this.blockSize){t(this,i),o=0;break}}else for(;s<r;)if(i[o++]=e[s++],o==this.blockSize){t(this,i),o=0;break}}this.h=o,this.o+=r},e.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var r=8*this.o;for(t=e.length-8;t<e.length;++t)e[t]=255&r,r/=256;for(this.u(e),e=Array(16),t=r=0;4>t;++t)for(var n=0;32>n;n+=8)e[r++]=this.g[t]>>>n&255;return e};var o,s={};function a(e){var t;return -128<=e&&128>e?(t=function(e){return new r([0|e],0>e?-1:0)},Object.prototype.hasOwnProperty.call(s,e)?s[e]:s[e]=t(e)):new r([0|e],0>e?-1:0)}function l(e){if(isNaN(e)||!isFinite(e))return u;if(0>e)return p(l(-e));for(var t=[],n=1,i=0;e>=n;i++)t[i]=e/n|0,n*=0x100000000;return new r(t,0)}var u=a(0),c=a(1),h=a(0x1000000);function d(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function f(e){return -1==e.h}function p(e){for(var t=e.g.length,n=[],i=0;i<t;i++)n[i]=~e.g[i];return new r(n,~e.h).add(c)}function m(e,t){return e.add(p(t))}function g(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function y(e,t){this.g=e,this.h=t}function v(e,t){if(d(t))throw Error("division by zero");if(d(e))return new y(u,u);if(f(e))return t=v(p(e),t),new y(p(t.g),p(t.h));if(f(t))return t=v(e,p(t)),new y(p(t.g),t.h);if(30<e.g.length){if(f(e)||f(t))throw Error("slowDivide_ only works with positive integers.");for(var r=c,n=t;0>=n.l(e);)r=b(r),n=b(n);var i=w(r,1),o=w(n,1);for(n=w(n,2),r=w(r,2);!d(n);){var s=o.add(n);0>=s.l(e)&&(i=i.add(r),o=s),n=w(n,1),r=w(r,1)}return t=m(e,i.j(t)),new y(i,t)}for(i=u;0<=e.l(t);){for(n=48>=(n=Math.ceil(Math.log(r=Math.max(1,Math.floor(e.m()/t.m())))/Math.LN2))?1:Math.pow(2,n-48),s=(o=l(r)).j(t);f(s)||0<s.l(e);)r-=n,s=(o=l(r)).j(t);d(o)&&(o=c),i=i.add(o),e=m(e,s)}return new y(i,e)}function b(e){for(var t=e.g.length+1,n=[],i=0;i<t;i++)n[i]=e.i(i)<<1|e.i(i-1)>>>31;return new r(n,e.h)}function w(e,t){var n=t>>5;t%=32;for(var i=e.g.length-n,o=[],s=0;s<i;s++)o[s]=0<t?e.i(s+n)>>>t|e.i(s+n+1)<<32-t:e.i(s+n);return new r(o,e.h)}(o=r.prototype).m=function(){if(f(this))return-p(this).m();for(var e=0,t=1,r=0;r<this.g.length;r++){var n=this.i(r);e+=(0<=n?n:0x100000000+n)*t,t*=0x100000000}return e},o.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(d(this))return"0";
28if(f(this))return"-"+p(this).toString(e);for(var t=l(Math.pow(e,6)),r=this,n="";;){var i=v(r,t).g,o=((0<(r=m(r,i.j(t))).g.length?r.g[0]:r.h)>>>0).toString(e);if(d(r=i))return o+n;for(;6>o.length;)o="0"+o;n=o+n}},o.i=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},o.l=function(e){return f(e=m(this,e))?-1:d(e)?0:1},o.abs=function(){return f(this)?p(this):this},o.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0,o=0;o<=t;o++){var s=i+(65535&this.i(o))+(65535&e.i(o)),a=(s>>>16)+(this.i(o)>>>16)+(e.i(o)>>>16);i=a>>>16,s&=65535,a&=65535,n[o]=a<<16|s}return new r(n,-0x80000000&n[n.length-1]?-1:0)},o.j=function(e){if(d(this)||d(e))return u;if(f(this))return f(e)?p(this).j(p(e)):p(p(this).j(e));if(f(e))return p(this.j(p(e)));if(0>this.l(h)&&0>e.l(h))return l(this.m()*e.m());for(var t=this.g.length+e.g.length,n=[],i=0;i<2*t;i++)n[i]=0;for(i=0;i<this.g.length;i++)for(var o=0;o<e.g.length;o++){var s=this.i(i)>>>16,a=65535&this.i(i),c=e.i(o)>>>16,m=65535&e.i(o);n[2*i+2*o]+=a*m,g(n,2*i+2*o),n[2*i+2*o+1]+=s*m,g(n,2*i+2*o+1),n[2*i+2*o+1]+=a*c,g(n,2*i+2*o+1),n[2*i+2*o+2]+=s*c,g(n,2*i+2*o+2)}for(i=0;i<t;i++)n[i]=n[2*i+1]<<16|n[2*i];for(i=t;i<2*t;i++)n[i]=0;return new r(n,0)},o.A=function(e){return v(this,e).h},o.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0;i<t;i++)n[i]=this.i(i)&e.i(i);return new r(n,this.h&e.h)},o.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0;i<t;i++)n[i]=this.i(i)|e.i(i);return new r(n,this.h|e.h)},o.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0;i<t;i++)n[i]=this.i(i)^e.i(i);return new r(n,this.h^e.h)},e.prototype.digest=e.prototype.v,e.prototype.reset=e.prototype.s,e.prototype.update=e.prototype.u,i=_.Md5=e,r.prototype.add=r.prototype.add,r.prototype.multiply=r.prototype.j,r.prototype.modulo=r.prototype.A,r.prototype.compare=r.prototype.l,r.prototype.toNumber=r.prototype.m,r.prototype.toString=r.prototype.toString,r.prototype.getBits=r.prototype.i,r.fromNumber=l,r.fromString=function e(t,r){if(0==t.length)throw Error("number format error: empty string");if(2>(r=r||10)||36<r)throw Error("radix out of range: "+r);if("-"==t.charAt(0))return p(e(t.substring(1),r));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var n=l(Math.pow(r,8)),i=u,o=0;o<t.length;o+=8){var s=Math.min(8,t.length-o),a=parseInt(t.substring(o,o+s),r);8>s?(s=l(Math.pow(r,s)),i=i.j(s).add(l(a))):i=(i=i.j(n)).add(l(a))}return i},n=_.Integer=r}).apply(void 0!==x?x:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},S={};(function(){var e,t,r,n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e},i=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof E&&E];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);!function(e,t){if(t)t:{var r=i;e=e.split(".");for(var o=0;o<e.length-1;o++){var s=e[o];if(!(s in r))break t;r=r[s]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}("Array.prototype.values",function(e){return e||function(){var e,t,r,n,i;return e=this,t=function(e,t){return t},e instanceof String&&(e+=""),r=0,n=!1,(i={next:function(){if(!n&&r<e.length){var i=r++;return{value:t(i,e[i]),done:!1}}return n=!0,{done:!0,value:void 0}}})[Symbol.iterator]=function(){return i},i}});var f=f||{},p=this||self;function m(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function g(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function y(e,t,r){return e.call.apply(e.bind,arguments)}function v(e,t,r){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(t,r)}}return function(){return e.apply(t,arguments)}}function b(e,t,r){return(b=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?y:v).apply(null,arguments)}
28function w(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function x(e,t){function r(){}r.prototype=t.prototype,e.aa=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.Qb=function(e,r,n){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[r].apply(e,i)}}function _(e){let t=e.length;if(0<t){let r=Array(t);for(let n=0;n<t;n++)r[n]=e[n];return r}return[]}function T(e,t){for(let t=1;t<arguments.length;t++){let r=arguments[t];if(m(r)){let t=e.length||0,n=r.length||0;e.length=t+n;for(let i=0;i<n;i++)e[t+i]=r[i]}else e.push(r)}}class k{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}function A(e){return/^[\s\xa0]*$/.test(e)}function C(){var e=p.navigator;return e&&(e=e.userAgent)?e:""}function I(e){return I[" "](e),e}I[" "]=function(){};var P=-1!=C().indexOf("Gecko")&&!(-1!=C().toLowerCase().indexOf("webkit")&&-1==C().indexOf("Edge"))&&!(-1!=C().indexOf("Trident")||-1!=C().indexOf("MSIE"))&&-1==C().indexOf("Edge");function R(e,t,r){for(let n in e)t.call(r,e[n],n,e)}function O(e){let t={};for(let r in e)t[r]=e[r];return t}let M="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function N(e,t){let r,n;for(let t=1;t<arguments.length;t++){for(r in n=arguments[t])e[r]=n[r];for(let t=0;t<M.length;t++)r=M[t],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}}class L{constructor(){this.h=this.g=null}add(e,t){let r=D.get();r.set(e,t),this.h?this.h.next=r:this.g=r,this.h=r}}var D=new k(()=>new j,e=>e.reset());class j{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let V,F=!1,U=new L,B=()=>{let e=p.Promise.resolve(void 0);V=()=>{e.then(z)}};var z=()=>{let e;for(var t;e=null,U.g&&(e=U.g,U.g=U.g.next,U.g||(U.h=null),e.next=null),t=e;){try{t.h.call(t.g)}catch(e){!function(e){p.setTimeout(()=>{throw e},0)}(e)}D.j(t),100>D.h&&(D.h++,t.next=D.g,D.g=t)}F=!1};function H(){this.s=this.s,this.C=this.C}function $(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}H.prototype.s=!1,H.prototype.ma=function(){this.s||(this.s=!0,this.N())},H.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},$.prototype.h=function(){this.defaultPrevented=!0};var W=function(){if(!p.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{let e=()=>{};p.addEventListener("test",e,t),p.removeEventListener("test",e,t)}catch(e){}return e}();function q(e,t){if($.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var r=this.type=e.type,n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(P){t:{try{I(t.nodeName);var i=!0;break t}catch(e){}i=!1}i||(t=null)}}else"mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement);this.relatedTarget=t,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:G[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&q.aa.h.call(this)}}x(q,$);var G={2:"touch",3:"pen",4:"mouse"};q.prototype.h=function(){q.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var K="closure_listenable_"+(1e6*Math.random()|0),Y=0;function X(e,t,r,n,i){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!n,this.ha=i,this.key=++Y,this.da=this.fa=!1}function Z(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function Q(e){this.src=e,this.g={},this.h=0}function J(e,t){var r=t.type;if(r in e.g){var n,i=e.g[r],o=Array.prototype.indexOf.call(i,t,void 0);(n=0<=o)&&Array.prototype.splice.call(i,o,1),n&&(Z(t),0==e.g[r].length&&(delete e.g[r],e.h--))}}function ee(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i];if(!o.da&&o.listener==t&&!!r==o.capture&&o.ha==n)return i}return -1}Q.prototype.add=function(e,t,r,n,i){var o=e.toString();(e=this.g[o])||(e=this.g[o]=[],this.h++);var s=ee(e,t,n,i);return -1<s?(t=e[s],r||(t.fa=!1)):((t=new X(t,this.src,o,!!n,i)).fa=r,e.push(t)),t};var et="closure_lm_"+(1e6*Math.random()|0),er={};function en(e,t,r,n,i,o){if(!t)throw Error("Invalid event type");var s=g(i)?!!i.capture:!!i,a=ea(e);if(a||(e[et]=a=new Q(e)),(r=a.add(t,r,n,s,o)).proxy)return r;if(n=function e(t){return es.call(e.src,e.listener,t)},r.proxy=n,n.src=e,n.listener=r,e.addEventListener)W||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),n,i);else if(e.attachEvent)e.attachEvent(eo(t.toString()),n);else if(e.addListener&&e.removeListener)e.addListener(n);else throw Error("addEventListener and attachEvent are unavailable.");return r}function ei(e){if("number"!=typeof e&&e&&!e.da){var t=e.src;if(t&&t[K])J(t.i,e);else{var r=e.type,n=e.proxy;t.removeEventListener?t.removeEventListener(r,n,e.capture):t.detachEvent?t.detachEvent(eo(r),n):t.addListener&&t.removeListener&&t.removeListener(n),(r=ea(t))?(J(r,e),0==r.h&&(r.src=null,t[et]=null)):Z(e)}}}function eo(e){return e in er?er[e]:er[e]="on"+e}function es(e,t){if(e.da)e=!0;else{t=new q(t,this);var r=e.listener,n=e.ha||e.src;e.fa&&ei(e),e=r.call(n,t)}return e}function ea(e){return(e=e[et])instanceof Q?e:null}var el="__closure_events_fn_"+(1e9*Math.random()>>>0);function eu(e){return"function"==typeof e?e:(e[el]||(e[el]=function(t){return e.handleEvent(t)}),e[el])}function ec(){H.call(this),this.i=new Q(this),this.M=this,this.F=null}function eh(e,t){var r,n=e.F;if(n)for(r=[];n;n=n.F)r.push(n);if(e=e.M,n=t.type||t,"string"==typeof t)t=new $(t,e);else if(t instanceof $)t.target=t.target||e;else{var i=t;N(t=new $(n,e),i)}if(i=!0,r)for(var o=r.length-1;0<=o;o--){var s=t.g=r[o];i=ed(s,n,!0,t)&&i}if(i=ed(s=t.g=e,n,!0,t)&&i,i=ed(s,n,!1,t)&&i,r)for(o=0;o<r.length;o++)i=ed(s=t.g=r[o],n,!1,t)&&i}function ed(e,t,r,n){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var s=t[o];if(s&&!s.da&&s.capture==r){var a=s.listener,l=s.ha||s.src;s.fa&&J(e.i,s),i=!1!==a.call(l,n)&&i}}return i&&!n.defaultPrevented}function ef(e,t,r){if("function"==typeof e)r&&(e=b(e,r));else if(e&&"function"==typeof e.handleEvent)e=b(e.handleEvent,e);else throw Error("Invalid listener argument");return 0x7fffffff<Number(t)?-1:p.setTimeout(e,t||0)}x(ec,H),ec.prototype[K]=!0,ec.prototype.removeEventListener=function(e,t,r,n){!function e(t,r,n,i,o){if(Array.isArray(r))for(var s=0;s<r.length;s++)e(t,r[s],n,i,o);else(i=g(i)?!!i.capture:!!i,n=eu(n),t&&t[K])?(t=t.i,(r=String(r).toString())in t.g&&-1<(n=ee
28(s=t.g[r],n,i,o))&&(Z(s[n]),Array.prototype.splice.call(s,n,1),0==s.length&&(delete t.g[r],t.h--))):t&&(t=ea(t))&&(r=t.g[r.toString()],t=-1,r&&(t=ee(r,n,i,o)),(n=-1<t?r[t]:null)&&ei(n))}(this,e,t,r,n)},ec.prototype.N=function(){if(ec.aa.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var r=t.g[e],n=0;n<r.length;n++)Z(r[n]);delete t.g[e],t.h--}}this.F=null},ec.prototype.K=function(e,t,r,n){return this.i.add(String(e),t,!1,r,n)},ec.prototype.L=function(e,t,r,n){return this.i.add(String(e),t,!0,r,n)};class ep extends H{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:function e(t){t.g=ef(()=>{t.g=null,t.i&&(t.i=!1,e(t))},t.l);let r=t.h;t.h=null,t.m.apply(null,r)}(this)}N(){super.N(),this.g&&(p.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function em(e){H.call(this),this.h=e,this.g={}}x(em,H);var eg=[];function ey(e){R(e.g,function(e,t){this.g.hasOwnProperty(t)&&ei(e)},e),e.g={}}em.prototype.N=function(){em.aa.N.call(this),ey(this)},em.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var ev=p.JSON.stringify,eb=p.JSON.parse,ew=class{stringify(e){return p.JSON.stringify(e,void 0)}parse(e){return p.JSON.parse(e,void 0)}};function ex(){}function e_(e){return e.h||(e.h=e.i())}function eE(){}ex.prototype.h=null;var eS={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function eT(){$.call(this,"d")}function ek(){$.call(this,"c")}x(eT,$),x(ek,$);var eA={},eC=null;function eI(){return eC=eC||new ec}function eP(e){$.call(this,eA.La,e)}function eR(e){let t=eI();eh(t,new eP(t))}function eO(e,t){$.call(this,eA.STAT_EVENT,e),this.stat=t}function eM(e){let t=eI();eh(t,new eO(t,e))}function eN(e,t){$.call(this,eA.Ma,e),this.size=t}function eL(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return p.setTimeout(function(){e()},t)}function eD(){this.g=!0}function ej(e,t,r,n){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var r=JSON.parse(t);if(r){for(e=0;e<r.length;e++)if(Array.isArray(r[e])){var n=r[e];if(!(2>n.length)){var i=n[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var s=1;s<i.length;s++)i[s]=""}}}}return ev(r)}catch(e){return t}}(e,r)+(n?" "+n:"")})}eA.La="serverreachability",x(eP,$),eA.STAT_EVENT="statevent",x(eO,$),eA.Ma="timingevent",x(eN,$),eD.prototype.xa=function(){this.g=!1},eD.prototype.info=function(){};var eV={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},eF={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function eU(){}function eB(e,t,r,n){this.j=e,this.i=t,this.l=r,this.R=n||1,this.U=new em(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new ez}function ez(){this.i=null,this.g="",this.h=!1}x(eU,ex),eU.prototype.g=function(){return new XMLHttpRequest},eU.prototype.i=function(){return{}},t=new eU;var eH={},e$={};function eW(e,t,r){e.L=1,e.v=ts(tt(t)),e.m=r,e.P=!0,eq(e,null)}function eq(e,t){e.F=Date.now(),eK(e),e.A=tt(e.v);var r=e.A,n=e.R;Array.isArray(n)||(n=[String(n)]),tb(r.i,"t",n),e.C=0,r=e.j.J,e.h=new ez,e.g=t5(e.j,r?t:null,!e.m),0<e.O&&(e.M=new ep(b(e.Y,e,e.g),e.O)),t=e.U,r=e.g,n=e.ca;var i="readystatechange";Array.isArray(i)||(i&&(eg[0]=i.toString()),i=eg);for(var o=0;o<i.length;o++){var s=function e(t,r,n,i,o){if(i&&i.once)return function e(t,r,n,i,o){if(Array.isArray(r)){for(var s=0;s<r.length;s++)e(t,r[s],n,i,o);return null}return n=eu(n),t&&t[K]?t.L(r,n,g(i)?!!i.capture:!!i,o):en(t,r,n,!0,i,o)}(t,r,n,i,o);if(Array.isArray(r)){for(var s=0;s<r.length;s++)e(t,r[s],n,i,o);return null}return n=eu(n),t&&t[K]?t.K(r,n,g(i)?!!i.capture:!!i,o):en(t,r,n,!1,i,o)}(r,i[o],n||t.handleEvent,!1,t.h||t);if(!s)break;t.g[s.key]=s}t=e.H?O(e.H):{},e.m?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.m,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),eR(),function(e,t,r,n,i,o){e.info(function(){if(e.g){if(o)for(var s="",a=o.split("&"),l=0;l<a.length;l++){var u=a[l].split("=");if(1<u.length){var c=u[0];u=u[1];var h=c.split("_");s=2<=h.length&&"type"==h[1]?s+(c+"=")+u+"&":s+(c+"=redacted&")}}else s=null}else s=o;return"XMLHTTP REQ ("+n+") [attempt "+i+"]: "+t+"\n"+r+"\n"+s})}(e.i,e.u,e.A,e.l,e.R,e.m)}function eG(e){return!!e.g&&"GET"==e.u&&2!=e.L&&e.j.Ca}function eK(e){e.S=Date.now()+e.I,eY(e,e.I)}function eY(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=eL(b(e.ba,e),t)}function eX(e){e.B&&(p.clearTimeout(e.B),e.B=null)}function eZ(e){0==e.j.G||e.J||t0(e.j,e)}function eQ(e){eX(e);var t=e.M;t&&"function"==typeof t.ma&&t.ma(),e.M=null,ey(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.ma())}function eJ(e,t){try{var r=e.j;if(0!=r.G&&(r.g==e||e3(r.h,e))){if(!e.K&&e3(r.h,e)&&3==r.G){try{var n=r.Da.g.parse(t)}catch(e){n=null}if(Array.isArray(n)&&3==n.length){var i=n;
28if(0==i[0]){t:if(!r.u){if(r.g){if(r.g.F+3e3<e.F)tJ(r),tH(r);else break t}tX(r),eM(18)}}else r.za=i[1],0<r.za-r.T&&37500>i[2]&&r.F&&0==r.v&&!r.C&&(r.C=eL(b(r.Za,r),6e3));if(1>=e4(r.h)&&r.ca){try{r.ca()}catch(e){}r.ca=void 0}}else t2(r,11)}else if((e.K||r.g==e)&&tJ(r),!A(t))for(i=r.Da.g.parse(t),t=0;t<i.length;t++){let a=i[t];if(r.T=a[0],a=a[1],2==r.G){if("c"==a[0]){r.K=a[1],r.ia=a[2];let t=a[3];null!=t&&(r.la=t,r.j.info("VER="+r.la));let i=a[4];null!=i&&(r.Aa=i,r.j.info("SVER="+r.Aa));let l=a[5];null!=l&&"number"==typeof l&&0<l&&(n=1.5*l,r.L=n,r.j.info("backChannelRequestTimeoutMs_="+n)),n=r;let u=e.g;if(u){let e=u.g?u.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var o=n.h;o.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(o.j=o.l,o.g=new Set,o.h&&(e5(o,o.h),o.h=null))}if(n.D){let e=u.g?u.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(n.ya=e,to(n.I,n.D,e))}}if(r.G=3,r.l&&r.l.ua(),r.ba&&(r.R=Date.now()-e.F,r.j.info("Handshake RTT: "+r.R+"ms")),(n=r).qa=t3(n,n.J?n.ia:null,n.W),e.K){e6(n.h,e);var s=n.L;s&&(e.I=s),e.B&&(eX(e),eK(e)),n.g=e}else tY(n);0<r.i.length&&tW(r)}else"stop"!=a[0]&&"close"!=a[0]||t2(r,7)}else 3==r.G&&("stop"==a[0]||"close"==a[0]?"stop"==a[0]?t2(r,7):tz(r):"noop"!=a[0]&&r.l&&r.l.ta(a),r.v=0)}}eR(4)}catch(e){}}eB.prototype.ca=function(e){e=e.target;let t=this.M;t&&3==tV(e)?t.j():this.Y(e)},eB.prototype.Y=function(e){try{if(e==this.g)t:{let h=tV(this.g);var t=this.g.Ba();let d=this.g.Z();if(!(3>h)&&(3!=h||this.g&&(this.h.h||this.g.oa()||tF(this.g)))){this.J||4!=h||7==t||(8==t||0>=d?eR(3):eR(2)),eX(this);var r=this.g.Z();this.X=r;r:if(eG(this)){var n=tF(this.g);e="";var i=n.length,o=4==tV(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){eQ(this),eZ(this);var s="";break r}this.h.i=new p.TextDecoder}for(t=0;t<i;t++)this.h.h=!0,e+=this.h.i.decode(n[t],{stream:!(o&&t==i-1)});n.length=0,this.h.g+=e,this.C=0,s=this.h.g}else s=this.g.oa();if(this.o=200==r,function(e,t,r,n,i,o,s){e.info(function(){return"XMLHTTP RESP ("+n+") [ attempt "+i+"]: "+t+"\n"+r+"\n"+o+" "+s})}(this.i,this.u,this.A,this.l,this.R,h,r),this.o){if(this.T&&!this.K){r:{if(this.g){var a,l=this.g;if((a=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!A(a)){var u=a;break r}}u=null}if(r=u)ej(this.i,this.l,r,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,eJ(this,r);else{this.o=!1,this.s=3,eM(12),eQ(this),eZ(this);break t}}if(this.P){let e;for(r=!0;!this.J&&this.C<s.length;)if((e=function(e,t){var r=e.C,n=t.indexOf("\n",r);return -1==n?e$:isNaN(r=Number(t.substring(r,n)))?eH:(n+=1)+r>t.length?e$:(t=t.slice(n,n+r),e.C=n+r,t)}(this,s))==e$){4==h&&(this.s=4,eM(14),r=!1),ej(this.i,this.l,null,"[Incomplete Response]");break}else if(e==eH){this.s=4,eM(15),ej(this.i,this.l,s,"[Invalid Chunk]"),r=!1;break}else ej(this.i,this.l,e,null),eJ(this,e);if(eG(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=h||0!=s.length||this.h.h||(this.s=1,eM(16),r=!1),this.o=this.o&&r,r){if(0<s.length&&!this.W){this.W=!0;var c=this.j;c.g==this&&c.ba&&!c.M&&(c.j.info("Great, no buffering proxy detected. Bytes received: "+s.length),tZ(c),c.M=!0,eM(11))}}else ej(this.i,this.l,s,"[Invalid Chunked Response]"),eQ(this),eZ(this)}else ej(this.i,this.l,s,null),eJ(this,s);4==h&&eQ(this),this.o&&!this.J&&(4==h?t0(this.j,this):(this.o=!1,eK(this)))}else(function(e){let t={};e=(e.g&&2<=tV(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let n=0;n<e.length;n++){if(A(e[n]))continue;var r=function(e){var t=1;e=e.split(":");let r=[];for(;0<t&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r}(e[n]);let i=r[0];if("string"!=typeof(r=r[1]))continue;r=r.trim();let o=t[i]||[];t[i]=o,o.push(r)}!function(e,t){for(let r in e)t.call(void 0,e[r],r,e)}(t,function(e){return e.join(", ")})})(this.g),400==r&&0<s.indexOf("Unknown SID")?(this.s=3,eM(12)):(this.s=0,eM(13)),eQ(this),eZ(this)}}}catch(e){}finally{}},eB.prototype.cancel=function(){this.J=!0,eQ(this)},eB.prototype.ba=function(){this.B=null;let e=Date.now();0<=e-this.S?(function(e,t){e.info(function(){return"TIMEOUT: "+t})}(this.i,this.A),2!=this.L&&(eR(),eM(17)),eQ(this),this.s=2,eZ(this)):eY(this,this.S-e)};var e0=class{constructor(e,t){this.g=e,this.map=t}};function e1(e){this.l=e||10,e=p.PerformanceNavigationTiming?0<(e=p.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(p.chrome&&p.chrome.loadTimes&&p.chrome.loadTimes()&&p.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function e2(e){return!!e.h||!!e.g&&e.g.size>=e.j}function e4(e){return e.h?1:e.g?e.g.size:0}function e3(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function e5(e,t){e.g?e.g.add(t):e.h=t}function e6(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function e8(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){let t=e.i;for(let r of e.g.values())t=t.concat(r.D);return t}return _(e.i)}function e7(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(m(e)||"string"==typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var r=function(e){if(e.na&&"function"==typeof e.na)return e.na();if(!e.V||"function"!=typeof e.V){if("undefined"!=typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!=typeof Set&&e instanceof Set)){if(m(e)||"string"==typeof e){var t=[];e=e.length;for(var r=0;r<e;r++)t.push(r);return t}for(let n in t=[],r=0,e)t[r++]=n;return t}}}(e),n=function(e){if(e.V&&"function"==typeof e.V)return e.V();if("undefined"!=typeof Map&&e instanceof Map||"undefined"!=typeof Set&&e instanceof Set)return Array.from(e.values());if("string"==typeof e)return e.split("");
28if(m(e)){for(var t=[],r=e.length,n=0;n<r;n++)t.push(e[n]);return t}for(n in t=[],r=0,e)t[r++]=e[n];return t}(e),i=n.length,o=0;o<i;o++)t.call(void 0,n[o],r&&r[o],e)}e1.prototype.cancel=function(){if(this.i=e8(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(let e of this.g.values())e.cancel();this.g.clear()}};var e9=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function te(e){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,e instanceof te){this.h=e.h,tr(this,e.j),this.o=e.o,this.g=e.g,tn(this,e.s),this.l=e.l;var t=e.i,r=new tm;r.i=t.i,t.g&&(r.g=new Map(t.g),r.h=t.h),ti(this,r),this.m=e.m}else e&&(t=String(e).match(e9))?(this.h=!1,tr(this,t[1]||"",!0),this.o=ta(t[2]||""),this.g=ta(t[3]||"",!0),tn(this,t[4]),this.l=ta(t[5]||"",!0),ti(this,t[6]||"",!0),this.m=ta(t[7]||"")):(this.h=!1,this.i=new tm(null,this.h))}function tt(e){return new te(e)}function tr(e,t,r){e.j=r?ta(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function tn(e,t){if(t){if(isNaN(t=Number(t))||0>t)throw Error("Bad port number "+t);e.s=t}else e.s=null}function ti(e,t,r){var n,i;t instanceof tm?(e.i=t,n=e.i,(i=e.h)&&!n.j&&(tg(n),n.i=null,n.g.forEach(function(e,t){var r=t.toLowerCase();t!=r&&(ty(this,t),tb(this,r,e))},n)),n.j=i):(r||(t=tl(t,tf)),e.i=new tm(t,e.h))}function to(e,t,r){e.i.set(t,r)}function ts(e){return to(e,"zx",Math.floor(0x80000000*Math.random()).toString(36)+Math.abs(Math.floor(0x80000000*Math.random())^Date.now()).toString(36)),e}function ta(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function tl(e,t,r){return"string"==typeof e?(e=encodeURI(e).replace(t,tu),r&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function tu(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}te.prototype.toString=function(){var e=[],t=this.j;t&&e.push(tl(t,tc,!0),":");var r=this.g;return(r||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(tl(t,tc,!0),"@"),e.push(encodeURIComponent(String(r)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(r=this.s)&&e.push(":",String(r))),(r=this.l)&&(this.g&&"/"!=r.charAt(0)&&e.push("/"),e.push(tl(r,"/"==r.charAt(0)?td:th,!0))),(r=this.i.toString())&&e.push("?",r),(r=this.m)&&e.push("#",tl(r,tp)),e.join("")};var tc=/[#\/\?@]/g,th=/[#\?:]/g,td=/[#\?]/g,tf=/[#\?@]/g,tp=/#/g;function tm(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function tg(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var r=0;r<e.length;r++){var n=e[r].indexOf("="),i=null;if(0<=n){var o=e[r].substring(0,n);i=e[r].substring(n+1)}else o=e[r];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,function(t,r){e.add(decodeURIComponent(t.replace(/\+/g," ")),r)}))}function ty(e,t){tg(e),t=tw(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function tv(e,t){return tg(e),t=tw(e,t),e.g.has(t)}function tb(e,t,r){ty(e,t),0<r.length&&(e.i=null,e.g.set(tw(e,t),_(r)),e.h+=r.length)}function tw(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function tx(e,t,r,n,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),n(r)}catch(e){}}function t_(){this.g=new ew}function tE(e){this.l=e.Ub||null,this.j=e.eb||!1}function tS(e,t){ec.call(this),this.D=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function tT(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}function tk(e){e.readyState=4,e.l=null,e.j=null,e.v=null,tA(e)}function tA(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function tC(e){let t="";return R(e,function(e,r){t+=r,t+=":",t+=e,t+="\r\n"}),t}function tI(e,t,r){t:{for(n in r){var n=!1;break t}n=!0}n||(r=tC(r),"string"==typeof e?null!=r&&encodeURIComponent(String(r)):to(e,t,r))}function tP(e){ec.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(r=tm.prototype).add=function(e,t){tg(this),this.i=null,e=tw(this,e);var r=this.g.get(e);return r||this.g.set(e,r=[]),r.push(t),this.h+=1,this},r.forEach=function(e,t){tg(this),this.g.forEach(function(r,n){r.forEach(function(r){e.call(t,r,n,this)},this)},this)},r.na=function(){tg(this);let e=Array.from(this.g.values()),t=Array.from(this.g.keys()),r=[];for(let n=0;n<t.length;n++){let i=e[n];for(let e=0;e<i.length;e++)r.push(t[n])}return r},r.V=function(e){tg(this);let t=[];if("string"==typeof e)tv(this,e)&&(t=t.concat(this.g.get(tw(this,e))));else{e=Array.from(this.g.values());for(let r=0;r<e.length;r++)t=t.concat(e[r])}return t},r.set=function(e,t){return tg(this),this.i=null,tv(this,e=tw(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},r.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},r.toString=function(){if(this.i)return this.i;if(!this.g)return"";let e=[],t=Array.from(this.g.keys());for(var r=0;r<t.length;r++){var n=t[r];let o=encodeURIComponent(String(n)),s=this.V(n);for(n=0;n<s.length;n++){var i=o;""!==s[n]&&(i+="="+encodeURIComponent(String(s[n]))),e.push(i)}}return this.i=e.join("&")},x(tE,ex),tE.prototype.g=function(){return new tS(this.l,this.j)},tE.prototype.i=(e={},function(){return e}),x(tS,ec),(r=tS.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=e,this.A=t,this.readyState=1,tA(this)},r.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;let t={headers:this.u,method:this.B,credentials:this.m,cache:void 0};
28e&&(t.body=e),(this.D||p).fetch(new Request(this.A,t)).then(this.Sa.bind(this),this.ga.bind(this))},r.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,tk(this)),this.readyState=0},r.Sa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,tA(this)),this.g&&(this.readyState=3,tA(this),this.g))){if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(void 0!==p.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;tT(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))}},r.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.v.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?tk(this):tA(this),3==this.readyState&&tT(this)}},r.Ra=function(e){this.g&&(this.response=this.responseText=e,tk(this))},r.Qa=function(e){this.g&&(this.response=e,tk(this))},r.ga=function(){this.g&&tk(this)},r.setRequestHeader=function(e,t){this.u.append(e,t)},r.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},r.getAllResponseHeaders=function(){if(!this.h)return"";let e=[],t=this.h.entries();for(var r=t.next();!r.done;)e.push((r=r.value)[0]+": "+r[1]),r=t.next();return e.join("\r\n")},Object.defineProperty(tS.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),x(tP,ec);var tR=/^https?$/i,tO=["POST","PUT"];function tM(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.m=5,tN(e),tD(e)}function tN(e){e.A||(e.A=!0,eh(e,"complete"),eh(e,"error"))}function tL(e){if(e.h&&void 0!==f&&(!e.v[1]||4!=tV(e)||2!=e.Z())){if(e.u&&4==tV(e))ef(e.Ea,0,e);else if(eh(e,"readystatechange"),4==tV(e)){e.h=!1;try{let s=e.Z();switch(s){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t,r,n=!0;break;default:n=!1}if(!(t=n)){if(r=0===s){var i=String(e.D).match(e9)[1]||null;!i&&p.self&&p.self.location&&(i=p.self.location.protocol.slice(0,-1)),r=!tR.test(i?i.toLowerCase():"")}t=r}if(t)eh(e,"complete"),eh(e,"success");else{e.m=6;try{var o=2<tV(e)?e.g.statusText:""}catch(e){o=""}e.l=o+" ["+e.Z()+"]",tN(e)}}finally{tD(e)}}}}function tD(e,t){if(e.g){tj(e);let r=e.g,n=e.v[0]?()=>{}:null;e.g=null,e.v=null,t||eh(e,"ready");try{r.onreadystatechange=n}catch(e){}}}function tj(e){e.I&&(p.clearTimeout(e.I),e.I=null)}function tV(e){return e.g?e.g.readyState:0}function tF(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.H){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(e){return null}}function tU(e,t,r){return r&&r.internalChannelParams&&r.internalChannelParams[e]||t}function tB(e){this.Aa=0,this.i=[],this.j=new eD,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=tU("failFast",!1,e),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=tU("baseRetryDelayMs",5e3,e),this.cb=tU("retryDelaySeedMs",1e4,e),this.Wa=tU("forwardChannelMaxRetries",2,e),this.wa=tU("forwardChannelRequestTimeoutMs",2e4,e),this.pa=e&&e.xmlHttpFactory||void 0,this.Xa=e&&e.Tb||void 0,this.Ca=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.h=new e1(e&&e.concurrentRequestLimit),this.Da=new t_,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=e&&e.Rb||!1,e&&e.xa&&this.j.xa(),e&&e.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&e&&e.detectBufferingProxy||!1,this.ja=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ja=e.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function tz(e){if(t$(e),3==e.G){var t=e.U++,r=tt(e.I);if(to(r,"SID",e.K),to(r,"RID",t),to(r,"TYPE","terminate"),tG(e,r),(t=new eB(e,e.j,t)).L=2,t.v=ts(tt(r)),r=!1,p.navigator&&p.navigator.sendBeacon)try{r=p.navigator.sendBeacon(t.v.toString(),"")}catch(e){}!r&&p.Image&&((new Image).src=t.v,r=!0),r||(t.g=t5(t.j,null),t.g.ea(t.v)),t.F=Date.now(),eK(t)}t4(e)}function tH(e){e.g&&(tZ(e),e.g.cancel(),e.g=null)}function t$(e){tH(e),e.u&&(p.clearTimeout(e.u),e.u=null),tJ(e),e.h.cancel(),e.s&&("number"==typeof e.s&&p.
28clearTimeout(e.s),e.s=null)}function tW(e){if(!e2(e.h)&&!e.s){e.s=!0;var t=e.Ga;V||B(),F||(V(),F=!0),U.add(t,e),e.B=0}}function tq(e,t){var r;r=t?t.l:e.U++;let n=tt(e.I);to(n,"SID",e.K),to(n,"RID",r),to(n,"AID",e.T),tG(e,n),e.m&&e.o&&tI(n,e.m,e.o),r=new eB(e,e.j,r,e.B+1),null===e.m&&(r.H=e.o),t&&(e.i=t.D.concat(e.i)),t=tK(e,r,1e3),r.I=Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random()),e5(e.h,r),eW(r,n,t)}function tG(e,t){e.H&&R(e.H,function(e,r){to(t,r,e)}),e.l&&e7({},function(e,r){to(t,r,e)})}function tK(e,t,r){r=Math.min(e.i.length,r);var n=e.l?b(e.l.Na,e.l,e):null;t:{var i=e.i;let t=-1;for(;;){let e=["count="+r];-1==t?0<r?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let o=!0;for(let s=0;s<r;s++){let r=i[s].g,a=i[s].map;if(0>(r-=t))t=Math.max(0,i[s].g-100),o=!1;else try{!function(e,t,r){let n=r||"";try{e7(e,function(e,r){let i=e;g(e)&&(i=ev(e)),t.push(n+r+"="+encodeURIComponent(i))})}catch(e){throw t.push(n+"type="+encodeURIComponent("_badmap")),e}}(a,e,"req"+r+"_")}catch(e){n&&n(a)}}if(o){n=e.join("&");break t}}}return e=e.i.splice(0,r),t.D=e,n}function tY(e){if(!e.g&&!e.u){e.Y=1;var t=e.Fa;V||B(),F||(V(),F=!0),U.add(t,e),e.v=0}}function tX(e){return!e.g&&!e.u&&!(3<=e.v)&&(e.Y++,e.u=eL(b(e.Fa,e),t1(e,e.v)),e.v++,!0)}function tZ(e){null!=e.A&&(p.clearTimeout(e.A),e.A=null)}function tQ(e){e.g=new eB(e,e.j,"rpc",e.Y),null===e.m&&(e.g.H=e.o),e.g.O=0;var t=tt(e.qa);to(t,"RID","rpc"),to(t,"SID",e.K),to(t,"AID",e.T),to(t,"CI",e.F?"0":"1"),!e.F&&e.ja&&to(t,"TO",e.ja),to(t,"TYPE","xmlhttp"),tG(e,t),e.m&&e.o&&tI(t,e.m,e.o),e.L&&(e.g.I=e.L);var r=e.g;e=e.ia,r.L=1,r.v=ts(tt(t)),r.m=null,r.P=!0,eq(r,e)}function tJ(e){null!=e.C&&(p.clearTimeout(e.C),e.C=null)}function t0(e,t){var r=null;if(e.g==t){tJ(e),tZ(e),e.g=null;var n=2}else{if(!e3(e.h,t))return;r=t.D,e6(e.h,t),n=1}if(0!=e.G){if(t.o){if(1==n){r=t.m?t.m.length:0,t=Date.now()-t.F;var i,o=e.B;eh(n=eI(),new eN(n,r)),tW(e)}else tY(e)}else if(3==(o=t.s)||0==o&&0<t.X||!(1==n&&(i=t,!(e4(e.h)>=e.h.j-(e.s?1:0))&&(e.s?(e.i=i.D.concat(e.i),!0):1!=e.G&&2!=e.G&&!(e.B>=(e.Va?0:e.Wa))&&(e.s=eL(b(e.Ga,e,i),t1(e,e.B)),e.B++,!0)))||2==n&&tX(e)))switch(r&&0<r.length&&((t=e.h).i=t.i.concat(r)),o){case 1:t2(e,5);break;case 4:t2(e,10);break;case 3:t2(e,6);break;default:t2(e,2)}}}function t1(e,t){let r=e.Ta+Math.floor(Math.random()*e.cb);return e.isActive()||(r*=2),r*t}function t2(e,t){if(e.j.info("Error code "+t),2==t){var r=b(e.fb,e),n=e.Xa;let t=!n;n=new te(n||"//www.google.com/images/cleardot.gif"),p.location&&"http"==p.location.protocol||tr(n,"https"),ts(n),t?function(e,t){let r=new eD;if(p.Image){let n=new Image;n.onload=w(tx,r,"TestLoadImage: loaded",!0,t,n),n.onerror=w(tx,r,"TestLoadImage: error",!1,t,n),n.onabort=w(tx,r,"TestLoadImage: abort",!1,t,n),n.ontimeout=w(tx,r,"TestLoadImage: timeout",!1,t,n),p.setTimeout(function(){n.ontimeout&&n.ontimeout()},1e4),n.src=e}else t(!1)}(n.toString(),r):function(e,t){let r=new eD,n=new AbortController,i=setTimeout(()=>{n.abort(),tx(r,"TestPingServer: timeout",!1,t)},1e4);fetch(e,{signal:n.signal}).then(e=>{clearTimeout(i),e.ok?tx(r,"TestPingServer: ok",!0,t):tx(r,"TestPingServer: server error",!1,t)}).catch(()=>{clearTimeout(i),tx(r,"TestPingServer: error",!1,t)})}(n.toString(),r)}else eM(2);e.G=0,e.l&&e.l.sa(t),t4(e),t$(e)}function t4(e){if(e.G=0,e.ka=[],e.l){let t=e8(e.h);(0!=t.length||0!=e.i.length)&&(T(e.ka,t),T(e.ka,e.i),e.h.i.length=0,_(e.i),e.i.length=0),e.l.ra()}}function t3(e,t,r){var n=r instanceof te?tt(r):new te(r);if(""!=n.g)t&&(n.g=t+"."+n.g),tn(n,n.s);else{var i=p.location;n=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;var o=new te(null);n&&tr(o,n),t&&(o.g=t),i&&tn(o,i),r&&(o.l=r),n=o}return r=e.D,t=e.ya,r&&t&&to(n,r,t),to(n,"VER",e.la),tG(e,n),n}function t5(e,t,r){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new tP(e.Ca&&!e.pa?new tE({eb:r}):e.pa)).Ha(e.J),t}function t6(){}function t8(){}function t7(e,t){ec.call(this),this.g=new tB(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.va&&(e?e["X-WebChannel-Client-Profile"]=t.va:e={"X-WebChannel-Client-Profile":t.va}),this.g.S=e,(e=t&&t.Sb)&&!A(e)&&(this.g.m=e),this.v=t&&t.supportsCrossDomainXhr||!1,this.u=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!A(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&t in(e=this.h)&&delete e[t]),this.j=new rt(this)}function t9(e){eT.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){t:{for(let r in t){e=r;break t}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function re(){ek.call(this),this.status=1}function rt(e){this.g=e}(r=tP.prototype).Ha=function(e){this.J=e},r.ea=function(e,r,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);r=r?r.toUpperCase():"GET",this.D=e,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():t.g(),this.v=this.o?e_(this.o):e_(t),this.g.onreadystatechange=b(this.Ea,this);try{this.B=!0,this.g.open(r,String(e),!0),this.B=!1}catch(e){tM(this,e);return}if(e=n||"",n=new Map(this.headers),i){if(Object.getPrototypeOf(i)===Object.prototype)for(var o in i)n.set(o,i[o]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let e of i.keys())n.set(e,i.get(e));else throw Error("Unknown input type for opt_headers: "+String(i))}for(let[t,s]of(i=Array.from(n.keys()).find(e=>"content-type"==e.toLowerCase()),o=p.FormData&&e instanceof p.FormData,!(0<=Array.prototype.indexOf.call(tO,r,void 0))||i||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n))this.g.setRequestHeader(t,s);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{tj(this),this.u=!0,this.g.send(e),this.u=!1}catch(e){tM(this,e)}},r.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=e||7,eh(this,"complete"),eh(this,"abort"),tD(this))},r.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),tD(this,!0)),tP.aa.N.call(this)},r.Ea=function(){this.s||(this.B||this.u||this.j?tL(this):this.bb())},r.bb=function(){tL(this)},r.isActive=function(){return!!this.g},r.Z=function(){try{return 2<tV(this)?this.g.status:-1}catch(e){return -1}},r.oa=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},r.Oa=function(e){if(this.g){var t=this.g.responseText;
28return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),eb(t)}},r.Ba=function(){return this.m},r.Ka=function(){return"string"==typeof this.l?this.l:String(this.l)},(r=tB.prototype).la=8,r.G=1,r.connect=function(e,t,r,n){eM(0),this.W=e,this.H=t||{},r&&void 0!==n&&(this.H.OSID=r,this.H.OAID=n),this.F=this.X,this.I=t3(this,null,this.W),tW(this)},r.Ga=function(e){if(this.s){if(this.s=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;let i=new eB(this,this.j,e),o=this.o;if(this.S&&(o?N(o=O(o),this.S):o=this.S),null!==this.m||this.O||(i.H=o,o=null),this.P)t:{for(var t=0,r=0;r<this.i.length;r++){r:{var n=this.i[r];if("__data__"in n.map&&"string"==typeof(n=n.map.__data__)){n=n.length;break r}n=void 0}if(void 0===n)break;if(4096<(t+=n)){t=r;break t}if(4096===t||r===this.i.length-1){t=r+1;break t}}t=1e3}else t=1e3;t=tK(this,i,t),to(r=tt(this.I),"RID",e),to(r,"CVER",22),this.D&&to(r,"X-HTTP-Session-Id",this.D),tG(this,r),o&&(this.O?t="headers="+encodeURIComponent(String(tC(o)))+"&"+t:this.m&&tI(r,this.m,o)),e5(this.h,i),this.Ua&&to(r,"TYPE","init"),this.P?(to(r,"$req",t),to(r,"SID","null"),i.T=!0,eW(i,r,null)):eW(i,r,t),this.G=2}}else 3==this.G&&(e?tq(this,e):0==this.i.length||e2(this.h)||tq(this))}},r.Fa=function(){if(this.u=null,tQ(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var e=2*this.R;this.j.info("BP detection timer enabled: "+e),this.A=eL(b(this.ab,this),e)}},r.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,eM(10),tH(this),tQ(this))},r.Za=function(){null!=this.C&&(this.C=null,tH(this),tX(this),eM(19))},r.fb=function(e){e?(this.j.info("Successfully pinged google.com"),eM(2)):(this.j.info("Failed to ping google.com"),eM(1))},r.isActive=function(){return!!this.l&&this.l.isActive(this)},(r=t6.prototype).ua=function(){},r.ta=function(){},r.sa=function(){},r.ra=function(){},r.isActive=function(){return!0},r.Na=function(){},t8.prototype.g=function(e,t){return new t7(e,t)},x(t7,ec),t7.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},t7.prototype.close=function(){tz(this.g)},t7.prototype.o=function(e){var t=this.g;if("string"==typeof e){var r={};r.__data__=e,e=r}else this.u&&((r={}).__data__=ev(e),e=r);t.i.push(new e0(t.Ya++,e)),3==t.G&&tW(t)},t7.prototype.N=function(){this.g.l=null,delete this.j,tz(this.g),delete this.g,t7.aa.N.call(this)},x(t9,eT),x(re,ek),x(rt,t6),rt.prototype.ua=function(){eh(this.g,"a")},rt.prototype.ta=function(e){eh(this.g,new t9(e))},rt.prototype.sa=function(e){eh(this.g,new re)},rt.prototype.ra=function(){eh(this.g,"b")},t8.prototype.createWebChannel=t8.prototype.g,t7.prototype.send=t7.prototype.o,t7.prototype.open=t7.prototype.m,t7.prototype.close=t7.prototype.close,d=S.createWebChannelTransport=function(){return new t8},h=S.getStatEventTarget=function(){return eI()},c=S.Event=eA,u=S.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},eV.NO_ERROR=0,eV.TIMEOUT=8,eV.HTTP_ERROR=6,l=S.ErrorCode=eV,eF.COMPLETE="complete",a=S.EventType=eF,eE.EventType=eS,eS.OPEN="a",eS.CLOSE="b",eS.ERROR="c",eS.MESSAGE="d",ec.prototype.listen=ec.prototype.K,s=S.WebChannel=eE,S.FetchXmlHttpFactory=tE,tP.prototype.listenOnce=tP.prototype.L,tP.prototype.getLastError=tP.prototype.Ka,tP.prototype.getLastErrorCode=tP.prototype.Ba,tP.prototype.getStatus=tP.prototype.Z,tP.prototype.getResponseJson=tP.prototype.Oa,tP.prototype.getResponseText=tP.prototype.oa,tP.prototype.send=tP.prototype.ea,tP.prototype.setWithCredentials=tP.prototype.Ha,o=S.XhrIo=tP}).apply(void 0!==E?E:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var T=r(77836),k=r(2928).Buffer;let A="@firebase/firestore",C="4.7.9";class I{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}I.UNAUTHENTICATED=new I(null),I.GOOGLE_CREDENTIALS=new I("google-credentials-uid"),I.FIRST_PARTY=new I("first-party-uid"),I.MOCK_USER=new I("mock-user");let P="11.4.0",R=new b.Vy("@firebase/firestore");function O(){return R.logLevel}function M(e,...t){if(R.logLevel<=b.$b.DEBUG){let r=t.map(D);R.debug(`Firestore (${P}): ${e}`,...r)}}function N(e,...t){if(R.logLevel<=b.$b.ERROR){let r=t.map(D);R.error(`Firestore (${P}): ${e}`,...r)}}function L(e,...t){if(R.logLevel<=b.$b.WARN){let r=t.map(D);R.warn(`Firestore (${P}): ${e}`,...r)}}function D(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(t){return e}}function j(e="Unexpected state"){let t=`FIRESTORE (${P}) INTERNAL ASSERTION FAILED: `+e;throw N(t),Error(t)}let V={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
28ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class F extends w.g{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class U{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class B{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class z{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(I.UNAUTHENTICATED))}shutdown(){}}class H{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class ${constructor(e){this.t=e,this.currentUser=I.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){void 0===this.o||j();let r=this.i,n=e=>this.i!==r?(r=this.i,t(e)):Promise.resolve(),i=new U;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new U,e.enqueueRetryable(()=>n(this.currentUser))};let o=()=>{let t=i;e.enqueueRetryable(async()=>{await t.promise,await n(this.currentUser)})},s=e=>{M("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.o&&(this.auth.addAuthTokenListener(this.o),o())};this.t.onInit(e=>s(e)),setTimeout(()=>{if(!this.auth){let e=this.t.getImmediate({optional:!0});e?s(e):(M("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new U)}},0),o()}getToken(){let e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(t=>this.i!==e?(M("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?("string"==typeof t.accessToken||j(),new B(t.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){let e=this.auth&&this.auth.getUid();return null===e||"string"==typeof e||j(),new I(e)}}class W{constructor(e,t,r){this.l=e,this.h=t,this.P=r,this.type="FirstParty",this.user=I.FIRST_PARTY,this.T=new Map}I(){return this.P?this.P():null}get headers(){this.T.set("X-Goog-AuthUser",this.l);let e=this.I();return e&&this.T.set("Authorization",e),this.h&&this.T.set("X-Goog-Iam-Authorization-Token",this.h),this.T}}class q{constructor(e,t,r){this.l=e,this.h=t,this.P=r}getToken(){return Promise.resolve(new W(this.l,this.h,this.P))}start(e,t){e.enqueueRetryable(()=>t(I.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class G{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class K{constructor(e,t){this.A=t,this.forceRefresh=!1,this.appCheck=null,this.R=null,this.V=null,(0,y.xZ)(e)&&e.settings.appCheckToken&&(this.V=e.settings.appCheckToken)}start(e,t){void 0===this.o||j();let r=e=>{null!=e.error&&M("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);let r=e.token!==this.R;return this.R=e.token,M("FirebaseAppCheckTokenProvider",`Received ${r?"new":"existing"} token.`),r?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable(()=>r(t))};let n=e=>{M("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.o&&this.appCheck.addTokenListener(this.o)};this.A.onInit(e=>n(e)),setTimeout(()=>{if(!this.appCheck){let e=this.A.getImmediate({optional:!0});e?n(e):M("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.V)return Promise.resolve(new G(this.V));let e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(e=>e?("string"==typeof e.token||j(),this.R=e.token,new G(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}class Y{static newId(){let e=62*Math.floor(256/62),t="";for(;t.length<20;){let r=function(e){let t="undefined"!=typeof self&&(self.crypto||self.msCrypto),r=new 
28Uint8Array(40);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(r);else for(let e=0;e<40;e++)r[e]=Math.floor(256*Math.random());return r}(0);for(let n=0;n<r.length;++n)t.length<20&&r[n]<e&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(r[n]%62))}return t}}function X(e,t){return e<t?-1:e>t?1:0}function Z(e,t,r){return e.length===t.length&&e.every((e,n)=>r(e,t[n]))}class Q{static now(){return Q.fromMillis(Date.now())}static fromDate(e){return Q.fromMillis(e.getTime())}static fromMillis(e){let t=Math.floor(e/1e3),r=Math.floor((e-1e3*t)*1e6);return new Q(t,r)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0||t>=1e9)throw new F(V.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-0xe7791f700||e>=0x3afff44180)throw new F(V.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?X(this.nanoseconds,e.nanoseconds):X(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -0xe7791f700).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class J{static fromTimestamp(e){return new J(e)}static min(){return new J(new Q(0,0))}static max(){return new J(new Q(0x3afff4417f,0x3b9ac9ff))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}let ee="__name__";class et{constructor(e,t,r){void 0===t?t=0:t>e.length&&j(),void 0===r?r=e.length-t:r>e.length-t&&j(),this.segments=e,this.offset=t,this.len=r}get length(){return this.len}isEqual(e){return 0===et.comparator(this,e)}child(e){let t=this.segments.slice(this.offset,this.limit());return e instanceof et?e.forEach(e=>{t.push(e)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,r=this.limit();t<r;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let r=et.compareSegments(e.get(n),t.get(n));if(0!==r)return r}return Math.sign(e.length-t.length)}static compareSegments(e,t){let r=et.isNumericId(e),n=et.isNumericId(t);return r&&!n?-1:!r&&n?1:r&&n?et.extractNumericId(e).compare(et.extractNumericId(t)):e<t?-1:e>t?1:0}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return n.fromString(e.substring(4,e.length-2))}}class er extends et{construct(e,t,r){return new er(e,t,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){let t=[];for(let r of e){if(r.indexOf("//")>=0)throw new F(V.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);t.push(...r.split("/").filter(e=>e.length>0))}return new er(t)}static emptyPath(){return new er([])}}let en=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class ei extends et{construct(e,t,r){return new ei(e,t,r)}static isValidIdentifier(e){return en.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),ei.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===ee}static keyField(){return new ei([ee])}static fromServerFormat(e){let t=[],r="",n=0,i=()=>
28{if(0===r.length)throw new F(V.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(r),r=""},o=!1;for(;n<e.length;){let t=e[n];if("\\"===t){if(n+1===e.length)throw new F(V.INVALID_ARGUMENT,"Path has trailing escape character: "+e);let t=e[n+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new F(V.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=t,n+=2}else"`"===t?o=!o:"."!==t||o?r+=t:i(),n++}if(i(),o)throw new F(V.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new ei(t)}static emptyPath(){return new ei([])}}class eo{constructor(e){this.path=e}static fromPath(e){return new eo(er.fromString(e))}static fromName(e){return new eo(er.fromString(e).popFirst(5))}static empty(){return new eo(er.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===er.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return er.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new eo(new er(e.slice()))}}class es{constructor(e,t,r,n){this.indexId=e,this.collectionGroup=t,this.fields=r,this.indexState=n}}function ea(e){return e.fields.find(e=>2===e.kind)}function el(e){return e.fields.filter(e=>2!==e.kind)}es.UNKNOWN_ID=-1;class eu{constructor(e,t){this.fieldPath=e,this.kind=t}}class ec{constructor(e,t){this.sequenceNumber=e,this.offset=t}static empty(){return new ec(0,ef.min())}}function eh(e,t){let r=e.toTimestamp().seconds,n=e.toTimestamp().nanoseconds+1;return new ef(J.fromTimestamp(1e9===n?new Q(r+1,0):new Q(r,n)),eo.empty(),t)}function ed(e){return new ef(e.readTime,e.key,-1)}class ef{constructor(e,t,r){this.readTime=e,this.documentKey=t,this.largestBatchId=r}static min(){return new ef(J.min(),eo.empty(),-1)}static max(){return new ef(J.max(),eo.empty(),-1)}}function ep(e,t){let r=e.readTime.compareTo(t.readTime);return 0!==r?r:0!==(r=eo.comparator(e.documentKey,t.documentKey))?r:X(e.largestBatchId,t.largestBatchId)}let em="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class eg{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}async function ey(e){if(e.code!==V.FAILED_PRECONDITION||e.message!==em)throw e;M("LocalStore","Unexpectedly lost primary lease")}class ev{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&j(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new ev((r,n)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(r,n)},this.catchCallback=e=>{this.wrapFailure(t,e).next(r,n)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{let t=e();return t instanceof ev?t:ev.resolve(t)}catch(e){return ev.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):ev.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):ev.reject(t)}static resolve(e){return new ev((t,r)=>{t(e)})}static reject(e){return new ev((t,r)=>{r(e)})}static waitFor(e){return new ev((t,r)=>{let n=0,i=0,o=!1;e.forEach(e=>{++n,e.next(()=>{++i,o&&i===n&&t()},e=>r(e))}),o=!0,i===n&&t()})}static or(e){let t=ev.resolve(!1);for(let r of e)t=t.next(e=>e?ev.resolve(e):r());return t}static forEach(e,t){let r=[];return e.forEach((e,n)=>{r.push(t.call(this,e,n))}),this.waitFor(r)}static mapArray(e,t){return new ev((r,n)=>{let i=e.length,o=Array(i),s=0;for(let a=0;a<i;a++){let l=a;t(e[l]).next(e=>{o[l]=e,++s===i&&r(o)},e=>n(e))}})}static doWhile(e,t){return new ev((r,n)=>{let i=()=>{!0===e()?t().next(()=>{i()},n):r()};i()})}}let eb="SimpleDb";class ew{static open(e,t,r,n){try{return new ew(t,e.transaction(n,r))}catch(e){throw new eS(t,e)}}constructor(e,t){this.action=e,this.transaction=t,this.aborted=!1,this.m=new U,this.transaction.oncomplete=()=>{this.m.resolve()},this.transaction.onabort=()=>{t.error?this.m.reject(new eS(e,t.error)):this.m.resolve()},this.transaction.onerror=t=>{let r=eI(t.target.error);this.m.reject(new eS(e,r))}}get p(){return this.m.promise}abort(e){e&&this.m.reject(e),this.aborted||(M(eb,"Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}S(){let e=this.transaction;this.aborted||"function"!=typeof e.commit||e.commit()}store(e){return new ek(this.transaction.objectStore(e))}}class ex{static delete(e){return M(eb,"Removing database:",e),eA(window.indexedDB.deleteDatabase(e)).toPromise()}static D(){if(!(0,w.zW)())return!1;if(ex.v())return!0;let e=(0,w.ZQ)(),t=ex.C(e),r=e_(e);return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||0<t&&t<10||0<r&&r<4.5)}static v(){var e;return void 0!==T&&"YES"===(null===(e=T.__PRIVATE_env)||void 0===e?void 0:e.F)}static M(e,t){return e.store(t)}static C(e){let t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i);return Number(t?t[1].split("_").slice(0,2).join("."):"-1")}constructor(e,t,r){this.name=e,this.version=t,this.O=r,12.2===ex.C((0,w.ZQ)())&&N("Firestore persistence suffers from a bug in 
28iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}async N(e){return this.db||(M(eb,"Opening database:",this.name),this.db=await new Promise((t,r)=>{let n=indexedDB.open(this.name,this.version);n.onsuccess=e=>{t(e.target.result)},n.onblocked=()=>{r(new eS(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},n.onerror=t=>{let n=t.target.error;"VersionError"===n.name?r(new F(V.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):"InvalidStateError"===n.name?r(new F(V.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+n)):r(new eS(e,n))},n.onupgradeneeded=e=>{M(eb,'Database "'+this.name+'" requires upgrade from version:',e.oldVersion);let t=e.target.result;this.O.B(t,n.transaction,e.oldVersion,this.version).next(()=>{M(eb,"Database upgrade to version "+this.version+" complete")})}})),this.L&&(this.db.onversionchange=e=>this.L(e)),this.db}k(e){this.L=e,this.db&&(this.db.onversionchange=t=>e(t))}async runTransaction(e,t,r,n){let i="readonly"===t,o=0;for(;;){++o;try{this.db=await this.N(e);let t=ew.open(this.db,e,i?"readonly":"readwrite",r),o=n(t).next(e=>(t.S(),e)).catch(e=>(t.abort(e),ev.reject(e))).toPromise();return o.catch(()=>{}),await t.p,o}catch(t){let e="FirebaseError"!==t.name&&o<3;if(M(eb,"Transaction failed with error:",t.message,"Retrying:",e),this.close(),!e)return Promise.reject(t)}}}close(){this.db&&this.db.close(),this.db=void 0}}function e_(e){let t=e.match(/Android ([\d.]+)/i);return Number(t?t[1].split(".").slice(0,2).join("."):"-1")}class eE{constructor(e){this.q=e,this.$=!1,this.K=null}get isDone(){return this.$}get U(){return this.K}set cursor(e){this.q=e}done(){this.$=!0}W(e){this.K=e}delete(){return eA(this.q.delete())}}class eS extends F{constructor(e,t){super(V.UNAVAILABLE,`IndexedDB transaction '${e}' failed: ${t}`),this.name="IndexedDbTransactionError"}}function eT(e){return"IndexedDbTransactionError"===e.name}class ek{constructor(e){this.store=e}put(e,t){let r;return void 0!==t?(M(eb,"PUT",this.store.name,e,t),r=this.store.put(t,e)):(M(eb,"PUT",this.store.name,"<auto-key>",e),r=this.store.put(e)),eA(r)}add(e){return M(eb,"ADD",this.store.name,e,e),eA(this.store.add(e))}get(e){return eA(this.store.get(e)).next(t=>(void 0===t&&(t=null),M(eb,"GET",this.store.name,e,t),t))}delete(e){return M(eb,"DELETE",this.store.name,e),eA(this.store.delete(e))}count(){return M(eb,"COUNT",this.store.name),eA(this.store.count())}G(e,t){let r=this.options(e,t),n=r.index?this.store.index(r.index):this.store;if("function"==typeof n.getAll){let e=n.getAll(r.range);return new ev((t,r)=>{e.onerror=e=>{r(e.target.error)},e.onsuccess=e=>{t(e.target.result)}})}{let e=this.cursor(r),t=[];return this.j(e,(e,r)=>{t.push(r)}).next(()=>t)}}H(e,t){let r=this.store.getAll(e,null===t?void 0:t);return new ev((e,t)=>{r.onerror=e=>{t(e.target.error)},r.onsuccess=t=>{e(t.target.result)}})}J(e,t){M(eb,"DELETE ALL",this.store.name);let r=this.options(e,t);r.Y=!1;let n=this.cursor(r);return this.j(n,(e,t,r)=>r.delete())}Z(e,t){let r;t?r=e:(r={},t=e);let n=this.cursor(r);return this.j(n,t)}X(e){let t=this.cursor({});return new ev((r,n)=>{t.onerror=e=>{n(eI(e.target.error))},t.onsuccess=t=>{let n=t.target.result;n?e(n.primaryKey,n.value).next(e=>{e?n.continue():r()}):r()}})}j(e,t){let r=[];return new ev((n,i)=>{e.onerror=e=>{i(e.target.error)},e.onsuccess=e=>{let i=e.target.result;if(!i)return void n();let o=new eE(i),s=t(i.primaryKey,i.value,o);if(s instanceof ev){let e=s.catch(e=>(o.done(),ev.reject(e)));r.push(e)}o.isDone?n():null===o.U?i.continue():i.continue(o.U)}}).next(()=>ev.waitFor(r))}options(e,t){let r;return void 0!==e&&("string"==typeof e?r=e:t=e),{index:r,range:t}}cursor(e){let t="next";if(e.reverse&&(t="prev"),e.index){let r=this.store.index(e.index);return e.Y?r.openKeyCursor(e.range,t):r.openCursor(e.range,t)}return this.store.openCursor(e.range,t)}}function eA(e){return new ev((t,r)=>{e.onsuccess=e=>{t(e.target.result)},e.onerror=e=>{r(eI(e.target.error))}})}let eC=!1;function eI(e){let t=ex.C((0,w.ZQ)());if(t>=12.2&&t<13){let t="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(t)>=0){let e=new F("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${t}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);return eC||(eC=!0,setTimeout(()=>{throw e},0)),e}}return e}let eP="IndexBackfiller";class eR{constructor(e,t){this.asyncQueue=e,this.ee=t,this.task=null}start(){this.te(15e3)}stop(){this.task&&(this.task.cancel(),this.task=null)}get started(){return null!==this.task}te(e){M(eP,`Scheduled in ${e}ms`),this.task=this.asyncQueue.enqueueAfterDelay("index_backfill",e,async()=>{this.task=null;try{let e=await this.ee.ne();M(eP,`Documents written: ${e}`)}catch(e){eT(e)?M(eP,"Ignoring IndexedDB error during index backfill: ",e):await ey(e)}await this.te(6e4)})}}class eO{constructor(e,t){this.localStore=e,this.persistence=t}async ne(e=50){return this.persistence.runTransaction("Backfill Indexes","readwrite-primary",t=>this.re(t,e))}re(e,t){let r=new Set,n=t,i=!0;return ev.doWhile(()=>!0===i&&n>0,()=>this.localStore.indexManager.getNextCollectionGroupToUpdate(e).next(t=>
28{if(null!==t&&!r.has(t))return M(eP,`Processing collection: ${t}`),this.ie(e,t,n).next(e=>{n-=e,r.add(t)});i=!1})).next(()=>t-n)}ie(e,t,r){return this.localStore.indexManager.getMinOffsetFromCollectionGroup(e,t).next(n=>this.localStore.localDocuments.getNextDocuments(e,t,n,r).next(r=>{let i=r.changes;return this.localStore.indexManager.updateIndexEntries(e,i).next(()=>this.se(n,r)).next(r=>(M(eP,`Updating offset: ${r}`),this.localStore.indexManager.updateCollectionGroup(e,t,r))).next(()=>i.size)}))}se(e,t){let r=e;return t.changes.forEach((e,t)=>{let n=ed(t);ep(n,r)>0&&(r=n)}),new ef(r.readTime,r.documentKey,Math.max(t.batchId,e.largestBatchId))}}class eM{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.oe(e),this._e=e=>t.writeSequenceNumber(e))}oe(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){let e=++this.previousValue;return this._e&&this._e(e),e}}function eN(e){return null==e}function eL(e){return 0===e&&1/e==-1/0}function eD(e){return"number"==typeof e&&Number.isInteger(e)&&!eL(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}function ej(e){let t="";for(let r=0;r<e.length;r++)t.length>0&&(t+="\x01\x01"),t=function(e,t){let r=t,n=e.length;for(let t=0;t<n;t++){let n=e.charAt(t);switch(n){case"\0":r+="\x01\x10";break;case"\x01":r+="\x01\x11";break;default:r+=n}}return r}(e.get(r),t);return t+"\x01\x01"}function eV(e){let t=e.length;if(t>=2||j(),2===t)return"\x01"===e.charAt(0)&&"\x01"===e.charAt(1)||j(),er.emptyPath();let r=t-2,n=[],i="";for(let o=0;o<t;){let t=e.indexOf("\x01",o);switch((t<0||t>r)&&j(),e.charAt(t+1)){case"\x01":let s;let a=e.substring(o,t);0===i.length?s=a:(i+=a,s=i,i=""),n.push(s);break;case"\x10":i+=e.substring(o,t),i+="\0";break;case"\x11":i+=e.substring(o,t+1);break;default:j()}o=t+2}return new er(n)}eM.ae=-1;let eF="remoteDocuments",eU="owner",eB="owner",ez="mutationQueues",eH="mutations",e$="batchId",eW="userMutationsIndex",eq=["userId","batchId"],eG={},eK="documentMutations",eY="remoteDocumentsV14",eX=["prefixPath","collectionGroup","readTime","documentId"],eZ="documentKeyIndex",eQ=["prefixPath","collectionGroup","documentId"],eJ="collectionGroupIndex",e0=["collectionGroup","readTime","prefixPath","documentId"],e1="remoteDocumentGlobal",e2="remoteDocumentGlobalKey",e4="targets",e3="queryTargetsIndex",e5=["canonicalId","targetId"],e6="targetDocuments",e8=["targetId","path"],e7="documentTargetsIndex",e9=["path","targetId"],te="targetGlobalKey",tt="targetGlobal",tr="collectionParents",tn=["collectionId","parent"],ti="clientMetadata",to="bundles",ts="namedQueries",ta="indexConfiguration",tl="collectionGroupIndex",tu="indexState",tc=["indexId","uid"],th="sequenceNumberIndex",td=["uid","sequenceNumber"],tf="indexEntries",tp=["indexId","uid","arrayValue","directionalValue","orderedDocumentKey","documentKey"],tm="documentKeyIndex",tg=["indexId","uid","orderedDocumentKey"],ty="documentOverlays",tv=["userId","collectionPath","documentId"],tb="collectionPathOverlayIndex",tw=["userId","collectionPath","largestBatchId"],tx="collectionGroupOverlayIndex",t_=["userId","collectionGroup","largestBatchId"],tE="globals",tS=[ez,eH,eK,eF,e4,eU,tt,e6,ti,e1,tr,to,ts],tT=[...tS,ty],tk=[ez,eH,eK,eY,e4,eU,tt,e6,ti,e1,tr,to,ts,ty],tA=[...tk,ta,tu,tf],tC=[...tA,tE];class tI extends eg{constructor(e,t){super(),this.ue=e,this.currentSequenceNumber=t}}function tP(e,t){return ex.M(e.ue,t)}function tR(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}function tO(e,t){for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(r,e[r])}function tM(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}class tN{constructor(e,t){this.comparator=e,this.root=t||tD.EMPTY}insert(e,t){return new tN(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,tD.BLACK,null,null))}remove(e){return new tN(this.comparator,this.root.remove(e,this.comparator).copy(null,null,tD.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){let r=this.comparator(e,t.key);if(0===r)return t.value;r<0?t=t.left:r>0&&(t=t.right)}return null}indexOf(e){let t=0,r=this.root;for(;!r.isEmpty();){let n=this.comparator(e,r.key);if(0===n)return t+r.left.size;n<0?r=r.left:(t+=r.left.size+1,r=r.right)}return -1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,r)=>(e(t,r),!1))}toString(){let e=[];return this.inorderTraversal((t,r)=>(e.push(`${t}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new tL(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new tL(this.root,e,this.comparator,!1)}getReverseIterator(){return new tL(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new tL(this.root,e,this.comparator,!0)}}class tL{constructor(e,t,r,n){this.isReverse=n,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?r(e.key,t):1,t&&n&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;let e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class tD{constructor(e,t,r,n,i){this.key=e,this.value=t,this.color=null!=r?r:tD.RED,this.left=null!=n?n:tD.EMPTY,this.right=null!=i?i:tD.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,r,n,i){return new tD(null!=e?e:this.key,null!=t?t:this.value,
28null!=r?r:this.color,null!=n?n:this.left,null!=i?i:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,r){let n=this,i=r(e,n.key);return(n=i<0?n.copy(null,null,null,n.left.insert(e,t,r),null):0===i?n.copy(null,t,null,null,null):n.copy(null,null,null,null,n.right.insert(e,t,r))).fixUp()}removeMin(){if(this.left.isEmpty())return tD.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()}remove(e,t){let r,n=this;if(0>t(e,n.key))n.left.isEmpty()||n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed()&&(n=n.rotateRight()),n.right.isEmpty()||n.right.isRed()||n.right.left.isRed()||(n=n.moveRedRight()),0===t(e,n.key)){if(n.right.isEmpty())return tD.EMPTY;r=n.right.min(),n=n.copy(r.key,r.value,null,null,n.right.removeMin())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e}rotateLeft(){let e=this.copy(null,null,tD.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){let e=this.copy(null,null,tD.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){let e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){return Math.pow(2,this.check())<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw j();let e=this.left.check();if(e!==this.right.check())throw j();return e+(this.isRed()?0:1)}}tD.EMPTY=null,tD.RED=!0,tD.BLACK=!1,tD.EMPTY=new class{constructor(){this.size=0}get key(){throw j()}get value(){throw j()}get color(){throw j()}get left(){throw j()}get right(){throw j()}copy(e,t,r,n,i){return this}insert(e,t,r){return new tD(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class tj{constructor(e){this.comparator=e,this.data=new tN(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,r)=>(e(t),!1))}forEachInRange(e,t){let r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){let n=r.getNext();if(this.comparator(n.key,e[1])>=0)return;t(n.key)}}forEachWhile(e,t){let r;for(r=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){let t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new tV(this.data.getIterator())}getIteratorFrom(e){return new tV(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(e=>{t=t.add(e)}),t}isEqual(e){if(!(e instanceof tj)||this.size!==e.size)return!1;let t=this.data.getIterator(),r=e.data.getIterator();for(;t.hasNext();){let e=t.getNext().key,n=r.getNext().key;if(0!==this.comparator(e,n))return!1}return!0}toArray(){let e=[];return this.forEach(t=>{e.push(t)}),e}toString(){let e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){let t=new tj(this.comparator);return t.data=e,t}}
28class tV{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}function tF(e){return e.hasNext()?e.getNext():void 0}class tU{constructor(e){this.fields=e,e.sort(ei.comparator)}static empty(){return new tU([])}unionWith(e){let t=new tj(ei.comparator);for(let e of this.fields)t=t.add(e);for(let r of e)t=t.add(r);return new tU(t.toArray())}covers(e){for(let t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return Z(this.fields,e.fields,(e,t)=>e.isEqual(t))}}class tB extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class tz{constructor(e){this.binaryString=e}static fromBase64String(e){return new tz(function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new tB("Invalid base64 string: "+e):e}}(e))}static fromUint8Array(e){return new tz(function(e){let t="";for(let r=0;r<e.length;++r)t+=String.fromCharCode(e[r]);return t}(e))}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){return function(e){let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return X(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}tz.EMPTY_BYTE_STRING=new tz("");let tH=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function t$(e){if(e||j(),"string"==typeof e){let t=0,r=tH.exec(e);if(r||j(),r[1]){let e=r[1];t=Number(e=(e+"000000000").substr(0,9))}return{seconds:Math.floor(new Date(e).getTime()/1e3),nanos:t}}return{seconds:tW(e.seconds),nanos:tW(e.nanos)}}function tW(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function tq(e){return"string"==typeof e?tz.fromBase64String(e):tz.fromUint8Array(e)}let tG="server_timestamp",tK="__type__",tY="__previous_value__",tX="__local_write_time__";function tZ(e){var t,r;return(null===(r=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{})[tK])||void 0===r?void 0:r.stringValue)===tG}function tQ(e){let t=e.mapValue.fields[tY];return tZ(t)?tQ(t):t}function tJ(e){let t=t$(e.mapValue.fields[tX].timestampValue);return new Q(t.seconds,t.nanos)}class t0{constructor(e,t,r,n,i,o,s,a,l){this.databaseId=e,this.appId=t,this.persistenceKey=r,this.host=n,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=s,this.longPollingOptions=a,this.useFetchStreams=l}}let t1="(default)";class t2{constructor(e,t){this.projectId=e,this.database=t||t1}static empty(){return new t2("","")}get isDefaultDatabase(){return this.database===t1}isEqual(e){return e instanceof t2&&e.projectId===this.projectId&&e.database===this.database}}let t4="__type__",t3="__max__",t5={mapValue:{fields:{__type__:{stringValue:t3}}}},t6="__vector__",t8="value",t7={nullValue:"NULL_VALUE"};function t9(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?tZ(e)?4:rp(e)?0x1fffffffffffff:rd(e)?10:11:j()}function re(e,t){if(e===t)return!0;let r=t9(e);if(r!==t9(t))return!1;switch(r){case 0:case 0x1fffffffffffff:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return tJ(e).isEqual(tJ(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;let r=t$(e.timestampValue),n=t$(t.timestampValue);return r.seconds===n.seconds&&r.nanos===n.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return tq(e.bytesValue).isEqual(tq(t.bytesValue));case 7:return e.referenceValue===t.referenceValue;case 8:return tW(e.geoPointValue.latitude)===tW(t.geoPointValue.latitude)&&tW(e.geoPointValue.longitude)===tW(t.geoPointValue.longitude);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return tW(e.integerValue)===tW(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){let r=tW(e.doubleValue),n=tW(t.doubleValue);return r===n?eL(r)===eL(n):isNaN(r)&&isNaN(n)}return!1}(e,t);case 9:return Z(e.arrayValue.values||[],t.arrayValue.values||[],re);case 10:case 11:return function(e,t){let r=e.mapValue.fields||{},n=t.mapValue.fields||{};if(tR(r)!==tR(n))return!1;for(let e in r)if(r.hasOwnProperty(e)&&(void 0===n[e]||!re(r[e],n[e])))return!1;return!0}(e,t);default:return j()}}function rt(e,t){return void 0!==(e.values||[]).find(e=>re(e,t))}function rr(e,t){if(e===t)return 0;let r=t9(e),n=t9(t);if(r!==n)return X(r,n);switch(r){case 0:case 0x1fffffffffffff:return 0;case 1:return X(e.booleanValue,t.booleanValue);case 2:return function(e,t){let r=tW(e.integerValue||e.doubleValue),n=tW(t.integerValue||t.doubleValue);return r<n?-1:r>n?1:r===n?0:isNaN(r)?isNaN(n)?0:-1:1}(e,t);case 3:return rn(e.timestampValue,t.timestampValue);case 4:return rn(tJ(e),tJ(t));case 5:return X(e.stringValue,t.stringValue);case 6:return function(e,t){let r=tq(e),n=tq(t);return r.compareTo(n)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){let r=e.split("/"),n=t.split("/");for(let e=0;e<r.length&&e<n.length;e++){let t=X(r[e],n[e]);if(0!==t)return t}return X(r.length,n.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){let r=X(tW(e.latitude),tW(t.latitude));return 0!==r?r:X(tW(e.longitude),tW(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return ri(e.arrayValue,t.arrayValue);case 10:return function(e,t){var r,n,i,o;let s=e.fields||{},a=t.fields||{},l=null===(r=s[t8])||void 0===r?void 0:r.arrayValue,u=null===(n=a[t8])||void 0===n?void 0:n.arrayValue,c=X((null===(i=null==l?void 0:l.values)||void 0===i?void 0:i.length)||0,(null===(o=null==u?void 0:u.values)||void 0===o?void 0:o.length)||0);return 0!==c?c:ri(l,u)}(e.mapValue,t.mapValue);case 11:return function(e,t){if(e===t5.mapValue&&t===t5.mapValue)return 0;if(e===t5.mapValue)return 1;if(t===t5.mapValue)return -1;let r=e.fields||{},n=Object.keys(r),i=t.fields||{},o=Object.keys(i);n.sort(),o.sort();for(let e=0;e<n.length&&e<o.length;++e){let t=X(n[e],o[e]);if(0!==t)return t;let s=rr(r[n[e]],i[o[e]]);if(0!==s)return s}return X(n.length,o.length)}(e.mapValue,t.mapValue);default:throw j()}}function rn(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return X(e,t);let r=t$(e),n=t$(t),i=X(r.seconds,n.seconds);return 0!==i?i:X(r.nanos,n.nanos)}function ri(e,t){let r=e.values||[],n=t.values||[];for(let e=0;e<r.length&&e<n.length;++e){let t=rr(r[e],n[e]);if(t)return t}return X(r.length,n.length)}function ro(e){var t,r;return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){let t=t$(e);return`time(${t.seconds},${t.nanos})`}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?tq(e.bytesValue).toBase64():"referenceValue"in e?(t=e.referenceValue,eo.fromName(t).toString()):"geoPointValue"in e?(r=e.geoPointValue,`geo(${r.latitude},${r.longitude})`):"arrayValue"in e?function(e){let t="[",r=!0;for(let n of e.values||[])r?r=!1:t+=",",t+=ro(n);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){let t=Object.keys(e.fields||{}).sort(),r="{",n=!0;for(let i of t)n?n=!1:r+=",",r+=`${i}:${ro(e.fields[i])}`;return r+"}"}(e.mapValue):j()}function rs(e,t){return{referenceValue:`projects/${e.projectId}/databases/${e.database}/documents/${t.path.canonicalString()}`}}function ra(e){return!!e&&"integerValue"in e}function rl(e){return!!e&&"arrayValue"in e}function ru(e){return!!e&&"nullValue"in e}function rc(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function rh(e){return!!e&&"mapValue"in e}function rd(e){var t,r;return(null===(r=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{})[t4])||void 0===r?void 0:r.stringValue)===t6}function rf(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){let t={mapValue:{fields:{}}};return tO(e.mapValue.fields,(e,r)=>t.mapValue.fields[e]=rf(r)),t}if(e.arrayValue){let t={arrayValue:{values:[]}};for(let r=0;r<(e.arrayValue.values||[]).length;++r)t.arrayValue.values[r]=rf(e.arrayValue.values[r]);return t}return Object.assign({},e)}function rp(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===t3}let rm={mapValue:{fields:{[t4]:{stringValue:t6},[t8]:{arrayValue:{}}}}};function rg(e,t){let r=rr(e.value,t.value);return 0!==r?r:e.inclusive&&!t.inclusive?-1:!e.inclusive&&t.inclusive?1:0}function ry(e,t){let r=rr(e.value,t.value);return 0!==r?r:e.inclusive&&!t.inclusive?1:!e.inclusive&&t.inclusive?-1:0}class rv{constructor(e){this.value=e}static empty(){return new rv({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let r=0;r<e.length-1;++r)if(!rh(t=(t.mapValue.fields||{})[e.get(r)]))return null;return(t=(t.mapValue.fields||{})[e.lastSegment()])||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=rf(t)}setAll(e){let t=ei.emptyPath(),r={},n=[];e.forEach((e,i)=>{if(!t.isImmediateParentOf(i)){let e=this.getFieldsMap(t);this.applyChanges(e,r,n),r={},n=[],t=i.popLast()}e?r[i.lastSegment()]=rf(e):n.push(i.lastSegment())});let i=this.getFieldsMap(t);this.applyChanges(i,r,n)}delete(e){let t=this.field(e.popLast());rh(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return re(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let r=0;r<e.length;++r){let n=t.mapValue.fields[e.get(r)];rh(n)&&n.mapValue.fields||(n={mapValue:{fields:{}}},t.mapValue.fields[e.get(r)]=n),t=n}return t.mapValue.fields}
28applyChanges(e,t,r){for(let n of(tO(t,(t,r)=>e[t]=r),r))delete e[n]}clone(){return new rv(rf(this.value))}}class rb{constructor(e,t,r,n,i,o,s){this.key=e,this.documentType=t,this.version=r,this.readTime=n,this.createTime=i,this.data=o,this.documentState=s}static newInvalidDocument(e){return new rb(e,0,J.min(),J.min(),J.min(),rv.empty(),0)}static newFoundDocument(e,t,r,n){return new rb(e,1,t,J.min(),r,n,0)}static newNoDocument(e,t){return new rb(e,2,t,J.min(),J.min(),rv.empty(),0)}static newUnknownDocument(e,t){return new rb(e,3,t,J.min(),J.min(),rv.empty(),2)}convertToFoundDocument(e,t){return this.createTime.isEqual(J.min())&&(2===this.documentType||0===this.documentType)&&(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=rv.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=rv.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=J.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof rb&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new rb(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class rw{constructor(e,t){this.position=e,this.inclusive=t}}function rx(e,t,r){let n=0;for(let i=0;i<e.position.length;i++){let o=t[i],s=e.position[i];if(n=o.field.isKeyField()?eo.comparator(eo.fromName(s.referenceValue),r.key):rr(s,r.data.field(o.field)),"desc"===o.dir&&(n*=-1),0!==n)break}return n}function r_(e,t){if(null===e)return null===t;if(null===t||e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let r=0;r<e.position.length;r++)if(!re(e.position[r],t.position[r]))return!1;return!0}class rE{constructor(e,t="asc"){this.field=e,this.dir=t}}class rS{}class rT extends rS{constructor(e,t,r){super(),this.field=e,this.op=t,this.value=r}static create(e,t,r){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,r):new rO(e,t,r):"array-contains"===t?new rD(e,r):"in"===t?new rj(e,r):"not-in"===t?new rV(e,r):"array-contains-any"===t?new rF(e,r):new rT(e,t,r)}static createKeyFieldInFilter(e,t,r){return"in"===t?new rM(e,r):new rN(e,r)}matches(e){let t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(rr(t,this.value)):null!==t&&t9(this.value)===t9(t)&&this.matchesComparison(rr(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return j()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class rk extends rS{constructor(e,t){super(),this.filters=e,this.op=t,this.ce=null}static create(e,t){return new rk(e,t)}matches(e){return rA(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.ce||(this.ce=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.ce}getFilters(){return Object.assign([],this.filters)}}function rA(e){return"and"===e.op}function rC(e){return"or"===e.op}function rI(e){return rP(e)&&rA(e)}function rP(e){for(let t of e.filters)if(t instanceof rk)return!1;return!0}function rR(e,t){let r=e.filters.concat(t);return rk.create(r,e.op)}class rO extends rT{constructor(e,t,r){super(e,t,r),this.key=eo.fromN
28ame(r.referenceValue)}matches(e){let t=eo.comparator(e.key,this.key);return this.matchesComparison(t)}}class rM extends rT{constructor(e,t){super(e,"in",t),this.keys=rL("in",t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class rN extends rT{constructor(e,t){super(e,"not-in",t),this.keys=rL("not-in",t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function rL(e,t){var r;return((null===(r=t.arrayValue)||void 0===r?void 0:r.values)||[]).map(e=>eo.fromName(e.referenceValue))}class rD extends rT{constructor(e,t){super(e,"array-contains",t)}matches(e){let t=e.data.field(this.field);return rl(t)&&rt(t.arrayValue,this.value)}}class rj extends rT{constructor(e,t){super(e,"in",t)}matches(e){let t=e.data.field(this.field);return null!==t&&rt(this.value.arrayValue,t)}}class rV extends rT{constructor(e,t){super(e,"not-in",t)}matches(e){if(rt(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;let t=e.data.field(this.field);return null!==t&&!rt(this.value.arrayValue,t)}}class rF extends rT{constructor(e,t){super(e,"array-contains-any",t)}matches(e){let t=e.data.field(this.field);return!(!rl(t)||!t.arrayValue.values)&&t.arrayValue.values.some(e=>rt(this.value.arrayValue,e))}}class rU{constructor(e,t=null,r=[],n=[],i=null,o=null,s=null){this.path=e,this.collectionGroup=t,this.orderBy=r,this.filters=n,this.limit=i,this.startAt=o,this.endAt=s,this.le=null}}function rB(e,t=null,r=[],n=[],i=null,o=null,s=null){return new rU(e,t,r,n,i,o,s)}function rz(e){if(null===e.le){let t=e.path.canonicalString();null!==e.collectionGroup&&(t+="|cg:"+e.collectionGroup),t+="|f:",t+=e.filters.map(e=>(function e(t){if(t instanceof rT)return t.field.canonicalString()+t.op.toString()+ro(t.value);if(rI(t))return t.filters.map(t=>e(t)).join(",");{let r=t.filters.map(t=>e(t)).join(",");return`${t.op}(${r})`}})(e)).join(","),t+="|ob:",t+=e.orderBy.map(e=>e.field.canonicalString()+e.dir).join(","),null==e.limit||(t+="|l:",t+=e.limit),e.startAt&&(t+="|lb:",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(e=>ro(e)).join(",")),e.endAt&&(t+="|ub:",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(e=>ro(e)).join(",")),e.le=t}return e.le}function rH(e,t){if(e.limit!==t.limit||e.orderBy.length!==t.orderBy.length)return!1;for(let i=0;i<e.orderBy.length;i++){var r,n;if(r=e.orderBy[i],n=t.orderBy[i],!(r.dir===n.dir&&r.field.isEqual(n.field)))return!1}if(e.filters.length!==t.filters.length)return!1;for(let r=0;r<e.filters.length;r++)if(!function e(t,r){return t instanceof rT?r instanceof rT&&t.op===r.op&&t.field.isEqual(r.field)&&re(t.value,r.value):t instanceof rk?r instanceof rk&&t.op===r.op&&t.filters.length===r.filters.length&&t.filters.reduce((t,n,i)=>t&&e(n,r.filters[i]),!0):void j()}(e.filters[r],t.filters[r]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!r_(e.startAt,t.startAt)&&r_(e.endAt,t.endAt)}function r$(e){return eo.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}function rW(e,t){return e.filters.filter(e=>e instanceof rT&&e.field.isEqual(t))}function rq(e,t,r){let n=t7,i=!0;for(let r of rW(e,t)){let e=t7,t=!0;switch(r.op){case"<":case"<=":var o;e="nullValue"in(o=r.value)?t7:"booleanValue"in o?{booleanValue:!1}:"integerValue"in o||"doubleValue"in o?{doubleValue:NaN}:"timestampValue"in o?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in o?{stringValue:""}:"bytesValue"in o?{bytesValue:""}:"referenceValue"in o?rs(t2.empty(),eo.empty()):"geoPointValue"in o?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in o?{arrayValue:{}}:"mapValue"in o?rd(o)?rm:{mapValue:{}}:j();break;case"==":case"in":case">=":e=r.value;break;case">":e=r.value,t=!1;break;case"!=":case"not-in":e=t7}0>rg({value:n,inclusive:i},{value:e,inclusive:t})&&(n=e,i=t)}if(null!==r){for(let o=0;o<e.orderBy.length;++o)if(e.orderBy[o].field.isEqual(t)){let e=r.position[o];0>rg({value:n,inclusive:i},{value:e,inclusive:r.inclusive})&&(n=e,i=r.inclusive);break}}return{value:n,inclusive:i}}function rG(e,t,r){let n=t5,i=!0;for(let r of rW(e,t)){let e=t5,t=!0;switch(r.op){case">=":case">":var o;
28e="nullValue"in(o=r.value)?{booleanValue:!1}:"booleanValue"in o?{doubleValue:NaN}:"integerValue"in o||"doubleValue"in o?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in o?{stringValue:""}:"stringValue"in o?{bytesValue:""}:"bytesValue"in o?rs(t2.empty(),eo.empty()):"referenceValue"in o?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in o?{arrayValue:{}}:"arrayValue"in o?rm:"mapValue"in o?rd(o)?{mapValue:{}}:t5:j(),t=!1;break;case"==":case"in":case"<=":e=r.value;break;case"<":e=r.value,t=!1;break;case"!=":case"not-in":e=t5}ry({value:n,inclusive:i},{value:e,inclusive:t})>0&&(n=e,i=t)}if(null!==r){for(let o=0;o<e.orderBy.length;++o)if(e.orderBy[o].field.isEqual(t)){let e=r.position[o];ry({value:n,inclusive:i},{value:e,inclusive:r.inclusive})>0&&(n=e,i=r.inclusive);break}}return{value:n,inclusive:i}}class rK{constructor(e,t=null,r=[],n=[],i=null,o="F",s=null,a=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=r,this.filters=n,this.limit=i,this.limitType=o,this.startAt=s,this.endAt=a,this.he=null,this.Pe=null,this.Te=null,this.startAt,this.endAt}}function rY(e){return new rK(e)}function rX(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function rZ(e){return null!==e.collectionGroup}function rQ(e){if(null===e.he){let t;e.he=[];let r=new Set;for(let t of e.explicitOrderBy)e.he.push(t),r.add(t.field.canonicalString());let n=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(t=new tj(ei.comparator),e.filters.forEach(e=>{e.getFlattenedFilters().forEach(e=>{e.isInequality()&&(t=t.add(e.field))})}),t).forEach(t=>{r.has(t.canonicalString())||t.isKeyField()||e.he.push(new rE(t,n))}),r.has(ei.keyField().canonicalString())||e.he.push(new rE(ei.keyField(),n))}return e.he}function rJ(e){return e.Pe||(e.Pe=function(e,t){if("F"===e.limitType)return rB(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map(e=>{let t="desc"===e.dir?"asc":"desc";return new rE(e.field,t)});let r=e.endAt?new rw(e.endAt.position,e.endAt.inclusive):null,n=e.startAt?new rw(e.startAt.position,e.startAt.inclusive):null;return rB(e.path,e.collectionGroup,t,e.filters,e.limit,r,n)}}(e,rQ(e))),e.Pe}function r0(e,t){let r=e.filters.concat([t]);return new rK(e.path,e.collectionGroup,e.explicitOrderBy.slice(),r,e.limit,e.limitType,e.startAt,e.endAt)}function r1(e,t,r){return new rK(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,r,e.startAt,e.endAt)}function r2(e,t){return rH(rJ(e),rJ(t))&&e.limitType===t.limitType}function r4(e){return`${rz(rJ(e))}|lt:${e.limitType}`}function r3(e){var t;let r;return`Query(target=${r=(t=rJ(e)).path.canonicalString(),null!==t.collectionGroup&&(r+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(r+=`, filters: [${t.filters.map(e=>(function e(t){return t instanceof rT?`${t.field.canonicalString()} ${t.op} ${ro(t.value)}`:t instanceof rk?t.op.toString()+" {"+t.getFilters().map(e).join(" ,")+"}":"Filter"})(e)).join(", ")}]`),null==t.limit||(r+=", limit: "+t.limit),t.orderBy.length>0&&(r+=`, orderBy: [${t.orderBy.map(e=>`${e.field.canonicalString()} (${e.dir})`).join(", ")}]`),t.startAt&&(r+=", startAt: ",r+=t.startAt.inclusive?"b:":"a:",r+=t.startAt.position.map(e=>ro(e)).join(",")),t.endAt&&(r+=", endAt: ",r+=t.endAt.inclusive?"a:":"b:",r+=t.endAt.position.map(e=>ro(e)).join(",")),`Target(${r})`}; limitType=${e.limitType})`}function r5(e,t){return t.isFoundDocument()&&function(e,t){let r=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(r):eo.isDocumentKey(e.path)?e.path.isEqual(r):e.path.isImmediateParentOf(r)}(e,t)&&function(e,t){for(let r of rQ(e))if(!r.field.isKeyField()&&null===t.data.field(r.field))return!1;return!0}(e,t)&&function(e,t){for(let r of e.filters)if(!r.matches(t))return!1;return!0}(e,t)&&(!e.startAt||!!function(e,t,r){let n=rx(e,t,r);return e.inclusive?n<=0:n<0}(e.startAt,rQ(e),t))&&(!e.endAt||!!function(e,t,r){let n=rx(e,t,r);return e.inclusive?n>=0:n>0}(e.endAt,rQ(e),t))}function r6(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function r8(e){return(t,r)=>{let n=!1;for(let i of rQ(e)){let e=function(e,t,r){let n=e.field.isKeyField()?eo.comparator(t.key,r.key):function(e,t,r){let n=t.data.field(e),i=r.data.field(e);return null!==n&&null!==i?rr(n,i):j()}(e.field,t,r);switch(e.dir){case"asc":return n;
28case"desc":return -1*n;default:return j()}}(i,t,r);if(0!==e)return e;n=n||i.field.isKeyField()}return 0}}class r7{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){let t=this.mapKeyFn(e),r=this.inner[t];if(void 0!==r){for(let[t,n]of r)if(this.equalsFn(t,e))return n}}has(e){return void 0!==this.get(e)}set(e,t){let r=this.mapKeyFn(e),n=this.inner[r];if(void 0===n)return this.inner[r]=[[e,t]],void this.innerSize++;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return void(n[r]=[e,t]);n.push([e,t]),this.innerSize++}delete(e){let t=this.mapKeyFn(e),r=this.inner[t];if(void 0===r)return!1;for(let n=0;n<r.length;n++)if(this.equalsFn(r[n][0],e))return 1===r.length?delete this.inner[t]:r.splice(n,1),this.innerSize--,!0;return!1}forEach(e){tO(this.inner,(t,r)=>{for(let[t,n]of r)e(t,n)})}isEmpty(){return tM(this.inner)}size(){return this.innerSize}}let r9=new tN(eo.comparator),ne=new tN(eo.comparator);function nt(...e){let t=ne;for(let r of e)t=t.insert(r.key,r);return t}function nr(e){let t=ne;return e.forEach((e,r)=>t=t.insert(e,r.overlayedDocument)),t}function nn(){return new r7(e=>e.toString(),(e,t)=>e.isEqual(t))}let ni=new tN(eo.comparator),no=new tj(eo.comparator);function ns(...e){let t=no;for(let r of e)t=t.add(r);return t}let na=new tj(X);function nl(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:eL(t)?"-0":t}}function nu(e){return{integerValue:""+e}}function nc(e,t){return eD(t)?nu(t):nl(e,t)}class nh{constructor(){this._=void 0}}function nd(e,t){return e instanceof nv?ra(t)||t&&"doubleValue"in t?t:{integerValue:0}:null}class nf extends nh{}class np extends nh{constructor(e){super(),this.elements=e}}function nm(e,t){let r=nw(t);for(let t of e.elements)r.some(e=>re(e,t))||r.push(t);return{arrayValue:{values:r}}}class ng extends nh{constructor(e){super(),this.elements=e}}function ny(e,t){let r=nw(t);for(let t of e.elements)r=r.filter(e=>!re(e,t));return{arrayValue:{values:r}}}class nv extends nh{constructor(e,t){super(),this.serializer=e,this.Ie=t}}function nb(e){return tW(e.integerValue||e.doubleValue)}function nw(e){return rl(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}class nx{constructor(e,t){this.field=e,this.transform=t}}class n_{constructor(e,t){this.version=e,this.transformResults=t}}class nE{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new nE}static exists(e){return new nE(void 0,e)}static updateTime(e){return new nE(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function nS(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class nT{}function nk(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new nN(e.key,nE.none()):new nI(e.key,e.data,nE.none());{let r=e.data,n=rv.empty(),i=new tj(ei.comparator);for(let e of t.fields)if(!i.has(e)){let t=r.field(e);null===t&&e.length>1&&(e=e.popLast(),t=r.field(e)),null===t?n.delete(e):n.set(e,t),i=i.add(e)}return new nP(e.key,n,new tU(i.toArray()),nE.none())}}function nA(e,t,r,n){return e instanceof nI?function(e,t,r,n){if(!nS(e.precondition,t))return r;let i=e.value.clone(),o=nM(e.fieldTransforms,n,t);return i.setAll(o),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,r,n):e instanceof nP?function(e,t,r,n){if(!nS(e.precondition,t))return r;let i=nM(e.fieldTransforms,n,t),o=t.data;return(o.setAll(nR(e)),o.setAll(i),t.convertToFoundDocument(t.version,o).setHasLocalMutations(),null===r)?null:r.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map(e=>e.field))}(e,t,r,n):nS(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):r}function nC(e,t){var r,n;return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&(r=e.fieldTransforms,n=t.fieldTransforms,!!(void 0===r&&void 0===n||!(!r||!n)&&Z(r,n,(e,t)=>{var r,n;return e.field.isEqual(t.field)&&(r=e.transform,n=t.transform,r instanceof np&&n instanceof np||r instanceof ng&&n instanceof ng?Z(r.elements,n.elements,re):r instanceof nv&&n instanceof nv?re(r.Ie,n.Ie):r instanceof nf&&n instanceof nf)})))&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}class nI extends nT{constructor(e,t,r,n=[]){super(),this.key=e,this.value=t,this.prec
28ondition=r,this.fieldTransforms=n,this.type=0}getFieldMask(){return null}}class nP extends nT{constructor(e,t,r,n,i=[]){super(),this.key=e,this.data=t,this.fieldMask=r,this.precondition=n,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function nR(e){let t=new Map;return e.fieldMask.fields.forEach(r=>{if(!r.isEmpty()){let n=e.data.field(r);t.set(r,n)}}),t}function nO(e,t,r){var n;let i=new Map;e.length===r.length||j();for(let o=0;o<r.length;o++){let s=e[o],a=s.transform,l=t.data.field(s.field);i.set(s.field,(n=r[o],a instanceof np?nm(a,l):a instanceof ng?ny(a,l):n))}return i}function nM(e,t,r){let n=new Map;for(let i of e){let e=i.transform,o=r.data.field(i.field);n.set(i.field,e instanceof nf?function(e,t){let r={fields:{[tK]:{stringValue:tG},[tX]:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&tZ(t)&&(t=tQ(t)),t&&(r.fields[tY]=t),{mapValue:r}}(t,o):e instanceof np?nm(e,o):e instanceof ng?ny(e,o):function(e,t){let r=nd(e,t),n=nb(r)+nb(e.Ie);return ra(r)&&ra(e.Ie)?nu(n):nl(e.serializer,n)}(e,o))}return n}class nN extends nT{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class nL extends nT{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class nD{constructor(e,t,r,n){this.batchId=e,this.localWriteTime=t,this.baseMutations=r,this.mutations=n}applyToRemoteDocument(e,t){let r=t.mutationResults;for(let t=0;t<this.mutations.length;t++){let i=this.mutations[t];if(i.key.isEqual(e.key)){var n;n=r[t],i instanceof nI?function(e,t,r){let n=e.value.clone(),i=nO(e.fieldTransforms,t,r.transformResults);n.setAll(i),t.convertToFoundDocument(r.version,n).setHasCommittedMutations()}(i,e,n):i instanceof nP?function(e,t,r){if(!nS(e.precondition,t))return void t.convertToUnknownDocument(r.version);let n=nO(e.fieldTransforms,t,r.transformResults),i=t.data;i.setAll(nR(e)),i.setAll(n),t.convertToFoundDocument(r.version,i).setHasCommittedMutations()}(i,e,n):function(e,t,r){t.convertToNoDocument(r.version).setHasCommittedMutations()}(0,e,n)}}}applyToLocalView(e,t){for(let r of this.baseMutations)r.key.isEqual(e.key)&&(t=nA(r,e,t,this.localWriteTime));for(let r of this.mutations)r.key.isEqual(e.key)&&(t=nA(r,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){let r=nn();return this.mutations.forEach(n=>{let i=e.get(n.key),o=i.overlayedDocument,s=this.applyToLocalView(o,i.mutatedFields),a=nk(o,s=t.has(n.key)?null:s);null!==a&&r.set(n.key,a),o.isValidDocument()||o.convertToNoDocument(J.min())}),r}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),ns())}isEqual(e){return this.batchId===e.batchId&&Z(this.mutations,e.mutations,(e,t)=>nC(e,t))&&Z(this.baseMutations,e.baseMutations,(e,t)=>nC(e,t))}}class nj{constructor(e,t,r,n){this.batch=e,this.commitVersion=t,this.mutationResults=r,this.docVersions=n}static from(e,t,r){e.mutations.length===r.length||j();let n=ni,i=e.mutations;for(let e=0;e<i.length;e++)n=n.insert(i[e].key,r[e].version);return new nj(e,t,r,n)}}class nV{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{
29      largestBatchId: ${this.largestBatchId},
30      mutation: ${this.mutation.toString()}
31    }`}}class nF{constructor(e,t){this.count=e,this.unchangedNames=t}}function nU(e){if(void 0===e)return N("GRPC error has no .code"),V.UNKNOWN;switch(e){case f.OK:return V.OK;case f.CANCELLED:return V.CANCELLED;case f.UNKNOWN:return V.UNKNOWN;case f.DEADLINE_EXCEEDED:return V.DEADLINE_EXCEEDED;case f.RESOURCE_EXHAUSTED:return V.RESOURCE_EXHAUSTED;case f.INTERNAL:return V.INTERNAL;case f.UNAVAILABLE:return V.UNAVAILABLE;case f.UNAUTHENTICATED:return V.UNAUTHENTICATED;case f.INVALID_ARGUMENT:return V.INVALID_ARGUMENT;case f.NOT_FOUND:return V.NOT_FOUND;case f.ALREADY_EXISTS:return V.ALREADY_EXISTS;case f.PERMISSION_DENIED:return V.PERMISSION_DENIED;case f.FAILED_PRECONDITION:return V.FAILED_PRECONDITION;case f.ABORTED:return V.ABORTED;case f.OUT_OF_RANGE:return V.OUT_OF_RANGE;
31case f.UNIMPLEMENTED:return V.UNIMPLEMENTED;case f.DATA_LOSS:return V.DATA_LOSS;default:return j()}}(p=f||(f={}))[p.OK=0]="OK",p[p.CANCELLED=1]="CANCELLED",p[p.UNKNOWN=2]="UNKNOWN",p[p.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",p[p.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",p[p.NOT_FOUND=5]="NOT_FOUND",p[p.ALREADY_EXISTS=6]="ALREADY_EXISTS",p[p.PERMISSION_DENIED=7]="PERMISSION_DENIED",p[p.UNAUTHENTICATED=16]="UNAUTHENTICATED",p[p.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",p[p.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",p[p.ABORTED=10]="ABORTED",p[p.OUT_OF_RANGE=11]="OUT_OF_RANGE",p[p.UNIMPLEMENTED=12]="UNIMPLEMENTED",p[p.INTERNAL=13]="INTERNAL",p[p.UNAVAILABLE=14]="UNAVAILABLE",p[p.DATA_LOSS=15]="DATA_LOSS";let nB=new n([0xffffffff,0xffffffff],0);function nz(e){let t=(new TextEncoder).encode(e),r=new i;return r.update(t),new Uint8Array(r.digest())}function nH(e){let t=new DataView(e.buffer),r=t.getUint32(0,!0),i=t.getUint32(4,!0),o=t.getUint32(8,!0),s=t.getUint32(12,!0);return[new n([r,i],0),new n([o,s],0)]}class n${constructor(e,t,r){if(this.bitmap=e,this.padding=t,this.hashCount=r,t<0||t>=8)throw new nW(`Invalid padding: ${t}`);if(r<0||e.length>0&&0===this.hashCount)throw new nW(`Invalid hash count: ${r}`);if(0===e.length&&0!==t)throw new nW(`Invalid padding when bitmap length is 0: ${t}`);this.Ee=8*e.length-t,this.de=n.fromNumber(this.Ee)}Ae(e,t,r){let i=e.add(t.multiply(n.fromNumber(r)));return 1===i.compare(nB)&&(i=new n([i.getBits(0),i.getBits(1)],0)),i.modulo(this.de).toNumber()}Re(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.Ee)return!1;let[t,r]=nH(nz(e));for(let e=0;e<this.hashCount;e++){let n=this.Ae(t,r,e);if(!this.Re(n))return!1}return!0}static create(e,t,r){let n=new n$(new Uint8Array(Math.ceil(e/8)),e%8==0?0:8-e%8,t);return r.forEach(e=>n.insert(e)),n}insert(e){if(0===this.Ee)return;let[t,r]=nH(nz(e));for(let e=0;e<this.hashCount;e++){let n=this.Ae(t,r,e);this.Ve(n)}}Ve(e){let t=Math.floor(e/8);this.bitmap[t]|=1<<e%8}}class nW extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class nq{constructor(e,t,r,n,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=r,this.documentUpdates=n,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,t,r){let n=new Map;return n.set(e,nG.createSynthesizedTargetChangeForCurrentChange(e,t,r)),new nq(J.min(),n,new tN(X),r9,ns())}}class nG{constructor(e,t,r,n,i){this.resumeToken=e,this.current=t,this.addedDocuments=r,this.modifiedDocuments=n,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,t,r){return new nG(r,t,ns(),ns(),ns())}}class nK{constructor(e,t,r,n){this.me=e,this.removedTargetIds=t,this.key=r,this.fe=n}}class nY{constructor(e,t){this.targetId=e,this.ge=t}}class nX{constructor(e,t,r=tz.EMPTY_BYTE_STRING,n=null){this.state=e,this.targetIds=t,this.resumeToken=r,this.cause=n}}class nZ{constructor(){this.pe=0,this.ye=n0(),this.we=tz.EMPTY_BYTE_STRING,this.be=!1,this.Se=!0}get current(){return this.be}get resumeToken(){return this.we}get De(){return 0!==this.pe}get ve(){return this.Se}Ce(e){e.approximateByteSize()>0&&(this.Se=!0,this.we=e)}Fe(){let e=ns(),t=ns(),r=ns();return this.ye.forEach((n,i)=>{switch(i){case 0:e=e.add(n);break;case 2:t=t.add(n);break;case 1:r=r.add(n);break;default:j()}}),new nG(this.we,this.be,e,t,r)}Me(){this.Se=!1,this.ye=n0()}xe(e,t){this.Se=!0,this.ye=this.ye.insert(e,t)}Oe(e){this.Se=!0,this.ye=this.ye.remove(e)}Ne(){this.pe+=1}Be(){this.pe-=1,this.pe>=0||j()}Le(){this.Se=!0,this.be=!0}}class nQ{constructor(e){this.ke=e,this.qe=new Map,this.Qe=r9,this.$e=nJ(),this.Ke=nJ(),this.Ue=new tN(X)}We(e){for(let t of e.me)e.fe&&e.fe.isFoundDocument()?this.Ge(t,e.fe):this.ze(t,e.key,e.fe);for(let t of e.removedTargetIds)this.ze(t,e.key,e.fe)}je(e){this.forEachTarget(e,t=>{let r=this.He(t);switch(e.state){case 0:this.Je(t)&&r.Ce(e.resumeToken);break;case 1:r.Be(),r.De||r.Me(),r.Ce(e.resumeToken);break;case 2:r.Be(),r.De||this.removeTarget(t);break;case 3:this.Je(t)&&(r.Le(),r.Ce(e.resumeToken));break;case 4:this.Je(t)&&(this.Ye(t),r.Ce(e.resumeToken));break;default:j()}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.qe.forEach((e,r)=>{this.Je(r)&&t(r)})}Ze(e){let t=e.targetId,r=e.ge.count,n=this.Xe(t);if(n){let i=n.target;if(r$(i)){if(0===r){let e=new eo(i.path);this.ze(t,e,rb.newNoDocument(e,J.min()))}else 1===r||j()}else{let n=this.et(t);if(n!==r){let r=this.tt(e),i=r?this.nt(r,e,n):1;0!==i&&(this.Ye(t),this.Ue=this.Ue.insert(t,2===i?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}tt(e){let t,r;let n=e.ge.unchangedNames;if(!n||!n.bits)return null;let{bits:{bitmap:i="",padding:o=0},hashCount:s=0}=n;try{t=tq(i).toUint8Array()}catch(e){if(e instanceof tB)return L("Decoding the base64 bloom filter in existence filter failed ("+e.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw e}try{r=new n$(t,o,s)}catch(e){return L(e instanceof nW?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===r.Ee?null:r}nt(e,t,r){return t.ge.count===r-this.st(e,t.targetId)?0:2}st(e,t){let r=this.ke.getRemoteKeysForTarget(t),n=0;return r.forEach(r=>{let i=this.ke.it(),o=`projects/${i.projectId}/databases/${i.database}/documents/${r.path.canonicalString()}`;e.mightContain(o)||(this.ze(t,r,null),n++)}),n}ot(e){let t=new Map;this.qe.forEach((r,n)=>{let i=this.Xe(n);if(i){if(r.current&&r$(i.target)){let t=new eo(i.target.path);this._t(t).has(n)||this.ut(n,t)||this.ze(n,t,rb.newNoDocument(t,e))}r.ve&&(t.set(n,r.Fe()),r.Me())}});let r=ns();this.Ke.forEach((e,t)=>{let n=!0;t.forEachWhile(e=>{let t=this.Xe(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(n=!1,!1)}),n&&(r=r.add(e))}),this.Qe.forEach((t,r)=>r.setReadTime(e));let n=new nq(e,t,this.Ue,this.Qe,r);return this.Qe=r9,this.$e=nJ(),this.Ke=nJ(),this.Ue=new tN(X),n}Ge(e,t){if(!this.Je(e))return;let r=this.ut(e,t.key)?2:0;this.He(e).xe(t.key,r),this.Qe=this.Qe.insert(t.key,t),this.$e=this.$e.insert(t.key,this._t(t.key).add(e)),this.Ke=this.Ke.insert(t.key,this.ct(t.key).add(e))}ze(e,t,r){if(!this.Je(e))return;let n=this.He(e);this.ut(e,t)?n.xe(t,1):n.Oe(t),this.Ke=this.Ke.insert(t,this.ct(t).delete(e)),this.Ke=this.Ke.insert(t,this.ct(t).add(e)),r&&(this.Qe=this.Qe.insert(t,r))}removeTarget(e){this.qe.delete(e)}et(e){let t=this.He(e).Fe();return this.ke.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}Ne(e){this.He(e).Ne()}He(e){let t=this.qe.get(e);return t||(t=new nZ,this.qe.set(e,t)),t}ct(e){let t=this.Ke.get(e);return t||(t=new tj(X),this.Ke=this.Ke.insert(e,t)),t}_t(e){let t=this.$e.get(e);return t||(t=new tj(X),this.$e=this.$e.insert(e,t)),t}Je(e){let t=null!==this.Xe(e);return t||M("WatchChangeAggregator","Detected inactive target",e),t}Xe(e){let t=this.qe.get(e);return t&&t.De?null:this.ke.lt(e)}Ye(e){this.qe.set(e,new nZ),this.ke.getRemoteKeysForTarget(e).forEach(t=>{this.ze(e,t,null)})}ut(e,t){return this.ke.getRemoteKeysForTarget(e).has(t)}}function nJ(){return new tN(eo.comparator)}function n0(){return new tN(eo.comparator)}let n1={asc:"ASCENDING",desc:"DESCENDING"},n2={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},n4={and:"AND",or:"OR"};class n3{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function n5(e,t){return e.useProto3Json||null==t?t:{value:t}}function n6(e,t){return e.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function n8(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function n7(e){return e||j(),J.fromTimestamp(function(e){let t=t$(e);return new Q(t.seconds,t.nanos)}(e))}function n9(e,t){return ie(e,t).canonicalString()}function ie(e,t){let r=new er(["projects",e.projectId,"databases",e.database]).child("documents");return void 0===t?r:r.child(t)}function it(e){let t=er.fromString(e);return ib(t)||j(),t}function ir(e,t){return n9(e.databaseId,t.path)}function ii(e,t){let r=it(t);if(r.get(1)!==e.databaseId.projectId)throw new F(V.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+r.get(1)+" vs "+e.databaseId.projectId);if(r.get(3)!==e.databaseId.database)throw new F(V.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+r.get(3)+" vs "+e.databaseId.database);return new eo(il(r))}function io(e,t){return n9(e.databaseId,t)}function is(e){let t=it(e);return 4===t.length?er.emptyPath():il(t)}function ia(e){return new er(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function il(e){return e.length>4&&"documents"===e.get(4)||j(),e.popFirst(5)}function iu(e,t,r){return{name:ir(e,t),fields:r.value.mapValue.fields}}function ic(e,t,r){let n=ii(e,t.name),i=n7(t.updateTime),o=t.createTime?n7(t.createTime):J.min(),s=new rv({mapValue:{fields:t.fields}}),a=rb.newFoundDocument(n,i,o,s);return r&&a.setHasCommittedMutations(),r?a.setHasCommittedMutations():a}function ih(e,t){var r;let n;if(t instanceof nI)n={update:iu(e,t.key,t.value)};
31else if(t instanceof nN)n={delete:ir(e,t.key)};else if(t instanceof nP)n={update:iu(e,t.key,t.data),updateMask:function(e){let t=[];return e.fields.forEach(e=>t.push(e.canonicalString())),{fieldPaths:t}}(t.fieldMask)};else{if(!(t instanceof nL))return j();n={verify:ir(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map(e=>(function(e,t){let r=t.transform;if(r instanceof nf)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(r instanceof np)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:r.elements}};if(r instanceof ng)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:r.elements}};if(r instanceof nv)return{fieldPath:t.field.canonicalString(),increment:r.Ie};throw j()})(0,e))),t.precondition.isNone||(n.currentDocument=void 0!==(r=t.precondition).updateTime?{updateTime:n6(e,r.updateTime.toTimestamp())}:void 0!==r.exists?{exists:r.exists}:j()),n}function id(e,t){var r;let n=t.currentDocument?void 0!==(r=t.currentDocument).updateTime?nE.updateTime(n7(r.updateTime)):void 0!==r.exists?nE.exists(r.exists):nE.none():nE.none(),i=t.updateTransforms?t.updateTransforms.map(t=>{let r;return r=null,"setToServerValue"in t?("REQUEST_TIME"===t.setToServerValue||j(),r=new nf):"appendMissingElements"in t?r=new np(t.appendMissingElements.values||[]):"removeAllFromArray"in t?r=new ng(t.removeAllFromArray.values||[]):"increment"in t?r=new nv(e,t.increment):j(),new nx(ei.fromServerFormat(t.fieldPath),r)}):[];if(t.update){t.update.name;let r=ii(e,t.update.name),o=new rv({mapValue:{fields:t.update.fields}});return t.updateMask?new nP(r,o,new tU((t.updateMask.fieldPaths||[]).map(e=>ei.fromServerFormat(e))),n,i):new nI(r,o,n,i)}return t.delete?new nN(ii(e,t.delete),n):t.verify?new nL(ii(e,t.verify),n):j()}function ip(e,t){return{documents:[io(e,t.path)]}}function im(e,t){var r,n;let i;let o={structuredQuery:{}},s=t.path;null!==t.collectionGroup?(i=s,o.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(i=s.popLast(),o.structuredQuery.from=[{collectionId:s.lastSegment()}]),o.parent=io(e,i);let a=function(e){if(0!==e.length)return function e(t){return t instanceof rT?function(e){if("=="===e.op){if(rc(e.value))return{unaryFilter:{field:iy(e.field),op:"IS_NAN"}};if(ru(e.value))return{unaryFilter:{field:iy(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(rc(e.value))return{unaryFilter:{field:iy(e.field),op:"IS_NOT_NAN"}};if(ru(e.value))return{unaryFilter:{field:iy(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:iy(e.field),op:n2[e.op],value:e.value}}}(t):t instanceof rk?function(t){let r=t.getFilters().map(t=>e(t));return 1===r.length?r[0]:{compositeFilter:{op:n4[t.op],filters:r}}}(t):j()}(rk.create(e,"and"))}(t.filters);a&&(o.structuredQuery.where=a);let l=function(e){if(0!==e.length)return e.map(e=>({field:iy(e.field),direction:n1[e.dir]}))}(t.orderBy);l&&(o.structuredQuery.orderBy=l);let u=n5(e,t.limit);return null!==u&&(o.structuredQuery.limit=u),t.startAt&&(o.structuredQuery.startAt={before:(r=t.startAt).inclusive,values:r.position}),t.endAt&&(o.structuredQuery.endAt={before:!(n=t.endAt).inclusive,values:n.position}),{ht:o,parent:i}}function ig(e){var t;let r,n=is(e.parent),i=e.structuredQuery,o=i.from?i.from.length:0,s=null;if(o>0){1===o||j();let e=i.from[0];e.allDescendants?s=e.collectionId:n=n.child(e.collectionId)}let a=[];i.where&&(a=function(e){let t=function e(t){return void 0!==t.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":let t=iv(e.unaryFilter.field);return rT.create(t,"==",{doubleValue:NaN});case"IS_NULL":let r=iv(e.unaryFilter.field);return rT.create(r,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":let n=iv(e.unaryFilter.field);return rT.create(n,"!=",{doubleValue:NaN});case"IS_NOT_NULL":let i=iv(e.unaryFilter.field);return rT.create(i,"!=",{nullValue:"NULL_VALUE"});default:return j()}}(t):void 0!==t.fieldFilter?rT.create(iv(t.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return j()}}(t.fieldFilter.op),t.fieldFilter.value):void 0!==t.compositeFilter?rk.create(t.compositeFilter.filters.map(t=>e(t)),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return j()}}(t.compositeFilter.op)):j()}(e);return t instanceof rk&&rI(t)?t.getFilters():[t]}(i.where));let l=[];i.orderBy&&(l=i.orderBy.map(e=>new rE(iv(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))));let u=null;i.limit&&(u=null==(r="object"==typeof(t=i.limit)?t.value:t)?null:r);let c=null;i.startAt&&(c=function(e){let t=!!e.before;return new rw(e.values||[],t)}(i.startAt));let h=null;return i.endAt&&(h=function(e){let t=!e.before;return new rw(e.values||[],t)}(i.endAt)),new rK(n,s,l,a,u,"F",c,h)}function iy(e){return{fieldPath:e.canonicalString()}}function iv(e){return ei.fromServerFormat(e.fieldPath)}function ib(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}class iw{constructor(e,t,r,n,i=J.min(),o=J.min(),s=tz.EMPTY_BYTE_STRING,a=null){this.target=e,this.targetId=t,this.purpose=r,this.sequenceNumber=n,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s,this.expectedCount=a}withSequenceNumber(e){return new iw(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new iw(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new iw(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new iw(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class ix{constructor(e){this.Tt=e}}function i_(e,t){let r=t.key,n={prefixPath:r.getCollectionPath().popLast().toArray(),collectionGroup:r.collectionGroup,documentId:r.path.lastSegment(),readTime:iE(t.readTime),hasCommittedMutations:t.hasCommittedMutations};if(t.isFoundDocument()){var i;n.document={name:ir(i=e.Tt,t.key),fields:t.data.value.mapValue.fields,updateTime:n6(i,t.version.toTimestamp()),createTime:n6(i,t.createTime.toTimestamp())}}else if(t.isNoDocument())n.noDocument={path:r.path.toArray(),readTime:iS(t.ver
31sion)};else{if(!t.isUnknownDocument())return j();n.unknownDocument={path:r.path.toArray(),version:iS(t.version)}}return n}function iE(e){let t=e.toTimestamp();return[t.seconds,t.nanoseconds]}function iS(e){let t=e.toTimestamp();return{seconds:t.seconds,nanoseconds:t.nanoseconds}}function iT(e){let t=new Q(e.seconds,e.nanoseconds);return J.fromTimestamp(t)}function ik(e,t){let r=(t.baseMutations||[]).map(t=>id(e.Tt,t));for(let e=0;e<t.mutations.length-1;++e){let r=t.mutations[e];if(e+1<t.mutations.length&&void 0!==t.mutations[e+1].transform){let n=t.mutations[e+1];r.updateTransforms=n.transform.fieldTransforms,t.mutations.splice(e+1,1),++e}}let n=t.mutations.map(t=>id(e.Tt,t)),i=Q.fromMillis(t.localWriteTimeMs);return new nD(t.batchId,i,r,n)}function iA(e){var t;let r=iT(e.readTime),n=void 0!==e.lastLimboFreeSnapshotVersion?iT(e.lastLimboFreeSnapshotVersion):J.min();return new iw(void 0!==e.query.documents?(1===(t=e.query).documents.length||j(),rJ(rY(is(t.documents[0])))):rJ(ig(e.query)),e.targetId,"TargetPurposeListen",e.lastListenSequenceNumber,r,n,tz.fromBase64String(e.resumeToken))}function iC(e,t){let r;let n=iS(t.snapshotVersion),i=iS(t.lastLimboFreeSnapshotVersion);r=r$(t.target)?ip(e.Tt,t.target):im(e.Tt,t.target).ht;let o=t.resumeToken.toBase64();return{targetId:t.targetId,canonicalId:rz(t.target),readTime:n,resumeToken:o,lastListenSequenceNumber:t.sequenceNumber,lastLimboFreeSnapshotVersion:i,query:r}}function iI(e){let t=ig({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?r1(t,t.limit,"L"):t}function iP(e,t){return new nV(t.largestBatchId,id(e.Tt,t.overlayMutation))}function iR(e,t){let r=t.path.lastSegment();return[e,ej(t.path.popLast()),r]}function iO(e,t,r,n){return{indexId:e,uid:t,sequenceNumber:r,readTime:iS(n.readTime),documentKey:ej(n.documentKey.path),largestBatchId:n.largestBatchId}}class iM{getBundleMetadata(e,t){return tP(e,to).get(t).next(e=>{if(e)return{id:e.bundleId,createTime:iT(e.createTime),version:e.version}})}saveBundleMetadata(e,t){return tP(e,to).put({bundleId:t.id,createTime:iS(n7(t.createTime)),version:t.version})}getNamedQuery(e,t){return tP(e,ts).get(t).next(e=>{if(e)return{name:e.name,query:iI(e.bundledQuery),readTime:iT(e.readTime)}})}saveNamedQuery(e,t){return tP(e,ts).put({name:t.name,readTime:iS(n7(t.readTime)),bundledQuery:t.bundledQuery})}}class iN{constructor(e,t){this.serializer=e,this.userId=t}static It(e,t){return new iN(e,t.uid||"")}getOverlay(e,t){return tP(e,ty).get(iR(this.userId,t)).next(e=>e?iP(this.serializer,e):null)}getOverlays(e,t){let r=nn();return ev.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&r.set(t,e)})).next(()=>r)}saveOverlays(e,t,r){let n=[];return r.forEach((r,i)=>{let o=new nV(t,i);n.push(this.Et(e,o))}),ev.waitFor(n)}removeOverlaysForBatchId(e,t,r){let n=new Set;t.forEach(e=>n.add(ej(e.getCollectionPath())));let i=[];return n.forEach(t=>{let n=IDBKeyRange.bound([this.userId,t,r],[this.userId,t,r+1],!1,!0);i.push(tP(e,ty).J(tb,n))}),ev.waitFor(i)}getOverlaysForCollection(e,t,r){let n=nn(),i=ej(t),o=IDBKeyRange.bound([this.userId,i,r],[this.userId,i,Number.POSITIVE_INFINITY],!0);return tP(e,ty).G(tb,o).next(e=>{for(let t of e){let e=iP(this.serializer,t);n.set(e.getKey(),e)}return n})}getOverlaysForCollectionGroup(e,t,r,n){let i;let o=nn(),s=IDBKeyRange.bound([this.userId,t,r],[this.userId,t,Number.POSITIVE_INFINITY],!0);return tP(e,ty).Z({index:tx,range:s},(e,t,r)=>{let s=iP(this.serializer,t);o.size()<n||s.largestBatchId===i?(o.set(s.getKey(),s),i=s.largestBatchId):r.done()}).next(()=>o)}Et(e,t){return tP(e,ty).put(function(e,t,r){let[n,i,o]=iR(t,r.mutation.key);return{userId:t,collectionPath:i,documentId:o,collectionGroup:r.mutation.key.getCollectionGroup(),largestBatchId:r.largestBatchId,overlayMutation:ih(e.Tt,r.mutation)}}(this.serializer,this.userId,t))}}class iL{dt(e){return tP(e,tE)}getSessionToken(e){return this.dt(e).get("sessionToken").next(e=>{let t=null==e?void 0:e.value;return t?tz.fromUint8Array(t):tz.EMPTY_BYTE_STRING})}setSessionToken(e,t){return this.dt(e).put({name:"sessionToken",value:t.toUint8Array()})}}class iD{constructor(){}At(e,t){this.Rt(e,t),t.Vt()}Rt(e,t){if("nullValue"in e)this.ft(t,5);else if("booleanValue"in e)this.ft(t,10),t.gt(e.booleanValue?1:0);else if("integerValue"in e)this.ft(t,15),t.gt(tW(e.integerValue));else if("doubleValue"in e){let r=tW(e.doubleValue);isNaN(r)?this.ft(t,13):(this.ft(t,15),eL(r)?t.gt(0):t.gt(r))}else if("timestampValue"in e){let r=e.timestampValue;this.ft(t,20),"string"==typeof r&&(r=t$(r)),t.yt(`${r.seconds||""}`),t.gt(r.nanos||0)}else if("stringValue"in e)this.wt(e.stringValue,t),this.bt(t);else if("bytesValue"in e)this.ft(t,30),t.St(tq(e.bytesValue)),this.bt(t);else if("referenceValue"in e)this.Dt(e.referenceValue,t);else if("geoPointValue"in e){let r=e.geoPointValue;this.ft(t,45),t.gt(r.latitude||0),t.gt(r.longitude||0)}else"mapValue"in e?rp(e)?this.ft(t,Number.MAX_SAFE_INTEGER):rd(e)?this.vt(e.mapValue,t):(this.Ct(e.mapValue,t),this.bt(t)):"arrayValue"in e?(this.Ft(e.arrayValue,t),this.bt(t)):j()}wt(e,t){this.ft(t,25),this.Mt(e,t)}Mt(e,t){t.yt(e)}Ct(e,t){let r=e.fields||{};
31for(let e of(this.ft(t,55),Object.keys(r)))this.wt(e,t),this.Rt(r[e],t)}vt(e,t){var r,n;let i=e.fields||{};this.ft(t,53);let o=(null===(n=null===(r=i[t8].arrayValue)||void 0===r?void 0:r.values)||void 0===n?void 0:n.length)||0;this.ft(t,15),t.gt(tW(o)),this.wt(t8,t),this.Rt(i[t8],t)}Ft(e,t){let r=e.values||[];for(let e of(this.ft(t,50),r))this.Rt(e,t)}Dt(e,t){this.ft(t,37),eo.fromName(e).path.forEach(e=>{this.ft(t,60),this.Mt(e,t)})}ft(e,t){e.gt(t)}bt(e){e.gt(2)}}function ij(e){return Math.ceil((64-function(e){let t=0;for(let r=0;r<8;++r){let n=function(e){if(0===e)return 8;let t=0;return e>>4||(t+=4,e<<=4),e>>6||(t+=2,e<<=2),e>>7||(t+=1),t}(255&e[r]);if(t+=n,8!==n)break}return t}(e))/8)}iD.xt=new iD;class iV{constructor(){this.buffer=new Uint8Array(1024),this.position=0}Ot(e){let t=e[Symbol.iterator](),r=t.next();for(;!r.done;)this.Nt(r.value),r=t.next();this.Bt()}Lt(e){let t=e[Symbol.iterator](),r=t.next();for(;!r.done;)this.kt(r.value),r=t.next();this.qt()}Qt(e){for(let t of e){let e=t.charCodeAt(0);if(e<128)this.Nt(e);else if(e<2048)this.Nt(960|e>>>6),this.Nt(128|63&e);else if(t<"\ud800"||"\udbff"<t)this.Nt(480|e>>>12),this.Nt(128|63&e>>>6),this.Nt(128|63&e);else{let e=t.codePointAt(0);this.Nt(240|e>>>18),this.Nt(128|63&e>>>12),this.Nt(128|63&e>>>6),this.Nt(128|63&e)}}this.Bt()}$t(e){for(let t of e){let e=t.charCodeAt(0);if(e<128)this.kt(e);else if(e<2048)this.kt(960|e>>>6),this.kt(128|63&e);else if(t<"\ud800"||"\udbff"<t)this.kt(480|e>>>12),this.kt(128|63&e>>>6),this.kt(128|63&e);else{let e=t.codePointAt(0);this.kt(240|e>>>18),this.kt(128|63&e>>>12),this.kt(128|63&e>>>6),this.kt(128|63&e)}}this.qt()}Kt(e){let t=this.Ut(e),r=ij(t);this.Wt(1+r),this.buffer[this.position++]=255&r;for(let e=t.length-r;e<t.length;++e)this.buffer[this.position++]=255&t[e]}Gt(e){let t=this.Ut(e),r=ij(t);this.Wt(1+r),this.buffer[this.position++]=~(255&r);for(let e=t.length-r;e<t.length;++e)this.buffer[this.position++]=~(255&t[e])}zt(){this.jt(255),this.jt(255)}Ht(){this.Jt(255),this.Jt(255)}reset(){this.position=0}seed(e){this.Wt(e.length),this.buffer.set(e,this.position),this.position+=e.length}Yt(){return this.buffer.slice(0,this.position)}Ut(e){let t=function(e){let t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,e,!1),new Uint8Array(t.buffer)}(e),r=!!(128&t[0]);t[0]^=r?255:128;for(let e=1;e<t.length;++e)t[e]^=r?255:0;return t}Nt(e){let t=255&e;0===t?(this.jt(0),this.jt(255)):255===t?(this.jt(255),this.jt(0)):this.jt(t)}kt(e){let t=255&e;0===t?(this.Jt(0),this.Jt(255)):255===t?(this.Jt(255),this.Jt(0)):this.Jt(e)}Bt(){this.jt(0),this.jt(1)}qt(){this.Jt(0),this.Jt(1)}jt(e){this.Wt(1),this.buffer[this.position++]=e}Jt(e){this.Wt(1),this.buffer[this.position++]=~e}Wt(e){let t=e+this.position;if(t<=this.buffer.length)return;let r=2*this.buffer.length;r<t&&(r=t);let n=new Uint8Array(r);n.set(this.buffer),this.buffer=n}}class iF{constructor(e){this.Zt=e}St(e){this.Zt.Ot(e)}yt(e){this.Zt.Qt(e)}gt(e){this.Zt.Kt(e)}Vt(){this.Zt.zt()}}class iU{constructor(e){this.Zt=e}St(e){this.Zt.Lt(e)}yt(e){this.Zt.$t(e)}gt(e){this.Zt.Gt(e)}Vt(){this.Zt.Ht()}}class iB{constructor(){this.Zt=new iV,this.Xt=new iF(this.Zt),this.en=new iU(this.Zt)}seed(e){this.Zt.seed(e)}tn(e){return 0===e?this.Xt:this.en}Yt(){return this.Zt.Yt()}reset(){this.Zt.reset()}}class iz{constructor(e,t,r,n){this.indexId=e,this.documentKey=t,this.arrayValue=r,this.directionalValue=n}nn(){let e=this.directionalValue.length,t=0===e||255===this.directionalValue[e-1]?e+1:e,r=new Uint8Array(t);return r.set(this.directionalValue,0),t!==e?r.set([0],this.directionalValue.length):++r[r.length-1],new iz(this.indexId,this.documentKey,this.arrayValue,r)}}function iH(e,t){let r=e.indexId-t.indexId;return 0!==r?r:0!==(r=i$(e.arrayValue,t.arrayValue))?r:0!==(r=i$(e.directionalValue,t.directionalValue))?r:eo.comparator(e.documentKey,t.documentKey)}function i$(e,t){for(let r=0;r<e.length&&r<t.length;++r){let n=e[r]-t[r];if(0!==n)return n}return e.length-t.length}class iW{constructor(e){for(let t of(this.rn=new tj((e,t)=>ei.comparator(e.field,t.field)),this.collectionId=null!=e.collectionGroup?e.collectionGroup:e.path.lastSegment(),this.sn=e.orderBy,this._n=[],e.filters))t.isInequality()?this.rn=this.rn.add(t):this._n.push(t)}get an(){return this.rn.size>1}un(e){if(e.collectionGroup===this.collectionId||j(),this.an)return!1;let t=ea(e);if(void 0!==t&&!this.cn(t))return!1;let r=el(e),n=new Set,i=0,o=0;for(;i<r.length&&this.cn(r[i]);++i)n=n.add(r[i].fieldPath.canonicalString());if(i===r.length)return!0;
31if(this.rn.size>0){let e=this.rn.getIterator().getNext();if(!n.has(e.field.canonicalString())){let t=r[i];if(!this.ln(e,t)||!this.hn(this.sn[o++],t))return!1}++i}for(;i<r.length;++i){let e=r[i];if(o>=this.sn.length||!this.hn(this.sn[o++],e))return!1}return!0}Pn(){if(this.an)return null;let e=new tj(ei.comparator),t=[];for(let r of this._n)if(!r.field.isKeyField()){if("array-contains"===r.op||"array-contains-any"===r.op)t.push(new eu(r.field,2));else{if(e.has(r.field))continue;e=e.add(r.field),t.push(new eu(r.field,0))}}for(let r of this.sn)r.field.isKeyField()||e.has(r.field)||(e=e.add(r.field),t.push(new eu(r.field,"asc"===r.dir?0:1)));return new es(es.UNKNOWN_ID,this.collectionId,t,ec.empty())}cn(e){for(let t of this._n)if(this.ln(t,e))return!0;return!1}ln(e,t){if(void 0===e||!e.field.isEqual(t.fieldPath))return!1;let r="array-contains"===e.op||"array-contains-any"===e.op;return 2===t.kind===r}hn(e,t){return!!e.field.isEqual(t.fieldPath)&&(0===t.kind&&"asc"===e.dir||1===t.kind&&"desc"===e.dir)}}function iq(e){return e instanceof rT}function iG(e){return e instanceof rk&&rI(e)}function iK(e){return iq(e)||iG(e)||function(e){if(e instanceof rk&&rC(e)){for(let t of e.getFilters())if(!iq(t)&&!iG(t))return!1;return!0}return!1}(e)}function iY(e,t){return e instanceof rT||e instanceof rk||j(),t instanceof rT||t instanceof rk||j(),iZ(e instanceof rT?t instanceof rT?rk.create([e,t],"and"):iX(e,t):t instanceof rT?iX(t,e):function(e,t){if(e.filters.length>0&&t.filters.length>0||j(),rA(e)&&rA(t))return rR(e,t.getFilters());let r=rC(e)?e:t,n=rC(e)?t:e,i=r.filters.map(e=>iY(e,n));return rk.create(i,"or")}(e,t))}function iX(e,t){if(rA(t))return rR(t,e.getFilters());{let r=t.filters.map(t=>iY(e,t));return rk.create(r,"or")}}function iZ(e){if(e instanceof rT||e instanceof rk||j(),e instanceof rT)return e;let t=e.getFilters();if(1===t.length)return iZ(t[0]);if(rP(e))return e;let r=t.map(e=>iZ(e)),n=[];return r.forEach(t=>{t instanceof rT?n.push(t):t instanceof rk&&(t.op===e.op?n.push(...t.filters):n.push(t))}),1===n.length?n[0]:rk.create(n,e.op)}class iQ{constructor(){this.Tn=new iJ}addToCollectionParentIndex(e,t){return this.Tn.add(t),ev.resolve()}getCollectionParents(e,t){return ev.resolve(this.Tn.getEntries(t))}addFieldIndex(e,t){return ev.resolve()}deleteFieldIndex(e,t){return ev.resolve()}deleteAllFieldIndexes(e){return ev.resolve()}createTargetIndexes(e,t){return ev.resolve()}getDocumentsMatchingTarget(e,t){return ev.resolve(null)}getIndexType(e,t){return ev.resolve(0)}getFieldIndexes(e,t){return ev.resolve([])}getNextCollectionGroupToUpdate(e){return ev.resolve(null)}getMinOffset(e,t){return ev.resolve(ef.min())}getMinOffsetFromCollectionGroup(e,t){return ev.resolve(ef.min())}updateCollectionGroup(e,t,r){return ev.resolve()}updateIndexEntries(e,t){return ev.resolve()}}class iJ{constructor(){this.index={}}add(e){let t=e.lastSegment(),r=e.popLast(),n=this.index[t]||new tj(er.comparator),i=!n.has(r);return this.index[t]=n.add(r),i}has(e){let t=e.lastSegment(),r=e.popLast(),n=this.index[t];return n&&n.has(r)}getEntries(e){return(this.index[e]||new tj(er.comparator)).toArray()}}let i0="IndexedDbIndexManager",i1=new Uint8Array(0);class i2{constructor(e,t){this.databaseId=t,this.In=new iJ,this.En=new r7(e=>rz(e),(e,t)=>rH(e,t)),this.uid=e.uid||""}addToCollectionParentIndex(e,t){if(!this.In.has(t)){let r=t.lastSegment(),n=t.popLast();e.addOnCommittedListener(()=>{this.In.add(t)});let i={collectionId:r,parent:ej(n)};return tP(e,tr).put(i)}return ev.resolve()}getCollectionParents(e,t){let r=[],n=IDBKeyRange.bound([t,""],[t+"\0",""],!1,!0);return tP(e,tr).G(n).next(e=>{for(let n of e){if(n.collectionId!==t)break;r.push(eV(n.parent))}return r})}addFieldIndex(e,t){let r=tP(e,ta),n={indexId:t.indexId,collectionGroup:t.collectionGroup,fields:t.fields.map(e=>[e.fieldPath.canonicalString(),e.kind])};delete n.indexId;let i=r.add(n);if(t.indexState){let r=tP(e,tu);return i.next(e=>{r.put(iO(e,this.uid,t.indexState.sequenceNumber,t.indexState.offset))})}return i.next()}deleteFieldIndex(e,t){let r=tP(e,ta),n=tP(e,tu),i=tP(e,tf);return r.delete(t.indexId).next(()=>n.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0))).next(()=>i.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0)))}deleteAllFieldIndexes(e){let t=tP(e,ta),r=tP(e,tf),n=tP(e,tu);return t.J().next(()=>r.J()).next(()=>n.J())}createTargetIndexes(e,t){return ev.forEach(this.dn(t),t=>this.getIndexType(e,t).next(r=>{if(0===r||1===r){let r=new iW(t).Pn();if(null!=r)return this.addFieldIndex(e,r)}}))}getDocumentsMatchingTarget(e,t){let r=tP(e,tf),n=!0,i=new Map;return ev.forEach(this.dn(t),t=>this.An(e,t).next(e=>{n&&(n=!!e),i.set(t,e)})).next(()=>{if(n){let e=ns(),n=[];return ev.forEach(i,(i,o)=>{M(i0,`Using index id=${i.indexId}|cg=${i.collectionGroup}|f=${i.fields.map(e=>`${e.fieldPath}:${e.kind}`).join(",")} to execute ${rz(t)}`);let s=function(e,t){let r=ea(t);if(void 0===r)return null;for(let t of rW(e,r.fieldPath))switch(t.op){case"array-contains-any":return t.value.arrayValue.values||[];case"array-contains":return[t.value]}return null}(o,i),a=function(e,t){let r=new Map;for(let n of el(t))for(let t of rW(e,n.fieldPath))switch(t.op){case"==":case"in":r.set(n.fieldPath.canonicalString(),t.value);break;case"not-in":case"!=":return r.set(n.fieldPath.canonicalString(),t.value),Array.from(r.values())}return null}(o,i),l=function(e,t){let r=[],n=!0;for(let i of el(t)){let t=0===i.kind?rq(e,i.fieldPath,e.startAt):rG(e,i.fieldPath,e.startAt);r.push(t.value),n&&(n=t.inclusive)}return new rw(r,n)}(o,i),u=function(e,t){let r=[],n=!0;for(let i of el(t)){let t=0===i.kind?rG(e,i.fieldPath,e.endAt):rq(e,i.fieldPath,e.endAt);r.push(t.value),n&&(n=t.inclusive)}return new rw(r,n)}(o,i),c=this.Rn(i,o,l),h=this.Rn(i,o,u),d=this.Vn(i,o,a),f=this.mn(i.indexId,s,c,l.inclusive,h,u.inclusive,d);return ev.forEach(f,i=>r.H(i,t.limit).next(t=>{t.forEach(t=>{let r=eo.fromSegments(t.documentKey);e.has(r)||(e=e.add(r),n.push(r))})}))}).next(()=>n)}return ev.resolve(null)})}dn(e){let t=this.En.get(e);return t||(t=0===e.filters.length?[e]:(function(e){if(0===e.getFilters().length)return[];let t=function e(t){if(t instanceof rT||t instanceof rk||j(),t instanceof rT)return t;if(1===t.filters.length)return e(t.filters[0]);let r=t.filters.map(t=>e(t)),n=rk.create(r,t.op);return iK(n=iZ(n))?n:(n instanceof rk||j(),rA(n)||j(),n.filters.length>1||j(),n.filters.reduce((e,t)=>
31iY(e,t)))}(function e(t){var r,n;if(t instanceof rT||t instanceof rk||j(),t instanceof rT){if(t instanceof rj){let e=(null===(n=null===(r=t.value.arrayValue)||void 0===r?void 0:r.values)||void 0===n?void 0:n.map(e=>rT.create(t.field,"==",e)))||[];return rk.create(e,"or")}return t}let i=t.filters.map(t=>e(t));return rk.create(i,t.op)}(e));return iK(t)||j(),iq(t)||iG(t)?[t]:t.getFilters()})(rk.create(e.filters,"and")).map(t=>rB(e.path,e.collectionGroup,e.orderBy,t.getFilters(),e.limit,e.startAt,e.endAt)),this.En.set(e,t)),t}mn(e,t,r,n,i,o,s){let a=(null!=t?t.length:1)*Math.max(r.length,i.length),l=a/(null!=t?t.length:1),u=[];for(let c=0;c<a;++c){let a=t?this.fn(t[c/l]):i1,h=this.gn(e,a,r[c%l],n),d=this.pn(e,a,i[c%l],o),f=s.map(t=>this.gn(e,a,t,!0));u.push(...this.createRange(h,d,f))}return u}gn(e,t,r,n){let i=new iz(e,eo.empty(),t,r);return n?i:i.nn()}pn(e,t,r,n){let i=new iz(e,eo.empty(),t,r);return n?i.nn():i}An(e,t){let r=new iW(t),n=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment();return this.getFieldIndexes(e,n).next(e=>{let t=null;for(let n of e)r.un(n)&&(!t||n.fields.length>t.fields.length)&&(t=n);return t})}getIndexType(e,t){let r=2,n=this.dn(t);return ev.forEach(n,t=>this.An(e,t).next(e=>{e?0!==r&&e.fields.length<function(e){let t=new tj(ei.comparator),r=!1;for(let n of e.filters)for(let e of n.getFlattenedFilters())e.field.isKeyField()||("array-contains"===e.op||"array-contains-any"===e.op?r=!0:t=t.add(e.field));for(let r of e.orderBy)r.field.isKeyField()||(t=t.add(r.field));return t.size+(r?1:0)}(t)&&(r=1):r=0})).next(()=>null!==t.limit&&n.length>1&&2===r?1:r)}yn(e,t){let r=new iB;for(let n of el(e)){let e=t.data.field(n.fieldPath);if(null==e)return null;let i=r.tn(n.kind);iD.xt.At(e,i)}return r.Yt()}fn(e){let t=new iB;return iD.xt.At(e,t.tn(0)),t.Yt()}wn(e,t){let r=new iB;return iD.xt.At(rs(this.databaseId,t),r.tn(function(e){let t=el(e);return 0===t.length?0:t[t.length-1].kind}(e))),r.Yt()}Vn(e,t,r){if(null===r)return[];let n=[];n.push(new iB);let i=0;for(let o of el(e)){let e=r[i++];for(let r of n)if(this.bn(t,o.fieldPath)&&rl(e))n=this.Sn(n,o,e);else{let t=r.tn(o.kind);iD.xt.At(e,t)}}return this.Dn(n)}Rn(e,t,r){return this.Vn(e,t,r.position)}Dn(e){let t=[];for(let r=0;r<e.length;++r)t[r]=e[r].Yt();return t}Sn(e,t,r){let n=[...e],i=[];for(let e of r.arrayValue.values||[])for(let r of n){let n=new iB;n.seed(r.Yt()),iD.xt.At(e,n.tn(t.kind)),i.push(n)}return i}bn(e,t){return!!e.filters.find(e=>e instanceof rT&&e.field.isEqual(t)&&("in"===e.op||"not-in"===e.op))}getFieldIndexes(e,t){let r=tP(e,ta),n=tP(e,tu);return(t?r.G(tl,IDBKeyRange.bound(t,t)):r.G()).next(e=>{let t=[];return ev.forEach(e,e=>n.get([e.indexId,this.uid]).next(r=>{t.push(function(e,t){let r=t?new ec(t.sequenceNumber,new ef(iT(t.readTime),new eo(eV(t.documentKey)),t.largestBatchId)):ec.empty(),n=e.fields.map(([e,t])=>new eu(ei.fromServerFormat(e),t));return new es(e.indexId,e.collectionGroup,n,r)}(e,r))})).next(()=>t)})}getNextCollectionGroupToUpdate(e){return this.getFieldIndexes(e).next(e=>0===e.length?null:(e.sort((e,t)=>{let r=e.indexState.sequenceNumber-t.indexState.sequenceNumber;return 0!==r?r:X(e.collectionGroup,t.collectionGroup)}),e[0].collectionGroup))}updateCollectionGroup(e,t,r){let n=tP(e,ta),i=tP(e,tu);return this.vn(e).next(e=>n.G(tl,IDBKeyRange.bound(t,t)).next(t=>ev.forEach(t,t=>i.put(iO(t.indexId,this.uid,e,r)))))}updateIndexEntries(e,t){let r=new Map;return ev.forEach(t,(t,n)=>{let i=r.get(t.collectionGroup);return(i?ev.resolve(i):this.getFieldIndexes(e,t.collectionGroup)).next(i=>(r.set(t.collectionGroup,i),ev.forEach(i,r=>this.Cn(e,t,r).next(t=>{let i=this.Fn(n,r);return t.isEqual(i)?ev.resolve():this.Mn(e,n,r,t,i)}))))})}xn(e,t,r,n){return tP(e,tf).put({indexId:n.indexId,uid:this.uid,arrayValue:n.arrayValue,directionalValue:n.directionalValue,orderedDocumentKey:this.wn(r,t.key),documentKey:t.key.path.toArray()})}On(e,t,r,n){return tP(e,tf).delete([n.indexId,this.uid,n.arrayValue,n.directionalValue,this.wn(r,t.key),t.key.path.toArray()])}Cn(e,t,r){let n=tP(e,tf),i=new tj(iH);return n.Z({index:tm,range:IDBKeyRange.only([r.indexId,this.uid,this.wn(r,t)])},(e,n)=>{i=i.add(new iz(r.indexId,t,n.arrayValue,n.directionalValue))}).next(()=>i)}Fn(e,t){let r=new tj(iH),n=this.yn(t,e);if(null==n)return r;let i=ea(t);if(null!=i){let o=e.data.field(i.fieldPath);if(rl(o))for(let i of o.arrayValue.values||[])r=r.add(new iz(t.indexId,e.key,this.fn(i),n))}else r=r.add(new iz(t.indexId,e.key,i1,n));return r}Mn(e,t,r,n,i){M(i0,"Updating index entries for document '%s'",t.key);let o=[];return function(e,t,r,n,i){let o=e.getIterator(),s=t.getIterator(),a=tF(o),l=tF(s);for(;a||l;){let e=!1,t=!1;if(a&&l){let n=r(a,l);n<0?t=!0:n>0&&(e=!0)}else null!=a?t=!0:e=!0;e?(n(l),l=tF(s)):t?(i(a),a=tF(o)):(a=tF(o),l=tF(s))}}(n,i,iH,n=>{o.push(this.xn(e,t,r,n))},n=>{o.push(this.On(e,t,r,n))}
31),ev.waitFor(o)}vn(e){let t=1;return tP(e,tu).Z({index:th,reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},(e,r,n)=>{n.done(),t=r.sequenceNumber+1}).next(()=>t)}createRange(e,t,r){r=r.sort((e,t)=>iH(e,t)).filter((e,t,r)=>!t||0!==iH(e,r[t-1]));let n=[];for(let i of(n.push(e),r)){let r=iH(i,e),o=iH(i,t);if(0===r)n[0]=e.nn();else if(r>0&&o<0)n.push(i),n.push(i.nn());else if(o>0)break}n.push(t);let i=[];for(let e=0;e<n.length;e+=2){if(this.Nn(n[e],n[e+1]))return[];let t=[n[e].indexId,this.uid,n[e].arrayValue,n[e].directionalValue,i1,[]],r=[n[e+1].indexId,this.uid,n[e+1].arrayValue,n[e+1].directionalValue,i1,[]];i.push(IDBKeyRange.bound(t,r))}return i}Nn(e,t){return iH(e,t)>0}getMinOffsetFromCollectionGroup(e,t){return this.getFieldIndexes(e,t).next(i4)}getMinOffset(e,t){return ev.mapArray(this.dn(t),t=>this.An(e,t).next(e=>e||j())).next(i4)}}function i4(e){0!==e.length||j();let t=e[0].indexState.offset,r=t.largestBatchId;for(let n=1;n<e.length;n++){let i=e[n].indexState.offset;0>ep(i,t)&&(t=i),r<i.largestBatchId&&(r=i.largestBatchId)}return new ef(t.readTime,t.documentKey,r)}let i3={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0};class i5{static withCacheSize(e){return new i5(e,i5.DEFAULT_COLLECTION_PERCENTILE,i5.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=r}}function i6(e,t,r){let n=e.store(eH),i=e.store(eK),o=[],s=IDBKeyRange.only(r.batchId),a=0,l=n.Z({range:s},(e,t,r)=>(a++,r.delete()));o.push(l.next(()=>{1===a||j()}));let u=[];for(let e of r.mutations){var c,h;let n=(c=e.key.path,h=r.batchId,[t,ej(c),h]);o.push(i.delete(n)),u.push(e.key)}return ev.waitFor(o).next(()=>u)}function i8(e){let t;if(!e)return 0;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw j();t=e.noDocument}return JSON.stringify(t).length}i5.DEFAULT_COLLECTION_PERCENTILE=10,i5.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,i5.DEFAULT=new i5(0x2800000,i5.DEFAULT_COLLECTION_PERCENTILE,i5.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),i5.DISABLED=new i5(-1,0,0);class i7{constructor(e,t,r,n){this.userId=e,this.serializer=t,this.indexManager=r,this.referenceDelegate=n,this.Bn={}}static It(e,t,r,n){return""!==e.uid||j(),new i7(e.isAuthenticated()?e.uid:"",t,r,n)}checkEmpty(e){let t=!0,r=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return oe(e).Z({index:eW,range:r},(e,r,n)=>{t=!1,n.done()}).next(()=>t)}addMutationBatch(e,t,r,n){let i=tP(e,eK),o=oe(e);return o.add({}).next(s=>{"number"==typeof s||j();let a=new nD(s,t,r,n),l=function(e,t,r){let n=r.baseMutations.map(t=>ih(e.Tt,t)),i=r.mutations.map(t=>ih(e.Tt,t));return{userId:t,batchId:r.batchId,localWriteTimeMs:r.localWriteTime.toMillis(),baseMutations:n,mutations:i}}(this.serializer,this.userId,a),u=[],c=new tj((e,t)=>X(e.canonicalString(),t.canonicalString()));for(let e of n){let t=[this.userId,ej(e.key.path),s];c=c.add(e.key.path.popLast()),u.push(o.put(l)),u.push(i.put(t,eG))}return c.forEach(t=>{u.push(this.indexManager.addToCollectionParentIndex(e,t))}),e.addOnCommittedListener(()=>{this.Bn[s]=a.keys()}),ev.waitFor(u).next(()=>a)})}lookupMutationBatch(e,t){return oe(e).get(t).next(e=>e?(e.userId===this.userId||j(),ik(this.serializer,e)):null)}Ln(e,t){return this.Bn[t]?ev.resolve(this.Bn[t]):this.lookupMutationBatch(e,t).next(e=>{if(e){let r=e.keys();return this.Bn[t]=r,r}return null})}getNextMutationBatchAfterBatchId(e,t){let r=t+1,n=IDBKeyRange.lowerBound([this.userId,r]),i=null;return oe(e).Z({index:eW,range:n},(e,t,n)=>{t.userId===this.userId&&(t.batchId>=r||j(),i=ik(this.serializer,t)),n.done()}).next(()=>i)}getHighestUnacknowledgedBatchId(e){let t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),r=-1;return oe(e).Z({index:eW,range:t,reverse:!0},(e,t,n)=>{r=t.batchId,n.done()}).next(()=>r)}getAllMutationBatches(e){let t=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return oe(e).G(eW,t).next(e=>e.map(e=>ik(this.serializer,e)))}getAllMutationBatchesAffectingDocumentKey(e,t){let r=[this.userId,ej(t.path)],n=IDBKeyRange.lowerBound(r),i=[];return tP(e,eK).Z({range:n},(r,n,o)=>{let[s,a,l]=r,u=eV(a);if(s===this.userId&&t.path.isEqual(u))return oe(e).get(l).next(e=>{if(!e)throw j();e.userId===this.userId||j(),i.push(ik(this.serializer,e))});o.done()}).next(()=>i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let r=new tj(X),n=[];return t.forEach(t=>{let i=[this.userId,ej(t.path)],o=IDBKeyRange.lowerBound(i),s=tP(e,eK).Z({range:o},(e,n,i)=>{let[o,s,a]=e,l=eV(s);o===this.userId&&t.path.isEqual(l)?r=r.add(a):i.done()});n.push(s)}),ev.waitFor(n).next(()=>this.kn(e,r))}getAllMutationBatchesAffectingQuery(e,t){let r=t.path,n=r.length+1,i=[this.userId,ej(r)],o=IDBKeyRange.lowerBound(i),s=new tj(X);return tP(e,eK).Z({range:o},(e,t,i)=>{let[o,a,l]=e,u=eV(a);o===this.userId&&r.isPrefixOf(u)?u.length===n&&(s=s.add(l)):i.done()}).next(()=>this.kn(e,s))}kn(e,t){let r=[],n=[];return t.forEach(t=>{n.push(oe(e).get(t).next(e=>{if(null===e)throw j();e.userId===this.userId||j(),r.push(ik(this.serializer,e))}))}
31),ev.waitFor(n).next(()=>r)}removeMutationBatch(e,t){return i6(e.ue,this.userId,t).next(r=>(e.addOnCommittedListener(()=>{this.qn(t.batchId)}),ev.forEach(r,t=>this.referenceDelegate.markPotentiallyOrphaned(e,t))))}qn(e){delete this.Bn[e]}performConsistencyCheck(e){return this.checkEmpty(e).next(t=>{if(!t)return ev.resolve();let r=IDBKeyRange.lowerBound([this.userId]),n=[];return tP(e,eK).Z({range:r},(e,t,r)=>{if(e[0]===this.userId){let t=eV(e[1]);n.push(t)}else r.done()}).next(()=>{0===n.length||j()})})}containsKey(e,t){return i9(e,this.userId,t)}Qn(e){return tP(e,ez).get(this.userId).next(e=>e||{userId:this.userId,lastAcknowledgedBatchId:-1,lastStreamToken:""})}}function i9(e,t,r){let n=[t,ej(r.path)],i=n[1],o=IDBKeyRange.lowerBound(n),s=!1;return tP(e,eK).Z({range:o,Y:!0},(e,r,n)=>{let[o,a,l]=e;o===t&&a===i&&(s=!0),n.done()}).next(()=>s)}function oe(e){return tP(e,eH)}class ot{constructor(e){this.$n=e}next(){return this.$n+=2,this.$n}static Kn(){return new ot(0)}static Un(){return new ot(-1)}}class or{constructor(e,t){this.referenceDelegate=e,this.serializer=t}allocateTargetId(e){return this.Wn(e).next(t=>{let r=new ot(t.highestTargetId);return t.highestTargetId=r.next(),this.Gn(e,t).next(()=>t.highestTargetId)})}getLastRemoteSnapshotVersion(e){return this.Wn(e).next(e=>J.fromTimestamp(new Q(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds)))}getHighestSequenceNumber(e){return this.Wn(e).next(e=>e.highestListenSequenceNumber)}setTargetsMetadata(e,t,r){return this.Wn(e).next(n=>(n.highestListenSequenceNumber=t,r&&(n.lastRemoteSnapshotVersion=r.toTimestamp()),t>n.highestListenSequenceNumber&&(n.highestListenSequenceNumber=t),this.Gn(e,n)))}addTargetData(e,t){return this.zn(e,t).next(()=>this.Wn(e).next(r=>(r.targetCount+=1,this.jn(t,r),this.Gn(e,r))))}updateTargetData(e,t){return this.zn(e,t)}removeTargetData(e,t){return this.removeMatchingKeysForTargetId(e,t.targetId).next(()=>tP(e,e4).delete(t.targetId)).next(()=>this.Wn(e)).next(t=>(t.targetCount>0||j(),t.targetCount-=1,this.Gn(e,t)))}removeTargets(e,t,r){let n=0,i=[];return tP(e,e4).Z((o,s)=>{let a=iA(s);a.sequenceNumber<=t&&null===r.get(a.targetId)&&(n++,i.push(this.removeTargetData(e,a)))}).next(()=>ev.waitFor(i)).next(()=>n)}forEachTarget(e,t){return tP(e,e4).Z((e,r)=>{t(iA(r))})}Wn(e){return tP(e,tt).get(te).next(e=>(null!==e||j(),e))}Gn(e,t){return tP(e,tt).put(te,t)}zn(e,t){return tP(e,e4).put(iC(this.serializer,t))}jn(e,t){let r=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,r=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,r=!0),r}getTargetCount(e){return this.Wn(e).next(e=>e.targetCount)}getTargetData(e,t){let r=rz(t),n=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),i=null;return tP(e,e4).Z({range:n,index:e3},(e,r,n)=>{let o=iA(r);rH(t,o.target)&&(i=o,n.done())}).next(()=>i)}addMatchingKeys(e,t,r){let n=[],i=on(e);return t.forEach(t=>{let o=ej(t.path);n.push(i.put({targetId:r,path:o})),n.push(this.referenceDelegate.addReference(e,r,t))}),ev.waitFor(n)}removeMatchingKeys(e,t,r){let n=on(e);return ev.forEach(t,t=>{let i=ej(t.path);return ev.waitFor([n.delete([r,i]),this.referenceDelegate.removeReference(e,r,t)])})}removeMatchingKeysForTargetId(e,t){let r=on(e),n=IDBKeyRange.bound([t],[t+1],!1,!0);return r.delete(n)}getMatchingKeysForTargetId(e,t){let r=IDBKeyRange.bound([t],[t+1],!1,!0),n=on(e),i=ns();return n.Z({range:r,Y:!0},(e,t,r)=>{let n=new eo(eV(e[1]));i=i.add(n)}).next(()=>i)}containsKey(e,t){let r=ej(t.path),n=IDBKeyRange.bound([r],[r+"\0"],!1,!0),i=0;return on(e).Z({index:e7,Y:!0,range:n},([e,t],r,n)=>{0!==e&&(i++,n.done())}).next(()=>i>0)}lt(e,t){return tP(e,e4).get(t).next(e=>e?iA(e):null)}}function on(e){return tP(e,e6)}let oi="LruGarbageCollector";function oo([e,t],[r,n]){let i=X(e,r);return 0===i?X(t,n):i}class os{constructor(e){this.Hn=e,this.buffer=new tj(oo),this.Jn=0}Yn(){return++this.Jn}Zn(e){let t=[e,this.Yn()];if(this.buffer.size<this.Hn)this.buffer=this.buffer.add(t);else{let e=this.buffer.last();0>oo(t,e)&&(this.buffer=this.buffer.delete(e).add(t))}}get maxValue(){return this.buffer.last()[0]}}class oa{constructor(e,t,r){this.garbageCollector=e,this.asyncQueue=t,this.localStore=r,this.Xn=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.er(6e4)}stop(){this.Xn&&(this.Xn.cancel(),this.Xn=null)}get started(){return null!==this.Xn}er(e){M(oi,`Garbage collection scheduled in ${e}ms`),this.Xn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.Xn=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){eT(e)?M(oi,"Ignoring IndexedDB error during garbage collection: ",e):await ey(e)}await this.er(3e5)})}}class ol{constructor(e,t){this.tr=e,this.params=t}calculateTargetCount(e,t){return this.tr.nr(e).next(e=>Math.floor(t/100*e))}nthSequenceNumber(e,t){if(0===t)return ev.resolve(eM.ae);let r=new os(t);return this.tr.forEachTarget(e,e=>r.Zn(e.sequenceNumber)).next(()=>this.tr.rr(e,e=>r.Zn(e))).next(()=>r.maxValue)}removeTargets(e,t,r){return this.tr.removeTargets(e,t,r)}removeOrphanedDocuments(e,t){return this.tr.removeOrphanedDocuments(e,t)}collect(e,t){return -1===this.params.cacheSizeCollectionThreshold?(M("LruGarbageCollector","Garbage collection skipped; disabled"),ev.resolve(i3)):this.getCacheSize(e).next(r=>r<this.params.cacheSizeCollectionThreshold?(M("LruGarbageCollector",`Garbage collection skipped; Cache size ${r} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),i3):this.ir(e,t))}getCacheSize(e){return this.tr.getCacheSize(e)}ir(e,t){let r,n,i,o,s,a,l;let u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(t=>(t>this.params.maximumSequenceNumbersToCollect?(M("LruGarbageCollector",`C
31apping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${t}`),n=this.params.maximumSequenceNumbersToCollect):n=t,o=Date.now(),this.nthSequenceNumber(e,n))).next(n=>(r=n,s=Date.now(),this.removeTargets(e,r,t))).next(t=>(i=t,a=Date.now(),this.removeOrphanedDocuments(e,r))).next(e=>(l=Date.now(),O()<=b.$b.DEBUG&&M("LruGarbageCollector",`LRU Garbage Collection
32	Counted targets in ${o-u}ms
33	Determined least recently used ${n} in `+(s-o)+"ms\n"+`	Removed ${i} targets in `+(a-s)+"ms\n"+`	Removed ${e} documents in `+(l-a)+"ms\n"+`Total Duration: ${l-u}ms`),ev.resolve({didRun:!0,sequenceNumbersCollected:n,targetsRemoved:i,documentsRemoved:e})))}}class ou{constructor(e,t){this.db=e,this.garbageCollector=new ol(this,t)}nr(e){let t=this.sr(e);return this.db.getTargetCache().getTargetCount(e).next(e=>t.next(t=>e+t))}sr(e){let t=0;return this.rr(e,e=>{t++}).next(()=>t)}forEachTarget(e,t){return this.db.getTargetCache().forEachTarget(e,t)}rr(e,t){return this._r(e,(e,r)=>t(r))}addReference(e,t,r){return oc(e,r)}removeReference(e,t,r){return oc(e,r)}removeTargets(e,t,r){return this.db.getTargetCache().removeTargets(e,t,r)}markPotentiallyOrphaned(e,t){return oc(e,t)}ar(e,t){let r;return r=!1,tP(e,ez).X(n=>i9(e,n,t).next(e=>(e&&(r=!0),ev.resolve(!e)))).next(()=>r)}removeOrphanedDocuments(e,t){let r=this.db.getRemoteDocumentCache().newChangeBuffer(),n=[],i=0;return this._r(e,(o,s)=>{if(s<=t){let t=this.ar(e,o).next(t=>{if(!t)return i++,r.getEntry(e,o).next(()=>(r.removeEntry(o,J.min()),on(e).delete([0,ej(o.path)])))});n.push(t)}}).next(()=>ev.waitFor(n)).next(()=>r.apply(e)).next(()=>i)}removeTarget(e,t){let r=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,r)}updateLimboDocument(e,t){return oc(e,t)}_r(e,t){let r=on(e),n,i=eM.ae;return r.Z({index:e7},([e,r],{path:o,sequenceNumber:s})=>{0===e?(i!==eM.ae&&t(new eo(eV(n)),i),i=s,n=o):i=eM.ae}).next(()=>{i!==eM.ae&&t(new eo(eV(n)),i)})}getCacheSize(e){return this.db.getRemoteDocumentCache().getSize(e)}}function oc(e,t){var r;return on(e).put((r=e.currentSequenceNumber,{targetId:0,path:ej(t.path),sequenceNumber:r}))}class oh{constructor(){this.changes=new r7(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,rb.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();let r=this.changes.get(t);return void 0!==r?ev.resolve(r):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class od{constructor(e){this.serializer=e}setIndexManager(e){this.indexManager=e}addEntry(e,t,r){return tP(e,eY).put(r)}removeEntry(e,t,r){return tP(e,eY).delete(function(e,t){let r=e.path.toArray();return[r.slice(0,r.length-2),r[r.length-2],iE(t),r[r.length-1]]}(t,r))}updateMetadata(e,t){return this.getMetadata(e).next(r=>(r.byteSize+=t,this.ur(e,r)))}getEntry(e,t){let r=rb.newInvalidDocument(t);return tP(e,eY).Z({index:eZ,range:IDBKeyRange.only(op(t))},(e,n)=>{r=this.cr(t,n)}).next(()=>r)}lr(e,t){let r={size:0,document:rb.newInvalidDocument(t)};return tP(e,eY).Z({index:eZ,range:IDBKeyRange.only(op(t))},(e,n)=>{r={document:this.cr(t,n),size:i8(n)}}).next(()=>r)}getEntries(e,t){let r=r9;return this.hr(e,t,(e,t)=>{let n=this.cr(e,t);r=r.insert(e,n)}).next(()=>r)}Pr(e,t){let r=r9,n=new tN(eo.comparator);return this.hr(e,t,(e,t)=>{let i=this.cr(e,t);r=r.insert(e,i),n=n.insert(e,i8(t))}).next(()=>({documents:r,Tr:n}))}hr(e,t,r){if(t.isEmpty())return ev.resolve();let n=new tj(og);t.forEach(e=>n=n.add(e));let i=IDBKeyRange.bound(op(n.first()),op(n.last())),o=n.getIterator(),s=o.getNext();return tP(e,eY).Z({index:eZ,range:i},(e,t,n)=>{let i=eo.fromSegments([...t.prefixPath,t.collectionGroup,t.documentId]);for(;s&&0>og(s,i);)r(s,null),s=o.getNext();s&&s.isEqual(i)&&(r(s,t),s=o.hasNext()?o.getNext():null),s?n.W(op(s)):n.done()}).next(()=>{for(;s;)r(s,null),s=o.hasNext()?o.getNext():null})}getDocumentsMatchingQuery(e,t,r,n,i){let o=t.path,s=[o.popLast().toArray(),o.lastSegment(),iE(r.readTime),r.documentKey.path.isEmpty()?"":r.documentKey.path.lastSegment()],a=[o.popLast().toArray(),o.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return tP(e,eY).G(IDBKeyRange.bound(s,a,!0)).next(e=>{null==i||i.incrementDocumentReadCount(e.length);let r=r9;for(let i of e){let e=this.cr(eo.fromSegments(i.prefixPath.concat(i.collectionGroup,i.documentId)),i);
33e.isFoundDocument()&&(r5(t,e)||n.has(e.key))&&(r=r.insert(e.key,e))}return r})}getAllFromCollectionGroup(e,t,r,n){let i=r9,o=om(t,r),s=om(t,ef.max());return tP(e,eY).Z({index:eJ,range:IDBKeyRange.bound(o,s,!0)},(e,t,r)=>{let o=this.cr(eo.fromSegments(t.prefixPath.concat(t.collectionGroup,t.documentId)),t);(i=i.insert(o.key,o)).size===n&&r.done()}).next(()=>i)}newChangeBuffer(e){return new of(this,!!e&&e.trackRemovals)}getSize(e){return this.getMetadata(e).next(e=>e.byteSize)}getMetadata(e){return tP(e,e1).get(e2).next(e=>(e||j(),e))}ur(e,t){return tP(e,e1).put(e2,t)}cr(e,t){if(t){let e=function(e,t){let r;if(t.document)r=ic(e.Tt,t.document,!!t.hasCommittedMutations);else if(t.noDocument){let e=eo.fromSegments(t.noDocument.path),n=iT(t.noDocument.readTime);r=rb.newNoDocument(e,n),t.hasCommittedMutations&&r.setHasCommittedMutations()}else{if(!t.unknownDocument)return j();{let e=eo.fromSegments(t.unknownDocument.path),n=iT(t.unknownDocument.version);r=rb.newUnknownDocument(e,n)}}return t.readTime&&r.setReadTime(function(e){let t=new Q(e[0],e[1]);return J.fromTimestamp(t)}(t.readTime)),r}(this.serializer,t);if(!(e.isNoDocument()&&e.version.isEqual(J.min())))return e}return rb.newInvalidDocument(e)}}class of extends oh{constructor(e,t){super(),this.Ir=e,this.trackRemovals=t,this.Er=new r7(e=>e.toString(),(e,t)=>e.isEqual(t))}applyChanges(e){let t=[],r=0,n=new tj((e,t)=>X(e.canonicalString(),t.canonicalString()));
vendor: 4,350 bytes, line 33
33return this.changes.forEach((i,o)=>{let s=this.Er.get(i);if(t.push(this.Ir.removeEntry(e,i,s.readTime)),o.isValidDocument()){let a=i_(this.Ir.serializer,o);n=n.add(i.path.popLast());let l=i8(a);r+=l-s.size,t.push(this.Ir.addEntry(e,i,a))}else if(r-=s.size,this.trackRemovals){let r=i_(this.Ir.serializer,o.convertToNoDocument(J.min()));t.push(this.Ir.addEntry(e,i,r))}}),n.forEach(r=>{t.push(this.Ir.indexManager.addToCollectionParentIndex(e,r))}),t.push(this.Ir.updateMetadata(e,r)),ev.waitFor(t)}getFromCache(e,t){return this.Ir.lr(e,t).next(e=>(this.Er.set(t,{size:e.size,readTime:e.document.readTime}),e.document))}getAllFromCache(e,t){return this.Ir.Pr(e,t).next(({documents:e,Tr:t})=>(t.forEach((t,r)=>{this.Er.set(t,{size:r,readTime:e.get(t).readTime})}),e))}}function op(e){let t=e.path.toArray();return[t.slice(0,t.length-2),t[t.length-2],t[t.length-1]]}function om(e,t){let r=t.documentKey.path.toArray();return[e,iE(t.readTime),r.slice(0,r.length-2),r.length>0?r[r.length-1]:""]}function og(e,t){let r=e.path.toArray(),n=t.path.toArray(),i=0;for(let e=0;e<r.length-2&&e<n.length-2;++e)if(i=X(r[e],n[e]))return i;return(i=X(r.length,n.length))||(i=X(r[r.length-2],n[n.length-2]))||X(r[r.length-1],n[n.length-1])}class oy{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class ov{constructor(e,t,r,n){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=r,this.indexManager=n}getDocument(e,t){let r=null;return this.documentOverlayCache.getOverlay(e,t).next(n=>(r=n,this.remoteDocumentCache.getEntry(e,t))).next(e=>(null!==r&&nA(r.mutation,e,tU.empty(),Q.now()),e))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.getLocalViewOfDocuments(e,t,ns()).next(()=>t))}getLocalViewOfDocuments(e,t,r=ns()){let n=nn();return this.populateOverlays(e,n,t).next(()=>this.computeViews(e,t,n,r).next(e=>{let t=nt();return e.forEach((e,r)=>{t=t.insert(e,r.overlayedDocument)}),t}))}getOverlayedDocuments(e,t){let r=nn();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,ns()))}populateOverlays(e,t,r){let n=[];return r.forEach(e=>{t.has(e)||n.push(e)}),this.documentOverlayCache.getOverlays(e,n).next(e=>{e.forEach((e,r)=>{t.set(e,r)})})}computeViews(e,t,r,n){let i=r9,o=nn(),s=nn();return t.forEach((e,t)=>{let s=r.get(t.key);n.has(t.key)&&(void 0===s||s.mutation instanceof nP)?i=i.insert(t.key,t):void 0!==s?(o.set(t.key,s.mutation.getFieldMask()),nA(s.mutation,t,s.mutation.getFieldMask(),Q.now())):o.set(t.key,tU.empty())}),this.recalculateAndSaveOverlays(e,i).next(e=>(e.forEach((e,t)=>o.set(e,t)),t.forEach((e,t)=>{var r;return s.set(e,new oy(t,null!==(r=o.get(e))&&void 0!==r?r:null))}),s))}recalculateAndSaveOverlays(e,t){let r=nn(),n=new tN((e,t)=>e-t),i=ns();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(e=>{for(let i of e)i.keys().forEach(e=>{let o=t.get(e);if(null===o)return;let s=r.get(e)||tU.empty();s=i.applyToLocalView(o,s),r.set(e,s);let a=(n.get(i.batchId)||ns()).add(e);n=n.insert(i.batchId,a)})}).next(()=>{let o=[],s=n.getReverseIterator();for(;s.hasNext();){let n=s.getNext(),a=n.key,l=n.value,u=nn();l.forEach(e=>{if(!i.has(e)){let n=nk(t.get(e),r.get(e));null!==n&&u.set(e,n),i=i.add(e)}}),o.push(this.documentOverlayCache.saveOverlays(e,a,u))}return ev.waitFor(o)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.recalculateAndSaveOverlays(e,t))}getDocumentsMatchingQuery(e,t,r,n){return eo.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length?this.getDocumentsMatchingDocumentQuery(e,t.path):rZ(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,r,n):this.getDocumentsMatchingCollectionQuery(e,t,r,n)}getNextDocuments(e,t,r,n){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,r,n).next(i=>{let o=n-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,r.largestBatchId,n-i.size):ev.resolve(nn()),s=-1,a=i;return o.next(t=>ev.forEach(t,(t,r)=>(s<r.largestBatchId&&(s=r.largestBatchId),i.get(t)?ev.resolve():this.remoteDocumentCache.getEntry(e,t).next(e=>{a=a.insert(t,e)}))).next(()=>this.populateOverlays(e,t,i)).next(()=>this.computeViews(e,a,t,ns())).next(e=>({batchId:s,changes:nr(e)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new eo(t)).next(e=>{let t=nt();
vendor: 4,142 bytes, line 33
33return e.isFoundDocument()&&(t=t.insert(e.key,e)),t})}getDocumentsMatchingCollectionGroupQuery(e,t,r,n){let i=t.collectionGroup,o=nt();return this.indexManager.getCollectionParents(e,i).next(s=>ev.forEach(s,s=>{let a=new rK(s.child(i),null,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt);return this.getDocumentsMatchingCollectionQuery(e,a,r,n).next(e=>{e.forEach((e,t)=>{o=o.insert(e,t)})})}).next(()=>o))}getDocumentsMatchingCollectionQuery(e,t,r,n){let i;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,r.largestBatchId).next(o=>(i=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,r,i,n))).next(e=>{i.forEach((t,r)=>{let n=r.getKey();null===e.get(n)&&(e=e.insert(n,rb.newInvalidDocument(n)))});let r=nt();return e.forEach((e,n)=>{let o=i.get(e);void 0!==o&&nA(o.mutation,n,tU.empty(),Q.now()),r5(t,n)&&(r=r.insert(e,n))}),r})}}class ob{constructor(e){this.serializer=e,this.dr=new Map,this.Ar=new Map}getBundleMetadata(e,t){return ev.resolve(this.dr.get(t))}saveBundleMetadata(e,t){return this.dr.set(t.id,{id:t.id,version:t.version,createTime:n7(t.createTime)}),ev.resolve()}getNamedQuery(e,t){return ev.resolve(this.Ar.get(t))}saveNamedQuery(e,t){return this.Ar.set(t.name,{name:t.name,query:iI(t.bundledQuery),readTime:n7(t.readTime)}),ev.resolve()}}class ow{constructor(){this.overlays=new tN(eo.comparator),this.Rr=new Map}getOverlay(e,t){return ev.resolve(this.overlays.get(t))}getOverlays(e,t){let r=nn();return ev.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&r.set(t,e)})).next(()=>r)}saveOverlays(e,t,r){return r.forEach((r,n)=>{this.Et(e,t,n)}),ev.resolve()}removeOverlaysForBatchId(e,t,r){let n=this.Rr.get(r);return void 0!==n&&(n.forEach(e=>this.overlays=this.overlays.remove(e)),this.Rr.delete(r)),ev.resolve()}getOverlaysForCollection(e,t,r){let n=nn(),i=t.length+1,o=new eo(t.child("")),s=this.overlays.getIteratorFrom(o);for(;s.hasNext();){let e=s.getNext().value,o=e.getKey();if(!t.isPrefixOf(o.path))break;o.path.length===i&&e.largestBatchId>r&&n.set(e.getKey(),e)}return ev.resolve(n)}getOverlaysForCollectionGroup(e,t,r,n){let i=new tN((e,t)=>e-t),o=this.overlays.getIterator();for(;o.hasNext();){let e=o.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>r){let t=i.get(e.largestBatchId);null===t&&(t=nn(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}let s=nn(),a=i.getIterator();for(;a.hasNext()&&(a.getNext().value.forEach((e,t)=>s.set(e,t)),!(s.size()>=n)););return ev.resolve(s)}Et(e,t,r){let n=this.overlays.get(r.key);if(null!==n){let e=this.Rr.get(n.largestBatchId).delete(r.key);this.Rr.set(n.largestBatchId,e)}this.overlays=this.overlays.insert(r.key,new nV(t,r));let i=this.Rr.get(t);void 0===i&&(i=ns(),this.Rr.set(t,i)),this.Rr.set(t,i.add(r.key))}}class ox{constructor(){this.sessionToken=tz.EMPTY_BYTE_STRING}getSessionToken(e){return ev.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,ev.resolve()}}class o_{constructor(){this.Vr=new tj(oE.mr),this.gr=new tj(oE.pr)}isEmpty(){return this.Vr.isEmpty()}addReference(e,t){let r=new oE(e,t);this.Vr=this.Vr.add(r),this.gr=this.gr.add(r)}yr(e,t){e.forEach(e=>this.addReference(e,t))}removeReference(e,t){this.wr(new oE(e,t))}br(e,t){e.forEach(e=>this.removeReference(e,t))}Sr(e){let t=new eo(new er([])),r=new oE(t,e),n=new oE(t,e+1),i=[];return this.gr.forEachInRange([r,n],e=>{this.wr(e),i.push(e.key)}),i}Dr(){this.Vr.forEach(e=>this.wr(e))}wr(e){this.Vr=this.Vr.delete(e),this.gr=this.gr.delete(e)}vr(e){let t=new eo(new er([])),r=new oE(t,e),n=new oE(t,e+1),i=ns();return this.gr.forEachInRange([r,n],e=>{i=i.add(e.key)}),i}containsKey(e){let t=new oE(e,0),r=this.Vr.firstAfterOrEqual(t);return null!==r&&e.isEqual(r.key)}}class oE{constructor(e,t){this.key=e,this.Cr=t}static mr(e,t){return eo.comparator(e.key,t.key)||X(e.Cr,t.Cr)}static pr(e,t){return X(e.Cr,t.Cr)||eo.comparator(e.key,t.key)}}class oS{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.Fr=1,this.Mr=new tj(oE.mr)}checkEmpty(e){return ev.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,r,n){let i=this.Fr;
33this.Fr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];let o=new nD(i,t,r,n);for(let t of(this.mutationQueue.push(o),n))this.Mr=this.Mr.add(new oE(t.key,i)),this.indexManager.addToCollectionParentIndex(e,t.key.path.popLast());return ev.resolve(o)}lookupMutationBatch(e,t){return ev.resolve(this.Or(t))}getNextMutationBatchAfterBatchId(e,t){let r=this.Nr(t+1),n=r<0?0:r;return ev.resolve(this.mutationQueue.length>n?this.mutationQueue[n]:null)}getHighestUnacknowledgedBatchId(){return ev.resolve(0===this.mutationQueue.length?-1:this.Fr-1)}getAllMutationBatches(e){return ev.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){let r=new oE(t,0),n=new oE(t,Number.POSITIVE_INFINITY),i=[];return this.Mr.forEachInRange([r,n],e=>{let t=this.Or(e.Cr);i.push(t)}),ev.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let r=new tj(X);return t.forEach(e=>{let t=new oE(e,0),n=new oE(e,Number.POSITIVE_INFINITY);this.Mr.forEachInRange([t,n],e=>{r=r.add(e.Cr)})}),ev.resolve(this.Br(r))}getAllMutationBatchesAffectingQuery(e,t){let r=t.path,n=r.length+1,i=r;eo.isDocumentKey(i)||(i=i.child(""));let o=new oE(new eo(i),0),s=new tj(X);return this.Mr.forEachWhile(e=>{let t=e.key.path;return!!r.isPrefixOf(t)&&(t.length===n&&(s=s.add(e.Cr)),!0)},o),ev.resolve(this.Br(s))}Br(e){let t=[];return e.forEach(e=>{let r=this.Or(e);null!==r&&t.push(r)}),t}removeMutationBatch(e,t){0===this.Lr(t.batchId,"removed")||j(),this.mutationQueue.shift();let r=this.Mr;return ev.forEach(t.mutations,n=>{let i=new oE(n.key,t.batchId);return r=r.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,n.key)}).next(()=>{this.Mr=r})}qn(e){}containsKey(e,t){let r=new oE(t,0),n=this.Mr.firstAfterOrEqual(r);return ev.resolve(t.isEqual(n&&n.key))}performConsistencyCheck(e){return this.mutationQueue.length,ev.resolve()}Lr(e,t){return this.Nr(e)}Nr(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Or(e){let t=this.Nr(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class oT{constructor(e){this.kr=e,this.docs=new tN(eo.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){let r=t.key,n=this.docs.get(r),i=n?n.size:0,o=this.kr(t);return this.docs=this.docs.insert(r,{document:t.mutableCopy(),size:o}),this.size+=o-i,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){let t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){let r=this.docs.get(t);return ev.resolve(r?r.document.mutableCopy():rb.newInvalidDocument(t))}getEntries(e,t){let r=r9;return t.forEach(e=>{let t=this.docs.get(e);r=r.insert(e,t?t.document.mutableCopy():rb.newInvalidDocument(e))}),ev.resolve(r)}getDocumentsMatchingQuery(e,t,r,n){let i=r9,o=t.path,s=new eo(o.child("__id-9223372036854775808__")),a=this.docs.getIteratorFrom(s);for(;a.hasNext();){let{key:e,value:{document:s}}=a.getNext();if(!o.isPrefixOf(e.path))break;e.path.length>o.length+1||0>=ep(ed(s),r)||(n.has(s.key)||r5(t,s))&&(i=i.insert(s.key,s.mutableCopy()))}return ev.resolve(i)}getAllFromCollectionGroup(e,t,r,n){j()}qr(e,t){return ev.forEach(this.docs,e=>t(e))}newChangeBuffer(e){return new ok(this)}getSize(e){return ev.resolve(this.size)}}class ok extends oh{constructor(e){super(),this.Ir=e}applyChanges(e){let t=[];
vendor: 4,728 bytes, line 33
33return this.changes.forEach((r,n)=>{n.isValidDocument()?t.push(this.Ir.addEntry(e,n)):this.Ir.removeEntry(r)}),ev.waitFor(t)}getFromCache(e,t){return this.Ir.getEntry(e,t)}getAllFromCache(e,t){return this.Ir.getEntries(e,t)}}class oA{constructor(e){this.persistence=e,this.Qr=new r7(e=>rz(e),rH),this.lastRemoteSnapshotVersion=J.min(),this.highestTargetId=0,this.$r=0,this.Kr=new o_,this.targetCount=0,this.Ur=ot.Kn()}forEachTarget(e,t){return this.Qr.forEach((e,r)=>t(r)),ev.resolve()}getLastRemoteSnapshotVersion(e){return ev.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ev.resolve(this.$r)}allocateTargetId(e){return this.highestTargetId=this.Ur.next(),ev.resolve(this.highestTargetId)}setTargetsMetadata(e,t,r){return r&&(this.lastRemoteSnapshotVersion=r),t>this.$r&&(this.$r=t),ev.resolve()}zn(e){this.Qr.set(e.target,e);let t=e.targetId;t>this.highestTargetId&&(this.Ur=new ot(t),this.highestTargetId=t),e.sequenceNumber>this.$r&&(this.$r=e.sequenceNumber)}addTargetData(e,t){return this.zn(t),this.targetCount+=1,ev.resolve()}updateTargetData(e,t){return this.zn(t),ev.resolve()}removeTargetData(e,t){return this.Qr.delete(t.target),this.Kr.Sr(t.targetId),this.targetCount-=1,ev.resolve()}removeTargets(e,t,r){let n=0,i=[];return this.Qr.forEach((o,s)=>{s.sequenceNumber<=t&&null===r.get(s.targetId)&&(this.Qr.delete(o),i.push(this.removeMatchingKeysForTargetId(e,s.targetId)),n++)}),ev.waitFor(i).next(()=>n)}getTargetCount(e){return ev.resolve(this.targetCount)}getTargetData(e,t){let r=this.Qr.get(t)||null;return ev.resolve(r)}addMatchingKeys(e,t,r){return this.Kr.yr(t,r),ev.resolve()}removeMatchingKeys(e,t,r){this.Kr.br(t,r);let n=this.persistence.referenceDelegate,i=[];return n&&t.forEach(t=>{i.push(n.markPotentiallyOrphaned(e,t))}),ev.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this.Kr.Sr(t),ev.resolve()}getMatchingKeysForTargetId(e,t){let r=this.Kr.vr(t);return ev.resolve(r)}containsKey(e,t){return ev.resolve(this.Kr.containsKey(t))}}class oC{constructor(e,t){this.Wr={},this.overlays={},this.Gr=new eM(0),this.zr=!1,this.zr=!0,this.jr=new ox,this.referenceDelegate=e(this),this.Hr=new oA(this),this.indexManager=new iQ,this.remoteDocumentCache=new oT(e=>this.referenceDelegate.Jr(e)),this.serializer=new ix(t),this.Yr=new ob(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.zr=!1,Promise.resolve()}get started(){return this.zr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new ow,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let r=this.Wr[e.toKey()];return r||(r=new oS(t,this.referenceDelegate),this.Wr[e.toKey()]=r),r}getGlobalsCache(){return this.jr}getTargetCache(){return this.Hr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Yr}runTransaction(e,t,r){M("MemoryPersistence","Starting transaction:",e);let n=new oI(this.Gr.next());return this.referenceDelegate.Zr(),r(n).next(e=>this.referenceDelegate.Xr(n).next(()=>e)).toPromise().then(e=>(n.raiseOnCommittedEvent(),e))}ei(e,t){return ev.or(Object.values(this.Wr).map(r=>()=>r.containsKey(e,t)))}}class oI extends eg{constructor(e){super(),this.currentSequenceNumber=e}}class oP{constructor(e){this.persistence=e,this.ti=new o_,this.ni=null}static ri(e){return new oP(e)}get ii(){if(this.ni)return this.ni;throw j()}addReference(e,t,r){return this.ti.addReference(r,t),this.ii.delete(r.toString()),ev.resolve()}removeReference(e,t,r){return this.ti.removeReference(r,t),this.ii.add(r.toString()),ev.resolve()}markPotentiallyOrphaned(e,t){return this.ii.add(t.toString()),ev.resolve()}removeTarget(e,t){this.ti.Sr(t.targetId).forEach(e=>this.ii.add(e.toString()));let r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next(e=>{e.forEach(e=>this.ii.add(e.toString()))}).next(()=>r.removeTargetData(e,t))}Zr(){this.ni=new Set}Xr(e){let t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ev.forEach(this.ii,r=>{let n=eo.fromPath(r);return this.si(e,n).next(e=>{e||t.removeEntry(n,J.min())})}).next(()=>(this.ni=null,t.apply(e)))}updateLimboDocument(e,t){return this.si(e,t).next(e=>{e?this.ii.delete(t.toString()):this.ii.add(t.toString())})}Jr(e){return 0}si(e,t){return ev.or([()=>ev.resolve(this.ti.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.ei(e,t)])}}class oR{constructor(e,t){this.persistence=e,this.oi=new r7(e=>ej(e.path),(e,t)=>e.isEqual(t)),this.garbageCollector=new ol(this,t)}static ri(e,t){return new oR(e,t)}Zr(){}Xr(e){return ev.resolve()}forEachTarget(e,t){return this.persistence.getTargetCache().forEac
33hTarget(e,t)}nr(e){let t=this.sr(e);return this.persistence.getTargetCache().getTargetCount(e).next(e=>t.next(t=>e+t))}sr(e){let t=0;return this.rr(e,e=>{t++}).next(()=>t)}rr(e,t){return ev.forEach(this.oi,(r,n)=>this.ar(e,r,n).next(e=>e?ev.resolve():t(n)))}removeTargets(e,t,r){return this.persistence.getTargetCache().removeTargets(e,t,r)}removeOrphanedDocuments(e,t){let r=0,n=this.persistence.getRemoteDocumentCache(),i=n.newChangeBuffer();return n.qr(e,n=>this.ar(e,n,t).next(e=>{e||(r++,i.removeEntry(n,J.min()))})).next(()=>i.apply(e)).next(()=>r)}markPotentiallyOrphaned(e,t){return this.oi.set(t,e.currentSequenceNumber),ev.resolve()}removeTarget(e,t){let r=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,r)}addReference(e,t,r){return this.oi.set(r,e.currentSequenceNumber),ev.resolve()}removeReference(e,t,r){return this.oi.set(r,e.currentSequenceNumber),ev.resolve()}updateLimboDocument(e,t){return this.oi.set(t,e.currentSequenceNumber),ev.resolve()}Jr(e){let t=e.key.toString().length;return e.isFoundDocument()&&(t+=function e(t){switch(t9(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:let r=tQ(t);return r?16+e(r):16;case 5:return 2*t.stringValue.length;case 6:return tq(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return(t.arrayValue.values||[]).reduce((t,r)=>t+e(r),0);case 10:case 11:var n;let i;return n=t.mapValue,i=0,tO(n.fields,(t,r)=>{i+=t.length+e(r)}),i;default:throw j()}}(e.data.value)),t}ar(e,t,r){return ev.or([()=>this.persistence.ei(e,t),()=>this.persistence.getTargetCache().containsKey(e,t),()=>{let e=this.oi.get(t);return ev.resolve(void 0!==e&&e>r)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}class oO{constructor(e){this.serializer=e}B(e,t,r,n){let i=new ew("createOrUpgrade",t);r<1&&n>=1&&(!function(e){e.createObjectStore(eU)}(e),e.createObjectStore(ez,{keyPath:"userId"}),e.createObjectStore(eH,{keyPath:e$,autoIncrement:!0}).createIndex(eW,eq,{unique:!0}),e.createObjectStore(eK),oM(e),function(e){e.createObjectStore(eF)}(e));let o=ev.resolve();return r<3&&n>=3&&(0!==r&&(e.deleteObjectStore(e6),e.deleteObjectStore(e4),e.deleteObjectStore(tt),oM(e)),o=o.next(()=>(function(e){let t=e.store(tt),r={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:J.min().toTimestamp(),targetCount:0};return t.put(te,r)})(i))),r<4&&n>=4&&(0!==r&&(o=o.next(()=>i.store(eH).G().next(t=>{e.deleteObjectStore(eH),e.createObjectStore(eH,{keyPath:e$,autoIncrement:!0}).createIndex(eW,eq,{unique:!0});let r=i.store(eH),n=t.map(e=>r.put(e));return ev.waitFor(n)}))),o=o.next(()=>{!function(e){e.createObjectStore(ti,{keyPath:"clientId"})}(e)})),r<5&&n>=5&&(o=o.next(()=>this._i(i))),r<6&&n>=6&&(o=o.next(()=>((function(e){e.createObjectStore(e1)})(e),this.ai(i)))),r<7&&n>=7&&(o=o.next(()=>this.ui(i))),r<8&&n>=8&&(o=o.next(()=>this.ci(e,i))),r<9&&n>=9&&(o=o.next(()=>{e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")})),r<10&&n>=10&&(o=o.next(()=>this.li(i))),r<11&&n>=11&&(o=o.next(()=>{(function(e){e.createObjectStore(to,{keyPath:"bundleId"})})(e),function(e){e.createObjectStore(ts,{keyPath:"name"})}(e)})),r<12&&n>=12&&(o=o.next(()=>{!function(e){let t=e.createObjectStore(ty,{keyPath:tv});t.createIndex(tb,tw,{unique:!1}),t.createIndex(tx,t_,{unique:!1})}(e)})),r<13&&n>=13&&(o=o.next(()=>(function(e){let t=e.createObjectStore(eY,{keyPath:eX});t.createIndex(eZ,eQ),t.createIndex(eJ,e0)})(e)).next(()=>this.hi(e,i)).next(()=>e.deleteObjectStore(eF))),r<14&&n>=14&&(o=o.next(()=>this.Pi(e,i))),r<15&&n>=15&&(o=o.next(()=>{e.createObjectStore(ta,{keyPath:"indexId",autoIncrement:!0}).createIndex(tl,"collectionGroup",{unique:!1}),e.createObjectStore(tu,{keyPath:tc}).createIndex(th,td,{unique:!1}),e.createObjectStore(tf,{keyPath:tp}).createIndex(tm,tg,{unique:!1})})),r<16&&n>=16&&(o=o.next(()=>{t.objectStore(tu).clear()}).next(()=>{t.objectStore(tf).clear()}
33)),r<17&&n>=17&&(o=o.next(()=>{!function(e){e.createObjectStore(tE,{keyPath:"name"})}(e)})),o}ai(e){let t=0;return e.store(eF).Z((e,r)=>{t+=i8(r)}).next(()=>{let r={byteSize:t};return e.store(e1).put(e2,r)})}_i(e){let t=e.store(ez),r=e.store(eH);return t.G().next(t=>ev.forEach(t,t=>{let n=IDBKeyRange.bound([t.userId,-1],[t.userId,t.lastAcknowledgedBatchId]);return r.G(eW,n).next(r=>ev.forEach(r,r=>{r.userId===t.userId||j();let n=ik(this.serializer,r);return i6(e,t.userId,n).next(()=>{})}))}))}ui(e){let t=e.store(e6),r=e.store(eF);return e.store(tt).get(te).next(e=>{let n=[];return r.Z((r,i)=>{let o=new er(r),s=[0,ej(o)];n.push(t.get(s).next(r=>r?ev.resolve():t.put({targetId:0,path:ej(o),sequenceNumber:e.highestListenSequenceNumber})))}).next(()=>ev.waitFor(n))})}ci(e,t){e.createObjectStore(tr,{keyPath:tn});let r=t.store(tr),n=new iJ,i=e=>{if(n.add(e)){let t=e.lastSegment(),n=e.popLast();return r.put({collectionId:t,parent:ej(n)})}};return t.store(eF).Z({Y:!0},(e,t)=>i(new er(e).popLast())).next(()=>t.store(eK).Z({Y:!0},([e,t,r],n)=>i(eV(t).popLast())))}li(e){let t=e.store(e4);return t.Z((e,r)=>{let n=iA(r),i=iC(this.serializer,n);return t.put(i)})}hi(e,t){let r=t.store(eF),n=[];return r.Z((e,r)=>{let i=t.store(eY),o=(r.document?new eo(er.fromString(r.document.name).popFirst(5)):r.noDocument?eo.fromSegments(r.noDocument.path):r.unknownDocument?eo.fromSegments(r.unknownDocument.path):j()).path.toArray(),s={prefixPath:o.slice(0,o.length-2),collectionGroup:o[o.length-2],documentId:o[o.length-1],readTime:r.readTime||[0,0],unknownDocument:r.unknownDocument,noDocument:r.noDocument,document:r.document,hasCommittedMutations:!!r.hasCommittedMutations};n.push(i.put(s))}).next(()=>ev.waitFor(n))}Pi(e,t){let r=t.store(eH),n=new od(this.serializer),i=new oC(oP.ri,this.serializer.Tt);return r.G().next(e=>{let r=new Map;return e.forEach(e=>{var t;let n=null!==(t=r.get(e.userId))&&void 0!==t?t:ns();ik(this.serializer,e).keys().forEach(e=>n=n.add(e)),r.set(e.userId,n)}),ev.forEach(r,(e,r)=>{let o=new I(r),s=iN.It(this.serializer,o),a=i.getIndexManager(o);return new ov(n,i7.It(o,this.serializer,a,i.referenceDelegate),s,a).recalculateAndSaveOverlaysForDocumentKeys(new tI(t,eM.ae),e).next()})})}}function oM(e){e.createObjectStore(e6,{keyPath:e8}).createIndex(e7,e9,{unique:!0}),e.createObjectStore(e4,{keyPath:"targetId"}).createIndex(e3,e5,{unique:!0}),e.createObjectStore(tt)}let oN="IndexedDbPersistence",oL="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";class oD{constructor(e,t,r,n,i,o,s,a,l,u,c=17){if(this.allowTabSynchronization=e,this.persistenceKey=t,this.clientId=r,this.Ti=i,this.window=o,this.document=s,this.Ii=l,this.Ei=u,this.di=c,this.Gr=null,this.zr=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Ai=null,this.inForeground=!1,this.Ri=null,this.Vi=null,this.mi=Number.NEGATIVE_INFINITY,this.fi=e=>Promise.resolve(),!oD.D())throw new F(V.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new ou(this,n),this.gi=t+"main",this.serializer=new ix(a),this.pi=new ex(this.gi,this.di,new oO(this.serializer)),this.jr=new iL,this.Hr=new or(this.referenceDelegate,this.serializer),this.remoteDocumentCache=new od(this.serializer),this.Yr=new iM,this.window&&this.window.localStorage?this.yi=this.window.localStorage:(this.yi=null,!1===u&&N(oN,"LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}start(){return this.wi().then(()=>{if(!this.isPrimary&&!this.allowTabSynchronization)throw new F(V.FAILED_PRECONDITION,oL);return this.bi(),this.Si(),this.Di(),this.runTransaction("getHighestListenSequenceNumber","readonly",e=>this.Hr.getHighestSequenceNumber(e))}).then(e=>{this.Gr=new eM(e,this.Ii)}).then(()=>{this.zr=!0}).catch(e=>(this.pi&&this.pi.close(),Promise.reject(e)))}Ci(e){return this.fi=async t=>{if(this.started)return e(t)},e(this.isPrimary)}setDatabaseDeletedListener(e){this.pi.k(async t=>{null===t.newVersion&&await e()})}setNetworkEnabled(e){this.networkEnabled!==e&&(this.networkEnabled=e,this.Ti.enqueueAndForget(async()=>{this.started&&await this.wi()}))}wi(){return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",e=>tP(e,ti).put({clientId:this.clientId,updateTimeMs:Date.now(),networkEnabled:this.networkEnabled,inForeground:this.inForeground}).next(()=>{if(this.isPrimary)return this.Fi(e).next(e=>{e||(this.isPrimary=!1,this.Ti.enqueueRetryable(()=>this.fi(!1)))})}).next(()=>this.Mi(e)).next(t=>this.isPrimary&&!t?this.xi(e).next(()=>!1):!!t&&this.Oi(e).next(()=>!0))).catch(e=>{if(eT(e))return M(oN,"Failed to extend owner lease: ",e),this.isPrimary;if(!this.allowTabSynchronization)throw e;return M(oN,"Releasing owner lease after error during lease refresh",e),!1}).then(e=>{this.isPrimary!==e&&this.Ti.enqueueRetryable(()=>this.fi(e)),this.isPrimary=e})}Fi(e){return tP(e,eU).get(eB).next(e=>ev.resolve(this.Ni(e)))}Bi(e){return tP(e,ti).delete(this.clientId)}async Li(){if(this.isPrimary&&!this.ki(this.mi,18e5)){this.mi=Date.now();let e=await this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",e=>{let t=tP(e,ti);return t.G().next(e=>{let r=this.qi(e,18e5),n=e.filter(e=>-1===r.indexOf(e));return ev.forEach(n,e=>t.delete(e.clientId)).next(()=>n)})}).catch(()=>[]);if(this.yi)for(let t of e)this.yi.removeItem(this.Qi(t.clientId))}}Di(){this.Vi=this.Ti.enqueueAfterDelay("client_metadata_refresh",4e3,()=>this.wi().then(()=>this.Li()).then(()=>this.Di()))}Ni(e){return!!e&&e.ownerId===this.clientId}Mi(e){return this.Ei?ev.resolve(!0):tP(e,eU).get(eB).next(t=>
33{if(null!==t&&this.ki(t.leaseTimestampMs,5e3)&&!this.$i(t.ownerId)){if(this.Ni(t)&&this.networkEnabled)return!0;if(!this.Ni(t)){if(!t.allowTabSynchronization)throw new F(V.FAILED_PRECONDITION,oL);return!1}}return!(!this.networkEnabled||!this.inForeground)||tP(e,ti).G().next(e=>void 0===this.qi(e,5e3).find(e=>{if(this.clientId!==e.clientId){let t=!this.networkEnabled&&e.networkEnabled,r=!this.inForeground&&e.inForeground,n=this.networkEnabled===e.networkEnabled;if(t||r&&n)return!0}return!1}))}).next(e=>(this.isPrimary!==e&&M(oN,`Client ${e?"is":"is not"} eligible for a primary lease.`),e))}async shutdown(){this.zr=!1,this.Ki(),this.Vi&&(this.Vi.cancel(),this.Vi=null),this.Ui(),this.Wi(),await this.pi.runTransaction("shutdown","readwrite",[eU,ti],e=>{let t=new tI(e,eM.ae);return this.xi(t).next(()=>this.Bi(t))}),this.pi.close(),this.Gi()}qi(e,t){return e.filter(e=>this.ki(e.updateTimeMs,t)&&!this.$i(e.clientId))}zi(){return this.runTransaction("getActiveClients","readonly",e=>tP(e,ti).G().next(e=>this.qi(e,18e5).map(e=>e.clientId)))}get started(){return this.zr}getGlobalsCache(){return this.jr}getMutationQueue(e,t){return i7.It(e,this.serializer,t,this.referenceDelegate)}getTargetCache(){return this.Hr}getRemoteDocumentCache(){return this.remoteDocumentCache}getIndexManager(e){return new i2(e,this.serializer.Tt.databaseId)}getDocumentOverlayCache(e){return iN.It(this.serializer,e)}getBundleCache(){return this.Yr}runTransaction(e,t,r){var n;let i;M(oN,"Starting transaction:",e);let o=17===(n=this.di)?tC:16===n?tA:15===n?tA:14===n?tk:13===n?tk:12===n?tT:11===n?tS:void j();return this.pi.runTransaction(e,"readonly"===t?"readonly":"readwrite",o,n=>(i=new tI(n,this.Gr?this.Gr.next():eM.ae),"readwrite-primary"===t?this.Fi(i).next(e=>!!e||this.Mi(i)).next(t=>{if(!t)throw N(`Failed to obtain primary lease for action '${e}'.`),this.isPrimary=!1,this.Ti.enqueueRetryable(()=>this.fi(!1)),new F(V.FAILED_PRECONDITION,em);return r(i)}).next(e=>this.Oi(i).next(()=>e)):this.ji(i).next(()=>r(i)))).then(e=>(i.raiseOnCommittedEvent(),e))}ji(e){return tP(e,eU).get(eB).next(e=>{if(null!==e&&this.ki(e.leaseTimestampMs,5e3)&&!this.$i(e.ownerId)&&!this.Ni(e)&&!(this.Ei||this.allowTabSynchronization&&e.allowTabSynchronization))throw new F(V.FAILED_PRECONDITION,oL)})}Oi(e){let t={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return tP(e,eU).put(eB,t)}static D(){return ex.D()}xi(e){let t=tP(e,eU);return t.get(eB).next(e=>this.Ni(e)?(M(oN,"Releasing primary lease."),t.delete(eB)):ev.resolve())}ki(e,t){let r=Date.now();return!(e<r-t)&&(!(e>r)||(N(`Detected an update time that is in the future: ${e} > ${r}`),!1))}bi(){null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ri=()=>{this.Ti.enqueueAndForget(()=>(this.inForeground="visible"===this.document.visibilityState,this.wi()))},this.document.addEventListener("visibilitychange",this.Ri),this.inForeground="visible"===this.document.visibilityState)}Ui(){this.Ri&&(this.document.removeEventListener("visibilitychange",this.Ri),this.Ri=null)}Si(){var e;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.Ai=()=>{this.Ki();let e=/(?:Version|Mobile)\/1[456]/;(0,w.nr)()&&(navigator.appVersion.match(e)||navigator.userAgent.match(e))&&this.Ti.enterRestrictedMode(!0),this.Ti.enqueueAndForget(()=>this.shutdown())},this.window.addEventListener("pagehide",this.Ai))}Wi(){this.Ai&&(this.window.removeEventListener("pagehide",this.Ai),this.Ai=null)}$i(e){var t;try{let r=null!==(null===(t=this.yi)||void 0===t?void 0:t.getItem(this.Qi(e)));return M(oN,`Client '${e}' ${r?"is":"is not"} zombied in LocalStorage`),r}catch(e){return N(oN,"Failed to get zombied client id.",e),!1}}Ki(){if(this.yi)try{this.yi.setItem(this.Qi(this.clientId),String(Date.now()))}catch(e){N("Failed to set zombie client id.",e)}}Gi(){if(this.yi)try{this.yi.removeItem(this.Qi(this.clientId))}catch(e){}}Qi(e){return`firestore_zombie_${this.persistenceKey}_${e}`}}function oj(e,t){let r=e.projectId;return e.isDefaultDatabase||(r+="."+e.database),"firestore/"+t+"/"+r+"/"}class oV{constructor(e,t,r,n){this.targetId=e,this.fromCache=t,this.Hi=r,this.Ji=n}static Yi(e,t){let r=ns(),n=ns();for(let e of t.docChanges)switch(e.type){case 0:r=r.add(e.doc.key);break;case 1:n=n.add(e.doc.key)}return new oV(e,t.fromCache,r,n)}}class oF{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class oU{constructor(){this.Zi=!1,this.Xi=!1,this.es=100,this.ts=(0,w.nr)()?8:e_((0,w.ZQ)())>0?6:4}initialize(e,t){this.ns=e,this.indexManager=t,this.Zi=!0}getDocumentsMatchingQuery(e,t,r,n){let i={result:null};return this.rs(e,t).next(e=>{i.result=e}).next(()=>{if(!i.result)return this.ss(e,t,n,r).next(e=>{i.result=e})}).next(()=>{if(i.result)return;let r=new oF;return this._s(e,t,r).next(n=>{if(i.result=n,this.Xi)return this.us(e,t,r,n.size)})}).next(()=>i.result)}us(e,t,r,n){return r.documentReadCount<this.es?(O()<=b.$b.DEBUG&&M("QueryEngine","SDK will not create cache indexes for query:",r3(t),"since it only creates cache indexes for collection contains","more than or equal to",this.es,"documents"),ev.resolve()):(O()<=b.$b.DEBUG&&M("QueryEngine","Query:",r3(t),"scans",r.documentReadCount,"local documents and returns",n,"documents as results."),r.documentReadCount>this.ts*n?(O()<=b.$b.DEBUG&&M("QueryEngine","The SDK decides to create cache indexes for query:",r3(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,rJ(t))):ev.resolve())}rs(e,t){if(rX(t))return ev.resolve(null);let r=rJ(t);return this.indexManager.getIndexType(e,r).next(n=>0===n?null:(null!==t.limit&&1===n&&(r=rJ(t=r1(t,null,"F"))),this.indexManager.getDocumentsMatchingTarget(e,r).next(n=>{let i=ns(...n);return this.ns.getDocuments(e,i).next(n=>this.indexManager.getMinOffset(e,r).next(r=>{let o=this.cs(t,n);return this.ls(t,o,i,r.readTime)?this.rs(e,r1(t,null,"F")):this.hs(e,o,t,r)}))})))}ss(e,t,r,n){return rX(t)||n.isEqual(J.min())?ev.resolve(null):this.ns.getDocuments(e,r).next(i=>{let o=this.cs(t,i);return this.ls(t,o,r,n)?ev.resolve(null):(O()<=b.$b.DEBUG&&M("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),r3(t)),this.hs(e,o,t,eh(n,-1)).next(e=>e))})}cs(e,t){let r=new tj(r8(e));return t.forEach((t,n)=>{r5(e,n)&&(r=r.add(n))}),r}ls(e,t,r,n){if(null===e.limit)return!1;if(r.size!==t.size)return!0;let i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(n)>0)}_s(e,t,r){return O()<=b.$b.DEBUG&&M("QueryEngine","Using full collection scan to execute query:",r3(t)),this.ns.getDocumentsMatchingQuery(e,t,ef.min(),r)}hs(e,t,r,n){return this.ns.getDocumentsMatchingQuery(e,r,n).next(e=>(t.forEach(t=>{e=e.insert(t.key,t)}),e))}}let oB="LocalStore";class oz{constructor(e,t,r,n){this.persistence=e,this.Ps=t,this.serializer
33=n,this.Ts=new tN(X),this.Is=new r7(e=>rz(e),rH),this.Es=new Map,this.ds=e.getRemoteDocumentCache(),this.Hr=e.getTargetCache(),this.Yr=e.getBundleCache(),this.As(r)}As(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new ov(this.ds,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.ds.setIndexManager(this.indexManager),this.Ps.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.Ts))}}async function oH(e,t){return await e.persistence.runTransaction("Handle user change","readonly",r=>{let n;return e.mutationQueue.getAllMutationBatches(r).next(i=>(n=i,e.As(t),e.mutationQueue.getAllMutationBatches(r))).next(t=>{let i=[],o=[],s=ns();for(let e of n)for(let t of(i.push(e.batchId),e.mutations))s=s.add(t.key);for(let e of t)for(let t of(o.push(e.batchId),e.mutations))s=s.add(t.key);return e.localDocuments.getDocuments(r,s).next(e=>({Rs:e,removedBatchIds:i,addedBatchIds:o}))})})}function o$(e){return e.persistence.runTransaction("Get last remote snapshot version","readonly",t=>e.Hr.getLastRemoteSnapshotVersion(t))}function oW(e,t,r){let n=ns(),i=ns();return r.forEach(e=>n=n.add(e)),t.getEntries(e,n).next(e=>{let n=r9;return r.forEach((r,o)=>{let s=e.get(r);o.isFoundDocument()!==s.isFoundDocument()&&(i=i.add(r)),o.isNoDocument()&&o.version.isEqual(J.min())?(t.removeEntry(r,o.readTime),n=n.insert(r,o)):!s.isValidDocument()||o.version.compareTo(s.version)>0||0===o.version.compareTo(s.version)&&s.hasPendingWrites?(t.addEntry(o),n=n.insert(r,o)):M(oB,"Ignoring outdated watch update for ",r,". Current version:",s.version," Watch version:",o.version)}),{Vs:n,fs:i}})}function oq(e,t){return e.persistence.runTransaction("Allocate target","readwrite",r=>{let n;return e.Hr.getTargetData(r,t).next(i=>i?(n=i,ev.resolve(n)):e.Hr.allocateTargetId(r).next(i=>(n=new iw(t,i,"TargetPurposeListen",r.currentSequenceNumber),e.Hr.addTargetData(r,n).next(()=>n))))}).then(r=>{let n=e.Ts.get(r.targetId);return(null===n||r.snapshotVersion.compareTo(n.snapshotVersion)>0)&&(e.Ts=e.Ts.insert(r.targetId,r),e.Is.set(t,r.targetId)),r})}async function oG(e,t,r){let n=e.Ts.get(t);try{r||await e.persistence.runTransaction("Release target",r?"readwrite":"readwrite-primary",t=>e.persistence.referenceDelegate.removeTarget(t,n))}catch(e){if(!eT(e))throw e;M(oB,`Failed to update sequence numbers for target ${t}: ${e}`)}e.Ts=e.Ts.remove(t),e.Is.delete(n.target)}function oK(e,t,r){let n=J.min(),i=ns();return e.persistence.runTransaction("Execute query","readwrite",o=>(function(e,t,r){let n=e.Is.get(r);return void 0!==n?ev.resolve(e.Ts.get(n)):e.Hr.getTargetData(t,r)})(e,o,rJ(t)).next(t=>{if(t)return n=t.lastLimboFreeSnapshotVersion,e.Hr.getMatchingKeysForTargetId(o,t.targetId).next(e=>{i=e})}).next(()=>e.Ps.getDocumentsMatchingQuery(o,t,r?n:J.min(),r?i:ns())).next(r=>(oZ(e,r6(t),r),{documents:r,gs:i})))}function oY(e,t){let r=e.Hr,n=e.Ts.get(t);return n?Promise.resolve(n.target):e.persistence.runTransaction("Get target data","readonly",e=>r.lt(e,t).next(e=>e?e.target:null))}function oX(e,t){let r=e.Es.get(t)||J.min();return e.persistence.runTransaction("Get new document changes","readonly",n=>e.ds.getAllFromCollectionGroup(n,t,eh(r,-1),Number.MAX_SAFE_INTEGER)).then(r=>(oZ(e,t,r),r))}function oZ(e,t,r){let n=e.Es.get(t)||J.min();r.forEach((e,t)=>{t.readTime.compareTo(n)>0&&(n=t.readTime)}),e.Es.set(t,n)}let oQ="firestore_clients";function oJ(e,t){return`${oQ}_${e}_${t}`}let o0="firestore_mutations";function o1(e,t,r){let n=`${o0}_${e}_${r}`;return t.isAuthenticated()&&(n+=`_${t.uid}`),n}let o2="firestore_targets";function o4(e,t){return`${o2}_${e}_${t}`}let o3="SharedClientState";class o5{constructor(e,t,r,n){this.user=e,this.batchId=t,this.state=r,this.error=n}static bs(e,t,r){let n=JSON.parse(r),i,o="object"==typeof n&&-1!==["pending","acknowledged","rejected"].indexOf(n.state)&&(void 0===n.error||"object"==typeof n.error);return o&&n.error&&(o="string"==typeof n.error.message&&"string"==typeof n.error.code)&&(i=new F(n.error.code,n.error.message)),o?new o5(e,t,n.state,i):(N(o3,`Failed to parse mutation state for ID '${t}': ${r}`),null)}Ss(){let e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class o6{constructor(e,t,r){this.targetId=e,this.state=t,this.error=r}static bs(e,t){let r=JSON.parse(t),n,i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error);return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(n=new F(r.error.code,r.error.message)),i?new o6(e,r.state,n):(N(o3,`Failed to parse target state for ID '${e}': ${t}`),null)}Ss(){let e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class o8{constructor(e,t){this.clientId=e,this.activeTargetIds=t}static bs(e,t){let r=JSON.parse(t),n="object"==typeof r&&r.activeTargetIds instanceof Array,i=na;for(let e=0;n&&e<r.activeTargetIds.length;++e)n=eD(r.activeTargetIds[e]),i=i.add(r.activeTargetIds[e]);
33return n?new o8(e,i):(N(o3,`Failed to parse client data for instance '${e}': ${t}`),null)}}class o7{constructor(e,t){this.clientId=e,this.onlineState=t}static bs(e){let t=JSON.parse(e);return"object"==typeof t&&-1!==["Unknown","Online","Offline"].indexOf(t.onlineState)&&"string"==typeof t.clientId?new o7(t.clientId,t.onlineState):(N(o3,`Failed to parse online state: ${e}`),null)}}class o9{constructor(){this.activeTargetIds=na}Ds(e){this.activeTargetIds=this.activeTargetIds.add(e)}vs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Ss(){return JSON.stringify({activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()})}}class se{constructor(e,t,r,n,i){var o,s,a;this.window=e,this.Ti=t,this.persistenceKey=r,this.Cs=n,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.Fs=this.Ms.bind(this),this.xs=new tN(X),this.started=!1,this.Os=[];let l=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Ns=oJ(this.persistenceKey,this.Cs),this.Bs=(o=this.persistenceKey,`firestore_sequence_number_${o}`),this.xs=this.xs.insert(this.Cs,new o9),this.Ls=RegExp(`^${oQ}_${l}_([^_]*)$`),this.ks=RegExp(`^${o0}_${l}_(\\d+)(?:_(.*))?$`),this.qs=RegExp(`^${o2}_${l}_(\\d+)$`),this.Qs=(s=this.persistenceKey,`firestore_online_state_${s}`),this.$s=(a=this.persistenceKey,`firestore_bundle_loaded_v2_${a}`),this.window.addEventListener("storage",this.Fs)}static D(e){return!(!e||!e.localStorage)}async start(){for(let e of(await this.syncEngine.zi())){if(e===this.Cs)continue;let t=this.getItem(oJ(this.persistenceKey,e));if(t){let r=o8.bs(e,t);r&&(this.xs=this.xs.insert(r.clientId,r))}}this.Ks();let e=this.storage.getItem(this.Qs);if(e){let t=this.Us(e);t&&this.Ws(t)}for(let e of this.Os)this.Ms(e);this.Os=[],this.window.addEventListener("pagehide",()=>this.shutdown()),this.started=!0}writeSequenceNumber(e){this.setItem(this.Bs,JSON.stringify(e))}getAllActiveQueryTargets(){return this.Gs(this.xs)}isActiveQueryTarget(e){let t=!1;return this.xs.forEach((r,n)=>{n.activeTargetIds.has(e)&&(t=!0)}),t}addPendingMutation(e){this.zs(e,"pending")}updateMutationState(e,t,r){this.zs(e,t,r),this.js(e)}addLocalQueryTarget(e,t=!0){let r="not-current";if(this.isActiveQueryTarget(e)){let t=this.storage.getItem(o4(this.persistenceKey,e));if(t){let n=o6.bs(e,t);n&&(r=n.state)}}return t&&this.Hs.Ds(e),this.Ks(),r}removeLocalQueryTarget(e){this.Hs.vs(e),this.Ks()}isLocalQueryTarget(e){return this.Hs.activeTargetIds.has(e)}clearQueryState(e){this.removeItem(o4(this.persistenceKey,e))}updateQueryState(e,t,r){this.Js(e,t,r)}handleUserChange(e,t,r){t.forEach(e=>{this.js(e)}),this.currentUser=e,r.forEach(e=>{this.addPendingMutation(e)})}setOnlineState(e){this.Ys(e)}notifyBundleLoaded(e){this.Zs(e)}shutdown(){this.started&&(this.window.removeEventListener("storage",this.Fs),this.removeItem(this.Ns),this.started=!1)}getItem(e){let t=this.storage.getItem(e);return M(o3,"READ",e,t),t}setItem(e,t){M(o3,"SET",e,t),this.storage.setItem(e,t)}removeItem(e){M(o3,"REMOVE",e),this.storage.removeItem(e)}Ms(e){if(e.storageArea===this.storage){if(M(o3,"EVENT",e.key,e.newValue),e.key===this.Ns)return void N("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Ti.enqueueRetryable(async()=>{if(this.started){if(null!==e.key){if(this.Ls.test(e.key)){if(null==e.newValue){let t=this.Xs(e.key);return this.eo(t,null)}{let t=this.no(e.key,e.newValue);if(t)return this.eo(t.clientId,t)}}else if(this.ks.test(e.key)){if(null!==e.newValue){let t=this.ro(e.key,e.newValue);if(t)return this.io(t)}}else if(this.qs.test(e.key)){if(null!==e.newValue){let t=this.so(e.key,e.newValue);if(t)return this.oo(t)}}else if(e.key===this.Qs){if(null!==e.newValue){let t=this.Us(e.newValue);if(t)return this.Ws(t)}}else if(e.key===this.Bs){let t=function(e){let t=eM.ae;if(null!=e)try{let r=JSON.parse(e);"number"==typeof r||j(),t=r}catch(e){N(o3,"Failed to read sequence number from WebStorage",e)}return t}(e.newValue);t!==eM.ae&&this.sequenceNumberHandler(t)}else if(e.key===this.$s){let t=this._o(e.newValue);await Promise.all(t.map(e=>this.syncEngine.ao(e)))}}}else this.Os.push(e)})}}get Hs(){return this.xs.get(this.Cs)}Ks(){this.setItem(this.Ns,this.Hs.Ss())}zs(e,t,r){let n=new o5(this.currentUser,e,t,r),i=o1(this.persistenceKey,this.currentUser,e);this.setItem(i,n.Ss())}js(e){let t=o1(this.persistenceKey,this.currentUser,e);this.removeItem(t)}Ys(e){let t={clientId:this.Cs,onlineState:e};this.storage.setItem(this.Qs,JSON.stringify(t))}Js(e,t,r){let n=o4(this.persistenceKey,e),i=new o6(e,t,r);this.setItem(n,i.Ss())}Zs(e){let t=JSON.stringify(Array.from(e));this.setItem(this.$s,t)}Xs(e){let t=this.Ls.exec(e);return t?t[1]:null}no(e,t){let r=this.Xs(e);return o8.bs(r,t)}ro(e,t){let r=this.ks.exec(e),n=Number(r[1]),i=void 0!==r[2]?r[2]:null;return o5.bs(new I(i),n,t)}so(e,t){let r=Number(this.qs.exec(e)[1]);return o6.bs(r,t)}Us(e){return o7.bs(e)}_o(e){return JSON.parse(e)}async io(e){if(e.user.uid===this.currentUser.uid)return this.syncEngine.uo(e.batchId,e.state,e.error);M(o3,`Ignoring mutation for non-active user ${e.user.uid}`)}oo(e){return this.syncEngine.co(e.targetId,e.state,e.error)}eo(e,t){let r=t?this.xs.insert(e,t):this.xs.remove(e),n=this.Gs(this.xs),i=this.Gs(r),o=[],s=[];
33return i.forEach(e=>{n.has(e)||o.push(e)}),n.forEach(e=>{i.has(e)||s.push(e)}),this.syncEngine.lo(o,s).then(()=>{this.xs=r})}Ws(e){this.xs.get(e.clientId)&&this.onlineStateHandler(e.onlineState)}Gs(e){let t=na;return e.forEach((e,r)=>{t=t.unionWith(r.activeTargetIds)}),t}}class st{constructor(){this.ho=new o9,this.Po={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,r){}addLocalQueryTarget(e,t=!0){return t&&this.ho.Ds(e),this.Po[e]||"not-current"}updateQueryState(e,t,r){this.Po[e]=t}removeLocalQueryTarget(e){this.ho.vs(e)}isLocalQueryTarget(e){return this.ho.activeTargetIds.has(e)}clearQueryState(e){delete this.Po[e]}getAllActiveQueryTargets(){return this.ho.activeTargetIds}isActiveQueryTarget(e){return this.ho.activeTargetIds.has(e)}start(){return this.ho=new o9,Promise.resolve()}handleUserChange(e,t,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class sr{To(e){}shutdown(){}}let sn="ConnectivityMonitor";class si{constructor(){this.Io=()=>this.Eo(),this.Ao=()=>this.Ro(),this.Vo=[],this.mo()}To(e){this.Vo.push(e)}shutdown(){window.removeEventListener("online",this.Io),window.removeEventListener("offline",this.Ao)}mo(){window.addEventListener("online",this.Io),window.addEventListener("offline",this.Ao)}Eo(){for(let e of(M(sn,"Network connectivity changed: AVAILABLE"),this.Vo))e(0)}Ro(){for(let e of(M(sn,"Network connectivity changed: UNAVAILABLE"),this.Vo))e(1)}static D(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let so=null;function ss(){return null===so?so=0x10000000+Math.round(0x80000000*Math.random()):so++,"0x"+so.toString(16)}let sa="RestConnection",sl={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class su{get fo(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;let t=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),n=encodeURIComponent(this.databaseId.database);this.po=t+"://"+e.host,this.yo=`projects/${r}/databases/${n}`,this.wo=this.databaseId.database===t1?`project_id=${r}`:`project_id=${r}&database_id=${n}`}bo(e,t,r,n,i){let o=ss(),s=this.So(e,t.toUriEncodedString());M(sa,`Sending RPC '${e}' ${o}:`,s,r);let a={"google-cloud-resource-prefix":this.yo,"x-goog-request-params":this.wo};return this.Do(a,n,i),this.vo(e,s,a,r).then(t=>(M(sa,`Received RPC '${e}' ${o}: `,t),t),t=>{throw L(sa,`RPC '${e}' ${o} failed with error: `,t,"url: ",s,"request:",r),t})}Co(e,t,r,n,i,o){return this.bo(e,t,r,n,i)}Do(e,t,r){e["X-Goog-Api-Client"]="gl-js/ fire/"+P,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((t,r)=>e[r]=t),r&&r.headers.forEach((t,r)=>e[r]=t)}So(e,t){let r=sl[e];return`${this.po}/v1/${t}:${r}`}terminate(){}}class sc{constructor(e){this.Fo=e.Fo,this.Mo=e.Mo}xo(e){this.Oo=e}No(e){this.Bo=e}Lo(e){this.ko=e}onMessage(e){this.qo=e}close(){this.Mo()}send(e){this.Fo(e)}Qo(){this.Oo()}$o(){this.Bo()}Ko(e){this.ko(e)}Uo(e){this.qo(e)}}let sh="WebChannelConnection";class sd extends su{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}vo(e,t,r,n){let i=ss();return new Promise((s,u)=>{let c=new o;c.setWithCredentials(!0),c.listenOnce(a.COMPLETE,()=>{try{switch(c.getLastErrorCode()){case l.NO_ERROR:let t=c.getResponseJson();M(sh,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(t)),s(t);break;case l.TIMEOUT:M(sh,`RPC '${e}' ${i} timed out`),u(new F(V.DEADLINE_EXCEEDED,"Request time out"));break;case l.HTTP_ERROR:let r=c.getStatus();if(M(sh,`RPC '${e}' ${i} failed with status:`,r,"response text:",c.getResponseText()),r>0){let e=c.getResponseJson();Array.isArray(e)&&(e=e[0]);let t=null==e?void 0:e.error;if(t&&t.status&&t.message){let e=function(e){let t=e.toLowerCase().replace(/_/g,"-");return Object.values(V).indexOf(t)>=0?t:V.UNKNOWN}(t.status);u(new F(e,t.message))}else u(new F(V.UNKNOWN,"Server responded with status "+c.getStatus()))}else u(new F(V.UNAVAILABLE,"Connection failed."));break;default:j()}}finally{M(sh,`RPC '${e}' ${i} completed.`)}});let h=JSON.stringify(n);M(sh,`RPC '${e}' ${i} sending request:`,n),c.send(t,"POST",h,r,15)})}Wo(e,t,r){let n=ss(),i=[this.po,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=d(),a=h(),l={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`}
33,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},p=this.longPollingOptions.timeoutSeconds;void 0!==p&&(l.longPollingTimeout=Math.round(1e3*p)),this.useFetchStreams&&(l.useFetchStreams=!0),this.Do(l.initMessageHeaders,t,r),l.encodeInitMessageHeaders=!0;let m=i.join("");M(sh,`Creating RPC '${e}' stream ${n}: ${m}`,l);let g=o.createWebChannel(m,l),y=!1,v=!1,b=new sc({Fo:t=>{v?M(sh,`Not sending because RPC '${e}' stream ${n} is closed:`,t):(y||(M(sh,`Opening RPC '${e}' stream ${n} transport.`),g.open(),y=!0),M(sh,`RPC '${e}' stream ${n} sending:`,t),g.send(t))},Mo:()=>g.close()}),w=(e,t,r)=>{e.listen(t,e=>{try{r(e)}catch(e){setTimeout(()=>{throw e},0)}})};return w(g,s.EventType.OPEN,()=>{v||(M(sh,`RPC '${e}' stream ${n} transport opened.`),b.Qo())}),w(g,s.EventType.CLOSE,()=>{v||(v=!0,M(sh,`RPC '${e}' stream ${n} transport closed`),b.Ko())}),w(g,s.EventType.ERROR,t=>{v||(v=!0,L(sh,`RPC '${e}' stream ${n} transport errored:`,t),b.Ko(new F(V.UNAVAILABLE,"The operation could not be completed")))}),w(g,s.EventType.MESSAGE,t=>{var r;if(!v){let i=t.data[0];i||j();let o=(null==i?void 0:i.error)||(null===(r=i[0])||void 0===r?void 0:r.error);if(o){M(sh,`RPC '${e}' stream ${n} received error:`,o);let t=o.status,r=function(e){let t=f[e];if(void 0!==t)return nU(t)}(t),i=o.message;void 0===r&&(r=V.INTERNAL,i="Unknown error status: "+t+" with message "+o.message),v=!0,b.Ko(new F(r,i)),g.close()}else M(sh,`RPC '${e}' stream ${n} received:`,i),b.Uo(i)}}),w(a,c.STAT_EVENT,t=>{t.stat===u.PROXY?M(sh,`RPC '${e}' stream ${n} detected buffering proxy`):t.stat===u.NOPROXY&&M(sh,`RPC '${e}' stream ${n} detected no buffering proxy`)}),setTimeout(()=>{b.$o()},0),b}}function sf(){return"undefined"!=typeof window?window:null}function sp(){return"undefined"!=typeof document?document:null}function sm(e){return new n3(e,!0)}class sg{constructor(e,t,r=1e3,n=1.5,i=6e4){this.Ti=e,this.timerId=t,this.Go=r,this.zo=n,this.jo=i,this.Ho=0,this.Jo=null,this.Yo=Date.now(),this.reset()}reset(){this.Ho=0}Zo(){this.Ho=this.jo}Xo(e){this.cancel();let t=Math.floor(this.Ho+this.e_()),r=Math.max(0,Date.now()-this.Yo),n=Math.max(0,t-r);n>0&&M("ExponentialBackoff",`Backing off for ${n} ms (base delay: ${this.Ho} ms, delay with jitter: ${t} ms, last attempt: ${r} ms ago)`),this.Jo=this.Ti.enqueueAfterDelay(this.timerId,n,()=>(this.Yo=Date.now(),e())),this.Ho*=this.zo,this.Ho<this.Go&&(this.Ho=this.Go),this.Ho>this.jo&&(this.Ho=this.jo)}t_(){null!==this.Jo&&(this.Jo.skipDelay(),this.Jo=null)}cancel(){null!==this.Jo&&(this.Jo.cancel(),this.Jo=null)}e_(){return(Math.random()-.5)*this.Ho}}let sy="PersistentStream";class sv{constructor(e,t,r,n,i,o,s,a){this.Ti=e,this.n_=r,this.r_=n,this.connection=i,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=s,this.listener=a,this.state=0,this.i_=0,this.s_=null,this.o_=null,this.stream=null,this.__=0,this.a_=new sg(e,t)}u_(){return 1===this.state||5===this.state||this.c_()}c_(){return 2===this.state||3===this.state}start(){this.__=0,4!==this.state?this.auth():this.l_()}async stop(){this.u_()&&await this.close(0)}h_(){this.state=0,this.a_.reset()}P_(){this.c_()&&null===this.s_&&(this.s_=this.Ti.enqueueAfterDelay(this.n_,6e4,()=>this.T_()))}I_(e){this.E_(),this.stream.send(e)}async T_(){if(this.c_())return this.close(0)}E_(){this.s_&&(this.s_.cancel(),this.s_=null)}d_(){this.o_&&(this.o_.cancel(),this.o_=null)}async close(e,t){this.E_(),this.d_(),this.a_.cancel(),this.i_++,4!==e?this.a_.reset():t&&t.code===V.RESOURCE_EXHAUSTED?(N(t.toString()),N("Using maximum backoff delay to prevent overloading the backend."),this.a_.Zo()):t&&t.code===V.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.A_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Lo(t)}A_(){}auth(){this.state=1;let e=this.R_(this.i_),t=this.i_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([e,r])=>{this.i_===t&&this.V_(e,r)},t=>{e(()=>{let e=new F(V.UNKNOWN,"Fetching auth token failed: "+t.message);return this.m_(e)})})}V_(e,t){let r=this.R_(this.i_);this.stream=this.f_(e,t),this.stream.xo(()=>{r(()=>this.listener.xo())}),this.stream.No(()=>{r(()=>(this.state=2,this.o_=this.Ti.enqueueAfterDelay(this.r_,1e4,()=>(this.c_()&&(this.state=3),Promise.resolve())),this.listener.No()))}
33),this.stream.Lo(e=>{r(()=>this.m_(e))}),this.stream.onMessage(e=>{r(()=>1==++this.__?this.g_(e):this.onNext(e))})}l_(){this.state=5,this.a_.Xo(async()=>{this.state=0,this.start()})}m_(e){return M(sy,`close with error: ${e}`),this.stream=null,this.close(4,e)}R_(e){return t=>{this.Ti.enqueueAndForget(()=>this.i_===e?t():(M(sy,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class sb extends sv{constructor(e,t,r,n,i,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,r,n,o),this.serializer=i}f_(e,t){return this.connection.Wo("Listen",e,t)}g_(e){return this.onNext(e)}onNext(e){this.a_.reset();let t=function(e,t){let r;if("targetChange"in t){var n,i;t.targetChange;let o="NO_CHANGE"===(n=t.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===n?1:"REMOVE"===n?2:"CURRENT"===n?3:"RESET"===n?4:j(),s=t.targetChange.targetIds||[],a=(i=t.targetChange.resumeToken,e.useProto3Json?(void 0===i||"string"==typeof i||j(),tz.fromBase64String(i||"")):(void 0===i||i instanceof k||i instanceof Uint8Array||j(),tz.fromUint8Array(i||new Uint8Array))),l=t.targetChange.cause;r=new nX(o,s,a,l&&new F(void 0===l.code?V.UNKNOWN:nU(l.code),l.message||"")||null)}else if("documentChange"in t){t.documentChange;let n=t.documentChange;n.document,n.document.name,n.document.updateTime;let i=ii(e,n.document.name),o=n7(n.document.updateTime),s=n.document.createTime?n7(n.document.createTime):J.min(),a=new rv({mapValue:{fields:n.document.fields}}),l=rb.newFoundDocument(i,o,s,a);r=new nK(n.targetIds||[],n.removedTargetIds||[],l.key,l)}else if("documentDelete"in t){t.documentDelete;let n=t.documentDelete;n.document;let i=ii(e,n.document),o=n.readTime?n7(n.readTime):J.min(),s=rb.newNoDocument(i,o);r=new nK([],n.removedTargetIds||[],s.key,s)}else if("documentRemove"in t){t.documentRemove;let n=t.documentRemove;n.document;let i=ii(e,n.document);r=new nK([],n.removedTargetIds||[],i,null)}else{if(!("filter"in t))return j();{t.filter;let e=t.filter;e.targetId;let{count:n=0,unchangedNames:i}=e,o=new nF(n,i);r=new nY(e.targetId,o)}}return r}(this.serializer,e),r=function(e){if(!("targetChange"in e))return J.min();let t=e.targetChange;return t.targetIds&&t.targetIds.length?J.min():t.readTime?n7(t.readTime):J.min()}(e);return this.listener.p_(t,r)}y_(e){let t={};t.database=ia(this.serializer),t.addTarget=function(e,t){let r;let n=t.target;if((r=r$(n)?{documents:ip(e,n)}:{query:im(e,n).ht}).targetId=t.targetId,t.resumeToken.approximateByteSize()>0){r.resumeToken=n8(e,t.resumeToken);let n=n5(e,t.expectedCount);null!==n&&(r.expectedCount=n)}else if(t.snapshotVersion.compareTo(J.min())>0){r.readTime=n6(e,t.snapshotVersion.toTimestamp());let n=n5(e,t.expectedCount);null!==n&&(r.expectedCount=n)}return r}(this.serializer,e);let r=function(e,t){let r=function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return j()}}(t.purpose);return null==r?null:{"goog-listen-tags":r}}(this.serializer,e);r&&(t.labels=r),this.I_(t)}w_(e){let t={};t.database=ia(this.serializer),t.removeTarget=e,this.I_(t)}}class sw extends sv{constructor(e,t,r,n,i,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,r,n,o),this.serializer=i}get b_(){return this.__>0}start(){this.lastStreamToken=void 0,super.start()}A_(){this.b_&&this.S_([])}f_(e,t){return this.connection.Wo("Write",e,t)}g_(e){return e.streamToken||j(),this.lastStreamToken=e.streamToken,e.writeResults&&0!==e.writeResults.length&&j(),this.listener.D_()}onNext(e){var t,r;e.streamToken||j(),this.lastStreamToken=e.streamToken,this.a_.reset();let n=(t=e.writeResults,r=e.commitTime,t&&t.length>0?(void 0!==r||j(),t.map(e=>{let t;return(t=e.updateTime?n7(e.updateTime):n7(r)).isEqual(J.min())&&(t=n7(r)),new n_(t,e.transformResults||[])})):[]),i=n7(e.commitTime);return this.listener.v_(i,n)}C_(){let e={};e.database=ia(this.serializer),this.I_(e)}S_(e){let t={streamToken:this.lastStreamToken,writes:e.map(e=>ih(this.serializer,e))};this.I_(t)}}class sx{}class s_ extends sx{constructor(e,t,r,n){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=r,this.serializer
33=n,this.F_=!1}M_(){if(this.F_)throw new F(V.FAILED_PRECONDITION,"The client has already been terminated.")}bo(e,t,r,n){return this.M_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,o])=>this.connection.bo(e,ie(t,r),n,i,o)).catch(e=>{throw"FirebaseError"===e.name?(e.code===V.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new F(V.UNKNOWN,e.toString())})}Co(e,t,r,n,i){return this.M_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,s])=>this.connection.Co(e,ie(t,r),n,o,s,i)).catch(e=>{throw"FirebaseError"===e.name?(e.code===V.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new F(V.UNKNOWN,e.toString())})}terminate(){this.F_=!0,this.connection.terminate()}}class sE{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.x_=0,this.O_=null,this.N_=!0}B_(){0===this.x_&&(this.L_("Unknown"),this.O_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.O_=null,this.k_("Backend didn't respond within 10 seconds."),this.L_("Offline"),Promise.resolve())))}q_(e){"Online"===this.state?this.L_("Unknown"):(this.x_++,this.x_>=1&&(this.Q_(),this.k_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.L_("Offline")))}set(e){this.Q_(),this.x_=0,"Online"===e&&(this.N_=!1),this.L_(e)}L_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}k_(e){let t=`Could not reach Cloud Firestore backend. ${e}
34This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.N_?(N(t),this.N_=!1):M("OnlineStateTracker",t)}Q_(){null!==this.O_&&(this.O_.cancel(),this.O_=null)}}let sS="RemoteStore";class sT{constructor(e,t,r,n,i){this.localStore=e,this.datastore=t,this.asyncQueue=r,this.remoteSyncer={},this.K_=[],this.U_=new Map,this.W_=new Set,this.G_=[],this.z_=i,this.z_.To(e=>{r.enqueueAndForget(async()=>{sN(this)&&(M(sS,"Restarting streams for network reachability change."),await async function(e){e.W_.add(4),await sA(e),e.j_.set("Unknown"),e.W_.delete(4),await sk(e)}(this))})}),this.j_=new sE(r,n)}}async function sk(e){if(sN(e))for(let t of e.G_)await t(!0)}async function sA(e){for(let t of e.G_)await t(!1)}function sC(e,t){e.U_.has(t.targetId)||(e.U_.set(t.targetId,t),sM(e)?sO(e):sX(e).c_()&&sP(e,t))}function sI(e,t){let r=sX(e);e.U_.delete(t),r.c_()&&sR(e,t),0===e.U_.size&&(r.c_()?r.P_():sN(e)&&e.j_.set("Unknown"))}function sP(e,t){if(e.H_.Ne(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(J.min())>0){let r=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(r)}sX(e).y_(t)}function sR(e,t){e.H_.Ne(t),sX(e).w_(t)}function sO(e){e.H_=new nQ({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),lt:t=>e.U_.get(t)||null,it:()=>e.datastore.serializer.databaseId}),sX(e).start(),e.j_.B_()}function sM(e){return sN(e)&&!sX(e).u_()&&e.U_.size>0}function sN(e){return 0===e.W_.size}async function sL(e){e.j_.set("Online")}async function sD(e){e.U_.forEach((t,r)=>{sP(e,t)})}async function sj(e,t){e.H_=void 0,sM(e)?(e.j_.q_(t),sO(e)):e.j_.set("Unknown")}async function sV(e,t,r){if(e.j_.set("Online"),t instanceof nX&&2===t.state&&t.cause)try{await async function(e,t){let r=t.cause;for(let n of t.targetIds)e.U_.has(n)&&(await e.remoteSyncer.rejectListen(n,r),e.U_.delete(n),e.H_.removeTarget(n))}(e,t)}catch(r){M(sS,"Failed to remove targets %s: %s ",t.targetIds.join(","),r),await sF(e,r)}else if(t instanceof nK?e.H_.We(t):t instanceof nY?e.H_.Ze(t):e.H_.je(t),!r.isEqual(J.min()))try{let t=await o$(e.localStore);r.compareTo(t)>=0&&await function(e,t){let r=e.H_.ot(t);
34return r.targetChanges.forEach((r,n)=>{if(r.resumeToken.approximateByteSize()>0){let i=e.U_.get(n);i&&e.U_.set(n,i.withResumeToken(r.resumeToken,t))}}),r.targetMismatches.forEach((t,r)=>{let n=e.U_.get(t);if(!n)return;e.U_.set(t,n.withResumeToken(tz.EMPTY_BYTE_STRING,n.snapshotVersion)),sR(e,t);let i=new iw(n.target,t,r,n.sequenceNumber);sP(e,i)}),e.remoteSyncer.applyRemoteEvent(r)}(e,r)}catch(t){M(sS,"Failed to raise snapshot:",t),await sF(e,t)}}async function sF(e,t,r){if(!eT(t))throw t;e.W_.add(1),await sA(e),e.j_.set("Offline"),r||(r=()=>o$(e.localStore)),e.asyncQueue.enqueueRetryable(async()=>{M(sS,"Retrying IndexedDB access"),await r(),e.W_.delete(1),await sk(e)})}function sU(e,t){return t().catch(r=>sF(e,r,t))}async function sB(e){let t=sZ(e),r=e.K_.length>0?e.K_[e.K_.length-1].batchId:-1;for(;sN(e)&&e.K_.length<10;)try{let n=await function(e,t){return e.persistence.runTransaction("Get next mutation batch","readonly",r=>(void 0===t&&(t=-1),e.mutationQueue.getNextMutationBatchAfterBatchId(r,t)))}(e.localStore,r);if(null===n){0===e.K_.length&&t.P_();break}r=n.batchId,function(e,t){e.K_.push(t);let r=sZ(e);r.c_()&&r.b_&&r.S_(t.mutations)}(e,n)}catch(t){await sF(e,t)}sz(e)&&sH(e)}function sz(e){return sN(e)&&!sZ(e).u_()&&e.K_.length>0}function sH(e){sZ(e).start()}async function s$(e){sZ(e).C_()}async function sW(e){let t=sZ(e);for(let r of e.K_)t.S_(r.mutations)}async function sq(e,t,r){let n=e.K_.shift(),i=nj.from(n,t,r);await sU(e,()=>e.remoteSyncer.applySuccessfulWrite(i)),await sB(e)}async function sG(e,t){t&&sZ(e).b_&&await async function(e,t){var r;if(function(e){switch(e){case V.OK:return j();case V.CANCELLED:case V.UNKNOWN:case V.DEADLINE_EXCEEDED:case V.RESOURCE_EXHAUSTED:case V.INTERNAL:case V.UNAVAILABLE:case V.UNAUTHENTICATED:return!1;case V.INVALID_ARGUMENT:case V.NOT_FOUND:case V.ALREADY_EXISTS:case V.PERMISSION_DENIED:case V.FAILED_PRECONDITION:case V.ABORTED:case V.OUT_OF_RANGE:case V.UNIMPLEMENTED:case V.DATA_LOSS:return!0;default:return j()}}(r=t.code)&&r!==V.ABORTED){let r=e.K_.shift();sZ(e).h_(),await sU(e,()=>e.remoteSyncer.rejectFailedWrite(r.batchId,t)),await sB(e)}}(e,t),sz(e)&&sH(e)}async function sK(e,t){e.asyncQueue.verifyOperationInProgress(),M(sS,"RemoteStore received new credentials");let r=sN(e);e.W_.add(3),await sA(e),r&&e.j_.set("Unknown"),await e.remoteSyncer.handleCredentialChange(t),e.W_.delete(3),await sk(e)}async function sY(e,t){t?(e.W_.delete(2),await sk(e)):t||(e.W_.add(2),await sA(e),e.j_.set("Unknown"))}function sX(e){var t,r,n;return e.J_||(e.J_=(t=e.datastore,r=e.asyncQueue,n={xo:sL.bind(null,e),No:sD.bind(null,e),Lo:sj.bind(null,e),p_:sV.bind(null,e)},t.M_(),new sb(r,t.connection,t.authCredentials,t.appCheckCredentials,t.serializer,n)),e.G_.push(async t=>{t?(e.J_.h_(),sM(e)?sO(e):e.j_.set("Unknown")):(await e.J_.stop(),e.H_=void 0)})),e.J_}function sZ(e){var t,r,n;return e.Y_||(e.Y_=(t=e.datastore,r=e.asyncQueue,n={xo:()=>Promise.resolve(),No:s$.bind(null,e),Lo:sG.bind(null,e),D_:sW.bind(null,e),v_:sq.bind(null,e)},t.M_(),new sw(r,t.connection,t.authCredentials,t.appCheckCredentials,t.serializer,n)),e.G_.push(async t=>{t?(e.Y_.h_(),await sB(e)):(await e.Y_.stop(),e.K_.length>0&&(M(sS,`Stopping write stream with ${e.K_.length} pending writes`),e.K_=[]))})),e.Y_}class sQ{constructor(e,t,r,n,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=r,this.op=n,this.removalCallback=i,this.deferred=new U,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(e=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,r,n,i){let o=new sQ(e,t,Date.now()+r,n,i);return o.start(r),o}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new F(V.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function sJ(e,t){if(N("AsyncQueue",`${t}: ${e}`),eT(e))return new F(V.UNAVAILABLE,`${t}: ${e}`);throw e}class s0{static emptySet(e){return new s0(e.comparator)}constructor(e){this.comparator=e?(t,r)=>e(t,r)||eo.comparator(t.key,r.key):(e,t)=>
34eo.comparator(e.key,t.key),this.keyedMap=nt(),this.sortedSet=new tN(this.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){let t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,r)=>(e(t),!1))}add(e){let t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){let t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof s0)||this.size!==e.size)return!1;let t=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;t.hasNext();){let e=t.getNext().key,n=r.getNext().key;if(!e.isEqual(n))return!1}return!0}toString(){let e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){let r=new s0;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=t,r}}class s1{constructor(){this.Z_=new tN(eo.comparator)}track(e){let t=e.doc.key,r=this.Z_.get(t);r?0!==e.type&&3===r.type?this.Z_=this.Z_.insert(t,e):3===e.type&&1!==r.type?this.Z_=this.Z_.insert(t,{type:r.type,doc:e.doc}):2===e.type&&2===r.type?this.Z_=this.Z_.insert(t,{type:2,doc:e.doc}):2===e.type&&0===r.type?this.Z_=this.Z_.insert(t,{type:0,doc:e.doc}):1===e.type&&0===r.type?this.Z_=this.Z_.remove(t):1===e.type&&2===r.type?this.Z_=this.Z_.insert(t,{type:1,doc:r.doc}):0===e.type&&1===r.type?this.Z_=this.Z_.insert(t,{type:2,doc:e.doc}):j():this.Z_=this.Z_.insert(t,e)}X_(){let e=[];return this.Z_.inorderTraversal((t,r)=>{e.push(r)}),e}}class s2{constructor(e,t,r,n,i,o,s,a,l){this.query=e,this.docs=t,this.oldDocs=r,this.docChanges=n,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=s,this.excludesMetadataChanges=a,this.hasCachedResults=l}static fromInitialDocuments(e,t,r,n,i){let o=[];return t.forEach(e=>{o.push({type:0,doc:e})}),new s2(e,t,s0.emptySet(t),o,r,n,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&r2(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;let t=this.docChanges,r=e.docChanges;if(t.length!==r.length)return!1;for(let e=0;e<t.length;e++)if(t[e].type!==r[e].type||!t[e].doc.isEqual(r[e].doc))return!1;return!0}}class s4{constructor(){this.ea=void 0,this.ta=[]}na(){return this.ta.some(e=>e.ra())}}class s3{constructor(){this.queries=s5(),this.onlineState="Unknown",this.ia=new Set}terminate(){!function(e,t){let r=e.queries;e.queries=s5(),r.forEach((e,r)=>{for(let e of r.ta)e.onError(t)})}(this,new F(V.ABORTED,"Firestore shutting down"))}}function s5(){return new r7(e=>r4(e),r2)}async function s6(e,t){let r=3,n=t.query,i=e.queries.get(n);i?!i.na()&&t.ra()&&(r=2):(i=new s4,r=t.ra()?0:1);try{switch(r){case 0:i.ea=await e.onListen(n,!0);break;case 1:i.ea=await e.onListen(n,!1);break;case 2:await e.onFirstRemoteStoreListen(n)}}catch(r){let e=sJ(r,`Initialization of query '${r3(t.query)}' failed`);return void t.onError(e)}e.queries.set(n,i),i.ta.push(t),t.sa(e.onlineState),i.ea&&t.oa(i.ea)&&ae(e)}async function s8(e,t){let r=t.query,n=3,i=e.queries.get(r);if(i){let e=i.ta.indexOf(t);e>=0&&(i.ta.splice(e,1),0===i.ta.length?n=t.ra()?0:1:!i.na()&&t.ra()&&(n=2))}switch(n){case 0:return e.queries.delete(r),e.onUnlisten(r,!0);case 1:return e.queries.delete(r),e.onUnlisten(r,!1);case 2:return e.onLastRemoteStoreUnlisten(r);default:return}}function s7(e,t){let r=!1;for(let n of t){let t=n.query,i=e.queries.get(t);if(i){for(let e of i.ta)e.oa(n)&&(r=!0);i.ea=n}}r&&ae(e)}function s9(e,t,r){let n=e.queries.get(t);if(n)for(let e of n.ta)e.onError(r);e.queries.delete(t)}function ae(e){e.ia.forEach(e=>{e.next()})}(g=m||(m={}))._a="default",g.Cache="cache";class at{constructor(e,t,r){this.query=e,this.aa=t,this.ua=!1,this.ca=null,this.onlineState="Unknown",this.options=r||{}}oa(e){if(!this.options.includeMetadataChanges){let t=[];for(let r of e.docChanges)3!==r.type&&t.push(r);e=new s2(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.ua?this.la(e)&&(this.aa.next(e),t=!0):this.ha(e,this.onlineState)&&(this.Pa(e),t=!0),this.ca=e,t}onError(e){this.aa.error(e)}sa(e){this.onlineState=e;let t=!1;return this.ca&&!this.ua&&this.ha(this.ca,e)&&(this.Pa(this.ca),t=!0),t}ha(e,t){return!(e.fromCache&&this.ra())||(!this.options.Ta||!("Offline"!==t))&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}la(e){if(e.docChanges.length>0)return!0;let t=this.ca&&this.ca.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}Pa(e){e=s2.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.ua=!0,this.aa.next(e)}ra(){return this.options.source!==m.Cache}}class ar{constructor(e){this.key=e}}class an{constructor(e){this.key=e}}class ai{constructor(e,t){this.query=e,this.fa=t,this.ga=null,this.hasCachedResults=!1,this.current=!1,this.pa=ns(),this.mutatedKeys=ns(),this.ya=r8(e),this.wa=new s0(this.ya)}get ba(){return this.fa}Sa(e,t){let r=t?t.Da:new s1,n=t?t.wa:this.wa,i=t?t.mutatedKeys:this.mutatedKeys,o=n,s=!1,a="F"===this.query.limitType&&n.size===this.query.limit?n.last(
34):null,l="L"===this.query.limitType&&n.size===this.query.limit?n.first():null;if(e.inorderTraversal((e,t)=>{let u=n.get(e),c=r5(this.query,t)?t:null,h=!!u&&this.mutatedKeys.has(u.key),d=!!c&&(c.hasLocalMutations||this.mutatedKeys.has(c.key)&&c.hasCommittedMutations),f=!1;u&&c?u.data.isEqual(c.data)?h!==d&&(r.track({type:3,doc:c}),f=!0):this.va(u,c)||(r.track({type:2,doc:c}),f=!0,(a&&this.ya(c,a)>0||l&&0>this.ya(c,l))&&(s=!0)):!u&&c?(r.track({type:0,doc:c}),f=!0):u&&!c&&(r.track({type:1,doc:u}),f=!0,(a||l)&&(s=!0)),f&&(c?(o=o.add(c),i=d?i.add(e):i.delete(e)):(o=o.delete(e),i=i.delete(e)))}),null!==this.query.limit)for(;o.size>this.query.limit;){let e="F"===this.query.limitType?o.last():o.first();o=o.delete(e.key),i=i.delete(e.key),r.track({type:1,doc:e})}return{wa:o,Da:r,ls:s,mutatedKeys:i}}va(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,r,n){let i=this.wa;this.wa=e.wa,this.mutatedKeys=e.mutatedKeys;let o=e.Da.X_();o.sort((e,t)=>(function(e,t){let r=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return j()}};return r(e)-r(t)})(e.type,t.type)||this.ya(e.doc,t.doc)),this.Ca(r),n=null!=n&&n;let s=t&&!n?this.Fa():[],a=0===this.pa.size&&this.current&&!n?1:0,l=a!==this.ga;return(this.ga=a,0!==o.length||l)?{snapshot:new s2(this.query,e.wa,i,o,e.mutatedKeys,0===a,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),Ma:s}:{Ma:s}}sa(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({wa:this.wa,Da:new s1,mutatedKeys:this.mutatedKeys,ls:!1},!1)):{Ma:[]}}xa(e){return!this.fa.has(e)&&!!this.wa.has(e)&&!this.wa.get(e).hasLocalMutations}Ca(e){e&&(e.addedDocuments.forEach(e=>this.fa=this.fa.add(e)),e.modifiedDocuments.forEach(e=>{}),e.removedDocuments.forEach(e=>this.fa=this.fa.delete(e)),this.current=e.current)}Fa(){if(!this.current)return[];let e=this.pa;this.pa=ns(),this.wa.forEach(e=>{this.xa(e.key)&&(this.pa=this.pa.add(e.key))});let t=[];return e.forEach(e=>{this.pa.has(e)||t.push(new an(e))}
34),this.pa.forEach(r=>{e.has(r)||t.push(new ar(r))}),t}Oa(e){this.fa=e.gs,this.pa=ns();let t=this.Sa(e.documents);return this.applyChanges(t,!0)}Na(){return s2.fromInitialDocuments(this.query,this.wa,this.mutatedKeys,0===this.ga,this.hasCachedResults)}}let ao="SyncEngine";class as{constructor(e,t,r){this.query=e,this.targetId=t,this.view=r}}class aa{constructor(e){this.key=e,this.Ba=!1}}class al{constructor(e,t,r,n,i,o){this.localStore=e,this.remoteStore=t,this.eventManager=r,this.sharedClientState=n,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.La={},this.ka=new r7(e=>r4(e),r2),this.qa=new Map,this.Qa=new Set,this.$a=new tN(eo.comparator),this.Ka=new Map,this.Ua=new o_,this.Wa={},this.Ga=new Map,this.za=ot.Un(),this.onlineState="Unknown",this.ja=void 0}get isPrimaryClient(){return!0===this.ja}}async function au(e,t,r=!0){let n;let i=aF(e),o=i.ka.get(t);return o?(i.sharedClientState.addLocalQueryTarget(o.targetId),n=o.view.Na()):n=await ah(i,t,r,!0),n}async function ac(e,t){let r=aF(e);await ah(r,t,!0,!1)}async function ah(e,t,r,n){let i;
34let o=await oq(e.localStore,rJ(t)),s=o.targetId,a=e.sharedClientState.addLocalQueryTarget(s,r);return n&&(i=await ad(e,t,s,"current"===a,o.resumeToken)),e.isPrimaryClient&&r&&sC(e.remoteStore,o),i}async function ad(e,t,r,n,i){e.Ha=(t,r,n)=>(async function(e,t,r,n){let i=t.view.Sa(r);i.ls&&(i=await oK(e.localStore,t.query,!1).then(({documents:e})=>t.view.Sa(e,i)));let o=n&&n.targetChanges.get(t.targetId),s=n&&null!=n.targetMismatches.get(t.targetId),a=t.view.applyChanges(i,e.isPrimaryClient,o,s);return aT(e,t.targetId,a.Ma),a.snapshot})(e,t,r,n);let o=await oK(e.localStore,t,!0),s=new ai(t,o.gs),a=s.Sa(o.documents),l=nG.createSynthesizedTargetChangeForCurrentChange(r,n&&"Offline"!==e.onlineState,i),u=s.applyChanges(a,e.isPrimaryClient,l);aT(e,r,u.Ma);let c=new as(t,r,s);return e.ka.set(t,c),e.qa.has(r)?e.qa.get(r).push(t):e.qa.set(r,[t]),u.snapshot}async function af(e,t,r){let n=e.ka.get(t),i=e.qa.get(n.targetId);if(i.length>1)return e.qa.set(n.targetId,i.filter(e=>!r2(e,t))),void e.ka.delete(t);e.isPrimaryClient?(e.sharedClientState.removeLocalQueryTarget(n.targetId),e.sharedClientState.isActiveQueryTarget(n.targetId)||await oG(e.localStore,n.targetId,!1).then(()=>{e.sharedClientState.clearQueryState(n.targetId),r&&sI(e.remoteStore,n.targetId),aE(e,n.targetId)}).catch(ey)):(aE(e,n.targetId),await oG(e.localStore,n.targetId,!0))}async function ap(e,t){let r=e.ka.get(t),n=e.qa.get(r.targetId);e.isPrimaryClient&&1===n.length&&(e.sharedClientState.removeLocalQueryTarget(r.targetId),sI(e.remoteStore,r.targetId))}async function am(e,t,r){let n=aU(e);try{var i;let e;let o=await function(e,t){let r,n;let i=Q.now(),o=t.reduce((e,t)=>e.add(t.key),ns());return e.persistence.runTransaction("Locally write mutations","readwrite",s=>{let a=r9,l=ns();return e.ds.getEntries(s,o).next(e=>{(a=e).forEach((e,t)=>{t.isValidDocument()||(l=l.add(e))})}).next(()=>e.localDocuments.getOverlayedDocuments(s,a)).next(n=>{r=n;let o=[];for(let e of t){let t=function(e,t){let r=null;for(let n of e.fieldTransforms){let e=t.data.field(n.field),i=nd(n.transform,e||null);null!=i&&(null===r&&(r=rv.empty()),r.set(n.field,i))}return r||null}(e,r.get(e.key).overlayedDocument);null!=t&&o.push(new nP(e.key,t,function e(t){let r=[];return tO(t.fields,(t,n)=>{let i=new ei([t]);if(rh(n)){let t=e(n.mapValue).fields;if(0===t.length)r.push(i);else for(let e of t)r.push(i.child(e))}else r.push(i)}),new tU(r)}(t.value.mapValue),nE.exists(!0)))}return e.mutationQueue.addMutationBatch(s,i,o,t)}).next(t=>{n=t;let i=t.applyToLocalDocumentSet(r,l);return e.documentOverlayCache.saveOverlays(s,t.batchId,i)})}).then(()=>({batchId:n.batchId,changes:nr(r)}))}(n.localStore,t);n.sharedClientState.addPendingMutation(o.batchId),i=o.batchId,(e=n.Wa[n.currentUser.toKey()])||(e=new tN(X)),e=e.insert(i,r),n.Wa[n.currentUser.toKey()]=e,await aA(n,o.changes),await sB(n.remoteStore)}catch(t){let e=sJ(t,"Failed to persist write");r.reject(e)}}async function ag(e,t){try{let r=await function(e,t){let r=t.snapshotVersion,n=e.Ts;return e.persistence.runTransaction("Apply remote event","readwrite-primary",i=>{let o=e.ds.newChangeBuffer({trackRemovals:!0});n=e.Ts;let s=[];
34t.targetChanges.forEach((o,a)=>{var l;let u=n.get(a);if(!u)return;s.push(e.Hr.removeMatchingKeys(i,o.removedDocuments,a).next(()=>e.Hr.addMatchingKeys(i,o.addedDocuments,a)));let c=u.withSequenceNumber(i.currentSequenceNumber);null!==t.targetMismatches.get(a)?c=c.withResumeToken(tz.EMPTY_BYTE_STRING,J.min()).withLastLimboFreeSnapshotVersion(J.min()):o.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(o.resumeToken,r)),n=n.insert(a,c),l=c,(0===u.resumeToken.approximateByteSize()||l.snapshotVersion.toMicroseconds()-u.snapshotVersion.toMicroseconds()>=3e8||o.addedDocuments.size+o.modifiedDocuments.size+o.removedDocuments.size>0)&&s.push(e.Hr.updateTargetData(i,c))});let a=r9,l=ns();if(t.documentUpdates.forEach(r=>{t.resolvedLimboDocuments.has(r)&&s.push(e.persistence.referenceDelegate.updateLimboDocument(i,r))}),s.push(oW(i,o,t.documentUpdates).next(e=>{a=e.Vs,l=e.fs})),!r.isEqual(J.min())){let t=e.Hr.getLastRemoteSnapshotVersion(i).next(t=>e.Hr.setTargetsMetadata(i,i.currentSequenceNumber,r));s.push(t)}return ev.waitFor(s).next(()=>o.apply(i)).next(()=>e.localDocuments.getLocalViewOfDocuments(i,a,l)).next(()=>a)}).then(t=>(e.Ts=n,t))}(e.localStore,t);
34t.targetChanges.forEach((t,r)=>{let n=e.Ka.get(r);n&&(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1||j(),t.addedDocuments.size>0?n.Ba=!0:t.modifiedDocuments.size>0?n.Ba||j():t.removedDocuments.size>0&&(n.Ba||j(),n.Ba=!1))}),await aA(e,r,t)}catch(e){await ey(e)}}function ay(e,t,r){var n;if(e.isPrimaryClient&&0===r||!e.isPrimaryClient&&1===r){let r;let i=[];e.ka.forEach((e,r)=>{let n=r.view.sa(t);n.snapshot&&i.push(n.snapshot)}),(n=e.eventManager).onlineState=t,r=!1,n.queries.forEach((e,n)=>{for(let e of n.ta)e.sa(t)&&(r=!0)}),r&&ae(n),i.length&&e.La.p_(i),e.onlineState=t,e.isPrimaryClient&&e.sharedClientState.setOnlineState(t)}}async function av(e,t,r){e.sharedClientState.updateQueryState(t,"rejected",r);let n=e.Ka.get(t),i=n&&n.key;if(i){let r=new tN(eo.comparator);r=r.insert(i,rb.newNoDocument(i,J.min()));let n=ns().add(i),o=new nq(J.min(),new Map,new tN(X),r,n);await ag(e,o),e.$a=e.$a.remove(i),e.Ka.delete(t),ak(e)}else await oG(e.localStore,t,!1).then(()=>aE(e,t,r)).catch(ey)}async function ab(e,t){var r;let n=t.batch.batchId;try{let i=await (r=e.localStore).persistence.runTransaction("Acknowledge batch","readwrite-primary",e=>{let n=t.batch.keys(),i=r.ds.newChangeBuffer({trackRemovals:!0});return(function(e,t,r,n){let i=r.batch,o=i.keys(),s=ev.resolve();return o.forEach(e=>{s=s.next(()=>n.getEntry(t,e)).next(t=>{let o=r.docVersions.get(e);null!==o||j(),0>t.version.compareTo(o)&&(i.applyToRemoteDocument(t,r),t.isValidDocument()&&(t.setReadTime(r.commitVersion),n.addEntry(t)))})}),s.next(()=>e.mutationQueue.removeMutationBatch(t,i))})(r,e,t,i).next(()=>i.apply(e)).next(()=>r.mutationQueue.performConsistencyCheck(e)).next(()=>r.documentOverlayCache.removeOverlaysForBatchId(e,n,t.batch.batchId)).next(()=>r.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=ns();for(let r=0;r<e.mutationResults.length;++r)e.mutationResults[r].transformResults.length>0&&(t=t.add(e.batch.mutations[r].key));return t}(t))).next(()=>r.localDocuments.getDocuments(e,n))});a_(e,n,null),ax(e,n),e.sharedClientState.updateMutationState(n,"acknowledged"),await aA(e,i)}catch(e){await ey(e)}}async function aw(e,t,r){var n;try{let i=await (n=e.localStore).persistence.runTransaction("Reject batch","readwrite-primary",e=>{let r;
34return n.mutationQueue.lookupMutationBatch(e,t).next(t=>(null!==t||j(),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t))).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r)).next(()=>n.localDocuments.getDocuments(e,r))});a_(e,t,r),ax(e,t),e.sharedClientState.updateMutationState(t,"rejected",r),await aA(e,i)}catch(e){await ey(e)}}function ax(e,t){(e.Ga.get(t)||[]).forEach(e=>{e.resolve()}),e.Ga.delete(t)}function a_(e,t,r){let n=e.Wa[e.currentUser.toKey()];if(n){let i=n.get(t);i&&(r?i.reject(r):i.resolve(),n=n.remove(t)),e.Wa[e.currentUser.toKey()]=n}}function aE(e,t,r=null){for(let n of(e.sharedClientState.removeLocalQueryTarget(t),e.qa.get(t)))e.ka.delete(n),r&&e.La.Ja(n,r);e.qa.delete(t),e.isPrimaryClient&&e.Ua.Sr(t).forEach(t=>{e.Ua.containsKey(t)||aS(e,t)})}function aS(e,t){e.Qa.delete(t.path.canonicalString());let r=e.$a.get(t);null!==r&&(sI(e.remoteStore,r),e.$a=e.$a.remove(t),e.Ka.delete(r),ak(e))}function aT(e,t,r){for(let n of r)n instanceof ar?(e.Ua.addReference(n.key,t),function(e,t){let r=t.key,n=r.path.canonicalString();e.$a.get(r)||e.Qa.has(n)||(M(ao,"New document in limbo: "+r),e.Qa.add(n),ak(e))}(e,n)):n instanceof an?(M(ao,"Document no longer in limbo: "+n.key),e.Ua.removeReference(n.key,t),e.Ua.containsKey(n.key)||aS(e,n.key)):j()}function ak(e){for(;e.Qa.size>0&&e.$a.size<e.maxConcurrentLimboResolutions;){let t=e.Qa.values().next().value;e.Qa.delete(t);let r=new eo(er.fromString(t)),n=e.za.next();e.Ka.set(n,new aa(r)),e.$a=e.$a.insert(r,n),sC(e.remoteStore,new iw(rJ(rY(r.path)),n,"TargetPurposeLimboResolution",eM.ae))}}async function aA(e,t,r){let n=[],i=[],o=[];e.ka.isEmpty()||(e.ka.forEach((s,a)=>{o.push(e.Ha(a,t,r).then(t=>{var o;if((t||r)&&e.isPrimaryClient){let n=t?!t.fromCache:null===(o=null==r?void 0:r.targetChanges.get(a.targetId))||void 0===o?void 0:o.current;e.sharedClientState.updateQueryState(a.targetId,n?"current":"not-current")}if(t){n.push(t);let e=oV.Yi(a.targetId,t);i.push(e)}}))}),await Promise.all(o),e.La.p_(n),await async function(e,t){try{await e.persistence.runTransaction("notifyLocalViewChanges","readwrite",r=>ev.forEach(t,t=>ev.forEach(t.Hi,n=>e.persistence.referenceDelegate.addReference(r,t.targetId,n)).next(()=>ev.forEach(t.Ji,n=>e.persistence.referenceDelegate.removeReference(r,t.targetId,n)))))}catch(e){if(!eT(e))throw e;M(oB,"Failed to update sequence numbers: "+e)}for(let r of t){let t=r.targetId;if(!r.fromCache){let r=e.Ts.get(t),n=r.snapshotVersion,i=r.withLastLimboFreeSnapshotVersion(n);e.Ts=e.Ts.insert(t,i)}}}(e.localStore,i))}async function aC(e,t){var r;if(!e.currentUser.isEqual(t)){M(ao,"User change. New user:",t.toKey());let n=await oH(e.localStore,t);e.currentUser=t,r="'waitForPendingWrites' promise is rejected due to a user change.",e.Ga.forEach(e=>{e.forEach(e=>{e.reject(new F(V.CANCELLED,r))})}),e.Ga.clear(),e.sharedClientState.handleUserChange(t,n.removedBatchIds,n.addedBatchIds),await aA(e,n.Rs)}}function aI(e,t){let r=e.Ka.get(t);if(r&&r.Ba)return ns().add(r.key);{let r=ns(),n=e.qa.get(t);if(!n)return r;for(let t of n){let n=e.ka.get(t);r=r.unionWith(n.view.ba)}return r}}async function aP(e,t){let r=await oK(e.localStore,t.query,!0),n=t.view.Oa(r);return e.isPrimaryClient&&aT(e,t.targetId,n.Ma),n}async function aR(e,t){return oX(e.localStore,t).then(t=>aA(e,t))}async function aO(e,t,r,n){let i=await function(e,t){let r=e.mutationQueue;return e.persistence.runTransaction("Lookup mutation documents","readonly",n=>r.Ln(n,t).next(t=>t?e.localDocuments.getDocuments(n,t):ev.resolve(null)))}(e.localStore,t);null!==i?("pending"===r?await sB(e.remoteStore):"acknowledged"===r||"rejected"===r?(a_(e,t,n||null),ax(e,t),function(e,t){e.mutationQueue.qn(t)}(e.localStore,t)):j(),await aA(e,i)):M(ao,"Cannot apply mutation batch with id: "+t)}async function aM(e,t){if(aF(e),aU(e),!0===t&&!0!==e.ja){let t=e.sharedClientState.getAllActiveQueryTargets(),r=await aN(e,t.toArray());for(let t of(e.ja=!0,await sY(e.remoteStore,!0),r))sC(e.remoteStore,t)}else if(!1===t&&!1!==e.ja){let t=[],r=Promise.resolve();e.qa.forEach((n,i)=>
34{e.sharedClientState.isLocalQueryTarget(i)?t.push(i):r=r.then(()=>(aE(e,i),oG(e.localStore,i,!0))),sI(e.remoteStore,i)}),await r,await aN(e,t),e.Ka.forEach((t,r)=>{sI(e.remoteStore,r)}),e.Ua.Dr(),e.Ka=new Map,e.$a=new tN(eo.comparator),e.ja=!1,await sY(e.remoteStore,!1)}}async function aN(e,t,r){let n=[],i=[];for(let r of t){let t;let o=e.qa.get(r);if(o&&0!==o.length)for(let r of(t=await oq(e.localStore,rJ(o[0])),o)){let t=e.ka.get(r),n=await aP(e,t);n.snapshot&&i.push(n.snapshot)}else{let n=await oY(e.localStore,r);t=await oq(e.localStore,n),await ad(e,aL(n),r,!1,t.resumeToken)}n.push(t)}return e.La.p_(i),n}function aL(e){var t,r,n,i;return t=e.path,r=e.collectionGroup,n=e.orderBy,i=e.filters,new rK(t,r,n,i,e.limit,"F",e.startAt,e.endAt)}function aD(e){return e.localStore.persistence.zi()}async function aj(e,t,r,n){if(e.ja)return void M(ao,"Ignoring unexpected query state notification.");let i=e.qa.get(t);if(i&&i.length>0)switch(r){case"current":case"not-current":{let n=await oX(e.localStore,r6(i[0])),o=nq.createSynthesizedRemoteEventForCurrentChange(t,"current"===r,tz.EMPTY_BYTE_STRING);await aA(e,n,o);break}case"rejected":await oG(e.localStore,t,!0),aE(e,t,n);break;default:j()}}async function aV(e,t,r){let n=aF(e);if(n.ja){for(let e of t){if(n.qa.has(e)&&n.sharedClientState.isActiveQueryTarget(e)){M(ao,"Adding an already active target "+e);continue}let t=await oY(n.localStore,e),r=await oq(n.localStore,t);await ad(n,aL(t),r.targetId,!1,r.resumeToken),sC(n.remoteStore,r)}for(let e of r)n.qa.has(e)&&await oG(n.localStore,e,!1).then(()=>{sI(n.remoteStore,e),aE(n,e)}).catch(ey)}}function aF(e){return e.remoteStore.remoteSyncer.applyRemoteEvent=ag.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=aI.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=av.bind(null,e),e.La.p_=s7.bind(null,e.eventManager),e.La.Ja=s9.bind(null,e.eventManager),e}function aU(e){return e.remoteStore.remoteSyncer.applySuccessfulWrite=ab.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=aw.bind(null,e),e}class aB{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=sm(e.databaseInfo.databaseId),this.sharedClientState=this.Za(e),this.persistence=this.Xa(e),await this.persistence.start(),this.localStore=this.eu(e),this.gcScheduler=this.tu(e,this.localStore),this.indexBackfillerScheduler=this.nu(e,this.localStore)}tu(e,t){return null}nu(e,t){return null}eu(e){var t;return t=this.persistence,new oz(t,new oU,e.initialUser,this.serializer)}Xa(e){return new oC(oP.ri,this.serializer)}Za(e){return new st}async terminate(){var e,t;null===(e=this.gcScheduler)||void 0===e||e.stop(),null===(t=this.indexBackfillerScheduler)||void 0===t||t.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}aB.provider={build:()=>new aB};class az extends aB{constructor(e){super(),this.cacheSizeBytes=e}tu(e,t){return this.persistence.referenceDelegate instanceof oR||j(),new oa(this.persistence.referenceDelegate.garbageCollector,e.asyncQueue,t)}Xa(e){let t=void 0!==this.cacheSizeBytes?i5.withCacheSize(this.cacheSizeBytes):i5.DEFAULT;return new oC(e=>oR.ri(e,t),this.serializer)}}class aH extends aB{constructor(e,t,r){super(),this.ru=e,this.cacheSizeBytes=t,this.forceOwnership=r,this.kind="persistent",this.synchronizeTabs=!1}async initialize(e){await super.initialize(e),await this.ru.initialize(this,e),await aU(this.ru.syncEngine),await sB(this.ru.remoteStore),await this.persistence.Ci(()=>(this.gcScheduler&&!this.gcScheduler.started&&this.gcScheduler.start(),this.indexBackfillerScheduler&&!this.indexBackfillerScheduler.started&&this.indexBackfillerScheduler.start(),Promise.resolve()))}eu(e){var t;return t=this.persistence,new oz(t,new oU,e.initialUser,this.serializer)}tu(e,t){return new oa(this.persistence.referenceDelegate.garbageCollector,e.asyncQueue,t)}nu(e,t){let r=new eO(t,this.persistence);return new eR(e.asyncQueue,r)}Xa(e){let t=oj(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),r=void 0!==this.cacheSizeBytes?i5.withCacheSize(this.cacheSizeBytes):i5.DEFAULT;return new oD(this.synchronizeTabs,t,e.clientId,r,e.asyncQueue,sf(),sp(),this.serializer,this.sharedCl
34ientState,!!this.forceOwnership)}Za(e){return new st}}class a${async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>ay(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=aC.bind(null,this.syncEngine),await sY(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new s3}createDatastore(e){let t=sm(e.databaseInfo.databaseId),r=new sd(e.databaseInfo);return new s_(e.authCredentials,e.appCheckCredentials,r,t)}createRemoteStore(e){var t;return t=this.localStore,new sT(t,this.datastore,e.asyncQueue,e=>ay(this.syncEngine,e,0),si.D()?new si:new sr)}createSyncEngine(e,t){return function(e,t,r,n,i,o,s){let a=new al(e,t,r,n,i,o);return s&&(a.ja=!0),a}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){var e,t;await async function(e){M(sS,"RemoteStore shutting down."),e.W_.add(5),await sA(e),e.z_.shutdown(),e.j_.set("Unknown")}(this.remoteStore),null===(e=this.datastore)||void 0===e||e.terminate(),null===(t=this.eventManager)||void 0===t||t.terminate()}}a$.provider={build:()=>new a$};class aW{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.iu(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.iu(this.observer.error,e):N("Uncaught Error in snapshot listener:",e.toString()))}su(){this.muted=!0}iu(e,t){setTimeout(()=>{this.muted||e(t)},0)}}let aq="FirestoreClient";class aG{constructor(e,t,r,n,i){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=r,this.databaseInfo=n,this.user=I.UNAUTHENTICATED,this.clientId=Y.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(r,async e=>{M(aq,"Received user=",e.uid),await this.authCredentialListener(e),this.user=e}),this.appCheckCredentials.start(r,e=>(M(aq,"Received new app check token=",e),this.appCheckCredentialListener(e,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();let e=new U;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(r){let t=sJ(r,"Failed to shutdown persistence");e.reject(t)}}),e.promise}}async function aK(e,t){e.asyncQueue.verifyOperationInProgress(),M(aq,"Initializing OfflineComponentProvider");let r=e.configuration;await t.initialize(r);let n=r.initialUser;e.setCredentialChangeListener(async e=>{n.isEqual(e)||(await oH(t.localStore,e),n=e)}),t.persistence.setDatabaseDeletedListener(()=>e.terminate()),e._offlineComponents=t}async function aY(e,t){e.asyncQueue.verifyOperationInProgress();let r=await aX(e);M(aq,"Initializing OnlineComponentProvider"),await t.initialize(r,e.configuration),e.setCredentialChangeListener(e=>sK(t.remoteStore,e)),e.setAppCheckTokenChangeListener((e,r)=>sK(t.remoteStore,r)),e._onlineComponents=t}async function aX(e){if(!e._offlineComponents){if(e._uninitializedComponentsProvider){M(aq,"Using user provided OfflineComponentProvider");try{await aK(e,e._uninitializedComponentsProvider._offline)}catch(t){if(!("FirebaseError"===t.name?t.code===V.FAILED_PRECONDITION||t.code===V.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code))throw t;L("Error using user provided cache. Falling back to memory cache: "+t),await aK(e,new aB)}}else M(aq,"Using default OfflineComponentProvider"),await aK(e,new az(void 0))}return e._offlineComponents}async function aZ(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(M(aq,"Using user provided OnlineComponentProvider"),await aY(e,e._uninitializedComponentsProvider._online)):(M(aq,"Using default OnlineComponentProvider"),await aY(e,new a$))),e._onlineComponents}async function aQ(e){let t=await aZ(e),r=t.eventManager;return r.onListen=au.bind(null,t.syncEngine),r.onUnlisten=af.bind(null,t.syncEngine),r.onFirstRemoteStoreListen=ac.bind(null,t.syncEngine),r.onLastRemoteStoreUnlisten=ap.bind(null,t.syncEngine),r}function aJ(e){let t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}let a0=new Map;function a1(e,t,r){if(!r)throw new F(V.INVALID_ARGUMENT,`Function ${e}() cannot be called with an empty ${t}.`)}function a2(e){if(!eo.isDocumentKey(e))throw new F(V.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${e} has ${e.length}.`)}function a4(e){if(eo.isDocumentKey(e))throw new F(V.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${e} has ${e.length}.`)}function a3(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=`${e.substring(0,20)}...`),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{var t;let r=(t=e).constructor?t.constructor.name:null;return r?`a custom ${r} object`:"an object"}}return"function"==typeof e?"a function":j()}function a5(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new F(V.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{let r=a3(e);throw new F(V.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${r}`)}}return e}let a6="firestore.googleapis.com";class a8{constructor(e){var t,r;if(void 0===e.host){if(void 0!==e.ssl)throw new F(V.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=a6,this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=0x2800000;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new F(V.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function(e,t,r,n){if(!0===t&&!0===n)throw new F(V.INVALID_ARGUMENT,`${e} and ${r} cannot be used together.`)})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=aJ(null!==(r=e.experimentalLongPollingOptions)&&void 0!==r?r:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new F(V.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new F(V.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new F(V.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){var t,r;return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&(t=this.experimentalLongPollingOptions,r=e.experimentalLongPollingOptions,t.timeoutSeconds===r.timeoutSeconds)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class a7{constructor(e,t,r,n){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=r,this._app=n,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new a8({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new F(V.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new F(V.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new a8(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new z;switch(e.type){case"firstParty":return new q(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new F(V.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
34d credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){"notTerminated"===this._terminateTask?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){let t=a0.get(e);t&&(M("ComponentProvider","Removing Datastore"),a0.delete(e),t.terminate())}(this),Promise.resolve()}}class a9{constructor(e,t,r){this.converter=t,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new a9(this.firestore,e,this._query)}}class le{constructor(e,t,r){this.converter=t,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new lt(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new le(this.firestore,e,this._key)}}class lt extends a9{constructor(e,t,r){super(e,t,rY(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){let e=this._path.popLast();return e.isEmpty()?null:new le(this.firestore,null,new eo(e))}withConverter(e){return new lt(this.firestore,e,this._path)}}function lr(e,t,...r){if(e=(0,w.Ku)(e),a1("collection","path",t),e instanceof a7){let n=er.fromString(t,...r);return a4(n),new lt(e,null,n)}{if(!(e instanceof le||e instanceof lt))throw new F(V.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");let n=e._path.child(er.fromString(t,...r));return a4(n),new lt(e.firestore,null,n)}}function ln(e,t,...r){if(e=(0,w.Ku)(e),1==arguments.length&&(t=Y.newId()),a1("doc","path",t),e instanceof a7){let n=er.fromString(t,...r);return a2(n),new le(e,null,new eo(n))}{if(!(e instanceof le||e instanceof lt))throw new F(V.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");let n=e._path.child(er.fromString(t,...r));return a2(n),new le(e.firestore,e instanceof lt?e.converter:null,new eo(n))}}let li="AsyncQueue";class lo{constructor(e=Promise.resolve()){this.Vu=[],this.mu=!1,this.fu=[],this.gu=null,this.pu=!1,this.yu=!1,this.wu=[],this.a_=new sg(this,"async_queue_retry"),this.bu=()=>{let e=sp();e&&M(li,"Visibility state changed to "+e.visibilityState),this.a_.t_()},this.Su=e;let t=sp();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.bu)}get isShuttingDown(){return this.mu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Du(),this.vu(e)}enterRestrictedMode(e){if(!this.mu){this.mu=!0,this.yu=e||!1;let t=sp();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.bu)}}enqueue(e){if(this.Du(),this.mu)return new Promise(()=>{});let t=new U;return this.vu(()=>this.mu&&this.yu?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Vu.push(e),this.Cu()))}async Cu(){if(0!==this.Vu.length){try{await this.Vu[0](),this.Vu.shift(),this.a_.reset()}catch(e){if(!eT(e))throw e;M(li,"Operation failed with retryable error: "+e)}this.Vu.length>0&&this.a_.Xo(()=>this.Cu())}}vu(e){let t=this.Su.then(()=>(this.pu=!0,e().catch(e=>{let t;throw this.gu=e,this.pu=!1,N("INTERNAL UNHANDLED ERROR: ",(t=e.message||"",e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t)),e}).then(e=>(this.pu=!1,e))));return this.Su=t,t}enqueueAfterDelay(e,t,r){this.Du(),this.wu.indexOf(e)>-1&&(t=0);let n=sQ.createAndSchedule(this,e,t,r,e=>this.Fu(e));return this.fu.push(n),n}Du(){this.gu&&j()}verifyOperationInProgress(){}async Mu(){let e;do e=this.Su,await e;while(e!==this.Su)}xu(e){for(let t of this.fu)if(t.timerId===e)return!0;return!1}Ou(e){return this.Mu().then(()=>{for(let t of(this.fu.sort((e,t)=>
34e.targetTimeMs-t.targetTimeMs),this.fu))if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Mu()})}Nu(e){this.wu.push(e)}Fu(e){let t=this.fu.indexOf(e);this.fu.splice(t,1)}}function ls(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])}class la extends a7{constructor(e,t,r,n){super(e,t,r,n),this.type="firestore",this._queue=new lo,this._persistenceKey=(null==n?void 0:n.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){let e=this._firestoreClient.terminate();this._queue=new lo(e),this._firestoreClient=void 0,await e}}}function ll(e,t){let r="object"==typeof e?e:(0,y.Sx)(),n=(0,y.j6)(r,"firestore").getImmediate({identifier:"string"==typeof e?e:t||t1});if(!n._initialized){let e=(0,w.yU)("firestore");e&&function(e,t,r,n={}){var i;let o=(e=a5(e,a7))._getSettings(),s=Object.assign(Object.assign({},o),{emulatorOptions:e._getEmulatorOptions()}),a=`${t}:${r}`;o.host!==a6&&o.host!==a&&L("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");let l=Object.assign(Object.assign({},o),{host:a,ssl:!1,emulatorOptions:n});if(!(0,w.bD)(l,s)&&(e._setSettings(l),n.mockUserToken)){let t,r;if("string"==typeof n.mockUserToken)t=n.mockUserToken,r=I.MOCK_USER;else{t=(0,w.Fy)(n.mockUserToken,null===(i=e._app)||void 0===i?void 0:i.options.projectId);let o=n.mockUserToken.sub||n.mockUserToken.user_id;if(!o)throw new F(V.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");r=new I(o)}e._authCredentials=new H(new B(t,r))}}(n,...e)}return n}function lu(e){if(e._terminated)throw new F(V.FAILED_PRECONDITION,"The client has already been terminated.");return e._firestoreClient||function(e){var t,r,n,i;let o=e._freezeSettings(),s=(i=e._databaseId,new t0(i,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,o.host,o.ssl,o.experimentalForceLongPolling,o.experimentalAutoDetectLongPolling,aJ(o.experimentalLongPollingOptions),o.useFetchStreams));e._componentsProvider||(null===(r=o.localCache)||void 0===r?void 0:r._offlineComponentProvider)&&(null===(n=o.localCache)||void 0===n?void 0:n._onlineComponentProvider)&&(e._componentsProvider={_offline:o.localCache._offlineComponentProvider,_online:o.localCache._onlineComponentProvider}),e._firestoreClient=new aG(e._authCredentials,e._appCheckCredentials,e._queue,s,e._componentsProvider&&function(e){let t=null==e?void 0:e._online.build();return{_offline:null==e?void 0:e._offline.build(t),_online:t}}(e._componentsProvider))}(e),e._firestoreClient}class lc{constructor(e){this._byteString=e}static fromBase64String(e){try{return new lc(tz.fromBase64String(e))}catch(e){throw new F(V.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new lc(tz.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}class lh{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new F(V.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ei(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class ld{constructor(e){this._methodName=e}}class lf{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new F(V.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new F(V.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return X(this._lat,e._lat)||X(this._long,e._long)}}class lp{constructor(e){this._values=(e||[]).map(e=>e)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(this._values,e._values)}}let lm=/^__.*__$/;class lg{constructor(e,t,r){this.data=e,this.fieldMask=t,this.fieldTransforms=r}toMutation(e,t){return null!==this.fieldMask?new nP(e,this.data,this.fieldMask,t,this.fieldTransforms):new nI(e,this.data,t,this.fieldTransforms)}}class ly{constructor(e,t,r){this.data=e,this.fieldMask=t,this.fieldTransforms=r}toMutation(e,t){return new nP(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function lv(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw j()}}class lb{constructor(e,t,r,n,i,o){this.settings=e,this.databaseId=t,this.serializer
34=r,this.ignoreUndefinedProperties=n,void 0===i&&this.Bu(),this.fieldTransforms=i||[],this.fieldMask=o||[]}get path(){return this.settings.path}get Lu(){return this.settings.Lu}ku(e){return new lb(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}qu(e){var t;let r=null===(t=this.path)||void 0===t?void 0:t.child(e),n=this.ku({path:r,Qu:!1});return n.$u(e),n}Ku(e){var t;let r=null===(t=this.path)||void 0===t?void 0:t.child(e),n=this.ku({path:r,Qu:!1});return n.Bu(),n}Uu(e){return this.ku({path:void 0,Qu:!0})}Wu(e){return lF(e,this.settings.methodName,this.settings.Gu||!1,this.path,this.settings.zu)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}Bu(){if(this.path)for(let e=0;e<this.path.length;e++)this.$u(this.path.get(e))}$u(e){if(0===e.length)throw this.Wu("Document fields must not be empty");if(lv(this.Lu)&&lm.test(e))throw this.Wu('Document fields cannot begin and end with "__"')}}class lw{constructor(e,t,r){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=r||sm(e)}ju(e,t,r,n=!1){return new lb({Lu:e,methodName:t,zu:r,path:ei.emptyPath(),Qu:!1,Gu:n},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function lx(e){let t=e._freezeSettings(),r=sm(e._databaseId);return new lw(e._databaseId,!!t.ignoreUndefinedProperties,r)}function l_(e,t,r,n,i,o={}){let s,a;let l=e.ju(o.merge||o.mergeFields?2:0,t,r,i);lL("Data must be an object, but it was:",l,n);let u=lM(n,l);if(o.merge)s=new tU(l.fieldMask),a=l.fieldTransforms;else if(o.mergeFields){let e=[];for(let n of o.mergeFields){let i=lD(t,n,r);if(!l.contains(i))throw new F(V.INVALID_ARGUMENT,`Field '${i}' is specified in your field mask but missing from your input data.`);lU(e,i)||e.push(i)}s=new tU(e),a=l.fieldTransforms.filter(e=>s.covers(e.field))}else s=null,a=l.fieldTransforms;return new lg(new rv(u),s,a)}class lE extends ld{_toFieldTransform(e){if(2!==e.Lu)throw 1===e.Lu?e.Wu(`${this._methodName}() can only appear at the top level of your update data`):e.Wu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof lE}}function lS(e,t,r){return new lb({Lu:3,zu:t.settings.zu,methodName:e._methodName,Qu:r},t.databaseId,t.serializer,t.ignoreUndefinedProperties)}class lT extends ld{_toFieldTransform(e){return new nx(e.path,new nf)}isEqual(e){return e instanceof lT}}class lk extends ld{constructor(e,t){super(e),this.Hu=t}_toFieldTransform(e){let t=lS(this,e,!0),r=new np(this.Hu.map(e=>lO(e,t)));return new nx(e.path,r)}isEqual(e){return e instanceof lk&&(0,w.bD)(this.Hu,e.Hu)}}class lA extends ld{constructor(e,t){super(e),this.Hu=t}_toFieldTransform(e){let t=lS(this,e,!0),r=new ng(this.Hu.map(e=>lO(e,t)));return new nx(e.path,r)}isEqual(e){return e instanceof lA&&(0,w.bD)(this.Hu,e.Hu)}}class lC extends ld{constructor(e,t){super(e),this.Ju=t}_toFieldTransform(e){let t=new nv(e.serializer,nc(e.serializer,this.Ju));return new nx(e.path,t)}isEqual(e){return e instanceof lC&&this.Ju===e.Ju}}function lI(e,t,r,n){let i=e.ju(1,t,r);lL("Data must be an object, but it was:",i,n);let o=[],s=rv.empty();return tO(n,(e,n)=>{let a=lV(t,e,r);n=(0,w.Ku)(n);let l=i.Ku(a);if(n instanceof lE)o.push(a);else{let e=lO(n,l);null!=e&&(o.push(a),s.set(a,e))}}),new ly(s,new tU(o),i.fieldTransforms)}function lP(e,t,r,n,i,o){let s=e.ju(1,t,r),a=[lD(t,n,r)],l=[i];if(o.length%2!=0)throw new F(V.INVALID_ARGUMENT,`Function ${t}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let e=0;e<o.length;e+=2)a.push(lD(t,o[e])),l.push(o[e+1]);let u=[],c=rv.empty();for(let e=a.length-1;e>=0;--e)if(!lU(u,a[e])){let t=a[e],r=l[e];r=(0,w.Ku)(r);let n=s.Ku(t);if(r instanceof lE)u.push(t);else{let e=lO(r,n);null!=e&&(u.push(t),c.set(t,e))}}return new ly(c,new tU(u),s.fieldTransforms)}function lR(e,t,r,n=!1){return lO(r,e.ju(n?4:3,t))}function lO(e,t){if(lN(e=(0,w.Ku)(e)))return lL("Unsupported field value:",t,e),lM(e,t);if(e instanceof ld)return function(e,t){if(!lv(t.Lu))throw t.Wu(`${e._methodName}
34() can only be used with update() and set()`);if(!t.path)throw t.Wu(`${e._methodName}() is not currently supported inside arrays`);let r=e._toFieldTransform(t);r&&t.fieldTransforms.push(r)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.Qu&&4!==t.Lu)throw t.Wu("Nested arrays are not supported");return function(e,t){let r=[],n=0;for(let i of e){let e=lO(i,t.Uu(n));null==e&&(e={nullValue:"NULL_VALUE"}),r.push(e),n++}return{arrayValue:{values:r}}}(e,t)}return function(e,t){if(null===(e=(0,w.Ku)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return nc(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){let r=Q.fromDate(e);return{timestampValue:n6(t.serializer,r)}}if(e instanceof Q){let r=new Q(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:n6(t.serializer,r)}}if(e instanceof lf)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof lc)return{bytesValue:n8(t.serializer,e._byteString)};if(e instanceof le){let r=t.databaseId,n=e.firestore._databaseId;if(!n.isEqual(r))throw t.Wu(`Document reference is for database ${n.projectId}/${n.database} but should be for database ${r.projectId}/${r.database}`);return{referenceValue:n9(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof lp)return{mapValue:{fields:{[t4]:{stringValue:t6},[t8]:{arrayValue:{values:e.toArray().map(e=>{if("number"!=typeof e)throw t.Wu("VectorValues must only contain numeric values.");return nl(t.serializer,e)})}}}}};throw t.Wu(`Unsupported field value: ${a3(e)}`)}(e,t)}function lM(e,t){let r={};return tM(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):tO(e,(e,n)=>{let i=lO(n,t.qu(e));null!=i&&(r[e]=i)}),{mapValue:{fields:r}}}function lN(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof Q||e instanceof lf||e instanceof lc||e instanceof le||e instanceof ld||e instanceof lp)}function lL(e,t,r){if(!lN(r)||!("object"==typeof r&&null!==r&&(Object.getPrototypeOf(r)===Object.prototype||null===Object.getPrototypeOf(r)))){let n=a3(r);throw"an object"===n?t.Wu(e+" a custom object"):t.Wu(e+" "+n)}}function lD(e,t,r){if((t=(0,w.Ku)(t))instanceof lh)return t._internalPath;if("string"==typeof t)return lV(e,t);throw lF("Field path arguments must be of type string or ",e,!1,void 0,r)}let lj=RegExp("[~\\*/\\[\\]]");function lV(e,t,r){if(t.search(lj)>=0)throw lF(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,e,!1,void 0,r);try{return new lh(...t.split("."))._internalPath}catch(n){throw lF(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,e,!1,void 0,r)}}function lF(e,t,r,n,i){let o=n&&!n.isEmpty(),s=void 0!==i,a=`Function ${t}() called with invalid data`;r&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(o||s)&&(l+=" (found",o&&(l+=` in field ${n}`),s&&(l+=` in document ${i}`),l+=")"),new F(V.INVALID_ARGUMENT,a+e+l)}function lU(e,t){return e.some(e=>e.isEqual(t))}class lB{constructor(e,t,r,n,i){this._firestore=e,this._userDataWriter=t,this._key=r,this._document=n,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new le(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){let e=new lz(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){let t=this._document.data.field(lH("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class lz extends lB{data(){return super.data()}}function lH(e,t){return"string"==typeof t?lV(e,t):t instanceof lh?t._internalPath:t._delegate._internalPath}function l$(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new F(V.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class lW{}class lq extends lW{}function lG(e,t,...r){let n=[];for(let i of(t instanceof lW&&n.push(t),function(e){let t=e.filter(e=>e instanceof lX).length,r=e.filter(e=>e instanceof lK).length;if(t>1||t>0&&r>0)throw new F(V.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(n=n.concat(r)),n))e=i._apply(e);return e}class lK extends lq{constructor(e,t,r){super(),this._field=e,this._op=t,this._value=r,this.type="where"}static _create(e,t,r){return new lK(e,t,r)}_apply(e){let t=this._parse(e);return l6(e._query,t),new a9(e.firestore,e.converter,r0(e._query,t))}_parse(e){let t=lx(e.firestore);return function(e,t,r,n,i,o,s){let a;
34if(i.isKeyField()){if("array-contains"===o||"array-contains-any"===o)throw new F(V.INVALID_ARGUMENT,`Invalid Query. You can't perform '${o}' queries on documentId().`);if("in"===o||"not-in"===o){l5(s,o);let t=[];for(let r of s)t.push(l3(n,e,r));a={arrayValue:{values:t}}}else a=l3(n,e,s)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||l5(s,o),a=lR(r,t,s,"in"===o||"not-in"===o);return rT.create(i,o,a)}(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value)}}function lY(e,t,r){let n=lH("where",e);return lK._create(n,t,r)}class lX extends lW{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new lX(e,t)}_parse(e){let t=this._queryConstraints.map(t=>t._parse(e)).filter(e=>e.getFilters().length>0);return 1===t.length?t[0]:rk.create(t,this._getOperator())}_apply(e){let t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){let r=e;for(let e of t.getFlattenedFilters())l6(r,e),r=r0(r,e)}(e._query,t),new a9(e.firestore,e.converter,r0(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class lZ extends lq{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new lZ(e,t)}_apply(e){let t=function(e,t,r){if(null!==e.startAt)throw new F(V.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new F(V.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new rE(t,r)}(e._query,this._field,this._direction);return new a9(e.firestore,e.converter,function(e,t){let r=e.explicitOrderBy.concat([t]);return new rK(e.path,e.collectionGroup,r,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}function lQ(e,t="asc"){let r=lH("orderBy",e);return lZ._create(r,t)}class lJ extends lq{constructor(e,t,r){super(),this.type=e,this._limit=t,this._limitType=r}static _create(e,t,r){return new lJ(e,t,r)}_apply(e){return new a9(e.firestore,e.converter,r1(e._query,this._limit,this._limitType))}}function l0(e){return function(e,t){if(t<=0)throw new F(V.INVALID_ARGUMENT,`Function ${e}() requires a positive number, but it was: ${t}.`)}("limit",e),lJ._create("limit",e,"F")}class l1 extends lq{constructor(e,t,r){super(),this.type=e,this._docOrFields=t,this._inclusive=r}static _create(e,t,r){return new l1(e,t,r)}_apply(e){var t;let r=l4(e,this.type,this._docOrFields,this._inclusive);return new a9(e.firestore,e.converter,new rK((t=e._query).path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,r,t.endAt))}}class l2 extends lq{constructor(e,t,r){super(),this.type=e,this._docOrFields=t,this._inclusive=r}static _create(e,t,r){return new l2(e,t,r)}_apply(e){var t;let r=l4(e,this.type,this._docOrFields,this._inclusive);return new a9(e.firestore,e.converter,new rK((t=e._query).path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,r))}}function l4(e,t,r,n){if(r[0]=(0,w.Ku)(r[0]),r[0]instanceof lB)return function(e,t,r,n,i){if(!n)throw new F(V.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${r}().`);let o=[];for(let r of rQ(e))if(r.field.isKeyField())o.push(rs(t,n.key));else{let e=n.data.field(r.field);if(tZ(e))throw new F(V.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+r.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===e){let e=r.field.canonicalString();throw new F(V.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${e}' (used as the orderBy) does not exist.`)}o.push(e)}return new rw(o,i)}(e._query,e.firestore._databaseId,t,r[0]._document,n);{let i=lx(e.firestore);return function(e,t,r,n,i,o){let s=e.explicitOrderBy;if(i.length>s.length)throw new F(V.INVALID_ARGUMENT,`Too many arguments provided to ${n}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);let a=[];for(let o=0;o<i.length;o++){let l=i[o];
34if(s[o].field.isKeyField()){if("string"!=typeof l)throw new F(V.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${n}(), but got a ${typeof l}`);if(!rZ(e)&&-1!==l.indexOf("/"))throw new F(V.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${n}() must be a plain document ID, but '${l}' contains a slash.`);let r=e.path.child(er.fromString(l));if(!eo.isDocumentKey(r))throw new F(V.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${n}() must result in a valid document path, but '${r}' is not because it contains an odd number of segments.`);let i=new eo(r);a.push(rs(t,i))}else{let e=lR(r,n,l);a.push(e)}}return new rw(a,o)}(e._query,e.firestore._databaseId,i,t,r,n)}}function l3(e,t,r){if("string"==typeof(r=(0,w.Ku)(r))){if(""===r)throw new F(V.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!rZ(t)&&-1!==r.indexOf("/"))throw new F(V.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${r}' contains a '/' character.`);let n=t.path.child(er.fromString(r));if(!eo.isDocumentKey(n))throw new F(V.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${n}' is not because it has an odd number of segments (${n.length}).`);return rs(e,new eo(n))}if(r instanceof le)return rs(e,r._key);throw new F(V.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${a3(r)}.`)}function l5(e,t){if(!Array.isArray(e)||0===e.length)throw new F(V.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`)}function l6(e,t){let r=function(e,t){for(let r of e)for(let e of r.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==r)throw r===t.op?new F(V.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`):new F(V.INVALID_ARGUMENT,`Invalid query. You cannot use '${t.op.toString()}' filters with '${r.toString()}' filters.`)}class l8{convertValue(e,t="none"){switch(t9(e)){case 0:return null;case 1:return e.booleanValue;case 2:return tW(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(tq(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 11:return this.convertObject(e.mapValue,t);case 10:return this.convertVectorValue(e.mapValue);default:throw j()}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t="none"){let r={};return tO(e,(e,n)=>{r[e]=this.convertValue(n,t)}),r}convertVectorValue(e){var t,r,n;return new lp(null===(n=null===(r=null===(t=e.fields)||void 0===t?void 0:t[t8].arrayValue)||void 0===r?void 0:r.values)||void 0===n?void 0:n.map(e=>tW(e.doubleValue)))}convertGeoPoint(e){return new lf(tW(e.latitude),tW(e.longitude))}convertArray(e,t){return(e.values||[]).map(e=>this.convertValue(e,t))}convertServerTimestamp(e,t){switch(t){case"previous":let r=tQ(e);return null==r?null:this.convertValue(r,t);case"estimate":return this.convertTimestamp(tJ(e));default:return null}}convertTimestamp(e){let t=t$(e);return new Q(t.seconds,t.nanos)}convertDocumentKey(e,t){let r=er.fromString(e);ib(r)||j();let n=new t2(r.get(1),r.get(3)),i=new eo(r.popFirst(5));return n.isEqual(t)||N(`Document ${i} contains a document reference within a different database (${n.projectId}/${n.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),i}}function l7(e,t,r){return e?r&&(r.merge||r.mergeFields)?e.toFirestore(t,r):e.toFirestore(t):t}class l9 extends l8{constructor(e){super(),this.firestore=e}convertBytes(e){return new lc(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);
34return new le(this.firestore,null,t)}}class ue{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class ut extends lB{constructor(e,t,r,n,i,o){super(e,t,r,n,o),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){let t=new ur(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){let r=this._document.data.field(lH("DocumentSnapshot.get",e));if(null!==r)return this._userDataWriter.convertValue(r,t.serverTimestamps)}}}class ur extends ut{data(e={}){return super.data(e)}}class un{constructor(e,t,r,n){this._firestore=e,this._userDataWriter=t,this._snapshot=n,this.metadata=new ue(n.hasPendingWrites,n.fromCache),this.query=r}get docs(){let e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(r=>{e.call(t,new ur(this._firestore,this._userDataWriter,r.key,r,new ue(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){let t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new F(V.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(r=>{let n=new ur(e._firestore,e._userDataWriter,r.doc.key,r.doc,new ue(e._snapshot.mutatedKeys.has(r.doc.key),e._snapshot.fromCache),e.query.converter);return r.doc,{type:"added",doc:n,oldIndex:-1,newIndex:t++}})}{let r=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{let n=new ur(e._firestore,e._userDataWriter,t.doc.key,t.doc,new ue(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,o=-1;return 0!==t.type&&(i=r.indexOf(t.doc.key),r=r.delete(t.doc.key)),1!==t.type&&(o=(r=r.add(t.doc)).indexOf(t.doc.key)),{type:function(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return j()}}(t.type),doc:n,oldIndex:i,newIndex:o}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}function ui(e){e=a5(e,le);let t=a5(e.firestore,la);return(function(e,t,r={}){let n=new U;return e.asyncQueue.enqueueAndForget(async()=>(function(e,t,r,n,i){let o=new aW({next:a=>{o.su(),t.enqueueAndForget(()=>s8(e,s));let l=a.docs.has(r);!l&&a.fromCache?i.reject(new F(V.UNAVAILABLE,"Failed to get document because the client is offline.")):l&&a.fromCache&&n&&"server"===n.source?i.reject(new F(V.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(a)},error:e=>i.reject(e)}),s=new at(rY(r.path),o,{includeMetadataChanges:!0,Ta:!0});return s6(e,s)})(await aQ(e),e.asyncQueue,t,r,n)),n.promise})(lu(t),e._key).then(r=>uf(t,e,r))}class uo extends l8{constructor(e){super(),this.firestore=e}convertBytes(e){return new lc(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);return new le(this.firestore,null,t)}}function us(e){e=a5(e,a9);let t=a5(e.firestore,la),r=lu(t),n=new uo(t);return l$(e._query),(function(e,t,r={}){let n=new U;return e.asyncQueue.enqueueAndForget(async()=>(function(e,t,r,n,i){let o=new aW({next:r=>{o.su(),t.enqueueAndForget(()=>s8(e,s)),r.fromCache&&"server"===n.source?i.reject(new F(V.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(r)},error:e=>i.reject(e)}),s=new at(r,o,{includeMetadataChanges:!0,Ta:!0});return s6(e,s)})(await aQ(e),e.asyncQueue,t,r,n)),n.promise})(r,e._query).then(r=>new un(t,n,e,r))}function ua(e,t,r){e=a5(e,le);let n=a5(e.firestore,la),i=l7(e.converter,t,r);return ud(n,[l_(lx(n),"setDoc",e._key,i,null!==e.converter,r).toMutation(e._key,nE.none())])}function ul(e,t,r,...n){e=a5(e,le);let i=a5(e.firestore,la),o=lx(i);return ud(i,[("string"==typeof(t=(0,w.Ku)(t))||t instanceof lh?lP(o,"updateDoc",e._key,t,r,n):lI(o,"updateDoc",e._key,t)).toMutation(e._key,nE.exists(!0))])}function uu(e){return ud(a5(e.firestore,la),[new nN(e._key,nE.none())])}function uc(e,t){let r=a5(e.firestore,la),n=ln(e),i=l7(e.converter,t);return ud(r,[l_(lx(e.firestore),"addDoc",n._key,i,null!==e.converter,{}).toMutation(n._key,nE.exists(!1))]).then(()=>n)}function uh(e,...t){var r,n,i;let o,s,a;e=(0,w.Ku)(e);let l={includeMetadataChanges:!1,source:"default"},u=0;"object"!=typeof t[0]||ls(t[u])||(l=t[u],u++);let c={includeMetadataChanges:l.includeMetadataChanges,source:l.source};if(ls(t[u])){let e=t[u];t[u]=null===(r=e.next)||void 0===r?void 0:r.bind(e),t[u+1]=null===(n=e.error)||void 0===n?void 0:n.bind(e),t[u+2]=null===(i=e.complete)||void 0===i?void 0:i.bind(e)}if(e instanceof le)s=a5(e.firestore,la),a=rY(e._key.path),o={next:r=>{t[u]&&t[u](uf(s,e,r))},error:t[u+1],complete:t[u+2]};else{let r=a5(e,a9);s=a5(r.firestore,la),a=r._query;let n=new uo(s);o={next:e=>{t[u]&&t[u](new un(s,n,r,e))},error:t[u+1],complete:t[u+2]},l$(e._query)}return function(e,t,r,n){let i=new aW(n),o=new at(t,i,r);return e.asyncQueue.enqueueAndForget(async()=>s6(await aQ(e),o)),()=>{i.su(),e.asyncQueue.enqueueAndForget(async()=>s8(await aQ(e),o))}}(lu(s),a,c,o)}function ud(e,t){return function(e,t){let r=new U;return e.asyncQueue.enqueueAndForget(async()=>am(await aZ(e).then(e=>e.syncEngine),t,r)),r.promise}(lu(e),t)}function uf(e,t,r){let n=r.docs.get(t._key),i=new uo(e);return new ut(e,i,t._key,n,new ue(r.hasPendingWrites,r.fromCache),t.converter)}function up(e,t){if((e=(0,w.Ku)(e)).firestore!==t)throw new F(V.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}function um(){return new lT("serverTimestamp")}new WeakMap,function(e=!0){P=y.MF,(0,y.om)(new v.uA("firestore",(t,{instanceIdentifier:r,options:n})=>{let i=t.getProvider("app").getImmediate(),o=new la(new $(t.getProvider("auth-internal")),new K(i,t.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new F(V.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new t2(e.options.projectId,t)}(i,r),i);return n=Object.assign({useFetchStreams:e},n),o._setSettings(n),o},"PUBLIC").setMultipleInstances(!0)),(0,y.KO)(A,C,void 0),(0,y.KO)(A,C,"esm2017")}()},45904:(e,t,r)=>{"use strict";r.d(t,{XR:()=>ev,qk:()=>ey,c7:()=>ew,KR:()=>eb,D:()=>em,bp:()=>eg});
34var n,i,o=r(49928),s=r(11072),a=r(5125);let l="firebasestorage.googleapis.com",u="storageBucket";class c extends s.g{constructor(e,t,r=0){super(h(e),`Firebase Storage: ${t} (${h(e)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,c.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return h(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}
35${this.customData.serverResponse}`:this.message=this._baseMessage}}function h(e){return"storage/"+e}function d(){return new c(n.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function f(){return new c(n.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function p(){return new c(n.CANCELED,"User canceled the upload/download.")}function m(){return new c(n.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function g(e){return new c(n.INVALID_ARGUMENT,e)}function y(){return new c(n.APP_DELETED,"The Firebase app was deleted.")}function v(e,t){return new c(n.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function b(e){throw new c(n.INTERNAL_ERROR,"Internal error: "+e)}!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(n||(n={}));class w{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){let e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let r;try{r=w.makeFromUrl(e,t)}catch(t){return new w(e,"")}if(""===r.path)return r;throw new c(n.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}static makeFromUrl(e,t){let r=null,i="([A-Za-z0-9.\\-_]+)",o=RegExp("^gs://"+i+"(/(.*))?$","i");function s(e){e.path_=decodeURIComponent(e.path)}let a=t.replace(/[.]/g,"\\."),u=RegExp(`^https?://${a}/v[A-Za-z0-9_]+/b/${i}/o(/([^?#]*).*)?$`,"i"),h=t===l?"(?:storage.googleapis.com|storage.cloud.google.com)":t,d=[{regex:o,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:u,indices:{bucket:1,path:3},postModify:s},{regex:RegExp(`^https?://${h}/${i}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:s}];for(let t=0;t<d.length;t++){let n=d[t],i=n.regex.exec(e);if(i){let e=i[n.indices.bucket],t=i[n.indices.path];t||(t=""),r=new w(e,t),n.postModify(r);break}}if(null==r)throw new c(n.INVALID_URL,"Invalid URL '"+e+"'.");return r}}class x{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}function _(e){return"string"==typeof e||e instanceof String}function E(e){return S()&&e instanceof Blob}function S(){return"undefined"!=typeof Blob}function T(e,t,r,n){if(n<t)throw g(`Invalid value for '${e}'. Expected ${t} or greater.`);if(n>r)throw g(`Invalid value for '${e}'. Expected ${r} or less.`)}function k(e,t,r){let n=t;return null==r&&(n=`https://${t}`),`${r}://${n}/v0${e}`}function A(e){let t=encodeURIComponent,r="?";for(let n in e)e.hasOwnProperty(n)&&(r=r+(t(n)+"=")+t(e[n])+"&");return r.slice(0,-1)}function C(e,t){let r=e>=500&&e<600,n=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return r||n||i}
35!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(i||(i={}));class I{constructor(e,t,r,n,i,o,s,a,l,u,c,h=!0){this.url_=e,this.method_=t,this.headers_=r,this.body_=n,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=s,this.errorCallback_=a,this.timeout_=l,this.progressCallback_=u,this.connectionFactory_=c,this.retry=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){let e=(e,t)=>{let r=this.resolve_,n=this.reject_,i=t.connection;if(t.wasSuccessCode)try{let e=this.callback_(i,i.getResponse());void 0!==e?r(e):r()}catch(e){n(e)}else if(null!==i){let e=d();e.serverResponse=i.getErrorText(),n(this.errorCallback_?this.errorCallback_(i,e):e)}else n(t.canceled?this.appDelete_?y():p():f())};this.canceled_?e(!1,new P(!1,null,!0)):this.backoffId_=function(e,t,r){let n=1,i=null,o=null,s=!1,a=0,l=!1;function u(...e){l||(l=!0,t.apply(null,e))}function c(t){i=setTimeout(()=>{i=null,e(d,2===a)},t)}function h(){o&&clearTimeout(o)}function d(e,...t){let r;if(l){h();return}if(e||2===a||s){h(),u.call(null,e,...t);return}n<64&&(n*=2),1===a?(a=2,r=0):r=(n+Math.random())*1e3,c(r)}let f=!1;function p(e){!f&&(f=!0,h(),!l&&(null!==i?(e||(a=2),clearTimeout(i),c(0)):e||(a=1)))}return c(0),o=setTimeout(()=>{s=!0,p(!0)},r),p}((e,t)=>{if(t){e(!1,new P(!1,null,!0));return}let r=this.connectionFactory_();this.pendingConnection_=r;let n=e=>{let t=e.loaded,r=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,r)};null!==this.progressCallback_&&r.addUploadProgressListener(n),r.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&r.removeUploadProgressListener(n),this.pendingConnection_=null;let t=r.getErrorCode()===i.NO_ERROR,o=r.getStatus();if(!t||C(o,this.additionalRetryCodes_)&&this.retry){e(!1,new P(!1,null,r.getErrorCode()===i.ABORT));return}e(!0,new P(-1!==this.successCodes_.indexOf(o),r))})},e,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class P{constructor(e,t,r){this.wasSuccessCode=e,this.connection=t,this.canceled=!!r}}function R(...e){let t="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0;if(void 0!==t){let r=new t;for(let t=0;t<e.length;t++)r.append(e[t]);return r.getBlob()}if(S())return new Blob(e);throw new c(n.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}let O={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class M{constructor(e,t){this.data=e,this.contentType=t||null}}function N(e){let t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<=127?t.push(n):n<=2047?t.push(192|n>>6,128|63&n):(64512&n)==55296?r<e.length-1&&(64512&e.charCodeAt(r+1))==56320?(n=65536|(1023&n)<<10|1023&e.charCodeAt(++r),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n)):t.push(239,191,189):(64512&n)==56320?t.push(239,191,189):t.push(224|n>>12,128|n>>6&63,128|63&n)}return new Uint8Array(t)}function L(e,t){let r;switch(e){case O.BASE64:{let r=-1!==t.indexOf("-"),n=-1!==t.indexOf("_");if(r||n)throw v(e,"Invalid character '"+(r?"-":"_")+"' found: is it base64url encoded?");break}case O.BASE64URL:{let r=-1!==t.indexOf("+"),n=-1!==t.indexOf("/");if(r||n)throw v(e,"Invalid character '"+(r?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}}try{r=function(e){if("undefined"==typeof atob)throw new c(n.UNSUPPORTED_ENVIRONMENT,"base-64 is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.");return atob(e)}(t)}catch(t){if(t.message.includes("polyfill"))throw t;throw v(e,"Invalid character found")}let i=new Uint8Array(r.length);for(let e=0;e<r.length;e++)i[e]=r.charCodeAt(e);return i}class D{constructor(e){this.base64=!1,this.contentType=null;let t=e.match(/^data:([^,]+)?,/);if(null===t)throw v(O.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");let r=t[1]||null;null!=r&&(this.base64=function(e,t){return e.length>=t.length&&e.substring(e.length-t.length)===t}(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=e.substring(e.indexOf(",")+1)}}class j{constructor(e,t){let r=0,n="";E(e)?(this.data_=e,r=e.size,n=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),r=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),r=e.length),this.size_=r,this.type_=n}size(){return this.size_}type(){return this.type_}slice(e,t){if(!E(this.data_))return new j(new Uint8Array(this.data_.buffer,e,t-e),!0);{var r;let n=(r=this.data_).webkitSlice?r.webkitSlice(e,t):r.mozSlice?r.mozSlice(e,t):r.slice?r.slice(e,t):null;return null===n?null:new j(n)}}static getBlob(...e){if(S()){let t=e.map(e=>e instanceof j?e.data_:e);return new j(R.apply(null,t))}{let t=e.map(e=>_(e)?function(e,t){switch(e){case O.RAW:return new M(N(t));case O.BASE64:case O.BASE64URL:return new M(L(e,t));case O.DATA_URL:return new M(function(e){let t=new D(e);return t.base64?L(O.BASE64,t.rest):function(e){let t;try{t=decodeURIComponent(e)}
35catch(e){throw v(O.DATA_URL,"Malformed data URL.")}return N(t)}(t.rest)}(t),new D(t).contentType)}throw d()}(O.RAW,e).data:e.data_),r=0;t.forEach(e=>{r+=e.byteLength});let n=new Uint8Array(r),i=0;return t.forEach(e=>{for(let t=0;t<e.length;t++)n[i++]=e[t]}),new j(n,!0)}}uploadData(){return this.data_}}function V(e){var t;let r;try{r=JSON.parse(e)}catch(e){return null}return"object"!=typeof(t=r)||Array.isArray(t)?null:r}function F(e){let t=e.lastIndexOf("/",e.length-2);return -1===t?e:e.slice(t+1)}function U(e,t){return t}class B{constructor(e,t,r,n){this.server=e,this.local=t||e,this.writable=!!r,this.xform=n||U}}let z=null;function H(){if(z)return z;let e=[];e.push(new B("bucket")),e.push(new B("generation")),e.push(new B("metageneration")),e.push(new B("name","fullPath",!0));let t=new B("name");t.xform=function(e,t){return!_(t)||t.length<2?t:F(t)},e.push(t);let r=new B("size");return r.xform=function(e,t){return void 0!==t?Number(t):t},e.push(r),e.push(new B("timeCreated")),e.push(new B("updated")),e.push(new B("md5Hash",null,!0)),e.push(new B("cacheControl",null,!0)),e.push(new B("contentDisposition",null,!0)),e.push(new B("contentEncoding",null,!0)),e.push(new B("contentLanguage",null,!0)),e.push(new B("contentType",null,!0)),e.push(new B("metadata","customMetadata",!0)),z=e}function $(e,t,r){let n=V(t);return null===n?null:function(e,t,r){let n={};n.type="file";let i=r.length;for(let e=0;e<i;e++){let i=r[e];n[i.local]=i.xform(n,t[i.server])}return Object.defineProperty(n,"ref",{get:function(){let t=new w(n.bucket,n.fullPath);return e._makeStorageReference(t)}}),n}(e,n,r)}function W(e,t){let r={},n=t.length;for(let i=0;i<n;i++){let n=t[i];n.writable&&(r[n.server]=e[n.local])}return JSON.stringify(r)}class q{constructor(e,t,r,n){this.url=e,this.method=t,this.handler=r,this.timeout=n,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function G(e){if(!e)throw d()}function K(e,t){return function(r,n){let i=$(e,n,t);return G(null!==i),i}}function Y(e){return function(t,r){var i,o;let s;return 401===t.getStatus()?s=t.getErrorText().includes("Firebase App Check token is invalid")?new c(n.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new c(n.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(i=e.bucket,s=new c(n.QUOTA_EXCEEDED,"Quota for bucket '"+i+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(o=e.path,s=new c(n.UNAUTHORIZED,"User does not have permission to access '"+o+"'.")):s=r,s.status=t.getStatus(),s.serverResponse=r.serverResponse,s}}function X(e){let t=Y(e);return function(r,i){let o=t(r,i);if(404===r.getStatus()){var s;s=e.path,o=new c(n.OBJECT_NOT_FOUND,"Object '"+s+"' does not exist.")}return o.serverResponse=i.serverResponse,o}}function Z(e,t,r){let n=Object.assign({},r);return n.fullPath=e.path,n.size=t.size(),!n.contentType&&(n.contentType=t&&t.type()||"application/octet-stream"),n}function Q(e,t,r,n,i){let o=t.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"},a=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();s["Content-Type"]="multipart/related; boundary="+a;let l=Z(t,n,i),u="--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+W(l,r)+"\r\n--"+a+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",c=j.getBlob(u,n,"\r\n--"+a+"--");if(null===c)throw m();let h={name:l.fullPath},d=k(o,e.host,e._protocol),f=e.maxUploadRetryTime,p=new q(d,"POST",K(e,r),f);return p.urlParams=h,p.headers=s,p.body=c.uploadData(),p.errorHandler=Y(t),p}class J{constructor(e,t,r,n){this.current=e,this.total=t,this.finalized=!!r,this.metadata=n||null}}function ee(e,t){let r=null;try{r=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){G(!1)}return G(!!r&&-1!==(t||["active"]).indexOf(r)),r}let et={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function er(e){switch(e){case"running":case"pausing":case"canceling":return et.RUNNING;case"paused":return et.PAUSED;case"success":return et.SUCCESS;case"canceled":return et.CANCELED;
35default:return et.ERROR}}class en{constructor(e,t,r){"function"==typeof e||null!=t||null!=r?(this.next=e,this.error=null!=t?t:void 0,this.complete=null!=r?r:void 0):(this.next=e.next,this.error=e.error,this.complete=e.complete)}}function ei(e){return(...t)=>{Promise.resolve().then(()=>e(...t))}}class eo{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=i.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=i.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=i.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,r,n){if(this.sent_)throw b("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==n)for(let e in n)n.hasOwnProperty(e)&&this.xhr_.setRequestHeader(e,n[e].toString());return void 0!==r?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw b("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw b("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return -1}}getResponse(){if(!this.sent_)throw b("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw b("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class es extends eo{initXhr(){this.xhr_.responseType="text"}}function ea(){return new es}class el{isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}constructor(e,t,r=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=t,this._metadata=r,this._mappings=H(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=e=>{if(this._request=void 0,this._chunkMultiplier=1,e._codeEquals(n.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{let t=this.isExponentialBackoffExpired();if(C(e.status,[])){if(t)e=f();else{this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,this.completeTransitions_();return}}this._error=e,this._transition("error")}},this._metadataErrorHandler=e=>{this._request=void 0,e._codeEquals(n.CANCELED)?this.completeTransitions_():(this._error=e,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t,this._start()}),this._promise.then(null,()=>{})}_makeProgressCallback(){let e=this._transferred;return t=>this._updateProgress(e+t)}_shouldDoResumable(e){return e.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(e){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([t,r])=>{switch(this._state){case"running":e(t,r);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((e,t)=>{let r=function(e,t,r,n,i){let o=t.bucketOnlyServerUrl(),s=Z(t,n,i),a={name:s.fullPath},l=k(o,e.host,e._protocol),u={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${n.size()}`,"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},c=W(s,r),h=new q(l,"POST",function(e){let t;ee(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){G(!1)}return G(_(t)),t},e.maxUploadRetryTime);
35return h.urlParams=a,h.headers=u,h.body=c,h.errorHandler=Y(t),h}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),n=this._ref.storage._makeRequest(r,ea,e,t);this._request=n,n.getPromise().then(e=>{this._request=void 0,this._uploadUrl=e,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){let e=this._uploadUrl;this._resolveToken((t,r)=>{let n=function(e,t,r,n){let i=new q(r,"POST",function(e){let t=ee(e,["active","final"]),r=null;try{r=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){G(!1)}r||G(!1);let i=Number(r);return G(!isNaN(i)),new J(i,n.size(),"final"===t)},e.maxUploadRetryTime);return i.headers={"X-Goog-Upload-Command":"query"},i.errorHandler=Y(t),i}(this._ref.storage,this._ref._location,e,this._blob),i=this._ref.storage._makeRequest(n,ea,t,r);this._request=i,i.getPromise().then(e=>{this._request=void 0,this._updateProgress(e.current),this._needToFetchStatus=!1,e.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){let e=262144*this._chunkMultiplier,t=new J(this._transferred,this._blob.size()),r=this._uploadUrl;this._resolveToken((i,o)=>{let s;try{s=function(e,t,r,i,o,s,a,l){let u=new J(0,0);if(a?(u.current=a.current,u.total=a.total):(u.current=0,u.total=i.size()),i.size()!==u.total)throw new c(n.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.");let h=u.total-u.current,d=h;o>0&&(d=Math.min(d,o));let f=u.current,p=f+d,g={"X-Goog-Upload-Command":0===d?"finalize":h===d?"upload, finalize":"upload","X-Goog-Upload-Offset":`${u.current}`},y=i.slice(f,p);if(null===y)throw m();let v=new q(r,"POST",function(e,r){let n;let o=ee(e,["active","final"]),a=u.current+d,l=i.size();return n="final"===o?K(t,s)(e,r):null,new J(a,l,"final"===o,n)},t.maxUploadRetryTime);return v.headers=g,v.body=y.uploadData(),v.progressCallback=l||null,v.errorHandler=Y(e),v}(this._ref._location,this._ref.storage,r,this._blob,e,this._mappings,t,this._makeProgressCallback())}catch(e){this._error=e,this._transition("error");return}let a=this._ref.storage._makeRequest(s,ea,i,o,!1);this._request=a,a.getPromise().then(e=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(e.current),e.finalized?(this._metadata=e.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){2*(262144*this._chunkMultiplier)<0x2000000&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((e,t)=>{let r=function(e,t,r){let n=k(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,o=new q(n,"GET",K(e,r),i);return o.errorHandler=X(t),o}(this._ref.storage,this._ref._location,this._mappings),n=this._ref.storage._makeRequest(r,ea,e,t);this._request=n,n.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((e,t)=>{let r=Q(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),n=this._ref.storage._makeRequest(r,ea,e,t);this._request=n,n.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(e){let t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}_transition(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":let t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=e,this._notifyObservers();break;case"canceled":this._error=p(),this._state=e,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){let e=er(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}on(e,t,r,n){let i=new en(t||void 0,r||void 0,n||void 0);return this._addObserver(i),()=>{this._removeObserver(i)}}then(e,t){return this._promise.then(e,t)}catch(e){return this.then(null,e)}_addObserver(e){this._observers.push(e),this._notifyObserver(e)}_removeObserver(e){let t=this._observers.indexOf(e);-1!==t&&this._observers.splice(t,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEac
35h(e=>{this._notifyObserver(e)})}_finishPromise(){if(void 0!==this._resolve){let e=!0;switch(er(this._state)){case et.SUCCESS:ei(this._resolve.bind(null,this.snapshot))();break;case et.CANCELED:case et.ERROR:ei(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(e){switch(er(this._state)){case et.RUNNING:case et.PAUSED:e.next&&ei(e.next.bind(e,this.snapshot))();break;case et.SUCCESS:e.complete&&ei(e.complete.bind(e))();break;case et.CANCELED:case et.ERROR:default:e.error&&ei(e.error.bind(e,this._error))()}}resume(){let e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e}pause(){let e="running"===this._state;return e&&this._transition("pausing"),e}cancel(){let e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e}}class eu{constructor(e,t){this._service=e,t instanceof w?this._location=t:this._location=w.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new eu(e,t)}get root(){let e=new w(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return F(this._location.path)}get storage(){return this._service}get parent(){let e=function(e){if(0===e.length)return null;let t=e.lastIndexOf("/");return -1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;let t=new w(this._location.bucket,e);return new eu(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw new c(n.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}}function ec(e,t){let r=null==t?void 0:t[u];return null==r?null:w.makeFromBucketSpec(r,e)}class eh{constructor(e,t,r,n,i){this.app=e,this._authProvider=t,this._appCheckProvider=r,this._url=n,this._firebaseVersion=i,this._bucket=null,this._host=l,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,null!=n?this._bucket=w.makeFromBucketSpec(n,this._host):this._bucket=ec(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=w.makeFromBucketSpec(this._url,e):this._bucket=ec(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){T("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){T("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;let e=this._authProvider.getImmediate({optional:!0});if(e){let t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if((0,o.xZ)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=this._appCheckProvider.getImmediate({optional:!0});return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new eu(this,e)}_makeRequest(e,t,r,n,i=!0){if(this._deleted)return new x(y());{let o=function(e,t,r,n,i,o,s=!0){let a=A(e.urlParams),l=e.url+a,u=Object.assign({},e.headers);return t&&(u["X-Firebase-GMPID"]=t),null!==r&&r.length>0&&(u.Authorization="Firebase "+r),u["X-Firebase-Storage-Version"]="webjs/"+(null!=o?o:"AppManager"),null!==n&&(u["X-Firebase-AppCheck"]=n),new I(l,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,s)}(e,this._appId,r,n,t,this._firebaseVersion,i);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}async makeRequestWithTokens(e,t){let[r,n]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,r,n).getPromise()}}let ed="@firebase/storage",ef="0.13.7",ep="storage";function em(e,t,r){return function(e,t,r){e._throwIfRoot("uploadBytes");let n=Q(e.storage,e._location,H(),new j(t,!0),r);return e.storage.makeRequestWithTokens(n,ea).then(t=>({metadata:t,ref:e}))}(e=(0,s.Ku)(e),t,r)}function eg(e,t,r){var n;return(n=e=(0,s.Ku)(e))._throwIfRoot("uploadBytesResumable"),new el(n,new j(t),r)}function ey(e){return function(e){e._throwIfRoot("getDownloadURL");let t=function(e,t,r){let n=new q(k(t.fullServerUrl(),e.host,e._protocol),"GET",function(t,n){let i=$(e,n,r);return G(null!==i),function(e,t,r,n){let i=V(t);
35if(null===i||!_(i.downloadTokens))return null;let o=i.downloadTokens;if(0===o.length)return null;let s=encodeURIComponent;return o.split(",").map(t=>{let i=e.bucket,o=e.fullPath;return k("/b/"+s(i)+"/o/"+s(o),r,n)+A({alt:"media",token:t})})[0]}(i,n,e.host,e._protocol)},e.maxOperationRetryTime);return n.errorHandler=X(t),n}(e.storage,e._location,H());return e.storage.makeRequestWithTokens(t,ea).then(e=>{if(null===e)throw new c(n.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})}(e=(0,s.Ku)(e))}function ev(e){return function(e){e._throwIfRoot("deleteObject");let t=function(e,t){let r=new q(k(t.fullServerUrl(),e.host,e._protocol),"DELETE",function(e,t){},e.maxOperationRetryTime);return r.successCodes=[200,204],r.errorHandler=X(t),r}(e.storage,e._location);return e.storage.makeRequestWithTokens(t,ea)}(e=(0,s.Ku)(e))}function eb(e,t){return function(e,t){if(!(t&&/^[A-Za-z]+:\/\//.test(t)))return function e(t,r){if(t instanceof eh){if(null==t._bucket)throw new c(n.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+u+"' property when initializing the app?");let i=new eu(t,t._bucket);return null!=r?e(i,r):i}return void 0!==r?function(e,t){let r=function(e,t){let r=t.split("/").filter(e=>e.length>0).join("/");return 0===e.length?r:e+"/"+r}(e._location.path,t),n=new w(e._location.bucket,r);return new eu(e.storage,n)}(t,r):t}(e,t);if(e instanceof eh)return new eu(e,t);throw g("To use ref(service, url), the first argument must be a Storage instance.")}(e=(0,s.Ku)(e),t)}function ew(e=(0,o.Sx)(),t){e=(0,s.Ku)(e);let r=(0,o.j6)(e,ep).getImmediate({identifier:t}),n=(0,s.yU)("storage");return n&&function(e,t,r,n={}){!function(e,t,r,n={}){e.host=`${t}:${r}`,e._protocol="http";let{mockUserToken:i}=n;i&&(e._overrideAuthToken="string"==typeof i?i:(0,s.Fy)(i,e.app.options.projectId))}(e,t,r,n)}(r,...n),r}(0,o.om)(new a.uA(ep,function(e,{instanceIdentifier:t}){return new eh(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("app-check-internal"),t,o.MF)},"PUBLIC").setMultipleInstances(!0)),(0,o.KO)(ed,ef,""),(0,o.KO)(ed,ef,"esm2017")},1932:(e,t,r)=>{"use strict";r.d(t,{Qx:()=>u,a6:()=>c,h4:()=>W,jM:()=>$,ss:()=>z});var n,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),s=Symbol.for("immer-state");function a(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object.getPrototypeOf;function u(e){return!!e&&!!e[s]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||y(e)||v(e))}var h=Object.prototype.constructor.toString();function d(e){if(!e||"object"!=typeof e)return!1;let t=l(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===h}function f(e,t){0===p(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function p(e){let t=e[s];return t?t.type_:Array.isArray(e)?1:y(e)?2:v(e)?3:0}function m(e,t){return 2===p(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t,r){let n=p(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function y(e){return e instanceof Map}function v(e){return e instanceof Set}function b(e){return e.copy_||e.base_}function w(e,t){if(y(e))return new Map(e);if(v(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=d(e);if(!0!==t&&("class_only"!==t||r)){let t=l(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[s];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(l(e),t)}}function x(e,t=!1){return E(e)||u(e)||!c(e)||(p(e)>1&&(e.set=e.add=e.clear=e.delete=_),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>x(t,!0))),e}function _(){a(2)}function E(e){return Object.isFrozen(e)}var S={};function T(e){let t=S[e];return t||a(0,e),t}function k(e,t){t&&(T("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function A(e){C(e),e.drafts_.forEach(P),e.drafts_=null}function C(e){e===n&&(n=e.parent_)}function I(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function P(e){let t=e[s];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function R(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[s].modified_&&(A(t),a(4)),c(e)&&(e=O(t,e),t.parent_||N(t,e)),t.patches_&&T("Patches").generateReplacementPatches_(r[s].base_,e,t.patches_,t.inversePatches_)):e=O(t,r,[]),A(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function O(e,t,r){if(E(t))return t;let n=t[s];if(!n)return f(t,(i,o)=>M(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return N(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,i=t,o=!1;3===n.type_&&(i=new Set(t),t.clear(),o=!0),f(i,(i,s)=>M(e,n,t,i,s,r,o)),N(e,t,!1),r&&e.patches_&&T("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}
35function M(e,t,r,n,i,o,s){if(u(i)){let s=O(e,i,o&&t&&3!==t.type_&&!m(t.assigned_,n)?o.concat(n):void 0);if(g(r,n,s),!u(s))return;e.canAutoFreeze_=!1}else s&&r.add(i);if(c(i)&&!E(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;O(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&N(e,i)}}function N(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&x(t,r)}var L={get(e,t){if(t===s)return e;let r=b(e);if(!m(r,t))return function(e,t,r){let n=V(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);let n=r[t];return e.finalized_||!c(n)?n:n===j(e.base_,t)?(U(e),e.copy_[t]=B(n,e)):n},has:(e,t)=>t in b(e),ownKeys:e=>Reflect.ownKeys(b(e)),set(e,t,r){let n=V(b(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=j(b(e),t),i=n?.[s];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||m(e.base_,t)))return!0;U(e),F(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==j(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,U(e),F(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=b
35(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){a(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){a(12)}},D={};function j(e,t){let r=e[s];return(r?b(r):e)[t]}function V(e,t){if(!(t in e))return;let r=l(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=l(r)}}function F(e){!e.modified_&&(e.modified_=!0,e.parent_&&F(e.parent_))}function U(e){e.copy_||(e.copy_=w(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function B(e,t){let r=y(e)?T("MapSet").proxyMap_(e,t):v(e)?T("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),i={type_:r?1:0,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=i,s=L;r&&(o=[i],s=D);let{revoke:a,proxy:l}=Proxy.revocable(o,s);return i.draft_=l,i.revoke_=a,l}(e,t);return(t?t.scope_:n).drafts_.push(r),r}function z(e){return u(e)||a(10,e),function e(t){let r;if(!c(t)||E(t))return t;let n=t[s];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=w(t,n.scope_.immer_.useStrictShallowCopy_)}else r=w(t,!0);return f(r,(t,n)=>{g(r,t,e(n))}),n&&(n.finalized_=!1),r}(e)}f(L,(e,t)=>{D[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),D.deleteProperty=function(e,t){return D.set.call(this,e,t,void 0)},D.set=function(e,t,r){return L.set.call(this,e[0],t,r,e[0])};var H=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&a(6),void 0!==r&&"function"!=typeof r&&a(7),c(e)){let i=I(this),o=B(e,void 0),s=!0;try{n=t(o),s=!1}finally{s?A(i):C(i)}return k(i,r),R(n,i)}if(e&&"object"==typeof e)a(1,e);else{if(void 0===(n=t(e))&&(n=e),n===i&&(n=void 0),this.autoFreeze_&&x(n,!0),r){let t=[],i=[];T("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),u(e)&&(e=z(e));let t=I(this),r=B(e,void 0);return r[s].isManual_=!0,C(t),r}finishDraft(e,t){let r=e&&e[s];r&&r.isManual_||a(9);let{scope_:n}=r;return k(n,t),R(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=T("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}},$=H.produce;function W(e){return e}H.produceWithPatches.bind(H),H.setAutoFreeze.bind(H),H.setUseStrictShallowCopy.bind(H),H.applyPatches.bind(H),H.createDraft.bind(H),H.finishDraft.bind(H)},57004:(e,t,r)=>{"use strict";r.d(t,{IgM:()=>o,jHl:()=>i,ssW:()=>s});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"},child:[]}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"},child:[]}]})(e)}},26923:(e,t,r)=>{"use strict";r.d(t,{T$Q:()=>i,spO:()=>o});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1.5 0A1.5 1.5 0 0 0 0 1.5v2A1.5 1.5 0 0 0 1.5 5h8A1.5 1.5 0 0 0 11 3.5v-2A1.5 1.5 0 0 0 9.5 0zm5.927 2.427A.25.25 0 0 1 7.604 2h.792a.25.25 0 0 1 .177.427l-.396.396a.25.25 0 0 1-.354 0zM0 8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm1 3v2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2zm14-1V8a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2zM2 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0 4a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m8 0 6.61 3h.89a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H15v7a.5.5 0 0 1 .485.38l.5 2a.498.498 0 0 1-.485.62H.5a.498.498 0 0 1-.485-.62l.5-2A.5.5 0 0 1 1 13V6H.5a.5.5 0 0 1-.5-.5v-2A.5.5 0 0 1 .5 3h.89zM3.777 3h8.447L8 1zM2 6v7h1V6zm2 0v7h2.5V6zm3.5 0v7h1V6zm2 0v7H12V6zM13 6v7h1V6zm2-1V4H1v1zm-.39 9H1.39l-.25 1h13.72z"},child:[]}]})(e)}},77037:(e,t,r)=>{"use strict";r.d(t,{$_Y:()=>m,H8h:()=>g,Hw0:()=>c,Ny1:()=>a,OiG:()=>h,RCe:()=>d,Vk6:()=>i,Wqt:()=>o,Y9o:()=>f,iu5:()=>l,rle:()=>u,uO9:()=>s,wwX:()=>p});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"},child:[]}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"}
35,child:[{tag:"path",attr:{d:"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"},child:[]}]})(e)}function a(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function l(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function u(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"},child:[]}]})(e)}function c(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"},child:[]}]})(e)}function h(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function d(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"},child:[]}]})(e)}function f(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"},child:[]}]})(e)}function p(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"},child:[]}]})(e)}function m(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z"},child:[]}]})(e)}function g(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336
35a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"},child:[]}]})(e)}},11583:(e,t,r)=>{"use strict";r.d(t,{AI$:()=>l,K$h:()=>h,TCj:()=>o,Vk6:()=>s,_xK:()=>a,n2u:()=>c,sIf:()=>i,sv1:()=>u});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 75.2v361.7c0 24.3-19 43.2-43.2 43.2H43.2C19.3 480 0 461.4 0 436.8V75.2C0 51.1 18.8 32 43.2 32h361.7c24 0 43.1 18.8 43.1 43.2zm-37.3 361.6V75.2c0-3-2.6-5.8-5.8-5.8h-9.3L285.3 144 224 94.1 162.8 144 52.5 69.3h-9.3c-3.2 0-5.8 2.8-5.8 5.8v361.7c0 3 2.6 5.8 5.8 5.8h361.7c3.2.1 5.8-2.7 5.8-5.8zM150.2 186v37H76.7v-37h73.5zm0 74.4v37.3H76.7v-37.3h73.5zm11.1-147.3l54-43.7H96.8l64.5 43.7zm210 72.9v37h-196v-37h196zm0 74.4v37.3h-196v-37.3h196zm-84.6-147.3l64.5-43.7H232.8l53.9 43.7zM371.3 335v37.3h-99.4V335
35h99.4z"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function a(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 24C0 10.7 10.7 0 24 0L69.5 0c22 0 41.5 12.8 50.6 32l411 0c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3l-288.5 0 5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5L488 336c13.3 0 24 10.7 24 24s-10.7 24-24 24l-288.3 0c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5L24 48C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM252 160c0 11 9 20 20 20l44 0 0 44c0 11 9 20 20 20s20-9 20-20l0-44 44 0c11 0 20-9 20-20s-9-20-20-20l-44 0 0-44c0-11-9-20-20-20s-20 9-20 20l0 44-44 0c-11 0-20 9-20 20z"},child:[]}]})(e)}function l(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 24C0 10.7 10.7 0 24 0L69.5 0c22 0 41.5 12.8 50.6 32l411 0c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3l-288.5 0 5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5L488 336c13.3 0 24 10.7 24 24s-10.7 24-24 24l-288.3 0c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5L24 48C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"},child:[]}]})(e)}function u(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"},child:[]}]})(e)}function c(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM200 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"},child:[]}]})(e)}function h(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 96C0 60.7 28.7 32 64 32l132.1 0c19.1 0 37.4 7.6 50.9 21.1L289.9 96 448 96c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-256c0-8.8-7.2-16-16-16l-161.4 0c-10.6 0-20.8-4.2-28.3-11.7L213.1 87c-4.5-4.5-10.6-7-17-7L64 80z"},child:[]}]})(e)}},12397:(e,t,r)=>{"use strict";r.d(t,{$qe:()=>o,Aez:()=>i});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M16,7 L19,7 L19,11 L16,11 L16,7 Z M9,15 L20,15 M9,11 L13,11 M9,7 L13,7 M6,18.5 C6,19.8807119 4.88071187,21 3.5,21 C2.11928813,21 1,19.8807119 1,18.5 L1,7 L6.02493781,7 M6,18.5 L6,3 L23,3 L23,18.5 C23,19.8807119 21.8807119,21 20.5,21 L3.5,21"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M.78,8.89c0-3.07,1.53-4.3,4.3-4.34L5.38,6C3.78,6.17,3,7,3.1,8.31H4.54V12H.78Zm5.9,0c0-3.07,1.53-4.3,4.3-4.34L11.28,6C9.68,6.17,8.89,7,9,8.31h1.44V12H6.68Z"},child:[]},{tag:"path",attr:{d:"M16.94,15.11c0,3.07-1.53,4.3-4.3,4.34L12.35,18c1.6-.16,2.39-1,2.28-2.3H13.18V12h3.76Zm5.9,0c0,3.07-1.53,4.3-4.3,4.34L18.24,18c1.6-.16,2.39-1,2.28-2.3H19.08V12h3.76Z"},child:[]}]})(e)}},94650:(e,t,r)=>{"use strict";r.d(t,{Jvf:()=>a,OQo:()=>s,m6W:()=>i,pte:()=>o});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"},child:[]}]})(e)}function a(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M508.6 148.8c0-45-33.1-81.2-74-81.2C379.2 65 322.7 64 265 64h-18c-57.6 0-114.2 1-169.6 3.6C36.6 67.6 3.5 104 3.5 149 1 184.6-.1 220.2 0 255.8c-.1 35.6 1 71.2 3.4 106.9 0 45 33.1 81.5 73.9 81.5 58.2 2.7 117.9 3.9 178.6 3.8 60.8.2 120.3-1 178.6-3.8 40.9 0 74-36.5 74-81.5 2.4-35.7 3.5-71.3 3.4-107 .2-35.6-.9-71.2-3.3-106.9zM207 353.9V157.4l145 98.2-145 98.3z"},child:[]}]})(e)}},78885:(e,t,r)=>{"use strict";r.d(t,{$8F:()=>u,Cku:()=>s,Fx8:()=>i,GNz:()=>d,GvN:()=>v,K_M:()=>x,LwM:()=>l,Ua$:()=>y,Xyd:()=>h,ZK4:()=>a,ZYA:()=>b,_qs:()=>g,dBf:()=>o,h7L:()=>c,qlq:()=>f,tEG:()=>p,yFL:()=>m,zfp:()=>w});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m268 112 144 144-144 144m124-144H100"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"320",x:"48",y:"96",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"56",ry:"56"},child:[]},{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"60",d:"M48 192h416M128 300h48v20h-48z"},child:[]}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M87.48 380c1.2-4.38-1.43-10.47-3.94-14.86a42.63 42.63 0 0 0-2.54-3.8 199.81 199.81 0 0 1-33-110C47.64 139.09 140.72 48 255.82 48 356.2 48 440 117.54 459.57 209.85a199 199 0 0 1 4.43 41.64c0 112.41-89.49 204.93-204.59 204.93-18.31 0-43-4.6-56.47-8.37s-26.92-8.77-30.39-10.11a31.14 31.14 0 0 0-11.13-2.07 30.7 30.7 0 0 0-12.08 2.43L81.5 462.78a15.92 15.92 0 0 1-4.66 1.22 9.61 9.61 0 0 1-9.58-9.74 15.85 15.85 0 0 1 .6-3.29z"},child:[]},{tag:"circle",attr:{cx:"160",cy:"256",r:"32"},child:[]},{tag:"circle",attr:{cx:"256",cy:"256",r:"32"},child:[]},{tag:"circle",attr:{cx:"352",cy:"256",r:"32"},child:[]}]})(e)}function a(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(e)}function l(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M320 320 192 192m0 128 128-128"},child:[]}]})(e)}function u(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function c(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"448",height:"320",x:"32",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"32",ry:"32"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m304 448-8-64h-80l-8 64h96z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 448H144"},child:[]},{tag:"path",attr:{d:"M32 304v48a32.09 32.09 0 0 0 32 32h384a32.09 32.09 0 0 0 32-32v-48zm224 64a16 16 0 1 1 16-16 16 16 0 0 1-16 16z"},child:[]}]})(e)}function h(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448zM248 315.85l-51.79-51.79a2 2 0 0 0-3.39 1.69 64.11 64.11 0 0 0 53.49 53.49 2 2 0 0 0 1.69-3.39zm16-119.7L315.87 248a2 2 0 0 0 3.4-1.69 64.13 64.13 0 0 0-53.55-53.55 2 2 0 0 0-1.72 3.39z"},child:[]},{tag:"path",attr:{d:"M491 273.36a32.2 32.2 0 0 0-.1-34.76c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.68 96a226.54 226.54 0 0 0-71.82 11.79 4 4 0 0 0-1.56 6.63l47.24 47.24a4 4 0 0 0 3.82 1.05 96 96 0 0 1 116 116 4 4 0 0 0 1.05 3.81l67.95 68a4 4 0 0 0 5.4.24 343.81 343.81 0 0 0 67.24-77.4zM256 352a96 96 0 0 1-93.3-118.63 4 4 0 0 0-1.05-3.81l-66.84-66.87a4 4 0 0 0-5.41-.23c-24.39 20.81-47 46.13-67.67 75.72a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.39 76.14 98.28 100.65C162.06 402 207.92 416 25
355.68 416a238.22 238.22 0 0 0 72.64-11.55 4 4 0 0 0 1.61-6.64l-47.47-47.46a4 4 0 0 0-3.81-1.05A96 96 0 0 1 256 352z"},child:[]}]})(e)}function d(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"64"},child:[]},{tag:"path",attr:{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 0 0-.1-34.76zM256 352a96 96 0 1 1 96-96 96.11 96.11 0 0 1-96 96z"},child:[]}]})(e)}function f(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 64H96a64.07 64.07 0 0 0-64 64v256a64.07 64.07 0 0 0 64 64h320a64.07 64.07 0 0 0 64-64V128a64.07 64.07 0 0 0-64-64zm-80 64a48 48 0 1 1-48 48 48.05 48.05 0 0 1 48-48zM96 416a32 32 0 0 1-32-32v-67.63l94.84-84.3a48.06 48.06 0 0 1 65.8 1.9l64.95 64.81L172.37 416zm352-32a32 32 0 0 1-32 32H217.63l121.42-121.42a47.72 47.72 0 0 1 61.64-.16L448 333.84z"},child:[]}]})(e)}function p(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M220 220h32v116"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M208 340h88"},child:[]},{tag:"path",attr:{d:"M248 130a26 26 0 1 0 26 26 26 26 0 0 0-26-26z"},child:[]}]})(e)}function m(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"48",d:"M88 152h336M88 256h336M88 360h336"},child:[]}]})(e)}function g(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M264 480A232 232 0 0 1 32 248c0-94 54-178.28 137.61-214.67a16 16 0 0 1 21.06 21.06C181.07 76.43 176 104.66 176 136c0 110.28 89.72 200 200 200 31.34 0 59.57-5.07 81.61-14.67a16 16 0 0 1 21.06 21.06C442.28 426 358 480 264 480z"},child:[]}]})(e)}function y(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M368 415.86V72a24.07 24.07 0 0 0-24-24H72a24.07 24.07 0 0 0-24 24v352a40.12 40.12 0 0 0 40 40h328"},child:[]},{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 464a48 48 0 0 1-48-48V128h72a24 24 0 0 1 24 24v264a48 48 0 0 1-48 48z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M240 128h64m-64 64h64m-192 64h192m-192 64h192m-192 64h192"},child:[]},{tag:"path",attr:{d:"M176 208h-64a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z"},child:[]}]})(e)}function v(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M336 256c-20.56 0-40.44-9.18-56-25.84-15.13-16.25-24.37-37.92-26-61-1.74-24.62 5.77-47.26 21.14-63.76S312 80 336 80c23.83 0 45.38 9.06 60.7 25.52 15.47 16.62 23 39.22 21.26 63.63-1.67 23.11-10.9 44.77-26 61C376.44 246.82 356.57 256 336 256zm66-88zm65.83 264H204.18a27.71 27.71 0 0 1-22-10.67 30.22 30.22 0 0 1-5.26-25.79c8.42-33.81 29.28-61.85 60.32-81.08C264.79 297.4 299.86 288 336 288c36.85 0 71 9 98.71 26.05 31.11 19.13 52 47.33 60.38 81.55a30.27 30.27 0 0 1-5.32 25.78A27.68 27.68 0 0 1 467.83 432zM147 260c-35.19 0-66.13-32.72-69-72.93-1.42-20.6 5-39.65 18-53.62 12.86-13.83 31-21.45 51-21.45s38 7.66 50.93 21.57c13.1 14.08 19.5 33.09 18 53.52-2.87 40.2-33.8 72.91-68.93 72.91zm65.66 31.45c-17.59-8.6-40.42-12.9-65.65-12.9-29.46 0-58.07 7.68-80.57 21.62-25.51 15.83-42.67 38.88-49.6 66.71a27.39 27.39 0 0 0 4.79 23.36A25.32 25.32 0 0 0 41.72 400h111a8 8 0 0 0 7.87-6.57c.11-.63.25-1.26.41-1.88 8.48-34.06 28.35-62.84 57.71-83.82a8 8 0 0 0-.63-13.39c-1.57-.92-3.37-1.89-5.42-2.89z"},child:[]}]})(e)}function b(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M338.29 338.29 448 448"},child:[]}]})(e)}function w(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M456.69 421.39 362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8 124.95 124.95 0 0 1-124.8-124.8z"},child:[]}]})(e)}function x(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"}
35,child:[{tag:"path",attr:{d:"M256 118a22 22 0 0 1-22-22V48a22 22 0 0 1 44 0v48a22 22 0 0 1-22 22zm0 368a22 22 0 0 1-22-22v-48a22 22 0 0 1 44 0v48a22 22 0 0 1-22 22zm113.14-321.14a22 22 0 0 1-15.56-37.55l33.94-33.94a22 22 0 0 1 31.11 31.11l-33.94 33.94a21.93 21.93 0 0 1-15.55 6.44zM108.92 425.08a22 22 0 0 1-15.55-37.56l33.94-33.94a22 22 0 1 1 31.11 31.11l-33.94 33.94a21.94 21.94 0 0 1-15.56 6.45zM464 278h-48a22 22 0 0 1 0-44h48a22 22 0 0 1 0 44zm-368 0H48a22 22 0 0 1 0-44h48a22 22 0 0 1 0 44zm307.08 147.08a21.94 21.94 0 0 1-15.56-6.45l-33.94-33.94a22 22 0 0 1 31.11-31.11l33.94 33.94a22 22 0 0 1-15.55 37.56zM142.86 164.86a21.89 21.89 0 0 1-15.55-6.44l-33.94-33.94a22 22 0 0 1 31.11-31.11l33.94 33.94a22 22 0 0 1-15.56 37.55zM256 358a102 102 0 1 1 102-102 102.12 102.12 0 0 1-102 102z"},child:[]}]})(e)}},85787:(e,t,r)=>{"use strict";r.d(t,{k5:()=>c});var n=r(96540),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),s=["attr","size","title"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e){return t=>n.createElement(h,a({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,u({key:r},t.attr),e(t.child)))}(e.child))}function h(e){var t=t=>{var r,{attr:i,size:o,title:l}=e,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s),h=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:r,style:u(u({color:e.color||t.color},t.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==o?n.createElement(o.Consumer,null,e=>t(e)):t(i)}},17795:(e,t,r)=>{"use strict";r.d(t,{OIH:()=>a,Osx:()=>o,WdH:()=>s,hVg:()=>i});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"},child:[]},{tag:"path",attr:{d:"M14 2v4a2 2 0 0 0 2 2h4"},child:[]},{tag:"path",attr:{d:"M10 9H8"},child:[]},{tag:"path",attr:{d:"M16 13H8"},child:[]},{tag:"path",attr:{d:"M16 17H8"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"},child:[]},{tag:"path",attr:{d:"M14 2v4a2 2 0 0 0 2 2h4"},child:[]},{tag:"path",attr:{d:"m14.5 12.5-5 5"},child:[]},{tag:"path",attr:{d:"m9.5 12.5 5 5"},child:[]}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m14.622 17.897-10.68-2.913"},child:[]},{tag:"path",attr:{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z"},child:[]},{tag:"path",attr:{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15"},child:[]}]})(e)}function a(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"8",cy:"21",r:"1"},child:[]},{tag:"circle",attr:{cx:"19",cy:"21",r:"1"},child:[]},{tag:"path",attr:{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"},child:[]}]})(e)}},33877:(e,t,r)=>{"use strict";r.d(t,{Bls:()=>m,EgJ:()=>p,JKf:()=>v,Krg:()=>o,Tpz:()=>c,U3x:()=>s,Uvk:()=>E,Vzu:()=>g,YhB:()=>x,Yvo:()=>b,eLA:()=>h,fIp:()=>f,lKL:()=>y,luQ:()=>i,omt:()=>l,sPF:()=>w,uC7:()=>a,uIb:()=>d,yiX:()=>_,zbt:()=>u});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 11.5c0 2-2.5 3.5-2.5 5h-2c0-1.5-2.5-3-2.5-5C8.5 9.57 10.07 8 12 8s3.5 1.57 3.5 3.5zm-2.5 6h-2V19h2v-1.5zm9-5.5c0-2.76-1.12-5.26-2.93-7.07l-1.06 1.06A8.481 8.481 0 0 1 20.5 12c0 2.34-.95 4.47-2.49 6.01l1.06 1.06A9.969 9.969 0 0 0 22 12zM3.5 12c0-2.34.95-4.47 2.49-6.01L4.93 4.93A9.969 9.969 0 0 0 2 12c0 2.76 1.12 5.26 2.93 7.07l1.06-1.06A8.481 8.481 0 0 1 3.5 12zm14 0c0 1.52-.62 2.89-1.61 3.89l1.06 1.06A6.976 6.976 0 0 0 19 12c0-1.93-.78-3.68-2.05-4.95l-1.06 1.06c.99 1 1.61 2.37 1.61 3.89zM7.05 16.95l1.06-1.06c-1-1-1.61-2.37-1.61-3.89s.62-2.89 1.61-3.89L7.05 7.05A6.976 6.976 0 0 0 5 12c0 1.93.78 3.68 2.05 4.95z"},child:[]}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},child:[]}]})(e)}function a(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"},child:[]}]})(e)}function l(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"},child:[]}]})(e)}function u(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"},child:[]}]})(e)}function c(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"},child:[]}]})(e)}function h(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"},child:[]}]})(e)}function d(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"},child:[]}]})(e)}function f(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"},child:[]}]})(e)}function p(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"},child:[]}]})(e)}function m(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"},child:[]}]})(e)}function g(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]}
35,{tag:"path",attr:{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"},child:[]}]})(e)}function y(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"},child:[]}]})(e)}function v(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2h-3zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8h-3zM5 19l3-4 2 3 3-4 4 5H5z"},child:[]}]})(e)}function b(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(e)}function w(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"},child:[]},{tag:"path",attr:{d:"M14 17H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"},child:[]}]})(e)}function x(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11.49 16c.88 0 1.7-.26 2.39-.7l2.44 2.44 1.42-1.42-2.44-2.43c.44-.7.7-1.51.7-2.39C16 9.01 13.99 7 11.5 7S7 9.01 7 11.5 9.01 16 11.49 16zm.01-7a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z"},child:[]}]})(e)}function _(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"},child:[]}]})(e)}function E(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm7 10c0 1.85-.51 3.65-1.38 5.21l-1.45-1.45a4.994 4.994 0 0 0-.64-6.29 5.003 5.003 0 0 0-7.07 0 5.003 5.003 0 0 0 0 7.07 5.006 5.006 0 0 0 6.29.64l1.72 1.72c-1.19 1.42-2.73 2.51-4.47 3.04-4.02-1.25-7-5.42-7-9.94V6.3l7-3.11 7 3.11V11zm-7 4c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"},child:[]}]})(e)}},84961:(e,t,r)=>{"use strict";r.d(t,{G6K:()=>i,Ku6:()=>u,Mzm:()=>
35o,Qrj:()=>d,TKI:()=>h,WFf:()=>c,X9V:()=>a,mXD:()=>s,tqC:()=>l});var n=r(85787);function i(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 16V21H3V16H5V19H19V16H21ZM3 11H21V13H3V11ZM21 8H19V5H5V8H3V3H21V8Z"},child:[]}]})(e)}function o(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM7 6H11V10H7V6ZM7 12H17V14H7V12ZM7 16H17V18H7V16ZM13 7H17V9H13V7Z"},child:[]}]})(e)}function s(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 8V20H19V8H5ZM5 6H19V4H5V6ZM20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM7 10H11V14H7V10ZM7 16H17V18H7V16ZM13 11H17V13H13V11Z"},child:[]}]})(e)}function a(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2.00488 3.99979C2.00488 3.4475 2.4526 2.99979 3.00488 2.99979H21.0049C21.5572 2.99979 22.0049 3.4475 22.0049 3.99979V9.49979C20.6242 9.49979 19.5049 10.6191 19.5049 11.9998C19.5049 13.3805 20.6242 14.4998 22.0049 14.4998V19.9998C22.0049 20.5521 21.5572 20.9998 21.0049 20.9998H3.00488C2.4526 20.9998 2.00488 20.5521 2.00488 19.9998V3.99979ZM8.09024 18.9998C8.29615 18.4172 8.85177 17.9998 9.50488 17.9998C10.158 17.9998 10.7136 18.4172 10.9195 18.9998H20.0049V16.032C18.5232 15.2957 17.5049 13.7666 17.5049 11.9998C17.5049 10.2329 18.5232 8.7039 20.0049 7.96755V4.99979H10.9195C10.7136 5.58238 10.158 5.99979 9.50488 5.99979C8.85177 5.99979 8.29615 5.58238 8.09024 4.99979H4.00488V18.9998H8.09024ZM9.50488 10.9998C8.67646 10.9998 8.00488 10.3282 8.00488 9.49979C8.00488 8.67136 8.67646 7.99979 9.50488 7.99979C10.3333 7.99979 11.0049 8.67136 11.0049 9.49979C11.0049 10.3282 10.3333 10.9998 9.50488 10.9998ZM9.50488 15.9998C8.67646 15.9998 8.00488 15.3282 8.00488 14.4998C8.00488 13.6714 8.67646 12.9998 9.50488 12.9998C10.3333 12.9998 11.0049 13.6714 11.0049 14.4998C11.0049 15.3282 10.3333 15.9998 9.50488 15.9998Z"},child:[]}]})(e)}function l(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8ZM6 10V20H18V10H6ZM9 12H11V18H9V12ZM13 12H15V18H13V12ZM7 5V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V5H22V7H2V5H7ZM9 4V5H15V4H9Z"},child:[]}]})(e)}function u(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"}
35,child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"},child:[]}]})(e)}function c(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z"},child:[]}]})(e)}function h(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 11C14.7614 11 17 13.2386 17 16V22H15V16C15 14.4023 13.7511 13.0963 12.1763 13.0051L12 13C10.4023 13 9.09634 14.2489 9.00509 15.8237L9 16V22H7V16C7 13.2386 9.23858 11 12 11ZM5.5 14C5.77885 14 6.05009 14.0326 6.3101 14.0942C6.14202 14.594 6.03873 15.122 6.00896 15.6693L6 16L6.0007 16.0856C5.88757 16.0456 5.76821 16.0187 5.64446 16.0069L5.5 16C4.7203 16 4.07955 16.5949 4.00687 17.3555L4 17.5V22H2V17.5C2 15.567 3.567 14 5.5 14ZM18.5 14C20.433 14 22 15.567 22 17.5V22H20V17.5C20 16.7203 19.4051 16.0796 18.6445 16.0069L18.5 16C18.3248 16 18.1566 16.03 18.0003 16.0852L18 16C18 15.3343 17.8916 14.694 17.6915 14.0956C17.9499 14.0326 18.2211 14 18.5 14ZM5.5 8C6.88071 8 8 9.11929 8 10.5C8 11.8807 6.88071 13 5.5 13C4.11929 13 3 11.8807 3 10.5C3 9.11929 4.11929 8 5.5 8ZM18.5 8C19.8807 8 21 9.11929 21 10.5C21 11.8807 19.8807 13 18.5 13C17.1193 13 16 11.8807 16 10.5C16 9.11929 17.1193 8 18.5 8ZM5.5 10C5.22386 10 5 10.2239 5 10.5C5 10.7761 5.22386 11 5.5 11C5.77614 11 6 10.7761 6 10.5C6 10.2239 5.77614 10 5.5 10ZM18.5 10C18.2239 10 18 10.2239 18 10.5C18 10.7761 18.2239 11 18.5 11C18.7761 11 19 10.7761 19 10.5C19 10.2239 18.7761 10 18.5 10ZM12 2C14.2091 2 16 3.79086 16 6C16 8.20914 14.2091 10 12 10C9.79086 10 8 8.20914 8 6C8 3.79086 9.79086 2 12 2ZM12 4C10.8954 4 10 4.89543 10 6C10 7.10457 10.8954 8 12 8C13.1046 8 14 7.10457 14 6C14 4.89543 13.1046 4 12 4Z"},child:[]}]})(e)}function d(e){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 14.252V16.3414C13.3744 16.1203 12.7013 16 12 16C8.68629 16 6 18.6863 6 22H4C4 17.5817 7.58172 14 12 14C12.6906 14 13.3608 14.0875 14 14.252ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11ZM18 17V14H20V17H23V19H20V22H18V19H15V17H18Z"},child:[]}]})(e)}},71468:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>y,d4:()=>S,wA:()=>_});var n=r(96540),i=r(78418),o=Symbol.for("react.forward_ref"),s=Symbol.for("react.memo"),a={notify(){},get:()=>[]},l=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),u="undefined"!=typeof navigator&&"ReactNative"===navigator.product,c=l||u?n.useLayoutEffect:n.useEffect,h={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},d={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={[o]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[s]:d};Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var p=Symbol.for("react-redux-context"),m="undefined"!=typeof globalThis?globalThis:{},g=function(){if(!n.createContext)return{};let e=m[p]??=new Map,t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}(),y=function(e){let{children:t,context:r,serverState:i,store:o}=e,s=n.useMemo(()=>{let e=function(e,t){let r;let n=a,i=0,o=!1;function s(){c.onStateChange&&c.onStateChange()}function l(){if(i++,!r){let t,i;r=e.subscribe(s),t=null,i=null,n={clear(){t=null,i=null},notify(){(()=>{let e=t;for(;e;)e.callback(),e=e.next})()},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let r=!0,n=i={callback:e,next:null,prev:i};return n.prev?n.prev.next=n:t=n,function(){r&&null!==t&&(r=!1,n.next?n.next.prev=n.prev:i=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}}function u(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=a)}let c={addNestedSub:function(e){l();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),u())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:s,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,l())},tryUnsubscribe:function(){o&&(o=!1,u())},getListeners:()=>n};return c}(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}},[o,i]),l=n.useMemo(()=>o.getState(),[o]);return c(()=>{let{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[s,l]),n.createElement((r||g).Provider,{value:s},t)};function v(e=g){return function(){return n.useContext(e)}}var b=v();function w(e=g){let t=e===g?b:v(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var x=w(),_=function(e=g){let t=e===g?x:w(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}(),E=(e,t)=>e===t,S=function(e=g){let t=e===g?b:v(e),r=(e,r={})=>{let{equalityFn:o=E}="function"==typeof r?{equalityFn:r}:r,{store:s,subscription:a,getServerState:l}=t();n.useRef(!0);let u=n.useCallback({[e.name]:t=>e(t)}[e.name],[e]),c=(0,i.useSyncExternalStoreWithSelector)(a.addNestedSub,s.getState,l||s.getState,u,o);return n.useDebugValue(c),c};return Object.assign(r,{withTypes:()=>r}),r}()},61409:(e,t,r)=>{"use strict";r.d(t,{N9:()=>F,oR:()=>P});var n=r(96540),i=r(34164);!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);
35-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
35.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
35}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
36`);var o=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e,a=e=>"function"==typeof e,l=e=>s(e)||o(e),u=e=>s(e)||a(e)?e:null,c=(e,t)=>!1===e||o(e)&&e>0?e:t,h=e=>(0,n.isValidElement)(e)||s(e)||a(e)||o(e);function d({enter:e,exit:t,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}){return function({children:s,position:a,preventExitTransition:l,done:u,nodeRef:c,isIn:h,playToast:d}){let f=r?`${e}--${a}`:e,p=r?`${t}--${a}`:t,m=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let e=c.current,t=f.split(" "),r=n=>{n.target===c.current&&(d(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===m.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let e=c.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,r=300){let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}(e,u,o):u()};h||(l?t():(m.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))},[h]),n.createElement(n.Fragment,null,s)}}function f(e,t){return{content:p(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function p(e,t,r=!1){return(0,n.isValidElement)(e)&&!s(e.type)?(0,n.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):a(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function m({delay:e,isRunning:t,closeToast:r,type:o="default",hide:s,className:l,controlledProgress:u,progress:c,rtl:h,isIn:d,theme:f}){let p=s||u&&0===c,m={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};u&&(m.transform=`scaleX(${c})`);let g=(0,i.A)("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":h}),y=a(l)?l({rtl:h,type:o,defaultClassName:g}):(0,i.A)(g,l);return n.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},n.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${o}`}),n.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:y,style:m,[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{d&&r()}}))}var g=1,y=()=>`${g++}`,v=new Map,b=[],w=new Set,x=e=>w.forEach(t=>t(e)),_=()=>v.size>0,E=(e,{containerId:t})=>{var r;return null==(r=v.get(t||1))?void 0:r.toasts.get(e)};function S(e,t){var r;if(t)return!!(null!=(r=v.get(t))&&r.isToastActive(e));let n=!1;return v.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function T(e,t){h(e)&&(_()||b.push({content:e,options:t}),v.forEach(r=>{r.buildToast(e,t)}))}function k(e,t){v.forEach(r=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==r.id||r.toggle(e,null==t?void 0:t.id)})}function A(e,t){return T(e,t),t.toastId}function C(e,t){return{...t,type:t&&t.type||e,toastId:t&&(s(t.toastId)||o(t.toastId))?t.toastId:y()}}function I(e){return(t,r)=>A(t,C(e,r))}function P(e,t){return A(e,C("default",t))}P.loading=(e,t)=>
36A(e,C("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),P.promise=function(e,{pending:t,error:r,success:n},i){let o;t&&(o=s(t)?P.loading(t,i):P.loading(t.render,{...i,...t}));let l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,r)=>{if(null==t){P.dismiss(o);return}let n={type:e,...l,...i,data:r},a=s(t)?{render:t}:t;return o?P.update(o,{...n,...a}):P(a.render,{...n,...a}),r},c=a(e)?e():e;return c.then(e=>u("success",n,e)).catch(e=>u("error",r,e)),c},P.success=I("success"),P.info=I("info"),P.error=I("error"),P.warning=I("warning"),P.warn=P.warning,P.dark=(e,t)=>A(e,C("default",{theme:"dark",...t})),P.dismiss=function(e){!function(e){if(!_()){b=b.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||l(e))v.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=v.get(e.containerId);t?t.removeToast(e.id):v.forEach(t=>{t.removeToast(e.id)})}}(e)},P.clearWaitingQueue=(e={})=>{v.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},P.isActive=S,P.update=(e,t={})=>{let r=E(e,t);if(r){let{props:n,content:i}=r,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:y()};o.toastId!==e&&(o.staleId=e);let s=o.render||i;delete o.render,A(s,o)}},P.done=e=>{P.update(e,{progress:1})},P.onChange=function(e){return w.add(e),()=>{w.delete(e)}},P.play=e=>k(!0,e),P.pause=e=>k(!1,e);var R="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,O=({theme:e,type:t,isLoading:r,...i})=>n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...i}),M={info:function(e){return n.createElement(O,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(O,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(O,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(O,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}},N=e=>e in M,L=e=>{let{isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:s,playToast:l}=function(e){var t,r;let[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(!1),l=(0,n.useRef)(null),u=(0,n.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:h,closeToast:d,onClick:f,closeOnClick:p}=e;function m(){o(!0)}function g(){o(!1)}function y(t){let r=l.current;if(u.canDrag&&r){u.didMove=!0,i&&g(),"x"===e.draggableDirection?u.delta=t.clientX-u.start:u.delta=t.clientY-u.start,u.start!==t.clientX&&(u.canCloseOnClick=!1);let n="x"===e.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`;r.style.transform=`translate3d(${n},0)`,r.style.opacity=`${1-Math.abs(u.delta/u.removalDistance)}`}}function b(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",b);let t=l.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance){a(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}t={id:e.toastId,containerId:e.containerId,fn:o},null==(r=v.get(t.containerId||1))||r.setToggle(t.id,t.fn),(0,n.useEffect)(()=>
36{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);let w={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){u.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",b);let r=l.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(u.start=t.clientX,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=t.clientY,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:i,right:o}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=o&&t.clientY>=r&&t.clientY<=n?g():m()}};return c&&h&&(w.onMouseEnter=g,e.stacked||(w.onMouseLeave=m)),p&&(w.onClick=e=>{f&&f(e),u.canCloseOnClick&&d(!0)}),{playToast:m,pauseToast:g,isRunning:i,preventExitTransition:s,toastRef:l,eventHandlers:w}}(e),{closeButton:u,children:c,autoClose:h,onClick:d,type:f,hideProgressBar:g,closeToast:y,transition:b,position:w,className:x,style:_,progressClassName:E,updateId:S,role:T,progress:k,rtl:A,toastId:C,deleteToast:I,isIn:P,isLoading:R,closeOnClick:O,theme:L,ariaLabel:D}=e,j=(0,i.A)("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":A},{"Toastify__toast--close-on-click":O}),V=a(x)?x({rtl:A,position:w,type:f,defaultClassName:j}):(0,i.A)(j,x),F=function({theme:e,type:t,isLoading:r,icon:i}){let o=null,s={theme:e,type:t};return!1===i||(a(i)?o=i({...s,isLoading:r}):(0,n.isValidElement)(i)?o=(0,n.cloneElement)(i,s):r?o=M.spinner():N(t)&&(o=M[t](s))),o}(e),U=!!k||!h,B={closeToast:y,type:f,theme:L},z=null;return!1===u||(z=a(u)?u(B):(0,n.isValidElement)(u)?(0,n.cloneElement)(u,B):function({closeToast:e,theme:t,ariaLabel:r="close"}){return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":r},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(B)),n.createElement(b,{isIn:P,done:I,position:w,preventExitTransition:r,nodeRef:o,playToast:l},n.createElement("div",{id:C,tabIndex:0,onClick:d,"data-in":P,className:V,...s,style:_,ref:o,...P&&{role:T,"aria-label":D}},null!=F&&n.createElement("div",{className:(0,i.A)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!R})},F),p(c,e,!t),z,!e.customProgressBar&&n.createElement(m,{...S&&!U?{key:`p-${S}`}:{},rtl:A,theme:L,delay:h,isRunning:t,isIn:P,closeToast:y,hide:g,type:f,className:E,controlledProgress:U,progress:k||0})))},D=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),j=d(D("bounce",!0));d(D("slide",!0)),d(D("zoom")),d(D("flip"));var V={position:"top-right",transition:j,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function F(e){let t={...V,...e}
36,r=e.stacked,[s,l]=(0,n.useState)(!0),d=(0,n.useRef)(null),{getToastToRender:p,isToastActive:m,count:g}=function(e){var t;let r;let{subscribe:i,getSnapshot:s,setProps:a}=(0,n.useRef)((r=e.containerId||1,{subscribe(t){let n,i,s,a,l,d,p,m,g,y,w,_;let E=(n=1,i=0,s=[],a=[],l=e,d=new Map,p=new Set,m=()=>{a=Array.from(d.values()),p.forEach(e=>e())},g=({containerId:e,toastId:t,updateId:n})=>{let i=d.has(t)&&null==n;return(e?e!==r:1!==r)||i},y=e=>{var t,r;null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1},w=e=>{if(null==e)d.forEach(y);else{let t=d.get(e);t&&y(t)}m()},_=e=>{var t,r;let{toastId:n,updateId:i}=e.props,o=null==i;e.staleId&&d.delete(e.staleId),e.isActive=!0,d.set(n,e),m(),x(f(e,o?"added":"updated")),o&&(null==(r=(t=e.props).onOpen)||r.call(t))},{id:r,props:l,observe:e=>(p.add(e),()=>p.delete(e)),toggle:(e,t)=>{d.forEach(r=>{var n;(null==t||t===r.props.toastId)&&(null==(n=r.toggle)||n.call(r,e))})},removeToast:w,toasts:d,clearQueue:()=>{i-=s.length,s=[]},buildToast:(e,t)=>{if(g(t))return;let{toastId:r,updateId:a,data:p,staleId:y,delay:v}=t,b=null==a;b&&i++;let E={...l,style:l.toastStyle,key:n++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)),toastId:r,updateId:a,data:p,isIn:!1,className:u(t.className||l.toastClassName),progressClassName:u(t.progressClassName||l.progressClassName),autoClose:!t.isLoading&&c(t.autoClose,l.autoClose),closeToast(e){d.get(r).removalReason=e,w(r)},deleteToast(){let e=d.get(r);if(null!=e){if(x(f(e,"removed")),d.delete(r),--i<0&&(i=0),s.length>0){_(s.shift());return}m()}}};E.closeButton=l.closeButton,!1===t.closeButton||h(t.closeButton)?E.closeButton=t.closeButton:!0===t.closeButton&&(E.closeButton=!h(l.closeButton)||l.closeButton);let S={content:e,props:E,staleId:y};l.limit&&l.limit>0&&i>l.limit&&b?s.push(S):o(v)?setTimeout(()=>{_(S)},v):_(S)},setProps(e){l=e},setToggle:(e,t)=>{let r=d.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=d.get(e))?void 0:t.isActive},getSnapshot:()=>a});v.set(r,E);let S=E.observe(t);return b.forEach(e=>T(e.content,e.options)),b=[],()=>{S(),v.delete(r)}},setProps(e){var t;null==(t=v.get(r))||t.setProps(e)},getSnapshot(){var e;return null==(e=v.get(r))?void 0:e.getSnapshot()}})).current;a(e);let l=null==(t=(0,n.useSyncExternalStore)(i,s,s))?void 0:t.slice();return{getToastToRender:function(t){if(!l)return[];let r=new Map;return e.newestOnTop&&l.reverse(),l.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:S,count:null==l?void 0:l.length}}(t),{className:y,style:w,rtl:_,containerId:E,hotKeys:k}=t;function A(){r&&(l(!0),P.play())}return R(()=>{var e;if(r){let r=d.current.querySelectorAll('[data-in="true"]'),n=null==(e=t.position)?void 0:e.includes("top"),i=0,o=0;Array.from(r).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${s}`),e.dataset.pos||(e.dataset.pos=n?"top":"bot");let r=i*(s?.2:1)+(s?0:12*t);e.style.setProperty("--y",`${n?r:-1*r}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",`${1-(s?o:0)}`),i+=e.offsetHeight,o+=.025})}},[s,g,r]),(0,n.useEffect)(()=>{function e(e){var t;let r=d.current;k(e)&&(null==(t=r.querySelector('[tabIndex="0"]'))||t.focus(),l(!1),P.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(l(!0),P.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[k]),n.createElement("section",{ref:d,className:"Toastify",id:E,onMouseEnter:()=>{r&&(l(!1),P.pause())},onMouseLeave:A,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},p((e,t)=>{let o,s=t.length?{...w}:{...w,pointerEvents:"none"};return n.createElement("div",{tabIndex:-1,className:(o=(0,i.A)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":_}),a(y)?y({position:e,rtl:_,defaultClassName:o}):(0,i.A)(o,u(y))),"data-stacked":r,style:s,key:`c-${e}`},t.map(({content:e,props:t})=>n.createElement(L,{...t,stacked:r,collapseAll:A,isIn:m(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}},14644:(e,t,r)=>{"use strict";function n(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.d(t,{HY:()=>u,Qd:()=>a,Tw:()=>h,Zz:()=>c,ve:()=>d,y$:()=>l});var i="function"==typeof Symbol&&Symbol.observable||"@@observable",o=()=>Math.random().toString(36).substring(7).split("").join("."),s={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function a(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,r){if("function"!=typeof e)throw Error(n(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(n(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(n(1));return r(l)(e,t)}let o=e,u=t,c=new Map,h=c,d=0,f=!1;
36function p(){h===c&&(h=new Map,c.forEach((e,t)=>{h.set(t,e)}))}function m(){if(f)throw Error(n(3));return u}function g(e){if("function"!=typeof e)throw Error(n(4));if(f)throw Error(n(5));let t=!0;p();let r=d++;return h.set(r,e),function(){if(t){if(f)throw Error(n(6));t=!1,p(),h.delete(r),c=null}}}function y(e){if(!a(e))throw Error(n(7));if(void 0===e.type)throw Error(n(8));if("string"!=typeof e.type)throw Error(n(17));if(f)throw Error(n(9));try{f=!0,u=o(u,e)}finally{f=!1}return(c=h).forEach(e=>{e()}),e}return y({type:s.INIT}),{dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw Error(n(10));o=e,y({type:s.REPLACE})},[i]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(n(11));function t(){e.next&&e.next(m())}return t(),{unsubscribe:g(t)}},[i](){return this}}}}}function u(e){let t;let r=Object.keys(e),i={};for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof e[n]&&(i[n]=e[n])}let o=Object.keys(i);try{!function(e){Object.keys(e).forEach(t=>{let r=e[t];if(void 0===r(void 0,{type:s.INIT}))throw Error(n(12));if(void 0===r(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw Error(n(13))})}(i)}catch(e){t=e}return function(e={},r){if(t)throw t;let s=!1,a={};for(let t=0;t<o.length;t++){let l=o[t],u=i[l],c=e[l],h=u(c,r);if(void 0===h)throw r&&r.type,Error(n(14));a[l]=h,s=s||h!==c}return(s=s||o.length!==Object.keys(e).length)?a:e}}function c(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function h(...e){return t=>(r,i)=>{let o=t(r,i),s=()=>{throw Error(n(15))},a={getState:o.getState,dispatch:(e,...t)=>s(e,...t)};return s=c(...e.map(e=>e(a)))(o.dispatch),{...o,dispatch:s}}}function d(e){return a(e)&&"type"in e&&"string"==typeof e.type}},31635:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Tt:()=>i,YH:()=>s,fX:()=>a,sH:()=>o});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function s(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function a(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},78446:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UAParser:()=>eB});
vendor: 6,522 bytes, line 36
36var n="user-agent",i="function",o="undefined",s="object",a="string",l="browser",u="device",c="engine",h="result",d="name",f="type",p="vendor",m="version",g="architecture",y="major",v="model",b="console",w="mobile",x="tablet",_="smarttv",E="wearable",S="embedded",T="inapp",k="brands",A="formFactors",C="fullVersionList",I="platform",P="platformVersion",R="bitness",O="sec-ch-ua",M=O+"-full-version-list",N=O+"-arch",L=O+"-"+R,D=O+"-form-factors",j=O+"-"+w,V=O+"-"+v,F=O+"-"+I,U=F+"-version",B=[k,C,w,v,I,P,g,A,R],z="Amazon",H="Apple",$="ASUS",W="BlackBerry",q="Google",G="Huawei",K="Lenovo",Y="Honor",X="Microsoft",Z="Motorola",Q="Nvidia",J="OnePlus",ee="OPPO",et="Samsung",er="Sharp",en="Sony",ei="Xiaomi",eo="Zebra",es="Chrome",ea="Chromium",el="Chromecast",eu="Edge",ec="Firefox",eh="Opera",ed="Facebook",ef="Sogou",ep="Mobile ",em=" Browser",eg="Windows",ey=typeof window!==o&&window.navigator?window.navigator:void 0,ev=ey&&ey.userAgentData?ey.userAgentData:void 0,eb=function(e,t){var r={},n=t;if(!e_(t))for(var i in n={},t)for(var o in t[i])n[o]=t[i][o].concat(n[o]?n[o]:[]);for(var s in e)r[s]=n[s]&&n[s].length%2==0?n[s].concat(e[s]):e[s];return r},ew=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},ex=function(e,t){if(typeof e===s&&e.length>0){for(var r in e)if(eT(t)==eT(e[r]))return!0;return!1}return!!eE(e)&&eT(t)==eT(e)},e_=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&e_(e[r])},eE=function(e){return typeof e===a},eS=function(e){if(e){for(var t=[],r=eC(/\\?\"/g,e).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var i=eP(r[n]).split(";v=");t[n]={brand:i[0],version:i[1]}}else t[n]=eP(r[n]);return t}},eT=function(e){return eE(e)?e.toLowerCase():e},ek=function(e){return eE(e)?eC(/[^\d\.]/g,e).split(".")[0]:void 0},eA=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r==s&&2==r.length?this[r[0]]=r[1]:this[r]=void 0}return this},eC=function(e,t){return eE(t)?t.replace(e,""):t},eI=function(e){return eC(/\\?\"/g,e)},eP=function(e,t){if(eE(e))return e=eC(/^\s\s*/,e),typeof t===o?e:e.substring(0,500)},eR=function(e,t){if(e&&t)for(var r,n,o,a,l,u,c=0;c<t.length&&!l;){var h=t[c],d=t[c+1];for(r=n=0;r<h.length&&!l&&h[r];)if(l=h[r++].exec(e))for(o=0;o<d.length;o++)u=l[++n],typeof(a=d[o])===s&&a.length>0?2===a.length?typeof a[1]==i?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:a.length>=3&&(typeof a[1]!==i||a[1].exec&&a[1].test?3==a.length?this[a[0]]=u?u.replace(a[1],a[2]):void 0:4==a.length?this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):void 0:a.length>4&&(this[a[0]]=u?a[3].apply(this,[u.replace(a[1],a[2])].concat(a.slice(4))):void 0):a.length>3?this[a[0]]=u?a[1].apply(this,a.slice(2)):void 0:this[a[0]]=u?a[1].call(this,u,a[2]):void 0):this[a]=u||void 0;c+=2}},eO=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(ex(t[r][n],e))return"?"===r?void 0:r}else if(ex(t[r],e))return"?"===r?void 0:r;return t.hasOwnProperty("*")?t["*"]:e},eM={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},eN={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},eL={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},eD={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[d,ep+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[m,[d,eu+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,m],[/opios[\/ ]+([\w\.]+)/i],[m,[d,eh+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[d,eh+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[d,eh]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[d,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[d,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[d,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[d,"Smart "+K+em]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure"+em],m],[/\bfocus\/([\w\.]+)/i],[m,[d,ec+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[d,eh+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[d,eh+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[d,"MIUI"+em]],[/fxios\/([\w\.-]+)/i],[m,[d,ep+ec]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+em],m],[/samsungbrowser\/([\w\.]+)/i],[m,[d,et+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[d,ef+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,ef+" Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,m],[/(lbbrowser|rekonq)/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,ed],m,[f,T]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[d,m,[f,T]],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[d,"GSA"],[f,T]],[/musical_ly(?:.
36+app_?version\/|_)([\w\.]+)/i],[m,[d,"TikTok"],[f,T]],[/\[(linkedin)app\]/i],[d,[f,T]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[d,/(.+)/,"Zalo"],m,[f,T]],[/(chromium)[\/ ]([-\w\.]+)/i],[d,m],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[d,es+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[m,[d,eu+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,es+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[d,"Android"+em]],[/chrome\/([\w\.]+) mobile/i],[m,[d,ep+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,m],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[m,[d,ep+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[d,ep+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[m,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[m,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[d,m],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[d,ep+ec],m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[d,ec+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[d,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[m,/[^\d\.]+./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[g,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[g,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[g,"arm"]],[/ sun4\w[;\)]/i],[[g,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[g,/ower/,"",eT]],[/winnt.+\[axp/i],[[g,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[v,[p,et],[f,x]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[v,[p,et],[f,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[p,H],[f,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[p,H],[f,x]],[/(macintosh);/i],[v,[p,H]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[p,er],[f,w]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[v,[p,Y],[f,x]],[/honor([-\w ]+)[;\)]/i],[v,[p,Y],[f,w]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[v,[p,G],[f,x]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[p,G],[f,w]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[v,/_/g," "],[p,ei],[f,x]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[v,/_/g," "],[p,ei],[f,w]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[p,J],[f,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[p,ee],[f,w]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[v,[p,eO,{OnePlus:["203","304","403","404","413","415"],"*":ee}],[f,x]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[v,[p,"BLU"],[f,w]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[p,"Vivo"],[f,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[p,"Realme"],[f,w]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
vendor: 5,683 bytes, line 36
36(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[v,[p,K],[f,x]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[v,[p,K],[f,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[v,[p,Z],[f,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[p,Z],[f,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[p,"LG"],[f,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[p,"LG"],[f,w]],[/(nokia) (t[12][01])/i],[p,v,[f,x]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[v,/_/g," "],[f,w],[p,"Nokia"]],[/(pixel (c|tablet))\b/i],[v,[p,q],[f,x]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[v,[p,q],[f,w]],[/(google) (pixelbook( go)?)/i],[p,v],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[v,[p,en],[f,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[p,en],[f,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[p,z],[f,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[p,z],[f,w]],[/(playbook);[-\w\),; ]+(rim)/i],[v,p,[f,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[p,W],[f,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[p,$],[f,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[p,$],[f,w]],[/(nexus 9)/i],[v,[p,"HTC"],[f,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[v,/_/g," "],[f,w]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[v,[p,"TCL"],[f,x]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[v,[p,"TCL"],[f,w]],[/(itel) ((\w+))/i],[[p,eT],v,[f,eO,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[p,"Acer"],[f,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[p,"Meizu"],[f,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[p,"Ulefone"],[f,w]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[v,[p,"Energizer"],[f,w]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[v,[p,"Cat"],[f,w]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[v,[p,"Smartfren"],[f,w]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[v,[p,"Nothing"],[f,w]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[v,[p,"Archos"],[f,x]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[v,[p,"Archos"],[f,w]],[/; (n159v)/i],[v,[p,"HMD"],[f,w]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[p,v,[f,x]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[p,v,[f,w]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[p,v,[f,x]],[/(surface duo)/i],[v,[p,X],[f,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[p,"Fairphone"],[f,w]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[v,[p,Q],[f,x]],[/(sprint) (\w+)/i],[p,v,[f,w]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[p,X],[f,w]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[p,eo],[f,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[p,eo],[f,w]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[p,[f,_]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[p,et],[f,_]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[p,v,[f,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[f,_]],[/(apple) ?tv/i],[p,[v,H+" TV"],[f,_]],[/crkey.*devicetype\/chromecast/i],[[v,el+" Third Generation"],[p,q],[f,_]],[/crkey.*devicetype\/([^/]*)/i],[[v,/^/,"Chromecast "],[p,q],[f,_]],[/fuchsia.*crkey/i],[[v,el+" Nest Hub"],[p,q],[f,_]],[/crkey/i],[[v,el],[p,q],[f,_]],[/(portaltv)/i],[v,[p,ed],[f,_]],[/droid.+aft(\w+)( bui|\))/i],[v,[p,z],[f,_]],[/(shield \w+ tv)/i],[v,[p,Q],[f,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[p,er],[f,_]],[/(bravia[\w ]+)( bui|\))/i],[v,[p,en],[f,_]],[/(mi(tv|box)-?\w+) bui/i],[v,[p,ei],[f,_]],[/Hbbtv.*(technisat) (.*);/i],[p,v,[f,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,/.+\/(\w+)/,"$1",eO,{LG:"lge"}],[v,eP],[f,_]],[/(playstation \w+)/i],[v,[p,en],[f,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[p,X],[f,b]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[p,v,[f,b]],[/droid.+; (shield)( bui|\))/i],[v,[p,Q],[f,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[v,[p,et],[f,E]],[/((pebble))app/i,/(asu
36s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[p,v,[f,E]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[v,[p,ee],[f,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[p,H],[f,E]],[/(opwwe\d{3})/i],[v,[p,J],[f,E]],[/(moto 360)/i],[v,[p,Z],[f,E]],[/(smartwatch 3)/i],[v,[p,en],[f,E]],[/(g watch r)/i],[v,[p,"LG"],[f,E]],[/droid.+; (wt63?0{2,3})\)/i],[v,[p,eo],[f,E]],[/droid.+; (glass) \d/i],[v,[p,q],[f,"xr"]],[/(pico) ([\w ]+) os\d/i],[p,v,[f,"xr"]],[/(quest( \d| pro)?s?).+vr/i],[v,[p,ed],[f,"xr"]],[/mobile vr; rv.+firefox/i],[[f,"xr"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[f,S]],[/(aeobc)\b/i],[v,[p,z],[f,S]],[/(homepod).+mac os/i],[v,[p,H],[f,S]],[/windows iot/i],[[f,S]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[v,[f,_]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[f,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[v,[f,eO,{mobile:"Mobile",xr:"VR","*":x}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,w]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[v,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[d,eu+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[d,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,m],[/ladybird\//i],[[d,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,d]],os:[[/(windows nt) (6\.[23]); arm/i],[[d,/N/,"R"],[m,eO,eM]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[d,m],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[m,/(;|\))/g,"",eO,eM],[d,eg]],[/(windows ce)\/?([\d\.]*)/i],[d,m],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[d,"macOS"],[m,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[m,[d,el+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[m,[d,el+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[m,[d,el+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[m,[d,el+" Linux"]],[/crkey\/([\d\.]+)/i],[m,[d,el]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[m,d],[/(ubuntu) ([\w\.]+) like android/i],[[d,/(.+)/,"$1 Touch"],m],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[d,m],[/\(bb(10);/i],[m,[d,W]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[d,ec+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[m,[d,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[m,eO,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[d,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,"Chrome OS"],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[d,m],[/(sunos) ?([\d\.]*)/i],[[d,"Solaris"],m],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,m]]},ej=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return eA.call(e.init,[[l,[d,m,y,f]],["cpu",[g]],[u,[f,v,p]],[c,[d,m]],["os",[d,m]]]),eA.call(e.isIgnore,[[l,[m,y]],[c,[m]],["os",[m]]]),eA.call(e.isIgnoreRgx,[[l,/ ?browser$/i],["os",/ ?os$/i]]),eA.call(e.toString,[[l,[d,m]],["cpu",[g]],[u,[p,v]],[c,[d,m]],["os",[d,m]]]),e}(),eV=function(e,t){var r=ej.init[t],n=ej.isIgnore[t]||0,i=ej.isIgnoreRgx[t]||0,s=ej.toString[t]||0;function a(){eA.call(this,r)}return a.prototype.getItem=function(){return e},a.prototype.withClientHints=function(){return ev?ev.getHighEntropyValues(B).then(function(t){return e.setCH(new eF(t,!1)).parseCH().get()}):e.parseCH().get()}
36,a.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=h&&(a.prototype.is=function(e){var t=!1;for(var r in this)if(this.hasOwnProperty(r)&&!ex(n,r)&&eT(i?eC(i,this[r]):this[r])==eT(i?eC(i,e):e)){if(t=!0,e!=o)break}else if(e==o&&t){t=!t;break}return t},a.prototype.toString=function(){var e="";for(var t in s)typeof this[s[t]]!==o&&(e+=(e?" ":"")+this[s[t]]);return e||o}),ev||(a.prototype.then=function(e){var t=this,r=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};r.prototype={is:a.prototype.is,toString:a.prototype.toString};var n=new r;return e(n),n}),new a};function eF(e,t){if(e=e||{},eA.call(this,B),t)eA.call(this,[[k,eS(e[O])],[C,eS(e[M])],[w,/\?1/.test(e[j])],[v,eI(e[V])],[I,eI(e[F])],[P,eI(e[U])],[g,eI(e[N])],[A,eS(e[D])],[R,eI(e[L])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==o&&(this[r]=e[r])}function eU(e,t,r,n){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(ey&&ey.userAgent==this.ua)switch(this.itemType){case l:ey.brave&&typeof ey.brave.isBrave==i&&this.set(d,"Brave");break;case u:!this.get(f)&&ev&&ev[w]&&this.set(f,w),"Macintosh"==this.get(v)&&ey&&typeof ey.standalone!==o&&ey.maxTouchPoints&&ey.maxTouchPoints>2&&this.set(v,"iPad").set(f,x);break;case"os":!this.get(d)&&ev&&ev[I]&&this.set(d,ev[I]);break;case h:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(l,t(l)).set("cpu",t("cpu")).set(u,t(u)).set(c,t(c)).set("os",t("os"))}return this},this.parseUA=function(){return this.itemType!=h&&eR.call(this.data,this.ua,this.rgxMap),this.itemType==l&&this.set(y,ek(this.get(m))),this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case l:case c:var r,n=e[C]||e[k];if(n)for(var i=0;i<n.length;i++){var o=n[i].brand||n[i],s=n[i].version;this.itemType==l&&!/not.a.brand/i.test(o)&&(!r||/Chrom/.test(r)&&o!=ea||r==eu&&/WebView2/.test(o))&&(o=eO(o,eL),(r=this.get(d))&&!/Chrom/.test(r)&&/Chrom/.test(o)||this.set(d,o).set(m,s).set(y,ek(s)),r=o),this.itemType==c&&o==ea&&this.set(m,s)}break;case"cpu":var a=e[g];a&&(a&&"64"==e[R]&&(a+="64"),eR.call(this.data,a+";",t));break;case u:if(e[w]&&this.set(f,w),e[v]&&(this.set(v,e[v]),!this.get(f)||!this.get(p))){var b,x={};eR.call(x,"droid 9; "+e[v]+")",t),!this.get(f)&&x.type&&this.set(f,x.type),!this.get(p)&&x.vendor&&this.set(p,x.vendor)}if(e[A]){if("string"!=typeof e[A])for(var _=0;!b&&_<e[A].length;)b=eO(e[A][_++],eN);else b=eO(e[A],eN);this.set(f,b)}break;case"os":var E=e[I];if(E){var S=e[P];E==eg&&(S=parseInt(ek(S),10)>=13?"11":"10"),this.set(d,E).set(m,S)}this.get(d)==eg&&"Xbox"==e[v]&&this.set(d,"Xbox").set(m,void 0);break;case h:var T=this.data,O=function(t){return T[t].getItem().setCH(e).parseCH().get()};this.set(l,O(l)).set("cpu",O("cpu")).set(u,O(u)).set(c,O(c)).set("os",O("os"))}return this},eA.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",r],["data",eV(this,e)]]),this}function eB(e,t,r){if(typeof e===s?(e_(e,!0)?(typeof t===s&&(r=t),t=e):(r=e,t=void 0),e=void 0):typeof e!==a||e_(t,!0)||(r=t,t=void 0),r){if(typeof r.append===i){var o={};r.forEach(function(e,t){o[String(t).toLowerCase()]=e}),r=o}else{var d={};for(var f in r)r.hasOwnProperty(f)&&(d[String(f).toLowerCase()]=r[f]);r=d}}if(!(this instanceof eB))return new eB(e,t,r).getResult();var p=typeof e===a?e:r&&r[n]?r[n]:ey&&ey.userAgent?ey.userAgent:"",m=new eF(r,!0),g=t?eb(eD,t):eD,y=function(e){return e==h?function(){return new eU(e,p,g,m).set("ua",p).set(l,this.getBrowser()).set("cpu",this.getCPU()).set(u,this.getDevice()).set(c,this.getEngine()).set("os",this.getOS()).get()}:function(){return new eU(e,p,g[e],m).parseUA().get()}};return eA.call(this,[["getBrowser",y(l)],["getCPU",y("cpu")],["getDevice",y(u)],["getEngine",y(c)],["getOS",y("os")],["getResult",y(h)],["getUA",function(){return p}],["setUA",function(e){return eE(e)&&(p=e.length>500?eP(e,500):e),this}]]).setUA(p),this}eB.VERSION="2.0.5",eB.BROWSER=ew([d,m,y,f]),eB.CPU=ew([g]),eB.DEVICE=ew([v,p,f,b,w,_,x,E,S]),eB.ENGINE=eB.OS=ew([d,m])},21303:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>a});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},o=new Uint8Array(16),s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));let a=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();let a=(e=e||{}
36).random??e.rng?.()??function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(o)}();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=a[e];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(a)}},28408:e=>{"use strict";e.exports=JSON.parse('{"home":"home","page":"Page","conact_us":"Contact Us","content":"Content","review":"Review","about":"เกี่ยวกับ","signin":"Signin","register":"Register","signout":"Signout","profile":"Profile","dashboard":"Dashboard","admin":"Admin","pages":"Pages","team":"Team","price":"Price","articels":"Articels","faq":"Faq","courses":"Courses","welcome":"wellcome","search":"Search","cart":"Cart","clickmenu":"Click show Menu","language":"Language","changelanguage":"Change Language","changemode":"Change Mode","darkmode":"Dark Mode","lightmode":"Light Mode","changeTheme":"Change Theme","en":"English","th":"Thai","undo":"Undo","redo":"Redo","bold":"Bold","italic":"Italic","underline":"Underline","strike":"Strike","h1":"Heading 1","h2":"Heading 2","h3":"Heading 3","h4":"Heading 4","h5":"Heading 5","h6":"Heading 6","code":"Code","codeblock":"Code Block","blockquote":"Block Quote","quote":"Quote","bulletlist":"Bullet List","numberlist":"Number List","unorderedlist":"Unordered List","orderedlist":"Ordered List","alignleft":"Align Left","aligncenter":"Align Center","alignright":"Align Right","alignjustify":"Align Justify","table":"Table","image":"Image","link":"Link","unlink":"Unlink","preview":"Preview","save":"Save","cancel":"Cancel","close":"Close","new":"New","edit":"Edit","delete":"Delete","view":"View","decreasefontsize":"Decrease Font Size","increasefontsize":"Increase Font Size","fontcolor":"Font Color","fontsize":"Font Size","upload":"Upload","youtube":"Youtube","write_text":"Write Text","add_article":"Add Article","edit_article":"Edit Article","delete_article":"Delete Article","add_category":"Add Category","edit_category":"Edit Category","delete_category":"Delete Category","add_product":"Add Product","edit_product":"Edit Product","delete_product":"Delete Product","add_service":"Add Service","edit_service":"Edit Service","delete_service":"Delete Service","name":"Name","exam_name":"Used for displaying web pages. For example: home will display www.thenewyou.co.th/home","name_write":"Please type name","title":"Title","exam_title":"Used for display menu","title_write":"Please type title","slug":"Slug","exam_slug":"Auto display","slug_write":"Please type slug","email":"Email","phone":"Tel","address":"Address","description":"Description","exam_description":"Used for SEO to display pages and search","description_write":"Please type details","category":"Category","status":"Status","cover":"Cover","exam_cover":"Used for displaying web pages.","upload_image":"Upload image","upload_image_desc":"Used for displaying web pages.","contact_desc":"Learn and develop yourself with The New You Academy.","newsletter_placeholder":"Please enter your email","newsletter_button":"Subscribe","newsletter_success":"Thank you for Subscribe","newsletter_error":"An error occurred in Subscribe","newsletter_read":"We care about the protection of your data.","read_privacy":"Read our Privacy Policy.","read_more":"Read More","remove-image":"Remove Image","open_library":"Open Library","library":"Library","library_desc":"Management Library","slug_required":"Please type slug","slug_already_exists":"Slug already exists","page_added_successfully":"Page added successfully","page_updated_successfully":"Page updated successfully","page_deleted_successfully":"Page deleted successfully","something_went_wrong":"Something went wrong","management_pages":"Management Pages","create_page":"Create Page","edit_page":"Edit Page","delete_page":"Delete Page","add_page":"Add Page","management_categories":"Management Categories","add_team":"Add Team","edit_team"
36:"Edit Team","delete_team":"Delete Team","position":"Position","bio":"Bio","team_added_successfully":"Team added successfully","team_updated_successfully":"Team updated successfully","team_deleted_successfully":"Team deleted successfully","active":"Active","inactive":"Inactive","are_you_sure":"Are you sure?","you_wont_be_able_to_revert_this":"You won\'t be able to revert this!","yes_delete_it":"Yes, delete it!","tools":"Tools","admin_console":"Admin Console","sections-management":"Sections Management","sections":"Sections","available_sections":"Available Sections","available_sections_desc":"Select a section to manage","select_section":"Select Section","select_section_desc":"Right click to delete a component. Drag to move position","please_select_a_section":"Please select a section first","update_section_success":"Update Section Success","add_section_success":"Add Section Success","error_occured":"Error Occured","section_not_found":"Section Not Found","size_image":"Size Image","create_course":"Create Course","edit_course":"Edit Course","delete_course":"Delete Course","name_placeholder":"Please type name","description_placeholder":"Please type description","price_placeholder":"Please type price","group":"Group","subgroup":"Sub Group","select_group":"Please Select Group","select_subgroup":" Please Select SubGroup","add_group":"Add Group","add_subgroup":"Add SubGroup","course_updated_successfully":"Course updated successfully","course_added_successfully":"Course added successfully","course_deleted_successfully":"Course deleted successfully","thumbnail":"Thumbn
36ail","thumbnail_desc":"Used for displaying web pages.","select_option":"Please Select","create_select_option":"Add New Option","null_select_option":"No Option","document_number_management":"Document Number Management","documents":"Documents","document_number":"Document Number","document_number_use":"Document Number Use","created_at":"Created At","updated_at":"Updated At","record_length":"Record Length","number_digits":"Numbeer Length","number_digits_placeholder":"Enter the number of digits, such as 5. Example: 00001","start_number":"Number Start","start_number_placeholder":"The document\'s starting number, for example 2, starts with 00002.","document_select_error":"You have not selected a document yet.","documnet_preview":"Example document number","group_value_required":"Please enter group value","subgroup_value_required":"Please enter subgroup value","numbering_updated_successfully":"Document Number Updated Successfully","numbering_created_successfully":"Document Number Created Successfully","tags":"Tags","tags_placeholder":"Enter tags","blog":"Blog","create_blog":"Create Blog","edit_blog":"Edit Blog","delete_blog":"Delete Blog","blog_updated_successfully":"Blog updated successfully","blog_added_successfully":"Blog added successfully","blog_deleted_successfully":"Blog deleted successfully","show_less":"Show Less","show_more":"Show More","menu-management":"Menu Management","fontSize":"Font Size","color":"Color","gap":"Gap","cols":"Colume","add_new_content":"Add New Content","create":"Create","url":"URL","cencel":"cancel","details_courses":"More Details","size":"Size","page_dynamic":"Page Dynamic","page_details":"Page Details","page_management":"Base Page Management","start_date":"Start Date","end_date":"End Date","start_time":"Start Time","end_time":"End Time","date":"Date","time":"Time","all":"All","limit_data":"Limit Data","menu":"Menu","vertical":"Vertical","horizontal":"Horizontal","gen":"Gen","location":"ชื่อสถานที่","location_placeholder":"location Name","location_url":"URL location","location_url_placeholder":"Please type location URL","youtube_url":"Youtube URL","youtube_url_placeholder":"Please type Youtube URL","download_url":"Downlod URL","download_url_placeholder":"Please type Downlod URL","registration_url":"Register URL","registration_url_placeholder":"Please type Register URL","participants":"Participants","add_participants":"Add Participants","edit_participants":"Edit Participants","delete_participants":"Delete Participants","participants_updated_successfully":"Participants updated successfully","participants_added_successfully":"Participants added successfully","participants_deleted_successfully":"Participants deleted successfully","register_now":"Register","download_now":"Download Course Outline","create_article":"Create Article","add_article_success":"Add Article Successfully","edit_article_success":"Edit Article Successfully","delete_article_success":"Delete Article Successfully","content_All":"All","news":"News","news_details":"News Details","news_updated_successfully":"News updated successfully","news_added_successfully":"News added successfully","news_deleted_successfully":"News deleted successfully","news_create":"สร้างรายละเอียดข่าวสาร","articles":"Articles","edit_news":"Edits News","delete_news":"Delete News","type_news":"Type News","multiple_choice":"Multiple Page","images":"Images","select_type":"Select Type","select_content":"Select Content","page_groups":"Page Groups","create_page_group":"Create Page Groups","select_page":"Select Page","interested":"Interested","interested_course":"Interested Course","interested_in_course":"You are interested in this course","create_form":"Create Form","edit_form":"Edit Form","no_data":"No Data","label":"Label","type":"Type","required":"Required","placeholder":"Placeholder","text":"Text","textarea":"Textarea","number":"Number","checkbox":"Checkbox","radio":"Radio","add_radio":"Add Radio","remove_radio":"Remove Radio","select":"Select","add_select":"Add Select","remove_select":"Remove Select","options":"Options","add_option":"Add Option","remove_option":"Remove Option","multiple":"Multiple","form":"Form","form_updated_successfully":"Form updated successfully","form_added_successfully":"Form added successfully","imageEng":"Image (English)","imageTh":"Image (Thai)","button_color":"Button Color","button_text_color":"Button Text Color","button_text":"Button Text","button_url":"Button URL","button":"Button","button_text_placeholder":"Please type button text","button_url_placeholder":"Please type button URL","button_color_placeholder":"Please type button color, e.g. #FF5733","shortDe
36scription":"Short Description","shortDescription_placeholder":"Please type short description","Th":"Thai","En":"English","add_cart":"Add to Cart","buy_now":"Buy Now","payment":"Payment","payment_success":"Payment Success","payment_error":"Payment Error","payment_cancel":"Payment Cancel","payment_pending":"Payment Pending","payment_complete":"Payment Complete","payment_processing":"Payment Processing","payment_declined":"Payment Declined","payment_failed":"Payment Failed","payment_cancelled":"Payment Cancelled","payment_refunded":"Payment Refunded","payment_reversed":"Payment Reversed","payment_charged":"Payment Charged","payment_voided":"Payment Voided","updated":"Updated","user_updated_successfully":"User updated successfully","user_updated_error":"User updated error","address_placeholder":"Please type address","phone_placeholder":"Please type phone number","province":"Province","use_button":"Use Button","history-order":"History Order","preview_course":"Preview Course","add_preview_course":"Add Preview Course","preview_url":"Preview URL","preview_url_placeholder":"Please type preview URL","create_course_online":"Create Course Online","edit_course_online":"Edit Course Online","privacy_updated_successfully":"Privacy updated successfully","privacy_updated_error":"Privacy updated error","privacy":"Privacy","privacy_desc":"Privacy Policy","privacy_placeholder":"Please type privacy policy","terms_updated_successfully":"Terms updated successfully","terms_updated_error":"Terms updated error","terms":"Terms","terms_desc":"Terms and Conditions","privacy-policy":"Privacy Policy","video":"Video","video_management":"Video Management","add_video":"Add Video","remove_video":"Remove Video","video_url":"Video URL","video_url_placeholder":"Please type video URL","upload_video":"Upload Video","title_placeholder":"Please type title","no_video":"No Video"}')},87867:e=>{"use strict";e.exports=JSON.parse('{"home":"หน้าหลัก","page":"หน้า","conact_us":"ติดต่อเรา","content":"เนื้อหา","review":"รีวิว","about":"เกี่ยวกับ","signin":"เข้าสู่ระบบ","register":"ลงทะเบียน","signout":"ออกจากระบบ","profile":"โปรไฟล์","dashboard":"แดชบอร์ด","admin":"ผู้ดูแลระบบ","pages":"หน้าเว็บ","team":"ทีมงาน","price":"ราคา","articels":"บทความ","faq":"คําถามที่พบบ่อย","courses":"หลักสูตร","welcome":"ยินดีต้อนรับ","search":"ค้นหา","cart":"ตะกร้าสินค้า","clickmenu":"คลิกเพื่อเปิดเมนู","language":"ภาษา","changelanguage":"เปลี่ยนภาษา","en":"อังกฤษ","th":"ไทย","changemode":"เปลี่ยนโหมด","darkmode":"โหมดคลาสส์","lightmode":"โหมดแสดง","changeTheme":"เปลี่ยนธีม","undo":"ย้อนกลับ","redo":"ทําซ้ํา","bold":"ตัวหนา","italic":"ตัวเอียง","underline":"ขีดเส้นใต้","strike":"ขีดเส้นทับ","h1":"หัวข้อ 1","h2":"หัวข้อ 2","h3":"หัวข้อ 3","h4":"หัวข้อ 4","h5":"หัวข้อ 5","h6":"หัวข้อ 6","code":"รหัส","codeblock":"บล็อกรหัส","blockquote":"บล็อกคําใบ้","quote":"คําใบ้","bulletlist":"รายการลําดับ Bellet","numberlist":"รายการลําดับ Number","unorderedlist":"รายการไม่ลําดับ","orderedlist":"รายการลําดับ","alignleft":"จัดตําแหน่งซ้าย","aligncenter":"จัดตําแหน่งกลาง","alignright":"จัดตําแหน่งขวา","alignjustify":"จัดตําแหน่งเท่ากัน","table":"ตาราง","image":"รูปภาพ","link":"ลิงก์","unlink":"ลบลิงก์","preview":"ดูตัวอย่าง","save":"บันทึก","cancel":"ยกเลิก","close"
36:"ปิด","new":"ใหม่","edit":"แก้ไข","delete":"ลบ","view":"ดู","decreasefontsize":"ลดขนาดตัวอักษร","increasefontsize":"เพิ่มขนาดตัวอักษร","fontcolor":"สีตัวอักษร","fontsize":"ขนาดตัวอักษร","upload":"อัปโหลด","youtube":"Youtube","write_text":"เขียนข้อความ","add_article":"เพิ่มบทความ","edit_article":"แก้ไขบทความ","delete_article":"ลบบทความ","add_category":"เพิ่มหมวดหมู่","edit_category":"แก้ไขหมวดหมู่","delete_category":"ลบหมวดหมู่","add_product":"เพิ่มสินค้า","edit_product":"แก้ไขสินค้า","delete_product":"ลบสินค้า","add_service":"เพิ่มบริการ","edit_service":"แก้ไขบริการ","delete_service":"ลบบริการ","name":"ชื่อ","exam_name":"ใช้สำหรับแสดงหน้าเว็บ ยกตัวอย่าง: home จะแสดง www.thenewyou.co.th/home","name_write":"กรอกชื่อหน้าใช้ภาษาอังกฤษเท่านั้น","title":"หัวข้อ","exam_title":"ใช้สำหรับชื่อเมนู","title_write":"กรอกหัวข้อ","slug":"Slug","slug_write":"กรอก Slug","exam_slug":"แสดงอัตโนมัติ","email":"อีเมล","phone":"โทรศัพท์","address":"ที่อยู่","description":"รายละเอียด","exam_description":"ใช้สำหรับ SEO เพื่อแสดงหน้าเว็บ และค้นหา","description_write":"กรอกรายละเอียด","category":"หมวดหมู่","status":"สถานะ","cover":"ภาพปก","exam_cover":"ใช้สําหรับแสดงหน้าเว็บ","upload_image":"อัปโหลดรูปภาพ","upload_image_desc":"รูปภาพที่ใช้สําหรับแสดงหน้าเว็บ","contact_desc":"เรียนรู้และพัฒนาตัวเองกับ The New You Academy","newsletter_header":"ลงทะเบียนเพื่อรับจดหมายข่าวของเรา","newsletter_desc":"ติดตามความคืบหน้าของแผนงาน ประกาศ และส่วนลดพิเศษอยู่เสมอ โปรดสมัครด้วยอีเมลของคุณเพื่อรับการแจ้งเตือนทันที","newsletter_placeholder":"กรอกอีเมลของคุณ","newsletter_button":"รับข่าวสาร","newsletter_read":"เราใส่ใจเกี่ยวกับการปกป้องข้อมูลของคุณ","read_privacy":"อ่านนโยบายความเป็นส่วนตัว","read_more":"อ่านเพิ่มเติม","newsletter_success":"ขอบคุณสําหรับการลงทะเบียน","newsletter_error":"เกิดข้อผิดพลาดในการลงทะเบียน","remove-image":"ลบรูปภาพ","open_library":"เปิดคลังรูปภาพ","library":"คลังรูปภาพ","library_desc":"จัดการรูปภาพในคลัง","slug_required":"กรุณากรอก Slug","slug_already_exists":"Slug นี้มีอยู่ในระบบแล้ว","page_added_successfully":"เพิ่มหน้าเว็บเรียบร้อย","page_updated_successfully":"แก้ไขหน้าเว็บเรียบร้อย","page_deleted_successfully":"ลบหน้าเว็บเรียบร้อย","something_went_wrong":"มีอะไรผิดพลาดในการบันทึกข้อมูล","management_pages":"จัดการหน้าเว็บ","create_page":"สร้างหน้าเว็บ","edit_page":"แก้ไขหน้าเว็บ","delete_page":"ลบหน้าเว็บ","add_page":"สร้างหน้าเว็บ","teams-management":"จัดการทีม","add_team":"เพิ่มทีม","edit_team"
36:"แก้ไขทีม","delete_team":"ลบทีม","position":"ตําแหน่ง","bio":"ประวัติ","team_added_successfully":"เพิ่มทีมเรียบร้อย","team_updated_successfully":"แก้ไขทีมเรียบร้อย","team_deleted_successfully":"ลบทีมเรียบร้อย","active":"เปิดใช้งาน","inactive":"ปิดใช้งาน","are_you_sure":"คุณแน่ใจหรือไม่","you_wont_be_able_to_revert_this":"คุณไม่สามารถย้อนกลับได้","yes_delete_it":"ใช่ ลบเลย","tools":"เครื่องมือ","admin_console":"แอดมินคอนซอล","sections-management":"จัดการส่วนประกอบ","sections":"ส่วนประกอบ","available_sections":"ส่วนประกอบที่พร้อมใช้งาน","available_sections_desc":"คลิกเพื่อเลือกส่วนประกอบ","select_section":"เลือกส่วนประกอบ","select_section_desc":"คลิกขวาเพื่อลบส่วนประกอบ ลากเพื่อเลื่อนตำแหน่ง","please_select_a_section":"กรุณาเลือกส่วนประกอบก่อนใช้งาน","update_section_success":"อัพเดตส่วนประกอบสําเร็จ","add_section_success":"เพิ่มส่วนประกอบสําเร็จ","error_occured":"เกิดข้อผิดพลาดในการบันทึกข้อมูล","section_not_found":"ไม่พบส่วนประกอบ","size_image":"ขนาดรูปภาพ","create_course":"สร้างคอร์ส","edit_course":"แก้ไขคอร์ส","delete_course":"ลบคอร์ส","name_placeholder":"กรอกชื่อ","description_placeholder":"กรอกรายละเอียด","price_placeholder":"กรอกราคา","group":"กลุ่ม","subgroup":"กลุ่มย่อย","select_group":"เลือกกลุ่ม","select_subgroup":"เลือกกลุ่มย่อย","add_group":"เพิ่มกลุ่ม","add_subgroup":"เพิ่มกลุ่มย่อย","course_updated_successfully":"อัพเดตคอร์สสําเร็จ","course_added_successfully":"เพิ่มคอร์สสําเร็จ","course_deleted_successfully":"ลบคอร์สสําเร็จ","thumbnail":"รูปภาพตัวอย่าง","thumbnail_desc":"รูปภาพที่ใช้สําหรับแสดงหน้าเว็บ","select_option":"กรุณาเลือก","create_select_option":"เพิ่มตัวเลือกใหม่","null_select_option":"ไม่มีตัวเลือก","document_number_management":"จัดการเลขที่เอกสาร","documents":"เอกสาร","document_number":"เลขที่เอกสาร","document_number_use":"เลขที่เอกสารที่ใช้","created_at":"สร้างเมื่อ","updated_at":"อัพเดตเมื่อ","record_length":"จำนวนเรคคอร์ด","number_digits":"จำนวนหลังตัวเลข","number_digits_placeholder":"กรอกจำนวนหลักตัวเลข เช่น 5 ตัวอย่าง: 00001","start_number":"เลขตัวเลขที่เริ่มต้น","start_number_placeholder":"ตัวเลขเริ่มต้นของเอกสาร เช่น 2 จะเริ่มจาก 00002","document_select_error":"คุณยังไม่ได้เลือก document","documnet_preview":"ตัวอย่างเลขเอกสาร","group_value_required":"กรุณากรอกค่ากลุ่ม","subgroup_value_required":"กรุณากรอกค่ากลุ่มย่อย","numbering_updated_successfully":"อัพเดตเลขที่เอกสารสําเร็จ","numbering_created_successfully":"สร้างเลขที่เอกสารสําเร็จ","tags":"แท็ก","tags_placeholder":"กรอกแท็ก","blog":"บล็อก","create_blog":"สร้างบล็อก","edit_blog":"แก้ไขบล็อก","delete_blog":"ลบบล็อก","blog_updated_successfully":"อัพเดตบล็อกสําเร็จ","blog_added_successfully":"เพิ่มบล็อกสําเร็จ","blog_deleted_successfully":"ลบบล็อกสําเร็จ","show_less":"แสดงน้อยลง","show_more":"แสดงมากขึ้น","menu-management":"จัดการเมนู","fontSize":"ขนาดอักษร","color":"สี","gap":"ระยะห่าง","cols":"คอลัมน์","add_new_content":"เพิ่มเนื้อหาใหม่","create":"สร้าง","url":"URL","cencel":"ยกเลิก","details_courses":"ดูรายละเอียดเพิ่มเติม","size":"ขนาด","page_dynamic":"หน้าเพิ่มเติม","page_details":"หน้ารายละเอียด","page_management":"จัดการหน้าหลัก","start_date":"วันที่เริ่มต้น","end_date":"วันที่สิ้นสุด","start_time":"เวลาเริ่มต้น","end_time":"เวลาสิ้นสุด","date":"วันที่","time":"เวลา","all":"ทั้งหมด","limit_data":"จํานวนข้อมูล","menu":"เมนู","vertical":"แนวตั้ง","horizontal":"แนวนอน","gen":"รุ่นที่","location":"ชื่อสถานที่","location_placeholder":"กรอกชื่อสถานที่","location_url":"URL สถานที่","location_url_placeholder":"กรอก URL สถานที่","youtube_url":"Youtube URL","youtube_url_placeholder":"กรอก Youtube URL","download_url":"URL ดาวน์โหลด","download_url_placeholder":"กรอก URL ดาวน์โหลด","registration_url":"URL ลงทะเบียน","registration_url_placeholder":"กรอก URL ลงทะเบียน","participants":"ผู้เข้าร่วม","add_participants":"เพิ่มผู้เข้าร่วม","edit_participants":"แก้ไขผู้เข้าร่วม","delete_participants":"ลบผู้เข้าร่วม","participants_updated_successfully":"อัพเดตผู้เข้าร่วมสําเร็จ","participants_added_successfully":"เพิ่มผู้เข้าร่วมสําเร็จ","participants_deleted_successfully":"ลบผู้เข้าร่วมสําเร็จ","register_now":"ลงทะเบียนเรียน","download_now":"ดาวน์โหลด Course Outline","create_article":"เพิ่มบทความ","add_article_success":"เพิ่มบทความสําเร็จ","edit_article_success":"แก้ไขบทความสําเร็จ","delete_article_success":"ลบบทความสําเร็จ","content_All":"เนื้อหาทั้งหมด","news":"ข่าวสาร","news_details":"รายละเอียดข่าวสาร","news_updated_successfully":"อัพเดตรายละเอียดข่าวสารสําเร็จ","news_added_successfully":"เพิ่มรายละเอียดข่าวสารสําเร็จ","news_deleted_successfully":"ลบรายละเอียดข่าวสารสําเร็จ","news_create":"สร้างข่าวสาร","articles":"บทความ","edit_news":"แก้ไขข่าวสาร","delete_news":"ลบข่าวสาร","type_news":"ประเภทข่าวสาร","multiple_choice":"มีเพจย่อย","images":"รูปภาพ","select_type":"เลือกประเภท","select_content":"เลือกเนื้อหา","page_groups":"หน้าเพจกลุ่ม","create_page_group":"สร้างกลุ่ม/เพจกลุ่ม","select_page":"เลือกหน้าเพจ","interested_course":"สนใจคอร์ส","interested":"สนใจ","interested_in_course":"คุณสนใจคอร์สนี้แล้ว","create_form":"สร้างฟอร์ม","edit_form":"แก้ไขฟอร์ม","form":"ฟอร์ม","no_data":"ไม่มีข้อมูล","label":"หัวข้อ","type":"ประเภท","required":"จําเป็น","placeholder":"คำแนะนํา","text":"Text","textarea":"Textarea","number":"Number","checkbox":"Checkbox","add_checkbox":"เพิ่ม Checkbox","remove_checkbox":"ลบ Checkbox","radio":"Radio","add_radio":"เพิ่ม Radio","remove_radio":"ลบ Radio","select":"ตัวเลือก","add_select":"เพิ่มตัวเลือก","remove_select":"ลบตัวเลือก","options":"ตัวเลือก","add_option":"เพิ่มตัวเลือก","remove_option":"ลบตัวเลือก","multiple":"เลือกได้หลายตัวเลือก","form_updated_successfully":"อัพเดตฟอร์มสําเร็จ","form_added_successfully":"เพิ่มฟอร์มสําเร็จ","imageEng":"รูปภาพ (ภาษาอังกฤษ)","imageTh":"รูปภาพ (ภาษาไทย)","button_color":"สีปุ่ม","button_text_color":"สีข้อความปุ่ม","button_text":"ข้อความปุ่ม","button_url":"URL ปุ่ม","button":"ปุ่ม","button_text_placeholder":"กรอกข้อความปุ่ม","button_url_placeholder":"กรอก URL ปุ่ม","button_color_placeholder":"กรอกสีปุ่ม เช่น #FF5733","shortDe
36scription":"คำอธิบายสั้น","shortDescription_placeholder":"กรอกคำอธิบายสั้น","Th":"ภาษาไทย","En":"ภาษาอังกฤษ","add_cart":"เพิ่มลงในตะกร้า","buy_now":"ซื้อเลย","payment":"การชำระเงิน","payment_success":"การชำระเงินสำเร็จ","payment_error":"เกิดข้อผิดพลาดในการชำระเงิน","payment_cancel":"การชำระเงินถูกยกเลิก","payment_pending":"การชำระเงินอยู่ระหว่างดำเนินการ","payment_complete":"การชำระเงินเสร็จสมบูรณ์","payment_processing":"การชำระเงินกำลังดำเนินการ","payment_declined":"การชำระเงินถูกปฏิเสธ","payment_failed":"การชำระเงินล้มเหลว","payment_cancelled":"การชำระเงินถูกยกเลิก","payment_refunded":"การชำระเงินคืน","payment_reversed":"การชำระเงินถูกย้อนกลับ","payment_charged":"การชำระเงินถูกเรียกเก็บ","payment_voided":"การชำระเงินถูกยกเลิก","updated":"อัพเดต","user_updated_successfully":"อัพเดตผู้ใช้สําเร็จ","user_updated_error":"เกิดข้อผิดพลาดในการอัพเดตผู้ใช้","address_placeholder":"กรอกที่อยู่","phone_placeholder":"กรอกหมายเลขโทรศัพท์","province":"จังหวัด","use_button":"ใช้ปุ่ม","history-order":"ประวัติการสั่งซื้อ","preview_course":"แสดงตัวอย่างคอร์ส","add_preview_course":"เพิ่มแสดงตัวอย่างคอร์ส","preview_url":"ลิงก์แสดงตัวอย่าง","preview_url_placeholder":"กรอกลิงก์แสดงตัวอย่าง","create_course_online":"สร้างคอร์สออนไลน์","edit_course_online":"แก้ไขคอร์สออนไลน์","privacy_updated_successfully":"อัพเดตนโยบายความเป็นส่วนตัวสําเร็จ","privacy_updated_error":"เกิดข้อผิดพลาดในการอัพเดตนโยบายความเป็นส่วนตัว","privacy":"นโยบายความเป็นส่วนตัว","privacy_desc":"นโยบายความเป็นส่วนตัว","privacy_placeholder":"กรอกนโยบายความเป็นส่วนตัว","terms_updated_successfully":"อัพเดตเงื่อนไขสําเร็จ","terms_updated_error":"เกิดข้อผิดพลาดในการอัพเดตเงื่อนไข","terms":"เงื่อนไข","terms_desc":"เงื่อนไขและเงื่อนไข","privacy-policy":"นโยบายความเป็นส่วนตัว","video":"วิดีโอ","video_management":"จัดการวิดีโอ","add_video":"เพิ่มวิดีโอ","remove_video":"ลบวิดีโอ","video_url":"ลิงก์วิดีโอ","video_url_placeholder":"กรอกลิงก์วิดีโอ","upload_video":"อัพโหลดวิดีโอ","title_placeholder":"กรอกหัวข้อ","no_video":"ไม่มีวิดีโอ"}')}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(86170),t(88440))),_N_E=e.O()}]);

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.