PageSourceSearch

https://www.caringbridge.org/_next/static/chunks/pages/_app-494e7e2e8699f2a3.js

js caringbridge.org collected 2026-10-01 09:08:57 UTC 897,561 bytes, 317 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{48711:function(e,t,r){"use strict";r.d(t,{Z:function(){return $}});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: 4,947 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,a=Object.assign;function s(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 d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,m=0,g=0,v=0,y="";function b(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:h,column:p,length:a,return:""}}function x(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function _(){return v=g<m?u(y,g++):0,p++,10===v&&(p=1,h++),v}function E(){return u(y,g)}function S(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 w(e){return h=p=1,m=d(y=e),g=0,[]}function k(e){var t,r;return(t=g-1,r=function e(t){for(;_();)switch(v){case t:return g;case 34:case 39:34!==t&&39!==t&&e(v);break;case 40:41===t&&e(t);break;case 92:_()}return g}(91===e?e+2:40===e?e+1:e),c(y,t,r)).trim()}var T="-ms-",I="-moz-",C="-webkit-",A="comm",O="rule",N="decl",P="@keyframes";function R(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function D(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case N:return e.return=e.return||e.value;case A:return"";case P:return e.return=e.value+"{"+R(e.children,n)+"}";case O:e.value=e.props.join(",")}return d(r=R(e.children,n))?e.return=e.value+"{"+r+"}":""}function L(e,t,r,n,o,a,l,u,d,f,h){for(var p=o-1,m=0===o?a:[""],g=m.length,v=0,y=0,x=0;v<n;++v)for(var _=0,E=c(e,p+1,p=i(y=l[v])),S=e;_<g;++_)(S=(y>0?m[_]+" "+E:s(E,/&\f/g,m[_])).trim())&&(d[x++]=S);return b(e,t,r,0===o?O:u,d,f,h)}function F(e,t,r,n){return b(e,t,r,N,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=E(),38===n&&12===i&&(t[r]=1),!S(i);)_();return c(y,e,g)},M=function(e,t){var r=-1,n=44;do switch(S(n)){case 0:38===n&&12===E()&&(t[r]=1),e[r]+=j(g-1,t,r);break;case 2:e[r]+=k(n);break;case 4:if(44===n){e[++r]=58===E()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=_());return e},B=function(e,t){var r;return r=M(w(e),t),y="",r},U=new WeakMap,q=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=B(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},V=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},z=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case N: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+I+t+T+t+t;case 6828:case 4268:return C+t+T+t+t;case 6165:return C+t+T+"flex-"+t+t;case 5187:return C+t+s(t,/(\w+).+(:[^]+)/,C+"box-$1$2"+T+"flex-$1$2")+t;case 5443:return C+t+T+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return C+t+T+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return C+t+T+s(t,"shrink","negative")+t;case 5292:return C+t+T+s(t,"basis","preferred-size")+t;case 6060:return C+"box-"+s(t,"-grow","")+C+t+T+s(t,"grow","positive")+t;case 4554:return C+s(t,/([^-])(transform)/g,"$1"+C+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+t+t;case 4095:case 3583:case 4068:case 2532:return s(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(d(t)-1-r>6)switch(u(t,r+1)){case 109:if(45!==u(t,r+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+I+(108==u(t,r+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==u(t,r+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+C)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+C+(45===u(t,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+T+"$2box$3")+t}break;case 5936:switch(u(t,r+11)){case 114:return C+t+T+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
1case 108:return C+t+T+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return C+t+T+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return C+t+T+t+t}return t}(e.value,e.length);break;case P:return R([x(e,{value:s(e.value,"@","@"+C)})],n);case O: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 R([x(e,{props:[s(t,/:(read-\w+)/,":"+I+"$1")]})],n);case"::placeholder":return R([x(e,{props:[s(t,/:(plac\w+)/,":"+C+"input-$1")]}),x(e,{props:[s(t,/:(plac\w+)/,":"+I+"$1")]}),x(e,{props:[s(t,/:(plac\w+)/,T+"input-$1")]})],n)}return""},i.map(o).join("")}}}],$=function(e){var t,r,i,a,m,x,T=e.key;if("css"===T){var I=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(I,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var C=e.stylisPlugins||z,O={},N=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+T+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)O[t[r]]=!0;N.push(e)});var P=(r=(t=[q,V].concat(C,[D,(i=function(e){x.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,n,i,o){for(var a="",s=0;s<r;s++)a+=t[s](e,n,i,o)||"";return a}),j=function(e){var t,r;return R((r=function e(t,r,n,i,a,m,x,w,T){for(var I,C=0,O=0,N=x,P=0,R=0,D=0,j=1,M=1,B=1,U=0,q="",V=a,z=m,$=i,G=q;M;)switch(D=U,U=_()){case 40:if(108!=D&&58==u(G,N-1)){-1!=l(G+=s(k(U),"&","&\f"),"&\f")&&(B=-1);break}case 34:case 39:case 91:G+=k(U);break;case 9:case 10:case 13:case 32:G+=function(e){for(;v=E();)if(v<33)_();else break;return S(e)>2||S(v)>3?"":" "}(D);break;case 92:G+=function(e,t){for(var r;--t&&_()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return r=g+(t<6&&32==E()&&32==_()),c(y,e,r)}(g-1,7);continue;case 47:switch(E()){case 42:case 47:f(b(I=function(e,t){for(;_();)if(e+v===57)break;else if(e+v===84&&47===E())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:_())}(_(),g),r,n,A,o(v),c(I,2,-2),0),T);break;default:G+="/"}break;case 123*j:w[C++]=d(G)*B;case 125*j:case 59:case 0:switch(U){case 0:case 125:M=0;case 59+O:-1==B&&(G=s(G,/\f/g,"")),R>0&&d(G)-N&&f(R>32?F(G+";",i,n,N-1):F(s(G," ","")+";",i,n,N-2),T);break;case 59:G+=";";default:if(f($=L(G,r,n,C,O,a,w,q,V=[],z=[],N),m),123===U){if(0===O)e(G,r,$,$,V,m,N,w,z);else switch(99===P&&110===u(G,3)?100:P){case 100:case 108:case 109:case 115:e(t,$,$,i&&f(L(t,$,$,0,0,a,w,q,a,V=[],N),z),a,z,N,w,i?V:z);break;default:e(G,$,$,$,[""],z,0,w,z)}}}C=O=R=0,j=B=1,q=G="",N=x;break;case 58:N=1+d(G),R=D;default:if(j<1){if(123==U)--j;else if(125==U&&0==j++&&125==(v=g>0?u(y,--g):0,p--,10===v&&(p=1,h--),v))continue}switch(G+=o(U),U*j){case 38:B=O>0?1:(G+="\f",-1);break;case 44:w[C++]=(d(G)-1)*B,B=1;break;case 64:45===E()&&(G+=k(_())),P=E(),O=N=d(q=G+=function(e){for(;!S(E());)_();return c(y,e,g)}(g)),U++;break;case 45:45===D&&2==d(G)&&(j=0)}}return m}("",null,null,null,[""],t=w(t=e),0,[0],t),y="",r),P)};m=function(e,t,r,n){x=r,j(e?e+"{"+t.styles+"}":t.styles),n&&(M.inserted[t.name]=!0)};var M={key:T,sheet:new n({key:T,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:O,registered:{},insert:m};return M.sheet.hydrate(N),M}},66292:function(e,t,r){"use strict";function n(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))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((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)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}r.d(t,{Z:function(){return n}})},45042:function(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,{Z:function(){return n}})},11802:function(e,t,r){"use strict";r.d(t,{T:function(){return c},a:function(){return f},i:function(){return s},w:function(){return u}});var n=r(67294),i=r(48711),o=r(87462),a=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};r(53604),r(27278);var s=!0,l=n.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);l.Provider;var u=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(l),r)})};s||(u=function(e){return function(t){var r=(0,n.useContext)(l);return null===r?(r=(0,i.Z)({key:"css"}),n.createElement(l.Provider,{value:r},e(t,r))):e(t,r)}});var c=n.createContext({}),d=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),f=function(e){var t=n.useContext(c);return e.theme!==t&&(t=d(t)(e.theme)),n.createElement(c.Provider,{value:t},e.children)}},70917:function(e,t,r){"use strict";r.d(t,{F4:function(){return c},xB:function(){return l}});var n=r(11802),i=r(67294),o=r(70444),a=r(27278),s=r(53604);r(48711),r(8679);var l=(0,n.w)(function(e,t){var r=e.styles,l=(0,s.O)([r],void 0,i.useContext(n.T));if(!n.i){for(var u,c=l.name,d=l.styles,f=l.next;void 0!==f;)c+=" "+f.name,d+=f.styles,f=f.next;var h=!0===t.compat,p=t.insert("",{name:c,styles:d},t.sheet,h);return h?null:i.createElement("style",((u={})["data-emotion"]=t.key+"-global "+c,u.dangerouslySetInnerHTML={__html:p},u.nonce=t.sheet.nonce,u))}var m=i.useRef();return(0,a.j)(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])),m.current=[r,n],function(){r.flush()}},[t]),(0,a.j)(function(){var e=m.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.My)(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 u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.O)(t)}var c=function(){var e=u.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_"}}}},53604:function(e,t,r){"use strict";r.d(t,{O:function(){return m}});var n,i=r(66292),o={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},a=r(45042),s=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},d=(0,a.Z)(function(e){return u(e)?e:e.replace(s,"-$&").toLowerCase()}),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===o[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function h(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+=h(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":c(a)&&(n+=d(o)+":"+f(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)c(a[s])&&(n+=d(o)+":"+f(o,a[s])+";");else{var l=h(e,t,a);switch(o){case"animation":case"animationName":n+=d(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,a=r(e);return n=o,h(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var p=/label:\s*([^\s;{]+)\s*(;|$)/g;function m(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o,a=!0,s="";n=void 0;var l=e[0];null==l||void 0===l.raw?(a=!1,s+=h(r,t,l)):s+=l[0];for(var u=1;u<e.length;u++)s+=h(r,t,e[u]),a&&(s+=l[u]);p.lastIndex=0;for(var c="";null!==(o=p.exec(s));)c+="-"+o[1];return{name:(0,i.Z)(s)+c,styles:s,next:n}}},27278:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return s}});var n,i=r(67294),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},70444:function(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,{My:function(){return o},fp:function(){return n},hC:function(){return i}});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)}}},95551:function(e,t,r){"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){var t=n(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("undefined"==typeof ShadowRoot)return!1;var t=n(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}r.d(t,{fi:function(){return eu}});var s,l,u,c,d,f=Math.max,h=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 v(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var a=e.getBoundingClientRect(),s=1,l=1;t&&o(e)&&(s=e.offsetWidth>0&&p(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&p(a.height)/e.offsetHeight||1);var u=(i(e)?n(e):window).visualViewport,c=!g()&&r,d=(a.left+(c&&u?u.offsetLeft:0))/s,f=(a.top+(c&&u?u.offsetTop:0))/l,h=a.width/s,m=a.height/l;return{width:h,height:m,top:f,right:d+h,bottom:f+m,left:d,x:d,y:f}}function y(e){var t=n(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function b(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function _(e){return v(x(e)).left+y(e).scrollLeft}function E(e){return n(e).getComputedStyle(e)}function S(e){var t=E(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function w(e){var t=v(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 k(e){return"html"===b(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||x(e)}function T(e,t){void 0===t&&(t=[]);var r,i=function e(t){return["html","body","#document"].indexOf(b(t))>=0?t.ownerDocument.body:o(t)&&S(t)?t:e(k(t))}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),s=n(i),l=a?[s].concat(s.visualVie
vendor: 13,444 bytes, line 1
1wport||[],S(i)?i:[]):i,u=t.concat(l);return a?u:u.concat(T(k(l)))}function I(e){return o(e)&&"fixed"!==E(e).position?e.offsetParent:null}function C(e){for(var t=n(e),r=I(e);r&&["table","td","th"].indexOf(b(r))>=0&&"static"===E(r).position;)r=I(r);return r&&("html"===b(r)||"body"===b(r)&&"static"===E(r).position)?t:r||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&o(e)&&"fixed"===E(e).position)return null;var r=k(e);for(a(r)&&(r=r.host);o(r)&&0>["html","body"].indexOf(b(r));){var n=E(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 A="bottom",O="right",N="left",P="auto",R=["top",A,O,N],D="start",L="viewport",F="popper",j=R.reduce(function(e,t){return e.concat([t+"-"+D,t+"-end"])},[]),M=[].concat(R,[P]).reduce(function(e,t){return e.concat([t,t+"-"+D,t+"-end"])},[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],U={placement:"bottom",modifiers:[],strategy:"absolute"};function q(){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 V={passive:!0};function z(e){return e.split("-")[0]}function $(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function W(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?z(i):null,a=i?$(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case"top":t={x:s,y:r.y-n.height};break;case A:t={x:s,y:r.y+r.height};break;case O:t={x:r.x+r.width,y:l};break;case N:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=o?G(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case D: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 H={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var t,r,i,o,a,s,l,u=e.popper,c=e.popperRect,d=e.placement,f=e.variation,h=e.offsets,m=e.position,g=e.gpuAcceleration,v=e.adaptive,y=e.roundOffsets,b=e.isFixed,_=h.x,S=void 0===_?0:_,w=h.y,k=void 0===w?0:w,T="function"==typeof y?y({x:S,y:k}):{x:S,y:k};S=T.x,k=T.y;var I=h.hasOwnProperty("x"),P=h.hasOwnProperty("y"),R=N,D="top",L=window;if(v){var F=C(u),j="clientHeight",M="clientWidth";F===n(u)&&"static"!==E(F=x(u)).position&&"absolute"===m&&(j="scrollHeight",M="scrollWidth"),("top"===d||(d===N||d===O)&&"end"===f)&&(D=A,k-=(b&&F===L&&L.visualViewport?L.visualViewport.height:F[j])-c.height,k*=g?1:-1),(d===N||("top"===d||d===A)&&"end"===f)&&(R=O,S-=(b&&F===L&&L.visualViewport?L.visualViewport.width:F[M])-c.width,S*=g?1:-1)}var B=Object.assign({position:m},v&&H),U=!0===y?(t={x:S,y:k},r=n(u),i=t.x,o=t.y,{x:p(i*(a=r.devicePixelRatio||1))/a||0,y:p(o*a)/a||0}):{x:S,y:k};return(S=U.x,k=U.y,g)?Object.assign({},B,((l={})[D]=P?"0":"",l[R]=I?"0":"",l.transform=1>=(L.devicePixelRatio||1)?"translate("+S+"px, "+k+"px)":"translate3d("+S+"px, "+k+"px, 0)",l)):Object.assign({},B,((s={})[D]=P?k+"px":"",s[R]=I?S+"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 K={start:"end",end:"start"};function Z(e){return e.replace(/start|end/g,function(e){return K[e]})}function J(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&a(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 o,a,s,l,u,c,d,h,p,m;return t===L?ee(function(e,t){var r=n(e),i=x(e),o=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var c=g();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+_(e),y:u}}(e,r)):i(t)?((o=v(t,!1,"fixed"===r)).top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o):ee((a=x(e),l=x(a),u=y(a),c=null==(s=a.ownerDocument)?void 0:s.body,d=f(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=f(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),p=-u.scrollLeft+_(a),m=-u.scrollTop,"rtl"===E(c||l).direction&&(p+=f(l.clientWidth,c?c.clientWidth:0)-d),{width:d,height:h,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,a,s,l,u,c,d,p=t,m=p.placement,g=void 0===m?e.placement:m,y=p.strategy,_=void 0===y?e.strategy:y,S=p.boundary,w=p.rootBoundary,I=p.elementContext,N=void 0===I?F:I,P=p.altBoundary,D=p.padding,j=void 0===D?0:D,M=en("number"!=typeof j?j:ei(j,R)),B=e.rects.popper,U=e.elements[void 0!==P&&P?N===F?"reference":F:N],q=(r=i(U)?U:U.contextElement||x(e.elements.popper),n=void 0===S?"clippingParents":S,a=void 0===w?L:w,c=(u=[].concat("clippingParents"===n?(s=T(k(r)),i(l=["absolute","fixed"].indexOf(E(r).position)>=0&&o(r)?C(r):r)?s.filter(function(e){return i(e)&&J(e,l)&&"body"!==b(e)}):[]):[].concat(n),[a]))[0],(d=u.reduce(function(e,t){var n=et(r,t,_);return e.top=f(n.top,e.top),e.right=h(n.right,e.right),e.bottom=h(n.bottom,e.bottom),e.left=f(n.left,e.left),e},et(r,c,_))).width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d),V=v(e.elements.reference),z=W({reference:V,element:B,strategy:"absolute",placement:g}),$=ee(Object.assign({},B,z)),G=N===F?$:V,H={top:q.top-G.top+M.top,bottom:G.bottom-q.bottom+M.bottom,left:q.left-G.left+M.left,right:G.right-q.right+M.right},Q=e.modifiersData.offset;if(N===F&&Q){var Y=Q[g];Object.keys(H).forEach(function(e){var t=[O,A].indexOf(e)>=0?1:-1,r=["top",A].indexOf(e)>=0?"y":"x";H[e]+=Y[r]*t})}return H}function ea(e,t,r){return f(e,h(t,r))}function es(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",O,A,N].some(function(t){return e[t]>=0})}var eu=(u=void 0===(l=(s={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,l=void 0===s||s,u=n(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",r.update,V)}),l&&u.addEventListener("resize",r.update,V),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",r.update,V)}),l&&u.removeEventListener("resize",r.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=W({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,a=void 0===o||o,s={placement:z(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,Q(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),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];o(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]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});o(n)&&b(n)&&(Object.assign(n.style,a),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,a=M.reduce(function(e,r){var n,i,a,s,l,u;return e[r]=(n=t.rects,a=[N,"top"].indexOf(i=z(r))>=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},n,{placement:r})):o)[0],u=s[1],l=l||0,u=(u||0)*a,[N,O].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}},{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,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,p=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,v=z(g)===g,y=l||(v||!p?[X(g)]:function(e){if(z(e)===P)return[];var t=X(e);return[Z(e),t,Z(t)]}(g)),b=[g].concat(y).reduce(function(e,r){var n,i,o,a,s,l,f,h,g,v,y,b;return e.concat(z(r)===P?(i=(n={placement:r,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,h=void 0===(f=n.allowedAutoPlacements)?M:f,0===(y=(v=(g=$(i))?l?j:j.filter(function(e){return $(e)===g}):R).filter(function(e){return h.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,r){return e[r]=eo(t,{placement:r,boundary:o,rootBoundary:a,padding:s})[z(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),x=t.rects.reference,_=t.rects.popper,E=new Map,S=!0,w=b[0],k=0;k<b.length;k++){var T=b[k],I=z(T),C=$(T)===D,L=["top",A].indexOf(I)>=0,F=L?"width":"height",B=eo(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),U=L?C?O:N:C?A:"top";x[F]>_[F]&&(U=X(U));var q=X(U),V=[];if(o&&V.push(B[I]<=0),s&&V.push(B[U]<=0,B[q]<=0),V.every(function(e){return e})){w=T,S=!1;break}E.set(T,V)}if(S)for(var G=p?3:1,W=function(e){var t=b.find(function(t){var r=E.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return w=t,"break"},H=G;H>0&&"break"!==W(H);H--);t.placement!==w&&(t.modifiersData[n]._skip=!0,t.placement=w,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,a=r.boundary,s=r.rootBoundary,l=r.altBoundary,u=r.padding,c=r.tether,d=void 0===c||c,p=r.tetherOffset,m=void 0===p?0:p,g=eo(t,{boundary:a,rootBoundary:s,padding:u,altBoundary:l}),v=z(t.placement),y=$(t.placement),b=!y,x=G(v),_="x"===x?"y":"x",E=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,I="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(E){if(void 0===i||i){var L,F="y"===x?"top":N,j="y"===x?A:O,M="y"===x?"height":"width",B=E[x],U=B+g[F],q=B-g[j],V=d?-k[M]/2:0,W=y===D?S[M]:k[M],H=y===D?-k[M]:-S[M],Q=t.elements.arrow,Y=d&&Q?w(Q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:er(),K=X[F],Z=X[j],J=ea(0,S[M],Y[M]),ee=b?S[M]/2-V-J-K-I.mainAxis:W-J-K-I.mainAxis,et=b?-S[M]/2+V+J+Z+I.mainAxis:H+J+Z+I.mainAxis,en=t.elements.arrow&&C(t.elements.arrow),ei=en?"y"===x?en.clientTop||0:en.clientLeft||0:0,es=null!=(L=null==P?void 0:P[x])?L:0,el=ea(d?h(U,B+ee-es-ei):U,B,d?f(q,B+et-es):q);E[x]=el,R[x]=el-B}if(void 0!==o&&o){var eu,ec,ed="x"===x?"top":N,ef="x"===x?A:O,eh=E[_],ep="y"===_?"height":"width",em=eh+g[ed],eg=eh-g[ef],ev=-1!==["top",N].indexOf(v),ey=null!=(ec=null==P?void 0:P[_])?ec:0,eb=ev?em:eh-S[ep]-k[ep]-ey+I.altAxis,ex=ev?eh+S[ep]+k[ep]-ey-I.altAxis:eg,e_=d&&ev?(eu=ea(eb,eh,ex))>ex?ex:eu:ea(d?eb:em,eh,d?ex:eg);E[_]=e_,R[_]=e_-eh}t.modifiersData[n]=R}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,i=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=z(n.placement),u=G(l),c=[N,O].indexOf(l)>=0?"height":"width";if(a&&s){var d=en("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:ei(t,R)),f=w(a),h="y"===u?"top":N,p="y"===u?A:O,m=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],g=s[u]-n.rects.reference[u],v=C(a),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=d[h],x=y-f[c]-d[p],_=y/2-f[c]/2+(m/2-g/2),E=ea(b,_,x);n.modifiersData[i]=((r={})[u]=E,r.centerOffset=E-_,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,a=eo(t,{elementContext:"reference"}),s=eo(t,{altBoundary:!0}),l=es(a,n),u=es(s,i,o),c=el(l),d=el(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:l,d=void 0===(c=s.defaultOptions)?U:c,function(e,t,r){void 0===r&&(r=d);var a,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,d),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],f=!1,h={state:l,setOptions:function(r){var n,o,a,s,f,p="function"==typeof r?r(l.options):r;m(),l.options=Object.assign({},d,l.options,p),l.scrollParents={reference:i(e)?T(e):e.contextElement?T(e.contextElement):[],popper:T(t)};var g=(o=Object.keys(n=[].concat(u,l.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 n[e]}),a=new Map,s=new Set,f=[],o.forEach(function(e){a.set(e.name,e)}),o.forEach(function(e){s.has(e.name)||function e(t){s.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!s.has(t)){var r=a.get(t);r&&e(r)}}),f.push(t)}(e)}),B.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return l.orderedModifiers=g.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var i=n({state:l,name:t,instance:h,options:void 0===r?{}:r});c.push(i||function(){})}}),h.update()},forceUpdate:function(){if(!f){var e,t,r,i,a,s,u,c,d,m,g,E,k=l.elements,T=k.reference,I=k.popper;if(q(T,I)){l.rects={reference:(t=C(I),r="fixed"===l.options.strategy,i=o(t),c=o(t)&&(s=p((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,u=p(a.height)/t.offsetHeight||1,1!==s||1!==u),d=x(t),m=v(T,c,r),g={scrollLeft:0,scrollTop:0},E={x:0,y:0},(i||!i&&!r)&&(("body"!==b(t)||S(d))&&(g=(e=t)!==n(e)&&o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:y(e)),o(t)?(E=v(t,!0),E.x+=t.clientLeft,E.y+=t.clientTop):d&&(E.x=_(d))),{x:m.left+g.scrollLeft-E.x,y:m.top+g.scrollTop-E.y,width:m.width,height:m.height}),popper:w(I)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var A=0;A<l.orderedModifiers.length;A++){if(!0===l.reset){l.reset=!1,A=-1;continue}var O=l.orderedModifiers[A],N=O.fn,P=O.options,R=void 0===P?{}:P,D=O.name;"function"==typeof N&&(l=N({state:l,options:R,name:D,instance:h})||l)}}}},update:(a=function(){return new Promise(function(e){h.forceUpdate(),e(l)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(a())})})),s}),destroy:function(){m(),f=!0}};if(!q(e,t))return h;function m(){c.forEach(function(e){return e()}),c=[]}return h.setOptions(r).then(function(e){!f&&r.onFirstUpdate&&r.onFirstUpdate(e)}),h})},657:function(e,t,r){"use strict";r.d(t,{B:function(){return s}});var n=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=n),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return o.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(a.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}()},94184:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0!==(r=(function(){return i}).apply(t,[]))&&(e.exports=r)}()},31905:function(){var e;e="undefined"!=typeof self?self:this,function(t){var r="undefined"!=typeof globalThis&&globalThis||void 0!==e&&e||void 0!==r&&r,n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
1]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function f(e){var t=new FileReader,r=d(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(f)}),this.text=function(){var e,t,r,n=c(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=d(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=a(e),t=s(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},u.prototype.delete=function(e){delete this.map[a(e)]},u.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},u.prototype.set=function(e,t){this.map[a(e)]=s(t)},u.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),l(e)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){if(!(this instanceof g))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var r,n,i=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function y(e,t){if(!(this instanceof y))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},p.call(g.prototype),p.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,i){return new Promise(function(o,a){var l=new g(e,i);if(l.signal&&l.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}c.onload=function(){var e,t,r={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var n="response"in c?c.response:c.responseText;setTimeout(function(){o(new y(n,r))},0)},c.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},c.onabort=function(){setTimeout(function(){a(new t.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(n.blob?c.responseType="blob":n.arrayBuffer&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof u?l.headers.forEach(function(e,t){c.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){c.setRequestHeader(e,s(i.headers[e]))}),l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}x.polyfill=!0,r.fetch||(r.fetch=x,r.Headers=u,r.Request=g,r.Response=y),t.Headers=u,t.Request=g,t.Response=y,t.fetch=x}({})},9996:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var u,c,d=Array.isArray(r);return d!==Array.isArray(e)?n(r,l):d?l.arrayMerge(e,r,l):(c={},(u=l).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=n(e[t],u)}),o(r).forEach(function(t){(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&u.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return s;var r=t.customMerge(e);return"function"==typeof r?r:s})(t,u)(e[t],r[t],u):c[t]=n(r[t],u))}),c)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})},e.exports=s},17283:function(e,t,r){"use strict";r.d(t,{Ps:function(){return B}});var n,i,o,a,s,l=r(97582);let u=/\r\n|[\n\r]/g;function c(e,t){let r=0,n=1;for(let i of e.body.matchAll(u)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function d(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,l=t.column+s,u=`${e.name}:${a}:${l}
2`,c=n.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return u+f([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+f([[`${a-1} |`,c[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function f(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}
2class h extends Error{constructor(e,...t){var r,n,i,o;let{nodes:a,source:s,positions:l,path:u,originalError:d,extensions:f}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=d?d:void 0,this.nodes=p(Array.isArray(a)?a:a?[a]:void 0);let m=p(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==m?void 0:null===(n=m[0])||void 0===n?void 0:n.source,this.positions=null!=l?l:null==m?void 0:m.map(e=>e.start),this.locations=l&&s?l.map(e=>c(s,e)):null==m?void 0:m.map(e=>c(e.source,e.start));let g="object"==typeof(o=null==d?void 0:d.extensions)&&null!==o?null==d?void 0:d.extensions:void 0;this.extensions=null!==(i=null!=f?f:g)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,h):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let r of this.nodes)if(r.loc){var t;e+="\n\n"+d((t=r.loc).source,c(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function p(e){return void 0===e||0===e.length?void 0:e}function m(e,t,r){return new h(`Syntax Error: ${r}`,{source:e,positions:[t]})}var g=r(72380);(n=a||(a={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",n.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION";var v=r(97359),y=r(87392),b=r(68297);(i=s||(s={})).SOF="<SOF>",i.EOF="<EOF>",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment";class x{constructor(e){let t=new g.WU(s.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,i=t;for(;i<n;){let t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if(10===e||13===e)break;if(_(e))++i;else if(E(r,i))i+=2;else break}return T(e,s.COMMENT,t,i,r.slice(t+1,i))}(e,i);case 33:return T(e,s.BANG,i,i+1);case 36:return T(e,s.DOLLAR,i,i+1);case 38:return T(e,s.AMP,i,i+1);case 40:return T(e,s.PAREN_L,i,i+1);case 41:return T(e,s.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return T(e,s.SPREAD,i,i+3);break;case 58:return T(e,s.COLON,i,i+1);case 61:return T(e,s.EQUALS,i,i+1);case 64:return T(e,s.AT,i,i+1);case 91:return T(e,s.BRACKET_L,i,i+1);case 93:return T(e,s.BRACKET_R,i,i+1);case 123:return T(e,s.BRACE_L,i,i+1);case 124:return T(e,s.PIPE,i,i+1);case 125:return T(e,s.BRACE_R,i,i+1);case 34:if(34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2))return function(e,t){let r=e.source.body,n=r.length,i=e.lineStart,o=t+3,a=o,l="",u=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){l+=r.slice(a,o),u.push(l);let n=T(e,s.BLOCK_STRING,t,o+3,(0,y.wv)(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){l+=r.slice(a,o),a=o+1,o+=4;continue}if(10===n||13===n){l+=r.slice(a,o),u.push(l),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,l="",a=o,i=o;continue}if(_(n))++o;else if(E(r,o))o+=2;else throw m(e.source,o,`Invalid character within String: ${k(e,o)}.`)}throw m(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let r=e.source.body,n=r.length,i=t+1,o=i,a="";for(;i<n;){let n=r.charCodeAt(i);if(34===n)return a+=r.slice(o,i),T(e,s.STRING,t,i+1,a);if(92===n){a+=r.slice(o,i);let t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!_(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|A(e))<0)break}throw m(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,i):function(e,t){let r=e.source.body,n=C(r,t+2);if(_(n))return{value:String.fromCodePoint(n),size:6};if(S(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=C(r,t+8);
2if(w(e))return{value:String.fromCodePoint(n,e),size:12}}throw m(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,i):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw m(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===n||13===n)break;if(_(n))++i;else if(E(r,i))i+=2;else throw m(e.source,i,`Invalid character within String: ${k(e,i)}.`)}throw m(e.source,i,"Unterminated string.")}(e,i)}if((0,b.X1)(t)||45===t)return function(e,t,r){let n=e.source.body,i=t,o=r,a=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),(0,b.X1)(o))throw m(e.source,i,`Invalid number, unexpected digit after 0: ${k(e,i)}.`)}else i=I(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=I(e,i,o),o=n.charCodeAt(i)),(69===o||101===o)&&(a=!0,(43===(o=n.charCodeAt(++i))||45===o)&&(o=n.charCodeAt(++i)),i=I(e,i,o),o=n.charCodeAt(i)),46===o||(0,b.LQ)(o))throw m(e.source,i,`Invalid number, expected digit but got: ${k(e,i)}.`);return T(e,a?s.FLOAT:s.INT,t,i,n.slice(t,i))}(e,i,t);if((0,b.LQ)(t))return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if((0,b.HQ)(e))++i;else break}return T(e,s.NAME,t,i,r.slice(t,i))}(e,i);throw m(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":_(t)||E(r,i)?`Unexpected character: ${k(e,i)}.`:`Invalid character: ${k(e,i)}.`)}return T(e,s.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===s.COMMENT);return e}}function _(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return S(e.charCodeAt(t))&&w(e.charCodeAt(t+1))}function S(e){return e>=55296&&e<=56319}function w(e){return e>=56320&&e<=57343}function k(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return s.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function T(e,t,r,n,i){let o=e.line,a=1+r-e.lineStart;return new g.WU(t,r,n,o,a,i)}function I(e,t,r){if(!(0,b.X1)(r))throw m(e.source,t,`Invalid number, expected digit but got: ${k(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,b.X1)(n.charCodeAt(i));)++i;return i}function C(e,t){return A(e.charCodeAt(t))<<12|A(e.charCodeAt(t+1))<<8|A(e.charCodeAt(t+2))<<4|A(e.charCodeAt(t+3))}function A(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var O=r(51270);class N{constructor(e,t={}){let{lexer:r,...n}=t;if(r)this._lexer=r;else{let t=(0,O.T)(e)?e:new O.H(e);this._lexer=new x(t)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(s.NAME);return this.node(e,{kind:v.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:v.h.DOCUMENT,definitions:this.many(s.SOF,this.parseDefinition,s.EOF)})}parseDefinition(){if(this.peek(s.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===s.BRACE_L)throw m(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===s.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw m(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
2ort descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(s.BRACE_L))return this.node(t,{kind:v.h.OPERATION_DEFINITION,operation:g.ku.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),n=this.parseOperationType();return this.peek(s.NAME)&&(e=this.parseName()),this.node(t,{kind:v.h.OPERATION_DEFINITION,operation:n,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(s.NAME);switch(e.value){case"query":return g.ku.QUERY;case"mutation":return g.ku.MUTATION;case"subscription":return g.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(s.PAREN_L,this.parseVariableDefinition,s.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:v.h.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(s.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(s.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(s.DOLLAR),this.node(e,{kind:v.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:v.h.SELECTION_SET,selections:this.many(s.BRACE_L,this.parseSelection,s.BRACE_R)})}parseSelection(){return this.peek(s.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(s.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:v.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(s.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(s.PAREN_L,t,s.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(s.COLON),this.node(t,{kind:v.h.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(s.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(s.NAME)?this.node(e,{kind:v.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:v.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:v.h.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:v.h.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case s.BRACKET_L:return this.parseList(e);case s.BRACE_L:return this.parseObject(e);case s.INT:return this.advanceLexer(),this.node(t,{kind:v.h.INT,value:t.value});case s.FLOAT:return this.advanceLexer(),this.node(t,{kind:v.h.FLOAT,value:t.value});case s.STRING:case s.BLOCK_STRING:return this.parseStringLiteral();case s.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:v.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:v.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:v.h.NULL});default:return this.node(t,{kind:v.h.ENUM,value:t.value})}case s.DOLLAR:if(e){if(this.expectToken(s.DOLLAR),this._lexer.token.kind===s.NAME){let e=this._lexer.token.value;throw m(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:v.h.STRING,value:e.value,block:e.kind===s.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:v.h.LIST,values:this.any(s.BRACKET_L,()=>this.parseValueLiteral(e),s.BRACKET_R)})}
2parseObject(e){return this.node(this._lexer.token,{kind:v.h.OBJECT,fields:this.any(s.BRACE_L,()=>this.parseObjectField(e),s.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(s.COLON),this.node(t,{kind:v.h.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(s.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(s.AT),this.node(t,{kind:v.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(s.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(s.BRACKET_R),e=this.node(t,{kind:v.h.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(s.BANG)?this.node(t,{kind:v.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:v.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(s.STRING)||this.peek(s.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(s.BRACE_L,this.parseOperationTypeDefinition,s.BRACE_R);return this.node(e,{kind:v.h.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(s.COLON);let r=this.parseNamedType();return this.node(e,{kind:v.h.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:v.h.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:v.h.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(s.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(s.BRACE_L,this.parseFieldDefinition,s.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(s.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:v.h.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(s.PAREN_L,this.parseInputValueDef,s.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(s.COLON);let i=this.parseTypeReference();this.expectOptionalToken(s.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:v.h.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:v.h.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:v.h.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(s.EQUALS)?this.delimitedMany(s.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:v.h.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(s.BRACE_L,this.parseEnumValueDefinition,s.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:v.h.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw m(this._lexer.source,this._lexer.token.start,`${P(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:v.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(s.BRACE_L,this.parseInputValueDef,s.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===s.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(s.BRACE_L,this.parseOperationTypeDefinition,s.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:v.h.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:v.h.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();
2return this.node(e,{kind:v.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.h.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.h.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(s.AT);let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:v.h.DIRECTIVE_EXTENSION,name:t,directives:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(s.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:v.h.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,directives:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(s.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(a,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t;let r=this._lexer.token,n=this.expectOptionalToken(s.AT),i=this.parseName();return(!n&&this.expectOptionalToken(s.DOT)&&(e=this.parseName()),(n||e)&&this.expectOptionalToken(s.PAREN_L)&&(t=this.parseName(),this.expectToken(s.COLON),this.expectToken(s.PAREN_R)),n)?t?this.node(r,{kind:v.h.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(r,{kind:v.h.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(r,{kind:v.h.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(r,{kind:v.h.MEMBER_COORDINATE,name:i,memberName:e}):this.node(r,{kind:v.h.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new g.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw m(this._lexer.source,t.start,`Expected ${R(e)}, found ${P(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===s.NAME&&t.value===e)this.advanceLexer();else throw m(this._lexer.source,t.start,`Expected "${e}", found ${P(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===s.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return m(this._lexer.source,t.start,`Unexpected ${P(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==s.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw m(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function P(e){let t=e.value;return R(e.kind)+(null!=t?` "${t}"`:"")}function R(e){return e===s.BANG||e===s.DOLLAR||e===s.AMP||e===s.PAREN_L||e===s.PAREN_R||e===s.DOT||e===s.SPREAD||e===s.COLON||e===s.EQUALS||e===s.AT||e===s.BRACKET_L||e===s.BRACKET_R||e===s.BRACE_L||e===s.PIPE||e===s.BRACE_R?`"${e}"`:e}var D=new Map,L=new Map,F=!0,j=!1;function M(e){return e.replace(/[\s,]+/g," ").trim()}function B(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=M(e);if(!D.has(t)){var r,n,i,o,a,s=function(e,t){let r=new N(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}(e,{experimentalFragmentVariables:j,allowLegacyFragmentVariables:j});if(!s||"Document"!==s.kind)throw Error("Not a valid GraphQL document.");D.set(t,((o=new Set((r=new Set,n=[],s.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=M((t=e.loc).source.body.substring(t.start,t.end)),a=L.get(i);a&&!a.has(o)?F&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||L.set(i,a=new Set),a.add(o),r.has(o)||
2(r.add(o),n.push(e))}else n.push(e)}),i=(0,l.pi)((0,l.pi)({},s),{definitions:n})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&o.add(r)})}),(a=i.loc)&&(delete a.startToken,delete a.endToken),i))}return D.get(t)}(n)}var U=B;(o=B||(B={})).gql=U,o.resetCaches=function(){D.clear(),L.clear()},o.disableFragmentWarnings=function(){F=!1},o.enableExperimentalFragmentVariables=function(){j=!0},o.disableExperimentalFragmentVariables=function(){j=!1},B.default=B},8679:function(e,t,r){"use strict";var n=r(59864),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},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&!(n&&n[v])&&!(m&&m[v])&&!(s&&s[v])){var y=f(r,v);try{u(t,v,y)}catch(e){}}}}return t}},38554:function(e,t,r){e=r.nmd(e);var n,i,o,a,s,l,u,c,d,f,h,p="__lodash_hash_undefined__",m="[object Arguments]",g="[object Function]",v="[object Object]",y=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[m]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object Boolean]"]=x["[object DataView]"]=x["[object Date]"]=x["[object Error]"]=x[g]=x["[object Map]"]=x["[object Number]"]=x[v]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object WeakMap]"]=!1;var _="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,E="object"==typeof self&&self&&self.Object===Object&&self,S=_||E||Function("return this")(),w=t&&!t.nodeType&&t,k=w&&e&&!e.nodeType&&e,T=k&&k.exports===w,I=T&&_.process,C=function(){try{var e=k&&k.require&&k.require("util").types;if(e)return e;return I&&I.binding&&I.binding("util")}catch(e){}}(),A=C&&C.isTypedArray,O=Array.prototype,N=Function.prototype,P=Object.prototype,R=S["__core-js_shared__"],D=N.toString,L=P.hasOwnProperty,F=(u=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",j=P.toString,M=D.call(Object),B=RegExp("^"+D.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=T?S.Buffer:void 0,q=S.Symbol,V=S.Uint8Array,z=U?U.allocUnsafe:void 0,$=(c=Object.getPrototypeOf,d=Object,function(e){return c(d(e))}),G=Object.create,W=P.propertyIsEnumerable,H=O.splice,Q=q?q.toStringTag:void 0,Y=function(){try{var e=eh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),X=U?U.isBuffer:void 0,K=Math.max,Z=Date.now,J=eh(S,"Map"),ee=eh(Object,"create"),et=function(){function e(){}return function(t){if(!ek(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function en(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ei(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eo(e){var t=this.__data__=new en(e);this.size=t.size}function ea(e,t,r){(void 0===r||ey(e[t],r))&&(void 0!==r||t in e)||el(e,t,r)}function es(e,t){for(var r=e.length;r--;)if(ey(e[r][0],t))return r;return -1}function el(e,t,r){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}er.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},er.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},er.prototype.get=function(e){var t=this.__data__;if(ee){var r=t[e];return r===p?void 0:r}return L.call(t,e)?t[e]:void 0},er.prototype.has=function(e){var t=this.__data__;return ee?void 0!==t[e]:L.call(t,e)},er.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ee&&void 0===t?p:t,this},en.prototype.clear=function(){this.__data__=[],this.size=0},en.prototype.delete=function(e){var t=this.__data__,r=es(t,e);return!(r<0)&&(r==t.length-1?t.pop():H.call(t,r,1),--this.size,!0)},en.prototype.get=function(e){var t=this.__data__,r=es(t,e);return r<0?void 0:t[r][1]},en.prototype.has=function(e){return es(this.__data__,e)>-1},en.prototype.set=function(e,t){var r=this.__data__,n=es(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ei.prototype.clear=function(){this.size=0,this.__data__={hash:new er,map:new(J||en),string:new er}},ei.prototype.delete=function(e){var t=ef(this,e).delete(e);return this.size-=t?1:0,t},ei.prototype.get=function(e){return ef(this,e).get(e)},ei.prototype.has=function(e){return ef(this,e).has(e)},ei.prototype.set=function(e,t){var r=ef(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},eo.prototype.clear=function(){this.__data__=new en,this.size=0},eo.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},eo.prototype.get=function(e){return this.__data__.get(e)},eo.prototype.has=function(e){return this.__data__.has(e)},eo.prototype.set=function(e,t){var r=this.__data__;if(r instanceof en){var n=r.__data__;if(!J||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ei(n)}return r.set(e,t),this.size=r.size,this};var eu=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e};
2function ec(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Q&&Q in Object(e)?function(e){var t=L.call(e,Q),r=e[Q];try{e[Q]=void 0;var n=!0}catch(e){}var i=j.call(e);return n&&(t?e[Q]=r:delete e[Q]),i}(e):j.call(e)}function ed(e){return eT(e)&&ec(e)==m}function ef(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function eh(e,t){var r=null==e?void 0:e[t];return!(!ek(r)||F&&F in r)&&(eS(r)?B:y).test(function(e){if(null!=e){try{return D.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(r))?r:void 0}function ep(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&b.test(e))&&e>-1&&e%1==0&&e<t}function em(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||P)}function eg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ev=(n=Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eO,i=0,o=0,function(){var e=Z(),t=16-(e-o);if(o=e,t>0){if(++i>=800)return arguments[0]}else i=0;return n.apply(void 0,arguments)});function ey(e,t){return e===t||e!=e&&t!=t}var eb=ed(function(){return arguments}())?ed:function(e){return eT(e)&&L.call(e,"callee")&&!W.call(e,"callee")},ex=Array.isArray;function e_(e){return null!=e&&ew(e.length)&&!eS(e)}var eE=X||function(){return!1};function eS(e){if(!ek(e))return!1;var t=ec(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ew(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ek(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eT(e){return null!=e&&"object"==typeof e}var eI=A?function(e){return A(e)}:function(e){return eT(e)&&ew(e.length)&&!!x[ec(e)]};function eC(e){return e_(e)?function(e,t){var r=ex(e),n=!r&&eb(e),i=!r&&!n&&eE(e),o=!r&&!n&&!i&&eI(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var u in e)(t||L.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ep(u,l)))&&s.push(u);return s}(e,!0):function(e){if(!ek(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=em(e),r=[];for(var n in e)"constructor"==n&&(t||!L.call(e,n))||r.push(n);return r}(e)}var eA=(f=function(e,t,r,n){!function e(t,r,n,i,o){t!==r&&eu(r,function(a,s){if(o||(o=new eo),ek(a))(function(e,t,r,n,i,o,a){var s=eg(e,r),l=eg(t,r),u=a.get(l);if(u){ea(e,r,u);return}var c=o?o(s,l,r+"",e,t,a):void 0,d=void 0===c;if(d){var f,h,p,m=ex(l),g=!m&&eE(l),y=!m&&!g&&eI(l);c=l,m||g||y?ex(s)?c=s:eT(s)&&e_(s)?c=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):g?(d=!1,c=function(e,t){if(t)return e.slice();var r=e.length,n=z?z(r):new e.constructor(r);return e.copy(n),n}(l,!0)):y?(d=!1,new V(h=new(f=l.buffer).constructor(f.byteLength)).set(new V(f)),p=h,c=new l.constructor(p,l.byteOffset,l.length)):c=[]:function(e){if(!eT(e)||ec(e)!=v)return!1;var t=$(e);if(null===t)return!0;var r=L.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&D.call(r)==M}(l)||eb(l)?(c=s,eb(s)?c=function(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;void 0===l&&(l=e[s]),i?el(r,s,l):function(e,t,r){var n=e[t];L.call(e,t)&&ey(n,r)&&(void 0!==r||t in e)||el(e,t,r)}(r,s,l)}return r}(s,eC(s)):(!ek(s)||eS(s))&&(c="function"!=typeof l.constructor||em(l)?{}:et($(l)))):d=!1}d&&(a.set(l,c),i(c,l,n,o,a),a.delete(l)),ea(e,r,c)})(t,r,s,n,e,i,o);else{var l=i?i(eg(t,s),a,s+"",t,r,o):void 0;void 0===l&&(l=a),ea(t,s,l)}},eC)}(e,t,r,n)},ev((a=h=function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=f.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!ek(r))return!1;var n=typeof t;return("number"==n?!!(e_(r)&&ep(t,r.length)):"string"==n&&(t in r))&&ey(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&f(e,a,r,i)}return e},s=void 0,l=eO,s=K(void 0===s?a.length-1:s,0),function(){for(var e=arguments,t=-1,r=K(e.length-s,0),n=Array(r);++t<r;)n[t]=e[s+t];t=-1;for(var i=Array(s+1);++t<s;)i[t]=e[t];return i[s]=l(n),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(a,this,i)}),h+""));function eO(e){return e}e.exports=eA},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},91118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(91808)}])},28618:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(85893),i=r(40645),o=r.n(i),a=r(67294),s=r(45697),l=r.n(s),u=r(94184),c=r.n(u);function d(e){let{children:t,className:r="",isForModal:i=!1,isBordered:s=!1,onDismiss:l=null,...u}=e,[d,f]=(0,a.useState)("12px"),h=(0,a.useRef)();(0,a.useEffect)(()=>{let e;return(e=new ResizeObserver(e=>{for(let t of e)f(Math.round((Array.isArray(t.borderBoxSize)?t.borderBoxSize[0]:t.borderBoxSize).inlineSize/18)+"px")})).observe(h.current),()=>{e.disconnect()}});let p=c()(r,{forModal:i,isBordered:s}),m=l&&"function"==typeof l;return(0,n.jsxs)("section",{ref:h,...u,className:o().dynamic([["3c69ac8ac7955250",[d,d,d,d]]])+" "+(u&&null!=u.className&&u.className||p||""),children:[m&&(0,n.jsx)("i",{onClick:l,"data-qa":"cardDismiss",className:o().dynamic([["3c69ac8ac7955250",[d,d,d,d]]])+" fa-times fa-light fa-solid dismissIcon"}),t,(0,n.jsx)(o(),{id:"3c69ac8ac7955250",dynamic:[d,d,d,d],children:'section.__jsx-style-dynamic-selector{background-color:var(--component-bg);color:var(--body-text);-webkit-border-radius:var(--Base,6px);-moz-border-radius:var(--Base,6px);border-radius:var(--Base,6px)}.dismissIcon.__jsx-style-dynamic-selector{position:absolute;top:0;right:0;font-size:24px;padding:12px;cursor:pointer;color:var(--gray-500)}.forModal.__jsx-style-dynamic-selector{position:relative}.isBordered.__jsx-style-dynamic-selector{border:thin solid var(--component-border)}section.__jsx-style-dynamic-selector>*:first-child{margin-top:0}section.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0}section.__jsx-style-dynamic-selector:not(section[class*="paddingTopBottom"]){padding-top:clamp(6px, '.concat(d,", 48px);padding-bottom:clamp(6px, ").concat(d,', 48px)}section.__jsx-style-dynamic-selector:not(section[class*="paddingLeftRight"]){padding-left:clamp(6px, ').concat(d,", 48px);padding-right:clamp(6px, ").concat(d,', 48px)}section.__jsx-style-dynamic-selector:not(section[class*="isBordered"]){-webkit-box-shadow:var(--box-sha
2dow);-moz-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}')})]})}d.propTypes={children:l().node.isRequired,isForModal:l().bool,isBordered:l().bool,onDismiss:l().func,className:l().string}},60221:function(e,t,r){"use strict";r.d(t,{U:function(){return s}});var n=r(85893),i=r(67294),o=r(45697),a=r.n(o);function s(e){let{children:t,delayMs:r=1e3}=e,[o,a]=(0,i.useState)(!1),[s,l]=(0,i.useState)(r);return(!function(e,t,r){let n=(0,i.useRef)(()=>{}),[o,a]=(0,i.useState)(!1);(0,i.useEffect)(()=>{n.current=e},[e]),(0,i.useEffect)(()=>{if(t&&!o){let e=setTimeout(function(){n.current(),a(!1),r(null)},t);return a(!0),()=>clearTimeout(e)}!t&&o&&(r(null),a(!1))},[t])}(()=>{a(!0)},s,l),o)?(0,n.jsx)(n.Fragment,{children:t}):null}s.propTypes={children:a().node.isRequired,delayMs:a().number}},64091:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(85893),i=r(41664),o=r.n(i),a=r(4162);function s(){return(0,n.jsxs)(n.Fragment,{children:["Please try again or contact ",(0,n.jsx)(o(),{href:a.Z6.HELP,children:"Customer Care"}),"."]})}},37106:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(85893),i=r(64091),o=r(29579);function a(){return(0,n.jsxs)(o.Z,{children:["We’re sorry. There is a problem with our system. We’re unable to complete your request."," ",(0,n.jsx)(i.Z,{})]})}},29579:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(85893),i=r(40645),o=r.n(i),a=r(45697),s=r.n(a);function l(e){let{dataQa:t,children:r}=e;return r?(0,n.jsxs)("span",{"data-qa":t,className:"jsx-8854e48030540bba",children:[r,(0,n.jsx)(o(),{id:"8854e48030540bba",children:"span.jsx-8854e48030540bba{color:var(--color-error);font-size:16px}"})]}):null}l.propTypes={children:s().node,dataQa:s().string}},61922:function(e,t,r){"use strict";r.d(t,{MQ:function(){return p},PI:function(){return d},Q6:function(){return f},ZG:function(){return c},ZP:function(){return h},fD:function(){return u}});var n=r(85893),i=r(40645),o=r.n(i),a=r(45697),s=r.n(a),l=r(67294);let u=12,c=3,d=1056,f=120;function h(e){let{spotSize:t=u,spotCount:r=c,durationMs:i=d,swell:a=f,centerIn:s=null}=e,[h,p]=(0,l.useState)(""),m=Array(r).fill("");return(0,n.jsxs)("span",{"data-testid":"spinner",ref:()=>{p("mounted")},className:o().dynamic([["6996f743ba8bec4e",[r*t*2-1.5*t,t,i,t,t,r,i,i/r*1,i/r*2,i/r*3,a,a]]])+" "+"spinner ".concat(h," ").concat(s?"center-".concat(s):""),children:[m.map((e,s)=>(0,n.jsx)("span",{className:o().dynamic([["6996f743ba8bec4e",[r*t*2-1.5*t,t,i,t,t,r,i,i/r*1,i/r*2,i/r*3,a,a]]])+" "+"spot".concat(s)},s)),(0,n.jsx)(o(),{id:"6996f743ba8bec4e",dynamic:[r*t*2-1.5*t,t,i,t,t,r,i,i/r*1,i/r*2,i/r*3,a,a],children:".spinner.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:".concat(r*t*2-1.5*t,"px;height:").concat(t,"px;opacity:0}.spinner.mounted.__jsx-style-dynamic-selector{opacity:1;-webkit-transition:opacity ease-in ").concat(i,"ms;-moz-transition:opacity ease-in ").concat(i,"ms;-o-transition:opacity ease-in ").concat(i,"ms;transition:opacity ease-in ").concat(i,"ms}.spinner.__jsx-style-dynamic-selector>span.__jsx-style-dynamic-selector{display:inline-block;width:").concat(t,"px;height:").concat(t,"px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;background-color:var(--color-primary);-webkit-animation-name:color-pulse-").concat(r,";-moz-animation-name:color-pulse-").concat(r,";-o-animation-name:color-pulse-").concat(r,";animation-name:color-pulse-").concat(r,";-webkit-animation-duration:").concat(i,"ms;-moz-animation-duration:").concat(i,"ms;-o-animation-duration:").concat(i,"ms;animation-duration:").concat(i,"ms;-webkit-animation-direction:normal;-moz-animation-direction:normal;-o-animation-direction:normal;animation-direction:normal;-webkit-animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-o-animation-iteration-count:infinite;animation-iteration-count:infinite}.spinner.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:nth-child(1){-webkit-animation-delay:0;-moz-animation-delay:0;-o-animation-delay:0;animation-delay:0}.spinner.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:nth-child(2){-webkit-animation-delay:").concat(i/r*1,"ms;-moz-animation-delay:").concat(i/r*1,"ms;-o-animation-delay:").concat(i/r*1,"ms;animation-delay:").concat(i/r*1,"ms}.spinner.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:nth-child(3){-webkit-animation-delay:").concat(i/r*2,"ms;-moz-animation-delay:").concat(i/r*2,"ms;-o-animation-delay:").concat(i/r*2,"ms;animation-delay:").concat(i/r*2,"ms}.spinner.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:nth-child(4){-webkit-animation-delay:").concat(i/r*3,"ms;-moz-animation-delay:").concat(i/r*3,"ms;-o-animation-delay:").concat(i/r*3,"ms;animation-delay:").concat(i/r*3,"ms}.spinner.center-viewport.__jsx-style-dynamic-selector{position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:9999}.spinner.center-parent.__jsx-style-dynamic-selector{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}@-webkit-keyframes color-pulse-3{0%{background-color:var(--berry-bridge-200);scale:100%}33%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}66%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-moz-keyframes color-pulse-3{0%{background-color:var(--berry-bridge-200);scale:100%}33%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}66%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-o-keyframes color-pulse-3{0%{background-color:var(--berry-bridge-200);scale:100%}33%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}66%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@keyframes color-pulse-3{0%{background-color:var(--berry-bridge-200);scale:100%}33%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}66%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-webkit-keyframes color-pulse-4{0%{background-color:var(--berry-bridge-200);scale:100%}25%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}50%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-moz-keyframes color-pulse-4{0%{background-color:var(--berry-bridge-200);scale:100%}25%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}50%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-o-keyframes color-pulse-4{0%{background-color:var(--berry-bridge-200);scale:100%}25%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}50%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@keyframes color-pulse-4{0%{background-color:var(--berry-bridge-200);scale:100%}25%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}50%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}")})]})}h.propTypes={spotSize:s().number,spotCount:s().number,durationMs:s().number,swell:s().number,centerIn:s().oneOf(["viewport","parent"])};let p={VIEWPORT:"viewport",PARENT:"parent"}},22878:function(e,t,r){"use strict";r.d(t,{c:function(){return p}});var n=r(85893),i=r(40645),o=r.n(i),a=r(41420),s=r(45697),l=r.n(s),u=r(67294),c=r(94184),d=r.n(c),f=r(41664),h=r.n(f);let p={PRIMARY:"primary",SECONDARY:"secondary",ALTERNATIVE:"alternative",MODAL:"modal"},m=u.forwardRef(function(e,t){let{children:r,className:i="",disabled:s=!1,href:l=null,isReversed:u=!1,fullWidth:c=!1,wrapText:f=!1,size:m="",type:g="button",variant:v=p.PRIMARY,backgroundColor:y=null,textColor:b=null,...x}=e,_={button:!0,large:m===a.i.LARGE,small:m===a.i.SMALL,extraSmall:m===a.i.EXTRA_SMALL,mobile:m===a.i.MOBILE,wrapText:f,primary:v===p.PRIMARY,secondary:v===p.SECONDARY,alternative:v===p.ALTERNATIVE,reversed:u,fullWidth:c,hideOutlineForMouse:!0},{className:E,styles:S}={styles:(0,n.jsx)(o(),{id:"bbc8723b0062cfc9",children:".button.jsx-bbc8723b0062cfc9{border:transparent solid 1px;text-decoration:none;font-size:18px;font-weight:normal;-webkit-transition:all var(--speed-on-hover)linear,color var(--speed-on-hover)linear;-moz-transition:all var(--speed-on-hover)linear,color var(--speed-on-hover)linear;-o-transition:all var(--speed-on-hover)linear,color var(--speed-on-hover)linear;transition:all var(--speed-on-hover)linear,color var(--speed-on-hover)linear;-webkit-border-radius:var(--border-radius);-moz-border-radius:var(--border-radius);border-radius:var(--border-radius);padding:10px 16px;white-space:nowrap;cursor:pointer;line-height:initial}.button.jsx-bbc8723b0062cfc9:disabled{cursor:default;pointer-events:none}.extraSmall.jsx-bbc8723b0062cfc9{font-size:18px;padding:6px 12px}.mobile.jsx-bbc8723b0062cfc9{font-size:14px;padding:4px 6px}.mobile.jsx-bbc8723b0062cfc9{font-size:14px;padding:4px 6px}.small.jsx-bbc8723b0062cfc9{font-size:18px;padding:10px 16px}.large.jsx-bbc8723b0062cfc9{font-size:22px;padding:12px 20px}.fullWidth.jsx-bbc8723b0062cfc9{width:100%}.wrapText.jsx-bbc8723b0062cfc9{white-space:normal}a.button.jsx-bbc8723b0062cfc9{display:inline-block}.primary.jsx-bbc8723b0062cfc9{background-color:var(--button-bg);color:var(--button-text)}.primary.jsx-bbc8723b0062cfc9:hover:not(.primary:disabled),.primary.jsx-bbc8723b0062cfc9:active:not(.primary:disabled){background-color:var(--button-bg-hover)}.primary.reversed.jsx-bbc8723b0062cfc9{background-color:var(--button-reversed-bg);color:var(--button-reversed-text)}.primary.reversed.jsx-bbc8723b0062cfc9:hover:not(.primary:disabled),.primary.reversed.jsx-bbc8723b0062cfc9:active:not(.primary:disabled){background-color:var(--button-reversed-bg);color:var(--button-reversed-text-hover)}.primary.jsx-bbc8723b0062cfc9:disabled{background-color:var(--button-bg-disabled);color:var(--button-text-disabled)}.secondary.jsx-bbc8723b0062cfc9{background-color:var(--btnSec-bg);color:var(--btnSec-text);border-color:var(--btnSec-text)}.secondary.jsx-bbc8723b0062cfc9:hover:not(.secondary:disabled),.secondary.jsx-bbc8723b0062cfc9:active:not(.secondary:disabled){color:var(--btnSec-text-hover);border-color:var(--btnSec-text-hover)}.secondary.reversed.jsx-bbc8723b0062cfc9{color:white;border-color:white}.secondary.reversed.jsx-bbc8723b0062cfc9:hover:not(.secondary:disabled),.secondary.reversed.jsx-bbc8723b0062cfc9:active:not(.secondary:disabled){color:var(--btnSec-reversed-text-hover);border-color:var(--btnSec-reversed-text-hover)}.secondary.jsx-bbc8723b0062cfc9:disabled{color:var(--btnSec-text-disabled);border-color:var(--btnSec-text-disabled)}.secondary.reversed.jsx-bbc8723b0062cfc9:disabled{color:var(--btnSec-reversed-text-disabled);border-color:var(--btnSec-reversed-text-disabled)}.alternative.jsx-bbc8723b0062cfc9{background-color:var(--btnAlt-bg);color:var(--btnAlt-text)}.alternative.jsx-bbc8723b0062cfc9:hover:not(.alternative:disabled),.alternative.jsx-bbc8723b0062cfc9:active:not(.alternative:disabled){background-color:var(--btnAlt-bg-hover)}.alternative.reversed.jsx-bbc8723b0062cfc9{background-color:var(--btnAlt-reversed-bg);color:var(--btnAlt-reversed-text)}.alternative.reversed.jsx-bbc8723b0062cfc9:hover:not(.alternative:disabled),.alternative.reversed.jsx-bbc8723b0062cfc9:active:not(.alternative:disabled){background-color:var(--btnAlt-reversed-bg);color:var(--btnAlt-reversed-text-hover)}.alternative.jsx-bbc8723b0062cfc9:disabled{background-color:var(--btnAlt-bg-disabled);color:var(--btnAlt-text-disabled)}"}),className:"jsx-bbc8723b0062cfc9"},w={};y&&(w.backgroundColor=y),b&&(w.color=b);let k={className:d()(_,E,i),style:w,...x};return l&&!s?(0,n.jsxs)(h(),{href:l,ref:t,...k,children:[(0,n.jsx)("span",{children:r}),S]}):(0,n.jsxs)("button",{...k,ref:t,type:g,disabled:s,children:[(0,n.jsx)("span",{children:r}),S]})});m.propTypes={wrapText:l().bool,children:l().node.isRequired,className:l().string,"data-qa":l().string.isRequired,disabled:l().bool,href:l().string,isReversed:l().bool,fullWidth:l().bool,size:l().string,backgroundColor:l().string,textColor:l().string,type:l().oneOf(["submit","reset","button",void 0])},t.Z=m},41420:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n={LARGE:"large",MEDIUM:"default",SMALL:"small",EXTRA_SMALL:"extraSmall",RESPONSIVE:"responsive",MOBILE:"mobile"}},57199:function(e,t,r){"use strict";r.d(t,{J:function(){return oQ}});var n,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,x,_,E,S,w,k,T=r(85893),I=r(67294),C=r(45697),A=r.n(C),O=r(70917),N=String.raw,P=N`
3  :root,
4  :host {
5    --chakra-vh: 100vh;
6  }
7
8  @supports (height: -webkit-fill-available) {
9    :root,
10    :host {
11      --chakra-vh: -webkit-fill-available;
12    }
13  }
14
15  @supports (height: -moz-fill-available) {
16    :root,
17    :host {
18      --chakra-vh: -moz-fill-available;
19    }
20  }
21
22  @supports (height: 100dvh) {
23    :root,
24    :host {
25      --chakra-vh: 100dvh;
26    }
27  }
28`,R=()=>(0,T.jsx)(O.xB,{styles:P}),D=({scope:e=""})=>(0,T.jsx)(O.xB,{styles:N`
29      html {
30        line-height: 1.5;
31        -webkit-text-size-adjust: 100%;
32        font-family: system-ui, sans-serif;
33        -webkit-font-smoothing: antialiased;
34        text-rendering: optimizeLegibility;
35        -moz-osx-font-smoothing: grayscale;
36        touch-action: manipulation;
37      }
38
39      body {
40        position: relative;
41        min-height: 100%;
42        margin: 0;
43        font-feature-settings: "kern";
44      }
45
46      ${e} :where(*, *::before, *::after) {
47        border-width: 0;
48        border-style: solid;
49        box-sizing: border-box;
50        word-wrap: break-word;
51      }
52
53      main {
54        display: block;
55      }
56
57      ${e} hr {
58        border-top-width: 1px;
59        box-sizing: content-box;
60        height: 0;
61        overflow: visible;
62      }
63
64      ${e} :where(pre, code, kbd,samp) {
65        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
66        font-size: 1em;
67      }
68
69      ${e} a {
70        background-color: transparent;
71        color: inherit;
72        text-decoration: inherit;
73      }
74
75      ${e} abbr[title] {
76        border-bottom: none;
77        text-decoration: underline;
78        -webkit-text-decoration: underline dotted;
79        text-decoration: underline dotted;
80      }
81
82      ${e} :where(b, strong) {
83        font-weight: bold;
84      }
85
86      ${e} small {
87        font-size: 80%;
88      }
89
90      ${e} :where(sub,sup) {
91        font-size: 75%;
92        line-height: 0;
93        position: relative;
94        vertical-align: baseline;
95      }
96
97      ${e} sub {
98        bottom: -0.25em;
99      }
100
101      ${e} sup {
102        top: -0.5em;
103      }
104
105      ${e} img {
106        border-style: none;
107      }
108
109      ${e} :where(button, input, optgroup, select, textarea) {
110        font-family: inherit;
111        font-size: 100%;
112        line-height: 1.15;
113        margin: 0;
114      }
115
116      ${e} :where(button, input) {
117        overflow: visible;
118      }
119
120      ${e} :where(button, select) {
121        text-transform: none;
122      }
123
124      ${e} :where(
125          button::-moz-focus-inner,
126          [type="button"]::-moz-focus-inner,
127          [type="reset"]::-moz-focus-inner,
128          [type="submit"]::-moz-focus-inner
129        ) {
130        border-style: none;
131        padding: 0;
132      }
133
134      ${e} fieldset {
135        padding: 0.35em 0.75em 0.625em;
136      }
137
138      ${e} legend {
139        box-sizing: border-box;
140        color: inherit;
141        display: table;
142        max-width: 100%;
143        padding: 0;
144        white-space: normal;
145      }
146
147      ${e} progress {
148        vertical-align: baseline;
149      }
150
151      ${e} textarea {
152        overflow: auto;
153      }
154
155      ${e}
155 :where([type="checkbox"], [type="radio"]) {
156        box-sizing: border-box;
157        padding: 0;
158      }
159
160      ${e} input[type="number"]::-webkit-inner-spin-button,
161      ${e} input[type="number"]::-webkit-outer-spin-button {
162        -webkit-appearance: none !important;
163      }
164
165      ${e} input[type="number"] {
166        -moz-appearance: textfield;
167      }
168
169      ${e} input[type="search"] {
170        -webkit-appearance: textfield;
171        outline-offset: -2px;
172      }
173
174      ${e} input[type="search"]::-webkit-search-decoration {
175        -webkit-appearance: none !important;
176      }
177
178      ${e} ::-webkit-file-upload-button {
179        -webkit-appearance: button;
180        font: inherit;
181      }
182
183      ${e} details {
184        display: block;
185      }
186
187      ${e} summary {
188        display: list-item;
189      }
190
191      template {
192        display: none;
193      }
194
195      [hidden] {
196        display: none !important;
197      }
198
199      ${e} :where(
200          blockquote,
201          dl,
202          dd,
203          h1,
204          h2,
205          h3,
206          h4,
207          h5,
208          h6,
209          hr,
210          figure,
211          p,
212          pre
213        ) {
214        margin: 0;
215      }
216
217      ${e} button {
218        background: transparent;
219        padding: 0;
220      }
221
222      ${e} fieldset {
223        margin: 0;
224        padding: 0;
225      }
226
227      ${e} :where(ol, ul) {
228        margin: 0;
229        padding: 0;
230      }
231
232      ${e} textarea {
233        resize: vertical;
234      }
235
236      ${e} :where(button, [role="button"]) {
237        cursor: pointer;
238      }
239
240      ${e} button::-moz-focus-inner {
241        border: 0 !important;
242      }
243
244      ${e} table {
245        border-collapse: collapse;
246      }
247
248      ${e} :where(h1, h2, h3, h4, h5, h6) {
249        font-size: inherit;
250        font-weight: inherit;
251      }
252
253      ${e} :where(button, input, optgroup, select, textarea) {
254        padding: 0;
255        line-height: inherit;
256        color: inherit;
257      }
258
259      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
260        display: block;
261      }
262
263      ${e} :where(img, video) {
264        max-width: 100%;
265        height: auto;
266      }
267
268      [data-js-focus-visible]
269        :focus:not([data-focus-visible-added]):not(
270          [data-focus-visible-disabled]
271        ) {
272        outline: none;
273        box-shadow: none;
274      }
275
276      ${e} select::-ms-expand {
277        display: none;
278      }
279
280      ${P}
281    `}),L=r(695),F=r(85607),j=r(45161),M={light:"chakra-ui-light",dark:"chakra-ui-dark"},B="chakra-ui-color-mode",U={ssr:!1,type:"localStorage",get(e){let t;if(!(null==globalThis?void 0:globalThis.document))return e;try{t=localStorage.getItem(B)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(B,e)}catch(e){}}},q=r(26245),V=()=>{};function z(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function $(e){let{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=U}=e,s="dark"===i?"dark":"light",[l,u]=(0,I.useState)(()=>z(a,s)),[c,d]=(0,I.useState)(()=>z(a)),{getSystemTheme:f,setClassName:h,setDataset:p,addListener:m}=(0,I.useMemo)(()=>(function(e={}){let{preventTransition:t=!0}=e,r={setDataset:e=>{let n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?M.dark:M.light),document.body.classList.remove(e?M.light:M.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){let t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return r})({preventTransition:o}),[o]),g="system"!==i||l?l:c,v=(0,I.useCallback)(e=>{let t="system"===e?f():e;u(t),h("dark"===t),p(t),a.set(t)},[a,f,h,p]);(0,q.G)(()=>{"system"===i&&d(f())},[]),(0,I.useEffect)(()=>{let e=a.get();if(e){v(e);return}if("system"===i){v("system");return}v(s)},[a,s,i,v]);let y=(0,I.useCallback)(()=>{v("dark"===g?"light":"dark")},[g,v]);(0,I.useEffect)(()=>
281{if(n)return m(v)},[n,m,v]);let b=(0,I.useMemo)(()=>({colorMode:null!=t?t:g,toggleColorMode:t?V:y,setColorMode:t?V:v,forced:void 0!==t}),[g,y,v,t]);return(0,T.jsx)(j.kc.Provider,{value:b,children:r})}$.displayName="ColorModeProvider";var G=r(76336),W=e=>{let{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=(0,T.jsx)(G.u,{environment:s,disabled:u,children:t});return(0,T.jsx)(F.f6,{theme:a,cssVarsRoot:l,children:(0,T.jsxs)($,{colorModeManager:r,options:a.config,children:[o?(0,T.jsx)(D,{scope:i}):(0,T.jsx)(R,{}),!c&&(0,T.jsx)(F.ZL,{}),n?(0,T.jsx)(L.h,{zIndex:n,children:d}):d]})})},H={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Q={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Y={...Q,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},X={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...H,sizes:Y,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dar
281k-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:Q,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},K=r(33179),{defineMultiStyleConfig:Z,definePartsStyle:J}=(0,K.D)(["stepper","step","title","description","indicator","separator","icon","number"]),ee=(0,K.gJ)("stepper-indicator-size"),et=(0,K.gJ)("stepper-icon-size"),er=(0,K.gJ)("stepper-title-font-size"),en=(0,K.gJ)("stepper-description-font-size"),ei=(0,K.gJ)("stepper-accent-color"),eo=Z({baseStyle:J(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ei.variable]:`colors.${e}.500`,_dark:{[ei.variable]:`colors.${e}.200`}},title:{fontSize:er.reference,fontWeight:"medium"},description:{fontSize:en.reference,color:"chakra-subtle-text"},number:{fontSize:er.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:et.reference,height:et.reference},indicator:{flexShrink:0,borderRadius:"full",width:ee.reference,height:ee.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ei.reference},"&[data-status=complete]":{bg:ei.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ei.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${ee.reference} - 8px)`,top:`calc(${ee.reference} + 4px)`,insetStart:`calc(${ee.reference} / 2 - 1px)`}}})),sizes:{xs:J({stepper:{[ee.variable]:"sizes.4",[et.variable]:"sizes.3",[er.variable]:"fontSizes.xs",[en.variable]:"fontSizes.xs"}}),sm:J({stepper:{[ee.variable]:"sizes.6",[et.variable]:"sizes.4",[er.variable]:"fontSizes.sm",[en.variable]:"fontSizes.xs"}}),md:J({stepper:{[ee.variable]:"sizes.8",[et.variable]:"sizes.5",[er.variable]:"fontSizes.md",[en.variable]:"fontSizes.sm"}}),lg:J({stepper:{[ee.variable]:"sizes.10",[et.variable]:"sizes.6",[er.variable]:"fontSizes.lg",[en.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ea(e,t={}){let r=!1;function n(t){let r=(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__"),n=`chakra-${r}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...i){for(let e of(!function(){if(!r){r=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),i))t[e]=n(e);return ea(e,t)},toPart:n,extend:function(...r){for(let e of r)e in t||(t[e]=n(e));return ea(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}var es=ea("accordion").parts("root","container","button","panel").extend("icon"),el=ea("alert").parts("title","description","container").extend("icon","spinner"),eu=ea("avatar").parts("label","badge","container").extend("excessLabel","group"),ec=ea("breadcrumb").parts("link","item","container").extend("separator");ea("button").parts();var ed=ea("checkbox").parts("control","icon","container").extend("label");ea("progress").parts("track","filledTrack").extend("label");var ef=ea("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),eh=ea("editable").parts("preview","input","textarea"),ep=ea("form").parts("container","requiredIndicator","helperText"),em=ea("formError").parts("text","icon"),eg=ea("input").parts("addon","field","element","group"),ev=ea("list").parts("container","item","icon"),ey=ea("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),eb=ea("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ex=ea("numberinput").parts("root","field","stepperGroup","stepper");ea("pininput").parts("field");var e_=ea("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),eE=ea("progress").parts("label","filledTrack","track"),eS=ea("radio").parts("container","control","label"),ew=ea("select").parts("field","icon"),ek=ea("slider").parts("container","track","thumb","filledTrack","mark"),eT=ea("stat").parts("container","label","helpText","number","icon"),eI=ea("switch").parts("container","track","thumb","label"),eC=ea("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),eA=ea("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),eO=ea("tag").parts("container","label","closeButton"),eN=ea("card").parts("container","header","body","footer");function eP(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function eR(e,t){var r,n;let i=function(e,t=""){return`--${function(e,t=""){return[t,eP(e)].filter(
281Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:i,reference:(r="string"==typeof(n=null==t?void 0:t.fallback)?n:null==n?void 0:n.reference,`var(${eP(i)}${r?`, ${r}`:""})`)}}ea("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var eD=r(25432);function eL(e){return(0,eD.Kn)(e)&&e.reference?e.reference:String(e)}var eF=(e,...t)=>t.map(eL).join(` ${e} `).replace(/calc/g,""),ej=(...e)=>`calc(${eF("+",...e)})`,eM=(...e)=>`calc(${eF("-",...e)})`,eB=(...e)=>`calc(${eF("*",...e)})`,eU=(...e)=>`calc(${eF("/",...e)})`,eq=e=>{let t=eL(e);return null==t||Number.isNaN(parseFloat(t))?eB(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},eV=Object.assign(e=>({add:(...t)=>eV(ej(e,...t)),subtract:(...t)=>eV(eM(e,...t)),multiply:(...t)=>eV(eB(e,...t)),divide:(...t)=>eV(eU(e,...t)),negate:()=>eV(eq(e)),toString:()=>e.toString()}),{add:ej,subtract:eM,multiply:eB,divide:eU,negate:eq}),{defineMultiStyleConfig:ez,definePartsStyle:e$}=(0,K.D)(eI.keys),eG=eR("switch-track-width"),eW=eR("switch-track-height"),eH=eR("switch-track-diff"),eQ=eV.subtract(eG,eW),eY=eR("switch-thumb-x"),eX=eR("switch-bg"),eK=(0,K.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[eG.reference],height:[eW.reference],transitionProperty:"common",transitionDuration:"fast",[eX.variable]:"colors.gray.300",_dark:{[eX.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[eX.variable]:`colors.${t}.500`,_dark:{[eX.variable]:`colors.${t}.200`}},bg:eX.reference}}),eZ=(0,K.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[eW.reference],height:[eW.reference],_checked:{transform:`translateX(${eY.reference})`}}),eJ=ez({baseStyle:e$(e=>({container:{[eH.variable]:eQ,[eY.variable]:eH.reference,_rtl:{[eY.variable]:eV(eH).negate().toString()}},track:eK(e),thumb:eZ})),sizes:{sm:e$({container:{[eG.variable]:"1.375rem",[eW.variable]:"sizes.3"}}),md:e$({container:{[eG.variable]:"1.875rem",[eW.variable]:"sizes.4"}}),lg:e$({container:{[eG.variable]:"2.875rem",[eW.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function e0(e,t){return r=>"dark"===r.colorMode?t:e}function e1(e){let{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:e2,definePartsStyle:e5}=(0,K.D)(eC.keys),e3=e5({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),e4=(0,K.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),e6=e2({baseStyle:e3,variants:{simple:e5(e=>{let{colorScheme:t}=e;return{th:{color:e0("gray.600","gray.400")(e),borderBottom:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e),...e4},td:{borderBottom:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e),...e4},caption:{color:e0("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:e5(e=>{let{colorScheme:t}=e;return{th:{color:e0("gray.600","gray.400")(e),borderBottom:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e),...e4},td:{borderBottom:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e),...e4},caption:{color:e0("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e)},td:{background:e0(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,K.k0)({})},sizes:{sm:e5({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:e5({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:e5({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function e8(e,t,r){return Math.min(Math.max(e,r),t)}
281class e9 extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function e7(e){if("string"!=typeof e)throw new e9(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=ts.test(e)?function(e){let t=tt[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new e9(e);return`#${t}`}(e):e;let r=tn.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(tr(e,2),16)),parseInt(tr(e[3]||"f",2),16)/255]}let n=ti.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let i=to.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=ta.exec(t);if(o){let[t,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(e8(0,100,r)!==r||e8(0,100,n)!==n)throw new e9(e);return[...tu(t,r,n),Number.isNaN(i)?1:i]}throw new e9(e)}let te=e=>parseInt(e.replace(/_/g,""),36),tt="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let r=te(t.substring(0,3)),n=te(t.substring(3)).toString(16),i="";for(let e=0;e<6-n.length;e++)i+="0";return e[r]=`${i}${n}`,e},{}),tr=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),tn=RegExp(`^#${tr("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ti=RegExp(`^#${tr("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),to=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${tr(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ta=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,ts=/^[a-z]+$/i,tl=e=>Math.round(255*e),tu=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(tl);let i=(e%360+360)%360/60,o=t/100*(1-Math.abs(2*n-1)),a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);let c=n-o/2;return[s+c,l+c,u+c].map(tl)};var tc=e=>0===Object.keys(e).length,td=(e,t,r)=>{let n=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:void 0;return void 0===e?r:e}(e,`colors.${t}`,t);try{return!function(e){let[t,r,n,i]=e7(e),o=e=>{let t=e8(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(n),i<1&&o(Math.round(255*i))}(n),n}catch{return null!=r?r:"#000000"}},tf=e=>{let[t,r,n]=e7(e);return(299*t+587*r+114*n)/1e3},th=e=>t=>128>tf(td(t,e))?"dark":"light",tp=e=>t=>"dark"===th(e)(t),tm=(e,t)=>r=>(function(e,t){var r;let[n,i,o,a]=e7(e);return r=a-t,`rgba(${e8(0,255,n).toFixed()}, ${e8(0,255,i).toFixed()}, ${e8(0,255,o).toFixed()}, ${parseFloat(e8(0,1,r).toFixed(3))})`})(td(r,e),1-t);function tg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
282    45deg,
283    ${t} 25%,
284    transparent 25%,
285    transparent 50%,
286    ${t} 50%,
287    ${t} 75%,
288    transparent 75%,
289    transparent
290  )`,backgroundSize:`${e} ${e}`}}var tv=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`,ty=(0,K.gJ)("tabs-color"),tb=(0,K.gJ)("tabs-bg"),tx=(0,K.gJ)("tabs-border-color"),{defineMultiStyleConfig:t_,definePartsStyle:tE}=(0,K.D)(eA.keys),tS=(0,K.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),tw=(0,K.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),tk=(0,K.k0)(e=>{let{align:t="start",orientation:r}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===r?"column":"row"}}),tT=(0,K.k0)({p:4}),tI=t_({baseStyle:tE(e=>({root:tS(e),tab:tw(e),tablist:tk(e),tabpanel:tT})),sizes:{sm:tE({tab:{py:1,px:4,fontSize:"sm"}}),md:tE({tab:{fontSize:"md",py:2,px:4}}),lg:tE({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:tE(e=>{let{colorScheme:t,orientation:r}=e,n="vertical"===r,i=n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[ty.variable]:`colors.${t}.600`,_dark:{[ty.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[tb.variable]:"colors.gray.200",_dark:{[tb.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ty.reference,bg:tb.reference}}}),enclosed:tE(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[tx.variable]:"transparent",_selected:{[ty.variable]:`colors.${t}.600`,[tx.variable]:"colors.white",_dark:{[ty.variable]:`colors.${t}.300`,[tx.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:tx.reference}
290,color:ty.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":tE(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[tb.variable]:"colors.gray.50",_dark:{[tb.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[tb.variable]:"colors.white",[ty.variable]:`colors.${t}.600`,_dark:{[tb.variable]:"colors.gray.800",[ty.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ty.reference,bg:tb.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":tE(e=>{let{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:td(r,`${t}.700`),bg:td(r,`${t}.100`)}}}}),"solid-rounded":tE(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ty.variable]:"colors.gray.600",_dark:{[ty.variable]:"inherit"},_selected:{[ty.variable]:"colors.white",[tb.variable]:`colors.${t}.600`,_dark:{[ty.variable]:"colors.gray.800",[tb.variable]:`colors.${t}.300`}},color:ty.reference,bg:tb.reference}}}),unstyled:tE({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),tC=(0,K._6)("badge",["bg","color","shadow"]),tA=(0,K.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:tC.bg.reference,color:tC.color.reference,boxShadow:tC.shadow.reference}),tO=(0,K.k0)(e=>{let{colorScheme:t,theme:r}=e,n=tm(`${t}.500`,.6)(r);return{[tC.bg.variable]:`colors.${t}.500`,[tC.color.variable]:"colors.white",_dark:{[tC.bg.variable]:n,[tC.c
290olor.variable]:"colors.whiteAlpha.800"}}}),tN=(0,K.k0)(e=>{let{colorScheme:t,theme:r}=e,n=tm(`${t}.200`,.16)(r);return{[tC.bg.variable]:`colors.${t}.100`,[tC.color.variable]:`colors.${t}.800`,_dark:{[tC.bg.variable]:n,[tC.color.variable]:`colors.${t}.200`}}}),tP=(0,K.k0)(e=>{let{colorScheme:t,theme:r}=e,n=tm(`${t}.200`,.8)(r);return{[tC.color.variable]:`colors.${t}.500`,_dark:{[tC.color.variable]:n},[tC.shadow.variable]:`inset 0 0 0px 1px ${tC.color.reference}`}}),tR=(0,K.fj)({baseStyle:tA,variants:{solid:tO,subtle:tN,outline:tP},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:tD,definePartsStyle:tL}=(0,K.D)(eO.keys),tF=(0,K.gJ)("tag-bg"),tj=(0,K.gJ)("tag-color"),tM=(0,K.gJ)("tag-shadow"),tB=(0,K.gJ)("tag-min-height"),tU=(0,K.gJ)("tag-min-width"),tq=(0,K.gJ)("tag-font-size"),tV=(0,K.gJ)("tag-padding-inline"),tz=tL({container:(0,K.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[tj.variable]:tC.color.reference,[tF.variable]:tC.bg.reference,[tM.variable]:tC.shadow.reference,color:tj.reference,bg:tF.reference,boxShadow:tM.reference,borderRadius:"md",minH:tB.reference,minW:tU.reference,fontSize:tq.reference,px:tV.reference,_focusVisible:{[tM.variable]:"shadows.outline"}}),label:(0,K.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,K.k0)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),t$={sm:tL({container:{[tB.variable]:"sizes.5",[tU.variable]:"sizes.5",[tq.variable]:"fontSizes.xs",[tV.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:tL({container:{[tB.variable]:"sizes.6",[tU.variable]:"sizes.6",[tq.variable]:"fontSizes.sm",[tV.variable]:"space.2"}}),lg:tL({container:{[tB.variable]:"sizes.8",[tU.variable]:"sizes.8",[tq.variable]:"fontSizes.md",[tV.variable]:"space.3"}})},tG=tD({variants:{subtle:tL(e=>{var t;return{container:null==(t=tR.variants)?void 0:t.subtle(e)}}),solid:tL(e=>{var t;return{container:null==(t=tR.variants)?void 0:t.solid(e)}}),outline:tL(e=>{var t;return{container:null==(t=tR.variants)?void 0:t.outline(e)}})},baseStyle:tz,sizes:t$,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:tW,defineMultiStyleConfig:tH}=(0,K.D)(eg.keys),tQ=(0,K.gJ)("input-height"),tY=(0,K.gJ)("input-font-size"),tX=(0,K.gJ)("input-padding"),tK=(0,K.gJ)("input-border-radius"),tZ=tW({addon:{height:tQ.reference,fontSize:tY.reference,px:tX.reference,borderRadius:tK.reference},field:{width:"100%",height:tQ.reference,fontSize:tY.reference,px:tX.reference,borderRadius:tK.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),tJ={lg:(0,K.k0)({[tY.variable]:"fontSizes.lg",[tX.variable]:"space.4",[tK.variable]:"radii.md",[tQ.variable]:"sizes.12"}),md:(0,K.k0)({[tY.variable]:"fontSizes.md",[tX.variable]:"space.4",[tK.variable]:"radii.md",[tQ.variable]:"sizes.10"}),sm:(0,K.k0)({[tY.variable]:"fontSizes.sm",[tX.variable]:"space.3",[tK.variable]:"radii.sm",[tQ.variable]:"sizes.8"}),xs:(0,K.k0)({[tY.variable]:"fontSizes.xs",[tX.variable]:"space.2",[tK.variable]:"radii.sm",[tQ.variable]:"sizes.6"})};function t0(e){let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||e0("blue.500","blue.300")(e),errorBorderColor:r||e0("red.500","red.300")(e)}}var t1=tH({baseStyle:tZ,sizes:{lg:tW({field:tJ.lg,group:tJ.lg}),md:tW({field:tJ.md,group:tJ.md}),sm:tW({field:tJ.sm,group:tJ.sm}),xs:tW({field:tJ.xs,group:tJ.xs})},variants:{outline:tW(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=t0(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:e0("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:td(t,n),boxShadow:`0 0 0 1px ${td(t,n)}`},_focusVisible:{zIndex:1,borderColor:td(t,r),boxShadow:`0 0 0 1px ${td(t,r)}`}},addon:{border:"1px solid",borderColor:e0("inherit","whiteAlpha.50")(e),bg:e0("gray.100","whiteAlpha.300")(e)}}}),filled:tW(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=t0(e);
290return{field:{border:"2px solid",borderColor:"transparent",bg:e0("gray.100","whiteAlpha.50")(e),_hover:{bg:e0("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:td(t,n)},_focusVisible:{bg:"transparent",borderColor:td(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:e0("gray.100","whiteAlpha.50")(e)}}}),flushed:tW(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=t0(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:td(t,n),boxShadow:`0px 1px 0px 0px ${td(t,n)}`},_focusVisible:{borderColor:td(t,r),boxShadow:`0px 1px 0px 0px ${td(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:tW({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),t2=(0,K.k0)({...null==(n=t1.baseStyle)?void 0:n.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),t5={outline:(0,K.k0)(e=>{var t,r;return null!=(r=null==(t=t1.variants)?void 0:t.outline(e).field)?r:{}}),flushed:(0,K.k0)(e=>{var t,r;return null!=(r=null==(t=t1.variants)?void 0:t.flushed(e).field)?r:{}}),filled:(0,K.k0)(e=>{var t,r;return null!=(r=null==(t=t1.variants)?void 0:t.filled(e).field)?r:{}}),unstyled:null!=(o=null==(i=t1.variants)?void 0:i.unstyled.field)?o:{}},t3={xs:null!=(s=null==(a=t1.sizes)?void 0:a.xs.field)?s:{},sm:null!=(u=null==(l=t1.sizes)?void 0:l.sm.field)?u:{},md:null!=(d=null==(c=t1.sizes)?void 0:c.md.field)?d:{},lg:null!=(h=null==(f=t1.sizes)?void 0:f.lg.field)?h:{}},t4=(0,K.fj)({baseStyle:t2,sizes:t3,variants:t5,defaultProps:{size:"md",variant:"outline"}}),t6=eR("tooltip-bg"),t8=eR("tooltip-fg"),t9=eR("popper-arrow-bg"),t7=(0,K.k0)({bg:t6.reference,color:t8.reference,[t6.variable]:"colors.gray.700",[t8.variable]:"colors.whiteAlpha.900",_dark:{[t6.variable]:"colors.gray.300",[t8.variable]:"colors.gray.9
29000"},[t9.variable]:t6.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),re=(0,K.fj)({baseStyle:t7}),{defineMultiStyleConfig:rt,definePartsStyle:rr}=(0,K.D)(eE.keys),rn=(0,K.k0)(e=>{let{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=e0(tg(),tg("1rem","rgba(0,0,0,0.1)"))(e),a=e0(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
291    to right,
292    transparent 0%,
293    ${td(r,a)} 50%,
294    transparent 100%
295  )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}}),ri=(0,K.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),ro=(0,K.k0)(e=>({bg:e0("gray.100","whiteAlpha.300")(e)})),ra=(0,K.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...rn(e)})),rs=rr(e=>({label:ri,filledTrack:ra(e),track:ro(e)})),rl=rt({sizes:{xs:rr({track:{h:"1"}}),sm:rr({track:{h:"2"}}),md:rr({track:{h:"3"}}),lg:rr({track:{h:"4"}})},baseStyle:rs,defaultProps:{size:"md",colorScheme:"blue"}}),ru=e=>"function"==typeof e;function rc(e,...t){return ru(e)?e(...t):e}var{definePartsStyle:rd,defineMultiStyleConfig:rf}=(0,K.D)(ed.keys),rh=(0,K.gJ)("checkbox-size"),rp=(0,K.k0)(e=>{let{colorScheme:t}=e;return{w:rh.reference,h:rh.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:e0(`${t}.500`,`${t}.200`)(e),borderColor:e0(`${t}.500`,`${t}.200`)(e),color:e0("white","gray.900")(e),_hover:{bg:e0(`${t}.600`,`${t}.300`)(e),borderColor:e0(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:e0("gray.200","transparent")(e),bg:e0("gray.200","whiteAlpha.300")(e),color:e0("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:e0(`${t}.500`,`${t}.200`)(e),borderColor:e0(`${t}.500`,`${t}.200`)(e),color:e0("white","gray.900")(e)},_disabled:{bg:e0("gray.100","whiteAlpha.100")(e),borderColor:e0("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:e0("red.500","red.300")(e)}}}),rm=(0,K.k0)({_disabled:{cursor:"not-allowed"}}),rg=(0,K.k0)({userSelect:"none",_disabled:{opacity:.4}}),rv=(0,K.k0)({transitionProperty:"transform",transitionDuration:"normal"}),ry=rf({baseStyle:rd(e=>({icon:rv,container:rm,control:rc(rp,e),label:rg})),sizes:{sm:rd({control:{[rh.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:rd({control:{[rh.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:rd({control:{[rh.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rb,definePartsStyle:rx}=(0,K.D)(eS.keys),r_=(0,K.k0)(e=>{var t;let r=null==(t=rc(ry.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),rE=rb({baseStyle:rx(e=>{var t,r;return{label:null==(t=ry.baseStyle)?void 0:t.call(ry,e).label,container:null==(r=ry.baseStyle)?void 0:r.call(ry,e).container,control:r_(e)}}),sizes:{md:rx({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:rx({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:rx({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rS,definePartsStyle:rw}=(0,K.D)(ew.keys),rk=(0,K.gJ)("select-bg"),rT=rw({field:(0,K.k0)({...null==(p=t1.baseStyle)?void 0:p.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:rk.reference,[rk.variable]:"colors.white",_dark:{[rk.variable]:"colors.gray.700"},"> option, > optgroup":{bg:rk.reference}}),icon:(0,K.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),rI=(0,K.k0)({paddingInlineEnd:"8"}),rC=rS({baseStyle:rT,sizes:{lg:{...null==(m=t1.sizes)?void 0:m.lg,field:{...null==(g=t1.sizes)?void 0:g.lg.field,...rI}},md:{...null==(v=t1.sizes)?void 0:v.md,field:{...null==(y=t1.sizes)?void 0:y.md.field,...rI}},sm:{...null==(b=t1.sizes)?void 0:b.sm,field:{...null==(x=t1.sizes)?void 0:x.sm.field,...rI}},xs:{...null==(_=t1.sizes)?void 0:_.xs,field:{...null==(E=t1.sizes)?void 0:E.xs.field,...rI},icon:{insetEnd:"1"}}},variants:t1.variants,defaultProps:t1.defaultProps}),rA=(0,K.gJ)("skeleton-start-color"),rO=(0,K.gJ)("skeleton-end-color"),rN=(0,K.k0)({[rA.variable]:"colors.gray.100",[rO.variable]:"colors.gray.400",_dark:{[rA.variable]:"colors.gray.800",[rO.variable]:"colors.gray.600"},background:rA.reference,borderColor:rO.reference,opacity:.7,borderRadius:"sm"}),rP=(0,K.fj)({baseStyle:rN}),rR=(0,K.gJ)("skip-link-bg"),rD=(0,K.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[rR.variable]:"colors.white",_dark:{[rR.variable]:"colors.gray.700"},bg:rR.reference}}),rL=(0,K.fj)({baseStyle:rD}),{defineMultiStyleConfig:rF,definePartsStyle:rj}=(0,K.D)(ek.keys),rM=(0,K.gJ)("slider-thumb-size"),rB=(0,K.gJ)("slider-track-size"),rU=(0,K.gJ)("slider-bg"),rq=(0,K.k0)(e=>{let{orientation:t}=e;
295return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...e1({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),rV=(0,K.k0)(e=>({...e1({orientation:e.orientation,horizontal:{h:rB.reference},vertical:{w:rB.reference}}),overflow:"hidden",borderRadius:"sm",[rU.variable]:"colors.gray.200",_dark:{[rU.variable]:"colors.whiteAlpha.200"},_disabled:{[rU.variable]:"colors.gray.300",_dark:{[rU.variable]:"colors.whiteAlpha.300"}},bg:rU.reference})),rz=(0,K.k0)(e=>{let{orientation:t}=e;return{...e1({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:rM.reference,h:rM.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),r$=(0,K.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[rU.variable]:`colors.${t}.500`,_dark:{[rU.variable]:`colors.${t}.200`},bg:rU.reference}}),rG=rF({baseStyle:rj(e=>({container:rq(e),track:rV(e),thumb:rz(e),filledTrack:r$(e)})),sizes:{lg:rj({container:{[rM.variable]:"sizes.4",[rB.variable]:"sizes.1"}}),md:rj({container:{[rM.variable]:"sizes.3.5",[rB.variable]:"sizes.1"}}),sm:rj({container:{[rM.variable]:"sizes.2.5",[rB.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),rW=eR("spinner-size"),rH=(0,K.k0)({width:[rW.reference],height:[rW.reference]}),rQ={xs:(0,K.k0)({[rW.variable]:"sizes.3"}),sm:(0,K.k0)({[rW.variable]:"sizes.4"}),md:(0,K.k0)({[rW.variable]:"sizes.6"}),lg:(0,K.k0)({[rW.variable]:"sizes.8"}),xl:(0,K.k0)({[rW.variable]:"sizes.12"})},rY=(0,K.fj)({baseStyle:rH,sizes:rQ,defaultProps:{size:"md"}}),{defineMultiStyleConfig:rX,definePartsStyle:rK}=(0,K.D)(eT.keys),rZ=rX({baseStyle:rK({container:{},label:(0,K.k0)({fontWeight:"medium"}),helpText:(0,K.k0)({opacity:.8,marginBottom:"2"}),number:(0,K.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,K.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:rK({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),rJ=(0,K.gJ)("kbd-bg"),r0=(0,K.k0)({[rJ.variable]:"colors.gray.100",_dark:{[rJ.variable]:"colors.whiteAlpha.100"},bg:rJ.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),r1=(0,K.fj)({baseStyle:r0}),r2=(0,K.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),r5=(0,K.fj)({baseStyle:r2}),{defineMultiStyleConfig:r3,definePartsStyle:r4}=(0,K.D)(ev.keys),r6=r3({baseStyle:r4({icon:(0,K.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:r8,definePartsStyle:r9}=(0,K.D)(ey.keys),r7=(0,K.gJ)("menu-bg"),ne=(0,K.gJ)("menu-shadow"),nt=(0,K.k0)({[r7.variable]:"#fff",[ne.variable]:"shadows.sm",_dark:{[r7.variable]:"colors.gray.700",[ne.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:r7.reference,boxShadow:ne.reference}),nr=(0,K.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[r7.variable]:"colors.gray.100",_dark:{[r7.variable]:"colors.whiteAlpha.100"}},_active:{[r7.variable]:"colors.gray.200",_dark:{[r7.variable]:"colors.whiteAlpha.200"}},_expanded:{[r7.variable]:"colors.gray.100",_dark:{[r7.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:r7.reference}),nn=(0,K.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),ni=(0,K.k0)({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),no=(0,K.k0)({opacity:.6}),na=(0,K.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),ns=r8({baseStyle:r9({button:(0,K.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:nt,item:nr,groupTitle:nn,icon:ni,command:no,divider:na})}),{defineMultiStyleConfig:nl,definePartsStyle:nu}
295=(0,K.D)(eb.keys),nc=(0,K.gJ)("modal-bg"),nd=(0,K.gJ)("modal-shadow"),nf=(0,K.k0)({bg:"blackAlpha.600",zIndex:"modal"}),nh=(0,K.k0)(e=>{let{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}}),np=(0,K.k0)(e=>{let{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[nc.variable]:"colors.white",[nd.variable]:"shadows.lg",_dark:{[nc.variable]:"colors.gray.700",[nd.variable]:"shadows.dark-lg"},bg:nc.reference,boxShadow:nd.reference}}),nm=(0,K.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),ng=(0,K.k0)({position:"absolute",top:"2",insetEnd:"3"}),nv=(0,K.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),ny=(0,K.k0)({px:"6",py:"4"});function nb(e){return"full"===e?nu({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):nu({dialog:{maxW:e}})}var nx=nl({baseStyle:nu(e=>({overlay:nf,dialogContainer:rc(nh,e),dialog:rc(np,e),header:nm,closeButton:ng,body:rc(nv,e),footer:ny})),sizes:{xs:nb("xs"),sm:nb("sm"),md:nb("md"),lg:nb("lg"),xl:nb("xl"),"2xl":nb("2xl"),"3xl":nb("3xl"),"4xl":nb("4xl"),"5xl":nb("5xl"),"6xl":nb("6xl"),full:nb("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:n_,definePartsStyle:nE}=(0,K.D)(ex.keys),nS=eR("number-input-stepper-width"),nw=eR("number-input-input-padding"),nk=eV(nS).add("0.5rem").toString(),nT=eR("number-input-bg"),nI=eR("number-input-color"),nC=eR("number-input-border-color"),nA=(0,K.k0)({[nS.variable]:"sizes.6",[nw.variable]:nk}),nO=(0,K.k0)(e=>{var t,r;return null!=(r=null==(t=rc(t1.baseStyle,e))?void 0:t.field)?r:{}}),nN=(0,K.k0)({width:nS.reference}),nP=(0,K.k0)({borderStart:"1px solid",borderStartColor:nC.reference,color:nI.reference,bg:nT.reference,[nI.variable]:"colors.chakra-body-text",[nC.variable]:"colors.chakra-border-color",_dark:{[nI.variable]:"colors.whiteAlpha.800",[nC.variable]:"colors.whiteAlpha.300"},_active:{[nT.variable]:"colors.gray.200",_dark:{[nT.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function nR(e){var t,r,n;let i=null==(t=t1.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=i.field)?void 0:r.fontSize)?n:"md",s=H.fontSizes[a];return nE({field:{...i.field,paddingInlineEnd:nw.reference,verticalAlign:"top"},stepper:{fontSize:eV(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var nD=n_({baseStyle:nE(e=>{var t;return{root:nA,field:null!=(t=rc(nO,e))?t:{},stepperGroup:nN,stepper:nP}}),sizes:{xs:nR("xs"),sm:nR("sm"),md:nR("md"),lg:nR("lg")},variants:t1.variants,defaultProps:t1.defaultProps}),nL=(0,K.k0)({...null==(S=t1.baseStyle)?void 0:S.field,textAlign:"center"}),nF={lg:(0,K.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,K.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,K.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,K.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},nj={outline:(0,K.k0)(e=>{var t,r,n;return null!=(n=null==(r=rc(null==(t=t1.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}}),flushed:(0,K.k0)(e=>{var t,r,n;return null!=(n=null==(r=rc(null==(t=t1.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}}),filled:(0,K.k0)(e=>{var t,r,n;return null!=(n=null==(r=rc(null==(t=t1.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}}),unstyled:null!=(k=null==(w=t1.variants)?void 0:w.unstyled.field)?k:{}},nM=(0,K.fj)({baseStyle:nL,sizes:nF,variants:nj,defaultProps:t1.defaultProps}),{defineMultiStyleConfig:nB,definePartsStyle:nU}=(0,K.D)(e_.keys),nq=eR("popper-bg"),nV=eR("popper-arrow-bg"),nz=eR("popper-arrow-shadow-color"),n$=nB({baseStyle:nU({popper:(0,K.k0)({zIndex:10}),content:(0,K.k0)({[nq.variable]:"colors.white",bg:nq.reference,[nV.variable]:nq.reference,[nz.variable]:"colors.gray.200",_dark:{[nq.variable]:"colors.gray.700",[nz.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,K.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,K.k0)({px:3,py:2}),footer:(0,K.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,K.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:nG,defineMultiStyleConfig:nW}
295=(0,K.D)(ef.keys),nH=(0,K.gJ)("drawer-bg"),nQ=(0,K.gJ)("drawer-box-shadow");function nY(e){return"full"===e?nG({dialog:{maxW:"100vw",h:"100vh"}}):nG({dialog:{maxW:e}})}var nX=(0,K.k0)({bg:"blackAlpha.600",zIndex:"modal"}),nK=(0,K.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),nZ=(0,K.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[nH.variable]:"colors.white",[nQ.variable]:"shadows.lg",_dark:{[nH.variable]:"colors.gray.700",[nQ.variable]:"shadows.dark-lg"},bg:nH.reference,boxShadow:nQ.reference}}),nJ=(0,K.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),n0=(0,K.k0)({position:"absolute",top:"2",insetEnd:"3"}),n1=(0,K.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),n2=(0,K.k0)({px:"6",py:"4"}),n5=nW({baseStyle:nG(e=>({overlay:nX,dialogContainer:nK,dialog:rc(nZ,e),header:nJ,closeButton:n0,body:n1,footer:n2})),sizes:{xs:nY("xs"),sm:nY("md"),md:nY("lg"),lg:nY("2xl"),xl:nY("4xl"),full:nY("full")},defaultProps:{size:"xs"}}),{definePartsStyle:n3,defineMultiStyleConfig:n4}=(0,K.D)(eh.keys),n6=n4({baseStyle:n3({preview:(0,K.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,K.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,K.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:n8,defineMultiStyleConfig:n9}=(0,K.D)(ep.keys),n7=(0,K.gJ)("form-control-color"),ie=n9({baseStyle:n8({container:{width:"100%",position:"relative"},requiredIndicator:(0,K.k0)({marginStart:"1",[n7.variable]:"colors.red.500",_dark:{[n7.variable]:"colors.red.300"},color:n7.reference}),helperText:(0,K.k0)({mt:"2",[n7.variable]:"colors.gray.600",_dark:{[n7.variable]:"colors.whiteAlpha.600"},color:n7.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:it,defineMultiStyleConfig:ir}=(0,K.D)(em.keys),ii=(0,K.gJ)("form-error-color"),io=ir({baseStyle:it({text:(0,K.k0)({[ii.variable]:"colors.red.500",_dark:{[ii.variable]:"colors.red.300"},color:ii.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,K.k0)({marginEnd:"0.5em",[ii.variable]:"colors.red.500",_dark:{[ii.variable]:"colors.red.300"},color:ii.reference})})}),ia=(0,K.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),is=(0,K.fj)({baseStyle:ia}),il=(0,K.k0)({fontFamily:"heading",fontWeight:"bold"}),iu={"4xl":(0,K.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,K.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,K.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,K.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,K.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,K.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,K.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,K.k0)({fontSize:"sm",lineHeight:1.2})},ic=(0,K.fj)({baseStyle:il,sizes:iu,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:id,definePartsStyle:ih}=(0,K.D)(ec.keys),ip=(0,K.gJ)("breadcrumb-link-decor"),im=id({baseStyle:ih({link:(0,K.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ip.reference,[ip.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ip.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),ig=(0,K.k0)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),iv=(0,K.k0)(e=>{let{colorScheme:t,theme:r}=e;if("gray"===t)return{color:e0("gray.800","whiteAlpha.900")(e),_hover:{bg:e0("gray.100","whiteAlpha.200")(e)},_active:{bg:e0("gray.200","whiteAlpha.300")(e)}};let n=tm(`${t}.200`,.12)(r),i=tm(`${t}.200`,.24)(r);return{color:e0(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:e0(`${t}.50`,n)(e)},_active:{bg:e0(`${t}.100`,i)(e)}}}),iy=(0,K.k0)(e=>{let{colorScheme:t}=e,r=e0("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...rc(iv,e)}}),ib={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},ix=(0,K.k0)(e=>{var t;let{colorScheme:r}=e;if("gray"===r){let t=e0("gray.100","whiteAlpha.200")(e);return{bg:t,color:e0("gray.800","whiteAlpha.900")(e),_hover:{bg:e0("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:e0("gray.300","whiteAlpha.400")(e)}}}let{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=ib[r])?t:{},s=e0(n,`${r}.200`)(e);return{bg:s,color:e0(i,"gray.800")(e),_hover:{bg:e0(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:e0(a,`${r}.400`)(e)}}}),i_=(0,K.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:e0(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:e0(`${t}.700`,`${t}.500`)(e)}}}),iE=(0,K.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),iS={lg:(0,K.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,K.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,K.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,K.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},iw=(0,K.fj)({baseStyle:ig,variants:{ghost:iv,outline:iy,solid:ix,link:i_,unstyled:iE},sizes:iS,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:ik,defineMultiStyleConfig:iT}=(0,K.D)(eN.keys),iI=(0,K.gJ)("card-bg"),iC=(0,K.gJ)("card-padding"),iA=(0,K.gJ)("card-shadow"),iO=(0,K.gJ)("card-radius"),iN=(0,K.gJ)("card-border-width","0"),iP=(0,K.gJ)("card-border-color"),iR=ik({container:{[iI.variable]:"colors.chakra-body-bg",backgroundColor:iI.reference,boxShadow:iA.reference,borderRadius:iO.reference,color:"chakra-body-text",borderWidth:iN.reference,borderColor:iP.reference},body:{padding:iC.reference,flex:"1 1 0%"},header:{padding:iC.reference},footer:{padding:iC.reference}}),iD={sm:ik({container:{[iO.variable]:"radii.base",[iC.variable]:"space.3"}}),md:ik({container:{[iO.variable]:"radii.md",[iC.variable]:"space.5"}}),lg:ik({container:{[iO.variable]:"radii.xl",[iC.variable]:"space.7"}})},iL=iT({baseStyle:iR,variants:{elevated:ik({container:{[iA.variable]:"shadows.base",_dark:{[iI.variable]:"colors.gray.700"}}}),outline:ik({container:{[iN.variable]:"1px",[iP.variable]:"colors.chakra-border-color"}}),filled:ik({container:{[iI.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[iC.variable]:0},header:{[iC.variable]:0},footer:{[iC.variable]:0}}},sizes:iD,defaultProps:{variant:"elevated",size:"md"}}),iF=eR("close-button-size"),ij=eR("close-button-bg"),iM=(0,K.k0)({w:[iF.reference],h:[iF.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"}
295,_hover:{[ij.variable]:"colors.blackAlpha.100",_dark:{[ij.variable]:"colors.whiteAlpha.100"}},_active:{[ij.variable]:"colors.blackAlpha.200",_dark:{[ij.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ij.reference}),iB={lg:(0,K.k0)({[iF.variable]:"sizes.10",fontSize:"md"}),md:(0,K.k0)({[iF.variable]:"sizes.8",fontSize:"xs"}),sm:(0,K.k0)({[iF.variable]:"sizes.6",fontSize:"2xs"})},iU=(0,K.fj)({baseStyle:iM,sizes:iB,defaultProps:{size:"md"}}),{variants:iq,defaultProps:iV}=tR,iz=(0,K.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:tC.bg.reference,color:tC.color.reference,boxShadow:tC.shadow.reference}),i$=(0,K.fj)({baseStyle:iz,variants:iq,defaultProps:iV}),iG=(0,K.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),iW=(0,K.fj)({baseStyle:iG}),iH=(0,K.k0)({opacity:.6,borderColor:"inherit"}),iQ=(0,K.k0)({borderStyle:"solid"}),iY=(0,K.k0)({borderStyle:"dashed"}),iX=(0,K.fj)({baseStyle:iH,variants:{solid:iQ,dashed:iY},defaultProps:{variant:"solid"}}),{definePartsStyle:iK,defineMultiStyleConfig:iZ}=(0,K.D)(es.keys),iJ=iZ({baseStyle:iK({container:(0,K.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,K.k0)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,K.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,K.k0)({fontSize:"1.25em"})})}),{definePartsStyle:i0,defineMultiStyleConfig:i1}=(0,K.D)(el.keys),i2=(0,K.gJ)("alert-fg"),i5=(0,K.gJ)("alert-bg");function i3(e){let{theme:t,colorScheme:r}=e,n=tm(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var i4=i1({baseStyle:i0({container:{bg:i5.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:i2.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:i2.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:i0(e=>{let{colorScheme:t}=e,r=i3(e);return{container:{[i2.variable]:`colors.${t}.600`,[i5.variable]:r.light,_dark:{[i2.variable]:`colors.${t}.200`,[i5.variable]:r.dark}}}}),"left-accent":i0(e=>{let{colorScheme:t}=e,r=i3(e);return{container:{[i2.variable]:`colors.${t}.600`,[i5.variable]:r.light,_dark:{[i2.variable]:`colors.${t}.200`,[i5.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:i2.reference}}}),"top-accent":i0(e=>{let{colorScheme:t}=e,r=i3(e);return{container:{[i2.variable]:`colors.${t}.600`,[i5.variable]:r.light,_dark:{[i2.variable]:`colors.${t}.200`,[i5.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:i2.reference}}}),solid:i0(e=>{let{colorScheme:t}=e;return{container:{[i2.variable]:"colors.white",[i5.variable]:`colors.${t}
295.600`,_dark:{[i2.variable]:"colors.gray.900",[i5.variable]:`colors.${t}.200`},color:i2.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:i6,defineMultiStyleConfig:i8}=(0,K.D)(eu.keys),i9=(0,K.gJ)("avatar-border-color"),i7=(0,K.gJ)("avatar-bg"),oe=(0,K.gJ)("avatar-font-size"),ot=(0,K.gJ)("avatar-size"),or=(0,K.k0)({borderRadius:"full",border:"0.2em solid",borderColor:i9.reference,[i9.variable]:"white",_dark:{[i9.variable]:"colors.gray.800"}}),on=(0,K.k0)({bg:i7.reference,fontSize:oe.reference,width:ot.reference,height:ot.reference,lineHeight:"1",[i7.variable]:"colors.gray.200",_dark:{[i7.variable]:"colors.whiteAlpha.400"}}),oi=(0,K.k0)(e=>{let{name:t,theme:r}=e,n=t?function(e){var t;let r=tv();return!e||tc(e)?r:e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;return r=(r%t.length+t.length)%t.length,t[r]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t&=t;let r="#";for(let e=0;e<3;e+=1){let n=t>>8*e&255;r+=`00${n.toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:r}({string:t}):"colors.gray.400",i=tp(n)(r),o="white";return i||(o="gray.800"),{bg:i7.reference,fontSize:oe.reference,color:o,borderColor:i9.reference,verticalAlign:"top",width:ot.reference,height:ot.reference,"&:not([data-loaded])":{[i7.variable]:n},[i9.variable]:"colors.white",_dark:{[i9.variable]:"colors.gray.800"}}}),oo=(0,K.k0)({fontSize:oe.reference,lineHeight:"1"});function oa(e){let t="100%"!==e?Y[e]:void 0;return i6({container:{[ot.variable]:null!=t?t:e,[oe.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[ot.variable]:null!=t?t:e,[oe.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var os=i8({baseStyle:i6(e=>({badge:rc(or,e),excessLabel:rc(on,e),container:rc(oi,e),label:oo})),sizes:{"2xs":oa(4),xs:oa(6),sm:oa(8),md:oa(12),lg:oa(16),xl:oa(24),"2xl":oa(32),full:oa("100%")},defaultProps:{size:"md"}}),ol={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},ou={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},oc={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},od={semanticTokens:ol,direction:"ltr",...X,components:{Accordion:iJ,Alert:i4,Avatar:os,Badge:tR,Breadcrumb:im,Button:iw,Checkbox:ry,CloseButton:iU,Code:i$,Container:iW,Divider:iX,Drawer:n5,Editable:n6,Form:ie,FormError:io,FormLabel:is,Heading:ic,Input:t
2951,Kbd:r1,Link:r5,List:r6,Menu:ns,Modal:nx,NumberInput:nD,PinInput:nM,Popover:n$,Progress:rl,Radio:rE,Select:rC,Skeleton:rP,SkipLink:rL,Slider:rG,Spinner:rY,Stat:rZ,Switch:eJ,Table:e6,Tabs:tI,Tag:tG,Textarea:t4,Tooltip:re,Card:iL,Stepper:eo},styles:ou,config:oc},of={semanticTokens:ol,direction:"ltr",components:{},...X,styles:ou,config:oc},oh=r(21089),op=e=>function({children:t,theme:r=e,toastOptions:n,...i}){return(0,T.jsxs)(W,{theme:r,...i,children:[(0,T.jsx)(oh.Qi,{value:null==n?void 0:n.defaultOptions,children:t}),(0,T.jsx)(oh.VW,{...n})]})};op(od);var om=op(of),og=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],ov=r(38554);function oy(e){return"function"==typeof e}var ob=e=>function(...t){var r;let n=[...t],i=t[t.length-1];return(r=i,(0,eD.Kn)(r)&&og.every(e=>Object.prototype.hasOwnProperty.call(r,e))&&n.length>1)?n=n.slice(0,n.length-1):i=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...n.map(e=>t=>oy(e)?e(t):function(...e){return ov({},...e,o_)}(t,e)))(i)},ox=ob(od);function o_(e,t,r,n){if((oy(e)||oy(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>ov({},oy(e)?e(...r):e,oy(t)?t(...r):t,o_)}ob(of);let oE=(0,K.k0)({background:"berryBridge.200",color:"berryBridge.500"}),oS=(0,K.k0)({background:"braveBlue.500",color:"gray.0"}),ow=(0,K.k0)({background:"gray.100"}),ok=(0,K.k0)(e=>{let t=e.height||"26px";return{background:"coral",color:"gray.0",fontWeight:"bold",borderRadius:"full",border:"1px solid #fff",height:t,width:t,display:"inline-flex",justifyContent:"center",alignItems:"center",padding:"0px",margin:"0px"}}),oT=(0,K.k0)({...ok,height:"auto",width:"auto"}),oI=(0,K.fj)({baseStyle:{fontFamily:"Figtree, serif",fontWeight:"normal",fontSize:"14px",borderRadius:"xl",padding:"2px 10px",margin:"0px 6px",height:"24px",textTransform:"initial"},variants:{primary:oE,secondary:oS,notificationCount:ok,notificationCountPill:oT,tertiary:ow}}),oC=(0,K.k0)({fontWeight:"normal",color:"gray.0",borderRadius:"md",height:"auto",border:"none",cursor:"pointer",textDecoration:"none",_focus:{boxShadow:"none"}}),oA=(0,K.k0)({bg:"berryBridge.500",p:"10px 16px",_hover:{bg:"berryBridge.400",_disabled:{bg:"berryBridge.300"}},_disabled:{bg:"berryBridge.300",color:"berryBridge.500",opacity:"none"}}),oO=(0,K.k0)({bg:"braveBlue.500",_hover:{bg:"braveBlue.400",_disabled:{bg:"braveBlue.300"}},_disabled:{bg:"braveBlue.300",color:"braveBlue.500",opacity:"none"}}),oN=(0,K.k0)({color:"berryBridge.500",bg:"transparent",border:"none",_hover:{color:"berryBridge.400"},_disabled:{color:"berryBridge.300"}}),oP=(0,K.k0)({color:"berryBridge.500",bg:"transparent",border:"1px solid",borderColor:"berryBridge.500",_hover:{color:"berryBridge.400",border:"1px solid",borderColor:"berryBridge.500"},_disabled:{color:"berryBridge.300",border:"1px solid",borderColor:"berryBridge.500",_hover:{color:"berryBridge.300"}}}),oR=(0,K.k0)({bg:"quickCommentLightBlue",border:"none",color:"inherit",fontWeight:"500",_hover:{border:"1px solid",borderColor:"braveBlue.500",color:"braveBlue.500"}}),oD=(0,K.k0)({bg:"quickCommentLightBerry",border:"none",color:"inherit",fontWeight:"500",_hover:{border:"1px solid",borderColor:"berryBridge.500",color:"berryBridge.500"}}),oL=(0,K.k0)({bg:"quickCommentLightYellow",border:"none",color:"inherit",fontWeight:"500",_hover:{border:"1px solid",borderColor:"yellowHover",color:"yellowHover"}}),oF=(0,K.k0)({bg:"quickCommentLightCoral",border:"none",color:"inherit",fontWeight:"500",_hover:{border:"1px solid",borderColor:"coral",color:"coral"}}),oj=(0,K.k0)({color:"braveBlue.600",bg:"transparent",fontWeight:"normal",textDecoration:"underline",border:"none",flexBasis:"content",_hover:{color:"berryBridge.500"},_disabled:{color:"berryBridge.300"}}),oM=(0,K.k0)({p:".75rem"}),oB=(0,K.fj)({baseStyle:oC,defaultProps:{variant:"primary",size:"md"},variants:{primary:oA,secondary:oO,tertiary:oN,quaternary:oP,link:oj,icon:oM,lightBlue:oR,lightBerry:oD,lightYellow:oL,lightCoral:oF}}),{definePartsStyle:oU,defineMultiStyleConfig:oq}=(0,K.D)(eA.keys),oV=oq({baseStyle:oU({tab:{_selected:{fontWeight:"semibold"}}}),variants:{contentTabs:oU({tablist:{gap:{base:0,lg:2},borderRadius:"md",p:1,flexDir:"row",width:"100%",bg:"transparent"},tab:{position:"relative",border:"none",borderRadius:"md",bgColor:"transparent",color:"inherit",padding:{base:1.5,lg:2},_hover:{color:"berryBridge.500",bgColor:"transparent"}},tabpanels:{position:"relative",zIndex:1,mt:4},tabpanel:{p:0}})}}),{definePartsStyle:oz,defineMultiStyleConfig:o$}
295=(0,K.D)(eb.keys),oG=oz({overlay:{height:"100%",width:"100%"},dialogContainer:{display:"flex",m:"auto"},dialog:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:{base:"95%",md:"525px"},p:{base:"2rem",sm:"1rem"},marginY:"auto",marginX:{base:4,lg:"auto"}},closeButton:{color:"gray.800",bg:"transparent",border:"none",borderRadius:"full",textDecoration:"none",fontSize:"2xl",right:".5rem",top:".5rem",height:"1.5em",width:"1.5em",_hover:{bg:"gray.200",borderRadius:"100%",cursor:"pointer"}},header:{fontSize:{base:"24px",lg:"28px"},fontWeight:"regular",color:"berryBridge.500",p:"0px",textAlign:"center"},body:{display:"flex",flexDirection:"column",fontSize:{base:"16px",lg:"18px"},fontWeight:"regular",p:"0px",gap:1,textAlign:"center",width:"100%"},footer:{flexDir:"column",gap:4,paddingBottom:0,width:"100%"}}),oW=oz({dialog:{maxWidth:{base:"95%",md:"525px"},minWidth:"300px"}}),oH=ox({breakpoints:{sm:"420px",md:"768px",lg:"1024px",xl:"1296px","2xl":"1920px"},colors:{berryBridge:{200:"#e3c5d3",300:"#c99bb0",400:"#b06486",450:"#ab3f70",500:"#963862",900:"#4a1c30"},braveBlue:{200:"#d8ddf0",300:"#afb8d6",400:"#8b9cd6",500:"#617bd6",600:"#495dba",700:"#3c50a6",800:"#314394",900:"#22398a"},success:{200:"#4ade80",300:"#22c55e",400:"#16a34a",500:"#10652f",900:"#0e3b20"},warning:{100:"#fef3c7",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",700:"#d68a09"},error:{200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",700:"#c92424"},gray:{0:"#fff",50:"#fafafa",100:"#f5f5f5",200:"#e8eeed",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",1e3:"#000"},button:{blue:{200:"#d5d9e5",300:"#b6bdd6",400:"#7e93de",500:"#4d69d1",900:"#22398a"}},sky:"#c6dde7",skyLight:"#edf0f2",slate:"#96b2d9",coral:"#ff7c6f",lightCoral:"#FFD8D4",yellow:"#edd780",yellowHover:"#B06F41",navy:"#22538b",indigo:"#24384c",quickCommentLightBlue:"rgba(198, 221, 231, 0.40)",quickCommentLightBerry:"rgba(227, 197, 211, 0.40)",quickCommentLightYellow:"rgba(237, 215, 128, 0.40)",quickCommentLightCoral:"#FFD8D4"},components:{Accordion:{parts:["container","button","panel","icon"],baseStyle:{button:{_hover:{bg:"white",color:"#963862"},fontFamily:"Figtree, serif",fontSize:"18px",backgroundColor:"white",border:"none",borderBottom:"1px solid #e2e2e2"},panel:{p:4,fontFamily:"Figtree, serif",fontSize:"18px",color:"black.500",textDecoration:"none",textDecorationLine:"none",_hover:{color:"red.500"}}},sizes:{sm:{button:{fontSize:"sm",px:4,py:3}},lg:{button:{fontSize:"lg",px:6,py:4}}},variants:{outline:{button:{border:"2px solid",borderColor:"green.500"}},solid:{button:{backgroundColor:"green.500",color:"white"}}}},Badge:oI,Button:oB,Tabs:oV,Modal:o$({baseStyle:oG,variants:{classic:oW,contentEditor:oz({dialogContainer:{height:"100%",width:{base:"100vw",sm:"100%"},display:"flex",justifyContent:"center",alignItems:"flex-start",paddingBottom:4},dialog:{alignItems:"flex-start",gap:4,height:"fit-content",minWidth:{base:"300px",md:"725px"},p:{base:"1.5rem",sm:"2rem"},margin:{base:4,md:"auto"}},body:{justifyContent:"space-between",alignItems:"flex-start"},footer:{flexDir:"row",padding:"22px 0px 0px 0px"}}),giftCards:oz({dialogContainer:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},dialog:{borderRadius:"8px",boxShadow:"xl",overflow:"hidden",width:{base:"95%",md:"728px"},maxWidth:"90vw",maxHeight:{base:"80vh",md:"443px"},padding:0,paddingTop:"20px",paddingBottom:"10px",paddingLeft:{base:"16px",md:"37px"},paddingRight:{base:"16px",md:"37px"},alignItems:"flex-start"},header:{fontWeight:500,fontSize:{base:"20px",md:"24px"},width:"100%",textAlign:"left",paddingLeft:{base:"12px",md:"20px"},paddingBottom:{base:"8px",md:"10px"}},closeButton:{size:"xs",fontSize:{base:"18px",md:"20px"},top:"15px",right:"15px",boxSize:"24px",color:"gray.400",_hover:{bg:"gray.100"}},body:{height:{base:"auto",md:"350px"},overflowY:"auto",px:{base:2,md:4},pt:1,pb:2,".bodyText":{marginBottom:{base:"12px",md:"20px"}},".toggleText":{fontSize:{base:"14px",md:"16px"},fontWeight:"medium"}}}),tribute:oz({dialog:{maxWidth:{base:"445px",md:"445px",lg:"1026px"},p:0,minWidth:"unset",marginX:4,marginY:4}})},defaultProps:{variant:"classic"}}),Card:(0,K.fj)({sizes:{},baseStyle:{container:{boxShadow:"0px 1px 5px 0px rgba(0, 0, 0, 0.05);",background:"#FFFFFF",borderRadius:"0.375em"},header:{width:"100%"},body:{alignSelf:"center"},footer:{width:"100%",display:"block"}},variants:{primary:{container:{alignItems:"flex-start",maxHeight:"1150px",maxWidth:"1023px"},header:{textAlign:"center",padding:"2.5rem 0 0"},body:{padding:"none",width:{base:"18rem",sm:"22rem",md:"26rem"}},footer:{padding:"0 0 3.5rem 0"}}}})},typography:{fonts:{body:"'Figtree', sans-serif",heading:"'Figtree', sans-serif"}}}),oQ=e=>{let{children:t}=e;return(0,T.jsx)(om,{theme:oH,resetCSS:!1,disableGlobalStyle:!0,children:t})};oQ.propTypes={children:A().node.isRequired}},53658:function(e,t,r){"use strict";let n,i,o;r.d(t,{x:function(){return D},Z:function(){return L}});var a=r(82729),s=r(85893),l=r(40645),u=r.n(l),c=r(60221),d=r(43287),f=r(17283),h=r(73359),p=r(37106),m=r(45697),g=r.n(m),v=r(67294),y=r(75545),b=r(21811),x=r(87036),_=r(61922),E=r(4162),S=r(28618),w=r(8358),k=r(22878),T=r(41420);function I(e,t){n.style.left=e-i+"px",n.style.top=t-o+"px"}function C(e){I(e.clientX,e.clientY)}function A(e){n=e.currentTarget;let t=e.clientY,r=e.clientX;i=r-n.getBoundingClientRect().left,o=t-n.getBoundingClientRect().top,I(r,t),document.removeEventListener("mousemove",C),document.addEventListener("mousemove",C),n.onmouseup=function(){document.removeEventListener("mousemove",C),n.onmouseup=null}}function O(){let{firstName:e,lastName:t}=(0,d.SE)();return(0,s.jsxs)("div",{onMouseDown:A,onDragStart:()=>!1,className:"jsx-39240f1d6e01e88a spyglass",children:[(0,s.jsx)(S.Z,{className:"cardBkgd",children:(0,s.jsxs)("div",{className:"jsx-39240f1d6e01e88a center",children:[(0,s.jsx)("h1",{className:"jsx-39240f1d6e01e88a marginTop--0 marginBottom--0",children:"Impersonation mode"}),(0,s.jsxs)("p",{className:"jsx-39240f1d6e01e88a",children:[e," ",t]}),(0,s.jsx)(k.Z,{size:T.i.SMALL,"data-qa":"exitImpersonation",onClick:()=>{var e,t;sessionStorage.removeItem(x.P_.IMPERSONATION),location.assign("".concat(null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.protocol,"//").concat(w.cy.get((0,w.o8)())))},children:"Exit"})]})}),(0,s.jsx)(u(),{id:"39240f1d6e01e88a",children:".spyglass.jsx-39240f1d6e01e88a{max-width:100%;max-height:60vh;position:fixed;z-index:var(--zindex-impersonation);left:2vw;top:6px;font-size:1rem;opacity:.95;cursor:move;overflow-y:scroll}h1.jsx-39240f1d6e01e88a,p.jsx-39240f1d6e01e88a{font-size:16px;font-weight:bold}p.jsx-39240f1d6e01e88a{margin:6px 0}.cardBkgd{background-color:var(--warning-100)!important}"})]})}var N=r(4298),P=r.n(N);function R(){let e=(0,a._)(["\n    query GET_ME {\n        me {\n            emailAddress\n            emailOptIn\n            firstName\n            unconfirmedSocialSignUp\n            id\n            lastName\n            photo {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            notificationSetting {\n                jen\n                dailyEmail\n                smsEnabled\n                emailEnabled\n            }\n            platformGeneration\n            wthSettings {\n                ctaDismissedAt\n            }\n            telephone {\n                phoneNumber\n                countryCode\n                verified\n            }\n        }\n    }\n"]);return R=function(){return e},e}"function"==typeof SuppressedError&&SuppressedError;let D=(0,f.Ps)(R());function L(e){let{children:t}=e,r=(0,b.LP)(x.P_.ACCESS_TOKEN),{isSignedIn:n}=(0,d.SE)(),i=(0,d.O_)();(0,v.useEffect)(()=>{let e;let t=(0,w.o8)(),r="".concat("CB2","_").concat(t);switch(t){case w.v1.LOCAL:e="localhost";break;case w.v1.TEST:e="caringbridge.cc";break;default:e="caringbridge.org"}if(!function(e,t){if(void 0===t&&(t=decodeURIComponent),"string"!=typeof e||!e)return null;var r=new RegExp("(?:^|; )".concat(e.replace(/[.*+?^$|[\](){}\\-]/g,"\\$&"),"(?:=([^;]*))?(?:;|$)")).exec(document.cookie);return null===r?null:"function"==typeof t?t(r[1]):r[1]}(r)){var n,i,o,a,s;"object"==typeof(n={domain:e,expires:"1Y"})&&null!==n&&(i=n,n=encodeURIComponent),o=function(e){for(var t,r="",n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];if(/^expires$/i.test(o)){var a=e[o],s=void 0;"object"==typeof a?s=a:(a+="number"==typeof a?"D":"",s=function(e){var t=e.charAt(e.length-1),r=parseInt(e,10),n=new Date;switch(t){case"Y":n.setFullYear(n.getFullYear()+r);break;case"M":n.setMonth(n.getMonth()+r);break;case"D":n.setDate(n.getDate()+r);break;case"h":n.setHours(n.getHours()+r);break;case"m":n.setMinutes(n.getMinutes()+r);break;case"s":n.setSeconds(n.getSeconds()+r);break;default:n=new Date(e)}return n}(String(a))),r+=";".concat(o,"=").concat(s.toUTCString())}else/^secure$/.test(o)?e[o]&&(r+=";".concat(o)):r+=";".concat(o,"=").concat(e[o])}return t="path",Object.prototype.hasOwnProperty.call(e,t)||(r+=";path=/"),r}(i||{}),a="function"==typeof n?n(1):1,s="".concat(r,"=").concat(a).concat(o),document.cookie=s}},[]);let[o,{data:a,error:l,called:f}]=(0,h.t)(D),m=(0,E.Ph)(E.Tx.IMPERSONATION),g=(0,v.useRef)(!1);r&&(m&&sessionStorage.setItem(x.P_.IMPERSONATION,m),g.current=!!sessionStorage.getItem(x.P_.IMPERSONATION),f||o()),(0,v.useEffect)(()=>{(null==a?void 0:a.me)&&i({type:d.xf.SET_USER,user:a.me}),(0,y.QP)(null==l?void 0:l.graphQLErrors,["me"],"401")&&i({type:d.xf.SIGN_OUT})},[a,l,i]),(0,v.useEffect)(()=>{r||i({type:d.xf.SIGN_OUT})},[r,i]);let S=!0===n||!1===n;return l&&null===n?(0,s.jsxs)(c.U,{children:[(0,s.jsx)(p.Z,{}),(0,s.jsx)("p",{children:JSON.stringify(l)})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(P(),{src:"https://kit.fontawesome.com/e76237fffd.js",crossOrigin:"anonymous"}),(0,s.jsx)("div",{id:"overlay-portal"}),g.current&&a&&(0,s.jsx)(O,{}),S&&t,S||(0,s.jsxs)("div",{className:"jsx-e55dc2dbbafbe6fd",children:[(0,s.jsx)(c.U,{children:(0,s.jsx)(_.ZP,{})}),(0,s.jsx)(u(),{id:"e55dc2dbbafbe6fd",children:"div.jsx-e55dc2dbbafbe6fd{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;
295-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:100vh}"})]})]})}L.propTypes={children:g().node.isRequired}},57107:function(e,t,r){"use strict";r.d(t,{K1:function(){return b},_q:function(){return x}});var n=r(85893),i=r(67294),o=r(11163);let a=i.useLayoutEffect,s=new Set("XBMEFCXG,XEUMSTPE".split(",").map(e=>e.trim()).filter(Boolean)),l="data-fru-original-display",u="data-fru-original-priority";function c(){let e=[];return s.forEach(t=>{let r=document.getElementById(t);r&&e.push(r)}),e}function d(e){e.hasAttribute(l)||(e.setAttribute(l,e.style.getPropertyValue("display")),e.setAttribute(u,e.style.getPropertyPriority("display")),e.style.setProperty("display","none","important"))}function f(e){if(!e.hasAttribute(l))return;let t=e.getAttribute(l),r=e.getAttribute(u);e.removeAttribute(l),e.removeAttribute(u),t?e.style.setProperty("display",t,r||""):e.style.removeProperty("display")}let h=i.useLayoutEffect;function p(e,t){return(e||t).split(",").map(e=>e.trim()).filter(Boolean)}function m(e,t){return t.some(t=>t.endsWith("*")?e.startsWith(t.slice(0,-1)):e===t)}let g=p({NEXT_PUBLIC_FF_IRB_SURVEY:"false",NEXT_PUBLIC_FF_INSTACART:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_GIFT_CARDS_PHASE_2:"true",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_KIMBIA_DONATION_FORM_LOAD_THRESHOLD:"2000",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_BEST_BUY:"true",NEXT_PUBLIC_FF_MATCHING_SURVEY:"false",NEXT_PUBLIC_FF_NOTIFICATION_TOGGLES:"false",NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"false"}.NEXT_PUBLIC_FRU_ALLOWED_PATHS,"/,/search,/site/*"),v=p({NEXT_PUBLIC_FF_IRB_SURVEY:"false",NEXT_PUBLIC_FF_INSTACART:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_GIFT_CARDS_PHASE_2:"true",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_KIMBIA_DONATION_FORM_LOAD_THRESHOLD:"2000",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_BEST_BUY:"true",NEXT_PUBLIC_FF_MATCHING_SURVEY:"false",NEXT_PUBLIC_FF_NOTIFICATION_TOGGLES:"false",NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"false"}.NEXT_PUBLIC_FRU_BLOCKED_PATHS,"/site/[siteId]/settings*"),y=(0,i.createContext)({setHideFru:e=>{}});function b(e){var t;let{children:r}=e,l=(0,o.useRouter)(),[u,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{h(!1)},[l.pathname]);let p=(0,i.useCallback)(e=>{let{banner:t}=e;h(!!t)},[]);return!function(e){let{hideBanner:t=!1}=e;a(()=>{if(c().forEach(t?d:f),!t)return;let e=new MutationObserver(e=>{for(let t of e)if("childList"===t.type)for(let e=0;e<t.addedNodes.length;e++){let r=t.addedNodes[e];r instanceof Element&&r.id&&s.has(r.id)&&c().forEach(d)}});return e.observe(document.body,{childList:!0}),()=>e.disconnect()},[t])}({hideBanner:!(!m(t=l.pathname,v)&&m(t,g))||u}),(0,n.jsx)(y.Provider,{value:{setHideFru:p},children:r})}function x(e){let{setHideFru:t}=(0,i.useContext)(y);h(()=>{t({banner:!1!==e})},[e,t])}},90907:function(e,t,r){"use strict";r.d(t,{K:function(){return c},N:function(){return u}});var n=r(85893),i=r(67294),o=r(11163),a=r(87036);let s=(0,i.createContext)({isReady:!1}),l=e=>{let t=null;return e.includes("/request")&&(t=e.match(/\/site\/.*?\/request\/(.*?)(?:\?|$)/)),e.includes("/post")&&(t=e.match(/\/site\/.*?\/post\/(.*?)(?:\?|$)/)),e.includes("/ways-to-help-post")&&(t=e.match(/\/site\/.*?\/ways-to-help-post\/(.*?)(?:\?|$)/)),t?t[1]:null};function u(e){let{children:t}=e,r=(0,o.useRouter)(),[u,c]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=Array.isArray(r.query.otpv_token)?r.query.otpv_token[0]:r.query.otpv_token;!e&&r.asPath&&(e=new URLSearchParams(r.asPath.split("?")[1]).get("otpv_token"))&&(e=e.split("/")[0]);let t=l(r.asPath);if(e&&t){let r=e.split("/")[0];sessionStorage.setItem(a.P_.OTPV_TOKEN_ID,r),sessionStorage.setItem(a.P_.OTPV_RESOURCE_ID,t)}else sessionStorage.removeItem(a.P_.OTPV_TOKEN_ID),sessionStorage.removeItem(a.P_.OTPV_RESOURCE_ID);c(!0)},[r]),(0,n.jsx)(s.Provider,{value:{isReady:u},children:t})}let c=()=>(0,i.useContext)(s)},72532:function(e,t,r){"use strict";r.d(t,{R4:function(){return f},WX:function(){return p},ZL:function(){return h},x_:function(){return l}});var n=r(85893),i=r(67294),o=r(45697),a=r.n(o);let s={bannerMap:new Map},l={APPEND_BANNER:"APPEND_BANNER",REMOVE_BANNER:"REMOVE_BANNER",CLEAR_ALL:"CLEAR_ALL"},u=(0,i.createContext)(s),c=(0,i.createContext)(void 0);function d(e,t){switch(t.type){case l.APPEND_BANNER:return t.bannerData&&!e.bannerMap.has(t.bannerData.sys.id)&&e.bannerMap.set(t.bannerData.sys.id,t.bannerData),{...e};case l.REMOVE_BANNER:return t.bannerData&&e.bannerMap.has(t.bannerData.sys.id)&&(e.bannerMap.delete(t.bannerData.sys.id),sessionStorage.setItem("showBanner-".concat(t.bannerData.sys.id),"false")),{...e};case l.CLEAR_ALL:return s.bannerMap.clear(),s;default:throw Error("Invalid action type provided to the bannerReducer: “".concat(t.type,"”"))}}function f(e){let{value:t,children:r}=e,o={...s,...t},[a,l]=(0,i.useReducer)(d,o);return(0,n.jsx)(u.Provider,{value:a,children:(0,n.jsx)(c.Provider,{value:l,children:r})})}function h(){let e=(0,i.useContext)(u);if(void 0===e)throw Error("useBannerState must be used within <BannerProvider>");return e}function p(){let e=(0,i.useContext)(c);if(void 0===e)throw Error("useBannerDispatch must be used within <BannerProvider>");return e}f.propTypes={value:a().object,children:a().node.isRequired}},43287:function(e,t,r){"use strict";let n;r.d(t,{O_:function(){return b},SE:function(){return y},fS:function(){return v},xf:function(){return h}});
295var i=r(85893),o=r(67294),a=r(45697),s=r.n(a),l=r(87036),u=r(66252),c=r(4162),d=r(6713);let f={isSignedIn:null,id:"",firstName:"",lastName:"",emailAddress:"",emailOptIn:!1,photo:{},notificationSetting:{},wthSettings:{},unconfirmedSocialSignUp:!1,telephone:{phoneNumber:"",countryCode:"",verified:!1}},h={SET_USER:"SET_USER",SET_VALUE:"SET_VALUE",SIGN_OUT:"SIGN_OUT"},p=(0,o.createContext)(f),m=(0,o.createContext)(void 0);function g(e,t){switch(t.type){case h.SET_USER:{var r;let{id:n,emailAddress:i,emailOptIn:o,firstName:a,lastName:s,photo:l,notificationSetting:u,wthSettings:c,unconfirmedSocialSignUp:d,platformGeneration:h,telephone:p}=null!==(r=t.user)&&void 0!==r?r:f,m=l?{...l}:f.photo;return delete m.__typename,{...e,isSignedIn:!!i,id:n,firstName:a,lastName:s,emailAddress:i,photo:m,notificationSetting:u,wthSettings:c,unconfirmedSocialSignUp:d,platformGeneration:h,telephone:p,emailOptIn:o}}case h.SET_VALUE:{let r={};for(let[e,n]of Object.entries(t))"type"!==e&&(r[e]=n);return{...e,...r,...r.notificationSetting?{notificationSetting:{...e.notificationSetting,...r.notificationSetting}}:{}}}case h.SIGN_OUT:{localStorage.removeItem(l.P_.ACCESS_TOKEN),localStorage.removeItem(l.P_.REFRESH_TOKEN);let e=/^\/site\/[^/]+\/?$/.test(window.location.pathname);return window.location.pathname===c.Z6.PROFILE_REGISTER_SSO_LOGIN||window.location.pathname===c.Z6.PROFILE_SIGN_IN||e||localStorage.removeItem(l.P_.RETURN_TO),null==n||n.clearStore(),{...f,isSignedIn:!1}}default:throw Error("Invalid action type provided to the userReducer")}}function v(e){let{children:t,userState:r={empty:!0}}=e;n=(0,u.x)();let a=r.empty?f:r,[s,l]=(0,o.useReducer)(g,{...a});return(0,o.useEffect)(()=>{(0,d.l)(s.emailAddress)},[s.emailAddress]),(0,i.jsx)(p.Provider,{value:s,children:(0,i.jsx)(m.Provider,{value:l,children:t})})}function y(){let e=(0,o.useContext)(p);if(void 0===e)throw Error("useUserContext must be used within <UserContext>");return e}function b(){let e=(0,o.useContext)(m);if(void 0===e)throw Error("useUserDispatchContext must be used within <UserContext>");return e}v.propTypes={children:s().node.isRequired,userState:s().object}},31997:function(e,t,r){"use strict";r.d(t,{a:function(){return u},m:function(){return c}});var n=r(85893),i=r(73359),o=r(67294),a=r(43287),s=r(46077);let l=(0,o.createContext)({isSignedIn:null,chatSession:null,fetchChatSession:()=>Promise.resolve({}),refetchChatSession:()=>Promise.resolve({}),hasFetchedChatSession:!1,setHasFetchedChatSession:()=>{}}),u=e=>{let{children:t}=e,{isSignedIn:r}=(0,a.SE)(),[u,c]=(0,o.useState)(null),[d,f]=(0,o.useState)(!1),[h,{refetch:p}]=(0,i.t)(s.P,{onCompleted:e=>{var t;f(!0),c(null!==(t=null==e?void 0:e.getChatSession)&&void 0!==t?t:null)}});return(0,o.useEffect)(()=>{r||(f(!1),c(null))},[r]),(0,n.jsx)(l.Provider,{value:{isSignedIn:r,chatSession:u,fetchChatSession:h,refetchChatSession:p,hasFetchedChatSession:d,setHasFetchedChatSession:f},children:t})},c=()=>{var e;let{isSignedIn:t,chatSession:r,fetchChatSession:n,refetchChatSession:i,hasFetchedChatSession:a}=(0,o.useContext)(l);return e=!!t&&!a,(0,o.useEffect)(()=>{e&&n()},[e]),{chatSession:r,refetchChatSession:i}}},46077:function(e,t,r){"use strict";r.d(t,{P:function(){return s},z:function(){return l}});var n=r(82729),i=r(17283);function o(){let e=(0,n._)(["\n    query GET_CHAT_SESSION {\n        getChatSession {\n            appId\n            sessionToken\n            expiresAt\n            extChatUserId\n            chatConsentedAt\n        }\n    }\n"]);return o=function(){return e},e}function a(){let e=(0,n._)(["\n    mutation ACCEPT_CHAT_CONSENT {\n        acceptChatConsent {\n            chatConsentedAt\n        }\n    }\n"]);return a=function(){return e},e}let s=(0,i.Ps)(o()),l=(0,i.Ps)(a())},81665:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(85893),i=r(9008),o=r.n(i),a=r(73775);function s(){let{metadata:e}=(0,a.bh)(),t=null==e?void 0:e.title,r=null==e?void 0:e.description;return(0,n.jsxs)(o(),{children:[t&&(0,n.jsx)("title",{children:t}),t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{property:"title",content:t}),(0,n.jsx)("meta",{property:"og:title",content:t})]}),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"description",content:r}),(0,n.jsx)("meta",{property:"og:description",content:r})]})]})}},73775:function(e,t,r){"use strict";r.d(t,{bh:function(){return d},fc:function(){return c}});var n=r(85893),i=r(67294),o=r(45697),a=r.n(o),s=r(81665);let l={page:{metadata:{title:"CaringBridge",description:"A CaringBridge website is a personal health journal, rallying friends and family during any type of health journey. Start a free CaringBridge website today."}}},u=(0,i.createContext)(l);function c(e){let{children:t,value:r=l}=e;return(0,n.jsxs)(u.Provider,{value:r,children:[(0,n.jsx)(s.Z,{}),t]})}function d(){return(0,i.useContext)(u)}c.propTypes={value:a().object,children:a().node.isRequired}},43537:function(e,t,r){"use strict";r.d(t,{$0:function(){return m},EU:function(){return f},HT:function(){return h},_V:function(){return g},kZ:function(){return d},z1:function(){return p}});var n=r(82729),i=r(17283);function o(){let e=(0,n._)(["\n    query LIST_SUGGESTIONS {\n        listSuggestions {\n            suggestions {\n                suggestionId\n                suggestedAt\n                connectRequestedAt\n                requestSent\n                matchingProfile {\n                    name\n                    photo {\n                        publicId\n                        width\n                        height\n                        legacyPath\n                    }\n                    userId\n                }\n            }\n        }\n    }\n"]);return o=function(){return e},e}function a(){let e=(0,n._)(["\n    query LIST_MATCHES {\n        listMatches {\n            matches {\n                matchId\n                connectedAt\n                extChatGroupId\n                chat {\n                    lastMessageAt\n                    unreadMessageCount\n                }\n                matchingProfile {\n                    name\n                    photo {\n                        publicId\n                        width\n                        height\n                        legacyPath\n                    }\n                    userId\n                }\n            }\n        }\n    }\n"]);return a=function(){return e},e}function s(){let e=(0,n._)(["\n    query GET_MATCHING_PROFILE($query: GetMatchingProfileQuery) {\n        getMatchingProfile(query: $query) {\n            userId\n            name\n            siteId\n            photo {\n                publicId\n                width\n                height\n                legacyPath\n            }\n            responses {\n                question_key\n                answer\n            }\n        }\n    }\n"]);return s=function(){return e},e}function l(){let e=(0,n._)(["\n    mutation UPDATE_SUGGESTION($input
295: UpdateSuggestionInput!) {\n        updateSuggestion(input: $input) {\n            suggestion {\n                suggestionId\n                suggestedAt\n                connectRequestedAt\n                requestSent\n                matchingProfile {\n                    name\n                    userId\n                    siteId\n                    photo {\n                        publicId\n                        width\n                        height\n                        legacyPath\n                    }\n                }\n            }\n            status\n        }\n    }\n"]);return l=function(){return e},e}function u(){let e=(0,n._)(["\n    mutation UPDATE_MATCH($input: UpdateMatchInput!) {\n        updateMatch(input: $input) {\n            match {\n                matchId\n            }\n        }\n    }\n"]);return u=function(){return e},e}function c(){let e=(0,n._)(["\n    mutation DELETE_MATCHING_PROFILE {\n        deleteMatchingProfile {\n            success\n            errors {\n                step\n                error\n            }\n        }\n    }\n"]);return c=function(){return e},e}let d=(0,i.Ps)(o()),f=(0,i.Ps)(a()),h=(0,i.Ps)(s()),p=(0,i.Ps)(l()),m=(0,i.Ps)(u()),g=(0,i.Ps)(c())},8250:function(e,t,r){"use strict";r.d(t,{d:function(){return h},r:function(){return f}});var n=r(85893),i=r(73359),o=r(67294),a=r(28420),s=r(43287),l=r(99392),u=r(43537),c=r(7169);let d=(0,o.createContext)({isSignedIn:null,matchingSurvey:null,fetchSurvey:()=>Promise.resolve({}),refetchSurvey:()=>Promise.resolve({}),hasFetchedSurvey:!1,setHasFetchedSurvey:()=>{},fetchQuestionnaire:()=>Promise.resolve({}),questionnaireLoading:null,matchingQuestionnaire:null,shouldShowConnectProfile:!1,matches:[],suggestions:[],fetchMatches:()=>Promise.resolve({}),refetchMatches:()=>Promise.resolve({}),hasFetchedMatches:!1,setHasFetchedMatches:()=>{},fetchSuggestions:()=>Promise.resolve({}),refetchSuggestions:()=>Promise.resolve({}),hasFetchedSuggestions:!1,setHasFetchedSuggestions:()=>{},myMatchingProfile:null,myMatchingProfileResponseMap:null,hasFetchedMyMatchingProfile:!1,setHasFetchedMyMatchingProfile:()=>{},fetchMyMatchingProfile:()=>Promise.resolve({}),refetchMyMatchingProfile:()=>Promise.resolve({})}),f=e=>{var t;let{children:r}=e,{isSignedIn:f}=(0,s.SE)(),h=(0,l.c)(l.T.MATCHING_SURVEY),[p,m]=(0,o.useState)(null),[g,v]=(0,o.useState)(!1),[y,b]=(0,o.useState)(null),[x,{loading:_}]=(0,i.t)(a.ay,{variables:{query:{version:null!==(t=null==p?void 0:p.questionnaireVersion)&&void 0!==t?t:null,questionnaireId:"MATCHING"}},onCompleted:e=>{b(null==e?void 0:e.getMatchingQuestionnaire)}}),[E,S]=(0,o.useState)([]),[w,k]=(0,o.useState)(!1),[T,I]=(0,o.useState)([]),[C,A]=(0,o.useState)(!1),[O,N]=(0,o.useState)(null),[P,R]=(0,o.useState)(!1),[D,L]=(0,o.useState)(null),[F,{refetch:j}]=(0,i.t)(a.ap,{onCompleted:e=>{var t,r;v(!0),m(null!==(r=null==e?void 0:null===(t=e.getUserSurveys)||void 0===t?void 0:t[0])&&void 0!==r?r:null)}}),[M,{refetch:B}]=(0,i.t)(u.EU,{onCompleted:e=>{var t;k(!0),S(null!==(t=null==e?void 0:e.listMatches.matches)&&void 0!==t?t:[])}}),[U,{refetch:q}]=(0,i.t)(u.kZ,{onCompleted:e=>{var t;A(!0),I(null!==(t=null==e?void 0:e.listSuggestions.suggestions)&&void 0!==t?t:[])}}),[V,{refetch:z}]=(0,i.t)(u.HT,{onCompleted:e=>{var t,r;R(!0);let n=null!==(t=null==e?void 0:e.getMatchingProfile)&&void 0!==t?t:null;N(n),L(n?(0,c.Av)(null!==(r=n.responses)&&void 0!==r?r:[]):null)}});(0,o.useEffect)(()=>{f||(v(!1),m(null),k(!1),S([]),A(!1),I([]),R(!1),N(null),L(null))},[f]);let $=(0,o.useMemo)(()=>h&&(null==p?void 0:p.completedAt)!=null&&(null==p?void 0:p.completedAt)!=="",[p,h
295]);return(0,n.jsx)(d.Provider,{value:{isSignedIn:f,matchingSurvey:p,fetchSurvey:F,refetchSurvey:j,hasFetchedSurvey:g,setHasFetchedSurvey:v,fetchQuestionnaire:x,questionnaireLoading:_,matchingQuestionnaire:y,shouldShowConnectProfile:$,fetchMatches:M,refetchMatches:B,hasFetchedMatches:w,setHasFetchedMatches:k,fetchSuggestions:U,refetchSuggestions:q,hasFetchedSuggestions:C,setHasFetchedSuggestions:A,matches:E,suggestions:T,myMatchingProfile:O,myMatchingProfileResponseMap:D,hasFetchedMyMatchingProfile:P,setHasFetchedMyMatchingProfile:R,fetchMyMatchingProfile:V,refetchMyMatchingProfile:z},children:r})},h=()=>{let{isSignedIn:e,matchingSurvey:t,refetchSurvey:r,fetchSurvey:n,hasFetchedSurvey:i,matchingQuestionnaire:a,questionnaireLoading:s,fetchQuestionnaire:l,shouldShowConnectProfile:u,matches:c,suggestions:f,fetchMatches:h,refetchMatches:p,hasFetchedMatches:m,fetchSuggestions:g,refetchSuggestions:v,hasFetchedSuggestions:y,myMatchingProfile:b,myMatchingProfileResponseMap:x,hasFetchedMyMatchingProfile:_,fetchMyMatchingProfile:E,refetchMyMatchingProfile:S}=(0,o.useContext)(d),w=(e,t)=>{(0,o.useEffect)(()=>{e&&t()},[e])};return w(!!e&&!i,n),w(!!e&&!_,E),w(!!e&&!m,h),w(!!e&&!y,g),{matchingSurvey:t,refetchSurvey:r,matchingQuestionnaire:a,questionnaireLoading:s,fetchQuestionnaire:l,shouldShowConnectProfile:u,matches:c,refetchMatches:p,hasFetchedMatches:m,suggestions:f,refetchSuggestions:v,hasFetchedSuggestions:y,myMatchingProfile:b,myMatchingProfileResponseMap:x,hasFetchedMyMatchingProfile:_,refetchMyMatchingProfile:S}}},7169:function(e,t,r){"use strict";r.d(t,{Av:function(){return c},Bx:function(){return u},SX:function(){return s},cS:function(){return a},dF:function(){return l}});var n=r(85893),i=r(86921),o=r(14e3);let a=4;function s(e){if(!e)return"";let t=new Date(e),r=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),i=(new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime()-n.getTime())/864e5;return 0===i?"Connected Today":1===i?"Connected Yesterday":"Connected since ".concat(t.toLocaleDateString(void 0,{year:"numeric",month:"2-digit",day:"2-digit"}))}function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return r?(0,n.jsx)(o.x,{color:"var(--success-400)",margin:0,fontSize:e?"12px":"16px",textAlign:"center",children:e?"Invite sent":"Invite sent to connect"}):a?(0,n.jsx)(o.x,{color:"var(--brave-blue-500)",margin:0,fontSize:e?"12px":"16px",textAlign:"center",children:e?"Requested connection":"Has invited to connect"}):!e&&(0,n.jsxs)(o.x,{color:"var(--gray-500)",margin:0,fontSize:e?"12px":"16px",textAlign:"center",children:["Suggested ",(0,i.p6)(i.yi.SHORT,new Date(t))]})}function u(e){return e?e.replace(/^\[|\]$/g,"").replace(/,\s*/g,", "):e}function c(e){return e.reduce((e,t)=>{let{question_key:r,answer:n}=t;return e[r]=n,e},{})}},20346:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(85893),i=r(40645),o=r.n(i),a=r(67294),s=r(45697),l=r.n(s),u=r(18216),c=r(61922),d={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},f=r(59235),h=(0,f.m)("span",{baseStyle:d});h.displayName="VisuallyHidden",(0,f.m)("input",{baseStyle:d}).displayName="VisuallyHiddenInput";var p=r(93108);let m=u.Ef.MIME_TYPES.join();function g(e){let{onChange:t,id:r="filesInput",arePhotosUploading:i=!1,shouldFocusOnMount:s=!1,shouldShowInput:l=!0,isDisabled:u=!1,qaButton:d="uploadPhotos",qaInput:f="upload-photos",children:g}=e,v=(0,a.useRef)(null);return((0,a.useEffect)(()=>{if(s){var e;null===(e=v.current)||void 0===e||e.focus()}},[s]),l)?(0,n.jsxs)("div",{className:"jsx-2a3d87ac0ef1238a prettyFileInput",children:[(0,n.jsx)(h,{children:(0,n.jsx)("input",{accept:m,"data-qa":f,"data-ga-label":"Upload Photos",id:r,multiple:!0,onChange:t,onClick:e=>e.target.value="",ref:v,type:"file",disabled:i||u,className:"jsx-2a3d87ac0ef1238a"})}),(0,n.jsx)(p.z,{variant:"secondary",p:"10px 12px",fontSize:"24px",isLoading:i,spinner:(0,n.jsx)(c.ZP,{spotSize:8}),"data-qa":d,isDisabled:i||u,onClick:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.click()},children:g}),(0,n.jsx)(o(),{id:"2a3d87ac0ef1238a",children:".prettyFileInput.jsx-2a3d87ac0ef1238a{background-color:inherit;position:relative}.prettyFileInput.jsx-2a3d87ac0ef1238a>input.jsx-2a3d87ac0ef1238a,.prettyFileInput__label.jsx-2a3d87ac0ef1238a,.prettyFileInputMask.jsx-2a3d87ac0ef1238a{height:100%;width:100%}.prettyFileInput.jsx-2a3d87ac0ef1238a>input.jsx-2a3d87ac0ef1238a{overflow:hidden}.prettyFileInput__label.jsx-2a3d87ac0ef1238a{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;font-size:24px;font-weight:bold;-webkit-box-pack:center;
295-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;z-index:1}.prettyFileInput__label--isDisabled.jsx-2a3d87ac0ef1238a{opacity:.3}.prettyFileInput__label.jsx-2a3d87ac0ef1238a:hover{border-color:var(--gray-700);color:var(--gray-700);cursor:pointer}"})]}):null}g.propTypes={arePhotosUploading:l().bool,onChange:l().func.isRequired,id:l().string,shouldFocusOnMount:l().bool,shouldShowInput:l().bool,isDisabled:l().bool,qaButton:l().string,qaInput:l().string,children:l().node}},44678:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(85893),i=r(40645),o=r.n(i),a=r(38411),s=r(31508),l=r(18216);function u(){let e=(0,s.XX)(),t=(0,a.ZZ)(e.photoFiles);if(0===t.length)return null;let r=t.includes(l.uY.RATE_LIMITED)?l.uY.RATE_LIMITED:t[0],i=e.maxFileCount>1?"Your photo(s) could not be uploaded because":"Your photo could not be uploaded because",u=(0,a.mL)(r,e.maxFileCount);return(0,n.jsxs)("div",{className:"jsx-dfef4d03e940bd5a singleErrorUpload",children:[(0,n.jsxs)("span",{className:"jsx-dfef4d03e940bd5a",children:[i," ",u]}),(0,n.jsx)(o(),{id:"dfef4d03e940bd5a",children:".singleErrorUpload{margin-top:15px;color:var(--color-error)}"})]})}},92206:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(85893),i=r(31508),o=r(20346),a=r(44678),s=r(40645),l=r.n(s),u=r(95568),c=r(67294),d=r(93108),f=r(45697),h=r.n(f);function p(e){let{...t}=e;return(0,n.jsx)(d.z,{variant:"primary",position:"absolute",fontSize:"16px",padding:"3px",display:"inline-flex",justifyContent:"center",alignItems:"center",minWidth:"22px",height:"22px",top:0,right:0,zIndex:1,borderRadius:"100%",border:"1px solid white",transform:"translate(50%, -50%)",...t,children:(0,n.jsx)("i",{className:"fa-minus fa-solid"})})}p.propTypes={className:h().string,onClick:h().func.isRequired,"data-qa":h().string.isRequired};var m=r(20099),g=r(11774),v=r(61922);function y(e){let{photoFile:t,thumbnailWidth:r=u.bZ,disableFallback:o=!1}=e,a=(0,i.zW)(),s=(0,c.useRef)(!0);if((0,c.useEffect)(()=>{async function e(){if(t.upload)return;let e=t.uniqueId;a({type:i.yx.SET_LIFECYCLE,uniqueId:e,lifecycle:u.TE.UPLOADING});try{t.upload=await (0,g.Ix)(t.File),a({type:i.yx.SET_LIFECYCLE,uniqueId:e,lifecycle:u.TE.FINISHED})}catch(t){a({type:i.yx.SET_ERROR,uniqueId:e,photoError:t.type})}}s.current&&(e(),s.current=!1)},[]),t.lifecycle===u.TE.UPLOADING)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:l().dynamic([["b8a5acd2d3973488",[r,r]]])+" thumbnail",children:(0,n.jsx)(v.ZP,{})}),(0,n.jsx)(l(),{id:"b8a5acd2d3973488",dynamic:[r,r],children:".thumbnail.__jsx-style-dynamic-selector{width:".concat(r,"px;height:").concat(r,"px;text-align:center}")})]});if(t.lifecycle===u.TE.FINISHED){var d,f,h,y;return(0,n.jsxs)("div",{"data-qa":"thumbnail-container-".concat((null==t?void 0:null===(d=t.upload)||void 0===d?void 0:d.public_id)||(null==t?void 0:null===(f=t.upload)||void 0===f?void 0:f.legacyPath)),className:l().dynamic([["352f075ebbba553c",[r,r]]])+" thumbnail",children:[(0,n.jsx)(p,{onClick:()=>{a({type:i.yx.REMOVE,uniqueId:t.uniqueId})},"data-qa":"xSitePhoto",className:"deleteBtn"}),(0,n.jsx)(m.Z,{id:null==t?void 0:null===(h=t.upload)||void 0===h?void 0:h.public_id,legacyPath:null==t?void 0:null===(y=t.upload)||void 0===y?void 0:y.legacyPath,width:r}),(0,n.jsx)(l(),{id:"352f075ebbba553c",dynamic:[r,r],children:".thumbnail.__jsx-style-dynamic-selector{display:inline-block;position:relative;width:".concat(r,"px;height:").concat(r,"px}")})]})}if(!o)return(0,n.jsx)("i",{className:"fa-user fa-light",style:{fontSize:"80px",color:"var(--gray-400)"}})}y.propTypes={photoFile:h().object.isRequired,thumbnailWidth:h().number,disableFallback:h().bool};var b=r(38411),x=r(48783),_=r(34292),E=r(57747),S=r(89993),w=e=>{let{children:t,onScrollClickPixels:r=45,...i}=e,o=(0,c.useRef)(null),[a,s]=(0,c.useState)({canScrollLeft:!1,canScrollRight:!1}),l=()=>{if(o.current){let{scrollLeft:e,scrollWidth:t,clientWidth:r}=o.current,n=t>r;s({canScrollLeft:n&&e>0,canScrollRight:n&&e<t-r-2})}};(0,c.useEffect)(()=>{let e=o.current;if(e){l(),e.addEventListener("scroll",l);let t=new ResizeObserver(()=>{l()});return t.observe(e),()=>{e.removeEventListener("scroll",l),t.disconnect()}}},[]),(0,c.useEffect)(()=>
295{l()},[t]);let u=e=>{o.current&&o.current.scrollBy({left:"left"===e?-r:r,behavior:"smooth"})},d=e=>{let{direction:t}=e,r="left"===t?{left:"0"}:{right:"0"};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(E.xu,{position:"absolute",...r,top:"0",height:"100%",width:"30px",zIndex:1,pointerEvents:"none",background:"linear-gradient(to ".concat("left"===t?"right":"left",", #FFFFFF 0%, #FFFFFF 20%, #FFFFFFCC 50%, #FFFFFF66 80%, #FFFFFF00 100%)"),transition:"opacity var(--speed-on-hover) linear","data-testid":"scrollable-box-indicator-fade-".concat(t)}),(0,n.jsx)(S.h,{"aria-label":"Scroll ".concat(t),icon:(0,n.jsx)("i",{className:"fa-arrow-".concat(t," fa-light")}),onClick:()=>u(t),position:"absolute",...r,top:"50%",transform:"translateY(-50%)",zIndex:2,borderRadius:"full",bg:"gray.0",color:"indigo",size:"xs","data-testid":"scrollable-box-indicator-button-".concat(t),border:"1px solid",borderColor:"gray.100",_hover:{bgColor:"gray.0"}})]})};return(0,n.jsxs)(E.xu,{position:"relative",width:"100%",...i,children:[a.canScrollLeft&&(0,n.jsx)(d,{direction:"left"}),(0,n.jsx)(E.xu,{ref:o,overflowX:"auto",sx:{"&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none","scrollbar-width":"none",position:"relative"},children:(0,n.jsx)(E.xu,{display:"flex",gap:i.gap||3,padding:i.padding||"10px 0",position:"relative",children:t})}),a.canScrollRight&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d,{direction:"right"})})]})};function k(e){let{uploadButtonContent:t=(0,n.jsx)("i",{className:"fa-image fa-solid"}),thumbnailSize:r=44,displayInput:s=!1,disableScroll:l=!1,isDisabled:u=!1}=e,c=(0,i.zW)(),d=(0,i.XX)(),f=(0,b.Kh)(d.photoFiles),h=()=>(0,n.jsx)(n.Fragment,{children:f.map(e=>(0,n.jsx)(y,{photoFile:e,thumbnailWidth:r,disableFallback:!0},e.uniqueId))});return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(x.g,{spacing:1,alignItems:"flex-start",children:[(0,n.jsxs)(_.U,{spacing:{base:2,md:4},justifyContent:"flex-start",alignItems:"center",width:"100%",children:[!s&&(0,n.jsx)(o.Z,{arePhotosUploading:d.isUploading,onChange:e=>{let t=Array.from(e.target.files);c({type:i.yx.APPEND,data:t})},id:"uploadListAppendMore",shouldFocusOnMount:!0,shouldShowInput:!0,isDisabled:u||f.length>
295=d.maxFileCount,qaButton:"postEditorUploadPhotos",qaInput:"post-editor-upload-photos",children:t}),l?(0,n.jsx)(h,{}):(0,n.jsx)(w,{overflowX:{base:"auto",lg:"unset"},children:(0,n.jsx)(h,{})})]}),(0,n.jsx)(a.Z,{})]})})}k.propTypes={uploadButtonContent:h().node,thumbnailSize:h().number,displayInput:h().bool,disableScroll:h().bool,isDisabled:h().bool}},95568:function(e,t,r){"use strict";r.d(t,{C1:function(){return n},Fe:function(){return i},Q2:function(){return u},TE:function(){return s},UY:function(){return l},bZ:function(){return o},mu:function(){return a}});let n=10,i=50,o=120,a={JOURNAL_POST:"JOURNAL_POST",WELL_WISH:"WELL_WISH",TRIBUTE:"TRIBUTE",SITE_PROFILE:"SITE_PROFILE",GOFUNDME_CAMPAIGN:"GOFUNDME_CAMPAIGN",COMMENT:"COMMENT"},s={CHOSEN:"CHOSEN",UPLOADING:"UPLOADING",REMOVED:"REMOVED",FINISHED:"FINISHED",ERROR:"ERROR"},l={SAVED:"SAVED",NEW:"NEW"},u={TOO_BIG:"TOO_BIG",INVALID_TYPE:"INVALID_TYPE",OVER_COUNT_LIMIT:"OVER_COUNT_LIMIT"}},38411:function(e,t,r){"use strict";r.d(t,{Kh:function(){return l},Ki:function(){return s},V_:function(){return a},ZZ:function(){return c},hX:function(){return u},mL:function(){return d}});var n=r(95568),i=r(18216),o=r(56983);function a(e,t,r){let n=!1,i=!1,a=(0,o.mD)(e.name);return a&&(n=t.includes(a)),i=r.includes(String(e.type).toLowerCase()),!!(n&&i)}function s(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e;for(;t.some(e=>(null==e?void 0:e.uniqueId)===n);){var i;i=++r,n=null==e?void 0:e.replace(/(^[^.]*)/,"$1"+i)}return n}function l(e){return e.filter(e=>0===e.errors.length&&e.lifecycle!==n.TE.REMOVED&&e.lifecycle!==n.TE.UPLOADING)}function u(e){return l(e).reduce((e,t)=>(t.lifecycle===n.TE.FINISHED&&e.push({publicId:t.upload.public_id,width:t.upload.width,height:t.upload.height}),e),[])}function c(e){return e.reduce((e,t)=>(t.errors.forEach(t=>{e.includes(t)||e.push(t)}),e),[])}function d(e,t){switch(e){case n.Q2.TOO_BIG:return"it exceeds the ".concat(n.C1," MB limit.");case n.Q2.OVER_COUNT_LIMIT:return"you can only upload ".concat(t," photos at a time.");case n.Q2.INVALID_TYPE:return"its file type is not supported. Please only add ".concat(i.Ef.EXTENSIONS.join(","),".");case i.uY.TOO_MANY_PIXELS:return"it is over the ".concat(n.Fe," megapixel image resolution limit.");case i.uY.CORRUPT_IMAGE:return"it could not be loaded.";case i.uY.RATE_LIMITED:return"the upload limit was reached. Please wait a few minutes and try again.";default:return"of a system problem on our end. Please try again."}}},31508:function(e,t,r){"use strict";r.d(t,{yx:function(){return h},TV:function(){return g},zW:function(){return y},XX:function(){return v}});var n=r(85893),i=r(95568),o=r(67294),a=r(18216),s=r(38411);class l{setError(e){this.hasError(e)||this.errors.push(e),this.lifecycle=i.TE.ERROR}hasError(e){return this.errors.includes(e)}constructor({uploadType:e,File:t=null,allowedSize:r=i.C1,listType:n=i.UY.NEW,lifeCycle:o=i.TE.CHOSEN,upload:l=null}){if(this.File=t,this.uniqueId="",this.uploadType=e,this.lifecycle=o,this.listType=n,this.errors=[],this.upload=l,this.abortController=null,this.listType===i.UY.SAVED&&this.upload)return;this.File.size>1048576*r&&this.setError(i.Q2.TOO_BIG),(0,s.V_)(this.File,a.Ef.EXTENSIONS,a.Ef.MIME_TYPES)||this.setError(i.Q2.INVALID_TYPE)}}var u=r(9189),c=r(45697),d=r.n(c);let f={isUploading:!1,photoFiles:[],maxFileCount:1,uploadType:"",isHydrated:!1},h={APPEND:"APPEND",CLEAR_ALL:"CLEAR_ALL",CLEAR_DEAD:"CLEAR_DEAD",SET_ERROR:"ERROR",REMOVE:"REMOVE",SET_LIFECYCLE:"SET_LIFECYCLE",UPLOAD:"UPLOAD",HYDRATE:"HYDRATE"},p=(0,o.createContext)(f),m=(0,o.createContext)(void 0);function g(e){let{value:t,children:r}=e,a={...f,...t},[s,c]=(0,o.useReducer)((e,t)=>{switch(t.type){case h.APPEND:{let r=Array.from(t.data).map(t=>new l({uploadType:e.uploadType,File:t}));return new u.Z(e).clearErrors().clearDeadPhotos().append(r).assignUniqueName().errorOutExcessFiles().getAbortController().getState()}case h.CLEAR_ALL:return new u.Z(e).clearErrors().clearAll().getState();case h.CLEAR_DEAD:return new u.Z(e).clearDeadPhotos().getState();case h.HYDRATE:{let r=t.photos.map(t=>new l({upload:{...t,public_id:t.publicId,legacyPath:t.legacyPath},uploadType:e.uploadType,listType:i.UY.SAVED,lifeCycle:i.TE.FINISHED}));return new u.Z(e).clearAll().clearDeadPhotos().append(r).assignUniqueName().errorOutExcessFiles().getAbortController().setIsHydrated(!0).getState()}case h.SET_ERROR:return new u.Z(e).setError(t.uniqueId,t.photoError).setIsUploading().getState();case h.REMOVE:return new u.Z(e).setLifecycle(t.uniqueId,i.TE.REMOVED).setIsUploading().abortUpload(t.uniqueId).getState();case h.SET_LIFECYCLE:return new u.Z(e).setLifecycle(t.uniqueId,t.lifecycle).setIsUploading().getState();default:throw Error("Invalid action type provided to the photoReducer")}},a);return(0,n.jsx)(p.Provider,{value:s,children:(0,n.jsx)(m.Provider,{value:c,children:r})})}function v(){let e=(0,o.useContext)(p);if(void 0===e)throw Error("usePhotoState must be used within <PhotoProvider>");return e}function y(){let e=(0,o.useContext)(m);if(void 0===e)throw Error("usePhotoDispatch must be used within <PhotoProvider>");return e}g.propTypes={value:d().object,children:d().node.isRequired}},9189:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(95568),i=r(38411);class o{abortUpload(e){let t=this.findIndex(e);return -1!==t&&this.state.photoFiles[t].abortController.abort(),this}append(e){return this.state.photoFiles=this.state.photoFiles.concat(e),this}
295assignUniqueName(){return this.state.photoFiles.forEach((e,t,r)=>{var n,o,a;e.uniqueId=e.uniqueId||(0,i.Ki)((null==e?void 0:null===(n=e.File)||void 0===n?void 0:n.name)||(null==e?void 0:null===(o=e.upload)||void 0===o?void 0:o.public_id)||(null==e?void 0:null===(a=e.upload)||void 0===a?void 0:a.legacyPath),r)}),this}clearAll(){return this.state.photoFiles.forEach(e=>{this.setLifecycle(e.uniqueId,n.TE.REMOVED),this.abortUpload(e.uniqueId)}),this}clearErrors(){return this.state.photoFiles=this.state.photoFiles.filter(e=>!e.errors.length),this}clearDeadPhotos(){return this.state.photoFiles=this.getValidPhotos(),this}errorOutExcessFiles(){return(0,i.Kh)(this.state.photoFiles).forEach((e,t)=>{t>=this.state.maxFileCount&&e.setError(n.Q2.OVER_COUNT_LIMIT)}),this}getAbortController(){return this.state.photoFiles.forEach(e=>{e.abortController=e.abortController||new AbortController}),this}setError(e,t){let r=this.findIndex(e);return -1!==r&&this.state.photoFiles[r].setError(t),this}setIsHydrated(e){return this.state.isHydrated=e,this}setIsUploading(){for(let e=0;e<this.state.photoFiles.length;e++){let t=this.state.photoFiles[e];if(t.lifecycle===n.TE.UPLOADING||t.lifecycle===n.TE.CHOSEN&&!t.errors.length)return this.state.isUploading=!0,this}return this.state.isUploading=!1,this}setLifecycle(e,t){let r=this.findIndex(e);return -1!==r&&(this.state.photoFiles[r].lifecycle=t),this}findIndex(e){return this.state.photoFiles.findIndex(t=>t.uniqueId===e)}getValidPhotos(){return this.state.photoFiles.filter(e=>e.lifecycle!==n.TE.REMOVED&&e.lifecycle!==n.TE.ERROR)}getState(){return this.state}constructor(e){this.state={...e}}}},52186:function(e,t,r){"use strict";r.d(t,{EV:function(){return n},R_:function(){return o},mb:function(){return a},ue:function(){return i}});let n={ERROR:"ERROR",SUCCESS:"SUCCESS",WARNING:"WARNING"},i={OFF:"OFF",JEN_ONLY:"JEN_ONLY",DAS_ONLY:"DAS_ONLY",JEN_DAS:"JEN_DAS"},o={[i.OFF]:{title:"Enable Notifications",message:"To follow this page, you need to turn on either or both of your profile’s email notification settings.",status:n.WARNING},[i.JEN_ONLY]:{title:"You’re Now Following!",message:"You'll get a notification email when a new post is created.",status:n.SUCCESS},[i.DAS_ONLY]:{title:"You’re Now Following!",message:"You’ll get a daily summary email when there is new activity.",status:n.SUCCESS},[i.JEN_DAS]:{title:"You’re Now Following!",message:"You'll get an email when an update is posted or when there is new activity.",status:n.SUCCESS}};function a(e){let t=!!(null==e?void 0:e.jen),r=!!(null==e?void 0:e.dailyEmail);return t?r?i.JEN_DAS:i.JEN_ONLY:r?i.DAS_ONLY:i.OFF}},43871:function(e,t,r){"use strict";r.d(t,{l:function(){return i},s:function(){return n}});let n={CHILDCARE:{iconName:"fa-baby-carriage",bgColor:"--berry-bridge-300"},CHORE:{iconName:"fa-broom-wide",bgColor:"--indigo"},ERRAND:{iconName:"fa-shopping-cart",bgColor:"--success-400"},MEAL:{iconName:"fa-utensils",bgColor:"--berry-bridge-500"},PETCARE:{iconName:"fa-paw-simple",bgColor:"--coral"},TRANSPORTATION:{iconName:"fa-car",bgColor:"--brave-blue-500"},VISIT:{iconName:"fa-user-group-simple",bgColor:"--navy"},OTHER:{iconName:"fa-calendar-days",bgColor:"--slate"}},i={CHILDCARE:{label:"Childcare",iconName:"fa-baby-carriage",primaryColor:"berryBridge.300",editorData:{bodyPlaceholder:"Provide details about the type of care needed, such as dates, times, and specific activities or routines. Mention the number of children, their ages, and any specific needs or preferences (e.g., allergies, bedtime routines, or homework help). Sharing this information ensures a smooth and comforting experience for the kids."}},CHORE:{label:"Chores",iconName:"fa-broom-wide",primaryColor:"indigo",editorData:{bodyPlaceholder:"List the specific tasks you need help with, such as cleaning, laundry, or yard work, and include any necessary supplies. Mention if there are any special instructions or requirements (e.g., use of certain products, access details, or time constraints). Clear details make it easier for helpers to pitch in effectively."}},ERRAND:{label:"Errands",iconName:"fa-shopping-basket",primaryColor:"success.400",editorData:{bodyPlaceholder:"List the errands you need help with, such as grocery shopping, picking up prescriptions, or dropping off packages. Include details like locations, times, and any specific instructions or preferences (e.g., preferred stores or brands). This helps ensure errands are completed smoothly and to your liking."}},MEAL:{label:"Meals",iconName:"fa-utensils",primaryColor:"berryBridge.500",editorData:{bodyPlaceholder:"Include details about meal preferences, dietary restrictions, and any specific dishes you’d like. Indicate the preferred delivery time and any other specifics (e.g., portion size, food allergies, or reheating instructions). This helps to ensure the meal meets your needs and preferences."}},PETCARE:{label:"Petcare",iconName:"fa-paw-simple",primaryColor:"coral",editorData:{bodyPlaceholder:"Provide information on the type of pet and the specific tasks needed, such as feeding, walking, or grooming. Mention any special instructions (e.g., medications, dietary restrictions, or behavioral tendencies). Being specific helps to make sure your pet is well cared for."}}
295,TRANSPORTATION:{label:"Transportation",iconName:"fa-car",primaryColor:"braveBlue.500",editorData:{bodyPlaceholder:"Share key details for the ride, like the date, pick-up and drop-off locations, time, and any special instructions (e.g., accessibility needs, help with mobility, or if extra time is required due to traffic/reasons). Be as specific as possible to ensure the ride goes smoothly."}},VISIT:{label:"Visiting",iconName:"fa-user-group-simple",primaryColor:"navy",editorData:{bodyPlaceholder:"Share information about when and where you'd like visitors, along with any specific needs or preferences (e.g., quiet activities, conversation topics to avoid, or time limits). Let people know how they can best support you during the visit, so they can help in a way that feels right for you."}},OTHER:{label:"Other",iconName:"fa-calendar-days",primaryColor:"slate",editorData:{bodyPlaceholder:"Describe the type of assistance you need, including any details like dates, times, or specific requirements. Be as clear as possible to help others understand how they can best support you. If it’s a unique request, additional context can make it easier for someone to assist."}}}},90331:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(67294),i=r(50319),o=r(37887),a=r(25351),s=r(87036),l=r(21811),u=r(43287);function c(e){var t;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=(0,l.LP)(s.P_.CB_SESSION),d=(null===(t=JSON.parse(c))||void 0===t?void 0:t.sessionExpiredAt)<Date.now()/1e3+5,{isSignedIn:f}=(0,u.SE)(),[h]=(0,i.D)(a.sJ,{onCompleted:e=>{var t;let{createSession:r}=e,n=(0,l.LP)(s.P_.CB_SESSION),i=(null===(t=JSON.parse(c))||void 0===t?void 0:t.sessionExpiredAt)<Date.now()/1e3+5;(!n||i)&&localStorage.setItem(s.P_.CB_SESSION,JSON.stringify(r))},onError(e){console.log("mutation createComment failed because ".concat(JSON.stringify(e)))}});return(0,n.useEffect)(()=>{e&&!f&&(!c||d)&&h({variables:{input:{siteId:e}}})},[f,c,d,h,e]),(0,o.a)(a.EF,{variables:{siteId:e},skip:r||!f&&(!c||d)||!e})}},93726:function(e,t,r){"use strict";r.d(t,{q:function(){return u}});var n=r(67294),i=r(37887),o=r(50319),a=r(11163),s=r(57640),l=r(5241);function u(){var e;let t=(0,a.useRouter)(),{siteId:r}=t.query,u=t.isReady,{data:c,loading:d}=(0,i.a)(s.m$,{variables:{siteId:r},skip:!u||!r,fetchPolicy:"network-only"}),[f,{loading:h}]=(0,o.D)(s.b,{refetchQueries:["GET_FEED","GET_SITE_WAYS_TO_HELP"],onError:e=>b(e)}
295),[p,m]=(0,n.useState)({}),[g,v]=(0,n.useState)({}),[y,b]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(!d&&c){var e,t;let r={},n={};null==c||null===(t=c.getSite)||void 0===t||null===(e=t.waysToHelps)||void 0===e||e.forEach(e=>{e.item&&(r[e.type]=e.item,n[e.type]=e.item.initializedPostShared)}),m(r),v(n)}},[d,c]),{postItems:p,initializedPostsShared:g,dismissPostPreview:e=>{b(null),f({variables:{siteId:r,initializedPostShared:l.NS.DISMISSED,postType:e}})},postPreview:(e,t,n)=>{b(null),f({variables:{siteId:r,initializedPostShared:l.NS.POSTED,postType:e,...""!==t&&{title:t},...""!==n&&{body:n}}})},loading:d,updateWthLoading:h,updateWthError:y,isAuthor:null==c?void 0:null===(e=c.getSite)||void 0===e?void 0:e.isAuthor}}},99315:function(e,t,r){"use strict";r.d(t,{R7:function(){return rC},$N:function(){return rk},S$:function(){return rT},Ij:function(){return rI},vX:function(){return rO},vc:function(){return rA}}),r(19502),(e3=e4||(e4={})).Root="root",e3.Text="text",e3.Directive="directive",e3.Comment="comment",e3.Script="script",e3.Style="style",e3.Tag="tag",e3.CDATA="cdata",e3.Doctype="doctype";let n=e4.Root,i=e4.Text,o=e4.Directive,a=e4.Comment,s=e4.Script,l=e4.Style,u=e4.Tag,c=e4.CDATA,d=e4.Doctype;class f{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return E(this,e)}}class h extends f{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class p extends h{constructor(){super(...arguments),this.type=e4.Text}get nodeType(){return 3}}class m extends h{constructor(){super(...arguments),this.type=e4.Comment}get nodeType(){return 8}}class g extends h{constructor(e,t){super(t),this.name=e,this.type=e4.Directive}get nodeType(){return 1}}class v extends f{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class y extends v{constructor(){super(...arguments),this.type=e4.CDATA}get nodeType(){return 4}}class b extends v{constructor(){super(...arguments),this.type=e4.Root}get nodeType(){return 9}}class x extends v{constructor(e,t,r=[],n="script"===e?e4.Script:"style"===e?e4.Style:e4.Tag){super(r),this.name=e,this.attribs=t,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var t,r;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(r=this["x-attribsPrefix"])||void 0===r?void 0:r[e]}})}}function _(e){return e.type===e4.Tag||e.type===e4.Script||e.type===e4.Style}function E(e,t=!1){let r;if(e.type===e4.Text)r=new p(e.data);else if(e.type===e4.Comment)r=new m(e.data);else if(_(e)){let n=t?S(e.children):[],i=new x(e.name,{...e.attribs},n);n.forEach(e=>e.parent=i),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(e.type===e4.CDATA){let n=t?S(e.children):[],i=new y(n);n.forEach(e=>e.parent=i),r=i}else if(e.type===e4.Root){let n=t?S(e.children):[],i=new b(n);n.forEach(e=>e.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else if(e.type===e4.Directive){let t=new g(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),r=t}else throw Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){let t=e.map(e=>E(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}let w={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class k{constructor(e,t,r){this.dom=[],this.root=new b(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=w),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:w,this.elementCB=null!=r?r:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new b(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let r=new x(e,t,void 0,this.options.xmlMode?e4.Tag:void 0);this.addNode(r),this.tagStack.push(r)}ontext(e){let{lastNode:t}=this;if(t&&t.type===e4.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{let t=new p(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===e4.Comment){this.lastNode.data+=e;return}let t=new m(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new p(""),t=new y([e]);this.addNode(t),e.parent=t,this.lastNode=e}
295oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let r=new g(e,t);this.addNode(r)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null}}let T=/\n/g;function I(e,t="",r={}){let n="string"==typeof t?t:"",i=e.map(C),o=!!("string"!=typeof t?t:r).lineNumbers;return function(e,t=0){let r=o?function(e){let t=[...e.matchAll(T)].map(e=>e.index||0);t.unshift(-1);let r=function e(t,r,n){if(n-r==1)return{offset:t[r],index:r+1};let i=Math.ceil((r+n)/2),o=e(t,r,i),a=e(t,i,n);return{offset:o.offset,low:o,high:a}}(t,0,t.length);return e=>(function e(t,r){return Object.prototype.hasOwnProperty.call(t,"index")?{line:t.index,column:r-t.offset}:e(t.high.offset<r?t.high:t.low,r)})(r,e)}(e):()=>({line:0,column:0}),a=t,s=[];e:for(;a<e.length;){let t=!1;for(let o of i){o.regex.lastIndex=a;let i=o.regex.exec(e);if(i&&i[0].length>0){if(!o.discard){let e=r(a),t="string"==typeof o.replace?i[0].replace(new RegExp(o.regex.source,o.regex.flags),o.replace):i[0];s.push({state:n,name:o.name,text:t,offset:a,len:i[0].length,line:e.line,column:e.column})}if(a=o.regex.lastIndex,t=!0,o.push){let t=o.push(e,a);s.push(...t.tokens),a=t.offset}if(o.pop)break e;break}}if(!t)break}return{tokens:s,offset:a,complete:e.length<=a}}}function C(e,t){return{...e,regex:function(e,t){if(0===e.name.length)throw Error(`Rule #${t} has empty name, which is not allowed.`);if(Object.prototype.hasOwnProperty.call(e,"regex"))return function(e){if(e.global)throw Error(`Regular expression /${e.source}/${e.flags} contains the global flag, which is not allowed.`);return e.sticky?e:RegExp(e.source,e.flags+"y")}(e.regex);if(Object.prototype.hasOwnProperty.call(e,"str")){if(0===e.str.length)throw Error(`Rule #${t} ("${e.name}") has empty "str" property, which is not allowed.`);return RegExp(A(e.str),"y")}return RegExp(A(e.name),"y")}(e,t)}}function A(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function O(e,t){return(r,n)=>{let i,o=n;return n<r.tokens.length?void 0!==(i=e(r.tokens[n],r,n))&&o++:t?.(r,n),void 0===i?{matched:!1}:{matched:!0,position:o,value:i}}}function N(e,t){return e.matched?{matched:!0,position:e.position,value:t(e.value,e.position)}:e}function P(e,t){return e.matched?t(e):e}function R(e,t){return(r,n)=>N(e(r,n),(e,i)=>
295t(e,r,n,i))}function D(e,t){return(r,n)=>{let i=e(r,n);return i.matched?i:{matched:!0,position:n,value:t}}}function L(...e){return(t,r)=>{for(let n of e){let e=n(t,r);if(e.matched)return e}return{matched:!1}}}function F(e,t){return(r,n)=>{let i=e(r,n);return i.matched?i:t(r,n)}}function j(e){var t;return t=()=>!0,(r,n)=>{let i=[],o=!0;do{let a=e(r,n);a.matched&&t(a.value,i.length+1,r,n,a.position)?(i.push(a.value),n=a.position):o=!1}while(o);return{matched:!0,position:n,value:i}}}function M(e,t,r){return(n,i)=>P(e(n,i),e=>N(t(n,e.position),(t,o)=>r(e.value,t,n,i,o)))}function B(e,t){return M(e,t,(e,t)=>t)}function U(e,t,r,n){return(i,o)=>P(e(i,o),e=>P(t(i,e.position),t=>N(r(i,t.position),(r,a)=>n(e.value,t.value,r,i,o,a))))}function q(e,t,r){return U(e,t,r,(e,t)=>t)}function V(e,t,r){var n;return n=e=>{var n,i,o;return n=M(t,r,(e,t)=>[e,t]),i=(e,[t,r])=>t(e,r),o=e=>R(n,(t,r,n,o)=>i(e,t,r,n,o)),(t,r)=>{let n=!0,i=e,a=r;do{let e=o(i,t,a)(t,a);e.matched?(i=e.value,a=e.position):n=!1}while(n);return{matched:!0,position:a,value:i}}},(t,r)=>P(e(t,r),e=>n(e.value,t,r,e.position)(t,e.position))}let z=`(?:\\n|\\r\\n|\\r|\\f)`,$=`[^\\x00-\\x7F]`,G=`(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)`,W=`(?:\\\\[^\\n\\r\\f0-9a-f])`,H=`(?:[_a-z]|${$}|${G}|${W})`,Q=`(?:[_a-z0-9-]|${$}|${G}|${W})`,Y=`(?:${Q}+)`,X=`(?:[-]?${H}${Q}*)`,K=`'([^\\n\\r\\f\\\\']|\\\\${z}|${$}|${G}|${W})*'`,Z=`"([^\\n\\r\\f\\\\"]|\\\\${z}|${$}|${G}|${W})*"`,J=I([{name:"ws",regex:RegExp(`(?:[ \\t\\r\\n\\f]*)`)},{name:"hash",regex:RegExp(`#${Y}`,"i")},{name:"ident",regex:RegExp(X,"i")},{name:"str1",regex:RegExp(K,"i")},{name:"str2",regex:RegExp(Z,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),ee=I([{name:"unicode",regex:RegExp(G,"i")},{name:"escape",regex:RegExp(W,"i")},{name:"any",regex:RegExp("[\\s\\S]","i")}]);function et([e,t,r],[n,i,o]){return[e+n,t+i,r+o]}let er=R(j(L(O(e=>"unicode"===e.name?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0),O(e=>"escape"===e.name?e.text.slice(1):void 0),O(e=>"any"===e.name?e.text:void 0))),e=>e.join(""));function en(e){return er({tokens:ee(e).tokens,options:void 0},0).value}function ei(e){return O(t=>t.name===e||void 0)}let eo=O(e=>"ws"===e.name?null:void 0),ea=D(eo,null);function es(e){return q(ea,e,ea)}let el=O(e=>"ident"===e.name?en(e.text):void 0),eu=O(e=>"hash"===e.name?en(e.text.slice(1)):void 0),ec=O(e=>e.name.startsWith("str")?en(e.text.slice(1,-1)):void 0),ed=M(D(el,""),ei("|"),e=>e),ef=F(M(ed,el,(e,t)=>({name:t,namespace:e})),R(el,e=>({name:e,namespace:null}))),eh=F(M(ed,ei("*"),e=>({type:"universal",namespace:e,specificity:[0,0,0]})),R(ei("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),ep=R(ef,({name:e,namespace:t})=>({type:"tag",name:e,namespace:t,specificity:[0,0,1]})),em=M(ei("."),el,(e,t)=>({type:"class",name:t,specificity:[0,1,0]})),eg=R(eu,e=>({type:"id",name:e,specificity:[1,0,0]})),ev=O(e=>{if("ident"===e.name){if("i"===e.text||"I"===e.text)return"i";if("s"===e.text||"S"===e.text)return"s"}}),ey=F(M(ec,D(B(ea,ev),null),(e,t)=>({value:e,modifier:t})),M(el,D(B(eo,ev),null),(e,t)=>({value:e,modifier:t}))),eb=L(R(ei("="),()=>"="),M(ei("~"),ei("="),()=>"~="),M(ei("|"),ei("="),()=>"|="),M(ei("^"),ei("="),()=>"^="),M(ei("$"),ei("="),()=>"$="),M(ei("*"),ei("="),()=>"*=")),ex=F(U(ei("["),es(ef),ei("]"),(e,{name:t,namespace:r})=>({type:"attrPresence",name:t,namespace:r,specificity:[0,1,0]})),q(ei("["),U(es(ef),eb,es(ey),({name:e,namespace:t},r,{value:n,modifier:i})=>({type:"attrValue",name:e,namespace:t,matcher:r,value:n,modifier:i,specificity:[0,1,0]})),ei("]"))),e_=F(eh,ep),eE=L(eg,em,ex),eS=R(F(function(...e){return R(function(...e){return(t,r)=>{let n=[],i=r;for(let r of e){let e=r(t,i);if(!e.matched)return{matched:!1};n.push(e.value),i=e.position}return{matched:!0,position:i,value:n}}}(...e),e=>e.flatMap(e=>e))}(e_,j(eE)),M(eE,j(eE),(e,t)=>[e,...t])),e=>({type:"compound",list:e,specificity:e.map(e=>e.specificity).reduce(et,[0,0,0])})),ew=F(es(L(R(ei(">"),()=>">"),R(ei("+"),()=>"+"),R(ei("~"),()=>"~"),M(ei("|"),ei("|"),()=>"||"))),R(eo,()=>" ")),ek=V(eS,R(ew,e=>(t,r)=>({type:"compound",list:[...r.list,{type:"combinator",combinator:e,left:t,specificity:t.specificity}],specificity:et(t.specificity,r.specificity)})),eS);function eT(e,t,r=1){return`${e.replace(/(\t)|(\r)|(\n)/g,(e,t,r)=>t?"␉":r?"␍":"␊")}
296${"".padEnd(t)}${"^".repeat(r)}`}function eI(e){if(!e.type)throw Error("This is not an AST node.");switch(e.type){case"universal":return eC(e.namespace)+"*";case"tag":return eC(e.namespace)+eO(e.name);case"class":return"."+eO(e.name);case"id":return"#"+eO(e.name);case"attrPresence":return`[${eC(e.namespace)}${eO(e.name)}
296]`;case"attrValue":return`[${eC(e.namespace)}${eO(e.name)}${e.matcher}"${e.value.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(e,t,r,n,i)=>t?'\\"':r?"\\\\":n?"�":eA(i))}"${e.modifier?e.modifier:""}]`;case"combinator":return eI(e.left)+e.combinator;case"compound":return e.list.reduce((e,t)=>"combinator"===t.type?eI(t)+e:e+eI(t),"");case"list":return e.list.map(eI).join(",")}}function eC(e){return e||""===e?eO(e)+"|":""}function eA(e){return`\\${e.codePointAt(0).toString(16)} `}function eO(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(e,t,r,n,i,o,a,s)=>t?eA(t):r?"-"+eA(r.slice(1)):n?"\\-":i||(o?"�":a?eA(a):"\\"+s))}function eN(e){switch(e.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,e.name];case"attrPresence":return[4,eI(e)];case"attrValue":return[5,eI(e)];case"combinator":return[15,eI(e)]}}function eP(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw Error("Arguments must be arrays.");let r=e.length<t.length?e.length:t.length;for(let n=0;n<r;n++)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return e.length-t.length}V(R(ek,e=>({type:"list",list:[e]})),R(es(ei(",")),()=>(e,t)=>({type:"list",list:[...e.list,t]})),ek);class eR{constructor(e){this.branches=eD(function(e){let t=e.length,r=Array(t);for(let i=0;i<t;i++){var n;let[t,o]=e[i],a=(function e(t){let r=[];t.list.forEach(t=>{switch(t.type){case"class":r.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:t.specificity,type:"attrValue",value:t.name});break;case"id":r.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:t.specificity,type:"attrValue",value:t.name});break;case"combinator":e(t.left),r.push(t);break;case"universal":break;default:r.push(t)}}),t.list=r}(n=function(e,t){if(!("string"==typeof t||t instanceof String))throw Error("Expected a selector string. Actual input is not a string!");let r=J(t);if(!r.complete)throw Error(`The input "${t}" was only partially tokenized, stopped at offset ${r.offset}!
297`+eT(t,r.offset));let n=es(e)({tokens:r.tokens,options:void 0},0);if(!n.matched)throw Error(`No match for "${t}" input!`);if(n.position<r.tokens.length){let e=r.tokens[n.position];throw Error(`The input "${t}" was only partially parsed, stopped at offset ${e.offset}!
298`+eT(t,e.offset,e.len))}return n.value}(ek,t)),!function e(t){if(!t.type)throw Error("This is not an AST node.");switch(t.type){case"compound":t.list.forEach(e),t.list.sort((e,t)=>eP(eN(e),eN(t)));break;case"combinator":e(t.left);break;case"list":t.list.forEach(e),t.list.sort((e,t)=>eI(e)<eI(t)?-1:1)}return t}(n),n);r[i]={ast:a,terminal:{type:"terminal",valueContainer:{index:i,value:o,specificity:a.specificity}}}}return r}(e))}build(e){return e(this.branches)}}function eD(e){let t=[];for(;e.length;){let r=eB(e,e=>!0,eL),{matches:n,nonmatches:i,empty:o}=function(e,t){let r=[],n=[],i=[];for(let o of e){let e=o.ast.list;e.length?(e.some(e=>eL(e)===t)?r:n).push(o):i.push(o)}return{matches:r,nonmatches:n,empty:i}}(e,r);e=i,n.length&&t.push(function(e,t){if("tag"===e)return{type:"tagName",variants:Object.entries(ej(t,e=>"tag"===e.type,e=>e.name)).map(([e,t])=>({type:"variant",value:e,cont:eD(t.items)}))};if(e.startsWith("attrValue "))return function(e,t){let r=ej(t,t=>"attrValue"===t.type&&t.name===e,e=>`${e.matcher} ${e.modifier||""} ${e.value}`),n=[];for(let e of Object.values(r)){let t=e.oneSimpleSelector,r=function(e){if("i"===e.modifier){let t=e.value.toLowerCase();switch(e.matcher){case"=":return e=>t===e.toLowerCase();case"~=":return e=>e.toLowerCase().split(/[ \t]+/).includes(t);case"^=":return e=>e.toLowerCase().startsWith(t);case"$=":return e=>e.toLowerCase().endsWith(t);case"*=":return e=>e.toLowerCase().includes(t);case"|=":return e=>{let r=e.toLowerCase();return t===r||r.startsWith(t)&&"-"===r[t.length]}}}else{let t=e.value;switch(e.matcher){case"=":return e=>t===e;case"~=":return e=>e.split(/[ \t]+/).includes(t);case"^=":return e=>e.startsWith(t);case"$=":return e=>e.endsWith(t);case"*=":return e=>e.includes(t);case"|=":return e=>t===e||e.startsWith(t)&&"-"===e[t.length]}}}(t),i=eD(e.items);n.push({type:"matcher",matcher:t.matcher,modifier:t.modifier,value:t.value,predicate:r,cont:i})}return{type:"attrValue",name:e,matchers:n}}(e.substring(10),t);
298if(e.startsWith("attrPresence "))return function(e,t){for(let r of t)eM(r,t=>"attrPresence"===t.type&&t.name===e);return{type:"attrPresence",name:e,cont:eD(t)}}(e.substring(13),t);if("combinator >"===e)return eF(">",t);if("combinator +"===e)return eF("+",t);throw Error(`Unsupported selector kind: ${e}`)}(r,n)),o.length&&t.push(...function(e){let t=[];for(let r of e){let e=r.terminal;if("terminal"===e.type)t.push(e);else{let{matches:r,rest:n}=function(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return{matches:r,rest:n}}(e.cont,e=>"terminal"===e.type);r.forEach(e=>t.push(e)),n.length&&(e.cont=n,t.push(e))}}return t}(o))}return t}function eL(e){switch(e.type){case"attrPresence":return`attrPresence ${e.name}`;case"attrValue":return`attrValue ${e.name}`;case"combinator":return`combinator ${e.combinator}`;default:return e.type}}function eF(e,t){let r=ej(t,t=>"combinator"===t.type&&t.combinator===e,e=>eI(e.left)),n=[];for(let e of Object.values(r)){let t=eD(e.items),r=e.oneSimpleSelector.left;n.push({ast:r,terminal:{type:"popElement",cont:t}})}return{type:"pushElement",combinator:e,cont:eD(n)}}function ej(e,t,r){let n={};for(;e.length;){let i=eB(e,t,r),o=e=>t(e)&&r(e)===i,{matches:a,rest:s}=function(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return{matches:r,rest:n}}(e,e=>e.ast.list.some(o)),l=null;for(let e of a){let t=eM(e,o);l||(l=t)}if(null==l)throw Error("No simple selector is found.");n[i]={oneSimpleSelector:l,items:a},e=s}return n}function eM(e,t){let r=e.ast.list,n=Array(r.length),i=-1;for(let e=r.length;e-- >0;)t(r[e])&&(n[e]=!0,i=e);if(-1==i)throw Error("Couldn't find the required simple selector.");let o=r[i];return e.ast.list=r.filter((e,t)=>!n[t]),o}function eB(e,t,r){let n={};for(let i of e){let e={};for(let n of i.ast.list.filter(t))e[r(n)]=!0;for(let t of Object.keys(e))n[t]?n[t]++:n[t]=1}let i="",o=0;for(let e of Object.entries(n))e[1]>o&&(i=e[0],o=e[1]);return i}class eU{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,t=!1){let r=this.f(e),n=r.length;if(0===n)return null;if(1===n)return r[0].value;let i=t?eq:eV,o=r[0];for(let e=1;e<n;e++){let t=r[e];i(o,t)&&(o=t)}return o.value}}function eq(e,t){let r=eP(t.specificity,e.specificity);return r>0||0===r&&t.index<e.index}function eV(e,t){let r=eP(t.specificity,e.specificity);return r>0||0===r&&t.index>e.index}function ez(e){return new eU(e$(e))}function e$(e){let t=e.map(eG);return(e,...r)=>t.flatMap(t=>t(e,...r))}function eG(e){switch(e.type){case"terminal":{let t=[e.valueContainer];return(e,...r)=>t}case"tagName":return function(e){let t={};for(let r of e.variants)t[r.value]=e$(r.cont);return(e,...r)=>{let n=t[e.name];return n?n(e,...r):[]}}(e);case"attrValue":return function(e){let t=[];for(let r of e.matchers){let e=r.predicate,n=e$(r.cont);t.push((t,r,...i)=>e(t)?n(r,...i):[])}let r=e.name;return(e,...n)=>{let i=e.attribs[r];return i||""===i?t.flatMap(t=>t(i,e,...n)):[]}}(e);case"attrPresence":return function(e){let t=e.name,r=e$(e.cont);return(e,...n)=>Object.prototype.hasOwnProperty.call(e.attribs,t)?r(e,...n):[]}(e);case"pushElement":return function(e){let t=e$(e.cont),r="+"===e.combinator?eW:eH;return(e,...n)=>{let i=r(e);return null===i?[]:t(i,e,...n)}}(e);case"popElement":return function(e){let t=e$(e.cont);return(e,r,...n)=>t(r,...n)}(e)}}let eW=e=>{let t=e.prev;return null===t?null:_(t)?t:eW(t)},eH=e=>{let t=e.parent;return t&&_(t)?t:null};var eQ,eY,eX,eK,eZ,eJ,e0,e1,e2,e5,e3,e4,e6,e8,e9,e7,te,tt,tr,tn,ti,to,ta,ts=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;
298揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;
298䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;
298iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;
298䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;
298astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;
298aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),tl=new Uint16Array("Ȁaglq	\x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));let tu=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),tc=null!==(e6=String.fromCodePoint)&&void 0!==e6?e6:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function td(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=tu.get(e))&&void 0!==t?t:e}function tf(e){return e>=e8.ZERO&&e<=e8.NINE}(eQ=e8||(e8={}))[eQ.NUM=35]="NUM",eQ[eQ.SEMI=59]="SEMI",eQ[eQ.EQUALS=61]="EQUALS",eQ[eQ.ZERO=48]="ZERO",eQ[eQ.NINE=57]="NINE",eQ[eQ.LOWER_A=97]="LOWER_A",eQ[eQ.LOWER_F=102]="LOWER_F",eQ[eQ.LOWER_X=120]="LOWER_X",eQ[eQ.LOWER_Z=122]="LOWER_Z",eQ[eQ.UPPER_A=65]="UPPER_A",eQ[eQ.UPPER_F=70]="UPPER_F",eQ[eQ.UPPER_Z=90]="UPPER_Z",(eY=e9||(e9={}))[eY.VALUE_LENGTH=49152]="VALUE_LENGTH",eY[eY.BRANCH_LENGTH=16256]="BRANCH_LENGTH",eY[eY.JUMP_TABLE=127]="JUMP_TABLE",(eX=e7||(e7={}))[eX.EntityStart=0]="EntityStart",eX[eX.NumericStart=1]="NumericStart",eX[eX.NumericDecimal=2]="NumericDecimal",eX[eX.NumericHex=3]="NumericHex",eX[eX.NamedEntity=4]="NamedEntity",(eK=te||(te={}))[eK.Legacy=0]="Legacy",eK[eK.Strict=1]="Strict",eK[eK.Attribute=2]="Attribute";class th{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=e7.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=te.Strict}startEntity(e){this.decodeMode=e,this.state=e7.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case e7.EntityStart:if(e.charCodeAt(t)===e8.NUM)return this.state=e7.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=e7.NamedEntity,this.stateNamedEntity(e,t);case e7.NumericStart:return this.stateNumericStart(e,t);case e7.NumericDecimal:return this.stateNumericDecimal(e,t);case e7.NumericHex:return this.stateNumericHex(e,t);case e7.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===e8.LOWER_X?(this.state=e7.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=e7.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;
298this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){var n;let i=e.charCodeAt(t);if(!tf(i)&&(!((n=i)>=e8.UPPER_A)||!(n<=e8.UPPER_F))&&(!(n>=e8.LOWER_A)||!(n<=e8.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!tf(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===e8.SEMI)this.consumed+=1;else if(this.decodeMode===te.Strict)return 0;return this.emitCodePoint(td(this.result),this.consumed),this.errors&&(e!==e8.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&e9.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let o=e.charCodeAt(t);if(this.treeIndex=tm(r,n,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===te.Attribute&&(0===i||function(e){var t;return e===e8.EQUALS||(t=e)>=e8.UPPER_A&&t<=e8.UPPER_Z||t>=e8.LOWER_A&&t<=e8.LOWER_Z||tf(t)}(o))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&e9.VALUE_LENGTH)>>14)){if(o===e8.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==te.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&e9.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~e9.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case e7.NamedEntity:return 0!==this.result&&(this.decodeMode!==te.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case e7.NumericDecimal:return this.emitNumericEntity(0,2);case e7.NumericHex:return this.emitNumericEntity(0,3);case e7.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case e7.EntityStart:return 0}}}function tp(e){let t="",r=new th(e,e=>t+=tc(e));return function(e,n){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),r.startEntity(n);let a=r.write(e,o+1);if(a<0){i=o+r.end();break}i=o+a,o=0===a?i+1:i}let a=t+e.slice(i);return t="",a}}function tm(e,t,r,n){let i=(t&e9.BRANCH_LENGTH)>>7,o=t&e9.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let t=n-o;return t<0||t>=i?-1:e[r+t]-1}let a=r,s=a+i-1;for(;a<=s;){let t=a+s>>>1,r=e[t];if(r<n)a=t+1;else{if(!(r>n))return e[t+i];s=t-1}}return -1}function tg(e){return e===tt.Space||e===tt.NewLine||e===tt.Tab||e===tt.FormFeed||e===tt.CarriageReturn}function tv(e){return e===tt.Slash||e===tt.Gt||tg(e)}function ty(e){return e>=tt.Zero&&e<=tt.Nine}tp(ts),tp(tl),(eZ=tt||(tt={}))[eZ.Tab=9]="Tab",eZ[eZ.NewLine=10]="NewLine",eZ[eZ.FormFeed=12]="FormFeed",eZ[eZ.CarriageReturn=13]="CarriageReturn",eZ[eZ.Space=32]="Space",eZ[eZ.ExclamationMark=33]="ExclamationMark",eZ[eZ.Number=35]="Number",eZ[eZ.Amp=38]="Amp",eZ[eZ.SingleQuote=39]="SingleQuote",eZ[eZ.DoubleQuote=34]="DoubleQuote",eZ[eZ.Dash=45]="Dash",eZ[eZ.Slash=47]="Slash",eZ[eZ.Zero=48]="Zero",eZ[eZ.Nine=57]="Nine",eZ[eZ.Semi=59]="Semi",eZ[eZ.Lt=60]="Lt",eZ[eZ.Eq=61]="Eq",eZ[eZ.Gt=62]="Gt",eZ[eZ.Questionmark=63]="Questionmark",eZ[eZ.UpperA=65]="UpperA",eZ[eZ.LowerA=97]="LowerA",eZ[eZ.UpperF=70]="UpperF",eZ[eZ.LowerF=102]="LowerF",eZ[eZ.UpperZ=90]="UpperZ",eZ[eZ.LowerZ=122]="LowerZ",eZ[eZ.LowerX=120]="LowerX",eZ[eZ.OpeningSquareBracket=91]="OpeningSquareBracket",(eJ=tr||(tr={}))[eJ.Text=1]="Text",eJ[eJ.BeforeTagName=2]="BeforeTagName",eJ[eJ.InTagName=3]="InTagName",eJ[eJ.InSelfClosingTag=4]="InSelfClosingTag",eJ[eJ.BeforeClosingTagName=5]="BeforeClosingTagName",eJ[eJ.InClosingTagName=6]="InClosingTagName",eJ[eJ.AfterClosingTagName=7]="AfterClosingTagName",eJ[eJ.BeforeAttributeName=8]="BeforeAttributeName",eJ[eJ.InAttributeName=9]="InAttributeName",eJ[eJ.AfterAttributeName=10]="AfterAttributeName",eJ[eJ.BeforeAttributeValue=11]="BeforeAttributeValue",eJ[eJ.InAttributeValueDq=12]="InAttributeValueDq",eJ[eJ.InAttributeValueSq=13]="InAttributeValueSq",eJ[eJ.InAttributeValueNq=14]="InAttributeValueNq",eJ[eJ.BeforeDeclaration=15]="BeforeDeclaration",eJ[eJ.InDeclaration=16]="InDeclaration",eJ[eJ.InProcessingInstruction=17]="InProcessingInstruction",eJ[eJ.BeforeComment=18]="BeforeComment",eJ[eJ.CDATASequence=19]="CDATASequence",eJ[eJ.InSpecialComment=20]="InSpecialComment",eJ[eJ.InCommentLike=21]="InCommentLike",eJ[eJ.BeforeSpecialS=22]="BeforeSpecialS",eJ[eJ.SpecialStartSequence=23]="SpecialStartSequence",eJ[eJ.InSpecialTag=24]="InSpecialTag",eJ[eJ.BeforeEntity=25]="BeforeEntity",eJ[eJ.BeforeNumericEntity=26]="BeforeNumericEntity",eJ[eJ.InNamedEntity=27]="InNamedEntity",eJ[eJ.InNumericEntity=28]="InNumericEntity",eJ[eJ.InHexEntity=29]="InHexEntity",(e0=tn||(tn={}))[e0.NoValue=0]="NoValue",e0[e0.Unquoted=1]="Unquoted",e0[e0.Single=2]="Single",e
2980[e0.Double=3]="Double";let tb={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class tx{constructor({xmlMode:e=!1,decodeEntities:t=!0},r){this.cbs=r,this.state=tr.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=tr.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?tl:ts}reset(){this.state=tr.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=tr.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===tt.Lt||!this.decodeEntities&&this.fastForwardTo(tt.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=tr.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===tt.Amp&&(this.state=tr.BeforeEntity)}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(t?tv(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t){this.sequenceIndex++;return}}else this.isSpecial=!1;this.sequenceIndex=0,this.state=tr.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===tt.Gt||tg(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===tb.TitleEnd?this.decodeEntities&&e===tt.Amp&&(this.state=tr.BeforeEntity):this.fastForwardTo(tt.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===tt.Lt)}stateCDATASequence(e){e===tb.Cdata[this.sequenceIndex]?++this.sequenceIndex===tb.Cdata.length&&(this.state=tr.InCommentLike,this.currentSequence=tb.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=tr.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===tb.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=tr.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!tv(e):e>=tt.LowerA&&e<=tt.LowerZ||e>=tt.UpperA&&e<=tt.UpperZ}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=tr.SpecialStartSequence}stateBeforeTagName(e){if(e===tt.ExclamationMark)this.state=tr.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===tt.Questionmark)this.state=tr.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=32|e;this.sectionStart=this.index,this.xmlMode||t!==tb.TitleEnd[2]?this.state=this.xmlMode||t!==tb.ScriptEnd[2]?tr.InTagName:tr.BeforeSpecialS:this.startSpecial(tb.TitleEnd,3)}else e===tt.Slash?this.state=tr.BeforeClosingTagName:(this.state=tr.Text,this.stateText(e))}stateInTagName(e){tv(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=tr.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){tg(e)||(e===tt.Gt?this.state=tr.Text:(this.state=this.isTagStartChar(e)?tr.InClosingTagName:tr.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===tt.Gt||tg(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=tr.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===tt.Gt||this.fastForwardTo(tt.Gt))&&(this.state=tr.Text,this.baseState=tr.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===tt.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=tr.InSpecialTag,this.sequenceIndex=0):this.state=tr.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===tt.Slash?this.state=tr.InSelfClosingTag:tg(e)||(this.state=tr.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===tt.Gt?(this.cbs.onselfclosingtag(this.index),this.state=tr.Text,this.baseState=tr.Text,this.sectionStart=this.index+1,this.isSpecial=!1):tg(e)||(this.state=tr.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===tt.Eq||tv(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=tr.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===tt.Eq?this.state=tr.BeforeAttributeValue:e===tt.Slash||e===tt.Gt?(this.cbs.onattribend(tn.NoValue,this.index),this.state=tr.BeforeAttributeName,this.stateBeforeAttributeName(e)):tg(e)||(this.cbs.onattribend(tn.NoValue,this.index),this.state=tr.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===tt.DoubleQuote?(this.state=tr.InAttributeValueDq,this.sectionStart=this.index+1):e===tt.SingleQuote?(this.state=tr.InAttributeValueSq,this.sectionStart=this.index+1):tg(e)||(this.sectionStart=this.index,this.state=tr.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===tt.DoubleQuote?tn.Double:tn.Single,this.index),this.state=tr.BeforeAttributeName):this.decodeEntities&&e===tt.Amp&&(this.baseState=this.state,this.state=tr.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,tt.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,tt.SingleQuote)}stateInAttributeValueNoQuotes(e){tg(e)||e===tt.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(tn.Unquoted,this.index),this.state=tr.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===tt.Amp&&(this.baseState=this.state,this.state=tr.BeforeEntity)}stateBeforeDeclaration(e){e===tt.OpeningSquareBracket?(this.state=tr.CDATASequence,this.sequenceIndex=0):this.state=e===tt.Dash?tr.BeforeComment:tr.InDeclaration}stateInDeclaration(e){(e===tt.Gt||this.fastForwardTo(tt.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=tr.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===tt.Gt||this.fastForwardTo(tt.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=tr.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===tt.Dash?(this.state=tr.InCommentLike,this.currentSequence=tb.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=tr.InDeclaration}stateInSpecialComment(e){(e===tt.Gt||this.fastForwardTo(tt.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=tr.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=32|e;t===tb.ScriptEnd[3]?this.startSpecial(tb.ScriptEnd,4):t===tb.StyleEnd[3]?this.startSpecial(tb.StyleEnd,4):(this.state=tr.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===tt.Number?this.state=tr.BeforeNumericEntity:e===tt.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=tr.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=tm(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let t=this.trieCurrent&e9.VALUE_LENGTH;if(t){let r=(t>>14)-1;if(this.allowLegacyEntity()||e===tt.Semi){let e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}}emitNamedEntity(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&e9.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~e9.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(32|e)===tt.LowerX?(this.entityExcess++,this.state=tr.InHexEntity):(this.state=tr.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){let t=this.index-this.entityExcess-1;t+2+Number(this.state===tr.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(td(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===tt.Semi?this.emitNumericEntity(!0):ty(e)?(this.entityResult=10*this.entityResult+(e-tt.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===tt.Semi?this.emitNumericEntity(!0):ty(e)?(this.entityResult=16*this.entityResult+(e-tt.Zero),this.entityExcess++):e>=tt.UpperA&&e<=tt.UpperF||e>=tt.LowerA&&e<=tt.LowerF?(this.entityResult=16*this.entityResult+((32|e)-tt.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===tr.Text||this.baseState===tr.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===tr.Text||this.state===tr.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===tr.InAttributeValueDq||this.state===tr.InAttributeValueSq||this.state===tr.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case tr.Text:this.stateText(e);break;case tr.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case tr.InSpecialTag:this.stateInSpecialTag(e);break;case tr.CDATASequence:this.stateCDATASequence(e);break;case tr.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case tr.InAttributeName:this.stateInAttributeName(e);break;case tr.InCommentLike:this.stateInCommentLike(e);break;case tr.InSpecialComment:this.stateInSpecialComment(e);break;case tr.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case tr.InTagName:this.stateInTagName(e);break;case tr.InClosingTagName:this.stateInClosingTagName(e);break;case tr.BeforeTagName:this.stateBeforeTagName(e);break;case tr.AfterAttributeName:this.stateAfterAttributeName(e);break;case tr.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case tr.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case tr.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case tr.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case tr.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case tr.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case tr.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case tr.InDeclaration:this.stateInDeclaration(e);break;case tr.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case tr.BeforeComment:this.stateBeforeComment(e);break;case tr.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case tr.InNamedEntity:this.stateInNamedEntity(e);break;case tr.BeforeEntity:this.stateBeforeEntity(e);break;case tr.InHexEntity:this.stateInHexEntity(e);break;case tr.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===tr.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.state===tr.InCommentLike?this.currentSequence===tb.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===tr.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===tr.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===tr.InTagName||this.state===tr.BeforeAttributeName||this.state===tr.BeforeAttributeValue||this.state===tr.AfterAttributeName||this.state===tr.InAttributeName||this.state===tr.InAttributeValueSq||this.state===tr.InAttributeValueDq||this.state===tr.InAttributeValueNq||this.state===tr.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,t){this.baseState!==tr.Text&&this.baseState!==tr.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)}
298emitCodePoint(e){this.baseState!==tr.Text&&this.baseState!==tr.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}}let t_=new Set(["input","option","optgroup","select","button","datalist","textarea"]),tE=new Set(["p"]),tS=new Set(["thead","tbody"]),tw=new Set(["dd","dt"]),tk=new Set(["rt","rp"]),tT=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",tE],["h1",tE],["h2",tE],["h3",tE],["h4",tE],["h5",tE],["h6",tE],["select",t_],["input",t_],["output",t_],["button",t_],["datalist",t_],["textarea",t_],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",tw],["dt",tw],["address",tE],["article",tE],["aside",tE],["blockquote",tE],["details",tE],["div",tE],["dl",tE],["fieldset",tE],["figcaption",tE],["figure",tE],["footer",tE],["form",tE],["header",tE],["hr",tE],["main",tE],["nav",tE],["ol",tE],["pre",tE],["section",tE],["table",tE],["ul",tE],["rt",tk],["rp",tk],["tbody",tS],["tfoot",tS]]),tI=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),tC=new Set(["math","svg"]),tA=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),tO=/\s|\//;class tN{constructor(e,t={}){var r,n,i,o,a;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:!t.xmlMode,this.lowerCaseAttributeNames=null!==(n=t.lowerCaseAttributeNames)&&void 0!==n?n:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:tx)(this.options,this),null===(a=(o=this.cbs).onparserinit)||void 0===a||a.call(o,this)}ontext(e,t){var r,n;let i=this.getSlice(e,t);this.endIndex=t-1,null===(n=(r=this.cbs).ontext)||void 0===n||n.call(r,i),this.startIndex=t}ontextentity(e){var t,r;let n=this.tokenizer.getSectionStart();this.endIndex=n-1,null===(r=(t=this.cbs).ontext)||void 0===r||r.call(t,tc(e)),this.startIndex=n}isVoidElement(e){return!this.options.xmlMode&&tI.has(e)}onopentagname(e,t){this.endIndex=t;let r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(e){var t,r,n,i;this.openTagStart=this.startIndex,this.tagname=e;let o=!this.options.xmlMode&&tT.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){let e=this.stack.pop();null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,e,!0)}!this.isVoidElement(e)&&(this.stack.push(e),tC.has(e)?this.foreignContext.push(!0):tA.has(e)&&this.foreignContext.push(!1)),null===(i=(n=this.cbs).onopentagname)||void 0===i||i.call(n,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&(null===(r=(t=this.cbs).onopentag)||void 0===r||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var r,n,i,o,a,s;this.endIndex=t;let l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(tC.has(l)||tA.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(n=(r=this.cbs).onopentagname)||void 0===n||n.call(r,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(s=(a=this.cbs).onclosetag)||void 0===s||s.call(a,"br",!1));else{let e=this.stack.lastIndexOf(l);if(-1!==e){if(this.cbs.onclosetag){let t=this.stack.length-e;for(;t--;)this.cbs.onclosetag(this.stack.pop(),0!==t)}else this.stack.length=e}else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,r;let n=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===n&&(null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,n,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;let r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=tc(e)}onattribend(e,t){var r,n;this.endIndex=t,null===(n=(r=this.cbs).onattribute)||void 0===n||n.call(r,this.attribname,this.attribvalue,e===tn.Double?'"':e===tn.Single?"'":e===tn.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){let t=e.search(tO),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(e,t){this.endIndex=t;let r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${e}`,`!${r}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${e}`,`?${r}`)}this.startIndex=t+1}oncomment(e,t,r){var n,i,o,a;this.endIndex=t,null===(i=(n=this.cbs).oncomment)||void 0===i||i.call(n,this.get
298Slice(e,t-r)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1}oncdata(e,t,r){var n,i,o,a,s,l,u,c,d,f;this.endIndex=t;let h=this.getSlice(e,t-r);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(n=this.cbs).oncdatastart)||void 0===i||i.call(n),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,h),null===(l=(s=this.cbs).oncdataend)||void 0===l||l.call(s)):(null===(c=(u=this.cbs).oncomment)||void 0===c||c.call(u,`[CDATA[${h}]]`),null===(f=(d=this.cbs).oncommentend)||void 0===f||f.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=this.stack.length;e>0;this.cbs.onclosetag(this.stack[--e],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)}reset(){var e,t,r,n;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(n=(r=this.cbs).onparserinit)||void 0===n||n.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}let tP=/["&'<>$\x80-\uFFFF]/g,tR=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),tD=null!=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function tL(e){let t,r="",n=0;for(;null!==(t=tP.exec(e));){let i=t.index,o=e.charCodeAt(i),a=tR.get(o);void 0!==a?(r+=e.substring(n,i)+a,n=i+1):(r+=`${e.substring(n,i)}&#x${tD(e,i).toString(16)};`,n=tP.lastIndex+=Number((64512&o)==55296))}return r+e.substr(n)}function tF(e,t){return function(r){let n;let i=0,o="";for(;n=e.exec(r);)i!==n.index&&(o+=r.substring(i,n.index)),o+=t.get(n[0].charCodeAt(0)),i=n.index+1;return o+r.substring(i)}}tF(/[&<>'"]/g,tR);
298let tj=tF(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),tM=tF(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));(e1=ti||(ti={}))[e1.XML=0]="XML",e1[e1.HTML=1]="HTML",(e2=to||(to={}))[e2.UTF8=0]="UTF8",e2[e2.ASCII=1]="ASCII",e2[e2.Extensive=2]="Extensive",e2[e2.Attribute=3]="Attribute",e2[e2.Text=4]="Text";let tB=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),tU=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),tq=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function tV(e){return e.replace(/"/g,"&quot;")}let tz=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function t$(e,t={}){let r="length"in e?e:[e],f="";for(let e=0;e<r.length;e++)f+=function(e,t){switch(e.type){case n:return t$(e.children,t);case d:case o:return`<${e.data}>`;case a:return`<!--${e.data}-->`;case c:return`<![CDATA[${e.children[0].data}]]>`;case s:case l:case u:return function(e,t){var r;"foreign"===t.xmlMode&&(e.name=null!==(r=tB.get(e.name))&&void 0!==r?r:e.name,e.parent&&tG.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&tW.has(e.name)&&(t={...t,xmlMode:"foreign"});let n=`<${e.name}`,i=function(e,t){var r;if(!e)return;let n=(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1?tV:t.xmlMode||"utf8"!==t.encodeEntities?tL:tj;return Object.keys(e).map(r=>{var i,o;let a=null!==(i=e[r])&&void 0!==i?i:"";return("foreign"===t.xmlMode&&(r=null!==(o=tU.get(r))&&void 0!==o?o:r),t.emptyAttrs||t.xmlMode||""!==a)?`${r}="${n(a)}"`:r}).join(" ")}(e.attribs,t);return i&&(n+=` ${i}`),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&tz.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=t$(e.children,t)),(t.xmlMode||!tz.has(e.name))&&(n+=`</${e.name}>`)),n}(e,t);case i:return function(e,t){var r;let n=e.data||"";return(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1||!t.xmlMode&&e.parent&&tq.has(e.parent.name)||(n=t.xmlMode||"utf8"!==t.encodeEntities?tL(n):tM(n)),n}(e,t)}}(r[e],t);return f}let tG=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),tW=new Set(["svg","math"]);(e5=ta||(ta={}))[e5.DISCONNECTED=1]="DISCONNECTED",e5[e5.PRECEDING=2]="PRECEDING",e5[e5.FOLLOWING=4]="FOLLOWING",e5[e5.CONTAINS=8]="CONTAINS",e5[e5.CONTAINED_BY=16]="CONTAINED_BY";var tH=r(9996);function tQ(e,t,r=()=>void 0){if(void 0===e){let e=function(...r){return t(e,...r)};return e}return e>=0?function(...n){return t(tQ(e-1,t,r),...n)}:r}function tY(e,t){let r=0,n=e.length;for(;r<n&&e[r]===t;)++r;for(;n>r&&e[n-1]===t;)--n;return r>0||n<e.length?e.substring(r,n):e}function tX(e,t){let r=new Map;for(let n=e.length;n-- >0;){let i=e[n],o=t(i);r.set(o,r.has(o)?tH(i,r.get(o),{arrayMerge:tK}):i)}return[...r.values()].reverse()}let tK=(e,t,r)=>[...t];function tZ(e,t){for(let r of t){if(!e)return;e=e[r]}return e}function tJ(e,t="a",r=26){let n=[];do n.push((e-=1)%r),e=e/r>>0;while(e>0);let i=t.charCodeAt(0);return n.reverse().map(e=>String.fromCharCode(i+e)).join("")}let t0=["I","X","C","M"],t1=["V","L","D"];function t2(e){return[...e+""].map(e=>+e).reverse().map((e,t)=>e%5<4?(e<5?"":t1[t])+t0[t].repeat(e%5):t0[t]+(e<5?t1[t]:t0[t+1])).reverse().join("")}class t5{constructor(e,t){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=tZ(e,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=tZ(e,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,t=!1){this.nextLineAvailableChars<=0&&!t&&this.startNewLine();let r=0===this.nextLineWords.length,n=e.length+(r?0:1);if(n<=this.nextLineAvailableChars||t)this.nextLineWords.push(e),this.nextLineAvailableChars-=n;else{let[t,...n]=this.splitLongWord(e);for(let e of(r||this.startNewLine(),this.nextLineWords.push(t),this.nextLineAvailableChars-=t.length,n))this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){let e=this.nextLineWords.pop();if(void 0!==e){let t=0===this.nextLineWords.length,r=e.length+(t?0:1);this.nextLineAvailableChars+=r}return e}concatWord(e,t=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,t),this.wordBreakOpportunity=!1;else{let r=this.popWord();this.pushWord(r?r.concat(e):e,t)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(" ")).join("\n")}splitLongWord(e){let t=[],r=0;for(;e.length>this.maxLineLength;){let n=e.substring(0,this.maxLineLength),i=e.substring(this.maxLineLength),o=n.lastIndexOf(this.wrapCharacters[r]);if(o>-1)e=n.substring(o+1)+i,t.push(n.substring(0,o+1));else if(++r<this.wrapCharacters.length)e=n+i;else{if(this.forceWrapOnLimit){if(t.push(n),(e=i).length>this.maxLineLength)continue}else e=n+i;break}}return t.push(e),t}}class t3{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}class t4 extends t3{constructor(e,t=null,r=1,n){super(t),this.leadingLineBreaks=r,this.inlineTextBuilder=new t5(e,n),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class t6 extends t4{constructor(e,t=null,{interRowLineBreaks:r=1,leadingLineBreaks:n=2,maxLineLength:i,maxPrefixLength:o=0,prefixAlign:a="left"}={}){super(e,t,n,i),this.maxPrefixLength=o,this.prefixAlign=a,this.interRowLineBreaks=r}}class t8 extends t4{constructor(e,t=null,{leadingLineBreaks:r=1,maxLineLength:n,prefix:i=""}={}){super(e,t,r,n),this.prefix=i}}class t9 extends t3{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class t7 extends t3{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class re extends t3{constructor(e,t=null,r){super(t),this.inlineTextBuilder=new t5(e,r),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class rt extends t3{constructor(e=null,t){super(e),this.transform=t}}class rr{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,""):e.whitespaceCharacters;let t=[...this.whitespaceChars].map(e=>"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0")).join("");if(this.leadingWhitespaceRe=RegExp(`^[${t}]`),this.trailingWhitespaceRe=RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=RegExp(`(\\n|[^\\n${t}])`,"g"),this.newlineOrNonNewlineStringRe=RegExp(`(\\n|[^\\n]+)`,"g"),e.preserveNewlines){let e=RegExp(`\\n|[^\\n${t}]+`,"gm");this.shrinkWrapAdd=function(t,r,n=e=>e,i=!1){if(!t)return;let o=r.stashedSpace,a=!1,s=e.exec(t);if(s)for(a=!0,"\n"===s[0]?r.startNewLine():o||this.testLeadingWhitespace(t)?r.pushWord(n(s[0]),i):r.concatWord(n(s[0]),i);null!==(s=e.exec(t));)"\n"===s[0]?r.startNewLine():r.pushWord(n(s[0]),i);r.stashedSpace=o&&!a||this.testTrailingWhitespace(t)}}else{let e=RegExp(`[^${t}]+`,"g");this.shrinkWrapAdd=function(t,r,n=e=>e,i=!1){if(!t)return;let o=r.stashedSpace,a=!1,s=e.exec(t);if(s)for(a=!0,o||this.testLeadingWhitespace(t)?r.pushWord(n(s[0]),i):r.concatWord(n(s[0]),i);null!==(s=e.exec(t));)r.pushWord(n(s[0]),i);r.stashedSpace=o&&!a||this.testTrailingWhitespace(t)}}}addLiteral(e,t,r=!0){if(!e)return;let n=t.stashedSpace,i=!1,o=this.newlineOrNonNewlineStringRe.exec(e);if(o)for(i=!0,"\n"===o[0]?t.startNewLine():n?t.pushWord(o[0],r):t.concatWord(o[0],r);null!==(o=this.newlineOrNonNewlineStringRe.exec(e));)"\n"===o[0]?t.startNewLine():t.pushWord(o[0],r);t.stashedSpace=n&&!i}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){let t;this.newlineOrNonWhitespaceRe.lastIndex=0;let r=0;for(;null!==(t=this.newlineOrNonWhitespaceRe.exec(e));){if("\n"!==t[0])return 0;r++}return r}}class rn{constructor(e,t,r){this.options=e,this.picker=t,this.metadata=r,this.whitespaceProcessor=new rr(e),this._stackItem=new t4(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new rt(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;let e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}startNoWrap(){this._stackItem.isNoWrap=!0}
298stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){let e=this._wordTransformer?e=>(function e(t,r){return r?e(r.transform(t),r.next):t})(e,this._wordTransformer):void 0,t=this.options.encodeCharacters;return e?t?r=>t(e(r)):e:t}_popStackItem(){let e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof t4||this._stackItem instanceof t8||this._stackItem instanceof re)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof t4||this._stackItem instanceof t8||this._stackItem instanceof re)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof t4||this._stackItem instanceof t8||this._stackItem instanceof re){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}if(0!==e.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){let t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0){this._stackItem.inlineTextBuilder.startNewLine(t);return}}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,t?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}}addLiteral(e){if((this._stackItem instanceof t4||this._stackItem instanceof t8||this._stackItem instanceof re)&&0!==e.length){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(e,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:r=!1}={}){let n=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new t4(this.options,this._stackItem,e,n),r&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:e=1,blockTransform:t}={}){let r=this._popStackItem(),n=t?t(ri(r)):ri(r);ro(this._stackItem,n,r.leadingLineBreaks,Math.max(r.stashedLineBreaks,e))}openList({maxPrefixLength:e=0,prefixAlign:t="left",interRowLineBreaks:r=1,leadingLineBreaks:n=2}={}){this._stackItem=new t6(this.options,this._stackItem,{interRowLineBreaks:r,leadingLineBreaks:n,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:t})}openListItem({prefix:e=""}={}){if(!(this._stackItem instanceof t6))throw Error("Can't add a list item to something that is not a list! Check the formatter.");let t=this._stackItem,r=Math.max(e.length,t.maxPrefixLength),n=Math.max(20,t.inlineTextBuilder.maxLineLength-r);this._stackItem=new t8(this.options,t,{prefix:e,maxLineLength:n,leadingLineBreaks:t.interRowLineBreaks})}closeListItem(){let e=this._popStackItem(),t=e.next,r=Math.max(e.prefix.length,t.maxPrefixLength),n="\n"+" ".repeat(r),i=("right"===t.prefixAlign?e.prefix.padStart(r):e.prefix.padEnd(r))+ri(e).replace(/\n/g,n);ro(t,i,e.leadingLineBreaks,Math.max(e.stashedLineBreaks,t.interRowLineBreaks))}closeList({trailingLineBreaks:e=2}={}){let t=this._popStackItem(),r=ri(t);r&&ro(this._stackItem,r,t.leadingLineBreaks,e)}openTable(){this._stackItem=new t9(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof t9))throw Error("Can't add a table row to something that is not a table! Check the formatter.");this._stackItem=new t7(this._stackItem)}openTableCell({maxColumnWidth:e}={}){if(!(this._stackItem instanceof t7))throw Error("Can't add a table cell to something that is not a table row! Check the formatter.");this._stackItem=new re(this.options,this._stackItem,e)}closeTableCell({colspan:e=1,rowspan:t=1}={}){let r=this._popStackItem(),n=tY(ri(r),"\n");r.next.cells.push({colspan:e,rowspan:t,text:n})}closeTableRow(){let e=this._popStackItem();e.next.rows.push(e.cells)}closeTable({tableToString:e,leadingLineBreaks:t=2,trailingLineBreaks:r=2}){let n=e(this._popStackItem().rows);n&&ro(this._stackItem,n,t,r)}toString(){return ri(this._stackItem.getRoot())}}function ri(e){if(!(e instanceof t4||e instanceof t8||e instanceof re))throw Error("Only blocks, list items and table cells can be requested for text contents.");return e.inlineTextBuilder.isEmpty()?e.rawText:e.rawText+e.inlineTextBuilder.toString()}function ro(e,t,r,n){if(!(e instanceof t4||e instanceof t8||e instanceof re))throw Error("Only blocks, list items and table cells can contain text.");let i=ri(e),o=Math.max(e.stashedLineBreaks,r);e.inlineTextBuilder.clear(),i?e.rawText=i+"\n".repeat(o)+t:(e.rawText=t,e.leadingLineBreaks=o),e.stashedLineBreaks=n}function ra(e,t,r){if(!t)return;let n=r.options;for(let i of(t.length>n.limits.maxChildNodes&&(t=t.slice(0,n.limits.maxChildNodes)).push({data:n.limits.ellipsis,type:"text"}),t))switch(i.type){case"text":r.addInline(i.data);break;case"tag":{let t=r.picker.pick1(i);(0,n.formatters[t.format])(i,e,r,t.options||{})}}}function rs(e){let t=e.attribs&&e.attribs.length?" "+Object.entries(e.attribs).map(([e,t])=>""===t?e:`${e}=${t.replace(/"/g,"&quot;")}`).join(" "):"";return`<${e.name}${t}>`}function rl(e){return`</${e.name}>`}var ru=Object.freeze({__proto__:null,block:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},blockHtml:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),r.startNoWrap(),r.addLiteral(t$(e,{decodeEntities:r.options.decodeEntities}
298)),r.stopNoWrap(),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},blockString:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),r.addLiteral(n.string||""),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},blockTag:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),r.startNoWrap(),r.addLiteral(rs(e)),r.stopNoWrap(),t(e.children,r),r.startNoWrap(),r.addLiteral(rl(e)),r.stopNoWrap(),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},inline:function(e,t,r,n){t(e.children,r)},inlineHtml:function(e,t,r,n){r.startNoWrap(),r.addLiteral(t$(e,{decodeEntities:r.options.decodeEntities})),r.stopNoWrap()},inlineString:function(e,t,r,n){r.addLiteral(n.string||"")},inlineSurround:function(e,t,r,n){r.addLiteral(n.prefix||""),t(e.children,r),r.addLiteral(n.suffix||"")},inlineTag:function(e,t,r,n){r.startNoWrap(),r.addLiteral(rs(e)),r.stopNoWrap(),t(e.children,r),r.startNoWrap(),r.addLiteral(rl(e)),r.stopNoWrap()},skip:function(e,t,r,n){}});function rc(e,t){return e[t]||(e[t]=[]),e[t]}function rd(e,t){return void 0===e[t]&&(e[t]=0===t?0:1+rd(e,t-1)),e[t]}function rf(e,t,r,n){e[t+r]=Math.max(rd(e,t+r),rd(e,t)+n)}function rh(e,t){return t?("string"==typeof t[0]?t[0]:"[")+e+("string"==typeof t[1]?t[1]:"]"):e}function rp(e,t,r,n,i){let o="function"==typeof t?t(e,n,i):e;return"/"===o[0]&&r?function(e,t){let r=e.length;for(;r>0&&"/"===e[r-1];)--r;return r<e.length?e.substring(0,r):e}(r,0)+o:o}function rm(e,t,r,n,i){let o="li"===tZ(e,["parent","name"]),a=0,s=(e.children||[]).filter(e=>"text"!==e.type||!/^\s*$/.test(e.data)).map(function(e){if("li"!==e.name)return{node:e,prefix:""};let t=o?i().trimStart():i();return t.length>a&&(a=t.length),{node:e,prefix:t}}
298);if(s.length){for(let{node:e,prefix:i}of(r.openList({interRowLineBreaks:1,leadingLineBreaks:o?1:n.leadingLineBreaks||2,maxPrefixLength:a,prefixAlign:"left"}),s))r.openListItem({prefix:i}),t([e],r),r.closeListItem();r.closeList({trailingLineBreaks:o?1:n.trailingLineBreaks||2})}}function rg(e,t,r,n){function i(e){let i=+tZ(e,["attribs","colspan"])||1,o=+tZ(e,["attribs","rowspan"])||1;r.openTableCell({maxColumnWidth:n.maxColumnWidth}),t(e.children,r),r.closeTableCell({colspan:i,rowspan:o})}r.openTable(),e.children.forEach(function e(t){if("tag"!==t.type)return;let o=!1!==n.uppercaseHeaderCells?e=>{r.pushWordTransform(e=>e.toUpperCase()),i(e),r.popWordTransform()}:i;switch(t.name){case"thead":case"tbody":case"tfoot":case"center":t.children.forEach(e);return;case"tr":for(let e of(r.openTableRow(),t.children))if("tag"===e.type)switch(e.name){case"th":o(e);break;case"td":i(e)}r.closeTableRow()}}),r.closeTable({tableToString:e=>(function(e,t,r){let n=[],i=0,o=e.length,a=[0];for(let r=0;r<o;r++){let o=rc(n,r),s=e[r],l=0;for(let e=0;e<s.length;e++){let i=s[e];(function(e,t,r,n){for(let i=0;i<e.rowspan;i++){let o=rc(t,r+i);for(let t=0;t<e.colspan;t++)o[n+t]=e}})(i,n,r,l=function(e,t=0){for(;e[t];)t++;return t}(o,l)),l+=i.colspan,i.lines=i.text.split("\n");let u=i.lines.length;rf(a,r,i.rowspan,u+t)}i=o.length>i?o.length:i}!function(e,t){for(let r=0;r<t;r++){let t=rc(e,r);for(let n=0;n<r;n++){let i=rc(e,n);if(t[n]||i[r]){let e=t[n];t[n]=i[r],i[r]=e}}}}(n,o>i?o:i);let s=[],l=[0];for(let e=0;e<i;e++){let t,i=0,u=Math.min(o,n[e].length);for(;i<u;)if(t=n[e][i]){if(!t.rendered){let n=0;for(let r=0;r<t.lines.length;r++){let o=t.lines[r],u=a[i]+r;s[u]=(s[u]||"").padEnd(l[e])+o,n=o.length>n?o.length:n}rf(l,e,t.colspan,n+r),t.rendered=!0}i+=t.rowspan}else{let e=a[i];s[e]=s[e]||"",i++}}return s.join("\n")})(e,n.rowSpacing??0,n.colSpacing??3),leadingLineBreaks:n.leadingLineBreaks,trailingLineBreaks:n.trailingLineBreaks})}var rv=Object.freeze({__proto__:null,anchor:function(e,t,r,n){let i=function(){if(n.ignoreHref||!e.attribs||!e.attribs.href)return"";let t=e.attribs.href.replace(/^mailto:/,"");return n.noAnchorUrl&&"#"===t[0]?"":t=rp(t,n.pathRewrite,n.baseUrl,r.metadata,e)}();if(i){let o="";r.pushWordTransform(e=>(e&&(o+=e),e)),t(e.children,r),r.popWordTransform(),n.hideLinkHrefIfSameAsText&&i===o||r.addInline(o?" "+rh(i,n.linkBrackets):i,{noWordTransform:!0})}else t(e.children,r)},blockquote:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2,reservedLineLength:2}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2,blockTransform:e=>(!1!==n.trimEmptyLines?tY(e,"\n"):e).split("\n").map(e=>"> "+e).join("\n")})},dataTable:rg,heading:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),!1!==n.uppercase?(r.pushWordTransform(e=>e.toUpperCase()),t(e.children,r),r.popWordTransform()):t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},horizontalLine:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),r.addInline("-".repeat(n.length||r.options.wordwrap||40)),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},image:function(e,t,r,n){let i=e.attribs||{},o=i.alt?i.alt:"",a=i.src?rp(i.src,n.pathRewrite,n.baseUrl,r.metadata,e):"",s=a?o?o+" "+rh(a,n.linkBrackets):rh(a,n.linkBrackets):o;r.addInline(s,{noWordTransform:!0})},lineBreak:function(e,t,r,n){r.addLineBreak()},orderedList:function(e,t,r,n){let i=Number(e.attribs.start||"1"),o=function(e="1"){switch(e){case"a":return e=>tJ(e,"a");case"A":return e=>tJ(e,"A");case"i":return e=>t2(e).toLowerCase();case"I":return e=>t2(e);default:return e=>e.toString()}}(e.attribs.type);return rm(e,t,r,n,()=>" "+o(i++)+". ")},paragraph:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},pre:function(e,t,r,n){r.openBlock({isPre:!0,leadingLineBreaks:n.leadingLineBreaks||2}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},table:function(e,t,r,n){return!function(e,t){if(!0===t)return!0;
298if(!e)return!1;let{classes:r,ids:n}=function(e){let t=[],r=[];for(let n of e)n.startsWith(".")?t.push(n.substring(1)):n.startsWith("#")&&r.push(n.substring(1));return{classes:t,ids:r}}(t),i=(e.class||"").split(" "),o=(e.id||"").split(" ");return i.some(e=>r.includes(e))||o.some(e=>n.includes(e))}(e.attribs,r.options.tables)?void(r.openBlock({leadingLineBreaks:n.leadingLineBreaks}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks})):rg(e,t,r,n)},unorderedList:function(e,t,r,n){let i=n.itemPrefix||" * ";return rm(e,t,r,n,()=>i)},wbr:function(e,t,r,n){r.addWordBreakOpportunity()}});let ry={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:16777216},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" 	\r\n\f​",wordwrap:80},rb=(e,t,r)=>[...e,...t],rx=(e,t,r)=>[...t],r_=(e,t,r)=>e.some(e=>"object"==typeof e)?rb(e,t):rx(e,t);function rE(e){return e?(function(e,t={},r){return(function(e={}){return(e=tH(ry,e,{arrayMerge:rx,customMerge:e=>"selectors"===e?r_:void 0})).formatters=Object.assign({},ru,rv,e.formatters),e.selectors=tX(e.selectors,e=>e.selector),function(e){if(e.tags){let t=Object.entries(e.tags).map(([e,t])=>({...t,selector:e||"*"}));e.selectors.push(...t),e.selectors=tX(e.selectors,e=>e.selector)}function t(e,t,r){let n=t.pop();for(let r of t){let t=e[r];t||(t={},e[r]=t),e=t}e[n]=r}if(e.baseElement){let r=e.baseElement;t(e,["baseElements","selectors"],Array.isArray(r)?r:[r])}for(let r of(void 0!==e.returnDomByDefault&&t(e,["baseElements","returnDomByDefault"],e.returnDomByDefault),e.selectors))"anchor"===r.format&&tZ(r,["options","noLinkBrackets"])&&t(r,["options","linkBrackets"],!1)}(e),function(e={}){let t=e.selectors.filter(e=>!e.format);if(t.length)throw Error("Following selectors have no specified format: "+t.map(e=>`\`${e.selector}\``).join(", "));let r=new eR(e.selectors.map(e=>[e.selector,e])).build(ez);"function"!=typeof e.encodeCharacters&&(e.encodeCharacters=function(e){if(!e||0===Object.keys(e).length)return;let t=Object.entries(e).filter(([,e])=>!1!==e),r=RegExp(t.map(([e])=>`(${[...e][0].replace(/[\s\S]/g,e=>"\\u"+e.charCodeAt().toString(16).padStart(4,"0"))})`).join("|"),"g"),n=t.map(([,e])=>e),i=(e,...t)=>n[t.findIndex(e=>e)];return e=>e.replace(r,i)}(e.encodeCharacters));let n=new eR(e.baseElements.selectors.map((e,t)=>[e,t+1])).build(ez);function i(t){return function(e,t,r){let n=[];return tQ(t.limits.maxDepth,function(e,i){for(let o of i=i.slice(0,t.limits.maxChildNodes)){if("tag"!==o.type)continue;let i=r.pick1(o);if(i>0?n.push({selectorIndex:i,element:o}):o.children&&e(o.children),n.length>=t.limits.maxBaseElements)return}})(e),"occurrence"!==t.baseElements.orderBy&&n.sort((e,t)=>
298e.selectorIndex-t.selectorIndex),t.baseElements.returnDomByDefault&&0===n.length?e:n.map(e=>e.element)}(t,e,n)}let o=tQ(e.limits.maxDepth,ra,function(t,r){r.addInline(e.limits.ellipsis||"")});return function(t,n){return function(e,t,r,n,i,o){let a=r.limits.maxInputLength;a&&e&&e.length>a&&(console.warn(`Input length ${e.length} is above allowed limit of ${a}. Truncating without ellipsis.`),e=e.substring(0,a));let s=i(function(e,t){let r=new k(void 0,t);return new tN(r,t).end(e),r.root}(e,{decodeEntities:r.decodeEntities}).children),l=new rn(r,n,t);return o(s,l),l.toString()}(t,n,e,r,i,o)}}(e)})(t)(e,void 0)})(e,{wordwrap:!1,preserveNewlines:!0,selectors:[{selector:"a",options:{format:"inline"}},{selector:"br",format:"lineBreak"},{selector:"p",format:"block"},{selector:"strong",format:"inline",options:{uppercase:!1}},{selector:"b",format:"inline",options:{uppercase:!1}},{selector:"em",format:"inline"},{selector:"i",format:"inline"},{selector:"li",format:"block",options:{itemPrefix:"• "}},{selector:"ol",format:"block"},{selector:"ul",format:"block"},{selector:"h1",format:"block",options:{uppercase:!0}},{selector:"h2",format:"block",options:{uppercase:!0}}]}).replace(/[\r\n]+/g," ").replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|[\uD83C-\uDBFF\uDC00-\uDFFF]|\u200D|\uFE0F)/g,"").replace(/\s+/g," ").trim():""}function rS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:125;if(!e)return"";if(e.length<=t)return e;let r=e.lastIndexOf(" ",t);return(-1!==r&&r>0?e.slice(0,r):e.slice(0,t)).replace(/[.,;:]+$/,"")+"…"}var rw=r(73167);let rk="https://caringbridge.thegiftcardshop.com/",rT="https://www.instacart.com/store/hub/ich_caringbridge",rI="https://www.mealtrain.com/caringBridge",rC="https://shop.lively.com/pages/caregivers?utm_source=caringbridge&utm_campaign=partnerships&content=tile_page",rA=e=>!e||0===e.replace(/<[^>]*>/g,"").trim().length;function rO(e,t){if(null==e?void 0:e.latestPublicUpdate){let r=e.latestPublicUpdate,n=null==r?void 0:r.publicUpdateType;if("POST"===n){let e=rE(r.title||"");if(e.trim())return rS(e)}if(n&&n in rw.d6){let i=e.firstName||"",o=r.shareLink||"",a=rE((0,rw.NU)(n,i,o,t).title||"");if(a.trim())return rS(a)}}return null}},95027:function(e,t,r){"use strict";r.d(t,{y:function(){return ej},K:function(){return eM}});var n=r(85893),i=r(67294),o=r(52243),a=r(35541),s=r(19778),l=r(49163),u=r(57747),c=r(66205),d=r(64859),f=r(85970),h=r(54346),p=r(14253),m=r(34292),g=r(93108),v=r(14e3),y=r(93717),b=r(5418),x=r(2678),_=r(65225),E=r(32654),S=r(12805),w=r(85075),k=r(35155);function T(e,t){var r;let n=e.target;return(!n||!!I(n).contains(n))&&!(null==(r=t.current)?void 0:r.contains(n))}function I(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var C=r(93694),A=r(55227),O=r(52366),N=r(81103),P=r(25432),R=r(92625),[D,L,F,j]=(0,_.n)(),[M,B]=(0,A.k)({strict:!1,name:"MenuContext"});function U(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function q(e){return U(e).activeElement===e}function V(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}var z=r(77030),$=r(33179),G=r(48940),[W,H]=(0,A.k)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),Q=e=>{let{children:t}=e,r=(0,z.jC)("Menu",e),o=(0,$.Lr)(e),{direction:a}=(0,G.F)(),{descendants:s,...l}=function(e={}){let{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:s,isOpen:l,defaultIsOpen:u,onClose:c,onOpen:d,placement:f="bottom-start",lazyBehavior:h="unmount",direction:p,computePositionOnMount:m=!1,...g}=e,v=(0,i.useRef)(null),y=(0,i.useRef)(null),b=F(),x=(0,i.useCallback)(()=>{requestAnimationFrame(()=>{var e;null==(e=v.current)||e.focus({preventScroll:!1})})},[]),_=(0,i.useCallback)(()=>{let e=setTimeout(()=>{var e;if(o)null==(e=o.current)||e.focus();else{let e=b.firstEnabled();e&&B(e.index)}});G.current.add(e)},[b,o]),A=(0,i.useCallback)(()=>{let e=setTimeout(()=>{let e=b.lastEnabled();e&&B(e.index)});G.current.add(e)},[b]),N=(0,i.useCallback)(()=>{null==d||d(),a?_():x()},[a,_,x,d]),{isOpen:P,onOpen:R,onClose:D,onToggle:L}=(0,w.q)({isOpen:l,defaultIsOpen:u,onClose:c,onOpen:N});!function(e){let{ref:t,handler:r,enabled:n=!0}=e,o=(0,k.W)(r),a=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,i.useEffect)(()=>
298{if(!n)return;let e=e=>{T(e,t)&&(a.isPointerDown=!0)},i=e=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&r&&T(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&T(e,t)&&(a.isPointerDown=!1,o(e))},l=I(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",i,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",i,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}},[r,t,o,a,n])}({enabled:P&&n,ref:v,handler:e=>{var t;(null==(t=y.current)?void 0:t.contains(e.target))||D()}});let j=(0,S.D)({...g,enabled:P||m,placement:f,direction:p}),[M,B]=(0,i.useState)(-1);(0,O.r)(()=>{P||B(-1)},[P]),(0,E.C)(v,{focusRef:y,visible:P,shouldFocus:!0});let q=(0,C.h)({isOpen:P,ref:v}),[V,z]=function(e,...t){let r=(0,i.useId)(),n=e||r;return(0,i.useMemo)(()=>t.map(e=>`${e}-${n}`),[n,t])}(t,"menu-button","menu-list"),$=(0,i.useCallback)(()=>{R(),x()},[R,x]),G=(0,i.useRef)(new Set([]));(0,i.useEffect)(()=>{let e=G.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]);let W=(0,i.useCallback)(()=>{R(),_()},[_,R]),H=(0,i.useCallback)(()=>{R(),A()},[R,A]),Q=(0,i.useCallback)(()=>{var e,t;let r=U(v.current),n=null==(e=v.current)?void 0:e.contains(r.activeElement);if(!(P&&!n))return;let i=null==(t=b.item(M))?void 0:t.node;null==i||i.focus({preventScroll:!0})},[P,M,b]),Y=(0,i.useRef)(null);return{openAndFocusMenu:$,openAndFocusFirstItem:W,openAndFocusLastItem:H,onTransitionEnd:Q,unstable__animationState:q,descendants:b,popper:j,buttonId:V,menuId:z,forceUpdate:j.forceUpdate,orientation:"vertical",isOpen:P,onToggle:L,onOpen:R,onClose:D,menuRef:v,buttonRef:y,focusedIndex:M,closeOnSelect:r,closeOnBlur:n,autoSelect:a,setFocusedIndex:B,isLazy:s,lazyBehavior:h,initialFocusRef:o,rafId:Y}}({...o,direction:a}),u=(0,i.useMemo)(()=>l,[l]),{isOpen:c,onClose:d,forceUpdate:f}=u;return(0,n.jsx)(D,{value:s,children:(0,n.jsx)(M,{value:u,children:(0,n.jsx)(W,{value:r,children:(0,P.Pu)(t,{isOpen:c,onClose:d,forceUpdate:f})})})})};Q.displayName="Menu";var Y=r(48783),X=r(16554),K=r(59235),Z=(0,X.G)((e,t)=>{let r=H();return(0,n.jsx)(K.m.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})}),J=(0,X.G)((e,t)=>{let{children:r,as:o,...a}=e,s=function(e={},t=null){let r=B(),{onToggle:n,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=r,l=(0,i.useCallback)(e=>{let t={Enter:a,ArrowDown:a,ArrowUp:s}[e.key];t&&(e.preventDefault(),e.stopPropagation(),t(e))},[a,s]);return{...e,ref:(0,N.lq)(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":(0,P.PB)(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:(0,P.v0)(e.onClick,n),onKeyDown:(0,P.v0)(e.onKeyDown,l)}}(a,t),l=o||Z;return(0,n.jsx)(l,{...s,className:(0,P.cx)("chakra-menu__menu-button",e.className),children:(0,n.jsx)(K.m.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});J.displayName="MenuButton";var ee=r(77672),et={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},er=(0,K.m)(ee.E.div),en=(0,X.G)(function(e,t){var r,o;let{rootProps:a,motionProps:s,...l}=e,{isOpen:u,onTransitionEnd:c,unstable__animationState:d}=B(),f=function(e={},t=null){let r=B();if(!r)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");let{focusedIndex:n,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:l,menuId:u,isLazy:c,lazyBehavior:d,unstable__animationState:f}=r,h=L(),p=function(e={}){let{timeout:t=300,preventDefault:r=()=>!0}=e,[n,o]=(0,i.useState)([]),a=(0,i.useRef)(),s=()=>{a.current&&(clearTimeout(a.current),a.current=null)},l=()=>{s(),a.current=setTimeout(()=>{o([]),a.current=null},t)};return(0,i.useEffect)(()=>s,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...n];e.pop(),o(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let i=n.concat(t.key);r(t)&&(t.preventDefault(),t.stopPropagation()),o(i),e(i.join("")),l()}}}}({preventDefault:e=>" "!==e.key&&V(e.target)}),m=(0,i.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t={Tab:e=>e.preventDefault(),Escape:l,ArrowDown:()=>{let e=h.nextEnabled(n);e&&o(e.index)},ArrowUp:()=>{let e=h.prevEnabled(n);e&&o(e.index)}}[e.key];if(t){e.preventDefault(),t(e);return}let r=p(e=>{let t=function(e,t,r,n){if(null==t)return n;if(!n)return e.find(e=>r(e).toLowerCase().startsWith(t.toLowerCase()));let i=e.filter(e=>r(e).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let t;return i.includes(n)?((t=i.indexOf(n)+1)===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return n}(h.values(),e,e=>{var t,r;return null!=(r=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?r:""},h.item(n));t&&o(h.indexOf(t.node))});V(e.target)&&r(e)},[h,n,p,l,o]),g=(0,i.useRef)(!1);s&&(g.current=!0);let v=(0,R.k)({wasSelected:g.current,enabled:c,mode:d,isSelected:f.present});return{...e,ref:(0,N.lq)(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:u,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,P.v0)(e.onKeyDown,m)}}(l,t),h=function(e={}){let{popper:t,isOpen:r}=B();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}(a),p=H();return(0,n.jsx)(K.m.div,{...h,__css:{zIndex:null!=(o=e.zIndex)?o:null==(r=p.list)?void 0:r.zIndex},children:(0,n.jsx)(er,{variants:et,initial:!1,animate:u?"enter":"exit",__css:{outline:0,...p.list},...s,className:(0,P.cx)("chakra-menu__menu-list",f.className),...f,onUpdate:c,onAnimationComplete:(0,P.PP)(d.onComplete,f.onAnimationComplete)})})});en.displayName="MenuList";var ei=(0,X.G)((e,t)=>{let r=H();return(0,n.jsx)(K.m.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})});ei.displayName="MenuCommand";var eo=(0,X.G)((e,t)=>{let{type:r,...o}=e,a=H(),s=o.as||r?null!=r?r:void 0:"button",l=(0,i.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...a.item}),[a.item]);return(0,n.jsx)(K.m.button,{ref:t,type:s,...o,__css:l})}),ea=e=>{let{className:t,children:r,...o}=e,a=H(),s=i.Children.only(r),l=(0,i.isValidElement)(s)?(0,i.cloneElement)(s,{focusable:"false","aria-hidden":!0,
298className:(0,P.cx)("chakra-menu__icon",s.props.className)}):null,u=(0,P.cx)("chakra-menu__icon-wrapper",t);return(0,n.jsx)(K.m.span,{className:u,...o,__css:a.icon,children:l})};ea.displayName="MenuIcon";var es=(0,X.G)((e,t)=>{let{icon:r,iconSpacing:o="0.75rem",command:a,commandSpacing:s="0.75rem",children:l,...u}=e,c=function(e={},t=null){let{onMouseEnter:r,onMouseMove:n,onMouseLeave:o,onClick:a,onFocus:s,isDisabled:l,isFocusable:u,closeOnSelect:c,type:d,...f}=e,{setFocusedIndex:h,focusedIndex:p,closeOnSelect:m,onClose:g,menuRef:v,isOpen:y,menuId:b,rafId:_}=B(),E=(0,i.useRef)(null),S=`${b}-menuitem-${(0,i.useId)()}`,{index:w,register:k}=j({disabled:l&&!u}),T=(0,i.useCallback)(e=>{null==r||r(e),l||h(w)},[h,w,l,r]),I=(0,i.useCallback)(e=>{null==n||n(e),E.current&&!q(E.current)&&T(e)},[T,n]),C=(0,i.useCallback)(e=>{null==o||o(e),l||h(-1)},[h,l,o]),A=(0,i.useCallback)(e=>{null==a||a(e),V(e.currentTarget)&&(null!=c?c:m)&&g()},[g,a,m,c]),P=(0,i.useCallback)(e=>{null==s||s(e),h(w)},[h,s,w]),R=w===p,D=l&&!u;(0,O.r)(()=>{if(y)return R&&!D&&E.current?(_.current&&cancelAnimationFrame(_.current),_.current=requestAnimationFrame(()=>{var e;null==(e=E.current)||e.focus({preventScroll:!0}),_.current=null})):v.current&&!q(v.current)&&v.current.focus({preventScroll:!0}),()=>{_.current&&cancelAnimationFrame(_.current)}},[R,D,v,y]);let L=(0,x.h)({onClick:A,onFocus:P,onMouseEnter:T,onMouseMove:I,onMouseLeave:C,ref:(0,N.lq)(k,E,t),isDisabled:l,isFocusable:u});return{...f,...L,type:null!=d?d:L.type,id:S,role:"menuitem",tabIndex:R?0:-1}}(u,t),d=r||a?(0,n.jsx)("span",{style:{pointerEvents:"none",flex:1},children:l}):l;return(0,n.jsxs)(eo,{...c,className:(0,P.cx)("chakra-menu__menuitem",c.className),children:[r&&(0,n.jsx)(ea,{fontSize:"0.8em",marginEnd:o,children:r}),d,a&&(0,n.jsx)(ei,{marginStart:s,children:a})]})});es.displayName="MenuItem";var el=r(33090),eu=r(36948),[ec,ed]=(0,A.k)({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormError />\" "}),ef=(0,X.G)((e,t)=>{let r=(0,z.jC)("FormError",e),i=(0,$.Lr)(e),o=(0,f.NJ)();return(null==o?void 0:o.isInvalid)?(0,n.jsx)(ec,{value:r,children:(0,n.jsx)(K.m.div,{...null==o?void 0:o.getErrorMessageProps(i,t),className:(0,P.cx)("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});ef.displayName="FormErrorMessage",(0,X.G)((e,t)=>{let r=ed(),i=(0,f.NJ)();if(!(null==i?void 0:i.isInvalid))return null;let o=(0,P.cx)("chakra-form__error-icon",e.className);
298return(0,n.jsx)(eu.J,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:o,children:(0,n.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}).displayName="FormErrorIcon";var eh=r(5152),ep=r.n(eh),em=r(26290);let eg=ep()(()=>Promise.all([r.e(9774),r.e(253),r.e(6911),r.e(5311),r.e(8764),r.e(3953),r.e(6418),r.e(5297),r.e(2292),r.e(2067)]).then(r.bind(r,19165)),{loadableGenerated:{webpack:()=>[19165]},ssr:!1});var ev=e=>{let{title:t="",body:r="",placeholders:i={title:"Title",body:"Details"},onTitleChange:o,onBodyChange:a}=e,s=(0,em.Qw)(t);return(0,n.jsxs)(Y.g,{spacing:4,alignItems:"flex-start",width:"100%",children:[(0,n.jsx)(u.xu,{width:"100%",children:(0,n.jsxs)(f.NI,{isInvalid:!s,children:[(0,n.jsx)(b.l,{"data-qa":"title-input-label",children:"Title"}),(0,n.jsx)(el.I,{placeholder:i.title,isRequired:!0,value:t,onChange:e=>o(e.target.value),size:"lg",borderColor:"gray.200",fontSize:"16px",isInvalid:!s,"data-qa":"title-input"}),(0,n.jsx)(ef,{children:"Title must not exceed 50 characters."})]})}),(0,n.jsx)(u.xu,{"data-qa":"content-body",width:"100%",children:(0,n.jsxs)(f.NI,{minHeight:{base:"432px",sm:"388px"},children:[(0,n.jsx)(b.l,{"data-qa":"body-input-label",children:"Details"}),(0,n.jsx)(u.xu,{borderRadius:"5px",border:"1px solid",borderColor:"gray.200",overflow:"hidden","data-qa":"body-input",children:(0,n.jsx)(eg,{postHtml:r,setPostHtml:a,placeholderText:i.body})})]})})]})},ey=r(43871);let eb=e=>{if(!e)return(0,n.jsx)(v.x,{as:"span",p:"14px",color:"gray.500",children:"Select"});let t=ey.l[e];return(0,n.jsxs)(m.U,{spacing:4,alignItems:"center",height:"44px",children:[(0,n.jsx)(y.k,{boxSize:"28px",bg:t.primaryColor,color:"gray.0",borderRadius:"100%",border:"1px solid white",justifyContent:"center",alignItems:"center",children:(0,n.jsx)("i",{className:"".concat(t.iconName," fa-solid")})}),(0,n.jsx)(v.x,{as:"span",children:t.label})]})},ex=(e,t)=>{if("request"===e){var r,n,i;let e=(null===(r=ey.l[t])||void 0===r?void 0:r.label)||"";return{title:"".concat(e," Request"),body:(null===(i=ey.l[t])||void 0===i?void 0:null===(n=i.editorData)||void 0===n?void 0:n.bodyPlaceholder)||"Ask for help with tasks like meals, transportation, or other care needs. Requests make it easier to communicate your needs without the pressure of asking directly."}}return{title:"Title",body:"Details"}};var e_=e=>{var t,r,o;let{contentData:a,isEditing:s=!1,onChange:l}=e,[c,d]=(0,i.useState)(a.content),[f,h]=i.useState((null==a?void 0:null===(t=a.content)||void 0===t?void 0:t.requestType)||null),[p,g]=(0,i.useState)(!1),v=(e,t)=>{let r={...c,[t]:e};d(r),l({...a,content:r})},y=e=>{let t={...c,requestType:e};h(e),d(t),l({...a,content:t})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u.xu,{width:"100%",children:[(0,n.jsx)(b.l,{children:"Request Type"}),s&&eb(f),!s&&(0,n.jsx)(Q,{variant:"unstyled",matchWidth:!0,gutter:0,onOpen:()=>g(!0),onClose:()=>g(!1),children:(0,n.jsxs)(Y.g,{spacing:0,width:"100%",children:[(0,n.jsx)(J,{width:"100%",border:"1px solid",borderRadius:p?"5px 5px 0px 0px":"5px",borderBottom:p?"none":"1px solid",borderColor:"gray.300",bg:"gray.0","data-qa":"request-type-select-menu",children:(0,n.jsxs)(m.U,{justifyContent:"space-between","data-qa":"seledted-request-type",children:[eb(f),(0,n.jsx)("i",{className:"fa-chevron-down fa-regular"})," "]})}),(0,n.jsx)(en,{width:"100%",position:"relative",bg:"gray.0",border:"1px solid",borderColor:"gray.300",borderTop:"none",p:0,zIndex:2,borderRadius:"0px 0px 5px 5px",children:Object.entries(ey.l).map(e=>{let[t,r]=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(es,{border:"none",borderTop:"1px solid",borderTopColor:"gray.300",color:f===t?"gray.0":"gray.800",bg:f===t?r.primaryColor:"transparent",onClick:()=>y(t),"data-qa":"request-type-option-".concat(r.label),children:eb(t)},r.label)})})})]})})]}),(0,n.jsx)(ev,{placeholders:{...ex(a.type,f)},title:(null===(r=a.content)||void 0===r?void 0:r.title)||"",body:(null===(o=a.content)||void 0===o?void 0:o.body)||"",onTitleChange:e=>v(e,"title"),onBodyChange:e=>v(e,"body")})]})},eE=r(31508),eS=r(61922),ew=r(92206),ek=r(95568),eT=r(38411),eI=r(50319),eC=r(60453),eA=r(25351),eO=r(35691),eN=r(91067),eP=r(4162),eR=(e,t)=>{let r=(0,eC.Pe)(),[n,o]=(0,i.useState)(null),a=(0,eO.fm)(),s=function(n,i,s){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0;o(null),r({event:s,...l}),a({type:eO.Ir.SET_VALUE,isDirtyFeed:!0}),c&&u&&(0,eN.y)({contentId:i,contentType:"request"===n?"REQUEST":"POST",contentTitle:u,isPostPublishSuccess:!0}),t(),(0,eP.Eh)((0,eP.G3)(eP.Z6.SITE_HOME_PAGE,{siteId:e}))},l=e=>{o("".concat(e," Please try again later, or contact Customer Care."))},[u,{loading:c}]=(0,eI.D)(eA.wP,{onCompleted:e=>{var t,r,n,i;s("request",null==e?void 0:null===(r=e.createRequest)||void 0===r?void 0:null===(t=r.request)||void 0===t?void 0:t.id,eC.kM.REQUEST_CREATED,{},null==e?void 0:null===(i=e.createRequest)||void 0===i?void 0:null===(n=i.request)||void 0===n?void 0:n.title,!0)},onError:()=>l("We had some trouble creating your Request."),refetchQueries:["GET_FEED","GET_REQUESTS"]}),[d,{loading:f}]=(0,eI.D)(eA.kS,{onCompleted:e=>{var t,r,n,i;s("request",null==e?void 0:null===(r=e.updateRequest)||void 0===r?void 0:null===(t=r.request)||void 0===t?void 0:t.id,eC.kM.REQUEST_UPDATED,{},null==e?void 0:null===(i=e.updateRequest)||void 0===i?void 0:null===(n=i.request)||void 0===n?void 0:n.title,!1)},onError:()=>l("We had some trouble updating your Request."),refetchQueries:["GET_FEED","GET_REQUESTS","GET_REQUEST"]});return{createRequest:u,updateRequest:d,loading:c||f,error:n}};let eD=e=>{var t;let{contentData:r,siteId:v,isOpen:y,onClose:b}=e,x=(0,i.useRef)(!r.id),_=(0,i.useRef)(!0),E=(0,i.useRef)(null),S=(0,o.G)(),w=(0,i.useRef)(null),[k]=i.useState(r.id||null),[T,I]=i.useState((0,em.al)(r)),[C,A]=i.useState((0,em.Oi)(T)),O=(0,eE.XX)(),N=i.useMemo(()=>(0,em.z0)(r),[r]),P=(0,eE.zW)(),R=JSON.stringify(O.photoFiles),D=()=>{b()},{loading:L,createRequest:F,updateRequest:j}=eR(v,D),M=i.useCallback(e=>{I(e),A((0,em.Oi)(e))},[I]),B=i.useCallback(()=>{T.content.photos=(0,eT.hX)(O.photoFiles),M(T)},[O.photoFiles,T,M]);(0,i.useEffect)(()=>{!0!==_.current&&B()},[R,B]),(0,i.useEffect)(()=>{!0===_.current&&r.content&&r.content.photos.length>0&&P({type:eE.yx.HYDRATE,photos:r.content.photos}),_.current=!1},[r,P]);let U=L||O.isUploading||C.length>0;return(0,n.jsxs)(a.u_,{variant:"contentEditor",isOpen:y,initialFocusRef:w,closeOnOverlayClick:!1,closeOnEsc:!1,onClose:D,children:[(0,n.jsx)(s.Z,{}),(0,n.jsxs)(l.h,{children:[(0,n.jsx)(u.xu,{ref:w,tabIndex:-1,position:"absolute",top:0}),(0,n.jsx)(c.o,{"data-qa":"content-editor-close-button",children:(0,n.jsx)("i",{className:"fa-thin fa-times"})}),(0,n.jsx)(d.x,{children:N}),(0,n.jsxs)(f.NI,{children:[(0,n.jsx)(h.f,{children:"request"===T.type&&(0,n.jsx)(e_,{contentData:T,isEditing:!1===x.current,onChange:M})}),(0,n.jsx)(p.m,{children:(0,n.jsxs)(m.U,{spacing:{base:2,md:4},justifyContent:"space-between",width:"100%",children:[(0,n.jsx)(u.xu,{width:"calc(100% - ".concat((null===(t=E.current)||void 0===t?void 0:t.offsetWidth)+10||0,"px)"),children:(0,n.jsx)(ew.Z,{uploadButtonContent:(0,em.xb)(R.length)})}),(0,n.jsxs)(m.U,{spacing:{base:2,md:4},alignItems:"center",justifyContent:"space-between",ref:E,children:[!["base","sm"].includes(S)&&(0,n.jsx)(g.z,{variant:"link",onClick:D,"data-qa":"content-editor-cancel-button",children:"Cancel"}),(0,n.jsx)(g.z,{variant:"primary",p:"10px 13px",fontSize:"22px",isLoading:L,spinner:(0,n.jsx)(eS.ZP,{spotSize:8}),isDisabled:U,onClick:()=>{let e=T.content;if("request"===T.type){var t;let r={body:e.body,title:(null===(t=e.title)||void 0===t?void 0:t.trim().length)?e.title.trim():ex(T.type,T.content.requestType).title,photos:T.content.photos};k?j({variables:{input:{content:r,requestId:T.id}}}):F({variables:{input:{content:{...T.content,...r},siteId:v}}})}},"data-qa":"content-editor-submit-button",children:(0,n.jsx)("i",{className:"fa-paper-plane fa-solid"})})]})]})})]})]})]})};var eL=e=>
298(0,n.jsx)(eE.TV,{value:{uploadType:ek.mu.JOURNAL_POST,maxFileCount:6},children:(0,n.jsx)(eD,{...e})});let eF=(0,i.createContext)(void 0),ej=e=>{let{children:t}=e,[r,o]=(0,i.useState)(!1),[a,s]=(0,i.useState)(null),[l,u]=(0,i.useState)(null);return(0,n.jsxs)(eF.Provider,{value:{isEditorOpen:r,currentContent:a,siteId:l,launchEditorFor:(e,t)=>{s(e),u(t),o(!0)}},children:[t,a&&l&&(0,n.jsx)(eL,{contentData:a,siteId:l,isOpen:r,onClose:()=>{o(!1),s(null),u(null)}})]})},eM=()=>{let e=(0,i.useContext)(eF);if(!e)throw Error("useEditor must be used within an EditorProvider");return e}},26290:function(e,t,r){"use strict";r.d(t,{Oi:function(){return f},Qw:function(){return c},al:function(){return l},xb:function(){return u},z0:function(){return s}});var n=r(85893),i=r(34292),o=r(14e3),a=r(99315);r(4162);let s=e=>"".concat(e.id?"Edit":"Create"," a ").concat(e.type.charAt(0).toUpperCase()+e.type.slice(1).toLowerCase()),l=e=>e.content?e:"request"===e.type?{type:"request",id:null,content:{requestType:null,title:"",body:"",photos:[],requestSlots:[]}}:null,u=e=>0===e?(0,n.jsxs)(i.U,{spacing:2,alignItems:"center",children:[(0,n.jsx)("i",{className:"fa-image fa-solid"}),(0,n.jsx)(o.x,{as:"span",fontSize:"16px",children:"Add Photos"})]}):(0,n.jsx)("i",{className:"fa-image fa-solid"}),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=e.trim();return 0===i.length?n:!(i.length<t)&&!(i.length>r)},d=e=>{let{title:t,body:r,requestType:n}=e.content,i=[];return c(t)||i.push("title"),(0,a.vc)(r)&&i.push("body"),n||i.push("requestType"),i},f=e=>"request"===e.type?d(e):[]},25351:function(e,t,r){"use strict";r.d(t,{BP:function(){return ee},EF:function(){return q},Gi:function(){return X},J$:function(){return K},L8:function(){return W},Mh:function(){return U},P7:function(){return Z},QI:function(){return Q},QW:function(){return F},Qp:function(){return J},Sx:function(){return R},W7:function(){return en},Xv:function(){return L},_u:function(){return G},bF:function(){return Y},dL:function(){return et},fo:function(){return P},kE:function(){return er},kS:function(){return M},li:function(){return $},mh:function(){return H},sJ:function(){return B},ug:function(){return z},vG:function(){return D},wP:function(){return j},z7:function(){return V},zj:function(){return ei}});var n=r(82729),i=r(17283);function o(){let e=(0,n._)(["\n    mutation CREATE_POST($input: CreatePostInput!) {\n        createPost(input: $input) {\n            id\n            title\n            body\n            photos {\n                publicId\n                legacyPath\n                height\n                width\n            }\n            savedAsDraftAt\n        }\n    }\n"]);return o=function(){return e},e}function a(){let e=(0,n._)(["\n    mutation UPDATE_POST($input: UpdatePostInput!) {\n        updatePost(input: $input) {\n            id\n            title\n            body\n            photos {\n                publicId\n                legacyPath\n                height\n                width\n            }\n            savedAsDraftAt\n        }\n    }\n"]);return a=function(){return e},e}function s(){let e=(0,n._)(["\n    mutation DELETE_POST($input: deletePostInput!) {\n        deletePost(input: $input)\n    }\n"]);return s=function(){return e},e}function l(){let e=(0,n._)(["\n    mutation DELETE_WAYS_TO_HELP_POST($input: DeleteWaysToHelpPostInput!) {\n        deleteWaysToHelpPost(input: $input)\n    }\n"]);return l=function(){return e},e}function u(){let e=(0,n._)(["\n    mutation CREATE_REQUEST($input: CreateRequestInput!) {\n        createRequest(input: $input) {\n            request {\n                id\n                title\n            }\n        }\n    }\n"]);return u=function(){return e},e}function c(){let e=(0,n._)(["\n    mutation UPDATE_REQUEST($input: UpdateRequestInput!) {\n        updateRequest(input: $input) {\n            request {\n                id\n                title\n            }\n        }\n    }\n"]);return c=function(){return e},e}function d(){let e=(0,n._)(["\n    mutation CREATE_SESSION($input
298: CreateSessionInput!) {\n        createSession(input: $input) {\n            sessionId\n            sessionExpiredAt\n        }\n    }\n"]);return d=function(){return e},e}function f(){let e=(0,n._)(["\n    query GET_PUBLIC_SITE($siteId: String!, $bypassPublicSearchable: Boolean) {\n        getPublicSite(query: { id: $siteId, bypassPublicSearchable: $bypassPublicSearchable }) {\n            firstName\n            lastName\n            title\n            numVisits\n            photo {\n                publicId\n                height\n                width\n                legacyPath\n            }\n            posts {\n                firstPostDate\n                lastPostDate\n            }\n            latestPublicUpdate {\n                title\n                body\n                shareLink\n                publicUpdateType\n                numComments\n                numReactions\n                author {\n                    firstName\n                    lastName\n                }\n            }\n        }\n    }\n"]);return f=function(){return e},e}function h(){let e=(0,n._)(["\n    query GET_PUBLIC_POST($postId: String!) {\n        getPublicPost(query: { id: $postId }) {\n            publicPost {\n                title\n                body\n                photos {\n                    height\n                    legacyPath\n                    publicId\n                    width\n                }\n            }\n        }\n    }\n"]);return h=function(){return e},e}function p(){let e=(0,n._)(["\n    query GET_SITE_CORE($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            firstName\n            lastName\n            numVisits\n            title\n            patientId\n            privacy\n            isShareableByVisitor\n            numTributes\n            createdAt\n            healthCondition\n            isUsingOtpvToken\n            postConnection {\n                totalCount\n                posts {\n                    createdAt\n                }\n            }\n            tributeConnection {\n                totalDonorCount\n            }\n            requestConnection(query: { paginationInput: { limit: 1 } }) {\n                totalCount\n            }\n\n            tooltips {\n                status\n                type\n            }\n\n            mainSitePhoto {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            context {\n                roles\n            }\n            numAuthors\n            isAuthor @client\n            isFollower @client\n            tpid\n        }\n    }\n"]);return p=function(){return e},e}function m(){let e=(0,n._)(["\n    query GET_SITE_VISITOR_COUNT($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            visitorConnection(query: { paginationInput: { limit: 1 } }) {\n                totalCount\n            }\n        }\n    }\n"]);return m=function(){return e},e}function g(){let e=(0,n._)(["\n    query GET_SITE_PAGE(\n        $siteId: String!\n        $limit: Int\n        $sortDirection: SortDirection\n        $nextToken: String\n    ) {\n        getSite(query: { id: $siteId }) {\n            id\n            firstName\n            lastName\n            numVisits\n            title\n            patientId\n            privacy\n            mainSitePhoto {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            context {\n                roles\n            }\n            isShareableByVisitor\n            isAuthor @client\n            isFollower @client\n            postConnection(\n                query: {\n                    paginationInput: {\n                        limit: $limit\n                        sortDirection: $sortDirection\n                        nextToken: $nextToken\n                    }\n                }\n            ) {\n                nextToken\n                totalCount\n                posts {\n                    id\n                    siteId\n                    title\n                    createdAt\n                    author {\n                        id\n                        firstName\n                        lastName\n                        photo {\n                            publicId\n                            legacyPath\n                        }\n                    }\n                    body\n                    photos {\n                        publicId\n                        legacyPath\n                        width\n                        height\n                    }\n                    commentCount {\n                        totalDescendentCount\n                    }\n                    reactionGroupSummary {\n                        id\n                        contextualUserHasReacted\n                        totalCount\n                        type\n                    }\n                }\n            }\n        }\n    }\n"]);return g=function(){return e},e}function v(){let e=(0,n._)(["\n    query GET_LATEST_POST_ID($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            postConnection(query: { paginationInput: { limit: 1, sortDirection: DESCENDING } }) {\n                posts {\n                    id\n                }\n            }\n        }\n    }\n"]);return v=function(){return e},e}function y(){let e=(0,n._)(["\n    query GET_FEED(\n        $siteId: String!\n        $limit: Int\n        $sortDirection: SortDirection\n        $nextToken: String\n    ) {\n        getSite(query: { id: $siteId }) {\n            id\n            firstName\n            lastName\n            numVisits\n            title\n            patientId\n            privacy\n            mainSitePhoto {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            context {\n                roles\n            }\n            isShareableByVisitor\n            isAuthor @client\n            isFollower @client\n            feedConnection(\n                query: {\n                    paginationInput: {\n                        limit: $limit\n                        sortDirection: $sortDirection\n                        nextToken: $nextToken\n                    }\n                }\n            ) {\n                nextToken\n                pinnedFeeds {\n                    id\n                    type\n                    isPinned\n                    item {\n                        ... on Post {\n                            id\n                            siteId\n                            title\n                            createdAt\n                            author {\n                                id\n                                firstName\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                            body\n                            photos {\n                                publicId\n                                legacyPath\n                                width\n                                height\n                            }\n                            commentCount {\n                                totalDescendentCount\n                            }\n                            reactionGroupSummary {\n                                id\n                                contextualUserHasReacted\n                                totalCount\n                                type\n                            }\n                        }\n                        ... on WaysToHelpPost {\n                            id\n                            siteId\n                            siteTitle\n                            firstName\n                            lastName\n                            author {\n                                id\n                                firstName\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                            type\n                            privileges\n                            url\n                            body\n                            title\n                            createdAt\n                            updatedAt\n                            commentCount {\n                                totalDescendentCount\n                            }\n                            reactionGroupSummary {\n                                id\n                                contextualUserHasReacted\n                                totalCount\n                                type\n                            }\n                        }\n                        ... on Request {\n                            id\n                            author {\n                                firstName\n                                id\n                                lastName\n                                photo {\n                                    height\n                                    legacyPath\n                                    publicId\n                                    width\n                                }\n                            }\n                            body\n                            commentCount {\n                                topLevelCount\n                                totalDescendentCount\n                            }\n                            createdAt\n                            photos {\n                                height\n                                legacyPath\n                                publicId\n                                width\n                            }\n                            privileges\n                            reactionGroupSummary {\n                                contextualUserHasReacted\n                                didAutoFollowSite\n                                id\n                                totalCount\n                                type\n                            }\n                            requestSlots {\n                                helper {\n                                    emailAddress\n                                    firstName\n                                    id\n                                    lastName\n                                    photo {\n                                        height\n                                        legacyPath\n                                        publicId\n                                        width\n                                    }\n                                }\n                                id\n                                requestId\n                                schedule {\n                                    date\n                                    time\n                                    timezone\n                                }\n                            }\n                            requestType\n                            siteId\n                            title\n                            updatedAt\n                        }\n                    }\n                }\n                feeds {\n                    id\n                    type\n                    isPinned\n                    item {\n                        ... on Post {\n                            id\n                            siteId\n                            title\n                            createdAt\n                            author {\n                                id\n                                firstName\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                            body\n                            photos {\n                                publicId\n                                legacyPath\n                                width\n                                height\n                            }\n                            commentCount {\n                                totalDescendentCount\n                            }\n                            reactionGroupSummary {\n                                id\n                                contextualUserHasReacted\n                                totalCount\n                                type\n                            }\n                        }\n                        ... on Tribute {\n                            id\n                            siteId\n                            createdAt\n                            message\n                            signature\n                            donor {\n                                firstName\n                                id\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                        }\n                        ... on WaysToHelpPost {\n                            id\n                            siteId\n                            siteTitle\n                            firstName\n                            lastName\n                            title\n                            body\n                            author {\n                                id\n                                firstName\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                            type\n                            url\n                            privileges\n                            createdAt\n                            updatedAt\n                            commentCount {\n                                totalDescendentCount\n                            }\n                            reactionGroupSummary {\n                                id\n                                contextualUserHasReacted\n                                totalCount\n                                type\n                            }\n                        }\n                        ... on Request {\n                            id\n                            author {\n                                firstName\n                                id\n                                lastName\n                                photo {\n                                    height\n                                    legacyPath\n                                    publicId\n                                    width\n                                }\n                            }\n                            body\n                            commentCount {\n                                topLevelCount\n                                totalDescendentCount\n                            }\n                            createdAt\n                            photos {\n                                height\n                                legacyPath\n                                publicId\n                                width\n                            }\n                            privileges\n                            reactionGroupSummary {\n                                contextualUserHasReacted\n                                didAutoFollowSite\n                                id\n                                totalCount\n                                type\n                            }\n                            requestSlots {\n                                helper {\n                                    emailAddress\n                                    firstName\n                                    id\n                  
298                  lastName\n                                    photo {\n                                        height\n                                        legacyPath\n                                        publicId\n                                        width\n                                    }\n                                }\n                                id\n                                requestId\n                                schedule {\n                                    date\n                                    time\n                                    timezone\n                                }\n                            }\n                            requestType\n                            siteId\n                            title\n                            updatedAt\n                        }\n                    }\n                }\n            }\n        }\n    }\n"]);return y=function(){return e},e}function b(){let e=(0,n._)(["\n    query GET_TRIBUTES(\n        $siteId: String!\n        $limit: Int\n        $sortDirection: SortDirection\n        $nextToken: String\n    ) {\n        getSite(query: { id: $siteId }) {\n            id\n            firstName\n            isAuthor @client\n            isFollower @client\n            tributeConnection(\n                query: {\n                    paginationInput: {\n                        limit: $limit\n                        sortDirection: $sortDirection\n                        nextToken: $nextToken\n                    }\n                }\n            ) {\n                nextToken\n                totalCount\n                tributes {\n                    id\n                    siteId\n                    signature\n                    message\n                    createdAt\n                    donor {\n                        id\n                        firstName\n                        lastName\n                        photo {\n                            publicId\n                            legacyPath\n                        }\n                    }\n                }\n            }\n        }\n    }\n"]);return b=function(){return e},e}function x(){let e=(0,n._)(["\n    query GET_REQUESTS(\n        $siteId: String!\n        $limit: Int\n        $sortDirection: SortDirection\n        $nextToken: String\n    ) {\n        getSite(query: { id: $siteId }) {\n            id\n            isAuthor @client\n            isFollower @client\n            requestConnection(\n                query: {\n                    paginationInput: {\n                        limit: $limit\n                        sortDirection: $sortDirection\n                        nextToken: $nextToken\n                    }\n                }\n            ) {\n                nextToken\n                totalCount\n                requests {\n                    id\n                    siteId\n                    requestType\n                    title\n                    body\n                    author {\n                        id\n                        firstName\n                        lastName\n                        photo {\n                            publicId\n                            width\n                            height\n                            legacyPath\n                        }\n                    }\n                    photos {\n                        publicId\n                        width\n                        height\n                        legacyPath\n                    }\n                    privileges\n                    createdAt\n                    updatedAt\n                    requestSlots {\n                        id\n                        requestId\n                        helper {\n                            id\n                            firstName\n                            lastName\n                            emailAddress\n                            photo {\n                                publicId\n                                width\n                                height\n                                legacyPath\n                            }\n                        }\n                        schedule {\n                            date\n                            time\n                            timezone\n                        }\n                    }\n                    commentCount {\n                        topLevelCount\n                        totalDescendentCount\n                    }\n                    reactionGroupSummary {\n                        id\n                        type\n                        contextualUserHasReacted\n                        totalCount\n                    }\n                }\n            }\n        }\n    }\n"]);return x=function(){return e},e}function _(){let e=(0,n._)(["\n    query GET_POST($postId: String!) {\n        getPost(query: { id: $postId }) {\n            id\n            title\n            siteId\n            createdAt\n            postContext {\n                hasCommented\n                isAuthor\n            }\n            author {\n                firstName\n                lastName\n                photo {\n                    publicId\n                    legacyPath\n                }\n            }\n            body\n            photos {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            commentCount {\n                totalDescendentCount\n            }\n            reactionGroupSummary {\n                id\n                contextualUserHasReacted\n                totalCount\n                type\n            }\n        }\n    }\n"]);return _=function(){return e},e}function E(){let e=(0,n._)(["\n    query GET_WAYS_TO_HELP_POST($waysToHelpPostId: String!) {\n        getWaysToHelpPost(query: { id: $waysToHelpPostId }) {\n            id\n            siteId\n            siteTitle\n            firstName\n            lastName\n            title\n            body\n            author {\n                id\n                firstName\n                lastName\n                photo {\n                    publicId\n                    legacyPath\n                }\n            }\n            type\n            url\n            privileges\n            createdAt\n            updatedAt\n            postContext {\n                hasCommented\n                isAuthor\n            }\n            commentCount {\n                totalDescendentCount\n            }\n            reactionGroupSummary {\n                id\n                contextualUserHasReacted\n                totalCount\n                type\n            }\n            # commentCount {\n            #     totalDescendentCount\n            # }\n            # reactionGroupSummary {\n            #     id\n            #     contextualUserHasReacted\n            #     totalCount\n            #     type\n            # }\n        }\n    }\n"]);return E=function(){return e},e}
298function S(){let e=(0,n._)(["\n    mutation FOLLOW_PAGE($input: FollowSiteInput!) {\n        followSite(input: $input) {\n            isFollowing\n        }\n    }\n"]);return S=function(){return e},e}function w(){let e=(0,n._)(["\n    mutation DismissTooltip($input: UpdateTooltipInput!) {\n        updateTooltip(input: $input) {\n            tooltip {\n                status\n                type\n            }\n        }\n    }\n"]);return w=function(){return e},e}function k(){let e=(0,n._)(["\n    mutation UNFOLLOW_PAGE($input: UnfollowSiteInput!) {\n        unfollowSite(input: $input) {\n            isFollowing\n        }\n    }\n"]);return k=function(){return e},e}function T(){let e=(0,n._)(["\n    mutation PIN_FEED_ITEM($input: PinFeedItemInput) {\n        pinFeedItem(input: $input) {\n            feed {\n                id\n            }\n        }\n    }\n"]);return T=function(){return e},e}function I(){let e=(0,n._)(["\n    mutation UNPIN_FEED_ITEM($input: UnpinFeedItemInput) {\n        unpinFeedItem(input: $input) {\n            feed {\n                id\n            }\n        }\n    }\n"]);return I=function(){return e},e}function C(){let e=(0,n._)(["\n    query GET_DRAFTS($siteId: String!) {\n        getDrafts(input: { siteId: $siteId }) {\n            drafts {\n                id\n                title\n                body\n                createdAt\n                updatedAt\n                savedAsDraftAt\n                photos {\n                    publicId\n                    legacyPath\n                    width\n                    height\n                }\n            }\n        }\n    }\n"]);return C=function(){return e},e}function A(){let e=(0,n._)(["\n    query GET_REQUEST($requestId: ID!) {\n        getRequest(query: { id: $requestId }) {\n            id\n            siteId\n            requestType\n            title\n            body\n            author {\n                id\n                firstName\n                lastName\n                photo {\n                    publicId\n                    width\n                    height\n                    legacyPath\n                }\n            }\n            photos {\n                publicId\n                width\n                height\n                legacyPath\n            }\n            privileges\n            createdAt\n            updatedAt\n            requestSlots {\n                id\n                requestId\n                helper {\n                    id\n                    firstName\n                    lastName\n                    photo {\n                        publicId\n                        width\n                        height\n                        legacyPath\n                    }\n                    emailAddress\n                }\n                schedule {\n                    date\n                    time\n                    timezone\n                }\n            }\n            commentCount {\n                topLevelCount\n                totalDescendentCount\n            }\n            reactionGroupSummary {\n                id\n                type\n                contextualUserHasReacted\n                totalCount\n            }\n        }\n    }\n"]);return A=function(){return e},e}function O(){let e=(0,n._)(["\n    mutation UPDATE_REQUEST_SLOT_ASSIGNMENT(\n        $requestId: ID!\n        $requestSlotId: ID!\n        $action: RequestSlotAssignmentAction!\n    ) {\n        updateRequestSlotAssignment(\n            input: { requestId: $requestId, requestSlotId: $requestSlotId, action: $action }\n        ) {\n            request {\n                author {\n                    firstName\n                    id\n                    lastName\n                    photo {\n                        height\n                        legacyPath\n                        publicId\n                        width\n                    }\n                }\n                body\n                commentCount {\n                    topLevelCount\n                    totalDescendentCount\n                }\n                createdAt\n                id\n                photos {\n                    height\n                    legacyPath\n                    publicId\n                    width\n                }\n                privileges\n                requestSlots {\n                    helper {\n                        emailAddress\n                        firstName\n                        id\n                        lastName\n                        photo {\n                            height\n                            legacyPath\n                            publicId\n                            width\n                        }\n                    }\n                    id\n                    requestId\n                    schedule {\n                        date\n                        time\n                        timezone\n                    }\n                }\n                requestType\n                siteId\n                title\n                updatedAt\n            }\n        }\n    }\n"]);return O=function(){return e},e}function N(){let e=(0,n._)(["\n    mutation DELETE_REQUEST($input: DeleteRequestInput!) {\n        deleteRequest(input: $input) {\n            id\n        }\n    }\n"]);return N=function(){return e},e}let P={GET_SITE_PAGE:"GET_SITE_PAGE",GET_SITE_CORE:"GET_SITE_CORE",GET_POST:"GET_PO
298ST",GET_FEED:"GET_FEED",GET_REQUESTS:"GET_REQUESTS"},R=(0,i.Ps)(o()),D=(0,i.Ps)(a()),L=(0,i.Ps)(s()),F=(0,i.Ps)(l()),j=(0,i.Ps)(u()),M=(0,i.Ps)(c()),B=(0,i.Ps)(d()),U=(0,i.Ps)(f());(0,i.Ps)(h());let q=(0,i.Ps)(p()),V=(0,i.Ps)(m()),z=(0,i.Ps)(g()),$=(0,i.Ps)(v()),G=(0,i.Ps)(y()),W=(0,i.Ps)(b()),H=(0,i.Ps)(x()),Q=(0,i.Ps)(_()),Y=(0,i.Ps)(E()),X=(0,i.Ps)(S()),K=(0,i.Ps)(w()),Z=(0,i.Ps)(k()),J=(0,i.Ps)(T()),ee=(0,i.Ps)(I()),et=(0,i.Ps)(C()),er=(0,i.Ps)(A()),en=(0,i.Ps)(O()),ei=(0,i.Ps)(N())},35691:function(e,t,r){"use strict";r.d(t,{Ei:function(){return m},Ff:function(){return v},Ir:function(){return c},J6:function(){return p},fm:function(){return g},oS:function(){return l}});var n=r(85893),i=r(67294),o=r(45697),a=r.n(o),s=r(93726);let l={ADD:"ADD",DRAFT:"DRAFT",EDIT:"EDIT",PIN:"PIN",UNPIN:"UNPIN",DELETE:"DELETE",NONE:"NONE"},u={mode:l.NONE,post:null,feedId:"",waysToHelp:{},activeTab:"ALL",isDirtyFeed:!1,isDirtyPosts:!1},c={SET_VALUE:"SET_VALUE",RESET:"RESET"},d=(0,i.createContext)(u),f=(0,i.createContext)(void 0);function h(e,t){switch(t.type){case c.SET_VALUE:{let r={};for(let[e,n]of Object.entries(t))"type"!==e&&(r[e]=n);return{...e,...r}}case c.RESET:return{...u,activeTab:e.activeTab};default:throw Error("Invalid action type provided to the postActionReducer: “".concat(t.type,"”"))}}function p(e){let{children:t}=e,[r,o]=(0,i.useReducer)(h,u);return(0,n.jsx)(d.Provider,{value:r,children:(0,n.jsx)(f.Provider,{value:o,children:t})})}function m(){let e=(0,i.useContext)(d),t=(0,s.q)();if(void 0===e)throw Error("usePostActionState must be used within <PostActionStateContext>");return e.waysToHelp=t,e}function g(){let e=(0,i.useContext)(f);if(void 0===e)throw Error("usePostActionDispatch must be used within <PostActionDispatchContext>");return e}function v(){let e=(0,i.useContext)(f);return void 0===e?()=>{}:e}p.propTypes={value:a().object,children:a().node.isRequired}},91067:function(e,t,r){"use strict";r.d(t,{MY:function(){return o},hG:function(){return n},y:function(){return i}});let n=(0,r(66438).QS)(null),i=e=>{if(!e){n(null);return}n({contentId:e.contentId,contentType:e.contentType,contentTitle:e.contentTitle,isPostPublishSuccess:!1!==e.isPostPublishSuccess,timestamp:Date.now()})},o=()=>{n(null)}},57640:function(e,t,r){"use strict";r.d(t,{$N:function(){return _},NT:function(){return x},OU:function(){return T},PS:function(){return w},ST:function(){return k},X_:function(){return C},Zn:function(){return b},b:function(){return E},gI:function(){return S},m$:function(){return y},z9:function(){return I}});var n=r(82729),i=r(17283);function o(){let e=(0,n._)(["\n    query GET_SITE_WAYS_TO_HELP($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            isAuthor @client\n            firstName\n            hideWaysToHelpWidget\n            wthCustomIntro\n            mainSitePhoto {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            waysToHelps {\n                showOnSite\n                type\n                item {\n                    ... on GoFundMe {\n                        id\n                        fundUrl\n                        siteId\n                        createdAt\n                        updatedAt\n                        initializedPostShared\n                        isIntegrated\n                        isDraft\n                        organizer {\n                            id\n                        }\n                        campaign {\n                            url\n                            name\n                            organizer\n                            goalAmount\n                            amountRaised\n                            fundUrl\n                            publishedAt\n                            status\n                            title\n                            description\n                            postalCode\n                            fundId\n                            goFundMePhotoUrl\n                            cloudinaryPhotoUrl\n                            smartGoalsEnabled\n                            beneficiary\n                            recentDonations {\n                                amount\n                                createdAt\n                                currency\n                                donorName\n                                isAnonymous\n                            }\n                        }\n                    }\n                    ... on MealTrain {\n                        id\n                        siteId\n                        shareLink\n                        createdAt\n                        updatedAt\n                        initializedPostShared\n                    }\n                    ... on GiftCard {\n                        id\n                        siteId\n                        emailAddress\n                        createdAt\n                        updatedAt\n                        initializedPostShared\n                    }\n                }\n            }\n        }\n    }\n"]);return o=function(){return e},e}function a(){let e=(0,n._)(["\n    mutation CONNECT_EXISTING_GO_FUND_ME($siteId: String!, $shareLink: String!) {\n        connectExistingGoFundMe(input: { siteId: $siteId, shareLink: $shareLink })\n    }\n"]);return a=function(){return e},e}function s(){let e=(0,n._)(["\n    mutation DELETE_GO_FUND_ME($siteId: String!) {\n        deleteGoFundMe(input: { siteId: $siteId })\n    }\n"]);return s=function(){return e},e}function l(){let e=(0,n._)(["\n    mutation INIT_GO_FUND_ME($siteId: String!) {\n        initGoFundMe(input: { siteId: $siteId }) {\n            partnerUrl\n        }\n    }\n"]);return l=function(){return e},e}function u(){let e=(0,n._)(["\n    mutation DRAFT_CREATE_UPDATE_INTEGRATED_GO_FUND_ME(\n        $input: CreateUpdateIntegratedGoFundMeInput!\n    ) {\n        createUpdateIntegratedGoFundMe(input: $input) {\n            fundUrl\n            id\n            initializedPostShared\n            siteId\n            updatedAt\n            campaign {\n                fundId\n                postalCode\n            }\n        }\n    }\n"]);return u=function(){return e},e}function c(){let e=(0,n._)(["\n    mutation UPDATE_WAYS_TO_HELP_POST(\n        $siteId: String!\n        $initializedPostShared: InitializedPostSharedStatus!\n        $postType: WaysToHelpType!\n        $title: String\n        $body: String\n    ) {\n        updateWaysToHelpPost(\n            input: {\n                siteId: $siteId\n                initializedPostShared: $initializedPostShared\n                postType: $postType\n                title: $title\n                body: $body\n            }\n        ) {\n            initializedPostShared\n        }\n    }\n"]);return c=function(){return e},e}function d(){let e=(0,n._)(["\n    mutation CONNECT_MEALTRAIN($siteId: String!, $shareLink: String!) {\n        connectMealTrain(input: { siteId: $siteId, shareLink: $shareLink }) {\n            shareLink\n            createdAt\n            updatedAt\n            initializedPostShared\n        }\n    }\n"]);return d=function(){return e},e}function f(){let e=(0,n._)(["\n    mutation SET_AUTHOR_GIFT_CARD_INFORMATION($siteId: String!, $emailAddress: String!) {\n        setAuthorGiftCardInformation(input: { siteId: $siteId, emailAddress: $emailAddress }) {\n            emailAddress\n            createdAt\n            updatedAt\n            initializedPostShared\n        }\n    }\n"]);return f=function(){return e},e}function h(){let e=(0,n._)(["\n    mutation UPDATE_HIDE_WAYS_TO_HELP_WIDGET($siteId: String!, $hideWaysToHelpWidget: Boolean) {\n        updateSite(input: { siteId: $siteId, hideWaysToHelpWidget: $hideWaysToHelpWidget }) {\n            id\n            hideWaysToHelpWidget\n        }\n    }\n"]);return h=function(){return e},e}function p(){let e=(0,n._)(["\n    mutation UPDATE_WTH_CUSTOM_INTRO($siteId: String!, $wthCustomIntro: String) {\n        updateSite(input: { siteId: $siteId, wthCustomIntro: $wthCustomIntro }) {\n            id\n            wthCustomIntro\n        }\n    }\n"]);return p=function(){return e},e}function m(){let e=(0,n._)(["\n    mutation UPDATE_WAYS_TO_HELPS($siteId: String!, $waysToHelpSettings: WaysToHelpSettings!) {\n        updateWaysToHelps(input: { siteId: $siteId, waysToHelpSettings: $waysToHelpSettings }) {\n            id\n            hideWaysToHelpWidget\n            waysToHelps {\n                showOnSite\n                type\n            }\n        }\n    }\n"]);return m=function(){return e},e}function g(){let e=(0,n._)(["\n    mutation SET_AUTHOR_WTH_CTA_DISMISSED {\
298n        setAuthorWthCtaDismissed {\n            ctaDismissedAt\n        }\n    }\n"]);return g=function(){return e},e}function v(){let e=(0,n._)(["\n    query GET_GIFT_CARDS($siteId: ID!, $limit: Int, $nextToken: String) {\n        getGiftCards(\n            query: { siteId: $siteId, paginationInput: { limit: $limit, nextToken: $nextToken } }\n        ) {\n            giftCards {\n                id\n                cardValue\n                cardName\n                cardSku\n                imageUrl\n                orderedAt\n                senderAnonymous\n                sender {\n                    photo {\n                        publicId\n                        width\n                        height\n                        legacyPath\n                    }\n                    firstName\n                    lastName\n                }\n            }\n            nextToken\n            totalCount\n        }\n    }\n"]);return v=function(){return e},e}let y=(0,i.Ps)(o()),b=(0,i.Ps)(a()),x=(0,i.Ps)(s());(0,i.Ps)(l());let _=(0,i.Ps)(u()),E=(0,i.Ps)(c()),S=(0,i.Ps)(d()),w=(0,i.Ps)(f());(0,i.Ps)(h());let k=(0,i.Ps)(p()),T=(0,i.Ps)(m()),I=(0,i.Ps)(g()),C=(0,i.Ps)(v())},28420:function(e,t,r){"use strict";r.d(t,{O:function(){return f},RR:function(){return m},Z:function(){return p},ap:function(){return h},ay:function(){return v},bN:function(){return g}});var n=r(82729),i=r(17283);function o(){let e=(0,n._)(["\n    query GET_USER_SURVEYS {\n        getUserSurveys {\n            ... on IrbSurvey {\n                id\n                surveyType\n                dismissalCount\n                lastDismissedAt\n                completedAt\n            }\n            ... on UclaSurvey {\n                id\n                status\n                surveyCompletedCount\n                surveyType\n            }\n        }\n    }\n"]);return o=function(){return e},e}function a(){let e=(0,n._)(["\n    query GET_MATCHING_SURVEY {\n        getUserSurveys(query: { surveyTypes: [MATCHING] }) {\n            ... on MatchingSurvey {\n                id\n                surveyType\n                answers {\n                    question_key\n                    answer\n                }\n                dismissalCount\n                lastDismissedAt\n                completedAt\n                questionnaireVersion\n            }\n        }\n    }\n"]);return a=function(){return e},e}function s(){let e=(0,n._)(["\n    mutation UPDATE_IRB_SURVEY($input: IrbSurveyInput!) {\n        updateIrbSurvey(input: $input) {\n            survey {\n                id\n                surveyType\n                dismissalCount\n                lastDismissedAt\n                completedAt\n            }\n        }\n    }\n"]);return s=function(){return e},e}function l(){let e=(0,n._)(["\n    mutation UPDATE_UCLA_SURVEY($input: UpdateUclaSurveyInput!) {\n        updateUclaSurvey(input: $input) {\n            survey {\n                id\n                status\n                surveyCompletedCount\n                surveyType\n            }\n        }\n    }\n"]);return l=function(){return e},e}function u(){let e=(0,n._)(["\n    mutation UPDATE_MATCHING_SURVEY($input: UpdateMatchingSurveyInput!) {\n        updateMatchingSurvey(input: $input) {\n            survey {\n                id\n                answers {\n                    question_key\n                    answer\n                }\n                dismissalCount\n                lastDismissedAt\n                completedAt\n            }\n        }\n    }\n"]);return u=function(){return e},e}function c(){let e=(0,n._)(["\n    query GET_MATCHING_QUESTIONNAIRE($query: GetMatchingQuestionnaireQuery) {\n        getMatchingQuestionnaire(query: $query) {\n            version\n            questionnaireId\n            startQuestion\n            totalCount\n            patientCount\n            caregiverCount\n            questions {\n                id\n                next\n                prompt\n                options {\n                    text\n                    value\n                    subtext\n                    next\n                }\n                subprompt\n                optional\n                type\n                max_length\n                range\n                min_selections\n                max_selections\n                end\n            }\n        }\n    }\n"]);return c=function(){return e},e}function d(){let e=(0,n._)(["\n    query GET_MATCH_USER_CONNECTIONS {\n        getMatchUserConnections {\n            matchUser {\n                uid\n                matchId\n                userId\n                role\n                updatedAt\n                createdAt\n            }\n            match {\n                id\n                status\n                communicationInitiatedAt\n                lastPrivateMessageAt\n                createdAt\n                updatedAt\n                acceptedAt\n            }\n        }\n    }\n"]);return d=function(){return e},e}let f=(0,i.Ps)(o()),h=(0,i.Ps)(a()),p=(0,i.Ps)(s()),m=(0,i.Ps)(l()),g=(0,i.Ps)(u()),v=(0,i.Ps)(c());(0,i.Ps)(d())},66693:function(e,t,r){"use strict";r.d(t,{m:function(){return f},y:function(){return h}});var n=r(85893),i=r(73359),o=r(45697),a=r.n(o),s=r(67294),l=r(28420),u=r(43287),c=r(60453);let d=(0,s.createContext)({activeSurveys:[],refetchSurveys:()=>{},fetchSurveys:()=>{},hasFetched:!1,isSignedIn:!1,setHasFetched:e=>{}}),f=e=>{let{children:t}=e,{isSignedIn:r}=(0,u.SE)(),[o,{data:a,refetch:f}]=(0,i.t)(l.O,{onCompleted:()=>{g(!0)}}
298),[h,p]=(0,s.useState)([]),[m,g]=(0,s.useState)(!1),v=(0,c.Pe)();(0,s.useEffect)(()=>{if(a&&(p(a.getUserSurveys),a.getUserSurveys)){let e=a.getUserSurveys.find(e=>"UCLA"===e.surveyType);e&&"ACTIVE"===e.status&&v({event:c.kM.SURVEY_ACTION,surveyType:e.surveyType,surveyPhase:e.surveyCompletedCount+1,action:"DISPLAY"})}},[a]);let y=(0,s.useCallback)(async()=>{await f()},[f]);return(0,n.jsx)(d.Provider,{value:{activeSurveys:h,refetchSurveys:y,fetchSurveys:o,hasFetched:m,isSignedIn:r,setHasFetched:g},children:t})};f.propTypes={children:a().node.isRequired};let h=()=>{let{activeSurveys:e,refetchSurveys:t,isSignedIn:r,fetchSurveys:n,hasFetched:i,setHasFetched:o}=(0,s.useContext)(d);return(0,s.useEffect)(()=>{let e=async()=>{await n()};!i&&r&&e()},[n,r,i,o]),{activeSurveys:e,refetchSurveys:t}}},38199:function(e,t){"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return h}});let a="refresh",s="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=r||(r={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=n||(n={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("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)},87195:function(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(98337),("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)},74080:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(38754),i=r(61757),o=r(85893),a=i._(r(67294)),s=n._(r(73935)),l=n._(r(23867)),u=r(35283),c=r(96594),d=r(23945);r(83179);let f=r(81928),h=n._(r(13872)),p={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 m(e,t,r,n,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{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 g(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:v,fill:y,onLoadRef:b,onLoadingCompleteRef:x,setBlurComplete:_,setShowAltText:E,sizesInput:S,onLoad:w,onError:k,...T}=e;return(0,o.jsx)("img",{...T,...g(f),loading:p,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&m(e,h,b,x,_,v,S))},[r,h,b,x,_,k,v,S,t]),onLoad:e=>{m(e.currentTarget,h,b,x,_,v,S)},onError:e=>{E(!0),"empty"!==h&&_(!0),k&&k(e)}})});function y(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...g(r.fetchPriority)};return t&&s.default.preload?(s.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 b=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=p||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
298e-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:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[b,x]=(0,a.useState)(!1),[_,E]=(0,a.useState)(!1),{props:S,meta:w}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:b,showAltText:_});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...S,unoptimized:w.unoptimized,placeholder:w.placeholder,fill:w.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:E,sizesInput:e.sizes,ref:t}),w.priority?(0,o.jsx)(y,{isAppRouter:!r,imgAttributes:S}):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)},98342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let n=r(38754),i=r(85893),o=n._(r(67294)),a=r(36075),s=r(53955),l=r(48041),u=r(99903),c=r(65490),d=r(81928),f=r(60257),h=r(84229),p=r(87195),m=r(89470),g=r(38199),v=new Set;function y(e,t,r,n,i,o){if(o||(0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,r,n))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let x=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:v,children:x,prefetch:_=null,passHref:E,replace:S,shallow:w,scroll:k,locale:T,onClick:I,onMouseEnter:C,onTouchStart:A,legacyBehavior:O=!1,...N}=e;r=x,O&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let P=o.default.useContext(d.RouterContext),R=o.default.useContext(f.AppRouterContext),D=null!=P?P:R,L=!P,F=!1!==_,j=null===_?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:M,as:B}=o.default.useMemo(()=>{if(!P){let e=b(l);return{href:e,as:v?b(v):e}}let[e,t]=(0,a.resolveHref)(P,l,!0);return{href:e,as:v?(0,a.resolveHref)(P,v):t||e}},[P,l,v]),U=o.default.useRef(M),q=o.default.useRef(B);O&&(n=o.default.Children.only(r));let V=O?n&&"object"==typeof n&&n.ref:t,[z,$,G]=(0,h.useIntersection)({rootMargin:"200px"}),W=o.default.useCallback(e=>{(q.current!==B||U.current!==M)&&(G(),q.current=B,U.current=M),z(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[B,V,M,G,z]);o.default.useEffect(()=>{D&&$&&F&&y(D,M,B,{locale:T},{kind:j},L)},[B,M,$,T,F,null==P?void 0:P.locale,D,L,j]);let H={ref:W,onClick(e){O||"function"!=typeof I||I(e),O&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),D&&!e.defaultPrevented&&function(e,t,r,n,i,a,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.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)||!c&&!(0,s.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:u,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};c?o.default.startTransition(f):f()}(e,D,M,B,S,w,k,T,L)},onMouseEnter(e){O||"function"!=typeof C||C(e),O&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),D&&(F||!L)&&y(D,M,B,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)},onTouchStart:function(e){O||"function"!=typeof A||A(e),O&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),D&&(F||!L)&&y(D,M,B,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)}};if((0,u.isAbsoluteUrl)(B))H.href=B;else if(!O||E||"a"===n.type&&!("href"in n.props)){let e=void 0!==T?T:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,p.getDomainLocale)(B,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);H.href=t||(0,m.addBasePath)((0,c.addLocale)(B,e,null==P?void 0:P.defaultLocale))}return O?o.default.cloneElement(n,H):(0,i.jsx)("a",{...N,...H,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
298dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(67294),i=r(84474),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=f.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=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.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},s.push(r),a.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(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[h,c,(0,n.useCallback)(()=>{d(!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)},32602:function(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 s},noSSR:function(){return a}});let n=r(38754);r(85893),r(67294);let i=n._(r(35491));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(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 s=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete n.webpack,delete n.modules,a(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)},35283:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(83179);let n=r(96630),i=r(96594);function o(e){return void 0!==e.default}function a(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 s(e,t){var r,s;let l,u,c,{src:d,sizes:f,unoptimized:h=!1,priority:p=!1,loading:m,className:g,quality:v,width:y,height:b,fill:x=!1,style:_,overrideSrc:E,onLoad:S,onLoadingComplete:w,placeholder:k="empty",blurDataURL:T,fetchPriority:I,decoding:C="async",layout:A,objectFit:O,objectPosition:N,lazyBoundary:P,lazyRoot:R,...D}=e,{imgConf:L,showAltText:F,blurComplete:j,defaultLoader:M}=t,B=L||i.imageConfigDefault;if("allSizes"in B)l=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),n=null==(r=B.qualities)?void 0:r.sort((e,t)=>e-t);l={...B,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===M)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let U=D.loader||M;delete D.loader,delete D.srcSet;let q="__next_img_default"in U;if(q){if("custom"===l.loader)throw Error('Image with src "'+d+'" 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(A){"fill"===A&&(x=!0);
298let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!f&&(f=t)}let V="",z=a(y),$=a(b);if("object"==typeof(s=d)&&(o(s)||void 0!==s.src)){let e=o(d)?d.default:d;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,T=T||e.blurDataURL,V=e.src,!x){if(z||$){if(z&&!$){let t=z/e.width;$=Math.round(e.height*t)}else if(!z&&$){let t=$/e.height;z=Math.round(e.width*t)}}else z=e.width,$=e.height}}let G=!p&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:V)||d.startsWith("data:")||d.startsWith("blob:"))&&(h=!0,G=!1),l.unoptimized&&(h=!0),q&&d.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(h=!0),p&&(I="high");let W=a(v),H=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:N}:{},F?{}:{color:"transparent"},_),Q=j||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:z,heightInt:$,blurWidth:u,blurHeight:c,blurDataURL:T||"",objectFit:H.objectFit})+'")':'url("'+k+'")',Y=Q?{backgroundSize:H.objectFit||"cover",backgroundPosition:H.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Q}:{},X=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=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,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:l,src:d,unoptimized:h,width:z,quality:W,sizes:f,loader:U});return{props:{...D,loading:G?"lazy":m,fetchPriority:I,width:z,height:$,decoding:C,className:g,style:{...H,...Y},sizes:X.sizes,srcSet:X.srcSet,src:E||X.src},meta:{unoptimized:h,priority:p,placeholder:k,fill:x}}}},96630:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+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"===a?"xMidYMid":"cover"===a?"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}})},76210:function(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 l},getImageProps:function(){return s}});let n=r(38754),i=r(35283),o=r(74080),a=n._(r(13872));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.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},13872:function(e,t){"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:o}=e,a=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>
298Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+a}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},1159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext(null)},35491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(38754)._(r(67294)),i=r(1159),o=[],a=[],s=!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(!s){let e=r.webpack?r.webpack():r.modules;e&&a.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 a=n.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:o.retry}),[]),n.default.useMemo(()=>{var t;return a.loading||a.error?n.default.createElement(r.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:o.retry}):a.loaded?n.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return c.preload=()=>l(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(l,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(o).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(s=!0,t());d(a,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},7443:function(e,t,r){"use strict";var n=r(83454);r(91479);var i=r(67294),o=i&&"object"==typeof i&&"default"in i?i:{default:i},a=void 0!==n,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,o=void 0===i?a:i;u(s(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
298Sheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=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]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(u(s(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
298h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,r){t&&u(s(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function h(e,t){var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=f(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return h(i,e)}):[h(i,t)]}}return{styleId:f(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var g=o.default.useInsertionEffect||o.default.useLayoutEffect,v=new p;function y(e){var t=v||i.useContext(m);return t&&g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}y.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=y},40645:function(e,t,r){"use strict";e.exports=r(7443).style},91808:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return $}});var n=r(85893);r(53039),r(96759),r(56474);var i=r(40881),o=r(13917),a=r(67294),s=r(85317),l=function(e){var t=e.client,r=e.children,n=(0,s.K)();return a.createElement(n.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,o.kG)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,o.kG)(e.client,29),a.createElement(n.Provider,{value:e},r)})},u=r(72532),c=r(43287),d=r(53658),f=r(24176),h=r(4393),p=r(59038),m=r(27060);r(1830);let g={targeting:["_gcl_au","_gcl_aw","_fbp","_fbc","_uetsid","_uetvid","sa-user-id","sa-user-id-v2","sa-user-id-v3","sa-user-id-v4","sa-u-date","sa-u-source","MUID","MR"],performance:["_ga","_ga_9T1FQDSV8C","_ga_E2WFJTZLTL","_hp5_event_props.1569423017","_hp5_let.1569423017","_hp5_meta.1569423017","_vis_opt_exp_219_combi","_vis_opt_exp_224_combi","_vis_opt_s","_vis_opt_test_cookie","_vwo_ds","_vwo_sn","_vwo_uuid","_vwo_uuid_v2","ubpv","ubvs","ubvt","fundraiseup_stat"],functionality:["fundraiseup_func"]},v=[".caringbridge.org",".caringbridge.cc"];function y(e){let t=g[e];if(t)for(let e of t){for(let t of v)!function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/";document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=").concat(t,"; path=").concat(r)}(e,t);document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}
298}let b=["targeting","performance","functionality"];function x(e){for(let t of b)e.includes(t)||y(t)}function _(){return(0,a.useEffect)(()=>{!function(){let e=function(e){if("undefined"==typeof document)return null;let t=document.cookie.match(new RegExp("(?:^|; )".concat(e,"=([^;]*)")));return t?decodeURIComponent(t[1]):null}("CookieScriptConsent");if(e)try{let t=JSON.parse(e);if("reject"===t.action)for(let e of b)y(e);else if("accept"===t.action){let e=(t.categories||"").split(",").map(e=>e.trim());x(e)}}catch(e){}}();let e=()=>{for(let e of b)y(e)},t=e=>{let t=e.detail;t&&t.categories&&x(t.categories.split(",").map(e=>e.trim()))};return document.addEventListener("CookieScriptReject",e),document.addEventListener("CookieScriptAccept",t),()=>{document.removeEventListener("CookieScriptReject",e),document.removeEventListener("CookieScriptAccept",t)}},[!0]),null}var E=r(9008),S=r.n(E),w=r(45697),k=r.n(w),T=r(83454),I=()=>{window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)})};function C(){return false}function A(e){(0,a.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{let r=function(e={}){var t;if(!("undefined"!=typeof window)||null===e.route)return null;I();let r=e.scriptSrc?e.scriptSrc:e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.2.0",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==T)return({NEXT_PUBLIC_FF_IRB_SURVEY:"false",NEXT_PUBLIC_FF_INSTACART:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_GIFT_CARDS_PHASE_2:"true",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_KIMBIA_DONATION_FORM_LOAD_THRESHOLD:"2000",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_BEST_BUY:"true",NEXT_PUBLIC_FF_MATCHING_SURVEY:"false",NEXT_PUBLIC_FF_NOTIFICATION_TOGGLES:"false",NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"false"}).REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(t.current=r.setRoute)}},[e.route]),null}var O=r(11163),N=r(57199),P=r(46260),R=r(368),D=r(73775),L=r(66693),F=r(53523),j=()=>(0,n.jsxs)(S(),{children:[(0,n.jsx)("meta",{property:"og:title",content:"CaringBridge"}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:site_name",content:"CaringBridge"}),(0,n.jsx)("meta",{property:"og:description",content:"Help ensure no one goes through a health journey alone."}),(0,n.jsx)("meta",{property:"og:image",content:"https://res.cloudinary.com/caringbridge-marketing/image/upload/v1723833556/Facebook_post_banner_sr8hk6.png"}),(0,n.jsx)("meta",{property:"og:url",content:"https://www.caringbridge.org/"})]}),M=r(95027),B=r(35691),U=r(90907),q=r(8250),V=r(31997),z=r(57107);function $(e){var t;let{Component:r,pageProps:o}=e,a=(0,i.Uk)(o),s=(0,O.useRouter)(),g=function(e,t,r){let i=e.skipProviders||{},o=(0,n.jsx)(e,{...t});return i.cmsPublishedProvider||(o=(0,n.jsx)(D.fc,{children:o})),i.seoTagManager||(o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(R.Z,{pathname:r.pathname,asPath:r.asPath}),o]})),i.userSurveyProvider||(o=(0,n.jsx)(L.m,{children:o})),i.matchingProvider||(o=(0,n.jsx)(q.r,{children:o})),i.chatProvider||(o=(0,n.jsx)(V.a,{children:o})),i.contentEditorProvider||(o=(0,n.jsx)(M.y,{children:o})),i.draftsProvider||(o=(0,n.jsx)(F.z,{children:o})),i.postActionProvider||(o=(0,n.jsx)(B.J6,{children:o})),i.cbChakraProvider||(o=(0,n.jsx)(N.J,{children:o})),i.frontEndMiddleware||(o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P.default,{}),o]})),i.dataLayer||(o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.Z,{}),o]})),o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_,{}),o]}),i.googlePixel||(o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{}),o]})),i.metaPixel||(o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Z,{}),o]})),i.microsoftPixel||(o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z,{}),o]})),i.adButlerPixel||(o=(0,n.jsxs)(n.Fragment,{children:[!1,o]})),i.internalTokenProvider||(o=(0,n.jsx)(U.N,{children:o})),i.coreFeatures||(o=(0,n.jsx)(d.Z,{children:o})),i.bannerProvider||(o=(0,n.jsx)(u.R4,{children:o})),o=(0,n.jsx)(z.K1,{children:o}),i.userContextProvider||(o=(0,n.jsx)(c.fS,{children:o})),o}(r,o,s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S(),{children:(0,n.jsx)("meta",{content:"initial-scale=1.0, width=device-width, user-scalable=yes, shrink-to-fit=no",name:"viewport"})}),(0,n.jsx)(A,{route:s.pathname}),(0,n.jsxs)(l,{client:a,children:[!(null===(t=r.skipProviders)||void 0===t?void 0:t.defaultMeta)&&(0,n.jsx)(j,{}),g]})]})}$.propTypes={Component:k().elementType,pageProps:k().object}},46260:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r(85893),i=r(11163),o=r.n(i),a=r(67294),s=r(43287),l=r(4162);function u(){let{isSignedIn:e,unconfirmedSocialSignUp:t}=(0,s.SE)();
298return e&&t&&window.location.pathname!==l.Z6.PROFILE_REGISTER_CONFIRM_SSO_USER&&window.location.pathname!==l.Z6.PROFILE_REGISTER_SSO_LOGIN&&window.location.pathname!==l.Z6.LEGAL_PRIVACY_POLICY&&window.location.pathname!==l.Z6.LEGAL_TERMS_OF_USE&&o().push(l.Z6.PROFILE_REGISTER_CONFIRM_SSO_USER),e&&window.location.pathname===l.Z6.PROFILE_VERIFY_LOGIN_LINK&&o().push(l.Z6.HOME),(0,a.useEffect)(()=>{var t;if(!(null===(t=navigator)||void 0===t?void 0:t.userAgent)||"true"===sessionStorage.getItem("seen_redirect_from_in_app_dialogue"))return;let r=navigator.userAgent.toLowerCase(),n=r.includes("mobile"),i=/fban|fbav/i.test(r),o=r.includes("iphone"),a=r.includes("android");if(n&&i&&!e){let e=window.location.href,t=localStorage.getItem("return_to");sessionStorage.setItem("seen_redirect_from_in_app_dialogue","true"),t&&(e="".concat(window.location.origin).concat(t)),setTimeout(()=>{o?window.location.href="x-safari-".concat(e):a&&(window.location.href="intent://".concat(e.replace(/^https?:\/\//,""),"#Intent;scheme=https;action=android.intent.action.VIEW;end"))},500)}},[]),(0,n.jsx)(n.Fragment,{})}},1830:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(67294),i=r(11163),o=r(94086);function a(){let e=(0,i.useRouter)(),t=(0,o.tG)();return(0,n.useEffect)(()=>{let t=e.pathname;if(["/give/","/profile/","/surveys/","/search"].some(e=>
298t.startsWith(e))){let e=document.querySelector('script[src*="servedbyadbutler.com"]');e&&e.remove(),void 0!==globalThis.AdButler&&delete globalThis.AdButler;return}let r=document.querySelector('script[src*="servedbyadbutler.com"]'),n=void 0!==globalThis.AdButler;if(!r&&!n){var i,o,a;let e=document.createElement("script");e.src="https://servedbyadbutler.com/app.js",e.async=!0,e.onload=()=>{var e,t;null===(t=globalThis.AdButler)||void 0===t||null===(e=t.init)||void 0===e||e.call(t)};let t=document.getElementsByTagName("script")[0];null!==(a=null==t?void 0:null===(i=t.parentNode)||void 0===i?void 0:i.insertBefore(e,t))&&void 0!==a||null===(o=document.head)||void 0===o||o.appendChild(e)}},[e.pathname,t]),null}},24176:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(60453),i=r(67294),o=r(11163),a=r(43287),s=r(90331),l=r(75545),u=r(5241);function c(){let e=(0,o.useRouter)(),{data:t,loading:r,error:c}=(0,s.Z)(e.query.siteId),f=(0,a.SE)(),[h,p]=(0,i.useState)([]);(0,i.useEffect)(()=>{let t=(e,t)=>{let{shallow:r}=t;r||p([])};return e.events.on("routeChangeComplete",t),()=>{e.events.off("routeChangeComplete",t)}},[e.asPath,e.events]);let m=(0,n.Pe)(),g=(0,i.useCallback)(()=>{h.push(function(e,t){var r,n,i;let o=null!==(r=null==t?void 0:t.id)&&void 0!==r?r:null,a=null!==(n=null==t?void 0:t.platformGeneration)&&void 0!==n?n:null,s={};if(e){s.siteId=e.getSite.id;let r="Unknown";(0,l.nu)(e.getSite.context,u.uU.AUTHOR)?r="Author":(0,l.nu)(e.getSite.context,u.uU.FOLLOWER)?r="Follower":(0,l.nu)(e.getSite.context,u.uU.VISITOR)?r="Visitor":(0,l.nu)(e.getSite.context,u.uU.ANON)?r="Anonymous":(0,l.nu)(e.getSite.context,u.uU.CB_ADMIN)&&(r="Admin"),s.userRole=r;let n=(null===(i=e.getSite.waysToHelps)||void 0===i?void 0:i.filter(e=>e.type===u._Q.GO_FUND_ME).length)>0;s.siteGFM=n;let o=e.getSite.createdAt?new Date(Date.parse(e.getSite.createdAt)):null,a=e.getSite.postConnection.posts.map(e=>new Date(Date.parse(e.createdAt))),c=new Date(Math.max.apply(null,a));s.num_authors=e.getSite.numAuthors,s={...s,site_creation_date:d(o),posts_on_site:e.getSite.postConnection.totalCount,requests_on_site:e.getSite.requestConnection.totalCount,health_condition:e.getSite.healthCondition,last_post_date:d(c),visits:e.getSite.numVisits,isPatient:e.getSite.patientId===t.id}}return{...s,userPlatformGeneration:a&&"OnePointZero"===t.platformGeneration?"1.0":"2.0",userId:o}}(t,f)),h.push({event:"plsPageview"}),h.forEach(e=>{m(e)})},[m,h,t,f]);return(0,i.useEffect)(()=>{!e.isReady||0!==h.length||r||c||g()},[e.isReady,h.length,t,r,c,g]),null}let d=e=>{let t=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0");return"".concat(t,"/").concat(r,"/").concat(e.getFullYear())}},4393:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(67294),i=r(11163),o=r(43287),a=r(31439);function s(){let e=(0,i.useRouter)(),{isSignedIn:t}=(0,o.SE)(),r=(0,a.Wl)();return(0,n.useEffect)(()=>{if(null===t)return;let n=e.pathname,i=["/site/","/give/","/profile/","/surveys/","/search"].some(e=>n.startsWith(e)),o="/"===n;if(!(o&&!t||!i&&!o))return;let a=document.querySelector('script[src*="gtag/js"][src*="'.concat(r,'"]'));if(a)return;let s="function"==typeof window.gtag;window.dataLayer=window.dataLayer||[],window.gtag||(window.gtag=function(){window.dataLayer.push(arguments)});let l=()=>{s||window.gtag("js",new Date),window.gtag("config",r,{allow_enhanced_conversions:!1,restricted_data_processing:!0,allow_ad_personalization_signals:!1})};if(a)l();else{let e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=".concat(r),e.onload=()=>{l()},document.head.appendChild(e)}},[t,e.pathname,r]),null}},59038:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(67294),i=r(11163),o=r(43287);function a(){let e=(0,i.useRouter)(),{isSignedIn:t}=(0,o.SE)(),r="1718196178206916";return(0,n.useEffect)(()=>{if(null===t)return;let n=e.pathname,i=["/site/","/give/","/profile/","/surveys/","/search"].some(e=>n.startsWith(e)),o="/"===n;if(!(o&&!t||!i&&!o)){let e=document.querySelector('script[src*="fbevents.js"]');e&&e.remove(),void 0!==window.fbq&&(delete window.fbq,delete window._fbq);return}let a=document.querySelector('script[src*="fbevents.js"]'),s="function"==typeof window.fbq;a||s||(function(e,t,r,n){if(e.fbq)return;let i=e.fbq=function(){i.callMethod?i.callMethod.apply(i,arguments):i.queue.push(arguments)};e._fbq||(e._fbq=i),i.push=i,i.loaded=!0,i.version="2.0",i.queue=[];let o=t.createElement(r);o.async=!0,o.src=n;let a=t.getElementsByTagName(r)[0];a&&a.parentNode?a.parentNode.insertBefore(o,a):t.head&&t.head.appendChild(o)}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),window.fbq("init",r)),(s||"function"==typeof window.fbq)&&window.fbq("track","PageView")},[t,e.pathname,r]),null}},27060:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(67294),i=r(11163),o=r(43287);function a(){let e=(0,i.useRouter)(),{isSignedIn:t}=(0,o.SE)(),r=(0,n.useRef)(null),a="26035446";return(0,n.useEffect)(()=>
298{if(null===t)return;let n=e.pathname,i=["/site/","/give/","/profile/","/surveys/","/search"].some(e=>n.startsWith(e)),o="/"===n;if(!(o&&!t||!i&&!o)){let e=document.querySelector('script[src*="bat.bing.com"]');e&&e.remove(),void 0!==window.uetq&&(delete window.uetq,delete window.UET),r.current=null;return}let s=document.querySelector('script[src*="bat.bing.com"]'),l=window.uetq&&"function"==typeof window.uetq.push;if(s||l){if(l&&"function"==typeof window.uetq.push){if(r.current===e.asPath)return;window.uetq.push("event","page_view",{page_path:e.asPath}),r.current=e.asPath}}else{var u,c,d,f,h,p;let t,n,i;u=window,c=document,d="script",f="//bat.bing.com/bat.js",h="uetq",p=e.asPath,u[h]=u[h]||[],t=function(){let e={ti:a,enableAutoSpaTracking:!1};e.q=u[h],u[h]=new u.UET(e),u[h].push("event","page_view",{page_path:p})},(n=c.createElement(d)).src=f,n.async=1,n.onload=n.onreadystatechange=function(){let e=this.readyState;e&&"loaded"!==e&&"complete"!==e||(t(),n.onload=n.onreadystatechange=null)},(i=c.getElementsByTagName(d)[0])&&i.parentNode?i.parentNode.insertBefore(n,i):c.head&&c.head.appendChild(n),r.current=e.asPath;return}},[t,e.asPath,e.pathname,a]),null}},94086:function(e,t,r){"use strict";var n,i;r.d(t,{I9:function(){return o},tG:function(){return a}});let o={SITE_PAGE_HEADER:{id:(null===(n=({NEXT_PUBLIC_FF_IRB_SURVEY:"false",NEXT_PUBLIC_FF_INSTACART:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_GIFT_CARDS_PHASE_2:"true",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_KIMBIA_DONATION_FORM_LOAD_THRESHOLD:"2000",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_BEST_BUY:"true",NEXT_PUBLIC_FF_MATCHING_SURVEY:"false",NEXT_PUBLIC_FF_NOTIFICATION_TOGGLES:"false",NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"false"}).NEXT_PUBLIC_ADBUTLER_ZONE_PAGE_HEADER)||void 0===n?void 0:n.trim())||"000000",size:"728,90"},SITE_PAGE_FOOTER:{id:(null===(i=({NEXT_PUBLIC_FF_IRB_SURVEY:"false",NEXT_PUBLIC_FF_INSTACART:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_GIFT_CARDS_PHASE_2:"true",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_KIMBIA_DONATION_FORM_LOAD_THRESHOLD:"2000",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_BEST_BUY:"true",NEXT_PUBLIC_FF_MATCHING_SURVEY:"false",NEXT_PUBLIC_FF_NOTIFICATION_TOGGLES:"false",NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"false"}).NEXT_PUBLIC_ADBUTLER_ZONE_PAGE_FOOTER)||void 0===i?void 0:i.trim())||"000000",size:"728,90"},HOMEPAGE_SIDEBAR:{id:"1339346".trim()||"000000",size:"300,600"}};function a(){return"189948".trim()||"000000"}},60453:function(e,t,r){"use strict";r.d(t,{RC:function(){return l},kM:function(){return s},Tg:function(){return u},Pe:function(){return a}});var n=r(67294),i=r(8358),o=r(52186);function a(){let e=(0,n.useRef)({});return(0,n.useCallback)(t=>{var r;i.S_&&(t.event=null!==(r=t.event)&&void 0!==r?r:"caringbridge.data",!function(e,t){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(e[n]!==t[n])return!1;return!0}(t,e.current)&&(e.current=t,window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)))},[])}let s={ACCOUNT_ERROR:"new_user_error",AUTH_ERROR:"sign_in_error",COAUTHOR_INVITED:"co-author_invited",COMMENTED:"commentLeft",CREATE_WELL_WISH:"wellWishCreate",CUSTOM_EVENT:"trackEvent",DRAFT_POST_CREATED:"draft_post_created",DRAFT_POST_DELETED:"draft_post_deleted",DRAFT_POST_UPDATED:"draft_post_updated",DONATE_BUTTON_CLICKED:"button_click_donate_to_caringbridge",EMAIL_SUBSCRIPTION:"email_subscription",EMAIL_UNSUBSCRIPTION:"email_unsubscription",EMOJI_TYPE:"journalEmojiClick",FACEBOOK_SHARE:"facebook_share",FACEBOOK_SHARE_ERROR:"facebook_share_error",FOLLOW_SITE:"follow_site",GO_FUND_ME_LINK:"go_fund_me_link",JOURNAL_ENTRY:"journal_entry",JOURNAL_ENTRY_EDITED:"journal_edited",JOURNAL_ENTRY_DELETED:"journal_deleted",JOURNAL_ENTRY_PINNED:"journal_pinned",JOURNAL_ENTRY_UNPINNED:"journal_unpinned",NEW_ACCOUNT:"new_user_created",NEW_COAUTHOR:"new_co-author",NEW_SITE_CREATED:"new_site_created",OPTIMIZE:"optimize_event",REACTED:"reactionClick",REQUEST_CREATED:"request_created",REQUEST_DELETED:"request_deleted",REQUEST_UPDATED:"request_updated",REQUEST_SLOT_ASSIGNED:"request_slot_assigned",REQUEST_SLOT_UNASSIGNED:"request_slot_unassigned",SAVE_JOURNAL_ENTRY:"journalEntry",SIGN_IN:"sign_in",SSO_AUTH_ERROR:"sso_auth_error",SSO_AUTH_PROFILE_ERROR:"sso_profile_error",SSO_SIGN_IN:"sso_sign_in",ONE_TIME_SIGN_IN_LINK_ERROR:"one_time_sign_in_link_error",SAS_PATIENT:"Step1_name",SAS_PHOTO:"Step3_photo",SAS_POST:"Step2_journal",SAS_PRIVACY:"Step4_privacy",SURVEY_ACTION:"survey_action",TRACK_DONATION:"track_donation",FRU_TRIBUTE_CHECKOUT_INITIATED:"fru_tribute_checkout_initiated",FRU_TRIBUTE_CHECKOUT_COMPLETED:"fru_tribute_checkout_completed",FRU_TRIBUTE_CHECKOUT_ERROR:"fru_tribute_checkout_error",UNFOLLOW_SITE:"unfollow_site",WTH_INSTACART_SITE_VISIT:"instacart_site_visit",WTH_BEST_BUY_SITE_VISIT:"best_buy_site_visit",WTH_GIFT_CARD_SITE_VISIT:"gift_card_site_visit",ONE_TIME_LINK_SIGN_IN:"one_time_link_sign_in",POPUP_SHOWN:"popup_shown",POPUP_DISMISSED:"popup_dismissed",POPUP_ENGAGED:"popup_engaged",POPUP_COMPLETED:"popup_completed",WTH_ENCOURAGEMENT_SHOWN:"wth_encouragement_shown",WTH_ENCOURAGEMENT_ENGAGED:"wth_encouragement_engaged",WTH_ENCOURAGEMENT_DISMISSED:"wth_encouragement_dismissed",FEED_COMMENT_DONATION_OVERLAY_SHOWN:"feed_comment_donation_overlay_shown",FEED_COMMENT_DONATION_OVERLAY_DISMISSED:"feed_comment_donation_overlay_dismissed",FEED_COMMENT_DONATION_OVERLAY_DONATE_CLICKED:"feed_comment_donation_overlay_donate_clicked"}
298,l={DAS_ONLY:"das",JEN_DAS:"jen and das",JEN_ONLY:"jen",OFF:"off"};function u(e,t,r){let n=!t.jen&&r.jen,i=t.jen&&!r.jen,a=!t.dailyEmail&&r.dailyEmail,u=t.dailyEmail&&!r.dailyEmail;(n||a)&&e({event:s.EMAIL_SUBSCRIPTION,event_action:l[(0,o.mb)({jen:n,dailyEmail:a})],subscription:l[(0,o.mb)(r)]}),(i||u)&&e({event:s.EMAIL_UNSUBSCRIPTION,event_action:l[(0,o.mb)({jen:i,dailyEmail:u})],subscription:l[(0,o.mb)(r)]})}},31439:function(e,t,r){"use strict";r.d(t,{Rg:function(){return o},Wl:function(){return i}});let n={PRODUCTION_ACCOUNT_ID:"AW-11082265068",CONVERSIONS:{SITE_CREATED:"AW-11082265068/u7nXCJL28cMbEOzjt6Qp"}};function i(){return"AW-11082265068"}function o(e){let t=i();return t===n.PRODUCTION_ACCOUNT_ID?n.CONVERSIONS[e]||(console.warn("[GoogleAds] Conversion action '".concat(e,"' not found in config")),"".concat(t,"/unknown-conversion")):"".concat(t,"/test-").concat(e.toLowerCase())}},40881:function(e,t,r){"use strict";let n;r.d(t,{Uk:function(){return P}});var i=r(82729),o=r(17283),a=r(57976),s=r(8819),l=r(5241),u=r(75545);let c=new s.h({typePolicies:{Photo:{keyFields:["publicId","legacyPath"]},PostConnection:{fields:{posts:{merge:d,read:e=>e}}},Query:{fields:{siteSearch15:{keyArgs:e=>{var t;return null==e?void 0:null===(t=e.query)||void 0===t?void 0:t.searchTerm}}}},Site:{fields:{isAuthor:{read(e,t){let r=t.readField("context");return(0,u.nu)(r,l.uU.AUTHOR)}},isFollower:{read(e,t){let r=t.readField("context");return(0,u.nu)(r,l.uU.FOLLOWER)}},postConnection:{keyArgs:e=>{var t,r;return null==e?void 0:null===(r=e.query)||void 0===r?void 0:null===(t=r.paginationInput)||void 0===t?void 0:t.sortDirection}},tributeConnection:{keyArgs:e=>{var t,r;return null==e?void 0:null===(r=e.query)||void 0===r?void 0:null===(t=r.paginationInput)||void 0===t?void 0:t.sortDirection}},visitorConnection:{keyArgs:e=>{var t,r;return null==e?void 0:null===(r=e.query)||void 0===r?void 0:null===(t=r.paginationInput)||void 0===t?void 0:t.sortDirection}}}},SiteSearch15Response:{fields:{sites:{merge:d,read:e=>e}}},TributeConnection:{fields:{tributes:{merge:d,read:e=>e}}},VisitorConnection:{fields:{visitors:{merge:d,read:e=>e}}}}});function d(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,{variables:n}=arguments.length>2?arguments[2]:void 0;if((null!=(e=null==n?void 0:n.nextToken)?e:"#noValue!")==="#noValue!"||""===e)return r;let i=[...t];return r.forEach(e=>{i.push(e)}),i}r(31905);var f=r(59508),h=r(86909).i.from,p=r(37865);let m={"X-Requested-With":"XMLHttpRequest"},g=(0,p.v)((e,t)=>{let{headers:r={}}=t;return{headers:{...r,...m}}});var v=r(87036);let y=(0,p.v)((e,t)=>{let{headers:r={}}=t,n=sessionStorage.getItem(v.P_.IMPERSONATION);return{headers:{...r,...n?{"x-impersonate-user":n}:{}}}});var b=r(21811);let x=(0,p.v)((e,t)=>{var r;let{headers:n={}}=t,i=null===(r=JSON.parse((0,b.LP)(v.P_.CB_SESSION)))||void 0===r?void 0:r.sessionId;return{headers:{...n,...i?{"cb-session":i}:{}}}});var _=r(8358),E=function(){let e;if((0,_.ZP)())return;let t=(e=!1,("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(e=!0),e),r=window.navigator.userAgent,n=function(){let e=window.devicePixelRatio;return e?96*e:96}(),i={viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,deviceWidth:window.screen.width,deviceHeight:window.screen.height,deviceAvailableWidth:window.screen.availWidth,deviceAvailableHeight:window.screen.availHeight};return{viewportWidth:i.viewportWidth,viewportHeight:i.viewportHeight,dotsPerInch:n,deviceWidth:i.deviceWidth,deviceHeight:i.deviceHeight,deviceAvailableWidth:i.deviceAvailableWidth,deviceAvailableHeight:i.deviceAvailableHeight,touchEnabled:t,userAgent:r}};let S=(0,p.v)(function(e,t){let{headers:r={}}=t,n={headers:{...r}};return function(e){let t=e.query.definitions;return!!Array.isArray(t)&&t.some(e=>"mutation"===e.operation)}(e)&&(n.headers["X-CB-Client-Metrics"]=JSON.stringify(E())),n}),w=(0,p.v)((e,t)=>{let{headers:r={}}=t;if((0,b.LP)(v.P_.ACCESS_TOKEN))return{headers:r};let n=sessionStorage.getItem(v.P_.OTPV_TOKEN_ID),i=sessionStorage.getItem(v.P_.OTPV_RESOURCE_ID);if(!n||!i)return{headers:r};let o=btoa(JSON.stringify({token_id:n,requested_resource_id:i}));return{headers:{...r,"x-otpv-token":o}}}),k=new f.u({uri:"https://hgsvhqovbrbt3ivcfobjm5ip6y.appsync-api.us-east-2.amazonaws.com/graphql",credentials:"same-origin"}),T=[];T.push(g),T.push(y),T.push(b.ZP),T.push(x),T.push(w),T.push(S),T.push(k);var I=h(T),C=r(182),A=r(67294);function O(){let e=(0,i._)(["\n    extend type Site {\n        isAuthor: Boolean!\n        isFollower: Boolean!\n    }\n"]);return O=function(){return e},e}
298let N=(0,o.Ps)(O());function P(e){let t=e.__APOLLO_STATE__;return(0,A.useMemo)(()=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=null!=n?n:new a.f({ssrMode:!1,link:I,cache:c,typeDefs:N});if(e){let r=t.extract(),n=(0,C.Ee)(e,r);t.cache.restore(n)}return n||(n=t),t})(t),[t])}},5241:function(e,t,r){"use strict";r.d(t,{F2:function(){return n},Ie:function(){return s},Jc:function(){return m},L8:function(){return i},NS:function(){return v},Sr:function(){return p},_B:function(){return y},_Q:function(){return g},aj:function(){return u},lo:function(){return f},mR:function(){return l},u5:function(){return a},uU:function(){return h},uk:function(){return c},xP:function(){return o},xU:function(){return d}});let n={ACCEPT:"ACCEPT",DECLINE:"DECLINE"},i={COMMENT:"COMMENT",POST:"POST",REQUEST:"REQUEST",WELLWISH:"WELLWISH",WAYS_TO_HELP_POST:"WAYS_TO_HELP_POST"},o={DELETE:"DELETE",EDIT:"EDIT",REACT:"REACT",REPLY_TO:"REPLY_TO"},a={POST:"POST",REQUEST:"REQUEST",TRIBUTE:"TRIBUTE",WAYS_TO_HELP_POST:"WAYS_TO_HELP_POST"},s={API:"API",AUTO_SUBSCRIBE_SITE_INTERACTION:"AUTO_SUBSCRIBE_SITE_INTERACTION",CRITICAL_30_EMAIL:"CRITICAL_30_EMAIL",FOLLOW_BUTTON:"FOLLOW_BUTTON",FOLLOW_BUTTON_HEADER:"FOLLOW_BUTTON_HEADER",FOLLOW_BUTTON_HEADER_TOGGLE:"FOLLOW_BUTTON_HEADER_TOGGLE",FOLLOW_BUTTON_LOW_PRIVACY
298:"FOLLOW_BUTTON_LOW_PRIVACY",NOTIFICATIONS_PAGE:"NOTIFICATIONS_PAGE",NOTIFICATION_PREFERENCES:"NOTIFICATION_PREFERENCES",SITE_NOTIFICATIONS_PAGE:"SITE_NOTIFICATIONS_PAGE",TRIBUTE_MADE:"TRIBUTE_MADE"},l={ACCEPT:"ACCEPT",DECLINE:"DECLINE",DELETE:"DELETE",RESEND:"RESEND"},u={ACCEPTED:"ACCEPTED",DECLINED:"DECLINED",INVITED:"INVITED"},c={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM"},d={COMMENT:"COMMENT",POST:"POST",REQUEST:"REQUEST",WELLWISH:"WELLWISH",WAYS_TO_HELP_POST:"WAYS_TO_HELP_POST"},f={AMP_HEART:"AMP_HEART",FOLDED_HANDS:"FOLDED_HANDS",HAPPY:"HAPPY",SAD:"SAD"},h={ANON:"ANON",AUTHOR:"AUTHOR",CB_ADMIN:"CB_ADMIN",FOLLOWER:"FOLLOWER",VISITOR:"VISITOR"},p={ASCENDING:"ASCENDING",DESCENDING:"DESCENDING"},m={AUTHOR:"AUTHOR",BLOCKED:"BLOCKED",NOT_ALLOWED:"NOT_ALLOWED",VISITOR:"VISITOR"},g={GO_FUND_ME:"GO_FUND_ME",MEAL_TRAIN:"MEAL_TRAIN",GIFT_CARD:"GIFT_CARD"},v={PENDING:"PENDING",POSTED:"POSTED",DISMISSED:"DISMISSED"},y={ASSIGN:"ASSIGN",UNASSIGN:"UNASSIGN"}},75545:function(e,t,r){"use strict";function n(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#noMatch!",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#noMatch!";if(!e)return!1;let i=e.find(e=>{var i,o;let a=(null===(i=e.errorInfo)||void 0===i?void 0:i.code)===r,s=e.errorType===n,l=(o=e.path,!!(Array.isArray(t)&&Array.isArray(o))&&t.join()===o.join());return(a||s)&&l});return!!i&&(i.message||"​")}function i(e,t){return!!Array.isArray(null==e?void 0:e.roles)&&e.roles.includes(t)}r.d(t,{Jl:function(){return a},PX:function(){return o},QP:function(){return n},nu:function(){return i}});let o={ON_BLOCK_LIST:"ON_BLOCK_LIST",HIGH_CAN_REQUEST:"HIGH_CAN_REQUEST",HIGH_INVITE_ONLY:"HIGH_INVITE_ONLY"};function a(e){if(!Array.isArray(e))return null;let t=e.find(e=>e.path.includes("getSite")&&"403"===e.errorInfo.code);if(!t)return null;switch(t.errorType){case"MediumPrivacyForbidden":return o.ON_BLOCK_LIST;
298case"AccessRequestAllowedHighPrivacyForbidden":return o.HIGH_CAN_REQUEST;case"AccessRequestNotAllowedHighPrivacyForbidden":return o.HIGH_INVITE_ONLY;default:return null}}},21811:function(e,t,r){"use strict";r.d(t,{pt:function(){return h},ZP:function(){return m},LP:function(){return v}});var n=r(37865),i=r(87036);function o(e){this.message=e}o.prototype=Error(),o.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new o("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,i=0,a=0,s="";n=t.charAt(a++);~n&&(r=i%4?64*r+n:n,i++%4)&&(s+=String.fromCharCode(255&r>>(-2*i&6))))n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return s};function s(e){this.message=e}s.prototype=Error(),s.prototype.name="InvalidTokenError";var l=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t,r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return t=r,decodeURIComponent(a(t).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return a(r)}}(e.split(".")[r]))}catch(e){throw new s("Invalid token specified: "+e.message)}},u=r(82729);function c(){let e=(0,u._)(["\n    mutation REFRESH_TOKENS($refreshToken: String!) {\n        refreshTokens(input: { refreshToken: $refreshToken }
298) {\n            accessToken\n            refreshToken\n        }\n    }\n"]);return c=function(){return e},e}async function d(e){let t;let r="https://hgsvhqovbrbt3ivcfobjm5ip6y.appsync-api.us-east-2.amazonaws.com/graphql",n={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:h},credentials:"same-origin",body:JSON.stringify({operationName:"REFRESH_TOKENS",query:f.loc.source.body,variables:{refreshToken:e}})};try{t=await fetch(r,n)}catch(e){return console.log("Could not fetch ".concat(r," because ").concat(JSON.stringify(e))),null}if(!t.ok)return console.log("Could not fetch ".concat(r," because the response was not ok.")),null;let{data:{refreshTokens:i}}=await t.json();return i}let f=(0,r(17283).Ps)(c()),h="anonymousaccess",p=0;var m=(0,n.v)((e,t)=>{let{headers:r={}}=t;return g(r)});async function g(e){let t={headers:{...e,Authorization:h}},r=v(i.P_.ACCESS_TOKEN),n=v(i.P_.REFRESH_TOKEN);r||(p=0);let o=y(p);if(r&&n){var a,s;let u;if(o||(p=u=null===(a=l(r))||void 0===a?void 0:a.exp,"number"==typeof u&&y(u)))t={headers:{...e,Authorization:r}};else{let r=await d(n);r&&(r.accessToken?(localStorage.setItem(i.P_.ACCESS_TOKEN,r.accessToken),localStorage.setItem(i.P_.REFRESH_TOKEN,r.refreshToken)):(localStorage.removeItem(i.P_.ACCESS_TOKEN),localStorage.removeItem(i.P_.REFRESH_TOKEN),p=0),t={headers:{...e,Authorization:null!==(s=r.accessToken)&&void 0!==s?s:h}})}}return t}function v(e){return localStorage.getItem(e)?localStorage.getItem(e):null}function y(e){return e>Date.now()/1e3+5}},20099:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(85893),i=r(25675),o=r.n(i),a=r(45697),s=r.n(a),l=r(19502);function u(e){let{id:t,legacyPath:r,width:i,responsive:a=!1,onError:s=()=>{}}=e,u=(0,l.h)(t,r,["c_fill","g_face","ar_1:1","w_".concat(i),"q_auto"]);return(0,n.jsx)("div",{style:{width:"100%",height:"100%",position:"relative",overflow:"hidden",borderRadius:"5px",border:"1px solid #ccc"},children:(0,n.jsx)(o(),{src:u,width:i,height:i,style:a?{width:"100%",display:"block",objectFit:"cover"}:{display:"block",objectFit:"cover"},alt:"",onError:s,unoptimized:!0,"data-qa":"thumbnail-square-".concat(t||r)})})}u.propTypes={id:s().string,legacyPath:s().string,width:s().number.isRequired,responsive:s().bool,onError:s().func}},18216:function(e,t,r){"use strict";r.d(t,{$h:function(){return i},Ef:function(){return c},H:function(){return a},H_:function(){return n},To:function(){return l},by:function(){return d},uY:function(){return u},yR:function(){return s},zU:function(){return o}});let n="caringbridge-ugc",i="765774846952648",o="https://assets.caringbridge.org",a="https://api.cloudinary.com",s={UPLOAD:"upload",PRIVATE:"private",AUTHENTICATED:"authenticated",FETCH:"fetch"},l={IMAGE:"image",VIDEO:"video",RAW:"raw"},u={CORRUPT_IMAGE:"CORRUPT_IMAGE",RATE_LIMITED:"RATE_LIMITED",SERVER_ERROR:"SERVER_ERROR"},c={EXTENSIONS:[".png",".jpg",".jpeg",".gif",".heic",".webp"],MIME_TYPES:["image/png","image/jpeg","image/gif","image/heic","image/webp"]},d=".testinator.com"},19502:function(e,t,r){"use strict";r.d(t,{h:function(){return a}});var n=r(18216),i=r(8358);function o(e){let t;let r=(0,i.o8)();return t=r===i.v1.PROD?"legacy-prod.caringbridge.org":i.ab[r],"https://".concat(t,"/assets/ugc/").concat(e)}function a(e,t,r){let i="";return t&&!e?i=o(t):e&&(i=e.startsWith("/")?o(e):function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t.push("f_auto"),t.some(e=>e.startsWith("q_"))||t.push("q_auto");let r=t.join(",");return"".concat(n.zU,"/").concat(n.To.IMAGE,"/").concat(n.yR.UPLOAD,"/").concat(r,"/").concat(e)}(e,r)),i}},11774:function(e,t,r){"use strict";r.d(t,{Ix:function(){return o}});var n=r(18216),i=r(6713);async function o(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=await s(e,(r.tags&&!String(r.tags).includes("orphan")?r.tags+=",orphan":r.tags||(r.tags="orphan"),t=r,(0,i.p)().toLowerCase(),t)),a="".concat(n.H,"/v1_1/").concat(n.H_,"/").concat(n.To.IMAGE,"/upload"),u=await fetch(a,{method:"POST",body:o,credentials:"same-origin"});return u.ok?u.json():await l(u)}async function a(e){let t=await fetch("/api/sign",{method:"POST",body:JSON.stringify({paramsToSign:e}),headers:{"Content-Type":"application/json"}});return 429===t.status?Promise.reject({message:"Rate limit exceeded",type:n.uY.RATE_LIMITED}):t.ok?await t.json():Promise.reject({message:"Failed to get upload signature",type:n.uY.SERVER_ERROR})}async function s(e,t){let r=new FormData;r.append("file",e),r.append("api_key",n.$h);let i=await a(t);for(let e in r.append("timestamp",i.timestamp),r.append("signature",i.signature),t)Object.hasOwn(t,e)&&r.append(e,t[e]);return r}async function l(e){let t={message:"",type:n.uY.SERVER_ERROR};try{let{message:r}
298=(await e.json()).error,i="Invalid image file"===r||"Failed to ping image"===r||"Invalid webp file"===r?n.uY.CORRUPT_IMAGE:n.uY.SERVER_ERROR;t={message:r,type:i},console.error("Handled Cloudinary Error: ",t)}catch(e){t.message=JSON.stringify(e),console.error("Unhandled Cloudinary Error: ",e)}return Promise.reject(t)}},87036:function(e,t,r){"use strict";r.d(t,{Bs:function(){return h},CU:function(){return o},DW:function(){return d},Oh:function(){return i},P_:function(){return n},Uc:function(){return f},aV:function(){return p},lj:function(){return u},qx:function(){return l},yD:function(){return s},yW:function(){return c},zU:function(){return a}});let n={ACCESS_TOKEN:"accessToken",REFRESH_TOKEN:"refreshToken",RETURN_TO:"return_to",CB_SESSION:"cbSession",IMPERSONATION:"impUserId",OTPV_TOKEN_ID:"otpv_token_id",OTPV_RESOURCE_ID:"otpv_resource_id"},i=50,o=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,a=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[`~!@#$%^&*()_+=\-[{}\]|'":;<>?/.,]).{8,}$/,s=/^(?!\s*$).+/,l=/^[0-9]{6}/,u=/^(?! ).*[^\s]$/,c=/^https?:\/\/gofund\.me\/[a-zA-Z0-9]{8}/,d=/^https?:\/\/www\.gofundme\.com\/f\/[a-zA-Z0-9]/,f={COMMENT:"commenting",REACTION:"reacting",FOLLOW:"following"},h={X_SMALL:"420px",SMALL:"768px",MEDIUM:"1024px",LARGE:"1296px",X_LARGE:"1920px"},p={X_SMALL:420,SMALL:768,MEDIUM:1024,LARGE:1296,X_LARGE:1920}},53523:function(e,t,r){"use strict";r.d(t,{f:function(){return d},z:function(){return f}});var n=r(85893),i=r(67294),o=r(11163),a=r(37887),s=r(45697),l=r.n(s),u=r(25351);let c=(0,i.createContext)(null),d=()=>(0,i.useContext)(c),f=e=>{let{children:t}=e,r=(0,o.useRouter)().query.siteId,[s,l]=(0,i.useState)(r),{data:d,error:f,loading:h,refetch:p}=(0,a.a)(u.dL,{variables:{siteId:r},skip:!r});(0,i.useEffect)(()=>{r&&r!==s&&(l(r),p({siteId:r}))},[r,s,p]);let m=r?{draftsData:d,draftsError:f,draftsLoading:h,refetchDrafts:p}:{draftsData:null,draftsError:null,draftsLoading:!1,refetchDrafts:null!=p?p:()=>{}};return(0,n.jsx)(c.Provider,{value:m,children:t})};f.propTypes={children:l().node.isRequired}},6713:function(e,t,r){"use strict";r.d(t,{l:function(){return i},p:function(){return o}});let n="";function i(e){n=e||""}function o(){return n}},86921:function(e,t,r){"use strict";r.d(t,{Vd:function(){return a},p6:function(){return o},yi:function(){return i}});var n=r(56983);let i={FULL:"full",LONG:"long",MEDIUM:"medium",MID:"MID",SHORT:"short"};function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!(t instanceof Date)||"Invalid Date"===t.toString())throw Error("dataObject is not a valid Javascript Date object. Thrown from formatDate().\nThe invalid object was:\n".concat(JSON.stringify(t)));let r={};return r=e===i.MID?{year:"numeric",month:"numeric",day:"numeric"}:{dateStyle:e},t.toLocaleDateString(void 0,r)}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!(t instanceof Date&&e instanceof Date))return"";let r=e.valueOf()-t.valueOf()+999,i=Math.floor(r/864e5);if(i<0)return"";let o=Math.floor((r-=864e5*i)/36e5),a=Math.floor((r-=36e5*o)/6e4),s=Math.floor((r-=6e4*a)/1e3);r-=1e3*s;let l="";return String(l+=(i?"".concat(i," ").concat((0,n.Ho)(i,"day"),", "):"")+(o||i?"".concat(o," ").concat((0,n.Ho)(o,"hour"),", "):"")+(a||o?"".concat(a," ").concat((0,n.Ho)(a,"minute")," and "):"")+(s||a?"".concat(s," ").concat((0,n.Ho)(s,"second")):""))}},8358:function(e,t,r){"use strict";function n(){return!1}r.d(t,{Km:function(){return c},S_:function(){return o},ZP:function(){return n},ab:function(){return u},cy:function(){return l},o8:function(){return s},s$:function(){return i},v1:function(){return a}});let i=!1,o=!0,a={LOCAL:"LOCAL",BRANCH:"BRANCH",TEST:"TEST",STAGE:"STAGE",PROD:"PROD",NODE:"NODE",UNKNOWN:"UNKNOWN",DRESSREH1:"DRESSREH1",DRESSREH2:"DRESSREH2"};function s(){var e,t;if(i)return a.NODE;let r=null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.hostname;switch(r){case"local":case"localhost":return a.LOCAL;case"test.caringbridge.cc":return a.TEST;case"feedback.caringbridge.cc":case"feedback.caringbridge.org":case"migration1.caringbridge.org":return a.STAGE;case"new.caringbridge.org":case"caringbridge.org":case"www.caringbridge.org":case"dr1.caringbridge.org":case"dr2.caringbridge.org":case"migrated.caringbridge.org":return a.PROD;default:if(null==r?void 0:r.includes("vercel.app"))return a.BRANCH;return a.UNKNOWN}}let l=new Map([[a.LOCAL,"localhost:3000"],[a.TEST,"test.caringbridge.cc"],[a.STAGE,"feedback.caringbridge.cc"],[a.MIGRATION1,"migration1.caringbridge.org"],[a.PROD,"www.caringbridge.org"],[a.DRESSREH1,"dr1.caringbridge.org"],[a.DRESSREH2,"dr2.caringbridge.org"]]),u={LOCAL:"test.caringbridge.org",TEST:"test.caringbridge.org",STAGE:"staging.caringbridge.org",MIGRATION1:"migration1.caringbridge.org",PROD:"caringbridge.org",DRESSREH1:"dr1.caringbridge.org",DRESSREH2:"dr2.caringbridge.org"},c=new Map([["development","LOCAL"],["test","TEST"],["feedback","STAGE"],["migration1","MIGRATION1"],["production","PROD"]])},99392:function(e,t,r){"use strict";r.d(t,{T:function(){return n},c:function(){return i}});let n={GO_FUND_ME:"NEXT_PUBLIC_FF_GO_FUND_ME",MEAL_TRAIN:"NEXT_PUBLIC_FF_MEAL_TRAIN",SOCIAL_SIGN_ON:"NEXT_PUBLIC_FF_SOCIAL_SIGN_ON",IRB_SURVEY:"NEXT_PUBLIC_FF_IRB_SURVEY",UCLA_SURVEY:"NEXT_PUBLIC_FF_UCLA_SURVEY",MATCHING_SURVEY:"NEXT_PUBLIC_FF_MATCHING_SURVEY",FB_SHARE:"NEXT_PUBLIC_FF_FB_SHARE",GIFT_CARDS:"NEXT_PUBLIC_FF_GIFT_CARDS",GIFT_CARDS_PHASE_2:"NEXT_PUBLIC_FF_GIFT_CARDS_PHASE_2",INSTACART:"NEXT_PUBLIC_FF_INSTACART",BEST_BUY:"NEXT_PUBLIC_FF_BEST_BUY",NOTIFICATION_TOGGLES:"NEXT_PUBLIC_FF_NOTIFICATION_TOGGLES",KIMBIA_DONATION_FORM_LOAD_THRESHOLD:"NEXT_PUBLIC_FF_KIMBIA_DONATION_FORM_LOAD_THRESHOLD"};function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object.values(n).includes(e))return console.error("The passed in flag: ",e,", is not included in the FeatureFlags list."),null;let r={NEXT_PUBLIC_FF_IRB_SURVEY:"false",NEXT_PUBLIC_FF_INSTACART:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_GIFT_CARDS_PHASE_2:"true",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_KIMBIA_DONATION_FORM_LOAD_THRESHOLD:"2000",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_BEST_BUY:"true",NEXT_PUBLIC_FF_MATCHING_SURVEY:"false",NEXT_PUBLIC_FF_NOTIFICATION_TOGGLES:"false",NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"false"}[e];try{if(t)return t(r)}catch(t){return console.error("Error parsing ".concat(e," value:"),t),null}return"true"===r}},4162:function(e,t,r){"use strict";r.d(t,{$C:function(){return m},Eh:function(){return h},Eu:function(){return g},G3:function(){return function e(t,r){if("object"==typeof r&&!Array.isArray(r))return Object.entries(r).forEach(e
298=>{let[r,n]=e,i=new RegExp("\\[".concat(r,"]")),o=t.replace(i,encodeURIComponent(n));o===t?(String(t).includes("?")||(t+="?"),t+="&".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))):t=o}),t.replace(/\?&/,"?");let n=[];if("string"==typeof r)n=[r];else{if(!Array.isArray(r))return t;n=[...r]}if(0===n.length)return t;let i=t.replace(/\[.+?\]/,encodeURIComponent(n[0]));return n.shift(),e(i,n)}},Hn:function(){return d},Ph:function(){return f},SG:function(){return c},Tx:function(){return u},WV:function(){return y},Z6:function(){return s},aX:function(){return p},qn:function(){return v},yt:function(){return l}});var n=r(11163),i=r.n(n),o=r(8358),a=r(87036);let s={CHECK_EMAIL:"/profile/check-email",COAUTHOR_ACCEPT:"/site/[siteId]/invite/[inviteId]/accept",COAUTHOR_DECLINE:"/site/[siteId]/invite/[inviteId]/decline",COAUTHOR_LEGACY_INVITE:"/site/[siteId]/invite/[inviteId]",DEMO_CARDS:"/components/CardsDemo",DEMO_EDITOR_KENDO:"/components/EditorKendo",DEMO_ICONS:"/components/IconsDemo",DEMO_MODAL:"/components/ModalDemo",DEMO_COLORS:"/components/ColorsDemo",DEMO_TYPOGRAPHY:"/components/TypographyDemo",DEMO_SPACERS:"/components/SpacersDemo",DEMO_BUTTONS:"/components/ButtonsDemo",DEMO_FORMS:"/components/FormDemo",DEMO_LOGO:"/components/LogoDemo",DEMO_IMAGES:"/components/ImagesDemo",DEMO_MISC:"/components/MiscDemo",DEMO_MARKETING:"/components/marketingContent",DEMO_CALCULATOR:"/components/CssCalculator",FOUR_04:"/404",GIVE_DONATION:"/give/[campaign]",HELP:"/help",HOME:"/",INTERNAL:"/internal",LEGAL_COPYRIGHT:"/legal/copyright",LEGAL_PRIVACY_POLICY:"/legal/privacy-policy",LEGAL_TERMS_OF_USE:"/legal/terms-of-use",PROFILE_REGISTER:"/profile/register",PROFILE_REGISTER_PHOTO:"/profile/register/photo",PROFILE_REGISTER_CONFIRM:"/profile/register/confirm",PROFILE_REGISTER_SSO_LOGIN:"/profile/register/social-signup-login",PROFILE_REGISTER_CONFIRM_SSO_USER:"/profile/register/confirm-social-signup",PROFILE_RESET_PASSWORD:"/profile/reset-password",PROFILE_RESET_PASSWORD_CONFIRM:"/profile/reset-password/confirm",PROFILE_SETTINGS_NOTIFICATIONS:"/profile/settings/notifications",PROFILE_SETTINGS_NOTIFICATIONS_UNSUBSCRIBE:"/profile/settings/notifications/unsubscribe",PROFILE_SETTINGS_GENERAL:"/profile/settings/general",PROFILE_SETTINGS_EMAIL:"/profile/settings/email-address",PROFILE_SETTINGS_PHONE:"/profile/settings/phone",PROFILE_SETTINGS_PASSWORD:"/profile/settings/password",PROFILE_VERIFY_LOGIN_LINK:"/profile/verify-login-link",PROFILE_SIGN_IN:"/profile/signin",RESOURCES:"/resources",RESOURCES_ADVICE:"/resources/healing/expert-advice",RESOURCES_INSPIRATION:"/resources/healing/inspiration",RESOURCES_STORIES:"/resources/healing/stories",RESOURCES_PRESS_RELEASES:"/resources/media-center/press-releases",SEARCH:"/search",SITE_HOME_PAGE:"/site/[siteId]",SITE_PUBLIC_PAGE:"/site/public/[siteId]",SITE_SINGLE_POST:"/site/[siteId]/post/[postId]",SITE_SINGLE_REQUEST:"/site/[siteId]/request/[requestId]",SITE_SINGLE_WAYS_TO_HELP_POST:"/site/[siteId]/ways-to-help-post/[waysToHelpPostId]",SITE_TRIBUTES:"/site/[siteId]/tributes",SITE_SETTINGS_GENERAL:"/site/[siteId]/settings/general",SITE_SETTINGS_AUTHORS:"/site/[siteId]/settings/authors",SITE_SETTINGS_PRIVACY:"/site/[siteId]/settings/privacy",SITE_SETTINGS_VISITORS:"/site/[siteId]/settings/visitors",SITE_WAYS_TO_HELP:"/site/[siteId]/ways-to-help",START:"/start",PAGES_PARTNERSHIPS:"/partnerships",PAGES_ABOUT_US:"/about-us",PAGES_OUR_PEOPLE:"/about-us/our-people",PAGES_FINANCIALS_RATINGS:"/about-us/financials-ratings",PAGES_CAREERS:"/about-us/careers",PAGES_GET_INVOLVED:"/about-us/get-involved",APP_STORE_IOS:"https://apps.apple.com/us/app/caringbridge/id365726944",APP_STORE_ANDROID:"https://play.google.com/store/apps/details?id=com.caringbridge.app&hl=en_US",SURVEYS:"/surveys",CONNECT_HOME:"/connect",CONNECT_PROFILE:"/connect/profile",CONNECT_CHAT:"/connect/chat"},l={GET_HELP:"https://caringbridge.my.site.com/help/s/",CONTACT_SUPPORT:"https://caringbridge.my.site.com/help/s/contactsupport"},u={ADD_NEW:"addnew",IMPERSONATION:"imp",RETURN_URL:"returl",EMAIL_ADDRESS:"email",FOLLOW:"follow",FROM_URL:"from",FIRST_NAME:"fname",SHARE_MODAL:"share",SEARCH:"q",REACTION:"reaction",PARENT:"parentId",EMAIL_TYPE:"emailType",CREATE_ACCOUNT:"ca",PROVIDER:"provider",COAUTHOR_ACCEPT:"coauthor",SITE_ID:"siteId",PHONE_NUMBER:"phone",PHOTO_PUBLIC_ID:"photo_id",PHOTO_WIDTH:"photo_w",PHOTO_HEIGHT:"photo_h",OTPV_TOKEN:"otpv_token",OPEN_REACTION_MODAL:"open_reaction_modal",POST_ID:"postId",REQUEST_ID:"requestId",TAB:"tab"},c={START:"Create a CaringBridge",SEARCH:"Find a CaringBridge",DONATE:"Donate to CaringBridge",DONATE_SHORT:"Donate",HELP:"Help",PAGES_FINANCIALS_RATINGS:"Financials and Ratings",PAGES_ABOUT_US:"About",FEEDBACK:"Feedback",PAGES_PARTNERSHIPS:"Partnerships",PAGES_OUR_PEOPLE:"Our People",PAGES_CAREERS:"Careers",GET_INVOLVED:"Get Involved",RESOURCES:"Resources",RESOURCES_ADVICE:"Expert Advice",RESOURCES_INSPIRATION:"Inspiration",RESOURCES_NEWS:"News",RESOURCES_PRESS_RELEASES:"Press Releases",RESOURCES_STORIES:"Stories",PROFILE_SIGN_IN:"Sign in/up"};function d(){return o.s$?({NEXT_PUBLIC_FF_IRB_SURVEY:"false",NEXT_PUBLIC_FF_INSTACART:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_GIFT_CARDS_PHASE_2:"true",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_KIMBIA_DONATION_FORM_LOAD_THRESHOLD:"2000",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_BEST_BUY:"true",NEXT_PUBLIC_FF_MATCHING_SURVEY:"false",NEXT_PUBLIC_FF_NOTIFICATION_TOGGLES:"false",NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"false"}).CLIENT_URL?"https://www.caringbridge.test":"https://www.caringbridge.org":window.location.origin}function f(e){if(o.S_)return Array.isArray(i().query[e])?i().query[e][0]:i().query[e]?i().query[e].toString():""}function h(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?i().replace(e):i().push(e)}function p(){let e=i().asPath.substring(0,i().asPath.indexOf("?"))||i().asPath;i().replace(e,void 0,{shallow:!0})}function m(e){return e?{siteId:e}:void 0}function g(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e=null!=e?e:{};let l={},u="";if(n)u=n;else try{let e=new URL(i().asPath,"https://caringbridge.org");u=e.pathname,l=t?{}:Object.fromEntries(e.searchParams)}catch(e){console.log("redirect.js -- Unable to parse ".concat(u)),i().push(s.PROFILE_SIGN_IN)}let c={...l,...e},d="";for(let[e,t]of Object.entries(c))d+="".concat(e,"=").concat(t,"&");d&&(d="?"+d.slice(0,-1));let f="";if(r){for(let[e,t]of Object.entries(r))f+="".concat(e,"=").concat(encodeURIComponent(t),"&");f&&(f="?"+f.slice(0,-1))}
298let h="".concat(u).concat(d);localStorage.setItem(a.P_.RETURN_TO,h),(o?i().replace:i().push)("".concat(s.PROFILE_SIGN_IN).concat(f))}function v(){let e=localStorage.getItem(a.P_.RETURN_TO);e?(localStorage.removeItem(a.P_.RETURN_TO),i().push(e)):i().push(s.HOME)}function y(e){let t=(0,o.o8)(),r=o.ab[t];return"https://".concat(r,"/visit/").concat(e)}},368:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(85893),i=r(9008),o=r.n(i),a=r(45697),s=r.n(a),l=r(82729),u=r(8358),c=r(17283);r(40881);var d=r(4162);function f(){let e=(0,l._)(["\n    query GET_PUBLIC_SITE_SITEMAPS {\n        getSitesSitemapFileList {\n            files\n        }\n    }\n"]);return f=function(){return e},e}let h=()=>"https://".concat(u.cy.get(u.Km.get("production"))),p=()=>{let e=(0,u.o8)();return e===u.v1.PROD||e===u.v1.LOCAL},m=["/cms-preview","/components","/profile/reset-password","/404","/internal","/profile/settings"],g=e=>!!(e&&e.startsWith("/site")),v=e=>e===d.Z6.SITE_PUBLIC_PAGE,y=e=>e.split("?")[0],b=(e,t)=>{if(e===d.Z6.GIVE_DONATION)return new URL("/give/now",h()).href;let r=h();return new URL(y(t),r).href};(0,c.Ps)(f());let x=new Set(["358dce35-2207-11f0-b7e3-79b1bb2084bc","5fcb666d-e0b8-11ef-abc2-a31fd9bc4383","045c10c7-2209-11f0-81fa-9fabb6f6fcb4","4b74f5ca-2208-11f0-b89c-37c5069075de","a4decf86-1ae5-11f0-85e5-2d41d13cb274"]),_=e=>{let{pathname:t,asPath:r}=e,i=m.some(e=>t.startsWith(e)),a=(0,n.jsx)(o(),{children:(0,n.jsx)("meta",{name:"robots",content:"noarchive, noindex, nofollow"})}),s=r.match(/^\/site\/([^/?#]+)(?:\?.*)?$/),l=null==s?void 0:s[1];return l&&x.has(l)?(0,n.jsxs)(o(),{children:[(0,n.jsx)("meta",{name:"robots",content:"archive, index, follow"}),(0,n.jsx)("link",{rel:"canonical",href:b(t,r)})]}):!i&&p()?g(t)&&!v(t)?a:(0,n.jsxs)(o(),{children:[(0,n.jsx)("meta",{name:"robots",content:"archive, index, follow"}),(0,n.jsx)("link",{rel:"canonical",href:b(t,r)})]}):a};_.propTypes={pathname:s().string.isRequired,asPath:s().string.isRequired};var E=_},56983:function(e,t,r){"use strict";r.d(t,{B:function(){return s},Bc:function(){return m},G8:function(){return f},Ho:function(){return i},W7:function(){return a},fp:function(){return c},mD:function(){return u},oH:function(){return o},tL:function(){return d},zk:function(){return l}});var n=r(87036);function i(e,t,r){return"number"!=typeof e||1===Math.abs(e)?t||"":r||(t?t+"s":"s")}function o(e){return n.CU.test(e)}function a(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if(!e||"string"!=typeof e)throw Error("A string must be pass in.");let n=(t=Array.isArray(r)?[...r]:[r])[0];return t.reduce((e,t)=>e.replaceAll(t,n),e).replaceAll(RegExp("".concat(n,"+"),"g"),n).replaceAll(RegExp("^".concat(n),"g"),"").replaceAll(RegExp("".concat(n,"$"),"g"),"").split(n)}function s(e){let t=[],r=[];if(!Array.isArray(e))throw Error("An array of emails must be passed in.");return e.forEach(e=>{o(e)?t.push(e.toLowerCase()):r.push(e)}),[t,r]}function l(e){e=null!=e?e:"";let t=document.createElement("textarea");return t.innerHTML=e,t.innerHTML.split("<br>").join("\n")}function u(e){let t=/\.\w{3,4}$/.exec(e);if(t)return t[0].toLowerCase()}function c(e){return 0===String(null!=e?e:"").trim().length}let d=e=>!e||0===e.replace(/<[^>]*>/g,"").trim().length;function f(e){return e.substring(0,1).toUpperCase()+e.substring(1)}let h=/(?:https?:\/\/|www\.)[^\s<>"']+/gi;function p(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function m(e){return e&&"string"==typeof e?e.replace(h,e=>{let t="",r=e.match(/[.,!?)]+$/);r&&(t=r[0],e=e.slice(0,-t.length));let n=p(e.startsWith("http")?e:"https://".concat(e)),i=p(e);return'<a href="'.concat(n,'" target="_blank" rel="noopener noreferrer">').concat(i,"</a>").concat(t)}):e}},73167:function(e,t,r){"use strict";r.d(t,{NU:function(){return i},d6:function(){return n},jR:function(){return o}});let n={GO_FUND_ME:{titleSuffix:"GoFundMe",successMessage:"Your GoFundMe is now created. Share the news with friends and family.",logoSrc:"/logos/goFundMeLogo2.svg",qaTag:"go-fund-me",getShareLink:e=>
298o(null==e?void 0:e.fundUrl,null==e?void 0:e.isIntegrated),isInactive:e=>{var t;return(null==e?void 0:null===(t=e.campaign)||void 0===t?void 0:t.status)==="INACTIVE"}},MEAL_TRAIN:{titleSuffix:"Meal Train",successMessage:"Your Meal Train is now created. Share the news with friends and family.",logoSrc:"/logos/mealTrainLogo.svg",qaTag:"meal-train",getShareLink:e=>null==e?void 0:e.shareLink,isInactive:()=>!1},GIFT_CARD:{titleSuffix:"Gift Cards",successMessage:"You are now accepting Gift Cards. Share the news with friends and family.",logoSrc:"/logos/giftCardLogo.svg",qaTag:"gift-cards",getShareLink:()=>null,isInactive:()=>!1}},i=(e,t,r,i)=>{let o="".concat(t,"'s ").concat(n[e].titleSuffix),a="<p>A ".concat(n[e].titleSuffix," has been created to support ").concat(t,'. To learn more and show your support, visit <a href="').concat(r,'" data-testid="wth-share-link" target="_blank" title="').concat(n[e].titleSuffix,'."><span style="color: \'#495dba\';">').concat(n[e].titleSuffix,'.</span></a></p><a href="').concat(r,'" target="_blank" data-testid="wth-logo-share-link"><Image src=\'').concat(n[e].logoSrc,"' alt='' width='112px'></a>");return"GIFT_CARD"===e?{title:"Send ".concat(t," a Gift Card"),body:"<p>Gift Cards are now another way you can show your support for ".concat(t,". To learn more, visit ").concat(t,'&apos;s <a href="/site/').concat(i,'/ways-to-help" target="_blank" data-testid="wth-share-link" title="Gift Card"><span style="color: \'#495dba\';">"Ways to help"</span></a> page.</p><a href="/site/').concat(i,"/ways-to-help\" target=\"_blank\" data-testid=\"wth-logo-share-link\"><Image src='/logos/giftCardLogo.svg' alt='' width='112px'></a>")}:{title:o,body:a}},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||t)return e;try{let t=new URL(e);return t.searchParams.set("attribution_id","al:b25732a2-72d9-40f7-99f0-542fa2018416"),t.toString()}catch(t){return console.warn("Failed to add attribution to GoFundMe URL:",t),e}}},91479:function(){},53039:function(){},96759:function(){},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},5152:function(e,t,r){e.exports=r(32602)},9008:function(e,t,r){e.exports=r(23867)},25675:function(e,t,r){e.exports=r(76210)},41664:function(e,t,r){e.exports=r(98342)},11163:function(e,t,r){e.exports=r(43079)},4298:function(e,t,r){e.exports=r(23381)},60507:function(e,t,r){"use strict";r.d(t,{dP:function(){return T},re:function(){return A}});var n,i=r(657),o=r(70093);function a(){}var s=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=a),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),l=new o.g7,u=Object.prototype.hasOwnProperty,c=void 0===(n=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:n;function d(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var f=[];function h(e,t){if(!e)throw Error(t||"assertion failure")}function p(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var m=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!y(this))return g(this),this.value[0]},e.prototype.recompute=function(e){var t;return h(!this.recomputing,"already recomputing"),g(this),y(this)&&(S(this),l.
298withValue(this,v,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{d(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,y(this)||(t=this,b(t,_)))),p(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,b(this,x),d(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),S(this),b(this,function(t,r){t.setDirty(),w(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=f.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(c(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),f.push(this.deps),this.deps=null)},e.count=0,e}();function g(e){var t=l.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),y(e)?x(t,e):_(t,e),t}function v(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function y(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function b(e,t){var r=e.parents.size;if(r)for(var n=c(e.parents),i=0;i<r;++i)t(n[i],e)}function x(e,t){h(e.childValues.has(t)),h(y(t));var r=!y(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=f.pop()||new Set;e.dirtyChildren.add(t),r&&b(e,x)}function _(e,t){h(e.childValues.has(t)),h(!y(t));var r,n,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(r=t.value,(n=i.length)>0&&n===r.length&&i[n-1]===r[n-1]||e.setDirty()),E(e,t),y(e)||b(e,_)}function E(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(f.length<100&&f.push(r),e.dirtyChildren=null))}function S(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){w(e,r)}),e.forgetDeps(),h(null===e.dirtyChildren)}function w(e,t){t.parents.delete(e),e.childValues.delete(t),E(e,t)}var k={setDirty:!0,dispose:!0,forget:!0};function T(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=l.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(d(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&u.call(k,r)?r:"setDirty";c(n).forEach(function(e){return e[i]()}),t.delete(e),d(n)}},n}function I(){var e=new i.B("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}I();
298var C=new Set;function A(e,t){void 0===t&&(t=Object.create(null));var r=new s(t.max||65536,function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||I(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new m(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),C.add(r),l.hasValue()||(C.forEach(function(e){return e.clean()}),C.clear()),s};function a(e){var t=r.get(e);t&&t.setDirty()}function u(e){var t=r.get(e);if(t)return t.peek()}function c(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=u,o.peek=function(){return u(i.apply(null,arguments))},o.forgetKey=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
298;return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},69590:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(r&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},75581:function(e,t,r){"use strict";r.d(t,{ZP:function(){return eF}});var n,i,o=r(63366),a=r(87462),s=r(67294),l="data-focus-lock",u="data-focus-lock-disabled",c=r(99495),d={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},f=function(e){var t=e.children;return s.createElement(s.Fragment,null,s.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:d}),t,t&&s.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:d}))};f.propTypes={},f.defaultProps={children:null};var h=r(87122),p=(0,h.s)({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),m=(0,h.s)(),g=(0,h.s)(),v=(0,h._)({async:!0}),y=[],b=s.forwardRef(function(e,t){var r,n=s.useState(),i=n[0],o=n[1],f=s.useRef(),h=s.useRef(!1),g=s.useRef(null),b=e.children,x=e.disabled,_=e.noFocusGuards,E=e.persistentFocus,S=e.crossFrame,w=e.autoFocus,k=(e.allowTextSelection,e.group),T=e.className,I=e.whiteList,C=e.hasPositiveIndices,A=e.shards,O=void 0===A?y:A,N=e.as,P=e.lockProps,R=e.sideCar,D=e.returnFocus,L=e.focusOptions,F=e.onActivation,j=e.onDeactivation,M=s.useState({})[0],B=s.useCallback(function(){g.current=g.current||document&&document.activeElement,f.current&&F&&F(f.current),h.current=!0},[F]),U=s.useCallback(function(){h.current=!1,j&&j(f.current)},[j]);(0,s.useEffect)(function(){x||(g.current=null)},[]);var q=s.useCallback(function(e){var t=g.current;if(t&&t.focus){var r="function"==typeof D?D(t):D;if(r){var n="object"==typeof r?r:void 0;g.current=null,e?Promise.resolve().then(function(){return t.focus(n)}):t.focus(n)}}},[D]),V=s.useCallback(function(e){h.current&&p.useMedium(e)},[]),z=m.useMedium,$=s.useCallback(function(e){f.current!==e&&(f.current=e,o(e))},[]),G=(0,a.Z)(((r={})[u]=x&&"disabled",r[l]=k,r),void 0===P?{}:P),W=!0!==_,H=W&&"tail"!==_,Q=(0,c.q)([t,$]);return s.createElement(s.Fragment,null,W&&[s.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:x?-1:0,style:d}),C?s.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:x?-1:1,style:d}):null],!x&&s.createElement(R,{id:M,sideCar:v,observed:i,disabled:x,persistentFocus:E,crossFrame:S,autoFocus:w,whiteList:I,shards:O,onActivation:B,onDeactivation:U,returnFocus:q,focusOptions:L}),s.createElement(void 0===N?"div":N,(0,a.Z)({ref:Q}
298,G,{className:T,onBlur:z,onFocus:V}),b),H&&s.createElement("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:d}))});b.propTypes={},b.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var x=r(75068);function _(e){return(_="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)}var E=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},S=function(e){return Array.isArray(e)?e:[e]},w=function(e){return Array.isArray(e)?e[0]:e},k=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!!t&&!!t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))},T=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},I=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},C=function(e,t){var r,n=e.get(t);if(void 0!==n)return n;var i=(r=C.bind(void 0,e),!t||I(t)||!k(t)&&r(T(t)));return e.set(t,i),i},A=function(e,t){var r,n=e.get(t);if(void 0!==n)return n;var i=(r=A.bind(void 0,e),!t||!!I(t)||!!R(t)&&r(T(t)));return e.set(t,i),i},O=function(e){return e.dataset},N=function(e){return"INPUT"===e.tagName},P=function(e){return N(e)&&"radio"===e.type},R=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},D=function(e){var t;return!!(e&&(null===(t=O(e))||void 0===t?void 0:t.focusGuard))},L=function(e){return!D(e)},F=function(e){return!!e},j=function(e,t){var r=e.tabIndex-t.tabIndex,n=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return -1}return r||n},M=function(e,t,r){return E(e).map(function(e,t){return{node:e,index:t,tabIndex:r&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}}).filter(function(e){return!t||e.tabIndex>=0}).sort(j)},B="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",U="".concat(B,", [data-focus-guard]"),q=function(e,t){return E((e.shadowRoot||e).children).reduce(function(e,r){return e.concat(r.matches(t?U:B)?[r]:[],q(r))},[])},V=function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?z([e.contentDocument.body],t):[e]},z=function(e,t){return e.reduce(function(e,r){var n,i=q(r,t),o=(n=[]).concat.apply(n,i.map(function(e){return V(e,t)}));return e.concat(o,r.parentNode?E(r.parentNode.querySelectorAll(B)).filter(function(e){return e===r}):[])},[])},$=function(e,t){return E(e).filter(function(e){return C(t,e)}).filter(function(e){return!((N(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},G=function(e,t){return void 0===t&&(t=new Map),E(e).filter(function(e){return A(t,e)})},W=function(e,t,r){return M($(z(e,r),t),!0,r)},H=function(e,t){return M($(z(e),t),!1)},Q=function(e,t){return e.shadowRoot?Q(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||E(e.children).some(function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&Q(n,t)}return Q(e,t)})},Y=function(e){try{return e()}catch(e){return}},X=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?X(t.shadowRoot):t instanceof HTMLIFrameElement&&Y(function(){return t.contentWindow.document})?X(t.contentWindow.document):t}},K=function(e){void 0===e&&(e=document);var t=X(e);return!!t&&E(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return Q(e,t)})},Z=function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var i=n+1;i<r;i+=1){var o=e[n].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(e,r){return!t.has(r)})},J=function(e){return e.parentNode?J(e.parentNode):e}
298,ee=function(e){return S(e).filter(Boolean).reduce(function(e,t){var r=t.getAttribute(l);return e.push.apply(e,r?Z(E(J(t).querySelectorAll("[".concat(l,'="').concat(r,'"]:not([').concat(u,'="disabled"])')))):[t]),e},[])},et=function(e,t){return void 0===t&&(t=X(w(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&ee(e).some(function(e){var r;return Q(e,t)||(r=t,!!E(e.querySelectorAll("iframe")).some(function(e){return e===r}))})},er=function(e,t){return P(e)&&e.name&&t.filter(P).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},en=function(e){var t=new Set;return e.forEach(function(r){return t.add(er(r,e))}),e.filter(function(e){return t.has(e)})},ei=function(e){return e[0]&&e.length>1?er(e[0],e):e[0]},eo=function(e,t){return e.length>1?e.indexOf(er(e[t],e)):t},ea="NEW_FOCUS",es=function(e,t,r,n){var i=e.length,o=e[0],a=e[i-1],s=D(r);if(!(r&&e.indexOf(r)>=0)){var l=void 0!==r?t.indexOf(r):-1,u=n?t.indexOf(n):l,c=n?e.indexOf(n):-1,d=l-u,f=t.indexOf(o),h=t.indexOf(a),p=en(t),m=(void 0!==r?p.indexOf(r):-1)-(n?p.indexOf(n):l),g=eo(e,0),v=eo(e,i-1);if(-1===l||-1===c)return ea;if(!d&&c>=0)return c;if(l<=f&&s&&Math.abs(d)>1)return v;if(l>=h&&s&&Math.abs(d)>1)return g;if(d&&Math.abs(m)>1)return c;if(l<=f)return v;if(l>h)return g;if(d)return Math.abs(d)>1?c:(i+c+d)%i}},el=function(e,t,r){var n=G(e.map(function(e){return e.node}).filter(function(e){var t,n=null===(t=O(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0}));return n&&n.length?ei(n):ei(G(t))},eu=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&eu(e.parentNode.host||e.parentNode,t),t},ec=function(e,t){for(var r=eu(e),n=eu(t),i=0;i<r.length;i+=1){var o=r[i];if(n.indexOf(o)>=0)return o}return!1},ed=function(e,t,r){var n=S(e),i=S(t),o=n[0],a=!1;return i.filter(Boolean).forEach(function(e){a=ec(a||e,e)||a,r.filter(Boolean).forEach(function(e){var t=ec(o,e);t&&(a=!a||Q(t,a)?t:ec(t,a))})}),a},ef=function(e,t){var r=new Map;return t.forEach(function(e){return r.set(e.node,e)}),e.map(function(e){return r.get(e)}).filter(F)},eh=function(e,t){var r=X(S(e).length>0?document:w(e).ownerDocument),n=ee(e).filter(L),i=ed(r||e,e,n),o=new Map,a=H(n,o),s=W(n,o).filter(function(e){return L(e.node)});if(s[0]||(s=a)[0]){var l=H([i],o).map(function(e){return e.node}),u=ef(l,s),c=u.map(function(e){return e.node}),d=es(c,l,r,t);if(d===ea){var f=el(a,c,n.reduce(function(e,t){return e.concat($(E(t.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return z([e])}).reduce(function(e,t){return e.concat(t)},[]),o))},[]));return f?{node:f}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:u[d]}},ep=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},em=0,eg=!1,ev=function(e,t,r){void 0===r&&(r={});var n=eh(e,t);if(!eg&&n){if(em>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),eg=!0,setTimeout(function(){eg=!1},1);return}em++,ep(n.node,r.focusOptions),em--}},ey=function(e){var t=ee(e).filter(L),r=ed(e,e,t),n=new Map,i=W([r],n,!0),o=W(t,n).filter(function(e){return L(e.node)}).map(function(e){return e.node});return i.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:D(t)}})};function eb(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var ex=null,e_=null,eE=null,eS=!1,ew=function(e,t){eE={observerNode:e,portaledElement:t}};function ek(e,t,r,n){var i=null,o=e;do{var a=n[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=r)!==t);i&&(i.node.tabIndex=0)}var eT=function(e){return e&&"current"in e?e.current:e},eI=function(){var e=!1;if(ex){var t=ex,r=t.observed,n=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=r||eE&&eE.portaledElement,u=document&&document.activeElement;if(l){var c=[l].concat(o.map(eT).filter(Boolean));if((!u||(ex.whiteList||function(){return!0})(u))&&(n||(a?!!eS:"meanwhile"===eS)||!(document&&document.activeElement===document.body||K())||!e_&&i)&&(l&&!(et(c)||u&&c.some(function(e){return function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))}(u,e,e)})||eE&&eE.portaledElement===u)&&(document&&!e_&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(e=ev(c,e_,{focusOptions:s}),eE={})),eS=!1,e_=document&&document.activeElement),document){var d=document&&document.activeElement,f=ey(c),h=f.map(function(e){return e.no
298de}).indexOf(d);h>-1&&(f.filter(function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),ek(h,f.length,1,f),ek(h,-1,-1,f))}}}return e},eC=function(e){eI()&&e&&(e.stopPropagation(),e.preventDefault())},eA=function(){return eb(eI)},eO=function(){eS="just",setTimeout(function(){eS="meanwhile"},0)},eN=function(){document.addEventListener("focusin",eC),document.addEventListener("focusout",eA),window.addEventListener("blur",eO)},eP=function(){document.removeEventListener("focusin",eC),document.removeEventListener("focusout",eA),window.removeEventListener("blur",eO)};p.assignSyncMedium(function(e){var t=e.target,r=e.currentTarget;r.contains(t)||ew(r,t)}),m.assignMedium(eA),g.assignMedium(function(e){return e({moveFocusInside:ev,focusInside:et})});var eR=(n=function(e){return e.filter(function(e){return!e.disabled})},i=function(e){var t=e.slice(-1)[0];t&&!ex&&eN();var r=ex,n=r&&t&&t.id===r.id;ex=t,!r||n||(r.onDeactivation(),e.filter(function(e){return e.id===r.id}).length||r.returnFocus(!t)),t?(e_=null,n&&r.observed===t.observed||t.onActivation(),eI(!0),eb(eI)):(eP(),e_=null)},function(e){var t,r,o,a,l=[];function u(){i(a=n(l.map(function(e){return e.props})))}var c=function(t){function r(){return t.apply(this,arguments)||this}(0,x.Z)(r,t),r.peek=function(){return a};var n=r.prototype;return n.componentDidMount=function(){l.push(this),u()},n.componentDidUpdate=function(){u()},n.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),u()},n.render=function(){return s.createElement(e,this.props)},r}(s.PureComponent);return t="displayName",r="SideEffect("+(e.displayName||e.name||"Component")+")",(o=function(e,t){if("object"!=_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==_(o)?o:o+"")in c)?Object.defineProperty(c,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):c[t]=r,c})(function(){return null}),eD=s.forwardRef(function(e,t){return s.createElement(b,(0,a.Z)({sideCar:eR,ref:t},e))}),eL=b.propTypes||{};eL.sideCar,(0,o.Z)(eL,["sideCar"]),eD.propTypes={};var eF=eD},69921:function(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,a=r?Symbol.for("react.strict_mode"):60108,s=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,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=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,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||_(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=_},59864:function(e,t,r){"use strict";e.exports=r(69921)},71860:function(e,t,r){"use strict";r.d(t,{Z:function(){return V}});var n,i,o=r(97582),a=r(67294),s="right-scroll-bar-position",l="width-before-scroll-bar",u=r(99495),c=(0,r(87122)._)(),d=function(){},f=a.forwardRef(function(e,t){var r=a.useRef(null),n=a.useState({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:d}),i=n[0],s=n[1],l=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,y=e.noIsolation,b=e.inert,x=e.allowPinchZoom,_=e.as,E=e.gapMode,S=(0,o._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,u.q)([r,t]),k=(0,o.pi)((0,o.pi)({},S),i);return a.createElement(a.Fragment,null,m&&a.createElement(v,{sideCar:c,removeScrollBar:p,shards:g,noIsolation:y,inert:b,setCallbacks:s,allowPinchZoom:!!x,lockRef:r,gapMode:E}),l?a.cloneElement(a.Children.only(f),(0,o.pi)((0,o.pi)({},k),{ref:w})):a.createElement(void 0===_?"div":_,(0,o.pi)({}
298,k,{className:h,ref:w}),f))});f.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},f.classNames={fullWidth:l,zeroRight:s};var h=function(e){var t=e.sideCar,r=(0,o._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,(0,o.pi)({},r))};h.isSideCarExport=!0;var p=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},m=function(){var e=p();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},g=function(){var e=m();return function(t){return e(t.styles,t.dynamic),null}},v={left:0,top:0,right:0,gap:0},y=function(e){return parseInt(e||"",10)||0},b=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[y(r),y(n),y(i)]},x=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return v;var t=b(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},_=g(),E="data-scroll-locked",S=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(u,"px ").concat(n,";\n  }\n  body[").concat(E,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(s," {\n    right: ").concat(u,"px ").concat(n,";\n  }\n  \n  .").concat(l," {\n    margin-right: ").concat(u,"px ").concat(n,";\n  }\n  \n  .").concat(s," .").concat(s," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(l," .").concat(l," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(E,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},w=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},k=function(){a.useEffect(function(){return document.body.setAttribute(E,(w()+1).toString()),function(){var e=w()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}},[])},T=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;k();var o=a.useMemo(function(){return x(i)},[i]);return a.createElement(_,{styles:S(o,!t,i,r?"":"!important")})},I=!1;if("undefined"!=typeof window)try{var C=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch(e){I=!1}var A=!!I&&{passive:!1},O=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},N=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),P(e,n)){var i=R(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},P=function(e,t){return"v"===e?O(t,"overflowY"):O(t,"overflowX")},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&P(e,l)&&(f+=g,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},j=function(e){return e&&"current"in e?e.current:e},M=0,B=[],U=(n=function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),i=a.useState(M++)[0],s=a.useState(g)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,o.ev)([e.lockRef.current],(e.shards||[]).map(j),!0).filter(
298Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var i,o=L(e),a=r.current,s="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=N(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=N(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=i),!i)return!0;var h=n.current||i;return D(h,t,e,"h"===h?s:u,!0)},[]),c=a.useCallback(function(e){if(B.length&&B[B.length-1]===s){var r="deltaY"in e?F(e):L(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(l.current.shards||[]).map(j).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=a.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=a.useCallback(function(e){r.current=L(e),n.current=void 0},[]),h=a.useCallback(function(t){d(t.type,F(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){d(t.type,L(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return B.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,A),document.addEventListener("touchmove",c,A),document.addEventListener("touchstart",f,A),function(){B=B.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,A),document.removeEventListener("touchmove",c,A),document.removeEventListener("touchstart",f,A)}},[]);var m=e.removeScrollBar,v=e.inert;return a.createElement(a.Fragment,null,v?a.createElement(s,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?a.createElement(T,{gapMode:e.gapMode}):null)},c.useMedium(n),h),q=a.forwardRef(function(e,t){return a.createElement(f,(0,o.pi)({},e,{ref:t,sideCar:U}))});q.classNames=f.classNames;var V=q},99495:function(e,t,r){"use strict";r.d(t,{q:function(){return s}});var n=r(67294);function i(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,a=new WeakMap;function s(e,t){var r,s,l,u=(r=t||null,s=function(t){return e.forEach(function(e){return i(e,t)})},(l=(0,n.useState)(function(){return{value:r,callback:s,facade:{get current(){return l.value},set current(value){var e=l.value;e!==value&&(l.value=value,l.callback(value,e))}}}})[0]).callback=s,l.facade);return o(function(){var t=a.get(u);if(t){var r=new Set(t),n=new Set(e),o=u.current;r.forEach(function(e){n.has(e)||i(e,null)}),n.forEach(function(e){r.has(e)||i(e,o)})}a.set(u,e)},[e]),u}},87122:function(e,t,r){"use strict";r.d(t,{_:function(){return s},s:function(){return a}});var n=r(97582);function i(e){return e}function o(e,t){void 0===t&&(t=i);var r=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}function a(e,t){return void 0===t&&(t=i),o(e,t)}function s(e){void 0===e&&(e={});var t=o(null);return t.options=(0,n.pi)({async:!0,ssr:!1},e),t}},56474:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e,t=document.documentElement,r=null,n="initial",i=n,o=Date.now(),a=!1,s=["button","input","select","textarea"],l=[],u=[16,17,18,91,93],c=[],d={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mou
298se",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},f=!1,h={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},m=!1;try{var g=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,g)}catch(e){}var v=function(e){var t=e.which,r=d[e.type];"pointer"===r&&(r=E(e));var o=!c.length&&-1===u.indexOf(t),a=c.length&&-1!==c.indexOf(t),l="keyboard"===r&&t&&(o||a)||"mouse"===r||"touch"===r;if(S(r)&&(l=!1),l&&n!==r&&(_("input",n=r),y("input")),l&&i!==r){var f=document.activeElement;f&&f.nodeName&&(-1===s.indexOf(f.nodeName.toLowerCase())||"button"===f.nodeName.toLowerCase()&&!C(f,"form"))&&(_("intent",i=r),y("intent"))}},y=function(e){t.setAttribute("data-what"+e,"input"===e?n:i),k(e)},b=function(e){var t=d[e.type];"pointer"===t&&(t=E(e)),I(e),(f||S(t))&&(!f||"wheel"!==e.type)&&"mousewheel"!==e.type&&"DOMMouseScroll"!==e.type||i===t||(_("intent",i=t),y("intent"))},x=function(){r=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},_=function(e,t){if(a)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},E=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},S=function(e){var t=Date.now(),r="mouse"===e&&"touch"===n&&t-o<200;return o=t,r},w=function(){var e=null;return"onwheel"in document.createElement("div")?e="wheel":e=void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",e},k=function(e){for(var t=0,r=l.length;t<r;t++)l[t].type===e&&l[t].fn.call(void 0,"input"===e?n:i)},T=function(e){for(var t=0,r=l.length;t<r;t++)if(l[t].fn===e)return t},I=function(e){h.x!==e.screenX||h.y!==e.screenY?(f=!1,h.x=e.screenX,h.y=e.screenY):f=!0},C=function(e,t){var r=window.Element.prototype;if(r.matches||(r.matches=r.msMatchesSelector||r.webkitMatchesSelector),r.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(d[w()]="mouse",e=!m||{passive:!0,capture:!0},document.addEventListener("DOMContentLoaded",function(){if(a=!("false"===t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(i=window.sessionStorage.getItem("what-intent"))}catch(e){}y("input"),y("intent")},!0),window.PointerEvent?(window.addEventListener("pointerdown",v,!0),window.addEventListener("pointermove",b,!0)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",v,!0),window.addEventListener("MSPointerMove",b,!0)):(window.addEventListener("mousedown",v,!0),window.addEventListener("mousemove",b,!0),"ontouchstart"in window&&(window.addEventListener("touchstart",v,e),window.addEventListener("touchend",v,!0))),window.addEventListener(w(),b,e),window.addEventListener("keydown",v,!0),window.addEventListener("keyup",v,!0),window.addEventListener("focusin",function(e){if(!e.target.nodeName){x();return}r=e.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",r),e.target.classList&&e.target.classList.length&&t.setAttribute("data-whatclasses",e.target.classList.toString().replace(" ",","))},!0),window.addEventListener("focusout",x,!0)),{ask:function(e){return"intent"===e?i:n},element:function(){return r},ignoreKeys:function(e){u=e},specificKeys:function(e){c=e},registerOnChange:function(e,t){l.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=T(e);(t||0===t)&&l.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},e.exports=t()},8819:function(e,t,r){"use strict";r.d(t,{h:function(){return ey}});var n,i,o=r(97582),a=r(13917),s=r(60507),l=r(30020),u=r(23361),c=function(){function e(){this.getFragmentDoc=(0,s.re)(u.Yk)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,o._T)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,o._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e}(),d=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=((a={})[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,o.ZT)(t,e),t}(Error),f=r(51761),h=r(76487),p=r(97359),m=r(30320),g=r(53712),v=r(36765),y=r(182),b=r(19065),x=r(48702),_=r(13154),E=r(657),S=r(21436),w=Object.prototype.hasOwnProperty;function k(e){return null==e}function T(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=k(n)?k(i)?void 0:{_id:i}:{id:n}),k(n)&&!k(i)&&(n=i),!k(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var I={dataIdFromObject:T,addTypename:!0,resultCaching:!0,canonizeResults:!1};function C(e){var t=e.canonizeResults;return void 0===t?I.canonizeResults:t}var A=/^[_a-z][_0-9a-z]*/i;function O(e){var t=e.match(A);return t?t[0]:e}function N(e){return(0,_.s)(e)&&!(0,f.Yk)(e)&&!(0,S.k)(e)}function P(e,t){var r=(0,u.F)((0,v.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var R=Object.create(null),D=function(){return R},L=Object.create(null),F=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,x.J)((0,f.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,f.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,f.kQ)(e);if((0,f.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,f.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),w.call(this.data,e)){var r=this.data[e];if(r&&w.call(r,t))return r[t]}return"__typename"===t&&w.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof B?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),w.call(this.data,e))?this.data[e]:this instanceof B?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,f.Yk)(e)&&(e=e.__ref),(0,f.Yk)(t)&&(t=t.__ref);
298var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){__DEV__?(0,a.kG)("string"==typeof r,"store.merge expects a string ID"):(0,a.kG)("string"==typeof r,1);var s=new y.w0(q).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var l=Object.create(null);i||(l.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){l[e]=1;var t=O(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(l[t]=1),void 0!==s[e]||n instanceof B||delete s[e]}}),l.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,s=!0,l={DELETE:R,INVALIDATE:L,isReference:f.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,f.kQ)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var c=O(u),d=n[u];if(void 0!==d){var f="function"==typeof t?t:t[u]||t[c];if(f){var h=f===D?R:f((0,x.J)(d),(0,o.pi)((0,o.pi)({},l),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));h===L?r.group.dirty(e,u):(h===R&&(h=void 0),h!==d&&(i[u]=h,a=!0,d=h))}void 0!==d&&(s=!1)}}),a)return this.merge(e,i),s&&(this instanceof B?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=D,n):D)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(w.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof B&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){w.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&w.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof B?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){w.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof B;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!w.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,f.Yk)(e)&&(t[e.__ref]=!0),(0,_.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,_.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),j=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new E.B(m.mr)}
298,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=O(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function M(e,t){V(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new j(void 0===n||n))||this;return o.stump=new U(o),o.storageTrie=new E.B(m.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(n=F||(F={})),n.Root=i;var B=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,l.D)(n[r],i[r])||t.group.dirty(e,r)}
298):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return w.call(this.data,t)?(0,o.pi)((0,o.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(F),U=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new j(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(B);function q(e,t,r){var n=e[r],i=t[r];return(0,l.D)(n,i)?n:i}function V(e){return!!(e instanceof F&&e.group.caching)}var z=r(80900);function $(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var G=function(){function e(e){var t=this;this.knownResults=new(m.mr?WeakMap:Map),this.config=(0,g.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:C(e)}),this.canon=e.canon||new z.h,this.executeSelectionSet=(0,s.re)(function(e){var r,n=e.context.canonizeResults,i=$(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,o.pi)((0,o.pi)({},a),{result:t.canon.admit(a.result)}):a:(M(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:$,makeCacheKey:function(e,t,r,n){if(V(r.store))return r.store.makeCacheKey(e,(0,f.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,s.re)(function(e){return M(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(V(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new z.h},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=e.variables,s=e.returnPartialData,l=e.canonizeResults,u=void 0===l?this.config.canonizeResults:l,c=this.config.cache.policies;a=(0,o.pi)((0,o.pi)({},(0,v.O4)((0,v.iW)(n))),a);var h=(0,f.kQ)(void 0===i?"ROOT_QUERY":i),p=this.executeSelectionSet({selectionSet:(0,v.p$)(n).selectionSet,objectOrReference:h,enclosingRef:h,context:(0,o.pi)({store:r,query:n,policies:c,variables:a,varString:(0,z.B)(a),canonizeResults:u},P(n,this.config.fragments))});if(p.missing&&(t=[new d(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(p.missing),p.missing,n,a)],!(void 0===s||s)))throw t[0];return{result:p.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(V(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,f.Yk)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var l=s.variables,c=s.policies,d=s.store.getFieldValue(i,"__typename"),m=[],g=new y.w0;function v(e,r){var n;return e.missing&&(t=g.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&m.push({__typename:d});var _=new Set(n.selections);_.forEach(function(e){var n,y;if((0,b.LZ)(e,l)){if((0,f.My)(e)){var x=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),E=(0,f.u2)(e);void 0===x?h.Gw.added(e)||(t=g.merge(t,((n={})[E]="Can't find field '".concat(e.name.value,"' on ").concat((0,f.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,S.k)(x)?x=v(r.executeSubSelectedArray({field:e,array:x,enclosingRef:o,context:s}),E):e.selectionSet?null!=x&&(x=v(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:x,enclosingRef:(0,f.Yk)(x)?x:o,context:s}
298),E)):s.canonizeResults&&(x=r.canon.pass(x)),void 0!==x&&m.push(((y={})[E]=x,y))}else{var w=(0,u.hi)(e,s.lookupFragment);if(!w&&e.kind===p.h.FRAGMENT_SPREAD)throw __DEV__?new a.ej("No fragment named ".concat(e.name.value)):new a.ej(5);w&&c.fragmentMatches(w,d)&&w.selectionSet.selections.forEach(_.add,_)}}});var E={result:(0,y.bw)(m),missing:t},w=s.canonizeResults?this.canon.admit(E):(0,x.J)(E);return w.result&&this.knownResults.set(w.result,n),w},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,s=e.context,l=new y.w0;function u(e,r){var n;return e.missing&&(t=l.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,S.k)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,f.Yk)(e)?e:o,context:s}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,_.s)(r)&&(__DEV__?(0,a.kG)(!(0,f.Yk)(r),"Missing selection set for object of type ".concat((0,f.Yk)(r)?e.get(r.__ref,"__typename"):r&&r.__typename," returned for query field ").concat(t.name.value)):(0,a.kG)(!(0,f.Yk)(r),6),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),W=r(79487),H=r(60897),Q=r(66438),Y=Object.create(null);function X(e){var t=JSON.stringify(e);return Y[t]||(Y[t]=Object.create(null))}function K(e){var t=X(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=J(e,function(e){var i=et(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&w.call(t,e[0])&&(i=et(t,e,ee)),__DEV__?(0,a.kG)(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,a.kG)(void 0!==i,2),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function Z(e){var t=X(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(J(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,S.O)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),l=s&&(0,f.NC)(s,i);return l&&et(l,e.slice(1))}return}if("$"===o){var u=r.slice(1);if(i&&w.call(i,u)){var c=e.slice(0);return c[0]=u,et(i,c)}return}if(t)return et(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function J(e,t){var r=new y.w0;return(function e(t){var r=X(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,S.k)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,S.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function ee(e,t){return e[t]}function et(e,t,r){return r=r||ee,function e(t){return(0,_.s)(t)?(0,S.k)(t)?t.map(e):J(Object.keys(t).sort(),function(e){return et(t,e)}):t}(t.reduce(function e(t,n){return(0,S.k)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function er(e){return void 0!==e.args?e.args:e.field?(0,f.NC)(e.field,e.variables):null}f.PT.setStringify(z.B);var en=function(){},ei=function(e,t){return t.fieldName},eo=function(e,t,r){return(0,r.mergeObjects)(e,t)},ea=function(e,t){return t},es=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.pi)({dataIdFromObject:T},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,l=(0,o.pi)((0,o.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=eu(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=a&&this.getTypePolicy(a),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var d=c(e,l);if((0,S.k)(d))c=K(d);else{n=d;break}}return n=n?String(n):void 0,l.keyObject?[n,l.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,l=(0,o._T)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),w.call(t.toBeAdded,r)?t.toBeAdded[r].push(l):t.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?eo:!1===t?ea:e.merge}a(n,t.merge),n.keyFn=!1===i?en:(0,S.k)(i)?K(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
298h(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;n.keyFn=!1===s?ei:(0,S.k)(s)?Z(s):"function"==typeof s?s:n.keyFn,"function"==typeof l&&(n.read=l),a(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||ei)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?(0,a.kG)(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):(0,a.kG)(!n||n===e,3),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(A);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!w.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,o._T)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),l=[s],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},c=!!(r&&this.fuzzySubtypes.size),d=!1,h=0;h<l.length;++h){var p=l[h];if(p.has(o))return s.has(o)||(d&&__DEV__&&a.kG.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),s.add(o)),!0;p.forEach(u),c&&h===l.length-1&&function e(t,r,n){return!!(0,_.s)(r)&&((0,S.k)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,f.My)(t)&&(0,b.LZ)(t,n)){var i=(0,f.u2)(t);return w.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(c=!1,d=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=er(e);o;){var l=o(s,a);if((0,S.k)(l))o=Z(l);else{t=l||n;break}}return(void 0===t&&(t=e.field?(0,f.vf)(e.field,e.variables):(0,f.PT)(n,er(e))),!1===t)?n:n===O(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=O(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),l=s&&s.read;if(l){var u=el(this,r,e,t,t.store.getStorage((0,f.Yk)(r)?r.__ref:r,i));return Q.ab.withValue(this.cache,l,[a,u])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===eo?ec(n.store)(e,t):s===ea?t:(n.overwrite&&(e=void 0),s(e,t,el(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function el(e,t,r,n,i){var o=e.getStoreFieldName(r),a=O(o),s=r.variables||n.variables,l=n.store,u=l.toReference,c=l.canRead;return{args:er(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:f.Yk,toReference:u,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(eu(arguments,t,s),n)},mergeObjects:ec(n.store)}}function eu(e,t,r){var n,i,s,l=e[0],u=e[1],c=e.length;return"string"==typeof l?s={fieldName:l,from:c>1?u:t}:(s=(0,o.pi)({},l),w.call(s,"from")||(s.from=t)),__DEV__&&void 0===s.from&&__DEV__&&a.kG.warn("Undefined 'from' passed to readField with arguments ".concat((n=Array.from(e),i=(0,H.X)("stringifyForDisplay"),JSON.stringify(n,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("<undefined>")))),void 0===s.variables&&(s.variables=r),s}function ec(e){return function(t,r){if((0,S.k)(t)||(0,S.k)(r))throw __DEV__?new a.ej("Cannot automatically merge arrays"):new a.ej(4);if((0,_.s)(t)&&(0,_.s)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,f.Yk)(t)&&N(r))return e.merge(t.__ref,r),t;if(N(t)&&(0,f.Yk)(r))return e.merge(t,r.__ref),r;if(N(t)&&N(r))return(0,o.pi)((0,o.pi)({},t),r)}return r}}function ed(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,o.pi)((0,o.pi)({},e),{clientOnly:t,deferred:r})),i}var ef=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,s=t.dataId,u=t.variables,c=t.overwrite,d=(0,v.$H)(n),h=new y.w0;u=(0,o.pi)((0,o.pi)({},(0,v.O4)(d)),u);var p=(0,o.pi)((0,o.pi)({store:e,written:Object.create(null),merge:function(e,t){return h.merge(e,t)}
298,variables:u,varString:(0,z.B)(u)},P(n,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),m=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:p});if(!(0,f.Yk)(m))throw __DEV__?new a.ej("Could not identify object ".concat(JSON.stringify(i))):new a.ej(7);return p.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,u=(0,f.kQ)(n);if(o&&o.map.size){var c=r.applyMerges(o,u,i,p);if((0,f.Yk)(c))return;i=c}if(__DEV__&&!p.overwrite){var d=Object.create(null);s.forEach(function(e){e.selectionSet&&(d[e.name.value]=!0)});var h=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==d[O(e)]||h(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var s=i(t);if(!(!s||(0,f.Yk)(o)||(0,l.D)(o,s)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(s,e)}))){var u=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=O(r),d="".concat(u,".").concat(c);if(!ev.has(d)){ev.add(d);var h=[];
298(0,S.k)(o)||(0,S.k)(s)||[o,s].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),__DEV__&&a.kG.warn("Cache data may be lost when replacing the ".concat(c," field of a ").concat(u," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(d," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(u,i,e,p.store)})}e.merge(n,i)}),e.retain(m.__ref),m},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,s=e.context,l=e.mergeTree,u=this.cache.policies,c=Object.create(null),d=r&&u.rootTypenamesById[r]||(0,f.qw)(n,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof d&&(c.__typename=d);var p=function(){var e=eu(arguments,c,s.variables);if((0,f.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=u.readField((0,o.pi)((0,o.pi)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return u.readField(e,s)},m=new Set;this.flattenFields(i,n,s,d).forEach(function(e,r){var i,o=n[(0,f.u2)(r)];if(m.add(r),void 0!==o){var s=u.getStoreFieldName({typename:d,fieldName:r.name.value,field:r,variables:e.variables}),g=ep(l,s),v=t.processFieldValue(o,r,r.selectionSet?ed(e,!1,!1):e,g),y=void 0;r.selectionSet&&((0,f.Yk)(v)||N(v))&&(y=p("__typename",v));var b=u.getMergeFunction(d,r.name.value,y);b?g.info={field:r,typename:d,merge:b}:eg(l,s),c=e.merge(c,((i={})[s]=v,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!h.Gw.added(r)&&!u.getReadFunction(d,r.name.value)&&__DEV__&&a.kG.error("Missing field '".concat((0,f.u2)(r),"' while writing result ").concat(JSON.stringify(n,null,2)).substring(0,1e3))});try{var g=u.identify(n,{typename:d,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:c,readField:p}),v=g[0],y=g[1];r=r||v,y&&(c=s.merge(c,y))}catch(e){if(!r)throw e}if("string"==typeof r){var b=(0,f.kQ)(r),x=s.written[r]||(s.written[r]=[]);if(x.indexOf(i)>=0||(x.push(i),this.reader&&this.reader.isFresh(n,b,i,s)))return b;var _=s.incomingById.get(r);return _?(_.storeObject=s.merge(_.storeObject,c),_.mergeTree=function e(t,r){if(t===r||!r||em(r))return t;if(!t||em(t))return r;var n=t.info&&r.info?(0,o.pi)((0,o.pi)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(_.mergeTree,l),m.forEach(function(e){return _.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:c,mergeTree:em(l)?void 0:l,fieldNodeSet:m}),b}return c},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,S.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,ep(n,o));return eg(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?(0,W.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,f.qw)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,s=new E.B(!1);return function e(l,c){var d=s.lookup(l,c.clientOnly,c.deferred);d.visited||(d.visited=!0,l.selections.forEach(function(s){if((0,b.LZ)(s,r.variables)){var l=c.clientOnly,d=c.deferred;if(!(l&&d)&&(0,S.O)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(l=!0),"defer"===t){var n=(0,f.NC)(e,r.variables);n&&!1===n.if||(d=!0)}}),(0,f.My)(s)){var h=i.get(s);h&&(l=l&&h.clientOnly,d=d&&h.deferred),i.set(s,ed(r,l,d))}else{var m=(0,u.hi)(s,r.lookupFragment);if(!m&&s.kind===p.h.FRAGMENT_SPREAD)throw __DEV__?new a.ej("No fragment named ".concat(s.name.value)):new a.ej(8);m&&o.fragmentMatches(m,n,t,r.variables)&&e(m.selectionSet,ed(r,l,d))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var s=this;if(e.map.size&&!(0,f.Yk)(r)){var l,u,c=!(0,S.k)(r)&&((0,f.Yk)(t)||N(t))?t:void 0,d=r;c&&!i&&(i=[(0,f.Yk)(c)?c.__ref:c]);var h=function(e,t){return(0,S.k)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};
298e.map.forEach(function(e,t){var r=h(c,t),o=h(d,t);if(void 0!==o){i&&i.push(t);var l=s.applyMerges(e,r,o,n,i);l!==o&&(u=u||new Map).set(t,l),i&&(0,a.kG)(i.pop()===t)}}),u&&(r=(0,S.k)(d)?d.slice(0):(0,o.pi)({},d),u.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(l=n.store).getStorage.apply(l,i)):r},e}(),eh=[];function ep(e,t){var r=e.map;return r.has(t)||r.set(t,eh.pop()||{map:new Map}),r.get(t)}function em(e){return!e||!(e.info||e.map.size)}function eg(e,t){var r=e.map,n=r.get(t);n&&em(n)&&(eh.push(n),r.delete(t))}var ev=new Set,ey=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=Q.QS,n.txCount=0,n.config=(r=t,(0,g.o)(I,r)),n.addTypename=!!n.config.addTypename,n.policies=new es({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,o.ZT)(t,e),t.prototype.init=function(){var e=this.data=new F.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new ef(this,this.storeReader=new G({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:C(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,s.re)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(V(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,z.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof d)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(w.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,Q._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,Q.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){z.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,f.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&a.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(w.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),z.B.reset(),e&&e.discardWatches?(this.watches.forEac
298h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,Q.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,l=e.onWatchUpdated,u=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},c=new Set;return l&&!this.txCount&&this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&c.size?(this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e,t){var r=l.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,h.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,l.D)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(c)},80900:function(e,t,r){"use strict";r.d(t,{B:function(){return d},h:function(){return c}});var n,i,o=r(97582);r(13917);var a=r(657),s=r(13154),l=r(30320),u=r(21436),c=function(){function e(){this.known=new(l.sy?WeakSet:Set),this.pool=new a.B(l.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,s.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,s.s)(e)){var t=(0,s.s)(e)?(0,u.k)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,s.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return!i.array&&(this.known.add(i.array=n),__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],l=this.sortedKeys(e);a.push(l.json);var u=a.length;l.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),l.sorted.forEach(function(e,t){c[e]=a[u+t]}),__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),d=Object.assign(function(e){if((0,s.s)(e)){void 0===n&&f();var t=n.admit(e),r=i.get(t);return void 0===r&&i.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)},{reset:f});function f(){n=new c,i=new(l.mr?WeakMap:Map)}},66438:function(e,t,r){"use strict";r.d(t,{QS:function(){return u},_v:function(){return l},ab:function(){return i},li:function(){return s}});var n=r(60507),i=new(r(70093)).g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function l(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function u(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var l=Array.from(r);r.clear(),l.forEach(function(t){return t(e)})}}else{var u=i.getValue();u&&(o(u),a(u).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},57976:function(e,t,r){"use strict";r.d(t,{f:function(){return J}});var n=r(97582),i=r(13917),o=r(86909),a=o.i.execute,s=r(59508),l=r(30020),u=r(37280),c=r(80900),d=r(30320),f=r(48216);function h(e,t,r){return new f.y(function(n){var i=n.next,o=n.error,a=n.complete,s=0,l=!1,u={then:function(e){return new Promise(function(t){return t(e())})}};function c(e,t){return e?function(t){++s;var r=function(){return e(t)};u=u.then(r,r).then(function(e){--s,i&&i.call(n,e),l&&d.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var d={next:c(t,i),error:c(r,o),complete:function(){l=!0,!s&&a&&a.call(n)}},f=e.subscribe(d);return function(){return f.unsubscribe()}})}var p=r(21436);function m(e){var t=g(e);return(0,p.O)(t)}function g(e){var t=(0,p.O)(e.errors)?e.errors.slice(0):[];return(0,u.GG)(e)&&(0,p.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var v=r(36765),y=r(76487),b=r(19065),x=r(51761),_=r(13154),E=r(60897);function S(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}
298),n.forEach(function(e){return e[t](r)})}function w(e){function t(t){Object.defineProperty(e,t,{value:f.y})}return d.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function k(e){return e&&"function"==typeof e.then}var T=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),S(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),S(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?k(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),S(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new f.y(t)]),k(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(f.y);w(T);var I=r(30990),C=r(1644),A=r(79487),O=r(53712),N=Object.assign,P=Object.hasOwnProperty,R=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=L)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,l=(void 0===s?{}:s).fetchPolicy,u=void 0===l?"cache-first":l,c=o.fetchPolicy,d=void 0===c?u:c,f=o.initialFetchPolicy,h=void 0===f?"standby"===d?u:d:f;a.options=(0,n.pi)((0,n.pi)({},o),{initialFetchPolicy:h,fetchPolicy:d}),a.queryId=i.queryId||r.generateQueryId();var p=(0,v.$H)(a.query);return a.queryName=p&&p.name&&p.name.value,a}return(0,n.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||C.I.ready,i=(0,n.pi)((0,n.pi)({},t),{loading:(0,C.O)(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,l.D)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===C.I.loading&&("cache-first"===a||"cac
298he-only"===a)&&(i.networkStatus=C.I.ready,i.loading=!1)):i.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||F(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!(0,l.D)(this.last.result,e)||t&&!(0,l.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,l.D)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},o=this.options.fetchPolicy;if("cache-and-network"===o?r.fetchPolicy=o:"no-cache"===o?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",__DEV__&&e&&P.call(e,"variables")){var a=(0,v.iW)(this.query),s=a.variableDefinitions;(!s||!s.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&i.kG.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=a.name)||void 0===t?void 0:t.value)||JSON.stringify(a),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,l.D)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.pi)((0,n.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,C.I.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.pi)((0,n.pi)({},e.query?e:(0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},this.options),{query:this.query}),e),{variables:(0,n.pi)((0,n.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=C.I.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(i,r,C.I.fetchMore).then(function(n){return t.queryManager.removeQuery(i),o.networkStatus===C.I.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})}):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){s.add(e.query)}}),n}).finally(function(){s.has(t.query)||D(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&i.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,l.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},C.I.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){__DEV__?(0,i.kG)(r,"Attempted to start a polling query without a polling interval."):(0,i.kG)(r,13),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&((0,C.O)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},C.I.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,n.pi)((0,n.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,A.X)(e),variables:t}),(0,p.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===C.I.refetch||t===C.I.fetchMore||t===C.I.poll,o=this.options.variables,a=this.options.fetchPolicy,s=(0,O.o)(this.options,e||{}),u=i?s:N(this.options,s);!i&&(this.updatePolling(),e&&e.variables&&!(0,l.D)(e.variables,o)&&"standby"!==u.fetchPolicy&&u.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=C.I.setVariables)));var c=u.variables&&(0,n.pi)({},u.variables),d=this.fetch(u,t),f=d.concast,h=d.fromLink,p={next:function(e){r.reportResult(e,c)},error:function(e){r.reportError(e,c)}};return!i&&h&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=p),f.addObserver(p),f},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e,t))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),S(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=(0,n.pi)((0,n.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:C.I.error,loading:!1});this.updateLastResult(r,t),S(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(f.y);function D(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=n,"function"==typeof n)?n.apply(this,arguments):r}}):e.reobserve()}function L(e){__DEV__&&i.kG.error("Unhandled error",e.message,e.stack)}function F(e){__DEV__&&e&&__DEV__&&i.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}w(R);var j=r(77304),M=r(97359);function B(e){return e.kind===M.h.FIELD||e.kind===M.h.FRAGMENT_SPREAD||e.kind===M.h.INLINE_FRAGMENT}var U=r(182),q=r(23361),V=r(66438),z=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,U.Ee)(t.resolvers,e)}):this.resolvers=(0,U.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,n.pi)((0,n.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,b.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,y.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.pi)((0,n.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.pi)((0,n.pi)({},t),e.exportedVariables)})]:[2,(0,n.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,j.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return j.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,y.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.mG)(this,void 0,void 0,function(){var s,l,u,c,d,f,h,p,m,g;return(0,n.Jh)(this,function(y){return s=(0,v.p$)(e),l=(0,v.kU)(e),u=(0,q.F)(l),c=this.collectSelectionsToResolve(s,u),f=(d=s.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",h=this,p=h.cache,m=h.client,g={fragmentMap:u,context:(0,n.pi)((0,n.pi)({},r),{cache:p,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.mG)(this,void 0,void 0,function(){var a,s,l,u,c,d=this;return(0,n.Jh)(this,function(f){return a=o.fragmentMap,s=o.context,l=o.variables,u=[r],c=function(e){return(0,n.mG)(d,void 0,void 0,function(){var c,d;return(0,n.Jh)(this,function(n){return(t||o.selectionsToResolve.has(e))&&(0,b.LZ)(e,l)?(0,x.My)(e)?[2,this.resolveField(e,t,r,o).then(function(t){var r;void 0!==t&&u.push(((r={}
298)[(0,x.u2)(e)]=t,r))})]:((0,x.Ao)(e)?c=e:(c=a[e.name.value],__DEV__?(0,i.kG)(c,"No fragment named ".concat(e.name.value)):(0,i.kG)(c,11)),c&&c.typeCondition&&(d=c.typeCondition.name.value,o.fragmentMatcher(r,d,s)))?[2,this.resolveSelectionSet(c.selectionSet,t,r,o).then(function(e){u.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return(0,U.bw)(u)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.mG)(this,void 0,void 0,function(){var o,a,s,l,u,c,d,f,h,p=this;return(0,n.Jh)(this,function(n){return r?(o=i.variables,l=(a=e.name.value)!==(s=(0,x.u2)(e)),c=Promise.resolve(u=r[s]||r[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=r.__typename||i.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(h=f[l?a:s])&&(c=Promise.resolve(V.ab.withValue(this.cache,h,[r,(0,x.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,c.then(function(r){if(void 0===r&&(r=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,o,a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?p.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var a=new Set;n.set(o,a),(0,j.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&B(e)&&a.add(e)})},FragmentSpread:function(n,o,s,l,u){var c=t[n.name.value];__DEV__?(0,i.kG)(c,"No fragment named ".concat(n.name.value)):(0,i.kG)(c,12);var d=e(c);d.size>0&&(u.forEach(function(e){r(e)&&B(e)&&a.add(e)}),a.add(n),d.forEach(function(e){a.add(e)}))}})}return n.get(o)}(e)},e}(),$=new(d.mr?WeakMap:Map);function G(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return $.set(e,($.get(e)+1)%1e15),r.apply(this,arguments)})}function W(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var H=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;$.has(r)||($.set(r,0),G(r,"evict"),G(r,"modify"),G(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||C.I.loading;return this.variables&&this.networkStatus!==C.I.loading&&!(0,l.D)(this.variables,e.variables)&&(t=C.I.setVariables),(0,l.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){W(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,l.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,l.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():D(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
298W(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,C.O)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.pi)((0,n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,l.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===$.get(this.cache)&&(0,l.D)(t,r.variables)&&(0,l.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new U.w0,a=(0,p.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,p.O)(e.incremental)){var s=(0,u.mT)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=o.merge(l.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(Q(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:$.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=C.I.ready},e.prototype.markError=function(e){return this.networkStatus=C.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Q(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!m(e);return!n&&r&&e.data&&(n=!0),n}var Y=Object.prototype.hasOwnProperty,X=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,l=e.localState,u=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=l||new z({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!u,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new i.ej("QueryManager stopped while query was in flight"):new i.ej(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,s=e.optimisticResponse,l=e.updateQueries,u=e.refetchQueries,c=void 0===u?[]:u,d=e.awaitRefetchQueries,f=void 0!==d&&d,p=e.update,v=e.onQueryUpdated,y=e.fetchPolicy,b=void 0===y?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":y,x=e.errorPolicy,_=void 0===x?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":x,E=e.keepRootFields,S=e.context;return(0,n.mG)(this,void 0,void 0,function(){var e,t,r,u,d,y;return(0,n.Jh)(this,function(x){switch(x.label){case 0:if(__DEV__?(0,i.kG)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.kG)(o,15),__DEV__?(0,i.kG)("network-only"===b||"no-cache"===b,"Mutations supp
298ort only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,i.kG)("network-only"===b||"no-cache"===b,16),e=this.generateMutationId(),r=(t=this.transform(o)).document,u=t.hasClientExports,o=this.cache.transformForLink(r),a=this.getVariables(o,a),!u)return[3,2];return[4,this.localState.addExportedVariables(o,a,S)];case 1:a=x.sent(),x.label=2;case 2:return d=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:b,errorPolicy:_,context:S,updateQueries:l,update:p,keepRootFields:E}),this.broadcastQueries(),y=this,[2,new Promise(function(t,r){return h(y.getObservableFromLink(o,(0,n.pi)((0,n.pi)({},S),{optimisticResponse:s}),a,!1),function(t){if(m(t)&&"none"===_)throw new I.cA({graphQLErrors:g(t)});d&&(d.loading=!1,d.error=null);var r=(0,n.pi)({},t);return"function"==typeof c&&(c=c(r)),"ignore"===_&&m(r)&&delete r.errors,y.markMutationResult({mutationId:e,result:r,document:o,variables:a,fetchPolicy:b,errorPolicy:_,context:S,update:p,updateQueries:l,awaitRefetchQueries:f,refetchQueries:c,removeOptimistic:s?e:void 0,onQueryUpdated:v,keepRootFields:E})}).subscribe({next:function(e){y.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){d&&(d.loading=!1,d.error=t),s&&y.cache.removeOptimistic(e),y.broadcastQueries(),r(t instanceof I.cA?t:new I.cA({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&Q(i,e.errorPolicy)){if((0,u.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,u.GG)(i)&&(0,p.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;s.result&&(l=(0,u.mT)(s.result,i)),void 0!==l&&(i.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&Y.call(c,s)){var l=c[s],u=r.queries.get(n),d=u.document,f=u.variables,h=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),p=h.result;if(h.complete&&p){var m=l(p,{mutationResult:i,queryName:d&&(0,v.rY)(d)||void 0,queryVariables:f});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:f})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,l=!(0,u.M0)(i)||(0,u.GG)(i)&&!i.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}l&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return d.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.pi)((0,n.pi)({},t),{result:{data:o}}),e)}catch(e){__DEV__&&i.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),i=(0,y.Fo)(r),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:(0,b.mj)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:(0,v.O4)((0,v.$H)(r)),asQuery:(0,n.pi)((0,n.pi)({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.pi)((0,n.pi)({},e),{operation:"query"}):e})})},l=function(e){e&&!t.has(e)&&t.set(e,s)};l(e),l(r),l(o),l(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.pi)((0,n.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,n.pi)((0,n.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new H(this),r=new R({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,i.kG)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,i.kG)(e.query,17),__DEV__?(0,i.kG)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,i.kG)("Document"===e.query.kind,18),__DEV__?(0,i.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.kG)(!e.returnPartialData,19),__DEV__?(0,i.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.kG)(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.ej("Store reset while query was in flight (not completed in link chain)"):new i.ej(21)),this.queries.forEac
298h(function(e){e.observableQuery?e.networkStatus=C.I.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,x.JW)(e)?o.set(t.transform(e).document,!1):(0,_.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e){r.set(n,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,E.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new R({queryManager:t,queryInfo:a,options:(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)}),__DEV__&&o.size&&o.forEach(function(e,t){!e&&__DEV__&&i.kG.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var l=function(e){return t.getObservableFromLink(r,s,e).map(function(o){"no-cache"!==n&&(Q(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=m(o),s=(0,I.ls)(o);if(a||s){var l={};throw a&&(l.graphQLErrors=o.errors),s&&(l.protocolErrors=o.extensions[I.YG]),new I.cA(l)}return o})};if(this.transform(r).hasClientExports){var u=this.localState.addExportedVariables(r,o,s).then(l);return new f.y(function(e){var t=null;return u.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,s,l=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var d=this.inFlightLinkObservables,p=this.link,m={query:u,variables:r,operationName:(0,v.rY)(u)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},t),{forceFetch:!i}))};if(t=m.context,i){var g=d.get(u)||new Map;d.set(u,g);var y=(0,c.B)(r);if(!(s=g.get(y))){var b=new T([a(p,m)]);g.set(y,s=b),b.beforeNext(function(){g.delete(y)&&g.size<1&&d.delete(u)})}}else s=new T([a(p,m)])}else s=new T([f.y.of({data:{}})]),t=this.prepareContext(t);var x=this.transform(e).clientQuery;return x&&(s=h(s,function(e){return l.localState.runResolvers({document:x,remoteResult:e,context:t,variables:r})})),s},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return h(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=g(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new I.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:C.I.ready};return s&&"ignore"!==r.errorPolicy&&(l.errors=a,l.networkStatus=C.I.error),l},function(t){var r=(0,I.MS)(t)?t:new I.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast},e.prototype.fetchConcastWithInfo=function(e,t,r){var n,i,o=this;void 0===r&&(r=C.I.loading);var a=this.transform(t.query).document,s=this.getVariables(a,t.variables),l=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,d=void 0===c?u&&u.fetchPolicy||"cache-first":c,f=t.errorPolicy,h=void 0===f?u&&u.errorPolicy||"none":f,p=t.returnPartialData,m=t.notifyOnNetworkStatusChange,g=t.context,v=Object.assign({},t,{query:a,variables:s,fetchPolicy:d,errorPolicy:h,returnPartialData:void 0!==p&&p,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===g?{}:g}),y=function(e){v.variables=e;var n=o.fetchQueryByPolicy(l,v,r);return"standby"!==v.fetchPolicy&&n.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",t),n},b=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return n.cancel(e)})}),this.transform(v.query).hasClientExports)n=new T(this.localState.addExportedVariables(v.query,v.variables,v.context).then(y).then(function(e){return e.sources})),i=!0;else{var x=y(v.variables);i=x.fromLink,n=new T(x.sources)}return n.promise.then(b,b),{concast:n,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,E.X)("refetchQueries"):void 0:a,l=e.onQueryUpdated,u=new Map;
298n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var c=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof H&&e.watcher.observableQuery;if(n){if(l){u.delete(n.queryId);var i=l(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&c.set(n,i),i}null!==l&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(l){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=l(i,a,o)}l&&!0!==n||(n=i.refetch()),!1!==n&&c.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,d=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,m=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:r});var g=function(){return e.getDiff(a)},v=function(t,r){void 0===r&&(r=e.networkStatus||C.I.loading);var s=t.result;!__DEV__||d||(0,l.D)(s,{})||F(t.missing);var u=function(e){return f.y.of((0,n.pi)({data:e,loading:(0,C.O)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:h,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&r===C.I.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},y="no-cache"===s?0:r===C.I.refetch&&"merge"!==u?1:2,b=function(){return i.getResultsFromLink(e,y,{variables:a,context:h,fetchPolicy:s,errorPolicy:c})},x=p&&"number"==typeof m&&m!==r&&(0,C.O)(r);switch(s){default:case"cache-first":var _=g();if(_.complete)return{fromLink:!1,sources:[v(_,e.markReady())]};if(d||x)return{fromLink:!0,sources:[v(_),b()]};return{fromLink:!0,sources:[b()]};case"cache-and-network":var _=g();if(_.complete||d||x)return{fromLink:!0,sources:[v(_),b()]};return{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[v(g(),e.markReady())]};case"network-only":if(x)return{fromLink:!0,sources:[v(g()),b()]};return{fromLink:!0,sources:[b()]};case"no-cache":if(x)return{fromLink:!0,sources:[v(e.getDiff()),b()]};return{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new H(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.pi)((0,n.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),K=r(14012),Z=!1,J=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,a=e.headers,l=e.cache,u=e.ssrMode,c=void 0!==u&&u,d=e.ssrForceFetchDelay,f=void 0===d?0:d,h=e.connectToDevTools,p=void 0===h?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:h,m=e.queryDeduplication,g=void 0===m||m,v=e.defaultOptions,y=e.assumeImmutableResults,b=e.resolvers,x=e.typeDefs,_=e.fragmentMatcher,E=e.name,S=e.version,w=e.link;if(w||(w=r?new s.u({uri:r,credentials:n,headers:a}):o.i.empty()),!l)throw __DEV__?new i.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.ej(9);if(this.link=w,this.cache=l,this.disableNetworkFetches=c||f>0,this.queryDeduplication=g,this.defaultOptions=v||Object.create(null),this.typeDefs=x,f&&setTimeout(function(){return t.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Z&&p&&__DEV__&&(Z=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var k=window.navigator,T=k&&k.userAgent,I=void 0;"string"==typeof T&&(T.indexOf("Chrome/")>-1?I="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":T.indexOf("Firefox/")>-1&&(I="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),I&&__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: "+I)}this.version="3.7.14",this.localState=new z({cache:l,client:this,resolvers:b,fragmentMatcher:_}),this.queryManager=new X({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:g,ssrMode:c,clientAwareness:{name:E,version:S},localState:this.localState,assumeImmutableResults:void 0!==y&&y,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,K.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,K.J)(this.defaultOptions.query,e)),__DEV__?(0,i.kG)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,i.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,K.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){__DEV__&&i.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},1644:function(e,t,r){"use strict";var n,i;function o(e){return!!e&&e<7}r.d(t,{I:function(){return n},O:function(){return o}}),(i=n||(n={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},30990:function(e,t,r){"use strict";r.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return u},ls:function(){return a}});var n=r(97582);r(13917);var i=r(13154),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var l=function(e){var t=(0,n.ev)((0,n.ev)((0,n.ev)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.s)(e)&&e.message||"Error message not found."}).join("\n")},u=function(e){function t(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,a=r.networkError,s=r.errorMessage,u=r.extraInfo,c=e.call(this,s)||this;return c.name="ApolloError",c.graphQLErrors=n||[],c.protocolErrors=i||[],c.clientErrors=o||[],c.networkError=a||null,c.message=s||l(c),c.extraInfo=u,c.__proto__=t.prototype,c}return(0,n.ZT)(t,e),t}(Error)},37865:function(e,t,r){"use strict";r.d(t,{v:function(){return a}});var n=r(97582),i=r(86909),o=r(48216);function a(e){return new i.i(function(t,r){var i=(0,n._T)(t,[]);return new o.y(function(n){var o,a=!1;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){a=!0,o&&o.unsubscribe()}})})}},86909:function(e,t,r){"use strict";r.d(t,{i:function(){return d}});var n=r(97582),i=r(13917),o=r(48216),a=r(36765);function s(e,t){return t?t(e):o.y.of()}function l(e){return"function"==typeof e?new d(e):e}function u(e){return e.request.length<=1}var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return(0,n.ZT)(t,e),t}(Error),d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return o.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=l(r),a=l(n||new e(s));return new e(u(i)&&u(a)?function(e){return t(e)?i.request(e)||o.y.of():a.request(e)||o.y.of()}:function(e,r){return t(e)?i.request(e,r)||o.y.of():a.request(e,r)||o.y.of()})},e.execute=function(e,t){var r,s,l,u;return e.request((l=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(0>t.indexOf(o))throw __DEV__?new i.ej("illegal argument: ".concat(o)):new i.ej(27)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),u=(0,n.pi)({},l),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){u="function"==typeof e?(0,n.pi)((0,n.pi)({},u),e(u)):(0,n.pi)((0,n.pi)({},u),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,n.pi)({},u)}}),s))||o.y.of()},e.concat=function(t,r){var n=l(t);if(u(n))return __DEV__&&i.kG.warn(new c("You are calling concat on a terminating link, which will have no effect",n)),n;var a=l(r);return new e(u(a)?function(e){return n.request(e,function(e){return a.request(e)||o.y.of()})||o.y.of()}:function(e,t){return n.request(e,function(e){return a.request(e,t)||o.y.of()})||o.y.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new i.ej("request is not implemented"):new i.ej(22)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},59508:function(e,t,r){"use strict";r.d(t,{u:function(){return j}});var n=r(97582),i=r(86909),o=r(13917),a=r(77304),s=r(19065),l=r(48216),u=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=__DEV__?new o.ej("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new o.ej(24);throw n.parseError=e,n}return r},c=r(30320);function d(e){var t={next:function(){return e.read()}};return c.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var f=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},h=r(30990),p=r(37280),m=Object.prototype.hasOwnProperty;function g(e,t){e.status>=300&&f(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function v(e,t){var r,n;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(r=t.next)||void 0===r||r.call(t,e.result)),null===(n=t.error)||void 0===n||n.call(t,e))}var y=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new o.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new o.ej(23)},b=r(87392);let x=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function _(e){return E[e.charCodeAt(0)]}let E=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function S(e){return(0,a.Vn)(e,w)}let w={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>k(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=A(e.variableDefinitions)?I("(\n",k(e.variableDefinitions,"\n"),"\n)"):I("(",k(e.variableDefinitions,", "),")"),r=I("",e.de
298scription,"\n")+k([e.operation,k([e.name,t]),k(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>I("",i,"\n")+e+": "+t+I(" = ",r)+I(" ",k(n," "))},SelectionSet:{leave:({selections:e})=>T(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=I("",e,": ")+t,a=o+I("(",k(r,", "),")");return a.length>80&&(a=o+I("(\n",C(k(r,"\n")),"\n)")),k([a,k(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+I(" ",k(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>k(["...",I("on ",e),k(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>I("",o,"\n")+`fragment ${e}${I("(",k(r,", "),")")} `+`on ${t} ${I("",k(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,b.LZ)(e):`"${e.replace(x,_)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+k(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+k(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+I("(",k(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>I("",e,"\n")+k(["schema",k(t," "),T(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>I("",e,"\n")+k(["scalar",t,k(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>I("",e,"\n")+k(["type",t,I("implements ",k(r," & ")),k(n," "),T(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>I("",e,"\n")+t+(A(r)?I("(\n",C(k(r,"\n")),"\n)"):I("(",k(r,", "),")"))+": "+n+I(" ",k(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>I("",e,"\n")+k([t+": "+r,I("= ",n),k(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>I("",e,"\n")+k(["interface",t,I("implements ",k(r," & ")),k(n," "),T(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>I("",e,"\n")+k(["union",t,k(r," "),I("= ",k(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>I("",e,"\n")+k(["enum",t,k(r," "),T(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>I("",e,"\n")+k([t,k(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>I("",e,"\n")+k(["input",t,k(r," "),T(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>I("",e,"\n")+"directive @"+t+(A(r)?I("(\n",C(k(r,"\n")),"\n)"):I("(",k(r,", "),")"))+I(" ",k(n," "))+(i?" repeatable":"")+" on "+k(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>k(["extend schema",k(e," "),T(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>k(["extend scalar",e,k(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>k(["extend type",e,I("implements ",k(t," & ")),k(r," "),T(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>k(["extend interface",e,I("implements ",k(t," & ")),k(r," "),T(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>k(["extend union",e,k(t," "),I("= ",k(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>k(["extend enum",e,k(t," "),T(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>k(["extend input",e,k(t," "),T(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>k(["extend directive @"+e,k(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>k([e,I(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>k([e,I(".",t),I("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>k(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>k(["@",e,I("(",t,":)")])}};function k(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function T(e){return I("{\n",C(k(e,"\n")),"\n}")}function I(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function C(e){return I("  ",e.replace(/\n/g,"\n  "))}function A(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var O={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},N=function(e,t){return t(e)},P=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function R(e){return new l.y(function(t){t.error(e)})}
298var D=r(36765),L=(0,o.wY)(function(){return fetch}),F=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,b=e.fetch,x=e.print,_=void 0===x?N:x,E=e.includeExtensions,w=e.preserveHeaderCase,k=e.useGETForQueries,T=e.includeUnusedVariables,I=void 0!==T&&T,C=(0,n._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&y(b||L);var A={http:{includeExtensions:E,preserveHeaderCase:w},options:C.fetchOptions,credentials:C.credentials,headers:C.headers};return new i.i(function(e){var t,i,y,x,E=(t=e,i=r,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),w=e.getContext(),T={};if(w.clientAwareness){var C=w.clientAwareness,N=C.name,F=C.version;N&&(T["apollographql-client-name"]=N),F&&(T["apollographql-client-version"]=F)}var j=(0,n.pi)((0,n.pi)({},T),w.headers),M=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o={},a={};r.forEach(function(e){o=(0,n.pi)((0,n.pi)((0,n.pi)({},o),e.options),{headers:(0,n.pi)((0,n.pi)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,n.pi)((0,n.pi)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r=Object.create(null);
298return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n=Object.create(null);Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,l=e.extensions,u=e.variables,c=e.query,d={operationName:s,variables:u};return a.includeExtensions&&(d.extensions=l),a.includeQuery&&(d.query=t(c,S)),{options:o,body:d}}(e,_,O,A,{http:w.http,options:w.fetchOptions,credentials:w.credentials,headers:j}),B=M.options,U=M.body;if(U.variables&&!I){var q=new Set(Object.keys(U.variables));(0,a.Vn)(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&q.delete(e.name.value)}}),q.size&&(U.variables=(0,n.pi)({},U.variables),q.forEach(function(e){delete U.variables[e]}))}if(!B.signal){var V=P(),z=V.controller,$=V.signal;(x=z)&&(B.signal=$)}var G="OperationDefinition"===(y=(0,D.p$)(e.query)).kind&&"subscription"===y.operation,W=(0,s.FS)(["defer"],e.query);if(k&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(B.method="GET"),W||G){B.headers=B.headers||{};var H="multipart/mixed;";G&&W&&__DEV__&&o.kG.warn("Multipart-subscriptions do not support @defer"),G?H+="boundary=graphql;subscriptionSpec=1.0,application/json":W&&(H+="deferSpec=20220824,application/json"),B.headers.accept=H}if("GET"===B.method){var Q=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=u(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=u(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(E,U),Y=Q.newURI,X=Q.parseError;if(X)return R(X);E=Y}else try{B.body=u(U,"Payload")}catch(e){return R(e)}return new l.y(function(t){return(b||(0,o.wY)(function(){return fetch})||L)(E,B).then(function(r){e.setContext({response:r});var i,o=null===(i=r.headers)||void 0===i?void 0:i.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){var r,i,o,a,s;return(0,n.mG)(this,void 0,void 0,function(){var l,u,f,m,y,b,x,_,E,S,w,k,T,I,C,A,O,N,P,R,D;return(0,n.Jh)(this,function(L){switch(L.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");l=new TextDecoder("utf-8"),u=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),f="boundary=",m=(null==u?void 0:u.includes(f))?null==u?void 0:u.substring((null==u?void 0:u.indexOf(f))+f.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",y="--".concat(m),b="",x=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,c.DN&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return d(s.getReader());if(s.stream)return d(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},c.DN&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function l(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",a),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var u={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return c.DN&&(u[Symbol.asyncIterator]=function(){return this}),u}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),_=!0,L.label=1;case 1:if(!_)return[3,3];return[4,x.next()];case 2:for(S=(E=L.sent()).value,w=E.done,k="string"==typeof S?S:l.decode(S),_=!w,b+=k,T=b.indexOf(y);T>-1;){if(I=void 0,I=(R=[b.slice(0,T),b.slice(T+y.length)])[0],b=R[1],I.trim()){if(C=I.indexOf("\r\n\r\n"),(A=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(I.slice(0,C))["content-type"])&&-1===A.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");O=I.slice(C);try{N=g(e,O.replace("\r\n","")),Object.keys(N).length>1||"data"in N||"incremental"in N||"errors"in N||"payload"in N?(0,p.yU)(N)?(P={},"payload"in N&&(P=(0,n.pi)({},N.payload)),"errors"in N&&(P=(0,n.pi)((0,n.pi)({},P),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in P?P.extensions:null),((D={})[h.YG]=N.errors,D))})),null===(i=t.next)||void 0===i||i.call(t,P)):null===(o=t.next)||void 0===o||o.call(t,N):1===Object.keys(N).length&&"hasNext"in N&&!N.hasNext&&(null===(a=t.complete)||void 0===a||a.call(t))}catch(e){v(e,t)}}T=b.indexOf(y)}return[3,1];case 3:return null===(s=t.complete)||void 0===s||s.call(t),[2]}})})}(r,t):function(e,t,r){var n;(n=e).text().then(function(e){return g(n,e)}).then(function(e){return n.status>=300&&f(n,e,"Response not successful: Received status code ".concat(n.status)),Array.isArray(e)||m.call(e,"data")||m.call(e,"errors")||f(n,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(e){return e.operationName}):t.operationName,"'.")),e}).then(function(e){var t,n;null===(t=r.next)||void 0===t||t.call(r,e),null===(n=r.complete)||void 0===n||n.call(r)}
298).catch(function(e){return v(e,r)})}(r,e,t)}).catch(function(e){return v(e,t)}),function(){x&&x.abort()}})})},j=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,F(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(i.i)},85317:function(e,t,r){"use strict";r.d(t,{K:function(){return o}});var n=r(67294),i=r(30320).aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function o(){var e=n.createContext[i];return e||(Object.defineProperty(n.createContext,i,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},66252:function(e,t,r){"use strict";r.d(t,{x:function(){return a}});var n=r(13917),i=r(67294),o=r(85317);function a(e){var t=(0,i.useContext)((0,o.K)()),r=e||t.client;return __DEV__?(0,n.kG)(!!r,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):(0,n.kG)(!!r,32),r}},73359:function(e,t,r){"use strict";r.d(t,{t:function(){return u}});var n=r(97582),i=r(67294),o=r(14012),a=r(37887),s=r(66252),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function u(e,t){var r,u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(),f=u.current?(0,o.J)(t,u.current):t,h=null!==(r=null==f?void 0:f.query)&&void 0!==r?r:e;c.current=f,d.current=h;var p=(0,a.A)((0,s.x)(t&&t.client),h),m=p.useQuery((0,n.pi)((0,n.pi)({},f),{skip:!u.current})),g=m.observable.options.initialFetchPolicy||p.getDefaultFetchPolicy(),v=Object.assign(m,{called:!!u.current}),y=(0,i.useMemo)(function(){for(var e={},t=0;t<l.length;t++)!function(t){var r=v[t];e[t]=function(){return u.current||(u.current=Object.create(null),p.forceUpdate()),r.apply(this,arguments)}}(l[t]);return e},[]);return Object.assign(v,y),[(0,i.useCallback)(function(e){u.current=e?(0,n.pi)((0,n.pi)({},e),{fetchPolicy:e.fetchPolicy||g}):{fetchPolicy:g};var t=(0,o.J)(c.current,(0,n.pi)({query:d.current},u.current)),r=p.executeQuery((0,n.pi)((0,n.pi)({},t),{skip:!1})).then(function(e){return Object.assign(e,y)});return r.catch(function(){}),r},[]),v]}},50319:function(e,t,r){"use strict";r.d(t,{D:function(){return c}});var n=r(97582),i=r(67294),o=r(14012),a=r(30020),s=r(14692),l=r(30990),u=r(66252);function c(e,t){var r=(0,u.x)(null==t?void 0:t.client);(0,s.Vp)(e,s.n_.Mutation);var c=(0,i.useState)({called:!1,loading:!1,client:r}),d=c[0],f=c[1],h=(0,i.useRef)({result:d,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Object.assign(h.current,{client:r,options:t,mutation:e});var p=(0,i.useCallback)(function(e){void 0===e&&(e={});var t=h.current,r=t.options,i=t.mutation,s=(0,n.pi)((0,n.pi)({},r),{mutation:i}),u=e.client||h.current.client;h.current.result.loading||s.ignoreResults||!h.current.isMounted||f(h.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:u});var c=++h.current.mutationId,d=(0,o.J)(s,e);return u.mutate(d).then(function(t){var r,n=t.data,i=t.errors,o=i&&i.length>0?new l.cA({graphQLErrors:i}):void 0;if(c===h.current.mutationId&&!d.ignoreResults){var s={called:!0,loading:!1,data:n,error:o,client:u};h.current.isMounted&&!(0,a.D)(h.current.result,s)&&f(h.current.result=s)}var p=e.onCompleted||(null===(r=h.current.options)||void 0===r?void 0:r.onCompleted);return null==p||p(t.data,d),t}).catch(function(t){if(c===h.current.mutationId&&h.current.isMounted){var r,n={loading:!1,error:t,data:void 0,called:!0,client:u};(0,a.D)(h.current.result,n)||f(h.current.result=n)}var i=e.onError||(null===(r=h.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,d),{data:void 0,errors:t};throw t})},[]),m=(0,i.useCallback)(function(){h.current.isMounted&&f({called:!1,loading:!1,client:r})},[]);return(0,i.useEffect)(function(){return h.current.isMounted=!0,function(){h.current.isMounted=!1}},[]),[p,(0,n.pi)({reset:m},d)]}},37887:function(e,t,r){"use strict";r.d(t,{A:function(){return S},a:function(){return E}});var n=r(97582),i=r(13917),o=r(67294),a=r.t(o,2),s=r(30320),l=!1,u=a.useSyncExternalStore||function(e,t,r){var n=t();__DEV__&&!l&&n!==t()&&(l=!0,__DEV__&&i.kG.error("The result of getSnapshot should be cached to avoid an infinite loop"));var a=o.useState({inst:{value:n,getSnapshot:t}}),u=a[0].inst,d=a[1];return s.JC?o.useLayoutEffect(function(){Object.assign(u,{value:n,getSnapshot:t}),c(u)&&d({inst:u})},[e,n,t]):Object.assign(u,{value:n,getSnapshot:t}),o.useEffect(function(){return c(u)&&d({inst:u}),e(function(){c(u)&&d({inst:u})})},[e]),n};function c(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}var d=r(30020),f=r(14012),h=r(85317),p=r(30990),m=r(1644),g=r(14692),v=r(66252),y=r(48702),b=r(53712),x=r(21436),_=Object.prototype.hasOwnProperty;function E(e,t){return void 0===t&&(t=Object.create(null)),S((0,v.x)(t.client),e).useQuery(t)}function S(e,t){var r=(0,o.useRef)();r.current&&e===r.current.client&&t===r.current.query||(r.current=ne
298w w(e,t,r.current));var n=r.current,i=(0,o.useState)(0),a=(i[0],i[1]);return n.forceUpdate=function(){a(function(e){return e+1})},n}var w=function(){function e(e,t,r){this.client=e,this.query=t,this.ssrDisabledResult=(0,y.J)({loading:!0,data:void 0,error:void 0,networkStatus:m.I.loading}),this.skipStandbyResult=(0,y.J)({loading:!1,data:void 0,error:void 0,networkStatus:m.I.ready}),this.toQueryResultCache=new(s.mr?WeakMap:Map),(0,g.Vp)(t,g.n_.Query);var n=r&&r.result,i=n&&n.data;i&&(this.previousData=i)}return e.prototype.forceUpdate=function(){__DEV__&&i.kG.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.executeQuery=function(e){var t,r=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise(function(e){var t;n.subscribe({next:function(e){t=e},error:function(){e(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){e(r.toQueryResult(t))}})})},e.prototype.useQuery=function(e){var t=this;this.renderPromises=(0,o.useContext)((0,h.K)()).renderPromises,this.useOptions(e);var r=this.useObservableQuery(),n=u((0,o.useCallback)(function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,n=r.getCurrentResult();e&&e.loading===n.loading&&e.networkStatus===n.networkStatus&&(0,d.D)(e.data,n.data)||t.setResult(n)},n=function(o){var a=r.last;i.unsubscribe();try{r.resetLastResults(),i=r.subscribe(e,n)}finally{r.last=a}if(!_.call(o,"graphQLErrors"))throw o;var s=t.result;(!s||s&&s.loading||!(0,d.D)(o,s.error))&&t.setResult({data:s&&s.data,error:o,loading:!1,networkStatus:m.I.error})},i=r.subscribe(e,n);return function(){return setTimeout(function(){return i.unsubscribe()})}},[r,this.renderPromises,this.client.disableNetworkFetches]),function(){return t.getCurrentResult()},function(){return t.getCurrentResult()});return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},e.prototype.useOptions=function(t){var r,n=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;!(0,d.D)(n,i)&&(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,b.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(f.J)},e.prototype.createWatchQueryOptions=function(e){void 0===e&&(e={});var t,r=e.skip,i=Object.assign((e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,n._T)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),r){var o=i.fetchPolicy,a=void 0===o?this.getDefaultFetchPolicy():o,s=i.initialFetchPolicy;Object.assign(i,{initialFetchPolicy:void 0===s?a:s,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cac
298he-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,o.useMemo)(function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){var t=this;if(!e.loading){var r=this.toApolloError(e);Promise.resolve().then(function(){r?t.onError(r):e.data&&t.onCompleted(e.data)}).catch(function(e){__DEV__&&i.kG.warn(e)})}},e.prototype.toApolloError=function(e){return(0,x.O)(e.errors)?new p.cA({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var r=e.data,i=(e.partial,(0,n._T)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,n.pi)((0,n.pi)((0,n.pi)({data:r},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,x.O)(e.errors)&&(t.error=new p.cA({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){e.partial&&this.queryHookOptions.partialRefetch&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(e,{loading:!0,networkStatus:m.I.refetch}),this.observable.refetch())},e}()},14692:function(e,t,r){"use strict";r.d(t,{Vp:function(){return l},n_:function(){return i}});var n,i,o=r(13917);(n=i||(i={}))[n.Query=0]="Query",n[n.Mutation=1]="Mutation",n[n.Subscription=2]="Subscription";var a=new Map;function s(e){var t;switch(e){case i.Query:t="Query";break;case i.Mutation:t="Mutation";break;case i.Subscription:t="Subscription"}return t}function l(e,t){var r=function(e){var t,r,n=a.get(e);if(n)return n;__DEV__?(0,o.kG)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,o.kG)(!!e&&!!e.kind,33);for(var s=[],l=[],u=[],c=[],d=0,f=e.definitions;d<f.length;d++){var h=f[d];if("FragmentDefinition"===h.kind){s.push(h);continue}if("OperationDefinition"===h.kind)switch(h.operation){case"query":l.push(h);break;case"mutation":u.push(h);break;case"subscription":c.push(h)}}__DEV__?(0,o.kG)(!s.length||l.length||u.length||c.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):(0,o.kG)(!s.length||l.length||u.length||c.length,34),__DEV__?(0,o.kG)(l.length+u.length+c.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(l.length," queries, ").concat(c.length," ")+"subscriptions and ".concat(u.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):(0,o.kG)(l.length+u.length+c.length<=1,35),r=l.length?i.Query:i.Mutation,l.length||u.length||(r=i.Subscription);var p=l.length?l:u.length?u:c;__DEV__?(0,o.kG)(1===p.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(p.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):(0,o.kG)(1===p.length,36);var m=p[0];t=m.variableDefinitions||[];var g={name:m.name&&"Name"===m.name.kind?m.name.value:"data",type:r,variables:t};return a.set(e,g),g}(e),n=s(t),l=s(r.type);__DEV__?(0,o.kG)(r.type===t,"Running a ".concat(n," requires a graphql ")+"".concat(n,", but a ").concat(l," was used instead.")):(0,o.kG)(r.type===t,37)}},21436:function(e,t,r){"use strict";r.d(t,{O:function(){return i},k:function(){return n}});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},30320:function(e,t,r){"use strict";r.d(t,{DN:function(){return s},JC:function(){return c},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var n=r(13917),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.wY)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,l="function"==typeof(0,n.wY)(function(){return window.document.createElement}),u=(0,n.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,c=l&&!u},79487:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);
298return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var o=Object.create(Object.getPrototypeOf(t));return r.set(t,o),Object.keys(t).forEach(function(n){o[n]=e(t[n],r)}),o;default:return t}}(e)}},53712:function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.d(t,{o:function(){return n}})},37280:function(e,t,r){"use strict";r.d(t,{GG:function(){return a},M0:function(){return s},mT:function(){return u},yU:function(){return l}});var n=r(13154),i=r(21436),o=r(182);function a(e){return"incremental"in e}function s(e){return a(e)||"hasNext"in e&&"data"in e}function l(e){return(0,n.s)(e)&&"payload"in e}function u(e,t){var r=e,n=new o.w0;return a(t)&&(0,i.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}},60897:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},48702:function(e,t,r){"use strict";r.d(t,{J:function(){return i}}),r(13917);var n=r(13154);function i(e){if(__DEV__){var t;(t=new Set([e])).forEach(function(e){(0,n.s)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,n.s)(e[r])&&t.add(e[r])})})}return e}},182:function(e,t,r){"use strict";r.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return u}});var n=r(97582),i=r(13154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new u,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var l=function(e,t,r){return this.merge(e[r],t[r])},u=function(){function e(e){void 0===e&&(e=l),this.reconciler=e,this.isObject=i.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.s)(t)&&(0,i.s)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var l=r.reconciler.apply(r,(0,n.ev)([e,t,i],a,!1));l!==s&&((e=r.shallowCopyForMerge(e))[i]=l)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},14012:function(e,t,r){"use strict";r.d(t,{J:function(){return o}});var n=r(97582),i=r(53712);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,n.pi)((0,n.pi)({},e&&e.variables),t.variables)})}},13154:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{s:function(){return n}})},13917:function(e,t,r){"use strict";r.d(t,{ej:function(){return l},kG:function(){return u},wY:function(){return h}});var n,i=r(97582),o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,l=function(e){function t(r){void 0===r&&(r=o);var n=e.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,s(n,t.prototype),n}return(0,i.ZT)(t,e),t}(Error);function u(e,t){if(!e)throw new l(t)}var c=["debug","log","warn","error","silent"],d=c.indexOf("log");function f(e){return function(){if(c.indexOf(e)>=d)return(console[e]||console.log).apply(console,arguments)}}function h(e){try{return e()}catch(e){}}(n=u||(u={})).debug=f("debug"),n.log=f("log"),n.warn=f("warn"),n.error=f("error");var p=h(function(){return globalThis})||h(function(){return window})||h(function(){return self})||h(function(){return global})||h(function(){return h.constructor("return this")()}),m="__DEV__",g=function(){try{return!!__DEV__}catch(e){return Object.defineProperty(p,m,{value:"production"!==h(function(){return"production"}
298),enumerable:!1,configurable:!0,writable:!0}),p[m]}}(),v=r(83454);function y(e){try{return e()}catch(e){}}var b=y(function(){return globalThis})||y(function(){return window})||y(function(){return self})||y(function(){return global})||y(function(){return y.constructor("return this")()}),x=!1;!b||y(function(){return"production"})||y(function(){return v})||(Object.defineProperty(b,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),x=!0),r(51270).H,x&&(delete b.process,x=!1),__DEV__?u("boolean"==typeof g,g):u("boolean"==typeof g,39)},19065:function(e,t,r){"use strict";r.d(t,{FS:function(){return a},LZ:function(){return o},mj:function(){return s}});var n=r(13917),i=r(77304);function o(e,t){var r,i=e.directives;return!i||!i.length||(r=[],i&&i.length&&i.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var i=e.arguments,o=e.name.value;__DEV__?(0,n.kG)(i&&1===i.length,"Incorrect number of arguments for the @".concat(o," directive.")):(0,n.kG)(i&&1===i.length,41);var a=i[0];__DEV__?(0,n.kG)(a.name&&"if"===a.name.value,"Invalid argument for the @".concat(o," directive.")):(0,n.kG)(a.name&&"if"===a.name.value,42);var s=a.value;__DEV__?(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),"Argument for the @".concat(o," directive must be a variable or a boolean value.")):(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),43),r.push({directive:e,ifArgument:a})}}),r).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?(0,n.kG)(void 0!==o,"Invalid variable referenced in @".concat(r.name.value," directive.")):(0,n.kG)(void 0!==o,40)):o=i.value.value,"skip"===r.name.value?!o:o})}function a(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size<o}function s(e){return e&&a(["client","export"],e,!0)}},23361:function(e,t,r){"use strict";r.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var n=r(97582),i=r(13917);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new i.ej("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(44);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&(__DEV__?(0,i.kG)(1===o.length,"Found ".concat(o.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===o.length,45),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return __DEV__?(0,i.kG)(n,"No fragment named ".concat(r)):(0,i.kG)(n,46),n||null;default:return null}}},36765:function(e,t,r){"use strict";r.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return f},iW:function(){return u},kU:function(){return l},p$:function(){return d},pD:function(){return c},rY:function(){return s}});var n=r(13917),i=r(51761);function o(e){__DEV__?(0,n.kG)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)(e&&"Document"===e.kind,47);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new n.ej('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new n.ej(48);return e});return __DEV__?(0,n.kG)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,n.kG)(t.length<=1,49),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function u(e){var t=a(e);return __DEV__?(0,n.kG)(t&&"query"===t.operation,"Must contain a query definition."):(0,n.kG)(t&&"query"===t.operation,50),t}function c(e){__DEV__?(0,n.kG)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)("Document"===e.kind,51),__DEV__?(0,n.kG)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,n.kG)(e.definitions.length<=1,52);var t=e.definitions[0];return __DEV__?(0,n.kG)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,n.kG)("FragmentDefinition"===t.kind,53),t}function d(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw __DEV__?new n.ej("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new n.ej(54)}function f(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},51761:function(e,t,r){"use strict";r.d(t,{Ao:function(){return y},JW:function(){return l},My:function(){return v},NC:function(){return m},PT:function(){return f},Yk:function(){return s},kQ:function(){return a},qw:function(){return function e(t,r,n){if("string"==typeof t.__typename)return t.__typename;for(var i=0,a=r.selections;i<a.length;i++){var s=a[i];if(v(s)){if("__typename"===s.name.value)return t[g(s)]}else{var l=e(t,(0,o.hi)(s,n).selectionSet,n);if("string"==typeof l)return l}}}},u2:function(){return g},vb:function(){return u},vf:function(){return c}});var n=r(13917),i=r(13154),o=r(23361);function a(e){return{__ref:String(e)}}function s(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function l(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}
298function u(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return u(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return u(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw __DEV__?new n.ej('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n.ej(55)}function c(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return u(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return u(n,r,i,t)}
298)),f(e.name.value,n,r)}var d=["connection","include","skip","client","rest","export"],f=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(h(i),")")}var o=e;if(t){var a=h(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===d.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(h(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=h;return h=e,t}}),h=function(e){return JSON.stringify(e,p)};function p(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{})),t}function m(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return u(r,e.name,e.value,t)}),r}return null}function g(e){return e.alias?e.alias.value:e.name.value}function v(e){return"Field"===e.kind}function y(e){return"InlineFragment"===e.kind}},76487:function(e,t,r){"use strict";r.d(t,{Fo:function(){return g},Gw:function(){return p},aL:function(){return v},ob:function(){return y}});var n=r(97582),i=r(13917),o=r(97359),a=r(77304),s=r(36765),l=r(51761),u=r(23361),c=r(21436),d={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function f(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function h(e,t){for(var r,l,d,h=f(""),p=f(""),m=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,c.k)(r)){if(r.kind===o.h.OPERATION_DEFINITION)return h(r.name&&r.name.value);if(r.kind===o.h.FRAGMENT_DEFINITION)return p(r.name.value)}return __DEV__&&i.kG.error("Could not find operation or fragment"),null},g=0,v=t.definitions.length-1;v>=0;--v)t.definitions[v].kind===o.h.OPERATION_DEFINITION&&++g;var y=(r=new Set,l=[],e.forEach(function(e){e.name?r.add(e.name):e.test&&l.push(e.test)}),function(e){return r.has(e.name.value)||l.some(function(t){return t(e)})}),b=e.some(function(e){return e.remove}),x=function(e){return b&&e&&e.some(y)},_=new Map,E=!1,S={enter:function(e){if(x(e.directives))return E=!0,null}},w=(0,a.Vn)(t,{Field:S,InlineFragment:S,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=m(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(x(e.directives))return E=!0,null;var o=m(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){_.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===_.get(JSON.stringify(n))?e:g>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(p(e.name.value).removed=!0,E=!0,null):void 0}},Directive:{leave:function(e){if(y(e))return E=!0,null}}});if(!E)return t;var k=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){k(p(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},T=new Set;w.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?k(h(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){T.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==g||p(e.name.value).removed||T.add(e.name.value)}),T.forEach(function(e){k(p(e)).fragmentSpreads.forEach(function(e){T.add(e)})});var I={enter:function(e){var t;if(t=e.name.value,!T.has(t)||p(t).removed)return null}};return d=(0,a.Vn)(w,{FragmentSpread:I,FragmentDefinition:I,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=k(h(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.pi)((0,n.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.h.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,s.$H)(d)||(0,s.pD)(d),(0,u.F)((0,s.kU)(d)))?d:null}var p=Object.assign(function(e){return(0,a.Vn)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.h.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,l.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,l.My)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.pi)((0,n.pi)({},e),{selections:(0,n.ev)((0,n.ev)([],i,!0),[d],!1)})}}}})},{added:function(e){return e===d}}),m={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&i.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function g(e){return h([m],(0,s.A$)(e))}
298function v(e){return"query"===(0,s.p$)(e).operation?e:(0,a.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{operation:"query"})}}})}function y(e){return(0,s.A$)(e),h([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},87462:function(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,{Z:function(){return n}})},75068:function(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,{Z:function(){return i}})},63366:function(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,{Z:function(){return n}})},74153:function(e,t,r){"use strict";r.d(t,{b:function(){return c}});var n=r(57670),i=r(25432),o=r(16554),a=r(33179),s=r(77030),l=r(59235),u=r(85893),c=(0,o.G)(function(e,t){var r;let{status:o="info",addRole:c=!0,...d}=(0,a.Lr)(e),f=null!=(r=e.colorScheme)?r:(0,n.TR)(o),h=(0,s.jC)("Alert",{...e,colorScheme:f}),p={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...h.container};return(0,u.jsx)(n.uZ,{value:{status:o},children:(0,u.jsx)(n.Hm,{value:h,children:(0,u.jsx)(l.m.div,{"data-status":o,role:c?"alert":void 0,ref:t,...d,className:(0,i.cx)("chakra-alert",e.className),__css:p})})})});c.displayName="Alert"},7405:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(57670),i=r(25432),o=r(59235),a=r(85893);function s(e){let{status:t}=(0,n.oX)(),r=(0,n.XO)(t),s=(0,n.uL)(),l="loading"===t?s.spinner:s.icon;return(0,a.jsx)(o.m.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:l,children:e.children||(0,a.jsx)(r,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},57670:function(e,t,r){"use strict";r.d(t,{uZ:function(){return l},Hm:function(){return c},TR:function(){return h},XO:function(){return p},oX:function(){return u},uL:function(){return d}});var n=r(36948),i=r(85893);function o(e){return(0,i.jsx)(n.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var a=r(55227),s=r(81136),[l,u]=(0,a.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[c,d]=(0,a.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),f={info:{icon:function(e){return(0,i.jsx)(n.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:o,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(n.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:o,colorScheme:"red"},loading:{icon:s.$,colorScheme:"blue"}};function h(e){return f[e].colorScheme}function p(e){return f[e].icon}},33951:function(e,t,r){"use strict";r.d(t,{AV:function(){return i},XQ:function(){return o},Yq:function(){return a}});var n=r(25432),i=Object.freeze(["base","sm","md","lg","xl","2xl"]);function o(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,n.Kn)(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):null!=e?t(e):null}function a(e,t=i){let r={};return e.forEach((e,n)=>{let i=t[n];null!=e&&(r[i]=e)}),r}},89993:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(93108),i=r(16554),o=r(67294),a=r(85893),s=(0,i.G)((e,t)=>{let{icon:r,children:i,isRound:s,"aria-label":l,...u}=e,c=r||i,d=(0,o.isValidElement)(c)?(0,o.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,a.jsx)(n.z,{padding:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":l,...u,children:d})});s.displayName="IconButton"},78522:function(e,t,r){"use strict";r.d(t,{D:function(){return n},i:function(){return i}});var[n,i]=(0,r(55227).k)({strict:!1,name:"ButtonGroupContext"})},93108:function(e,t,r){"use strict";r.d(t,{z:function(){return m}});var n=r(67294),i=r(78522),o=r(59235),a=r(25432),s=r(85893);function l(e){let{children:t,className:r,...i}=e,l=(0,n.isValidElement)(t)?(0,n.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,u=(0,a.cx)("chakra-button__icon",r);return(0,s.jsx)(o.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:u,children:l})}l.displayName="ButtonIcon";var u=r(81136);function c(e){let{label:t,placement:r,spacing:i="0.5rem",children:l=(0,s.jsx)(u.$,{color:"currentColor",width:"1em",height:"1em"}),className:c,__css:d,...f}
298=e,h=(0,a.cx)("chakra-button__spinner",c),p="start"===r?"marginEnd":"marginStart",m=(0,n.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[p]:t?i:0,fontSize:"1em",lineHeight:"normal",...d}),[d,t,p,i]);return(0,s.jsx)(o.m.div,{className:h,...f,__css:m,children:l})}c.displayName="ButtonSpinner";var d=r(81103),f=r(16554),h=r(77030),p=r(33179),m=(0,f.G)((e,t)=>{let r=(0,i.i)(),l=(0,h.mq)("Button",{...r,...e}),{isDisabled:u=null==r?void 0:r.isDisabled,isLoading:f,isActive:m,children:v,leftIcon:y,rightIcon:b,loadingText:x,iconSpacing:_="0.5rem",type:E,spinner:S,spinnerPlacement:w="start",className:k,as:T,...I}=(0,p.Lr)(e),C=(0,n.useMemo)(()=>{let e={...null==l?void 0:l._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...l,...!!r&&{_focus:e}}},[l,r]),{ref:A,type:O}=function(e){let[t,r]=(0,n.useState)(!e);return{ref:(0,n.useCallback)(e=>{e&&r("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(T),N={rightIcon:b,leftIcon:y,iconSpacing:_,children:v};return(0,s.jsxs)(o.m.button,{ref:(0,d.qq)(t,A),as:T,type:null!=E?E:O,"data-active":(0,a.PB)(m),"data-loading":(0,a.PB)(f),__css:C,className:(0,a.cx)("chakra-button",k),...I,disabled:u||f,children:[f&&"start"===w&&(0,s.jsx)(c,{className:"chakra-button__spinner--start",label:x,placement:"start",spacing:_,children:S}),f?x||(0,s.jsx)(o.m.span,{opacity:0,children:(0,s.jsx)(g,{...N})}):(0,s.jsx)(g,{...N}),f&&"end"===w&&(0,s.jsx)(c,{className:"chakra-button__spinner--end",label:x,placement:"end",spacing:_,children:S})]})});function g(e){let{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return(0,s.jsxs)(s.Fragment,{children:[t&&(0,s.jsx)(l,{marginEnd:i,children:t}),n,r&&(0,s.jsx)(l,{marginStart:i,children:r})]})}m.displayName="Button"},2678:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(67294),i=r(25432),o=r(81103);function a(e){let{tagName:t,isContentEditable:r}=e.target;return"INPUT"!==t&&"TEXTAREA"!==t&&!0!==r}function s(e={}){let{ref:t,isDisabled:r,isFocusable:s,clickOnEnter:l=!0,clickOnSpace:u=!0,onMouseDown:c,onMouseUp:d,onClick:f,onKeyDown:h,onKeyUp:p,tabIndex:m,onMouseOver:g,onMouseLeave:v,...y}=e,[b,x]=(0,n.useState)(!0),[_,E]=(0,n.useState)(!1),S=function(){let e=(0,n.useRef)(new Map),t=e.current,r=(0,n.useCallback)((t,r,n,i)=>{e.current.set(n,{type:r,el:t,options:i}),t.addEventListener(r,n,i)},[]),i=(0,n.useCallback)((t,r,n,i)=>{t.removeEventListener(r,n,i),e.current.delete(n)},[]);return(0,n.useEffect)(()=>()=>{t.forEach((e,t)=>{i(e.el,e.type,t,e.options)})},[i,t]),{add:r,remove:i}}(),w=b?m:m||0,k=r&&!s,T=(0,n.useCallback)(e=>{if(r){e.stopPropagation(),e.preventDefault();return}e.currentTarget.focus(),null==f||f(e)},[r,f]),I=(0,n.useCallback)(e=>{_&&a(e)&&(e.preventDefault(),e.stopPropagation(),E(!1),S.remove(document,"keyup",I,!1))},[_,S]),C=(0,n.useCallback)(e=>{if(null==h||h(e),r||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||b)return;let t=l&&"Enter"===e.key;u&&" "===e.key&&(e.preventDefault(),E(!0)),t&&(e.preventDefault(),e.currentTarget.click()),S.add(document,"keyup",I,!1)},[r,b,h,l,u,S,I]),A=(0,n.useCallback)(e=>{null==p||p(e),!r&&!e.defaultPrevented&&!e.metaKey&&a(e.nativeEvent)&&!b&&u&&" "===e.key&&(e.preventDefault(),E(!1),e.currentTarget.click())},[u,b,r,p]),O=(0,n.useCallback)(e=>{0===e.button&&(E(!1),S.remove(document,"mouseup",O,!1))},[S]),N=(0,n.useCallback)(e=>{if(0===e.button){if(r){e.stopPropagation(),e.preventDefault();return}b||E(!0),e.currentTarget.focus({preventScroll:!0}),S.add(document,"mouseup",O,!1),null==c||c(e)}},[r,b,c,S,O]),P=(0,n.useCallback)(e=>{0===e.button&&(b||E(!1),null==d||d(e))},[d,b]),R=(0,n.useCallback)(e=>{if(r){e.preventDefault();return}null==g||g(e)},[r,g]),D=(0,n.useCallback)(e=>{_&&(e.preventDefault(),E(!1)),null==v||v(e)},[_,v]),L=(0,o.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&x(!1)});
298return b?{...y,ref:L,type:"button","aria-disabled":k?void 0:r,disabled:k,onClick:T,onMouseDown:c,onMouseUp:d,onKeyUp:p,onKeyDown:h,onMouseOver:g,onMouseLeave:v}:{...y,ref:L,role:"button","data-active":(0,i.PB)(_),"aria-disabled":r?"true":void 0,tabIndex:k?void 0:w,onClick:T,onMouseDown:N,onMouseUp:P,onKeyUp:A,onKeyDown:C,onMouseOver:R,onMouseLeave:D}}},3949:function(e,t,r){"use strict";r.d(t,{P:function(){return c}});var n=r(36948),i=r(16554),o=r(77030),a=r(33179),s=r(59235),l=r(85893);function u(e){return(0,l.jsx)(n.J,{focusable:"false","aria-hidden":!0,...e,children:(0,l.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var c=(0,i.G)(function(e,t){let r=(0,o.mq)("CloseButton",e),{children:n,isDisabled:i,__css:c,...d}=(0,a.Lr)(e);return(0,l.jsx)(s.m.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...c},...d,children:n||(0,l.jsx)(u,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},45161:function(e,t,r){"use strict";r.d(t,{If:function(){return o},ff:function(){return a},kc:function(){return i}});var n=r(67294),i=(0,n.createContext)({});function o(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){let{colorMode:r}=o();return"dark"===r?t:e}i.displayName="ColorModeContext"},65225:function(e,t,r){"use strict";r.d(t,{n:function(){return y}});var n=r(67294),i=Object.defineProperty,o=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r);function s(e){return e.sort((e,t)=>{let r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(r&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}var l=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function u(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function c(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var d="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,f=e=>e,h=class{constructor(){a(this,"descendants",new Map),a(this,"register",e=>{if(null!=e)return l(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),a(this,"unregister",e=>{this.descendants.delete(e);let t=s(Array.from(this.descendants.keys()));this.assignIndex(t)}),a(this,"destroy",()=>{this.descendants.clear()}),a(this,"assignIndex",e=>
298{this.descendants.forEach(t=>{let r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),a(this,"count",()=>this.descendants.size),a(this,"enabledCount",()=>this.enabledValues().length),a(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),a(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),a(this,"item",e=>{if(0!==this.count())return this.values()[e]}),a(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),a(this,"first",()=>this.item(0)),a(this,"firstEnabled",()=>this.enabledItem(0)),a(this,"last",()=>this.item(this.descendants.size-1)),a(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),a(this,"indexOf",e=>{var t,r;return e&&null!=(r=null==(t=this.descendants.get(e))?void 0:t.index)?r:-1}),a(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),a(this,"next",(e,t=!0)=>{let r=u(e,this.count(),t);return this.item(r)}),a(this,"nextEnabled",(e,t=!0)=>{let r=this.item(e);if(!r)return;let n=u(this.enabledIndexOf(r.node),this.enabledCount(),t);return this.enabledItem(n)}),a(this,"prev",(e,t=!0)=>{let r=c(e,this.count()-1,t);return this.item(r)}),a(this,"prevEnabled",(e,t=!0)=>{let r=this.item(e);if(!r)return;let n=c(this.enabledIndexOf(r.node),this.enabledCount()-1,t);return this.enabledItem(n)}),a(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let r=s(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let n={node:e,index:-1,...t};this.descendants.set(e,n),this.assignIndex(r)})}},p=r(55227),m=r(81103),[g,v]=(0,p.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function y(){return[f(g),()=>f(v()),()=>(function(){let e=(0,n.useRef)(new h);return d(()=>()=>e.current.destroy()),e.current})(),e=>(function(e){let t=v(),[r,i]=(0,n.useState)(-1),o=(0,n.useRef)(null);d(()=>()=>{o.current&&t.unregister(o.current)},[]),d(()=>{if(!o.current)return;let e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||i(e)});let a=e?f(t.register(e)):f(t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:(0,m.lq)(a,o)}})(e)]}},61735:function(e,t,r){"use strict";function n(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(e){var t;if(!n(e))return!1;let r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}function o(e){var t,r;return null!=(r=null==(t=a(e))?void 0:t.defaultView)?r:window}function a(e){return n(e)?e.ownerDocument:document}function s(e){return a(e).activeElement}r.d(t,{Re:function(){return i},kR:function(){return o},vY:function(){return s}})},59136:function(e,t,r){"use strict";r.d(t,{EB:function(){return a},Wq:function(){return s}});var n=r(61735),i=e=>e.hasAttribute("tabindex"),o=e=>i(e)&&-1===e.tabIndex;function a(e){var t;if(!(0,n.Re)(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:r}=e;if(["input","select","textarea","button"].indexOf(r)>=0)return!0;let o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return r in o?o[r]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||i(e)}function s(e){return!!e&&(0,n.Re)(e)&&a(e)&&!o(e)}},42657:function(e,t,r){"use strict";r.d(t,{t5:function(){return o}});var n=r(59136),i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,n.EB)(e)&&i(e))}},28912:function(e,t,r){"use strict";r.d(t,{K:function(){return a},Y:function(){return o}});var n=r(85970),i=r(25432);function o(e){let{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...s}=a(e);return{...s,disabled:t,readOnly:n,required:o,"aria-invalid":(0,i.Qm)(r),"aria-required":(0,i.Qm)(o),"aria-readonly":(0,i.Qm)(n)}}function a(e){var t,r,o;let a=(0,n.NJ)(),{id:s,disabled:l,readOnly:u,required:c,isRequired:d,isInvalid:f,isReadOnly:h,isDisabled:p,onFocus:m,onBlur:g,...v}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&y.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&y.push(a.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!=(t=null!=l?l:p)?t:null==a?void 0:a.isDisabled,isReadOnly:null!=(r=null!=u?u:h)?r:null==a?void 0:a.isReadOnly,isRequired:null!=(o=null!=c?c:d)?o:null==a?void 0:a.isRequired,isInvalid:null!=f?f:null==a?void 0:a.isInvalid,onFocus:(0,i.v0)(null==a?void 0:a.onFocus,m),onBlur:(0,i.v0)(null==a?void 0:a.onBlur,g)}}},85970:function(e,t,r){"use strict";r.d(t,{NI:function(){return g},NJ:function(){return m},e:function(){return h}});var n=r(55227),i=r(81103),o=r(16554),a=r(77030),s=r(33179),l=r(59235),u=r(25432),c=r(67294),d=r(85893),[f,h]=(0,n.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[p,m]=(0,n.k)({strict:!1,name:"FormControlContext"}),g=(0,o.G)(function(e,t){let r=(0,a.jC)("Form",e),{getRootProps:n,htmlProps:o,...h}
298=function(e){let{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:a,...s}=e,l=(0,c.useId)(),d=t||`field-${l}`,f=`${d}-label`,h=`${d}-feedback`,p=`${d}-helptext`,[m,g]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),[b,x]=(0,c.useState)(!1),_=(0,c.useCallback)((e={},t=null)=>({id:p,...e,ref:(0,i.lq)(t,e=>{e&&y(!0)})}),[p]),E=(0,c.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":(0,u.PB)(b),"data-disabled":(0,u.PB)(o),"data-invalid":(0,u.PB)(n),"data-readonly":(0,u.PB)(a),id:void 0!==e.id?e.id:f,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}),[d,o,b,n,a,f]),S=(0,c.useCallback)((e={},t=null)=>({id:h,...e,ref:(0,i.lq)(t,e=>{e&&g(!0)}),"aria-live":"polite"}),[h]),w=(0,c.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":(0,u.PB)(b),"data-disabled":(0,u.PB)(o),"data-invalid":(0,u.PB)(n),"data-readonly":(0,u.PB)(a)}),[s,o,b,n,a]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>x(!0),onBlur:()=>x(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:y,id:d,labelId:f,feedbackId:h,helpTextId:p,htmlProps:s,getHelpTextProps:_,getErrorMessageProps:S,getRootProps:w,getLabelProps:E,getRequiredIndicatorProps:(0,c.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[])}}((0,s.Lr)(e)),m=(0,u.cx)("chakra-form-control",e.className);return(0,d.jsx)(p,{value:h,children:(0,d.jsx)(f,{value:r,children:(0,d.jsx)(l.m.div,{...n({},t),className:m,__css:r.container})})})});g.displayName="FormControl",(0,o.G)(function(e,t){let r=m(),n=h(),i=(0,u.cx)("chakra-form__helper-text",e.className);return(0,d.jsx)(l.m.div,{...null==r?void 0:r.getHelpTextProps(e,t),__css:n.helperText,className:i})}).displayName="FormHelperText"},5418:function(e,t,r){"use strict";r.d(t,{l:function(){return c}});var n=r(85970),i=r(16554),o=r(77030),a=r(33179),s=r(59235),l=r(25432),u=r(85893),c=(0,i.G)(function(e,t){var r;let i=(0,o.mq)("FormLabel",e),c=(0,a.Lr)(e),{className:f,children:h,requiredIndicator:p=(0,u.jsx)(d,{}),optionalIndicator:m=null,...g}=c,v=(0,n.NJ)(),y=null!=(r=null==v?void 0:v.getLabelProps(g,t))?r:{ref:t,...g};return(0,u.jsxs)(s.m.label,{...y,className:(0,l.cx)("chakra-form__label",c.className),__css:{display:"block",textAlign:"start",...i},children:[h,(null==v?void 0:v.isRequired)?p:m]})});c.displayName="FormLabel";var d=(0,i.G)(function(e,t){let r=(0,n.NJ)(),i=(0,n.e)();if(!(null==r?void 0:r.isRequired))return null;let o=(0,l.cx)("chakra-form__required-indicator",e.className);return(0,u.jsx)(s.m.span,{...null==r?void 0:r.getRequiredIndicatorProps(e,t),__css:i.requiredIndicator,className:o})});d.displayName="RequiredIndicator"},36948:function(e,t,r){"use strict";r.d(t,{J:function(){return u}});var n=r(16554),i=r(77030),o=r(59235),a=r(25432),s=r(85893),l={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,n.G)((e,t)=>{let{as:r,viewBox:n,color:u="currentColor",focusable:c=!1,children:d,className:f,__css:h,...p}=e,m=(0,a.cx)("chakra-icon",f),g=(0,i.mq)("Icon",e),v={ref:t,focusable:c,className:m,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...h,...g}},y=null!=n?n:l.viewBox;if(r&&"string"!=typeof r)return(0,s.jsx)(o.m.svg,{as:r,...v,...p});let b=null!=d?d:l.path;return(0,s.jsx)(o.m.svg,{verticalAlign:"middle",viewBox:y,...v,...p,children:b})});u.displayName="Icon"},33090:function(e,t,r){"use strict";r.d(t,{I:function(){return c}});var n=r(28912),i=r(16554),o=r(77030),a=r(33179),s=r(59235),l=r(25432),u=r(85893),c=(0,i.G)(function(e,t){let{htmlSize:r,...i}=e,c=(0,o.jC)("Input",i),d=(0,a.Lr)(i),f=(0,n.Y)(d),h=(0,l.cx)("chakra-input",e.className);return(0,u.jsx)(s.m.input,{size:r,...f,__css:c.field,ref:t,className:h})});c.displayName="Input",c.id="Input"},14e3:function(e,t,r){"use strict";r.d(t,{x:function(){return u}});
298var n=r(16554),i=r(77030),o=r(33179),a=r(59235),s=r(25432),l=r(85893),u=(0,n.G)(function(e,t){let r=(0,i.mq)("Text",e),{className:n,align:u,decoration:c,casing:d,...f}=(0,o.Lr)(e),h=function(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,l.jsx)(a.m.p,{ref:t,className:(0,s.cx)("chakra-text",e.className),...h,...f,__css:r})});u.displayName="Text"},34292:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(55281),i=r(16554),o=r(85893),a=(0,i.G)((e,t)=>(0,o.jsx)(n.K,{align:"center",...e,direction:"row",ref:t}));a.displayName="HStack"},93717:function(e,t,r){"use strict";r.d(t,{k:function(){return a}});var n=r(16554),i=r(59235),o=r(85893),a=(0,n.G)(function(e,t){let{direction:r,align:n,justify:a,wrap:s,basis:l,grow:u,shrink:c,...d}=e;return(0,o.jsx)(i.m.div,{ref:t,__css:{display:"flex",flexDirection:r,alignItems:n,justifyContent:a,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c},...d})});a.displayName="Flex"},48783:function(e,t,r){"use strict";r.d(t,{g:function(){return a}});var n=r(55281),i=r(16554),o=r(85893),a=(0,i.G)((e,t)=>(0,o.jsx)(n.K,{align:"center",...e,direction:"column",ref:t}));a.displayName="VStack"},57747:function(e,t,r){"use strict";r.d(t,{xu:function(){return a}});var n=r(59235),i=r(16554),o=r(85893),a=(0,n.m)("div");a.displayName="Box";var s=(0,i.G)(function(e,t){let{size:r,centerContent:n=!0,...i}=e;return(0,o.jsx)(a,{ref:t,boxSize:r,__css:{...n?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});s.displayName="Square",(0,i.G)(function(e,t){let{size:r,...n}=e;return(0,o.jsx)(s,{size:r,ref:t,borderRadius:"9999px",...n})}).displayName="Circle"},55281:function(e,t,r){"use strict";r.d(t,{K:function(){return d}});var n=r(59235),i=r(85893),o=e=>(0,i.jsx)(n.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});o.displayName="StackItem";var a=r(33951),s=r(92495),l=r(25432),u=r(16554),c=r(67294),d=(0,u.G)((e,t)=>{let{isInline:r,direction:u,align:d,justify:f,spacing:h="0.5rem",wrap:p,children:m,divider:g,className:v,shouldWrapChildren:y,...b}=e,x=r?"row":null!=u?u:"column",_=(0,c.useMemo)(()=>(function(e){let{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,a.XQ)(r,e=>n[e])}})({spacing:h,direction:x}),[h,x]),E=!!g,S=!y&&!E,w=(0,c.useMemo)(()=>{let e=(0,s.W)(m);return S?e:e.map((t,r)=>{let n=void 0!==t.key?t.key:r,a=r+1===e.length,s=(0,i.jsx)(o,{children:t},n),l=y?s:t;if(!E)return l;let u=(0,c.cloneElement)(g,{__css:_});return(0,i.jsxs)(c.Fragment,{children:[l,a?null:u]},n)})},[g,_,E,S,y,m]),k=(0,l.cx)("chakra-stack",v);return(0,i.jsx)(n.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:x,flexWrap:p,gap:E?void 0:h,className:k,...b,children:w})});d.displayName="Stack"},92625:function(e,t,r){"use strict";function n(e){let{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!r||!!n||"keepMounted"===i&&!!t}r.d(t,{k:function(){return n}})},52243:function(e,t,r){"use strict";r.d(t,{G:function(){return s}});var n=r(76336),i=r(67294),o=r(48940),a=r(25432);function s(e){var t,r;let s=(0,a.Kn)(e)?e:{fallback:null!=e?e:"base"},l=(0,o.F)().__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),u=l.map(e=>e.breakpoint===s.fallback),c=(function(e,t={}){let{ssr:r=!0,fallback:o}=t,{getWindow:a}=(0,n.O)(),s=Array.isArray(e)?e:[e],l=Array.isArray(o)?o:[o];l=l.filter(e=>null!=e);let[u,c]=(0,i.useState)(()=>s.map((e,t)=>({media:e,matches:r?!!l[t]:a().matchMedia(e).matches})));return(0,i.useEffect)(()=>{let e=a();c(s.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=s.map(t=>e.matchMedia(t)),r=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};
298return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(r):e.addEventListener("change",r)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(r):e.removeEventListener("change",r)})}},[a]),u.map(e=>e.matches)})(l.map(e=>e.query),{fallback:u,ssr:s.ssr}).findIndex(e=>!0==e);return null!=(r=null==(t=l[c])?void 0:t.breakpoint)?r:s.fallback}},66205:function(e,t,r){"use strict";r.d(t,{o:function(){return l}});var n=r(35541),i=r(3949),o=r(25432),a=r(16554),s=r(85893),l=(0,a.G)((e,t)=>{let{onClick:r,className:a,...l}=e,{onClose:u}=(0,n.vR)(),c=(0,o.cx)("chakra-modal__close-btn",a),d=(0,n.I_)();return(0,s.jsx)(i.P,{ref:t,__css:d.closeButton,className:c,onClick:(0,o.v0)(r,e=>{e.stopPropagation(),u()}),...l})});l.displayName="ModalCloseButton"},64859:function(e,t,r){"use strict";r.d(t,{x:function(){return u}});var n=r(35541),i=r(25432),o=r(16554),a=r(59235),s=r(67294),l=r(85893),u=(0,o.G)((e,t)=>{let{className:r,...o}=e,{headerId:u,setHeaderMounted:c}=(0,n.vR)();(0,s.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__header",r),f={flex:0,...(0,n.I_)().header};return(0,l.jsx)(a.m.header,{ref:t,className:d,id:u,...o,__css:f})});u.displayName="ModalHeader"},32856:function(e,t,r){"use strict";r.d(t,{m:function(){return s},$:function(){return l}});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r),a=r(67294),s=new class{constructor(){o(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function l(e,t){let[r,n]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let r=e.current;if(r)return t&&n(s.add(r)),()=>{s.remove(r),n(0)}},[t,e]),r}},49163:function(e,t,r){"use strict";r.d(t,{h:function(){return T}});var n,i=r(59235),o=r(80438),a=r(52094),s=r(25432),l=r(51526),u=r(77672),c=r(67294),d=r(85893),f={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{scale:t,...null==n?void 0:n.exit}},transition:null!=(o=null==r?void 0:r.exit)?o:a.p$.exit(a.Sh.exit,i)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:null!=(n=null==t?void 0:t.enter)?n:a.p$.enter(a.Sh.enter,r),transitionEnd:null==e?void 0:e.enter}}}};(0,c.forwardRef)(function(e,t){let{unmountOnExit:r,in:n,reverse:i=!0,initialScale:o=.95,className:a,transition:c,transitionEnd:h,delay:p,...m}=e,g=!r||n&&r,v=n||r?"enter":"exit",y={initialScale:o,reverse:i,transition:c,transitionEnd:h,delay:p};return(0,d.jsx)(l.M,{custom:y,children:g&&(0,d.jsx)(u.E.div,{ref:t,className:(0,s.cx)("chakra-offset-slide",a),...f,animate:v,custom:y,...m})})}).displayName="ScaleFade";var h={slideInBottom:{...o.X,custom:{offsetY:16,reverse:!0}},slideInRight:{...o.X,custom:{offsetX:16,reverse:!0}},slideInTop:{...o.X,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...o.X,custom:{offsetX:-16,reverse:!0}},scale:{...f,custom:{initialScale:.95,reverse:!0}},none:{}},p=(0,i.m)(u.E.section),m=e=>h[e||"none"],g=(0,c.forwardRef)((e,t)=>{let{preset:r,motionProps:n=m(r),...i}=e;return(0,d.jsx)(p,{ref:t,...n,...i})});g.displayName="ModalTransition";var v=r(35541),y=r(32856),b=r(75581),x=r(42657),_=null!=(n=b.ZP.default)?n:b.ZP,E=e=>{let{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:u}=e,f=(0,c.useCallback)(()=>{(null==t?void 0:t.current)?t.current.focus():(null==n?void 0:n.current)&&0===(0,x.t5)(n.current).length&&requestAnimationFrame(()=>{var e;null==(e=n.current)||e.focus()})},[t,n]),h=(0,c.useCallback)(()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()},[r]),p=i&&!r;return(0,d.jsx)(_,{crossFrame:u,persistentFocus:l,autoFocus:s,disabled:a,onActivation:f,onDeactivation:h,returnFocus:p,children:o})};E.displayName="FocusLock";var S=r(15947),w=r(71860);function k(e){let{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose
298:l,preserveScrollBarGap:u,lockFocusAcrossFrames:f,isOpen:h}=(0,v.vR)(),[p,m]=(0,S.oO)();(0,c.useEffect)(()=>{!p&&m&&setTimeout(m)},[p,m]);let g=(0,y.$)(n,h);return(0,d.jsx)(E,{autoFocus:t,isDisabled:!r,initialFocusRef:i,finalFocusRef:s,restoreFocus:l,contentRef:n,lockFocusAcrossFrames:f,children:(0,d.jsx)(w.Z,{removeScrollBar:!u,allowPinchZoom:a,enabled:1===g&&o,forwardProps:!0,children:e.children})})}var T=(0,r(16554).G)((e,t)=>{let{className:r,children:n,containerProps:o,motionProps:a,...l}=e,{getDialogProps:u,getDialogContainerProps:c}=(0,v.vR)(),f=u(l,t),h=c(o),p=(0,s.cx)("chakra-modal__content",r),m=(0,v.I_)(),y={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{motionPreset:x}=(0,v.vR)();return(0,d.jsx)(k,{children:(0,d.jsx)(i.m.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:b,children:(0,d.jsx)(g,{preset:x,motionProps:a,className:p,...f,__css:y,children:n})})})});T.displayName="ModalContent"},19778:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(35541),i=r(25432),o=r(59235),a=r(16554),s=r(52094),l=r(51526),u=r(77672),c=r(67294),d=r(85893),f={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:null!=(n=null==e?void 0:e.enter)?n:s.p$.enter(s.Sh.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:null!=(n=null==e?void 0:e.exit)?n:s.p$.exit(s.Sh.exit,r),transitionEnd:null==t?void 0:t.exit}}}};(0,c.forwardRef)(function(e,t){let{unmountOnExit:r,in:n,className:o,transition:a,transitionEnd:s,delay:c,...h}=e,p=n||r?"enter":"exit",m=!r||n&&r,g={transition:a,transitionEnd:s,delay:c};return(0,d.jsx)(l.M,{custom:g,children:m&&(0,d.jsx)(u.E.div,{ref:t,className:(0,i.cx)("chakra-fade",o),custom:g,...f,animate:p,...h})})}).displayName="Fade";var h=(0,o.m)(u.E.div),p=(0,a.G)((e,t)=>{let{className:r,transition:o,motionProps:a,...s}=e,l=(0,i.cx)("chakra-modal__overlay",r),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,n.I_)().overlay},{motionPreset:c}=(0,n.vR)(),p="none"===c?{}:f;return(0,d.jsx)(h,{...a||p,__css:u,ref:t,className:l,...s})});p.displayName="ModalOverlay"},35541:function(e,t,r){"use strict";r.d(t,{u_:function(){return S},vR:function(){return E},I_:function(){return x}});var n=r(32856),i=r(25432),o=r(81103),a=new WeakMap,s=new WeakMap,l={},u=0,c=function(e){return e&&(e.host||c(e.parentNode))},d=function(e,t,r,n){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=c(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});l[r]||(l[r]=new WeakMap);var o=l[r],d=[],f=new Set,h=new Set(i),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};i.forEach(p);var m=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(n),i=null!==t&&"false"!==t,l=(a.get(e)||0)+1,u=(o.get(e)||0)+1;a.set(e,l),o.set(e,u),d.push(e),1===l&&i&&s.set(e,!0),1===u&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),u++,function(){d.forEach(function(e){var t=a.get(e)-1,i=o.get(e)-1;a.set(e,t),o.set(e,i),t||(s.has(e)||e.removeAttribute(n),s.delete(e)),i||e.removeAttribute(r)}),--u||(a=new WeakMap,a=new WeakMap,s=new WeakMap,l={})}},f=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),d(n,i,r,"aria-hidden")):function(){return null}},h=r(67294),p=r(1702),m=r(55227),g=r(77030),v=r(51526),y=r(85893),[b,x]=(0,m.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[_,E]=(0,m.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `
298context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),S=e=>{let t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:a,autoFocus:s,trapFocus:l,initialFocusRef:u,finalFocusRef:c,returnFocusOnClose:d,blockScrollOnMount:m,allowPinchZoom:x,preserveScrollBarGap:E,motionPreset:S,lockFocusAcrossFrames:w,onCloseComplete:k}=t,T=(0,g.jC)("Modal",t),I={...function(e){let{isOpen:t,onClose:r,id:a,closeOnOverlayClick:s=!0,closeOnEsc:l=!0,useInert:u=!0,onOverlayClick:c,onEsc:d}=e,p=(0,h.useRef)(null),m=(0,h.useRef)(null),[g,v,y]=function(e,...t){let r=(0,h.useId)(),n=e||r;return(0,h.useMemo)(()=>t.map(e=>`${e}-${n}`),[n,t])}(a,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){let r=e.current;(0,h.useEffect)(()=>{if(e.current&&t)return f(e.current)},[t,e,r])}(p,t&&u);let b=(0,n.$)(p,t),x=(0,h.useRef)(null),_=(0,h.useCallback)(e=>{x.current=e.target},[]),E=(0,h.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),l&&(null==r||r()),null==d||d())},[l,r,d]),[S,w]=(0,h.useState)(!1),[k,T]=(0,h.useState)(!1),I=(0,h.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:(0,o.lq)(t,p),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":S?v:void 0,"aria-describedby":k?y:void 0,onClick:(0,i.v0)(e.onClick,e=>e.stopPropagation())}),[y,k,g,v,S]),C=(0,h.useCallback)(e=>{e.stopPropagation(),x.current===e.target&&n.m.isTopModal(p.current)&&(s&&(null==r||r()),null==c||c())},[r,s,c]),A=(0,h.useCallback)((e={},t=null)=>({...e,ref:(0,o.lq)(t,m),onClick:(0,i.v0)(e.onClick,C),onKeyDown:(0,i.v0)(e.onKeyDown,E),onMouseDown:(0,i.v0)(e.onMouseDown,_)}),[E,_,C]);return{isOpen:t,onClose:r,headerId:v,bodyId:y,setBodyMounted:T,setHeaderMounted:w,dialogRef:p,overlayRef:m,getDialogProps:I,getDialogContainerProps:A,index:b}}(t),autoFocus:s,trapFocus:l,initialFocusRef:u,finalFocusRef:c,returnFocusOnClose:d,blockScrollOnMount:m,allowPinchZoom:x,preserveScrollBarGap:E,motionPreset:S,lockFocusAcrossFrames:w};return(0,y.jsx)(_,{value:I,children:(0,y.jsx)(b,{value:T,children:(0,y.jsx)(v.M,{onExitComplete:k,children:I.isOpen&&(0,y.jsx)(p.h,{...r,children:a})})})})};S.displayName="Modal"},54346:function(e,t,r){"use strict";r.d(t,{f:function(){return u}});var n=r(35541),i=r(25432),o=r(16554),a=r(59235),s=r(67294),l=r(85893),u=(0,o.G)((e,t)=>{let{className:r,...o}=e,{bodyId:u,setBodyMounted:c}=(0,n.vR)();(0,s.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",r),f=(0,n.I_)();return(0,l.jsx)(a.m.div,{ref:t,className:d,id:u,...o,__css:f.body})});u.displayName="ModalBody"},14253:function(e,t,r){"use strict";r.d(t,{m:function(){return l}});var n=r(35541),i=r(25432),o=r(16554),a=r(59235),s=r(85893),l=(0,o.G)((e,t)=>{let{className:r,...o}=e,l=(0,i.cx)("chakra-modal__footer",r),u={display:"flex",alignItems:"center",justifyContent:"flex-end",...(0,n.I_)().footer};return(0,s.jsx)(a.m.footer,{ref:t,...o,__css:u,className:l})});l.displayName="ModalFooter"},76766:function(e,t,r){"use strict";r.d(t,{$B:function(){return u},Dq:function(){return i},Ke:function(){return o},mv:function(){return s}});var n=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),i={arrowShadowColor:n("--popper-arrow-shadow-color"),arrowSize:n("--popper-arrow-size","8px"),arrowSizeHalf:n("--popper-arrow-size-half"),arrowBg:n("--popper-arrow-bg"),transformOrigin:n("--popper-transform-origin"),arrowOffset:n("--popper-arrow-offset")};function o(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}var a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},s=e=>a[e],l={scroll:!0,resize:!0};function u(e){return"object"==typeof e?{enabled:!0,options:{...l,...e}}:{enabled:e,options:l}}},12805:function(e,t,r){"use strict";r.d(t,{D:function(){return v}});var n=r(76766),i={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},o={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{a(e)},effect:({state:e})=>()=>{a(e)}},a=e=>{e.elements.popper.style.setProperty(n.Dq.transformOrigin.var,(0,n.mv)(e.placement))},s={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>
298{l(e)}},l=e=>{var t;if(!e.placement)return;let r=u(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:n.Dq.arrowSize.varRef,height:n.Dq.arrowSize.varRef,zIndex:-1});let t={[n.Dq.arrowSizeHalf.var]:`calc(${n.Dq.arrowSize.varRef} / 2 - 1px)`,[n.Dq.arrowOffset.var]:`calc(${n.Dq.arrowSizeHalf.varRef} * -1)`};for(let r in t)e.elements.arrow.style.setProperty(r,t[r])}},u=e=>e.startsWith("top")?{property:"bottom",value:n.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:n.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:n.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:n.Dq.arrowOffset.varRef}:void 0,c={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{d(e)},effect:({state:e})=>()=>{d(e)}},d=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let r=(0,n.Ke)(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:n.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},f={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},h={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},p=r(81103),m=r(95551),g=r(67294);function v(e={}){let{enabled:t=!0,modifiers:r,placement:a="bottom",strategy:l="absolute",arrowPadding:u=8,eventListeners:d=!0,offset:v,gutter:y=8,flip:b=!0,boundary:x="clippingParents",preventOverflow:_=!0,matchWidth:E,direction:S="ltr"}=e,w=(0,g.useRef)(null),k=(0,g.useRef)(null),T=(0,g.useRef)(null),I=function(e,t="ltr"){var r,n;let i=(null==(r=f[e])?void 0:r[t])||e;return"ltr"===t?i:null!=(n=h[e])?n:i}(a,S),C=(0,g.useRef)(()=>{}),A=(0,g.useCallback)(()=>{var e;t&&w.current&&k.current&&(null==(e=C.current)||e.call(C),T.current=(0,m.fi)(w.current,k.current,{placement:I,modifiers:[c,s,o,{...i,enabled:!!E},{name:"eventListeners",...(0,n.$B)(d)},{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:null!=v?v:[0,y]}},{name:"flip",enabled:!!b,options:{padding:8}},{name:"preventOverflow",enabled:!!_,options:{boundary:x}},...null!=r?r:[]],strategy:l}),T.current.forceUpdate(),C.current=T.current.destroy)},[I,t,r,E,d,u,v,y,b,_,x,l]);(0,g.useEffect)(()=>()=>{var e;w.current||k.current||(null==(e=T.current)||e.destroy(),T.current=null)},[]);let O=(0,g.useCallback)(e=>{w.current=e,A()},[A]),N=(0,g.useCallback)((e={},t=null)=>({...e,ref:(0,p.lq)(O,t)}),[O]),P=(0,g.useCallback)(e=>{k.current=e,A()},[A]),R=(0,g.useCallback)((e={},t=null)=>({...e,ref:(0,p.lq)(P,t),style:{...e.style,position:l,minWidth:E?void 0:"max-content",inset:"0 auto auto 0"}}),[l,P,E]),D=(0,g.useCallback)((e={},t=null)=>{let{size:r,shadowColor:n,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}(e)}},[]),L=(0,g.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=T.current)||e.update()},forceUpdate(){var e;null==(e=T.current)||e.forceUpdate()},transformOrigin:n.Dq.transformOrigin.varRef,referenceRef:O,popperRef:P,getPopperProps:R,getArrowProps:D,getArrowInnerProps:L,getReferenceProps:N}}},1702:function(e,t,r){"use strict";r.d(t,{h:function(){return m}});var n=r(695),i=r(26245),o=r(55227),a=r(73935),s=r(67294),l=r(85893),[u,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",f=e=>(0,l.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),h=e=>{let{appendToParentPortal:t,children:r}
298=e,[o,h]=(0,s.useState)(null),p=(0,s.useRef)(null),[,m]=(0,s.useState)({});(0,s.useEffect)(()=>m({}),[]);let g=c(),v=(0,n.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,r=t&&null!=g?g:e.body;if(!r)return;p.current=e.createElement("div"),p.current.className=d,r.appendChild(p.current),m({});let n=p.current;return()=>{r.contains(n)&&r.removeChild(n)}},[o]);let y=(null==v?void 0:v.zIndex)?(0,l.jsx)(f,{zIndex:null==v?void 0:v.zIndex,children:r}):r;return p.current?(0,a.createPortal)((0,l.jsx)(u,{value:p.current,children:y}),p.current):(0,l.jsx)("span",{ref:e=>{e&&h(e)}})},p=e=>{let{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,c=null!=o?o:"undefined"!=typeof window?document.body:void 0,f=(0,s.useMemo)(()=>{let e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=d),e},[o]),[,h]=(0,s.useState)({});return((0,i.G)(()=>h({}),[]),(0,i.G)(()=>{if(f&&c)return c.appendChild(f),()=>{c.removeChild(f)}},[f,c]),c&&f)?(0,a.createPortal)((0,l.jsx)(u,{value:n?f:null,children:t}),f):null};
298function m(e){let{containerRef:t,...r}={appendToParentPortal:!0,...e};return t?(0,l.jsx)(p,{containerRef:t,...r}):(0,l.jsx)(h,{...r})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},695:function(e,t,r){"use strict";r.d(t,{L:function(){return a},h:function(){return s}});var n=r(55227),i=r(85893),[o,a]=(0,n.k)({strict:!1,name:"PortalManagerContext"});function s(e){let{children:t,zIndex:r}=e;return(0,i.jsx)(o,{value:{zIndex:r},children:t})}s.displayName="PortalManager"},92495:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(67294);function i(e){return n.Children.toArray(e).filter(e=>(0,n.isValidElement)(e))}},55227:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(67294);function i(e={}){let{name:t,strict:r=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,n.createContext)(s);return l.displayName=t,[l.Provider,function e(){var t;let s=(0,n.useContext)(l);if(!s&&r){let r=Error(null!=a?a:`${i} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw r.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,r,e),r}return s},l]}},76336:function(e,t,r){"use strict";r.d(t,{O:function(){return s},u:function(){return l}});var n=r(26245),i=r(67294),o=r(85893),a=(0,i.createContext)({getDocument:()=>document,getWindow:()=>window});function s({defer:e}={}){let[,t]=(0,i.useReducer)(e=>e+1,0);return(0,n.G)(()=>{e&&t()},[e]),(0,i.useContext)(a)}function l(e){let{children:t,environment:r,disabled:n}=e,s=(0,i.useRef)(null),l=(0,i.useMemo)(()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument.defaultView)?t:window}},[r]),u=!n||!r;return(0,o.jsxs)(a.Provider,{value:l,children:[t,u&&(0,o.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",l.displayName="EnvironmentProvider"},93694:function(e,t,r){"use strict";r.d(t,{h:function(){return a}});var n=r(67294),i=r(57134),o=r(61735);function a(e){let{isOpen:t,ref:r}=e,[a,s]=(0,n.useState)(t),[l,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{l||(s(t),u(!0))},[t,l,a]),(0,i.O)(()=>r.current,"animationend",()=>{s(t)}),{present:!(!t&&!a),onComplete(){var e;let t=new((0,o.kR)(r.current)).CustomEvent("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(t)}}}},35155:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(67294);function i(e,t=[]){let r=(0,n.useRef)(e);return(0,n.useEffect)(()=>{r.current=e}),(0,n.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}},85075:function(e,t,r){"use strict";r.d(t,{q:function(){return o}});var n=r(35155),i=r(67294);function o(e={}){let{onClose:t,onOpen:r,isOpen:o,id:a}=e,s=(0,n.W)(r),l=(0,n.W)(t),[u,c]=(0,i.useState)(e.defaultIsOpen||!1),d=void 0!==o?o:u,f=void 0!==o,h=(0,i.useId)(),p=null!=a?a:`disclosure-${h}`,m=(0,i.useCallback)(()=>{f||c(!1),null==l||l()},[f,l]),g=(0,i.useCallback)(()=>{f||c(!0),null==s||s()},[f,s]),v=(0,i.useCallback)(()=>{d?m():g()},[d,g,m]);return{isOpen:d,onOpen:g,onClose:m,onToggle:v,isControlled:f,getButtonProps:function(e={}){return{...e,"aria-expanded":d,"aria-controls":p,onClick(t){var r;null==(r=e.onClick)||r.call(e,t),v()}}},getDisclosureProps:function(e={}){return{...e,hidden:!d,id:p}}}}},57134:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=r(67294),i=r(35155);function o(e,t,r,o){let a=(0,i.W)(r);return(0,n.useEffect)(()=>{let n="function"==typeof e?e():null!=e?e:document;if(r&&n)return n.addEventListener(t,a,o),()=>{n.removeEventListener(t,a,o)}},[t,e,o,a,r]),()=>{let r="function"==typeof e?e():null!=e?e:document;null==r||r.removeEventListener(t,a,o)}}},32654:function(e,t,r){"use strict";r.d(t,{C:function(){return c},G:function(){return f}});var n=r(61735),i=r(59136),o=r(42657),a=r(57134),s=r(26245),l=r(52366),u=r(67294);function c(e,t){let{shouldFocus:r,visible:o,focusRef:a}=t,s=r&&!o;(0,l.r)(()=>{let t;if(!s||function(e){let t=e.current;if(!t)return!1;let r=(0,n.vY)(t);return!(!r||t.contains(r))&&!!(0,i.Wq)(r)}(e))return;let r=(null==a?void 0:a.current)||e.current;if(r)return t=requestAnimationFrame(()=>{r.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[s,e,a])}var d={preventScroll:!0,shouldFocus:!1};function f(e,t=d){let{focusRef:r,preventScroll:n,shouldFocus:i,visible:c}=t,f="current"in e?e.current:e,h=i&&c,p=(0,u.useRef)(h),m=(0,u.useRef)(c);(0,s.G)(()=>{!m.current&&c&&(p.current=h),m.current=c},[c,h]);let g=(0,u.useCallback)(()=>
298{if(c&&f&&p.current&&(p.current=!1,!f.contains(document.activeElement))){if(null==r?void 0:r.current)requestAnimationFrame(()=>{var e;null==(e=r.current)||e.focus({preventScroll:n})});else{let e=(0,o.t5)(f);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:n})})}}},[c,n,f,r]);(0,l.r)(()=>{g()},[g]),(0,a.O)(f,"transitionend",g)}},81103:function(e,t,r){"use strict";r.d(t,{lq:function(){return i},qq:function(){return o}});var n=r(67294);function i(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(r){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})}}function o(...e){return(0,n.useMemo)(()=>i(...e),e)}},26245:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(67294),i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},52366:function(e,t,r){"use strict";r.d(t,{r:function(){return i}});var n=r(67294);function i(e,t){let r=(0,n.useRef)(!1),i=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(r.current&&i.current)return e();i.current=!0},t),(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}},25432:function(e,t,r){"use strict";r.d(t,{Kn:function(){return i},PB:function(){return l},PP:function(){return d},Pu:function(){return a},Qm:function(){return u},ZK:function(){return o},cx:function(){return n},v0:function(){return c}});var n=(...e)=>e.filter(Boolean).join(" ");function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var o=e=>{let{condition:t,message:r}=e};function a(e,...t){return s(e)?e(...t):e}var s=e=>"function"==typeof e,l=e=>e?"":void 0,u=e=>!!e||void 0;function c(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function d(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},81136:function(e,t,r){"use strict";r.d(t,{$:function(){return d}});var n=r(70917),i=r(16554),o=r(77030),a=r(33179),s=r(59235),l=r(25432),u=r(85893),c=(0,n.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,i.G)((e,t)=>{let r=(0,o.mq)("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:d="0.45s",emptyColor:f="transparent",className:h,...p}=(0,a.Lr)(e),m=(0,l.cx)("chakra-spinner",h),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:f,borderLeftColor:f,animation:`${c} ${d} linear infinite`,...r};return(0,u.jsx)(s.m.div,{ref:t,__css:g,className:m,...p,children:n&&(0,u.jsx)(s.m.span,{srOnly:!0,children:n})})});d.displayName="Spinner"},33179:function(e,t,r){"use strict";r.d(t,{D:function(){return eM},Lr:function(){return eU},Ud:function(){return eB},ZR:function(){return eN},_6:function(){return er},c0:function(){return eT},cC:function(){return eA},fj:function(){return ej},gJ:function(){return et},iv:function(){return eL},k0:function(){return eF},oE:function(){return eC}});var n=r(25432),i=r(38554),o=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,s=(e,t)=>r=>{let i=String(t),s=o(i),l=a(i),u=e?`${e}.${l}`:l,c=(0,n.Kn)(r.__cssMap)&&u in r.__cssMap?r.__cssMap[u].varRef:t;return c=a(c),s?`${c} !important`:c};function l(e){let{scale:t,transform:r,compose:n}=e;return(e,i)=>{var o;let a=s(t,e)(i),l=null!=(o=null==r?void 0:r(a,i))?o:a;return n&&(l=n(l,i)),l}}var u=(...e)=>t=>e.reduce((e,t)=>t(e),t);function c(e,t){return r=>{let n={property:r,scale:e};return n.transform=l({scale:e,transform:t}),n}}var d=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t,f=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],h={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},p={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"}
298,m={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},g={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},v=new Set(Object.values(g)),y=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),b=e=>e.trim(),x=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),_=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},E=e=>t=>`${e}(${t})`,S={filter:e=>"auto"!==e?e:h,backdropFilter:e=>"auto"!==e?e:p,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":S.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...f].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...f].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=_(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||y.has(e))return e;if(!(x(e)||y.has(e)))return`url('${e}')`;let r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=null==r?void 0:r[1],i=null==r?void 0:r[2];if(!n||!i)return e;let o=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=i.split(",").map(b).filter(Boolean);if((null==s?void 0:s.length)===0)return e;let l=a in g?g[a]:a;s.unshift(l);let u=s.map(e=>{if(v.has(e))return e;let r=e.indexOf(" "),[n,i]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=x(i)?i:i&&i.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${o}(${u.join(", ")})`})(e,null!=t?t:{}),blur:E("blur"),opacity:E("opacity"),brightness:E("brightness"),contrast:E("contrast"),dropShadow:E("drop-shadow"),grayscale:E("grayscale"),hueRotate:e=>E("hue-rotate")(S.degree(e)),invert:E("invert"),saturate:E("saturate"),sepia:E("sepia"),bgImage:e=>null==e?e:x(e)||y.has(e)?e:`url(${e})`,outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:r,divide:n}=null!=(t=m[e])?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},w={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),gradients:c("gradients",S.gradient),radii:c("radii",S.px),space:c("space",u(S.vh,S.px)),spaceT:c("space",u(S.vh,S.px)),degreeT:e=>({property:e,transform:S.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:l({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:c("sizes",u(S.vh,S.px)),sizesT:c("sizes",u(S.vh,S.fraction)),shadows:c("shadows"),logical:function(e){let{property:t,scale:r,transform:n}=e;return{scale:r,property:d(t),transform:r?l({scale:r,compose:n}):n}},blur:c("blur",S.blur)},k={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:S.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:S.bgClip}};Object.assign(k,{bgImage:k.backgroundImage,bgImg:k.backgroundImage});var T={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};
298Object.assign(T,{rounded:T.borderRadius,roundedTop:T.borderTopRadius,roundedTopLeft:T.borderTopLeftRadius,roundedTopRight:T.borderTopRightRadius,roundedTopStart:T.borderStartStartRadius,roundedTopEnd:T.borderStartEndRadius,roundedBottom:T.borderBottomRadius,roundedBottomLeft:T.borderBottomLeftRadius,roundedBottomRight:T.borderBottomRightRadius,roundedBottomStart:T.borderEndStartRadius,roundedBottomEnd:T.borderEndEndRadius,roundedLeft:T.borderLeftRadius,roundedRight:T.borderRightRadius,roundedStart:T.borderInlineStartRadius,roundedEnd:T.borderInlineEndRadius,borderStart:T.borderInlineStart,borderEnd:T.borderInlineEnd,borderTopStartRadius:T.borderStartStartRadius,borderTopEndRadius:T.borderStartEndRadius,borderBottomStartRadius:T.borderEndStartRadius,borderBottomEndRadius:T.borderEndEndRadius,borderStartRadius:T.borderInlineStartRadius,borderEndRadius:T.borderInlineEndRadius,borderStartWidth:T.borderInlineStartWidth,borderEndWidth:T.borderInlineEndWidth,borderStartColor:T.borderInlineStartColor,borderEndColor:T.borderInlineEndColor,borderStartStyle:T.borderInlineStartStyle,borderEndStyle:T.borderInlineEndStyle});var I={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},C={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(C,{shadow:C.boxShadow});var A={filter:{transform:S.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",S.brightness),contrast:w.propT("--chakra-contrast",S.contrast),hueRotate:w.propT("--chakra-hue-rotate",S.hueRotate),invert:w.propT("--chakra-invert",S.invert),saturate:w.propT("--chakra-saturate",S.saturate),dropShadow:w.propT("--chakra-drop-shadow",S.dropShadow),backdropFilter:{transform:S.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",S.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",S.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",S.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",S.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",S.saturate)},O={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:S.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(O,{flexDir:O.flexDirection});var N={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},P={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:S.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},R={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?i:e;return{[`@media screen and (min-width: ${o})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?i:e;return{[`@media screen and (max-width: ${o})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",S.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(R,{w:R.width,h:R.height,minW:R.minWidth,maxW:R.maxWidth,minH:R.minHeight,maxH:R.maxHeight,overscroll:R.overscrollBehavior,overscrollX:R.overscrollBehaviorX,overscrollY:R.overscrollBehaviorY});var D={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")},L=(e=>{let t=new WeakMap;return(r,n,i,o)=>
298{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s}})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n<i.length&&e;n+=1)e=e[i[n]];return void 0===e?r:e}),F={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},j={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},M=(e,t,r)=>{let n={},i=L(e,t,{});for(let e in i)e in r&&null!=r[e]||(n[e]=i[e]);return n},B={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(B,{insetStart:B.insetInlineStart,insetEnd:B.insetInlineEnd});var U={ring:{transform:S.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},q={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(q,{m:q.margin,mt:q.marginTop,mr:q.marginRight,me:q.marginInlineEnd,marginEnd:q.marginInlineEnd,mb:q.marginBottom,ml:q.marginLeft,ms:q.marginInlineStart,marginStart:q.marginInlineStart,mx:q.marginX,my:q.marginY,p:q.padding,pt:q.paddingTop,py:q.paddingY,px:q.paddingX,pb:q.paddingBottom,pl:q.paddingLeft,ps:q.paddingInlineStart,paddingStart:q.paddingInlineStart,pr:q.paddingRight,pe:q.paddingInlineEnd,paddingEnd:q.paddingInlineEnd});var V={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},z={clipPath:!0,transform:w.propT("transform",S.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},$={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},G={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",S.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"}
298,property:"--chakra-line-clamp"}},W={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function H(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var Q=(e,...t)=>t.map(H).join(` ${e} `).replace(/calc/g,""),Y=(...e)=>`calc(${Q("+",...e)})`,X=(...e)=>`calc(${Q("-",...e)})`,K=(...e)=>`calc(${Q("*",...e)})`,Z=(...e)=>`calc(${Q("/",...e)})`,J=e=>{let t=H(e);return null==t||Number.isNaN(parseFloat(t))?K(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ee=Object.assign(e=>({add:(...t)=>ee(Y(e,...t)),subtract:(...t)=>ee(X(e,...t)),multiply:(...t)=>ee(K(e,...t)),divide:(...t)=>ee(Z(e,...t)),negate:()=>ee(J(e)),toString:()=>e.toString()}),{add:Y,subtract:X,multiply:K,divide:Z,negate:J});function et(e,t,r){let n=function(e,t=""){var r;return((r=function(e,t="-"){return e.replace(/\s+/g,t)}(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")?r:Number.isInteger(parseFloat(r.toString()))?r:r.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,r);return{variable:n,reference:`var(${n}${t?`, ${t}`:""})`}}function er(e,t){let r={};for(let n of t){if(Array.isArray(n)){let[t,i]=n;r[t]=et(`${e}-${t}`,i);continue}r[n]=et(`${e}-${n}`)}return r}function en(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"==typeof e?`${e}px`:e}var ei=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,eo=e=>Object.fromEntries(Object.entries(e).sort(ei));function ea(e){let t=eo(e);return Object.assign(Object.values(t),t)}function es(e){var t;return e?"number"==typeof(e=null!=(t=en(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function el(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${en(e)})`),t&&r.push("and",`(max-width: ${en(t)})`),r.join(" ")}var eu=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,ec=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,ed=(e,t)=>`${e}:focus-visible ${t}`,ef=(e,t)=>`${e}:focus-within ${t}`,eh=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,ep=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,em=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,eg=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,ev=e=>eb(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ey=e=>eb(t=>e(t,"~ &"),"[data-peer]",".peer"),eb=(e,...t)=>t.map(e).join(", "),ex={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ev(eu),_peerHover:ey(eu),_groupFocus:ev(ec),_peerFocus:ey(ec),_groupFocusVisible:ev(ed),_peerFocusVisible:ey(ed),_groupActive:ev(eh),_peerActive:ey(eh),_groupDisabled:ev(ep),_peerDisabled:ey(ep),_groupInvalid:ev(em),_peerInvalid:ey(em),_groupChecked:ev(eg),_peerChecked:ey(eg),_groupFocusWithin:ev(ef),_peerFocusWithin:ey(ef),_peerPlaceholderShown:ey((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},e_=Object.keys(ex);function eE(e,t){return et(String(e).replace(/\./g,"-"),void 0,t)}function eS(e,t,r={}){let{stop:n,getKey:i}=r;return function e(r,o=[]){var a;if("object"==typeof r&&null!=r&&!Array.isArray(r)||Array.isArray(r)){let s={};for(let[l,u]of Object.entries(r)){let c=null!=(a=null==i?void 0:i(l))?a:l,d=[...o,c];if(null==n?void 0:n(r,d))return t(r,o);
298s[c]=e(u,d)}return s}return t(r,o)}(e)}var ew=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],ek=e=>e_.includes(e)||"default"===e;function eT(e){var t;let r=function(e){let{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}(e),{cssMap:o,cssVars:a}=function(e,t){let r={},o={};for(let[a,s]of Object.entries(e)){let{isSemantic:l,value:u}=s,{variable:c,reference:d}=eE(a,null==t?void 0:t.cssVarPrefix);if(!l){if(a.startsWith("space")){let[e,...t]=a.split("."),r=`${e}.-${t.join(".")}`,n=ee.negate(u),i=ee.negate(d);o[r]={value:n,var:c,varRef:i}}r[c]=u,o[a]={value:u,var:c,varRef:d};continue}let f=r=>{let n=[String(a).split(".")[0],r].join(".");if(!e[n])return r;let{reference:i}=eE(n,null==t?void 0:t.cssVarPrefix);return i};r=i(r,Object.entries((0,n.Kn)(u)?u:{default:u}).reduce((e,[t,r])=>{var n;if(!r)return e;let i=f(`${r}`);return"default"===t?e[c]=i:e[null!=(n=null==ex?void 0:ex[t])?n:t]={[c]:i},e},{})),o[a]={value:d,var:c,varRef:d}}return{cssVars:r,cssMap:o}}(function({tokens:e,semanticTokens:t}){let r={};return eS(e,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})}),eS(t,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(ek)}),r}({tokens:function(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}(r,ew),semanticTokens:r.semanticTokens}),{cssVarPrefix:null==(t=r.config)?void 0:t.cssVarPrefix});return Object.assign(r,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...a},__cssMap:o,__breakpoints:function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let r=ea(e),i=Object.entries(e).sort(ei).map(([e,t],r,n)=>{var i;let[,o]=null!=(i=n[r+1])?i:[];return o=parseFloat(o)>0?es(o):void 0,{_minW:es(t),breakpoint:e,minW:t,maxW:o,maxWQuery:el(null,o),minWQuery:el(t),minMaxQuery:el(t,o)}}),o=new Set(Object.keys(eo(e))),a=Array.from(o.values());return{keys:o,normalized:r,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:eo(e),asArray:ea(e),details:i,get:e=>i.find(t=>t.breakpoint===e),media:[null,...r.map(e=>el(e)).slice(1)],toArrayValue(e){if(!(0,n.Kn)(e))throw Error("toArrayValue: value must be an object");let t=a.map(t=>{var r;return null!=(r=e[t])?r:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,r)=>{let n=a[r];return null!=n&&null!=t&&(e[n]=t),e},{})}}}(r.breakpoints)}),r}var eI=i({},k,T,I,O,R,A,U,P,N,{srOnly:{transform:e=>!0===e?F:"focusable"===e?j:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>M(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>M(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>M(t,e,r)}},B,C,q,W,G,V,z,D,$),eC=Object.keys(Object.assign({},q,R,O,N,B)),eA=[...Object.keys(eI),...e_],eO={...eI,...ex},eN=e=>e in eO,eP=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:i,media:o}=t.__breakpoints,a={};for(let s in e){let l=(0,n.Pu)(e[s],t);if(null==l)continue;if(!Array.isArray(l=(0,n.Kn)(l)&&r(l)?i(l):l)){a[s]=l;continue}let u=l.slice(0,o.length).length;for(let e=0;e<u;e+=1){let t=null==o?void 0:o[e];if(!t){a[s]=l[e];continue}a[t]=a[t]||{},null!=l[e]&&(a[t][s]=l[e])}}return a},eR=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),eD=(e,t)=>{var r,n;if(null==t)return t;let i=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},o=e=>{var t;return null!=(t=i(e))?t:e},[a,s]=function(e){let t=[],r="",n=!1;for(let i=0;i<e.length;i++){let o=e[i];"("===o?(n=!0,r+=o):")"===o?(n=!1,r+=o):","!==o||n?r+=o:(t.push(r),r="")}
298return(r=r.trim())&&t.push(r),t}(t);return t=null!=(n=null!=(r=i(a))?r:o(s))?n:o(t)},eL=e=>t=>(function(e){let{configs:t={},pseudos:r={},theme:o}=e,a=(e,s=!1)=>{var l,u,c;let d=(0,n.Pu)(e,o),f=eP(d)(o),h={};for(let e in f){let p=f[e],m=(0,n.Pu)(p,o);e in r&&(e=r[e]),eR(e,m)&&(m=eD(o,m));let g=t[e];if(!0===g&&(g={property:e}),(0,n.Kn)(m)){h[e]=null!=(l=h[e])?l:{},h[e]=i({},h[e],a(m,!0));continue}let v=null!=(c=null==(u=null==g?void 0:g.transform)?void 0:u.call(g,m,o,d))?c:m;v=(null==g?void 0:g.processResult)?a(v,!0):v;let y=(0,n.Pu)(null==g?void 0:g.property,o);if(!s&&(null==g?void 0:g.static)&&(h=i({},h,(0,n.Pu)(g.static,o))),y&&Array.isArray(y)){for(let e of y)h[e]=v;continue}if(y){"&"===y&&(0,n.Kn)(v)?h=i({},h,v):h[y]=v;continue}if((0,n.Kn)(v)){h=i({},h,v);continue}h[e]=v}return h};return a})({theme:t,pseudos:ex,configs:eI})(e);function eF(e){return e}function ej(e){return e}function eM(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function eB(e){return t=>{var r;let{variant:o,size:a,theme:s}=t,l=function(e){let t=e.__breakpoints;return function(e,r,o,a){var s,l,u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(o)?o:(0,n.Kn)(o)?u(o):null!=o?[o]:void 0);if(!d)return c;let f=d.length,h=1===f,p=!!e.parts;for(let o=0;o<f;o++){let u=t.details[o],f=t.details[function(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return -1}(d,o)],m=el(u.minW,null==f?void 0:f._minW),g=(0,n.Pu)(null==(s=e[r])?void 0:s[d[o]],a);if(g){if(p){null==(l=e.parts)||l.forEach(e=>{i(c,{[e]:h?g[e]:{[m]:g[e]}})});continue}if(!p){h?i(c,g):c[m]=g;continue}c[m]=g}}return c}}(s);return i({},(0,n.Pu)(null!=(r=e.baseStyle)?r:{},t),l(e,"sizes",a,t),l(e,"variants",o,t))}}function eU(e){return function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(e,["styleConfig","size","variant","colorScheme"])}},7634:function(e,t,r){"use strict";r.d(t,{LP:function(){return s},dQ:function(){return a},uP:function(){return o}});var n=r(48940),i=r(45161);function o(){let e=(0,i.If)(),t=(0,n.F)();return{...e,theme:t}}function a(e,t,r){let i=(0,n.F)();return s(e,t,r)(i)}function s(e,t,r){let n=Array.isArray(t)?t:[t],i=Array.isArray(r)?r:[r];return r=>{let o=i.filter(Boolean),a=n.map((t,n)=>{var i,a;return"breakpoints"===e?function(e,t,r){var n,i;if(null==t)return t;let o=t=>{var r,n;return null==(n=null==(r=e.__breakpoints)?void 0:r.asArray)?void 0:n[t]};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,t,null!=(i=o[n])?i:t):function(e,t,r){var n,i;if(null==t)return t;let o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.value};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,`${e}.${t}`,null!=(a=o[n])?a:t)});return Array.isArray(t)?a:a[0]}}},77030:function(e,t,r){"use strict";r.d(t,{jC:function(){return d},mq:function(){return c}});var n=r(7634),i=r(33179),o=r(21759),a=r(38554),s=r(67294),l=r(69590);function u(e,t={}){var r;let{styleConfig:u,...c}=t,{theme:d,colorMode:f}=(0,n.uP)(),h=e?(0,o.Wf)(d,`components.${e}`):void 0,p=u||h,m=a({theme:d,colorMode:f},null!=(r=null==p?void 0:p.defaultProps)?r:{},(0,o.YU)((0,o.CE)(c,["children"]))),g=(0,s.useRef)({});if(p){let e=(0,i.Ud)(p)(m);l(g.current,e)||(g.current=e)}return g.current}function c(e,t={}){return u(e,t)}function d(e,t={}){return u(e,t)}},85607:function(e,t,r){"use strict";r.d(t,{ZL:function(){return v},f6:function(){return f},eC:function(){return g}});var n=r(45161),i=r(67294);function o(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=(0,i.createContext)(void 0);return o.displayName=n,[o.Provider,function e(){var n;let a=(0,i.useContext)(o);if(!a&&t){let t=Error(r);throw t.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,t,e),t}return a},o]}var a=r(33179),s=r(21759),l=r(36597),u=r(11802),c=r(70917),d=r(85893);function f(e){let{cssVarsRoot:t,theme:r,children:n}=e,o=(0,i.useMemo)(()=>(0,a.c0)(r),[r]);return(0,d.jsxs)(u.a,{theme:o,children:[(0,d.jsx)(h,{root:t}),n]})}function h({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,d.jsx)(c.xB,{styles:e=>({[t]:e.__cssVars})})}var[p,m]=o({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function g(e){return o({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function v(){let{colorMode:e}=(0,n.If)();return(0,d.jsx)(c.xB,{styles:t=>{let r=(0,s.Wf)(t,"styles.global"),n=(0,l.Pu)(r,{theme:t,colorMode:e});if(n)return(0,a.iv)(n)(t)}})}},48940:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(11802),i=r(67294);function o(){let e=(0,i.useContext)(n.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}},59235:function(e,t,r){"use strict";r.d(t,{m:function(){return M}});
298var n,i,o=r(33179),a=new Set([...o.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),s=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function l(e){return s.has(e)||!a.has(e)}var u=r(45161),c=r(21759),d=r(36597),f=r(87462),h=r(67294),p=r(45042),m=/^((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|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,g=(0,p.Z)(function(e){return m.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),v=r(11802),y=r(70444),b=r(66292),x={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
298idRow: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},_=/[A-Z]|^ms/g,E=/_EMO_([^_]+?)_([^]*?)_EMO_/g,S=function(e){return 45===e.charCodeAt(1)},w=function(e){return null!=e&&"boolean"!=typeof e},k=(0,p.Z)(function(e){return S(e)?e:e.replace(_,"-$&").toLowerCase()}),T=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(E,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===x[e]||S(e)||"number"!=typeof t||0===t?t:t+"px"};function I(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+=I(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":w(a)&&(n+=k(o)+":"+T(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)w(a[s])&&(n+=k(o)+":"+T(o,a[s])+";");else{var l=I(e,t,a);switch(o){case"animation":case"animationName":n+=k(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,a=r(e);return n=o,I(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var C=/label:\s*([^\s;{]+)\s*(;|$)/g,A=r(27278),O=function(e){return"theme"!==e},N=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?g:O},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},R=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,y.hC)(t,r,n),(0,A.L)(function(){return(0,y.My)(t,r,n)}),null},D=(function e(t,r){var i,o,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==r&&(i=r.label,o=r.target);var l=P(t,r,a),u=l||N(s),c=!u("as");return function(){var d=arguments,p=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&p.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{p.push(d[0][0]);for(var m=d.length,g=1;g<m;g++)p.push(d[g],d[0][g])}var x=(0,v.w)(function(e,t,r){var i=c&&e.as||s,a="",d=[],f=e;if(null==e.theme){for(var m in f={},e)f[m]=e[m];f.theme=h.useContext(v.T)}"string"==typeof e.className?a=(0,y.fp)(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var g=function(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,a="";n=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=I(r,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=I(r,t,e[l]),o&&(a+=s[l]);C.lastIndex=0;for(var u="";null!==(i=C.exec(a));)u+="-"+i[1];return{name:(0,b.Z)(a)+u,styles:a,next:n}}(p.concat(d),t.registered,f);a+=t.key+"-"+g.name,void 0!==o&&(a+=" "+o);var x=c&&void 0===l?N(i):u,_={};for(var E in e)(!c||"as"!==E)&&x(E)&&(_[E]=e[E]);return _.className=a,_.ref=r,h.createElement(h.Fragment,null,h.createElement(R,{cache:t,serialized:g,isStringTag:"string"==typeof i}),h.createElement(i,_))});return x.displayName=void 0!==i?i:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=s,x.__emotion_styles=p,x.__emotion_forwardProp=l,Object.defineProperty(x,"toString",{value:function(){return"."+o}}),x.withComponent=function(t,n){return e(t,(0,f.Z)({},r,n,{shouldForwardProp:P(x,n,!0)})).apply(void 0,p)},x}}).bind();["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){D[e]=D(e)});var L=null!=(i=D.default)?i:D,F=({baseStyle:e})=>t=>{let{theme:r,css:n,__css:i,sx:a,...s}=t,l=(0,c.lw)(s,(e,t)=>(0,o.ZR)(t)),u=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let r={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in r&&delete r[t],r[t]=e[t]);return r}({},i,(0,d.Pu)(e,t),(0,c.YU)(l),a),f=(0,o.iv)(u)(t.theme);return n?[f,n]:f};function j(e,t){let{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=l);let i=F({baseStyle:r}),o=L(e,n)(i);
298return h.forwardRef(function(e,t){let{colorMode:r,forced:n}=(0,u.If)();return h.createElement(o,{ref:t,"data-theme":n?r:void 0,...e})})}var M=function(){let e=new Map;return new Proxy(j,{apply:(e,t,r)=>j(...r),get:(t,r)=>(e.has(r)||e.set(r,j(r)),e.get(r))})}()},16554:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(67294);function i(e){return(0,n.forwardRef)(e)}},21089:function(e,t,r){"use strict";r.d(t,{Qi:function(){return v},VW:function(){return b},OX:function(){return y}});var n=r(28488),i=r(67294),o=r(35155),a=r(52366),s=r(25432),l=r(15947),u=r(77672),c=r(59235),d=r(85893),f={initial:e=>{let{position:t}=e,r=["top","bottom"].includes(t)?"y":"x",n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},h=(0,i.memo)(e=>{let{id:t,message:r,onCloseComplete:h,onRequestRemove:p,requestClose:m=!1,position:g="bottom",duration:v=5e3,containerStyle:y,motionVariants:b=f,toastSpacing:x="0.5rem"}=e,[_,E]=(0,i.useState)(v),S=(0,l.hO)();(0,a.r)(()=>{S||null==h||h()},[S]),(0,a.r)(()=>{E(v)},[v]);let w=()=>{S&&p()};(0,i.useEffect)(()=>{S&&m&&p()},[S,m,p]),function(e,t){let r=(0,o.W)(e);(0,i.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{r()},t),()=>{e&&window.clearTimeout(e)}},[t,r])}(w,_);let k=(0,i.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:x,...y}),[y,x]),T=(0,i.useMemo)(()=>(0,n.sv)(g),[g]);return(0,d.jsx)(u.E.div,{layout:!0,className:"chakra-toast",variants:b,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>E(null),onHoverEnd:()=>E(v),custom:{position:g},style:T,children:(0,d.jsx)(c.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:k,children:(0,s.Pu)(r,{id:t,onClose:w})})})});h.displayName="ToastComponent";var p=r(937),m=r(51526),g=r(1702),[v,y]=(0,r(55227).k)({name:"ToastOptionsContext",strict:!1}),b=e=>{let t=(0,i.useSyncExternalStore)(p.fp.subscribe,p.fp.getState,p.fp.getState),{motionVariants:r,component:o=h,portalProps:a}=e,s=Object.keys(t).map(e=>{let i=t[e];return(0,d.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:(0,n.IW)(e),children:(0,d.jsx)(m.M,{initial:!1,children:i.map(e=>(0,d.jsx)(o,{motionVariants:r,...e},e.id))})},e)});return(0,d.jsx)(g.h,{...a,children:s})}},937:function(e,t,r){"use strict";r.d(t,{Cj:function(){return y},fp:function(){return p}});var n=r(28488),i=r(74153),o=r(7405),a=r(57670),s=r(25432),l=r(16554),u=r(59235),c=r(85893),d=(0,l.G)(function(e,t){let r=(0,a.uL)(),{status:n}=(0,a.oX)();return(0,c.jsx)(u.m.div,{ref:t,"data-status":n,...e,className:(0,s.cx)("chakra-alert__title",e.className),__css:r.title})});d.displayName="AlertTitle";var f=(0,l.G)(function(e,t){let r=(0,a.uL)(),{status:n}=(0,a.oX)(),i={display:"inline",...r.description};return(0,c.jsx)(u.m.div,{ref:t,"data-status":n,...e,className:(0,s.cx)("chakra-alert__desc",e.className),__css:i})});f.displayName="AlertDescription";var h=r(3949),p=function(e){let t=e,r=new Set,i=e=>{t=e(t),r.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{i(()=>e),r.delete(t)}),removeToast:(e,t)=>{i(r=>({...r,[t]:r[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let r=function(e,t={}){var r,n;m+=1;let i=null!=(r=t.id)?r:m,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>p.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:n,id:o}=r;return i(e=>{var t,i;let o=n.includes("top")?[r,...null!=(t=e[n])?t:[]]:[...null!=(i=e[n])?i:[],r];return{...e,[n]:o}}),o},update:(e,t)=>{e&&i(r=>{let i={...r},{position:o,index:a}=(0,n.Dn)(i,e);return o&&-1!==a&&(i[o][a]={...i[o][a],...t,message:v(t)}),i})},closeAll:({positions:e}={})=>{i(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,r)=>(e[r]=t[r].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{i(t=>{let r=(0,n.ym)(t,e);return r?{...t,[r]:t[r].map(t=>
298t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,n.Dn)(p.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),m=0,g=e=>{let{status:t,variant:r="solid",id:n,title:a,isClosable:s,onClose:l,description:p,colorScheme:m,icon:g}=e,v=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,c.jsxs)(i.b,{addRole:!1,status:t,variant:r,id:null==v?void 0:v.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:m,children:[(0,c.jsx)(o.z,{children:g}),(0,c.jsxs)(u.m.div,{flex:"1",maxWidth:"100%",children:[a&&(0,c.jsx)(d,{id:null==v?void 0:v.title,children:a}),p&&(0,c.jsx)(f,{id:null==v?void 0:v.description,display:"block",children:p})]}),s&&(0,c.jsx)(h.P,{size:"sm",onClick:l,position:"absolute",insetEnd:1,top:1})]})};function v(e={}){let{render:t,toastComponent:r=g}=e;return n=>"function"==typeof t?t({...n,...e}):(0,c.jsx)(r,{...n,...e})}function y(e,t){let r=r=>{var n;return{...t,...r,position:function(e,t){var r;let n=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==i?void 0:i[t])?r:n}(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{let t=r(e),n=v(t);return p.notify(n,t)};return n.update=(e,t)=>{p.update(e,r(t))},n.promise=(e,t)=>{let r=n({...t.loading,status:"loading",duration:null});e.then(e=>n.update(r,{status:"success",duration:5e3,...(0,s.Pu)(t.success,e)})).catch(e=>n.update(r,{status:"error",duration:5e3,...(0,s.Pu)(t.error,e)}))},n.closeAll=p.closeAll,n.close=p.close,n.isActive=p.isActive,n}},28488:function(e,t,r){"use strict";r.d(t,{Dn:function(){return i},IW:function(){return s},sv:function(){return a},ym:function(){return o}});var n=(e,t)=>e.find(e=>e.id===t);function i(e,t){let r=o(e,t),n=r?e[r].findIndex(e=>e.id===t):-1;return{position:r,index:n}}function o(e,t){for(let[r,i]of Object.entries(e))if(n(i,t))return r}function a(e){let t=e.includes("right"),r=e.includes("left"),n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function s(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,r=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,n=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:r,right:n,left:i}}},52094:function(e,t,r){"use strict";r.d(t,{Lj:function(){return n},Sh:function(){return a},js:function(){return o},p$:function(){return s}});var n={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},i={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function o(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return i.slideRight;case"left":return i.slideLeft;case"bottom":return i.slideDown;case"top":return i.slideUp}}var a={enter:{duration:.2,ease:n.easeOut},exit:{duration:.1,ease:n.easeIn}},s={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})}},80438:function(e,t,r){"use strict";r.d(t,{R:function(){return c},X:function(){return u}});var n=r(52094),i=r(25432),o=r(51526),a=r(77672),s=r(67294),l=r(85893),u={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:i,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:null!=(a=null==r?void 0:r.exit)?a:n.p$.exit(n.Sh.exit,o),transitionEnd:null==i?void 0:i.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var i;return{opacity:1,x:0,y:0,transition:null!=(i=null==e?void 0:e.enter)?i:n.p$.enter(n.Sh.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:i,reverse:o,delay:a})=>{var s;let l={x:t,y:e};return{opacity:0,transition:null!=(s=null==r?void 0:r.exit)?s:n.p$.exit(n.Sh.exit,a),...o?{...l,transitionEnd:null==i?void 0:i.exit}:{transitionEnd:{...l,...null==i?void 0:i.exit}}}}}},c=(0,s.forwardRef)(function(e,t){let{unmountOnExit:r,in:n,reverse:s=!0,className:c,offsetX:d=0,offsetY:f=8,transition:h,transitionEnd:p,delay:m,...g}=e,v=!r||n&&r,y=n||r?"enter":"exit",b={offsetX:d,offsetY:f,reverse:s,transition:h,transitionEnd:p,delay:m};return(0,l.jsx)(o.M,{custom:b,children:v&&(0,l.jsx)(a.E.div,{ref:t,className:(0,i.cx)("chakra-offset-slide",c),custom:b,...u,animate:y,...g})})});c.displayName="SlideFade"},36597:function(e,t,r){"use strict";function n(e,...t){return"function"==typeof e?e(...t):e}function i(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}r.d(t,{v0:function(){return i},Pu:function(){return n}})},21759:function(e,t,r){"use strict";function n(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}r.d(t,{CE:function(){return n},Wf:function(){return i},YU:function(){return a},lw:function(){return o}}),r(38554);var i=(e=>{let t=new WeakMap;return(r,n,i,o)=>
298{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s}})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n<i.length&&e;n+=1)e=e[i[n]];return void 0===e?r:e});function o(e,t){let r={};return Object.keys(e).forEach(n=>{let i=e[n];t(i,n,e)&&(r[n]=i)}),r}var a=e=>o(e,e=>null!=e)},82729:function(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,{_:function(){return n}})},70093:function(e,t,r){"use strict";r.d(t,{g7:function(){return u}});let n=null,i={},o=1;function a(e){try{return e()}catch(e){}}let s="@wry/context:Slot",l=a(()=>globalThis)||a(()=>global)||Object.create(null),u=l[s]||Array[s]||function(e){try{Object.defineProperty(l,s,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){let o={__proto__:null,[this.id]:e},a=n;n={parent:a,slots:o};try{return t.apply(i,r)}finally{n=a}}static bind(e){let t=n;return function(){let r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{let i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}}),{bind:c,noContext:d}=u},30020:function(e,t,r){"use strict";r.d(t,{D:function(){return s}});let{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return function e(t,r){if(t===r)return!0;let a=n.call(t);if(a!==n.call(r))return!1;switch(a){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(d(t,r))return!0;let n=l(t),o=l(r),a=n.length;if(a!==o.length)return!1;for(let e=0;e<a;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<a;++i){let o=n[i];if(!e(t[o],r[o]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(d(t,r))return!0;let n=t.entries(),i="[object Map]"===a;for(;;){let t=n.next();if(t.done)break;let[o,a]=t.value;if(!r.has(o)||i&&!e(a,r.get(o)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=o.call(t);if(e!==o.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,c)}}return!1}(e,t)}finally{a.clear()}}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}let c="{ [native code] }";function d(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},51526:function(e,t,r){"use strict";r.d(t,{M:function(){return y}});var n=r(85893),i=r(67294),o=r(58868);function a(){let e=(0,i.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var s=r(26166),l=r(240),u=r(96681),c=r(16014);class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t}){let r=(0,i.useId)(),o=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,i.useContext)(c._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:n,top:i,left:l}=a.current;if(t||!o.current||!e||!n)return;o.current.dataset.motionPopId=r;let u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
299          [data-motion-pop-id="${r}"] {
300            position: absolute !important;
301            width: ${e}px !important;
302            height: ${n}px !important;
303            top: ${i}px !important;
304            left: ${l}px !important;
305          }
306        `),()=>{document.head.removeChild(u)}},[t]),(0,n.jsx)(d,{isPresent:t,childRef:o,sizeRef:a,children:i.cloneElement(e,{ref:o})})}let h=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:a,presenceAffectsLayout:s,mode:c})=>{let d=(0,u.h)(p),h=(0,i.useId)(),m=(0,i.useMemo)(()=>({id:h,initial:t,isPresent:r,custom:a,onExitComplete:e=>
306{for(let t of(d.set(e,!0),d.values()))if(!t)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),s?[Math.random()]:[r]);return(0,i.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[r]),i.useEffect(()=>{r||d.size||!o||o()},[r]),"popLayout"===c&&(e=(0,n.jsx)(f,{isPresent:r,children:e})),(0,n.jsx)(l.O.Provider,{value:m,children:e})};function p(){return new Map}var m=r(25364),g=r(45487);let v=e=>e.key||"",y=({children:e,custom:t,initial:r=!0,onExitComplete:l,exitBeforeEnter:u,presenceAffectsLayout:c=!0,mode:d="sync"})=>{var f;(0,g.k)(!u,"Replace exitBeforeEnter with mode='wait'");let p=(0,i.useContext)(m.p).forceRender||function(){let e=a(),[t,r]=(0,i.useState)(0),n=(0,i.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,i.useCallback)(()=>s.Wi.postRender(n),[n]),t]}()[0],y=a(),b=function(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}(e),x=b,_=(0,i.useRef)(new Map).current,E=(0,i.useRef)(x),S=(0,i.useRef)(new Map).current,w=(0,i.useRef)(!0);if((0,o.L)(()=>{w.current=!1,function(e,t){e.forEach(e=>{let r=v(e);t.set(r,e)})}(b,S),E.current=x}),f=()=>{w.current=!0,S.clear(),_.clear()},(0,i.useEffect)(()=>()=>f(),[]),w.current)return(0,n.jsx)(n.Fragment,{children:x.map(e=>(0,n.jsx)(h,{isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:c,mode:d,children:e},v(e)))});x=[...x];let k=E.current.map(v),T=b.map(v),I=k.length;for(let e=0;e<I;e++){let t=k[e];-1!==T.indexOf(t)||_.has(t)||_.set(t,void 0)}return"wait"===d&&_.size&&(x=[]),_.forEach((e,r)=>{if(-1!==T.indexOf(r))return;let i=S.get(r);if(!i)return;let o=k.indexOf(r),a=e;a||(a=(0,n.jsx)(h,{isPresent:!1,onExitComplete:()=>{_.delete(r);let e=Array.from(S.keys()).filter(e=>!T.includes(e));if(e.forEach(e=>S.delete(e)),E.current=b.filter(t=>{let n=v(t);return n===r||e.includes(n)}),!_.size){if(!1===y.current)return;p(),l&&l()}},custom:t,presenceAffectsLayout:c,mode:d,children:i},v(i)),_.set(r,a)),x.splice(o,0,a)}),x=x.map(e=>{let t=e.key;return _.has(t)?e:(0,n.jsx)(h,{isPresent:!0,presenceAffectsLayout:c,mode:d,children:e},v(e))}),(0,n.jsx)(n.Fragment,{children:_.size?x:x.map(e=>(0,i.cloneElement)(e))})}},15947:function(e,t,r){"use strict";r.d(t,{hO:function(){return a},oO:function(){return o}});var n=r(67294),i=r(240);function o(){let e=(0,n.useContext)(i.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:o}=e,a=(0,n.useId)();return(0,n.useEffect)(()=>o(a),[]),!t&&r?[!1,()=>r&&r(a)]:[!0]}function a(){var e;return null===(e=(0,n.useContext)(i.O))||e.isPresent}},25364:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});let n=(0,r(67294).createContext)({})},16014:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});let n=(0,r(67294).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n=(0,r(67294).createContext)(null)},89727:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(22081);class i{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["read","resolveKeyframes","update","preRender","render","postRender"];function a(e,t){let r=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},l=o.reduce((e,t)=>(e[t]=function(e){let t=new i,r=new i,n=0,o=!1,a=!1,s=new WeakSet,l={schedule:(e,i=!1,a=!1)=>{let l=a&&o,u=l?t:r;return i&&s.add(e),u.add(e)&&l&&o&&(n=t.order.length),e},cancel:e=>{r.remove(e),s.delete(e)},process:i=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length)for(let r=0;r<n;r++){let n=t.order[r];s.has(n)&&(l.schedule(n),e()),n(i)}o=!1,a&&(a=!1,l.process(i))}};return l}(()=>r=!0),e),{}),u=e=>{l[e].process(s)},c=()=>{let i=n.c.useManualTiming?s.timestamp:performance.now();r=!1,s.delta=a?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(u),s.isProcessing=!1,r&&t&&(a=!1,e(c))},d=()=>{r=!0,a=!0,s.isProcessing||e(c)};return{schedule:o.reduce((e,t)=>
306{let n=l[t];return e[t]=(e,t=!1,i=!1)=>(r||d(),n.schedule(e,t,i)),e},{}),cancel:e=>o.forEach(t=>l[t].cancel(e)),state:s,steps:l}}},26166:function(e,t,r){"use strict";r.d(t,{Pn:function(){return o},S6:function(){return s},Wi:function(){return i},frameData:function(){return a}});var n=r(81662);let{schedule:i,cancel:o,state:a,steps:s}=(0,r(89727).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},77672:function(e,t,r){"use strict";let n,i;r.d(t,{E:function(){return i8}});var o,a,s=r(85893),l=r(67294),u=r(16014);let c=(0,l.createContext)({});var d=r(240),f=r(58868);let h=(0,l.createContext)({strict:!1}),p=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),m="data-"+p("framerAppearId"),{schedule:g,cancel:v}=(0,r(89727).Z)(queueMicrotask,!1);function y(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function b(e){return"string"==typeof e||Array.isArray(e)}function x(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let _=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],E=["initial",..._];function S(e){return x(e.animate)||E.some(t=>b(e[t]))}function w(e){return!!(S(e)||e.variants)}function k(e){return Array.isArray(e)?e.join(" "):e}let T={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"]},I={};for(let e in T)I[e]={isEnabled:t=>T[e].some(e=>!!t[e])};var C=r(11741),A=r(25364);let O=(0,l.createContext)({}),N=Symbol.for("motionComponentSymbol"),P=["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 R(e){if("string"!=typeof e||e.includes("-"));else if(P.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let D={},L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],F=new Set(L);function j(e,{layout:t,layoutId:r}){return F.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!D[e]||"opacity"===e)}let M=e=>!!(e&&e.getVelocity),B={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U=L.length,q=e=>t=>"string"==typeof t&&t.startsWith(e),V=q("--"),z=q("var(--"),$=e=>!!z(e)&&G.test(e.split("/*")[0].trim()),G=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,W=(e,t)=>t&&"number"==typeof e?t.transform(e):e,H=(e,t,r)=>r>t?t:r<e?e:r,Q={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Y={...Q,transform:e=>H(0,1,e)},X={...Q,default:1},K=e=>Math.round(1e5*e)/1e5,Z=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,J=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function et(e){return"string"==typeof e}let er=e=>({test:t=>et(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),en=er("deg"),ei=er("%"),eo=er("px"),ea=er("vh"),es=er("vw"),el={...ei,parse:e=>ei.parse(e)/100,transform:e=>ei.transform(100*e)},eu={...Q,transform:Math.round},ec={borderWidth:eo,borderTopWidth:eo,borderRightWidth:eo,borderBottomWidth:eo,borderLeftWidth:eo,borderRadius:eo,radius:eo,borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomRightRadius:eo,borderBottomLeftRadius:eo,width:eo,maxWidth:eo,height:eo,maxHeight:eo,size:eo,top:eo,right:eo,bottom:eo,left:eo,padding:eo,paddingTop:eo,paddingRight:eo,paddingBottom:eo,paddingLeft:eo,margin:eo,marginTop:eo,marginRight:eo,marginBottom:eo,marginLeft:eo,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:X,scaleX:X,scaleY:X,scaleZ:X,skew:en,skewX:en,skewY:en,distance:eo,translateX:eo,translateY:eo,translateZ:eo,x:eo,y:eo,z:eo,perspective:eo,transformPerspective:eo,opacity:Y,originX:el,originY:el,originZ:eo,zIndex:eu,backgroundPositionX:eo,backgroundPositionY:eo,fillOpacity:Y,strokeOpacity:Y,numOctaves:eu};function ed(e,t,r,n){let{style:i,vars:o,transform:a,transformOrigin:s}
306=e,l=!1,u=!1,c=!0;for(let e in t){let r=t[e];if(V(e)){o[e]=r;continue}let n=ec[e],d=W(r,n);if(F.has(e)){if(l=!0,a[e]=d,!c)continue;r!==(n.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,s[e]=d):i[e]=d}if(!t.transform&&(l||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let t=0;t<U;t++){let r=L[t];if(void 0!==e[r]){let t=B[r]||r;o+=`${t}(${e[r]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}(e.transform,r,c,n):i.transform&&(i.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;i.transformOrigin=`${e} ${t} ${r}`}}let ef=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eh(e,t,r){for(let n in t)M(t[n])||j(n,r)||(e[n]=t[n])}let ep=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 em(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ep.has(e)}let eg=e=>!em(e);try{(o=require("@emotion/is-prop-valid").default)&&(eg=e=>e.startsWith("on")?!em(e):o(e))}catch(e){}function ev(e,t,r){return"string"==typeof e?e:eo.transform(t+r*e)}let ey={offset:"stroke-dashoffset",array:"stroke-dasharray"},eb={offset:"strokeDashoffset",array:"strokeDasharray"};function ex(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(ed(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:p,dimensions:m}=e;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){let n=ev(t,e.x,e.width),i=ev(r,e.y,e.height);return`${n} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==r&&(h.y=r),void 0!==n&&(h.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?ey:eb;e[o.offset]=eo.transform(-n);let a=eo.transform(t),s=eo.transform(r);e[o.array]=`${a} ${s}`}(h,a,s,l,!1)}let e_=()=>({...ef(),attrs:{}}),eE=e=>"string"==typeof e&&"svg"===e.toLowerCase();function eS(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 ew=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 ek(e,t,r,n){for(let r in eS(e,t,void 0,n),t.attrs)e.setAttribute(ew.has(r)?r:p(r),t.attrs[r])}function eT(e,t,r){var n;let{style:i}=e,o={};for(let a in i)(M(i[a])||t.style&&M(t.style[a])||j(a,e)||(null===(n=null==r?void 0:r.getValue(a))||void 0===n?void 0:n.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function eI(e,t,r){let n=eT(e,t,r);for(let r in e)(M(e[r])||M(t[r]))&&(n[-1!==L.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function eC(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}var eA=r(96681);let eO=e=>Array.isArray(e),eN=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eP=e=>eO(e)?e[e.length-1]||0:e;function eR(e){let t=M(e)?e.get():e;return eN(t)?t.toValue():t}let eD=e=>(t,r)=>{let n=(0,l.useContext)(c),i=(0,l.useContext)(d.O),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=eR(o[e]);let{initial:a,animate:s}=e,l=S(e),u=w(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!x(d)&&(Array.isArray(d)?d:[d]).forEac
306h(t=>{let r=eC(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]}),i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,i);return r?o():(0,eA.h)(o)};var eL=r(26166);let eF={useVisualState:eD({scrapeMotionValuesFromProps:eI,createRenderState:e_,onMount:(e,t,{renderState:r,latestValues:n})=>{eL.Wi.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),eL.Wi.render(()=>{ex(r,n,{enableHardwareAcceleration:!1},eE(t.tagName),e.transformTemplate),ek(t,r)})}})},ej={useVisualState:eD({scrapeMotionValuesFromProps:eT,createRenderState:ef})};function eM(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let eB=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eU(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let eq=e=>t=>eB(t)&&e(t,eU(t));function eV(e,t,r,n){return eM(e,t,eq(r),n)}let ez=(e,t)=>r=>t(e(r)),e$=(...e)=>e.reduce(ez);function eG(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eW=eG("dragHorizontal"),eH=eG("dragVertical");function eQ(e){let t=!1;if("y"===e)t=eH();else if("x"===e)t=eW();else{let e=eW(),r=eH();e&&r?t=()=>{e(),r()}
306:(e&&e(),r&&r())}return t}function eY(){let e=eQ(!0);return!e||(e(),!1)}class eX{constructor(e){this.isMounted=!1,this.node=e}update(){}}function eK(e,t){let r=t?"onHoverStart":"onHoverEnd";return eV(e.current,t?"pointerenter":"pointerleave",(n,i)=>{if("touch"===n.pointerType||eY())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);let a=o[r];a&&eL.Wi.postRender(()=>a(n,i))},{passive:!e.getProps()[r]})}class eZ extends eX{mount(){this.unmount=e$(eK(this.node,!0),eK(this.node,!1))}unmount(){}}class eJ extends eX{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=e$(eM(this.node.current,"focus",()=>this.onFocus()),eM(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let e0=(e,t)=>!!t&&(e===t||e0(e,t.parentElement));var e1=r(81662);function e2(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,eU(r))}class e5 extends eX{constructor(){super(...arguments),this.removeStartListeners=e1.Z,this.removeEndListeners=e1.Z,this.removeAccessibleListeners=e1.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=eV(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps(),o=i||e0(this.node.current,e.target)?r:n;o&&eL.Wi.update(()=>o(e,t))},{passive:!(r.onTap||r.onPointerUp)}),i=eV(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=e$(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eM(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eM(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&e2("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&eL.Wi.postRender(()=>r(e,t))})}),e2("down",(e,t)=>{this.startPress(e,t)}))}),t=eM(this.node.current,"blur",()=>{this.isPressing&&e2("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=e$(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&eL.Wi.postRender(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eY()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&eL.Wi.postRender(()=>r(e,t))}mount(){let e=this.node.getProps(),t=eV(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=eM(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=e$(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let e3=new WeakMap,e4=new WeakMap,e6=e=>{let t=e3.get(e.target);t&&t(e)},e8=e=>{e.forEach(e6)},e9={some:0,all:1};class e7 extends eX{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:e9[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;e4.has(r)||e4.set(r,{});let n=e4.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(e8,{root:e,...t})),n[i]}(t);return e3.set(e,r),n.observe(e),()=>{e3.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(){}}function te(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 tt(e,t,r){let n=e.getProps();return eC(n,t,void 0!==r?r:n.custom,function(e){let t={};
306return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}let tr=e=>1e3*e,tn=e=>e/1e3,ti={type:"spring",stiffness:500,damping:25,restSpeed:10},to=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ta={type:"keyframes",duration:.8},ts={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tl=(e,{keyframes:t})=>t.length>2?ta:F.has(e)?e.startsWith("scale")?to(t[1]):ti:ts;function tu(e,t){return e[t]||e.default||e}var tc=r(22081);let td={current:!1},tf=e=>null!==e;function th(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(tf),o=t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}function tp(){n=void 0}let tm={now:()=>(void 0===n&&tm.set(eL.frameData.isProcessing||tc.c.useManualTiming?eL.frameData.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(tp)}},tg=e=>/^0[^.\s]+$/u.test(e);var tv=r(45487);let ty=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tx=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),t_=e=>e===Q||e===eo,tE=(e,t)=>parseFloat(e.split(", ")[t]),tS=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/u);if(i)return tE(i[1],t);{let t=n.match(/^matrix\((.+)\)$/u);return t?tE(t[1],e):0}},tw=new Set(["x","y","z"]),tk=L.filter(e=>!tw.has(e)),tT={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:tS(4,13),y:tS(5,14)};tT.translateX=tT.x,tT.translateY=tT.y;let tI=e=>t=>t.test(e),tC=[Q,eo,ei,en,es,ea,{test:e=>"auto"===e,parse:e=>e}],tA=e=>tC.find(tI(e)),tO=new Set,tN=!1,tP=!1;function tR(){if(tP){let e=Array.from(tO).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return tk.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)})}tP=!1,tN=!1,tO.forEach(e=>e.complete()),tO.clear()}function tD(){tO.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tP=!0)})}class tL{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?(tO.add(this),tN||(tN=!0,eL.Wi.read(tD),eL.Wi.resolveKeyframes(tR))):(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),tO.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tO.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tF=(e,t)=>r=>!!(et(r)&&ee.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tj=(e,t,r)=>n=>{if(!et(n))return n;let[i,o,a,s]=n.match(Z);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tM=e=>H(0,255,e),tB={...Q,transform:e=>Math.round(tM(e))},tU={test:tF("rgb","red"),parse:tj("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tB.transform(e)+", "+tB.transform(t)+", "+tB.transform(r)+", "+K(Y.transform(n))+")"},tq={test:tF("#"),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
306a:i?parseInt(i,16)/255:1}},transform:tU.transform},tV={test:tF("hsl","hue"),parse:tj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ei.transform(K(t))+", "+ei.transform(K(r))+", "+K(Y.transform(n))+")"},tz={test:e=>tU.test(e)||tq.test(e)||tV.test(e),parse:e=>tU.test(e)?tU.parse(e):tV.test(e)?tV.parse(e):tq.parse(e),transform:e=>et(e)?e:e.hasOwnProperty("red")?tU.transform(e):tV.transform(e)},t$="number",tG="color",tW=/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 tH(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,a=t.replace(tW,e=>(tz.test(e)?(n.color.push(o),i.push(tG),r.push(tz.parse(e))):e.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(e)):(n.number.push(o),i.push(t$),r.push(parseFloat(e))),++o,"${}")).split("${}");return{values:r,split:a,indexes:n,types:i}}function tQ(e){return tH(e).values}function tY(e){let{split:t,types:r}=tH(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===t$?i+=K(e[o]):t===tG?i+=tz.transform(e[o]):i+=e[o]}return i}}let tX=e=>"number"==typeof e?0:e,tK={test:function(e){var t,r;return isNaN(e)&&et(e)&&((null===(t=e.match(Z))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(J))||void 0===r?void 0:r.length)||0)>0},parse:tQ,createTransformer:tY,getAnimatableNone:function(e){let t=tQ(e);return tY(e)(t.map(tX))}},tZ=new Set(["brightness","contrast","saturate","opacity"]);function tJ(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(Z)||[];if(!n)return e;let i=r.replace(n,""),o=tZ.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let t0=/\b([a-z-]*)\(.*?\)/gu,t1={...tK,getAnimatableNone:e=>{let t=e.match(t0);return t?t.map(tJ).join(" "):e}},t2={...ec,color:tz,backgroundColor:tz,outlineColor:tz,fill:tz,stroke:tz,borderColor:tz,borderTopColor:tz,borderRightColor:tz,borderBottomColor:tz,borderLeftColor:tz,filter:t1,WebkitFilter:t1},t5=e=>t2[e];function t3(e,t){let r=t5(e);return r!==t1&&(r=tK),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let t4=new Set(["auto","none","0"]);class t6 extends tL{constructor(e,t,r,n){super(e,t,r,n,null==n?void 0:n.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&$(n)){let i=function e(t,r,n=1){(0,tv.k)(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=tb.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${null!=r?r:n}`,i]}(t);if(!i)return;let a=window.getComputedStyle(r).getPropertyValue(i);if(a){let e=a.trim();return ty(e)?parseFloat(e):e}return $(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(),!tx.has(r)||2!==e.length)return;let[n,i]=e,o=tA(n),a=tA(i);if(o!==a){if(t_(o)&&t_(a))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||tg(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||t4.has(t)||(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=t3(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tT[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.current)return;let i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);let o=n.length-1,a=n[o];n[o]=tT[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
306h(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}let t8=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(tK.test(e)||"0"===e)&&!e.startsWith("url("));class t9{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(tD(),tR()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:o,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;let o=e[e.length-1],a=t8(i,t),s=t8(o,t);return(0,tv.K)(a===s,`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.`),!!a&&!!s&&(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&&n)}(e,r,n,i)){if(td.current||!o){null==s||s(th(e,this.options,t)),null==a||a(),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)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function t7(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}function re(e,t){return e*Math.sqrt(1-t*t)}let rt=["duration","bounce"],rr=["stiffness","damping","mass"];function rn(e,t){return t.some(t=>void 0!==e[t])}function ri({keyframes:e,restDelta:t,restSpeed:r,...n}){let i;let o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rn(e,rr)&&rn(e,rt)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;(0,tv.K)(e<=tr(10),"Spring duration must be 10 seconds or less");let a=1-t;a=H(.05,1,a),e=H(.01,10,tn(e)),a<1?(i=t=>{let n=t*a,i=n*e;return .001-(n-r)/re(t,a)*Math.exp(-i)},o=t=>{let n=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=re(Math.pow(t,2),a);return(n*r+r-o)*Math.exp(-n)*(-i(t)+.001>0?-1:1)/s}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let s=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=tr(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-tn(n.velocity||0)}),p=f||0,m=u/(2*Math.sqrt(l*c)),g=a-o,v=tn(Math.sqrt(l/c)),y=5>Math.abs(g);if(r||(r=y?.01:2),t||(t=y?.005:.5),m<1){let e=re(v,m);i=t=>a-Math.exp(-m*v*t)*((p+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===m)i=e=>a-Math.exp(-v*e)*(g+(p+v*g)*e);else{let e=v*Math.sqrt(m*m-1);i=t=>{let r=Math.exp(-m*v*t),n=Math.min(e*t,300);return a-r*((p+m*v*g)*Math.sinh(n)+e*g*Math.cosh(n))/e}}return{calculatedDuration:h&&d||null,next:e=>{let n=i(e);if(h)s.done=e>=d;else{let o=p;0!==e&&(o=m<1?t7(i,e,n):0);let l=Math.abs(o)<=r,u=Math.abs(a-n)<=t;s.done=l&&u}return s.value=s.done?a:n,s}}}function ro({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f;let h=e[0],p={done:!1,value:h},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,g=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,v=r*t,y=h+v,b=void 0===a?y:a(y);b!==y&&(v=b-h);let x=e=>-v*Math.exp(-e/n),_=e=>b+x(e),E=e=>{let t=x(e),r=_(e);p.done=Math.abs(t)<=u,p.value=p.done?b:r},S=e=>{m(p.value)&&(d=e,f=ri({keyframes:[p.value,g(p.value)],velocity:t7(_,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,E(e),S(e)),void 0!==d&&e>=d)?f.next(e-d):(t||E(e),p)}}}let ra=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function rs(e,t,r,n){if(e===t&&r===n)return e1.Z;let i=t=>(function(e,t,r,n,i){let o,a;let s=0;do(o=ra(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:ra(i(e),t,n)}let rl=rs(.42,0,1,1),ru=rs(0,0,.58,1),rc=rs(.42,0,.58,1),rd=e=>
306Array.isArray(e)&&"number"!=typeof e[0],rf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rh=e=>t=>1-e(1-t),rp=e=>1-Math.sin(Math.acos(e)),rm=rh(rp),rg=rf(rp),rv=rs(.33,1.53,.69,.99),ry=rh(rv),rb=rf(ry),rx={linear:e1.Z,easeIn:rl,easeInOut:rc,easeOut:ru,circIn:rp,circInOut:rg,circOut:rm,backIn:ry,backInOut:rb,backOut:rv,anticipate:e=>(e*=2)<1?.5*ry(e):.5*(2-Math.pow(2,-10*(e-1)))},r_=e=>{if(Array.isArray(e)){(0,tv.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return rs(t,r,n,i)}return"string"==typeof e?((0,tv.k)(void 0!==rx[e],`Invalid easing type '${e}'`),rx[e]):e},rE=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},rS=(e,t,r)=>e+(t-e)*r;function rw(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}let rk=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},rT=[tq,tU,tV],rI=e=>rT.find(t=>t.test(e));function rC(e){let t=rI(e);(0,tv.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===tV&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=rw(s,n,e+1/3),o=rw(s,n,e),a=rw(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(r)),r}let rA=(e,t)=>{let r=rC(e),n=rC(t),i={...r};return e=>(i.red=rk(r.red,n.red,e),i.green=rk(r.green,n.green,e),i.blue=rk(r.blue,n.blue,e),i.alpha=rS(r.alpha,n.alpha,e),tU.transform(i))};function rO(e,t){return r=>r>0?t:e}function rN(e,t){return r=>rS(e,t,r)}function rP(e){return"number"==typeof e?rN:"string"==typeof e?$(e)?rO:tz.test(e)?rA:rL:Array.isArray(e)?rR:"object"==typeof e?tz.test(e)?rA:rD:rO}function rR(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>rP(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function rD(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=rP(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let rL=(e,t)=>{let r=tK.createTransformer(t),n=tH(e),i=tH(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?e$(rR(function(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let a=t.types[o],s=e.indexes[a][i[a]],l=null!==(r=e.values[s])&&void 0!==r?r:0;n[o]=l,i[a]++}return n}(n,i),i.values),r):((0,tv.K)(!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.`),rO(e,t))};function rF(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?rS(e,t,r):rP(e)(e,t)}function rj({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=rd(n)?n.map(r_):r_(n),o={done:!1,value:t[0]},a=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if((0,tv.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let n=[],i=r||rF,o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);t&&(o=e$(Array.isArray(t)?t[r]||e1.Z:t,o)),n.push(o)}return n}(t,n,i),s=a.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=rE(e[r],e[r+1],t);return a[r](n)};return r?t=>l(H(e[0],e[o-1],t)):l}((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=rE(0,t,n);e.push(rS(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||rc).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}let rM=e=>{let t=({timestamp:t})=>e(t);return{start:()=>eL.Wi.update(t,!0),stop:()=>(0,eL.Pn)(t),now:()=>eL.frameData.isProcessing?eL.frameData.timestamp:tm.now()}},rB={decay:ro,inertia:ro,tween:rj,keyframes:rj,spring:ri},rU=e=>e/100;class rq extends t9{constructor({KeyframeResolver:e=tL,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>
306{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:r,motionValue:n,keyframes:i}=this.options,o=(e,t)=>this.onKeyframesResolved(e,t);r&&n&&n.owner?this.resolver=n.owner.resolveKeyframes(i,o,r,n):this.resolver=new e(i,o,r,n),this.resolver.scheduleResolve()}initPlayback(e){let t,r;let{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=this.options,l=rB[n]||rj;l!==rj&&"number"!=typeof e[0]&&(t=e$(rU,rF(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===u.calculatedDuration&&(u.calculatedDuration=function(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}(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;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:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);let{delay:d,repeat:f,repeatType:h,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-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=i;if(f){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,f+1))%2&&("reverse"===h?(r=1-r,p&&(r-=p/c)):"mirror"===h&&(b=o)),y=H(0,1,r)*c}let x=v?{done:!1,value:s[0]}:b.next(y);a&&(x.value=a(x.value));let{done:_}=x;v||null===l||(_=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return E&&void 0!==n&&(x.value=th(s,this.options,n)),m&&m(x.value),E&&this.finish(),x}get duration(){let{resolved:e}=this;return e?tn(e.calculatedDuration):0}get time(){return tn(this.currentTime)}set time(e){e=tr(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=tn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=rM,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=r),"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()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let rV=e=>
306Array.isArray(e)&&"number"==typeof e[0],rz=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,r$={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rz([0,.65,.55,1]),circOut:rz([.55,0,1,.45]),backIn:rz([.31,.01,.66,-.59]),backOut:rz([.33,1.53,.69,.99])};function rG(e){return rW(e)||r$.easeOut}function rW(e){if(e)return rV(e)?rz(e):Array.isArray(e)?e.map(rG):r$[e]}let rH=(a=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===i&&(i=a()),i)),rQ=new Set(["opacity","clipPath","filter","transform"]);class rY extends t9{constructor(e){super(e);let{name:t,motionValue:r,keyframes:n}=this.options;this.resolver=new t6(n,(e,t)=>this.onKeyframesResolved(e,t),t,r),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:i=300,times:o,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(null===(r=l.owner)||void 0===r?void 0:r.current))return!1;if("spring"===(n=this.options).type||"backgroundColor"===n.name||!function e(t){return!!(!t||"string"==typeof t&&t in r$||rV(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,...l}=this.options,u=function(e,t){let r=new rq({...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,l);1===(e=u.keyframes).length&&(e[1]=e[0]),i=u.duration,o=u.times,a=u.ease,s="keyframes"}let c=function(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=rW(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:a});return c.startTime=tm.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;l.set(th(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:s,ease:a,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return tn(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return tn(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=tr(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}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return e1.Z;let{animation:r}=t;r.timeline=e,r.onfinish=null}else this.pendingTimeline=e;return e1.Z}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;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:n,type:i,ease:o,times:a}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new rq({...l,keyframes:r,duration:n,type:i,ease:o,times:a,isGenerator:!0}),c=tr(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}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:a}=e;return rH()&&r&&rQ.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==i&&0!==o&&"inertia"!==a}}let rX=(e,t,r,n={},i,o)=>a=>{let s=tu(n,e)||{},l=s.delay||n.delay||0,{elapsed:u=0}=n;u-=tr(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>
306{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&(c={...c,...tl(e,c)}),c.duration&&(c.duration=tr(c.duration)),c.repeatDelay&&(c.repeatDelay=tr(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(td.current||tc.c.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){let e=th(c.keyframes,s);if(void 0!==e){eL.Wi.update(()=>{c.onUpdate(e),c.onComplete()});return}}return!o&&rY.supports(c)?new rY(c):new rq(c)};function rK(e){return!!(M(e)&&e.add)}function rZ(e,t){-1===e.indexOf(t)&&e.push(t)}function rJ(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class r0{constructor(){this.subscriptions=[]}add(e){return rZ(this.subscriptions,e),()=>rJ(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 r1=e=>!isNaN(parseFloat(e)),r2={current:void 0};class r5{constructor(e,t={}){this.version="11.1.9",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=tm.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.canTrackVelocity=r1(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tm.now()}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 r0);let r=this.events[e].add(t);return"change"===e?()=>{r(),eL.Wi.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 r2.current&&r2.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tm.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 r3(e,t){return new r5(e,t)}function r4(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t,u=e.getValue("willChange");n&&(a=n);let c=[],d=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||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let s={delay:r,elapsed:0,...tu(a||{},t)},f=!1;if(window.HandoffAppearAnimations){let r=e.getProps()[m];if(r){let e=window.HandoffAppearAnimations(r,t);
306null!==e&&(s.elapsed=e,f=!0)}}n.start(rX(t,n,i,e.shouldReduceMotion&&F.has(t)?{type:!1}:s,e,f));let h=n.animation;h&&(rK(u)&&(u.add(t),h.then(()=>u.remove(t))),c.push(h))}return s&&Promise.all(c).then(()=>{eL.Wi.update(()=>{s&&function(e,t){let{transitionEnd:r={},transition:n={},...i}=tt(e,t)||{};for(let t in i={...i,...r}){let r=eP(i[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,r3(r))}}(e,s)})}),c}function r6(e,t,r={}){var n;let i=tt(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 a=i?()=>Promise.all(r4(e,i,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(r8).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(r6(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+n,a,s,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(r.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(()=>t())}}function r8(e,t){return e.sortNodePosition(t)}let r9=[..._].reverse(),r7=_.length;function ne(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class nt extends eX{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=>r6(e,t,r)));else if("string"==typeof t)n=r6(e,t,r);else{let i="function"==typeof t?tt(e,t,r.custom):t;n=Promise.all(r4(e,i,r))}return n.then(()=>{eL.Wi.postRender(()=>{e.notify("AnimationComplete",t)})})})(e,t,r))),r={animate:ne(!0),whileInView:ne(),whileHover:ne(),whileTap:ne(),whileDrag:ne(),whileFocus:ne(),exit:ne()},n=!0,i=t=>(r,n)=>{var i;let o=tt(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 a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<r7;t++){var f;let h=r9[t],p=r[h],m=void 0!==a[h]?a[h]:s[h],g=b(m),v=h===o?p.isActive:null;!1===v&&(d=t);let y=m===s[h]&&m!==a[h]&&g;if(y&&n&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...c},!p.isActive&&null===v||!m&&!p.prevProp||x(m)||"boolean"==typeof m)continue;let _=(f=p.prevProp,("string"==typeof m?m!==f:!!Array.isArray(m)&&!te(m,f))||h===o&&p.isActive&&!y&&g||t>d&&g),E=!1,S=Array.isArray(m)?m:[m],w=S.reduce(i(h),{});!1===v&&(w={});let{prevResolvedValues:k={}}=p,T={...k,...w},I=t=>{_=!0,u.has(t)&&(E=!0,u.delete(t)),p.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in T){let t=w[e],r=k[e];if(!c.hasOwnProperty(e))(eO(t)&&eO(r)?te(t,r):t===r)?void 0!==t&&u.has(e)?I(e):p.protectedKeys[e]=!0:null!=t?I(e):u.add(e)}p.prevProp=m,p.prevResolvedValues=w,p.isActive&&(c={...c,...w}),n&&e.blockInitialAnimation&&(_=!1),_&&(!y||E)&&l.push(...S.map(e=>({animation:e,options:{type:h}})))}if(u.size){let t={};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 h=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(h=!1),n=!1,h?t(l):Promise.resolve()}return{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 a=o(t);for(let e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),x(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let nr=0;class nn extends eX{constructor(){super(...arguments),this.id=nr++}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(()=>
306t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let ni=(e,t)=>Math.abs(e-t);class no{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=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nl(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(ni(e.x,t.x)**2+ni(e.y,t.y)**2)>=3);if(!n&&!i)return;let{point:o}=r,{timestamp:a}=eL.frameData;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=na(t,this.transformPagePoint),eL.Wi.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=nl("pointercancel"===e.type?this.lastMoveEventInfo:na(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!eB(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let o=na(eU(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=eL.frameData;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,nl(o,this.history)),this.removeListeners=e$(eV(this.contextWindow,"pointermove",this.handlePointerMove),eV(this.contextWindow,"pointerup",this.handlePointerUp),eV(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eL.Pn)(this.updatePoint)}}function na(e,t){return t?{point:t(e.point)}:e}function ns(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nl({point:e},t){return{point:e,delta:ns(e,nu(t)),offset:ns(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=nu(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>tr(.1)));)r--;if(!n)return{x:0,y:0};let o=tn(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function nu(e){return e[e.length-1]}function nc(e){return e.max-e.min}function nd(e,t=0,r=.01){return Math.abs(e-t)<=r}function nf(e,t,r,n=.5){e.origin=n,e.originPoint=rS(t.min,t.max,e.origin),e.scale=nc(r)/nc(t),(nd(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=rS(r.min,r.max,e.origin)-e.originPoint,(nd(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nh(e,t,r,n){nf(e.x,t.x,r.x,n?n.originX:void 0),nf(e.y,t.y,r.y,n?n.originY:void 0)}function np(e,t,r){e.min=r.min+t.min,e.max=e.min+nc(t)}function nm(e,t,r){e.min=t.min-r.min,e.max=e.min+nc(t)}function ng(e,t,r){nm(e.x,t.x,r.x),nm(e.y,t.y,r.y)}function nv(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 ny(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 nb(e,t,r){return{min:nx(e,t),max:nx(e,r)}}function nx(e,t){return"number"==typeof e?e:e[t]||0}let n_=()=>({translate:0,scale:1,origin:0,originPoint:0}),nE=()=>({x:n_(),y:n_()}),nS=()=>({min:0,max:0}),nw=()=>({x:nS(),y:nS()});function nk(e){return[e("x"),e("y")]}function nT({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function nI(e){return void 0===e||1===e}function nC({scale:e,scaleX:t,scaleY:r}){return!nI(e)||!nI(t)||!nI(r)}function nA(e){return nC(e)||nO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nO(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function nN(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function nP(e,t=0,r=1,n,i){e.min=nN(e.min,t,r,n,i),e.max=nN(e.max,t,r,n,i)}function nR(e,{x:t,y:r}){nP(e.x,t.translate,t.scale,t.originPoint),nP(e.y,r.translate,r.scale,r.originPoint)}function nD(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function nL(e,t){e.min=e.min+t,e.max=e.max+t}function nF(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=rS(e.min,e.max,o);nP(e,t[r],t[n],a,t.scale)}let nj=["x","scaleX","originX"],nM=["y","scaleY","originY"];function nB(e,t){nF(e.x,t,nj),nF(e.y,t,nM)}function nU(e,t){return nT(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 nq=({current:e})=>e?e.ownerDocument.defaultView:null,nV=new WeakMap;
306class nz{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nw(),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 no(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eU(e,"page").point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eQ(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nk(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ei.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];if(n){let e=nc(n);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&eL.Wi.postRender(()=>i(e,t));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.openGlobalLock)return;let{offset:a}=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}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>nk(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:nq(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&&eL.Wi.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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!n$(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?rS(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?rS(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&&y(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:nv(e.x,r,i),y:nv(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:nb(e,"left","right"),y:nb(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nk(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||!y(t))return!1;let n=t.current;(0,tv.k)(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=nU(e,r),{scroll:i}=t;return i&&(nL(n.x,i.offset.x),nL(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:ny((e=i.layout.layoutBox).x,o.x),y:ny(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}}(a));this.hasMutatedConstraints=!!e,e&&(a=nT(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(nk(a=>
306{if(!n$(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(rX(e,r,0,t,this.visualElement))}stopAnimation(){nk(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nk(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){nk(t=>{let{drag:r}=this.getProps();if(!n$(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]-rS(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!y(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nk(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=nc(e),i=nc(t);return i>n?r=rE(t.min,t.max-n,e.min):n>i&&(r=rE(e.min,e.max-i,t.min)),H(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(),nk(t=>{if(!n$(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(rS(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;nV.set(this.visualElement,this);let e=eV(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();y(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();let i=eM(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nk(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:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function n$(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class nG extends eX{constructor(e){super(e),this.removeGroupControls=e1.Z,this.removeListeners=e1.Z,this.controls=new nz(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e1.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let nW=e=>(t,r)=>{e&&eL.Wi.postRender(()=>e(t,r))};class nH extends eX{constructor(){super(...arguments),this.removePointerDownListener=e1.Z}onPointerDown(e){this.session=new no(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nq(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nW(e),onStart:nW(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&eL.Wi.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=eV(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nQ=r(15947);let nY={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nX(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nK={correct:(e,t)=>
306{if(!t.target)return e;if("string"==typeof e){if(!eo.test(e))return e;e=parseFloat(e)}let r=nX(e,t.target.x),n=nX(e,t.target.y);return`${r}% ${n}%`}};class nZ extends l.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(D,n0),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()})),nY.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?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||eL.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),g.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 nJ(e){let[t,r]=(0,nQ.oO)(),n=(0,l.useContext)(A.p);return(0,s.jsx)(nZ,{...e,layoutGroup:n,switchLayoutGroup:(0,l.useContext)(O),isPresent:t,safeToRemove:r})}let n0={borderRadius:{...nK,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nK,borderTopRightRadius:nK,borderBottomLeftRadius:nK,borderBottomRightRadius:nK,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=tK.parse(e);if(n.length>5)return e;let i=tK.createTransformer(e),o="number"!=typeof n[0]?1:0,a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+o]/=a,n[1+o]/=s;let l=rS(a,s,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}},n1=["TopLeft","TopRight","BottomLeft","BottomRight"],n2=n1.length,n5=e=>"string"==typeof e?parseFloat(e):e,n3=e=>"number"==typeof e||eo.test(e);function n4(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let n6=n9(0,.5,rm),n8=n9(.5,.95,e1.Z);function n9(e,t,r){return n=>n<e?0:n>t?1:r(rE(e,t,n))}function n7(e,t){e.min=t.min,e.max=t.max}function ie(e,t){n7(e.x,t.x),n7(e.y,t.y)}function it(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 ir(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(ei.test(t)&&(t=parseFloat(t),t=rS(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=rS(o.min,o.max,n);e===o&&(s-=t),e.min=it(e.min,t,r,s,i),e.max=it(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let ii=["x","scaleX","originX"],io=["y","scaleY","originY"];function ia(e,t,r,n){ir(e.x,t,ii,r?r.x:void 0,n?n.x:void 0),ir(e.y,t,io,r?r.y:void 0,n?n.y:void 0)}function is(e){return 0===e.translate&&1===e.scale}function il(e){return is(e.x)&&is(e.y)}function iu(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function ic(e){return nc(e.x)/nc(e.y)}class id{constructor(){this.members=[]}add(e){rZ(this.members,e),e.scheduleRender()}remove(e){if(rJ(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()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}
306scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ih(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=(null==r?void 0:r.z)||0;if((i||o||a)&&(n=`translate3d(${i}px, ${o}px, ${a}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:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}let ip=(e,t)=>e.depth-t.depth;class im{constructor(){this.children=[],this.isDirty=!1}add(e){rZ(this.children,e),this.isDirty=!0}remove(e){rJ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ip),this.isDirty=!1,this.children.forEach(e)}}let ig=["","X","Y","Z"],iv={visibility:"hidden"},iy=0,ib={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ix(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function i_({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=iy++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ib.totalNodes=ib.resolvedTargetDeltas=ib.recalculatedProjection=0,this.nodes.forEach(iw),this.nodes.forEach(iN),this.nodes.forEach(iP),this.nodes.forEach(ik),window.MotionDebug&&window.MotionDebug.record(ib)},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 im)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new r0),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=tm.now(),n=({timestamp:t})=>{let i=t-r;i>=250&&((0,eL.Pn)(n),e(i-250))};return eL.Wi.read(n,!0),()=>(0,eL.Pn)(n)}(n,0),nY.hasAnimatedSinceResize&&(nY.hasAnimatedSinceResize=!1,this.nodes.forEach(iO))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||iM,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!iu(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...tu(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||iO(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,(0,eL.Pn)(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
306h(iR),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(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(iI);return}this.isUpdating||this.nodes.forEach(iC),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(iA),this.nodes.forEach(iE),this.nodes.forEach(iS),this.clearAllSnapshots();let e=tm.now();eL.frameData.delta=H(0,1e3/60,e-eL.frameData.timestamp),eL.frameData.timestamp=e,eL.frameData.isProcessing=!0,eL.S6.update.process(eL.frameData),eL.S6.preRender.process(eL.frameData),eL.S6.render.process(eL.frameData),eL.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,g.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(iT),this.sharedNodes.forEach(iD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eL.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eL.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}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=nw(),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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!il(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||nA(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)),iq((t=n).x),iq(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return nw();let t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(nL(t.x,r.offset.x),nL(t.y,r.offset.y)),t}removeElementScroll(e){let t=nw();ie(t,e);for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:o}=n;if(n!==this.root&&i&&o.layoutScroll){if(i.isRoot){ie(t,e);let{scroll:r}=this.root;r&&(nL(t.x,-r.offset.x),nL(t.y,-r.offset.y))}nL(t.x,i.offset.x),nL(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let r=nw();ie(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&&nB(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nA(n.latestValues)&&nB(r,n.latestValues)}return nA(this.latestValues)&&nB(r,this.latestValues),r}removeTransform(e){let t=nw();ie(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!nA(r.latestValues))continue;nC(r.latestValues)&&r.updateSnapshot();let n=nw();ie(n,r.measurePageBox()),ia(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return nA(this.latestValues)&&ia(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!==eL.frameData.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 a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:s,layoutId:l}=this.options;if(this.layout&&(s||l)){if(this.resolvedRelativeTargetAt=eL.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nw(),this.relativeTargetOrigin=nw(),ng(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ie(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=nw(),this.targetWithTransforms=nw()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,np(r.x,n.x,i.x),np(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ie(this.target,this.layout.layoutBox),nR(this.target,this.targetDelta)):ie(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=nw(),this.relativeTargetOrigin=nw(),ng(this.relativeTargetOrigin,this.target,e.target),ie(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ib.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||nC(this.parent.latestValues)||nO(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===eL.frameData.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;ie(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let i,o;let a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=r[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nB(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&&nA(i.latestValues)&&nB(e,i.latestValues))}t.x=nD(t.x),t.y=nD(t.y)}}(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=nw());let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=nE(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nE(),this.projectionDeltaWithTransform=nE());let u=this.projectionTransform;nh(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ih(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ib.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},a=nE();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=nw(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(ij));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(iL(a.x,e.x,n),iL(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,h,p;ng(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,iF(h.x,p.x,s.x,n),iF(h.y,p.y,s.y,n),r&&(u=this.relativeTarget,f=r,u.x.min===f.x.min&&u.x.max===f.x.max&&u.y.min===f.y.min&&u.y.max===f.y.max)&&(this.isProjectionDirty=!1),r||(r=nw()),ie(r,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=rS(0,void 0!==r.opacity?r.opacity:1,n6(n)),e.opacityExit=rS(void 0!==t.opacity?t.opacity:1,0,n8(n))):o&&(e.opacity=rS(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<n2;i++){let o=`border${n1[i]}Radius`,a=n4(t,o),s=n4(r,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||n3(a)===n3(s)?(e[o]=Math.max(rS(n5(a),n5(s),n),0),(ei.test(s)||ei.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||r.rotate)&&(e.rotate=rS(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,d,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&&((0,eL.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eL.Wi.update(()=>{nY.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=M(0)?0:r3(0);return n.start(rX("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{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&&iV(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||nw();let t=nc(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=nc(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}ie(t,r),nB(t,i),nh(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
306)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new id),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&&ix("z",e,n,this.animationValues);for(let t=0;t<ig.length;t++)ix(`rotate${ig[t]}`,e,n,this.animationValues),ix(`skew${ig[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 iv;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=eR(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=eR(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nA(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=ih(this.projectionDeltaWithTransform,this.treeScale,a),i&&(n.transform=i(a,n.transform));let{x:s,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,D){if(void 0===a[e])continue;let{correct:t,applyTo:r}=D[e],i="none"===n.transform?a[e]:t(a[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?eR(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(iI),this.root.sharedNodes.clear()}}}function iE(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?nk(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=nc(n);n.min=t[e].min,n.max=n.min+i}):iV(i,r.layoutBox,t)&&nk(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],a=nc(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=nE();nh(a,t,r.layoutBox);let s=nE();o?nh(s,e.applyTransform(n,!0),r.measuredBox):nh(s,t,r.layoutBox);let l=!il(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let a=nw();ng(a,r.layoutBox,i.layoutBox);let s=nw();ng(s,t,o.layoutBox),iu(a,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iw(e){ib.totalNodes++,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 ik(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iT(e){e.clearSnapshot()}function iI(e){e.clearMeasurements()}function iC(e){e.isLayoutDirty=!1}function iA(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iN(e){e.resolveTargetDelta()}function iP(e){e.calcProjection()}
306function iR(e){e.resetSkewAndRotation()}function iD(e){e.removeLeadSnapshot()}function iL(e,t,r){e.translate=rS(t.translate,0,r),e.scale=rS(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function iF(e,t,r,n){e.min=rS(t.min,r.min,n),e.max=rS(t.max,r.max,n)}function ij(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let iM={duration:.45,ease:[.4,0,.1,1]},iB=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iU=iB("applewebkit/")&&!iB("chrome/")?Math.round:e1.Z;function iq(e){e.min=iU(e.min),e.max=iU(e.max)}function iV(e,t,r){return"position"===e||"preserve-aspect"===e&&!nd(ic(t),ic(r),.2)}let iz=i_({attachResizeListener:(e,t)=>eM(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),i$={current:void 0},iG=i_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!i$.current){let e=new iz({});e.mount(window),e.setOptions({layoutScroll:!0}),i$.current=e}return i$.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),iW={current:null},iH={current:!1},iQ=new WeakMap,iY=[...tC,tz,tK],iX=e=>iY.find(tI(e)),iK=Object.keys(I),iZ=iK.length,iJ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i0=E.length;class i1{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},a={}){this.resolveKeyframes=(e,t,r,n)=>new this.KeyframeResolver(e,t,r,n,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tL,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.scheduleRender=()=>eL.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=S(t),this.isVariantNode=w(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==s[e]&&M(t)&&(t.set(s[e],!1),rK(u)&&u.add(e))}}mount(e){this.current=e,iQ.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)),iH.current||function(){if(iH.current=!0,C.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iW.current=e.matches;e.addListener(t),t()}else iW.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iW.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;for(let e in iQ.delete(this.current),this.projection&&this.projection.unmount(),(0,eL.Pn)(this.notifyUpdate),(0,eL.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){let r=F.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eL.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let e=0;e<iZ;e++){let r=iK[e],{isEnabled:n,Feature:i,ProjectionNode:s,MeasureLayout:l}=I[r];s&&(o=s),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(this.parent));let{layoutId:e,layout:r,drag:n,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:!!n||a&&y(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];
306t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nw()}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<iJ.length;t++){let r=iJ[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){let{willChange:n}=t;for(let i in t){let o=t[i],a=r[i];if(M(o))e.addValue(i,o),rK(n)&&n.add(i);else if(M(a))e.addValue(i,r3(o,{owner:e})),rK(n)&&n.remove(i);else if(a!==o){if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,r3(void 0!==t?t:o,{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()}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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<i0;e++){let r=E[e],n=this.props[r];(b(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(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=r3(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&&(ty(n)||tg(n))?n=parseFloat(n):!iX(n)&&tK.test(t)&&(n=t3(e,t)),this.setBaseTarget(e,M(n)?n.get():n)),M(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=eC(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||M(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 r0),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class i2 extends i1{constructor(){super(...arguments),this.KeyframeResolver=t6}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]}}class i5 extends i2{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(F.has(t)){let e=t5(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=(V(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nU(e,t)}build(e,t,r,n){ed(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return eT(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;M(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){eS(e,t,r,n)}}class i3 extends i2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(F.has(t)){let e=t5(t);return e&&e.default||0}return t=ew.has(t)?t:p(t),e.getAttribute(t)}measureInstanceViewportBox(){return nw()}scrapeMotionValuesFromProps(e,t,r){return eI(e,t,r)}
306build(e,t,r,n){ex(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){ek(e,t,r,n)}mount(e){this.isSVGTag=eE(e.tagName),super.mount(e)}}let i4=(e,t)=>R(e)?new i3(t,{enableHardwareAcceleration:!1}):new i5(t,{allowProjection:e!==l.Fragment,enableHardwareAcceleration:!0}),i6={animation:{Feature:nt},exit:{Feature:nn},inView:{Feature:e7},tap:{Feature:e5},focus:{Feature:eJ},hover:{Feature:eZ},pan:{Feature:nH},drag:{Feature:nG,ProjectionNode:iG,MeasureLayout:nJ},layout:{ProjectionNode:iG,MeasureLayout:nJ}},i8=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&function(e){for(let t in e)I[t]={...I[t],...e[t]}}(e);let o=(0,l.forwardRef)(function(o,a){var p;let v;let x={...(0,l.useContext)(u._),...o,layoutId:function({layoutId:e}){let t=(0,l.useContext)(A.p).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:_}=x,E=function(e){let{initial:t,animate:r}=function(e,t){if(S(e)){let{initial:t,animate:r}=e;return{initial:!1===t||b(t)?t:void 0,animate:b(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,l.useContext)(c));return(0,l.useMemo)(()=>({initial:t,animate:r}),[k(t),k(r)])}(o),w=n(o,_);if(!_&&C.j){E.visualElement=function(e,t,r,n){let{visualElement:i}=(0,l.useContext)(c),o=(0,l.useContext)(h),a=(0,l.useContext)(d.O),s=(0,l.useContext)(u._).reducedMotion,p=(0,l.useRef)();n=n||o.renderer,!p.current&&n&&(p.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let v=p.current;(0,l.useInsertionEffect)(()=>{v&&v.update(r,a)});let y=(0,l.useRef)(!!(r[m]&&!window.HandoffComplete));return(0,f.L)(()=>{v&&(g.postRender(v.render),y.current&&v.animationState&&v.animationState.animateChanges())}),(0,l.useEffect)(()=>{v&&(v.updateFeatures(),!y.current&&v.animationState&&v.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),v}(i,w,x,t);let r=(0,l.useContext)(O),n=(0,l.useContext)(h).strict;E.visualElement&&(v=E.visualElement.loadFeatures(x,n,e,r))}return(0,s.jsxs)(c.Provider,{value:E,children:[v&&E.visualElement?(0,s.jsx)(v,{visualElement:E.visualElement,...x}):null,r(i,o,(p=E.visualElement,(0,l.useCallback)(e=>{e&&w.mount&&w.mount(e),p&&(e?p.mount(e):p.unmount()),a&&("function"==typeof a?a(e):y(a)&&(a.current=e))},[p])),w,_,E.visualElement)]})});return o[N]=i,o}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n){return{...R(e)?eF:ej,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:i},o)=>{let a=(R(t)?function(e,t,r,n){let i=(0,l.useMemo)(()=>{let r=e_();return ex(r,t,{enableHardwareAcceleration:!1},eE(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};eh(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,r){let n={},i=function(e,t,r){let n=e.style||{},i={};return eh(i,n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,l.useMemo)(()=>{let n=ef();return ed(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),i}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n})(r,i,o,t),s=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(eg(i)||!0===r&&em(i)||!t&&!em(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),u=t!==l.Fragment?{...s,...a,ref:n}:{},{children:c}=r,d=(0,l.useMemo)(()=>M(c)?c.get():c,[c]);return(0,l.createElement)(t,{...u,children:d})}}(t),createVisualElement:n,Component:e}})(e,t,i6,i4))},22081:function(e,t,r){"use strict";r.d(t,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},45487:function(e,t,r){"use strict";r.d(t,{K:function(){return i},k:function(){return o}});var n=r(81662);let i=n.Z,o=n.Z},11741:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});let n="undefined"!=typeof document},81662:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=e=>e},96681:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(67294);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},58868:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(67294);let i=r(11741).j?n.useLayoutEffect:n.useEffect},37826:function(e,t,r){"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{a:function(){return n}})},25821:function(e,t,r){"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";let n=Math.min(10,t.length),i=t.length-n,o=[];for(let i=0;i<n;++i)o.push(e(t[i],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,n);return function(t,r){let n=Object.entries(t);return 0===n.length?"{}":r.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+n.map(([t,n])=>t+": "+e(n,r)).join(", ")+" }"}(t,n)}(t,r);default:return String(t)}}(e,[])}r.d(t,{X:function(){return n}})},72380:function(e,t,r){"use strict";var n,i;r.d(t,{UG:function(){return u},WU:function(){return a},Ye:function(){return o},h8:function(){return s},ku:function(){return n}});class o{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let s={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
306Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},l=new Set(Object.keys(s));function u(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&l.has(t)}(i=n||(n={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},87392:function(e,t,r){"use strict";r.d(t,{LZ:function(){return o},wv:function(){return i}});var n=r(68297);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],l=function(e){let t=0;for(;t<e.length&&(0,n.FD)(e.charCodeAt(t));)++t;return t}(s);l!==s.length&&(o=null!==(r=o)&&void 0!==r?r:t,a=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,a+1)}function o(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.FD)(e.charCodeAt(0))),s=r.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!o||e.length>70||c||a||s),f="",h=o&&(0,n.FD)(e.charCodeAt(0));return(d&&!h||a)&&(f+="\n"),f+=r,(d||c)&&(f+="\n"),'"""'+f+'"""'}},68297:function(e,t,r){"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}r.d(t,{FD:function(){return n},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},97359:function(e,t,r){"use strict";var n,i;r.d(t,{h:function(){return n}}),(i=n||(n={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.DIRECTIVE_EXTENSION="DirectiveExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",i.TYPE_COORDINATE="TypeCoordinate",i.MEMBER_COORDINATE="MemberCoordinate",i.ARGUMENT_COORDINATE="ArgumentCoordinate",i.DIRECTIVE_COORDINATE="DirectiveCoordinate",i.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"},51270:function(e,t,r){"use strict";r.d(t,{H:function(){return a},T:function(){return s}});var n=r(37826),i=r(25821);let o=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;
306if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){let t=(0,i.X)(e);throw Error(`Cannot use ${n} "${t}" from another module or realm.
307
308Ensure that there is only one instance of "graphql" in the node_modules
309directory. If different versions of "graphql" are the dependencies of other
310relied on modules, use "resolutions" to ensure only one version is installed.
311
312https://yarnpkg.com/en/docs/selective-version-resolutions
313
314Duplicate "graphql" modules cannot be used at the same time since different
315versions may have different capabilities and behavior. The data from one
316version used in the function from another could produce confusing and
317spurious results.`)}}return!1};class a{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,n.a)(!1,`Body must be a string. Received: ${(0,i.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,n.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(e){return o(e,a)}},77304:function(e,t,r){"use strict";r.d(t,{$_:function(){return s},Vn:function(){return l}});var n=r(37826),i=r(25821),o=r(72380),a=r(97359);let s=Object.freeze({});function l(e,t,r=o.h8){let l,u,c;let d=new Map;for(let e of Object.values(a.h))d.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let f=Array.isArray(e),h=[e],p=-1,m=[],g=e,v=[],y=[];do{var b,x,_;let e;let a=++p===h.length,E=a&&0!==m.length;if(a){if(u=0===y.length?void 0:v[v.length-1],g=c,c=y.pop(),E){if(f){g=g.slice();let e=0;for(let[t,r]of m){let n=t-e;null===r?(g.splice(n,1),e++):g[n]=r}}else for(let[e,t]of(g={...g},m))g[e]=t}p=l.index,h=l.keys,m=l.edits,f=l.inArray,l=l.prev}else if(c){if(null==(g=c[u=f?p:h[p]]))continue;v.push(u)}if(!Array.isArray(g)){(0,o.UG)(g)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(g)}.`);let r=a?null===(b=d.get(g.kind))||void 0===b?void 0:b.leave:null===(x=d.get(g.kind))||void 0===x?void 0:x.enter;if((e=null==r?void 0:r.call(t,g,u,c,v,y))===s)break;if(!1===e){if(!a){v.pop();continue}}else if(void 0!==e&&(m.push([u,e]),!a)){if((0,o.UG)(e))g=e;else{v.pop();continue}}}void 0===e&&E&&m.push([u,g]),a?v.pop():(l={inArray:f,index:p,keys:h,edits:m,prev:l},h=(f=Array.isArray(g))?g:null!==(_=r[g.kind])&&void 0!==_?_:[],p=-1,m=[],c&&y.push(c),c=g)}while(void 0!==l);return 0!==m.length?m[m.length-1][1]:e}},97582:function(e,t,r){"use strict";r.d(t,{Jh:function(){return l},ZT:function(){return i},_T:function(){return a},ev:function(){return u},mG:function(){return s},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=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 a(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 s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(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(a,s)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function u(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))}"function"==typeof SuppressedError&&SuppressedError},48216:function(e,t,r){"use strict";function n(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}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{y:function(){return E}});var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&!!Symbol[e]},l=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=l("iterator"),c=l("observable"),d=l("species");function f(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;
317return void 0!==t&&null===(t=t[d])&&(t=void 0),void 0!==t?t:E}function p(e){p.log?p.log(e):setTimeout(function(){throw e})}function m(e){Promise.resolve().then(function(){try{e()}catch(e){p(e)}})}function g(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var r=f(t,"unsubscribe");r&&r.call(t)}}catch(e){p(e)}}}function v(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function y(e,t,r){e._state="running";var n=e._observer;try{var i=f(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(v(e),i)i.call(n,r);else throw r;break;case"complete":v(e),i&&i.call(n)}}catch(e){p(e)}"closed"===e._state?g(e):"running"===e._state&&(e._state="ready")}function b(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],m(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(y(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});return}y(e,t,r)}}var x=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new _(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(v(this),g(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),_=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){b(this._subscription,"next",e)},t.error=function(e){b(this._subscription,"error",e)},t.complete=function(){b(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),E=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new x(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=h(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}
317return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[c]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=f(t,c);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof E&&o.constructor===r?o:new r(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=f(t,u)))return new r(function(e){m(function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);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 n(e,void 0)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){m(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){m(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:d,get:function(){return this}}]),e}();a()&&Object.defineProperty(E,Symbol("extensions"),{value:{symbol:c,hostReportError:p},configurable:!0})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(91118),t(43079)}),_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.