vendor: 1,301 bytes, lines 1-2
1/*! For license information please see main.9d3552b9.js.LICENSE.txt */ 2(()=>{var e={3803:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,083 bytes, line 2
2,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}(),o=Math.abs,a=String.fromCharCode,i=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,A=0,v=0,y=0,b="";function x(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:m,column:g,length:i,return:""}}function w(e,t){return i(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function E(){return y=v>0?u(b,--v):0,g--,10===y&&(g=1,m--),y}function C(){return y=v<A?u(b,v++):0,g++,10===y&&(g=1,m++),y}function S(){return u(b,v)}function T(){return v}function k(e,t){return d(b,e,t)}function _(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 N(e){return m=g=1,A=p(b=e),v=0,[]}function I(e){return b="",e}function P(e){return s(k(v-1,L(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(y=S())&&y<33;)C();return _(e)>2||_(y)>3?"":" "}function D(e,t){for(;--t&&C()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return k(e,T()+(t<6&&32==S()&&32==C()))}function L(e){for(;C();)switch(y){case e:return v;case 34:case 39:34!==e&&39!==e&&L(y);break;case 40:41===e&&L(e);break;case 92:C()}return v}function O(e,t){for(;C()&&e+y!==57&&(e+y!==84||47!==S()););return"/*"+k(t,v-1)+"*"+a(47===e?e:C())}function M(e){for(;!_(S());)C();return k(e,v)}var j="-ms-",F="-moz-",B="-webkit-",U="comm",z="rule",H="decl",W="@keyframes";function V(e,t){for(var n="",r=h(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function G(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case U:return"";case W:return e.return=e.value+"{"+V(e.children,r)+"}";case z:e.value=e.props.join(",")}return p(n=V(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return I(Y("",null,null,null,[""],e=N(e),0,[0],e))}function Y(e,t,n,r,o,i,s,d,h){for(var m=0,g=0,A=s,v=0,y=0,b=0,x=1,w=1,k=1,_=0,N="",I=o,L=i,j=r,F=N;w;)switch(b=_,_=C()){case 40:if(108!=b&&58==u(F,A-1)){-1!=c(F+=l(P(_),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:F+=P(_);break;case 9:case 10:case 13:case 32:F+=R(b);break;case 92:F+=D(T()-1,7);continue;case 47:switch(S()){case 42:case 47:f(X(O(C(),T()),t,n),h);break;default:F+="/"}break;case 123*x:d[m++]=p(F)*k;case 125*x:case 59:case 0:switch(_){case 0:case 125:w=0;case 59+g:-1==k&&(F=l(F,/\f/g,"")),y>0&&p(F)-A&&f(y>32?K(F+";",r,n,A-1):K(l(F," ","")+";",r,n,A-2),h);break;case 59:F+=";";default:if(f(j=Q(F,t,n,m,g,o,d,N,I=[],L=[],A),i),123===_)if(0===g)Y(F,t,j,j,I,i,A,d,L);else switch(99===v&&110===u(F,3)?100:v){case 100:case 108:case 109:case 115:Y(e,j,j,r&&f(Q(e,j,j,0,0,o,d,N,o,I=[],A),L),o,L,A,d,r?I:L);break;default:Y(F,j,j,j,[""],L,0,d,L)}}m=g=y=0,x=k=1,N=F="",A=s;break;case 58:A=1+p(F),y=b;default:if(x<1)if(123==_)--x;else if(125==_&&0==x++&&125==E())continue;switch(F+=a(_),_*x){case 38:k=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(p(F)-1)*k,k=1;break;case 64:45===S()&&(F+=P(C())),v=S(),g=A=p(N=F+=M(T())),_++;break;case 45:45===b&&2==p(F)&&(x=0)}}return i}function Q(e,t,n,r,a,i,c,u,p,f,m){for(var g=a-1,A=0===a?i:[""],v=h(A),y=0,b=0,w=0;y<r;++y)for(var E=0,C=d(e,g+1,g=o(b=c[y])),S=e;E<v;++E)(S=s(b>0?A[E]+" "+C:l(C,/&\f/g,A[E])))&&(p[w++]=S);return x(e,t,n,0===a?z:u,p,f,m)}function X(e,t,n){return x(e,t,n,U,a(y),d(e,2,-2),0)}function K(e,t,n,r){return x(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,o=0;r=o,o=S(),38===r&&12===o&&(t[n]=1),!_(o);)C();return k(e,v)},Z=function(e,t){return I(function(e,t){var n=-1,r=44;do{switch(_(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=J(v-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=C());return e}(N(e),t))},$=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$.get(n))&&!r){$.set(e,!0);for(var o=[],a=Z(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return B+"print-"+e+e;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 B+e+e;
vendor: 6,120 bytes, line 2
2case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+F+e+j+e+e;case 6828:case 4268:return B+e+j+e+e;case 6165:return B+e+j+"flex-"+e+e;case 5187:return B+e+l(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return B+e+j+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return B+e+j+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+j+l(e,"shrink","negative")+e;case 5292:return B+e+j+l(e,"basis","preferred-size")+e;case 6060:return B+"box-"+l(e,"-grow","")+B+e+j+l(e,"grow","positive")+e;case 4554:return B+l(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+j+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,B+"$1$2")+e;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(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+j+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+j+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+j+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=ne(e.value,e.length);break;case W:return V([w(e,{value:l(e.value,"@","@"+B)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([w(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([w(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,j+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,a,i=e.stylisPlugins||re,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[G,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=h(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}([ee,te].concat(i,d));a=function(e,t,n,r){c=n,V(q(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return f.sheet.hydrate(l),f}},918:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},9369:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,E:()=>g,T:()=>d,c:()=>f,h:()=>p,w:()=>u});var r=n(5043),o=n(3803),a=n(1722),i=n(6598),s=n(9436),l=r.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null),c=l.Provider,u=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(l);return e(t,o,n)}))},d=r.createContext({});var p={}.hasOwnProperty,h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var n={};for(var r in t)p.call(t,r)&&(n[r]=t[r]);return n[h]=e,n},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,a.SF)(t,n,r),(0,s.s)((function(){return(0,a.sk)(t,n,r)})),null},g=u((function(e,t,n){var o=e.css;"string"===typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[h],l=[o],c="";"string"===typeof e.className?c=(0,a.Rk)(t.registered,l,e.className):null!=e.className&&(c=e.className+" ");var u=(0,i.J)(l,void 0,r.useContext(d));c+=t.key+"-"+u.name;var f={};for(var g in e)p.call(e,g)&&"css"!==g&&g!==h&&(f[g]=e[g]);return f.className=c,n&&(f.ref=n),r.createElement(r.Fragment,null,r.createElement(m,{cache:t,serialized:u,isStringTag:"string"===typeof s}),r.createElement(s,f))}))},3290:(e,t,n)=>{"use strict";n.d(t,{AH:()=>u,i7:()=>d,mL:()=>c});var r=n(9369),o=n(5043),a=n(1722),i=n(9436),s=n(6598),l=(n(3803),n(219),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return o.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=r.E,i[1]=(0,r.c)(e,t);for(var s=2;s<a;s++)i[s]=n[s];return o.createElement.apply(null,i)});!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var c=(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,o.useContext(r.T)),c=o.useRef();return(0,i.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),(0,i.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,a.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}function d(){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_"}}}}
2,6598:(e,t,n)=>{"use strict";n.d(t,{J:()=>g});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(918),a=!1,i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.A)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return f={name:o.name,styles:o.styles,next:f},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=h(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":c(l)&&(r+=u(i)+":"+d(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&a)throw new Error(p);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var f=h(e,t,s);switch(i){case"animation":case"animationName":r+=u(i)+":"+f+";";break;default:r+=i+"{"+f+"}"}}else for(var m=0;m<s.length;m++)c(s[m])&&(r+=u(i)+":"+d(i,s[m])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=f,m=n(e);return f=l,h(e,t,m)}}var g=n;if(null==t)return g;var A=t[g];return void 0!==A?A:g}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";f=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=h(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=h(n,t,e[i]),r)o+=a[i]}m.lastIndex=0;for(var s,l="";null!==(s=m.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:f}}},9436:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>i});var o=n(5043),a=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,i=a||function(e){return e()},s=a||o.useLayoutEffect},1722:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>a});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},2505:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},9167:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFile")}
2,4802:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},2954:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload")},3471:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},1132:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download")},8082:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},3044:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"}),"PictureAsPdf")},7260:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},2819:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},39:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(4421)},6431:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(5043),o=n(3030);n(579);const a=r.createContext(void 0);function i(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?(0,o.A)(a.defaultProps,r):a.styleOverrides||a.variants?r:(0,o.A)(a,r)}({props:t,name:n,theme:{components:r.useContext(a)}})}function s(e){return i(e)}},7344:(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var r=n(5787),o=n(8587),a=n(7868),i=n(9172),s=n(7758),l=n(8812),c=n(8280);var u=n(7266);const d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},A={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=["mode","contrastThreshold","tonalOffset"],b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackgroun
2d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,a)))}function E(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,y),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),E=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),C=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),S=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:A[400],light:A[300],dark:A[700]}:{main:A[700],light:A[500],dark:A[900]}}(t),T=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),k=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function _(e){return(0,u.eM)(e,x.text.primary)>=n?x.text.primary:b.text.primary}const N=e=>{let{color:t,name:n,mainShade:o=500,lightShade:i=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,a.A)(11,n?" (".concat(n,")"):"",o));if("string"!==typeof t.main)throw new Error((0,a.A)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return w(t,"light",i,s),w(t,"dark",l,s),t.contrastText||(t.contrastText=_(t.main)),t},I={dark:x,light:b};return(0,i.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:N({color:c,name:"primary"}),secondary:N({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:N({color:C,name:"error"}),warning:N({color:k,name:"warning"}),info:N({color:S,name:"info"}),success:N({color:T,name:"success"}),grey:p,contrastThreshold:n,getContrastText:_,augmentColor:N,tonalOffset:s},I[t]),l)}const C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const S={textTransform:"uppercase"},T='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){const n="function"===typeof t?t(e):t,{fontFamily:a=T,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=n,m=(0,o.A)(n,C);const g=s/14,A=f||(e=>"".concat(e/p*g,"rem")),v=(e,t,n,o,i)=>{return(0,r.A)({fontFamily:a,fontWeight:e,fontSize:A(t),lineHeight:n},a===T?{letterSpacing:"".concat((s=o/t,Math.round(1e5*s)/1e5),"em")}:{},i,h);var s},y={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,S),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,S),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.A)((0,r.A)({htmlFontSize:p,pxToRem:A,fontFamily:a,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},y),m,{clone:!1})}function _(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const N=["none",_(0,2,1,-1,0,1,1,0,0,1,3,0),_(0,3,1,-2,0,2,2,0,0,1,5,0),_(0,3,3,-2,0,3,4,0,0,1,8,0),_(0,2,4,-1,0,4,5,0,0,1,10,0),_(0,3,5,-1,0,5,8,0,0,1,14,0),_(0,3,5,-1,0,6,10,0,0,1,18,0),_(0,4,5,-2,0,7,10,1,0,2,16,1),_(0,5,5,-3,0,8,10,1,0,3,14,2),_(0,5,6,-3,0,9,12,1,0,3,16,2),_(0,6,6,-3,0,10,14,1,0,4,18,3),_(0,6,7,-4,0,11,15,1,0,4,20,3),_(0,7,8,-4,0,12,17,2,0,5,22,4),_(0,7,8,-4,0,13,19,2,0,5,24,4),_(0,7,9,-4,0,14,21,2,0,5,26,4),_(0,8,9,-5,0,15,22,2,0,6,28,5),_(0,8,10,-5,0,16,24,2,0,6,30,5),_(0,8,11,-5,0,17,26,2,0,6,32,5),_(0,9,11,-5,0,18,28,2,0,7,34,6),_(0,9,12,-6,0,19,29,2,0,7,36,6
2),_(0,10,13,-6,0,20,31,3,0,8,38,7),_(0,10,13,-6,0,21,33,3,0,8,40,7),_(0,10,14,-6,0,22,35,3,0,8,42,7),_(0,11,14,-7,0,23,36,3,0,9,44,8),_(0,11,15,-7,0,24,38,3,0,9,46,8)];var I=n(4318);const P={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},R=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,p=(0,o.A)(e,R);if(e.vars)throw new Error((0,a.A)(18));const h=E(n),f=(0,c.A)(e);let m=(0,i.A)(f,{mixins:(g=f.breakpoints,A=t,(0,r.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},A)),palette:h,shadows:N.slice(),typography:k(h,d),transitions:(0,I.Ay)(u),zIndex:(0,r.A)({},P)});var g,A;m=(0,i.A)(m,p);for(var v=arguments.length,y=new Array(v>1?v-1:0),b=1;b<v;b++)y[b-1]=arguments[b];return m=y.reduce(((e,t)=>(0,i.A)(e,t)),m),m.unstable_sxConfig=(0,r.A)({},s.A,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const L=D},4318:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,p0:()=>s});var r=n(8587),o=n(5787);const a=["duration","easing","delay"],i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,o.A)({},i,e.easing),n=(0,o.A)({},s,e.duration);return(0,o.A)({getAutoHeightDuration:c,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:i=n.standard,easing:s=t.easeInOut,delay:c=0}=o;(0,r.A)(o,a);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof i?i:l(i)," ").concat(s," ").concat("string"===typeof c?c:l(c)))).join(",")}},e,{easing:t,duration:n})}},5170:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(7344).A)()},3375:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},1475:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7123);const o=e=>(0,r.A)(e)&&"classes"!==e},7123:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},4535:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(8052),o=n(5170),a=n(3375),i=n(1475);const s=(0,r.Ay)({themeId:a.A,defaultTheme:o.A,rootShouldForwardProp:i.A})},6803:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(7598).A},9662:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(5787),o=n(5043),a=n(8587),i=n(8387),s=n(8610),l=n(6803),c=n(6431),u=n(4535),d=n(2532),p=n(2372);function h(e){return(0,p.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(579);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.A)(n.color))],t["fontSize".concat((0,l.A)(n.fontSize))]]}})((e=>{let{theme:t,ownerState:n}=e;var r,o,a,i,s,l,c,u,d,p,h,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(o=r.create)?void 0:o.call(r,"fill",{duration:null==(a=t.transitions)||null==(a=a.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=t.typography)||null==(s=i.pxToRem)?void 0:s.call(i,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(p=null==(h=(t.vars||t).palette)||null==(h=h[n.c
2olor])?void 0:h.main)?p:{action:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}})),A=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:A="svg",fontSize:v="medium",htmlColor:y,inheritViewBox:b=!1,titleAccess:x,viewBox:w="0 0 24 24"}=n,E=(0,a.A)(n,m),C=o.isValidElement(u)&&"svg"===u.type,S=(0,r.A)({},n,{color:p,component:A,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:b,viewBox:w,hasSvgAsChild:C}),T={};b||(T.viewBox=w);const k=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(n))]};return(0,s.A)(o,h,r)})(S);return(0,f.jsxs)(g,(0,r.A)({as:A,className:(0,i.A)(k.root,d),focusable:"false",color:y,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},T,E,C&&u.props,{ownerState:S,children:[C?u.props.children:u,x?(0,f.jsx)("title",{children:x}):null]}))}));A.muiName="SvgIcon";const v=A;function y(e,t){function n(n,o){return(0,f.jsx)(v,(0,r.A)({"data-testid":"".concat(t,"Icon"),ref:o},n,{children:e}))}return n.muiName=v.muiName,o.memo(o.forwardRef(n))}},950:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(3468).A},4421:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>a,createSvgIcon:()=>i.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>p,setRef:()=>h,unstable_ClassNameGenerator:()=>x,unstable_useEnhancedEffect:()=>f.A,unstable_useId:()=>m.A,unsupportedProp:()=>g,useControlled:()=>A.A,useEventCallback:()=>v.A,useForkRef:()=>y.A,useIsFocusVisible:()=>b.A});var r=n(9386),o=n(6803);const a=n(2456).A;var i=n(9662),s=n(950);const l=function(e,t){return()=>null};var c=n(7328),u=n(2427),d=n(6078);n(5787);const p=function(e,t){return()=>null};const h=n(6564).A;var f=n(5013),m=n(5879);const g=function(e,t,n,r,o){return null};var A=n(5420),v=n(3319),y=n(5849),b=n(3574);const x={configure:e=>{r.A.configure(e)}}},7328:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5043);const o=function(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},2427:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(1668).A},6078:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(3940).A},5420:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5043);const o=function(e){let{controlled:t,default:n,name:o,state:a="value"}=e;const{current:i}=r.useRef(void 0!==t),[s,l]=r.useState(n);return[i?t:s,r.useCallback((e=>{i||l(e)}),[])]}},5013:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(4440).A},3319:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(1782).A},5849:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(3462).A},5879:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5844).A},3574:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(5043),o=n(9303);let a=!0,i=!1;const s=new o.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function u(){a=!1}function d(){"hidden"===this.visibilityState&&i&&(a=!0)}function p(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return a||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const h=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!p(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,s.start(100,(()=>{i=!1})),t.current=!1,!0)},ref:e}}},869:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(5043);var r=n(3290),o=n(579);function a(e){const{styles:t,defaultTheme:n={}}=e,a="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(r.mL,{styles:a})}}
2,3174:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>w.A,StyledEngineProvider:()=>x,ThemeContext:()=>o.T,css:()=>A.AH,default:()=>E,internal_processStyles:()=>C,keyframes:()=>A.i7});var r=n(5787),o=n(9369),a=n(6598),i=n(9436),s=n(1722),l=n(5043),c=n(918),u=/^((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|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)-.*))$/,d=(0,c.A)((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:p},f=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;
2return(0,s.SF)(t,n,r),(0,i.s)((function(){return(0,s.sk)(t,n,r)})),null},g=function e(t,n){var i,c,u=t.__emotion_real===t,d=u&&t.__emotion_base||t;void 0!==n&&(i=n.label,c=n.target);var p=f(t,n,u),g=p||h(d),A=!g("as");return function(){var v=arguments,y=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==v[0]||void 0===v[0].raw)y.push.apply(y,v);else{var b=v[0];y.push(b[0]);for(var x=v.length,w=1;w<x;w++)y.push(v[w],b[w])}var E=(0,o.w)((function(e,t,n){var r=A&&e.as||d,i="",u=[],f=e;if(null==e.theme){for(var v in f={},e)f[v]=e[v];f.theme=l.useContext(o.T)}"string"===typeof e.className?i=(0,s.Rk)(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var b=(0,a.J)(y.concat(u),t.registered,f);i+=t.key+"-"+b.name,void 0!==c&&(i+=" "+c);var x=A&&void 0===p?h(r):g,w={};for(var E in e)A&&"as"===E||x(E)&&(w[E]=e[E]);return w.className=i,n&&(w.ref=n),l.createElement(l.Fragment,null,l.createElement(m,{cache:t,serialized:b,isStringTag:"string"===typeof r}),l.createElement(r,w))}));return E.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=d,E.__emotion_styles=y,E.__emotion_forwardProp=p,Object.defineProperty(E,"toString",{value:function(){return"."+c}}),E.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:f(E,o,!0)})).apply(void 0,y)},E}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){g[e]=g(e)}));var A=n(3290),v=n(3803),y=n(579);let b;function x(e){const{injectFirst:t,children:n}=e;return t&&b?(0,y.jsx)(o.C,{value:b,children:n}):n}"object"===typeof document&&(b=(0,v.A)({key:"css",prepend:!0}));var w=n(869);function E(e,t){return g(e,t)}const C=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},7266:(e,t,n)=>{"use strict";var r=n(4994);t.X4=h,t.e$=f,t.tL=g,t.eM=function(e,t){const n=p(e),r=p(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var o=r(n(457)),a=r(n(9214));function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,a.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,e));let r,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),r=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,o.default)(10,r))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?"".concat(e,"%"):e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-a*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function p(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,u(e)}function f(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return p(e)>.5?f(e,t):m(e,t)}}
2,8052:(e,t,n)=>{"use strict";var r=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:A((0,o.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:m,skipSx:b,overridesResolver:x=v(g(h))}=c,w=(0,a.default)(c,p),E=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,C=b||!1;let S=f;"Root"===h||"root"===h?S=r:h?S=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(S=void 0);const T=(0,i.default)(e,(0,o.default)({shouldForwardProp:S,label:undefined},w)),k=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>y(e,(0,o.default)({},r,{theme:A({theme:r.theme,defaultTheme:n,themeId:t})})):e,_=function(r){let a=k(r);for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];const c=s?s.map(k):[];d&&x&&c.push((e=>{const r=A((0,o.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const a=r.components[d].styleOverrides,i={};return Object.entries(a).forEach((t=>{let[n,a]=t;i[n]=y(a,(0,o.default)({},e,{theme:r}))})),x(e,i)})),d&&!E&&c.push((e=>{var r;const a=A((0,o.default)({},e,{defaultTheme:n,themeId:t}));return y({variants:null==a||null==(r=a.components)||null==(r=r[d])?void 0:r.variants},(0,o.default)({},e,{theme:a}))})),C||c.push(u);const p=c.length-s.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const h=T(a,...c);return e.muiName&&(h.muiName=e.muiName),h};return T.withConfig&&(_.withConfig=T.withConfig),_}};var o=r(n(4634)),a=r(n(4893)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(3174)),s=n(9482),l=(r(n(7918)),r(n(3382)),r(n(4989))),c=r(n(3234));const u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function A(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function v(e){return e?(t,n)=>n[e]:null}function y(e,t){let{ownerState:n}=t,r=(0,a.default)(t,u);const i="function"===typeof e?e((0,o.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>y(e,(0,o.default)({ownerState:n},r))));if(i&&"object"===typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,a.default)(i,d);return e.forEach((e=>{let a=!0;"function"===typeof e.props?a=e.props((0,o.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(a=!1)})),a&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:n},r,n)):e.style))})),t}return i}},9751:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>i,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>o});var r=n(9172);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(o[e],"px)")};function i(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||a;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"===typeof t){const e=r.breakpoints||a;return Object.keys(t).reduce(((r,a)=>{if(-1!==Object.keys(e.values||o).indexOf(a)){r[e.up(a)]=n(t[a],a)}else{const e=a;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];const i=[t,...o].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),i)}function u(e){let{values:t,breakpoints:n,base:r}=e;const o=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),a=Object.keys(o);if(0===a.length)return t;let i;return a.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[i],i=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[i],i=n):e[n]=t,e)),{})}},9703:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},4853:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8587),o=n(5787);const a=["values","unit","step"],i=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]}
2)))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,a),c=i(t),u=Object.keys(c);function d(e){const r="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(r).concat(n,")")}function p(e){const r="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(r-s/100).concat(n,")")}function h(e,r){const o=u.indexOf(r);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:r)-s/100).concat(n,")")}return(0,o.A)({keys:u,values:c,up:d,down:p,between:h,only:function(e){return u.indexOf(e)+1<u.length?h(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?p(u[t]):h(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},8280:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(5787),o=n(8587),a=n(9172),i=n(4853);const s={borderRadius:4};var l=n(8604);var c=n(8812),u=n(7758),d=n(9703);const p=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:f={}}=e,m=(0,o.A)(e,p),g=(0,i.A)(t),A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(h);let v=(0,a.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:A,shape:(0,r.A)({},s,f)},m);v.applyStyles=d.A;for(var y=arguments.length,b=new Array(y>1?y-1:0),x=1;x<y;x++)b[x-1]=arguments[x];return v=b.reduce(((e,t)=>(0,a.A)(e,t)),v),v.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),v.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},v}}
2,4989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>a.A});var r=n(8280),o=n(4853),a=n(9703)},3815:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9172);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},8604:(e,t,n)=>{"use strict";n.d(t,{LX:()=>f,MA:()=>h,_W:()=>m,Lc:()=>v,Ms:()=>y});var r=n(9751),o=n(7162),a=n(3815);const i={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=i[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(e,t,n,r){var a;const i=null!=(a=(0,o.Yn)(e,t,!1))?a:n;return"number"===typeof i?e=>"string"===typeof e?e:i*e:Array.isArray(i)?e=>"string"===typeof e?e:i[e]:"function"===typeof i?i:()=>{}}function f(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,o){if(-1===t.indexOf(n))return null;const a=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),o),i=e[n];return(0,r.NI)(e,i,a)}function A(e,t){const n=f(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(a.A,{})}function v(e){return A(e,u)}function y(e){return A(e,d)}function b(e){return A(e,p)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=d,b.propTypes={},b.filterProps=p},7162:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>i,Yn:()=>a});var r=n(7598),o=n(9751);function a(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function i(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:a(e,n)||o,t&&(r=t(r,o,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=a(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=i(u,l,e);return e===o&&"string"===typeof e&&(o=i(u,l,"".concat(t).concat("default"===e?"":(0,r.A)(e)),e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},7758:(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var r=n(8604),o=n(7162),a=n(3815);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,a.A)(t,r[n](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=n(9751);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),A=c("borderRightColor"),v=c("borderBottomColor"),y=c("borderLeftColor"),b=c("outline",l),x=c("outlineColor"),w=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};w.propTypes={},w.filterProps=["borderRadius"];i(u,d,p,h,f,m,g,A,v,y,w,b,x);const E=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};E.propTypes={},E.filterProps=["gap"];const C=e=>
vendor: 4,414 bytes, line 2
2{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};C.propTypes={},C.filterProps=["columnGap"];const S=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};S.propTypes={},S.filterProps=["rowGap"];i(E,C,S,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function T(e,t){return"grey"===t?t:e}i((0,o.Ay)({prop:"color",themeKey:"palette",transform:T}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:T}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:T}));function k(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const _=(0,o.Ay)({prop:"width",transform:k}),N=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:k(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};N.filterProps=["maxWidth"];const I=(0,o.Ay)({prop:"minWidth",transform:k}),P=(0,o.Ay)({prop:"height",transform:k}),R=(0,o.Ay)({prop:"maxHeight",transform:k}),D=(0,o.Ay)({prop:"minHeight",transform:k}),L=((0,o.Ay)({prop:"size",cssProperty:"width",transform:k}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:k}),i(_,N,I,P,R,D,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w},color:{themeKey:"palette",transform:T},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:T},backgroundColor:{themeKey:"palette",transform:T},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:E},rowGap:{style:S},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:k},maxWidth:{style:N},minWidth:{transform:k},height:{transform:k},maxHeight:{transform:k},minHeight:{transform:k},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})}
2,8698:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(5787),o=n(8587),a=n(9172),i=n(7758);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:i.A;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,o.A)(e,s),{systemProps:i,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[i,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,a.Q)(e)?(0,r.A)({},i,e):i}:(0,r.A)({},i,t),(0,r.A)({},c,{sx:u})}},3234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>a.A});var r=n(8812),o=n(8698),a=n(7758)},8812:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(7598),o=n(3815),a=n(7162),i=n(9751),s=n(7758);function l(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,a.Yn)(n,u)||{};if(p)return p(s);return(0,i.NI)(s,t,(t=>{let n=(0,a.BO)(h,d,t);return t===n&&"string"===typeof t&&(n=(0,a.BO)(h,d,"".concat(e).concat("default"===t?"":(0,r.A)(t)),t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:a,theme:l={}}=n||{};if(!a)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const a=(0,i.EU)(l.breakpoints),s=Object.keys(a);let u=a;return Object.keys(r).forEach((n=>{const a=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==a&&void 0!==a)if("object"===typeof a)if(c[n])u=(0,o.A)(u,e(n,a,l,c));else{const e=(0,i.NI)({theme:l},a,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(r);return t.every((e=>o.size===Object.keys(e).length))}(e,a)?u=(0,o.A)(u,e):u[n]=t({sx:a,theme:l})}else u=(0,o.A)(u,e(n,a,l,c))})),(0,i.vf)(s,u)}return Array.isArray(a)?a.map(u):u(a)}}const c=l();c.filterProps=["sx"];const u=c},2374:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(5043)),o=n(3174);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(o.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},9386:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},7598:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7868);function o(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7918:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(7598)},9214:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},8610:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},2456:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}),(()=>{}))}n.d(t,{A:()=>r})},3468:(e,t,n)=>{"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{A:()=>r})}
2,9172:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,Q:()=>a});var r=n(5787),o=n(5043);function a(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i(e){if(o.isValidElement(e)||!a(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const l=n.clone?(0,r.A)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((r=>{o.isValidElement(t[r])?l[r]=t[r]:a(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&a(e[r])?l[r]=s(e[r],t[r],n):n.clone?l[r]=a(t[r])?i(t[r]):t[r]:l[r]=t[r]})),l}},9482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(9172)},7868:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(7868)},2372:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a});var r=n(9386);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const a=o[t];return a?"".concat(n,"-").concat(a):"".concat(r.A.generate(e),"-").concat(t)}},2532:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2372);function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,r.Ay)(e,t,n)})),o}},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>a});var r=n(191);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function a(e){const t="".concat(e).match(o);return t&&t[1]||""}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||a(e)||t}function s(e,t,n){const r=i(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return i(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.vM:return s(e,e.render,"ForwardRef");case r.lD:return s(e,e.type,"memo");default:return}}}},1668:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},3940:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1668);function o(e){return(0,r.A)(e).defaultView||window}},3030:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5787);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((a=>{if(a.toString().match(/^(components|slots)$/))n[a]=(0,r.A)({},e[a],n[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const i=e[a]||{},s=t[a];n[a]={},s&&Object.keys(s)?i&&Object.keys(i)?(n[a]=(0,r.A)({}
2,s),Object.keys(i).forEach((e=>{n[a][e]=o(i[e],s[e])}))):n[a]=s:n[a]=i}else void 0===n[a]&&(n[a]=e[a])})),n}},6564:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},4440:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5043);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},1782:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5043),o=n(4440);const a=function(e){const t=r.useRef(e);return(0,o.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},3462:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5043),o=n(6564);function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},5844:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s});var o=n(5043);let a=0;const i=(r||(r=n.t(o,2)))["useId".toString()];function s(e){if(void 0!==i){const t=i();return null!=e?e:t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect((()=>{null==t&&(a+=1,n("mui-".concat(a)))}),[t]),r}(e)}},9303:(e,t,n)=>{"use strict";n.d(t,{E:()=>i,A:()=>s});var r=n(5043);const o={};const a=[];class i{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new i}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}(i.create).current;var t;return t=e.disposeEffect,r.useEffect(t,a),e}},191:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler");Symbol.for("react.provider");var s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}t.vM=c,t.lD=p},7780:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(8523),n(4199),n(8211),n(2238),function(){var e=t,n=e.lib.BlockCipher,r=e.algo,o=[],a=[],i=[],s=[],l=[],c=[],u=[],d=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,o[n]=f,a[f]=n;var m=e[n],g=e[m],A=e[g],v=257*e[f]^16843008*f;i[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,c[n]=v,v=16843009*A^65537*g^257*m^16843008*n,u[f]=v<<24|v>>>8,d[f]=v<<16|v>>>16,p[f]=v<<8|v>>>24,h[f]=v,n?(n=m^e[e[e[A^m]]],r^=e[e[r]]):n=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],i=0;i<r;i++)i<n?a[i]=t[i]:(c=a[i-1],i%n?n>6&&i%n==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[i/n|0]<<24),a[i]=a[i-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(i=r-l,l%4)var c=a[i];else c=a[i-4];s[l]=l<4||i<=4?c:u[o[c>>>24]]^d[o[c>>>16&255]]^p[o[c>>>8&255]]^h[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,s,l,c,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,h,a),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,a,i,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],h=4,f=1;f<l;f++){var m=r[c>>>24]^o[u>>>16&255]^a[d>>>8&255]^i[255&p]^n[h++],g=r[u>>>24]^o[d>>>16&255]^a[p>>>8&255]^i[255&c]^n[h++],A=r[d>>>24]^o[p>>>16&255]^a[c>>>8&255]^i[255&u]^n[h++],v=r[p>>>24]^o[c>>>16&255]^a[u>>>8&255]^i[255&d]^n[h++];c=m,u=g,d=A,p=v}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^n[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&c])^n[h++],A=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[h++],v=(s[p>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[h++],e[t]=m,e[t+1]=g,e[t+2]=A,e[t+3]=v},keySize:8});e.AES=n._createHelper(m)}(),t.AES)}()},6501:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(8523),n(4199),n(8211),n(2238),function(){var e=t,n=e.lib.BlockCipher,r=e.algo;const o=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],i
vendor: 11,033 bytes, line 2
2=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]]
2;var s={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,a=255&t,i=e.sbox[0][n]+e.sbox[1][r];return i^=e.sbox[2][o],i+=e.sbox[3][a],i}
vendor: 6,259 bytes, line 2
2function c(e,t,n){let r,a=t,i=n;for(let s=0;s<o;++s)a^=e.pbox[s],i=l(e,a)^i,r=a,a=i,i=r;return r=a,a=i,i=r,i^=e.pbox[o],a^=e.pbox[o+1],{left:a,right:i}}function u(e,t,n){let r,a=t,i=n;for(let s=o+1;s>1;--s)a^=e.pbox[s],i=l(e,a)^i,r=a,a=i,i=r;return r=a,a=i,i=r,i^=e.pbox[1],a^=e.pbox[0],{left:a,right:i}}function d(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=i[o][t]}let r=0;for(let i=0;i<o+2;i++)e.pbox[i]=a[i]^t[r],r++,r>=n&&(r=0);let s=0,l=0,u=0;for(let a=0;a<o+2;a+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[a]=s,e.pbox[a+1]=l;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[o][t]=s,e.sbox[o][t+1]=l;return!0}var p=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(s,t,n)}},encryptBlock:function(e,t){var n=c(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=n._createHelper(p)}(),t.Blowfish)}()},2238:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(8211),void(t.lib.Cipher||function(e){var n=t,r=n.lib,o=r.Base,a=r.WordArray,i=r.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo.EvpKDF,u=r.Cipher=i.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:A}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),d=(r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),n.mode={}),p=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=d.CBC=function(){var t=p.extend();function n(t,n,r){var o,a=this._iv;a?(o=a,this._iv=e):o=this._prevBlock;for(var i=0;i<r;i++)t[n+i]^=o[i]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,a=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=a}}),t}(),f=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,i=[],s=0;s<r;s+=4)i.push(o);var l=a.create(i,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},A=r.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),a=o.finalize(t),i=o.cfg;return m.create({ciphertext:a,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=a.random(8)),o)i=c.create({keySize:t+n,hasher:o}).compute(e,r);else var i=c.create({keySize:t+n}).compute(e,r);var s=a.create(i.words.slice(t),4*n);return i.sigBytes=4*t,m.create({key:i,iv:s,salt:r})}},y=r.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var a=A.encrypt.call(this,e,t,o.key,r);return a.mixIn(o),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,A.decrypt.call(this,e,t,o.key,r)}})}()))}()},4488:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(477)}catch(g){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},s=i.lib={},l=s.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
vendor: 34,504 bytes, line 2
2pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<o;a++){var i=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(var s=0;s<o;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new c.init(t,e)}}),u=i.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,a=r.sigBytes,i=this.blockSize,s=a/(4*i),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,u=e.min(4*l,a);if(l){for(var d=0;d<l;d+=i)this._doProcessBlock(o,d);n=o.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(s.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}}),i.algo={});return i}(Math);return e}()},8523:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(){var e=t,n=e.lib.WordArray;function r(e,t,r){for(var o=[],a=0,i=0;i<t;i++)if(i%4){var s=r[e.charCodeAt(i-1)]<<i%4*2|r[e.charCodeAt(i)]>>>6-i%4*2;o[a>>>2]|=s<<24-a%4*8,a++}return n.create(o,a)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var i=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)o.push(r.charAt(i>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<n.length;a++)o[n.charCodeAt(a)]=a}var i=n.charAt(64);if(i){var s=e.indexOf(i);-1!==s&&(t=s)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}()},4646:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(){var e=t,n=e.lib.WordArray;function r(e,t,r){for(var o=[],a=0,i=0;i<t;i++)if(i%4){var s=r[e.charCodeAt(i-1)]<<i%4*2|r[e.charCodeAt(i)]>>>6-i%4*2;o[a>>>2]|=s<<24-a%4*8,a++}return n.create(o,a)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var a=[],i=0;i<r;i+=3)for(var s=(n[i>>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,l=0;l<4&&i+.75*l<r;l++)a.push(o.charAt(s>>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var i=0;i<o.length;i++)a[o.charCodeAt(i)]=i}var s=o.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return r(e,n,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),t.enc.Base64url)}()},8168:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(){var e=t,n=e.lib.WordArray,r=e.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var a=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a<n;a+=2){var i=o(t[a>>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a<t;a++)r[a>>>1]|=o(e.charCodeAt(a)<<16-a%2*16);return n.create(r,2*t)}}}(),t.enc.Utf16)}()},8211:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2002),n(4220),function(){var e=t,n=e.lib,r=n.Base,o=n.WordArray,a=e.algo,i=a.MD5,s=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,a=r.hasher.create(),i=o.create(),s=i.words,l=r.keySize,c=r.iterations;s.length<l;){n&&a.update(n),n=a.update(e).finalize(t),a.reset();for(var u=1;u<c;u++)n=a.finalize(n),a.reset();i.concat(n)}return i.sigBytes=4*l,i}});e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),t.EvpKDF)}()},4708:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),function(){var e=t,n=e.lib.CipherParams,r=e.enc.Hex;e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}}}(),t.format.Hex)}()},4220:function(e,t,n){!function(){var t;e.exports=(t=n(4488),void function(){var e=t,n=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),i=this._iKey=t.clone(),s=a.words,l=i.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=i.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())}()},6111:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(9749),n(4503),n(8168),n(8523),n(4646),n(4199),n(2002),n(6368),n(1641),n(7061),n(9092),n(6600),n(7423),n(4220),n(3930),n(8211),n(2238),n(1112),n(7962),n(8049),n(6380),n(8099),n(1884),n(9132),n(4423),n(548),n(4087),n(4708),n(7780),n(9475),n(9638),n(8875),n(1659),n(6501),t)}()},4503:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,n=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=e}}(),t.lib.WordArray)}()},4199:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(e){var n=t,r=n.lib,o=r.WordArray,a=r.Hasher,i=n.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=i.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,i=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],A=e[t+6],v=e[t+7],y=e[t+8],b=e[t+9],x=e[t+10],w=e[t+11],E=e[t+12],C=e[t+13],S=e[t+14],T=e[t+15],k=a[0],_=a[1],N=a[2],I=a[3];k=c(k,_,N,I,i,7,s[0]),I=c(I,k,_,N,l,12,s[1]),N=c(N,I,k,_,h,17,s[2]),_=c(_,N,I,k,f,22,s[3]),k=c(k,_,N,I,m,7,s[4]),I=c(I,k,_,N,g,12,s[5]),N=c(N,I,k,_,A,17,s[6]),_=c(_,N,I,k,v,22,s[7]),k=c(k,_,N,I,y,7,s[8]),I=c(I,k,_,N,b,12,s[9]),N=c(N,I,k,_,x,17,s[10]),_=c(_,N,I,k,w,22,s[11]),k=c(k,_,N,I,E,7,s[12]),I=c(I,k,_,N,C,12,s[13]),N=c(N,I,k,_,S,17,s[14]),k=u(k,_=c(_,N,I,k,T,22,s[15]),N,I,l,5,s[16]),I=u(I,k,_,N,A,9,s[17]),N=u(N,I,k,_,w,14,s[18]),_=u(_,N,I,k,i,20,s[19]),k=u(k,_,N,I,g,5,s[20]),I=u(I,k,_,N,x,9,s[21]),N=u(N,I,k,_,T,14,s[22]),_=u(_,N,I,k,m,20,s[23]),k=u(k,_,N,I,b,5,s[24]),I=u(I,k,_,N,S,9,s[25]),N=u(N,I,k,_,f,14,s[26]),_=u(_,N,I,k,y,20,s[27]),k=u(k,_,N,I,C,5,s[28]),I=u(I,k,_,N,h,9,s[29]),N=u(N,I,k,_,v,14,s[30]),k=d(k,_=u(_,N,I,k,E,20,s[31]),N,I,g,4,s[32]),I=d(I,k,_,N,y,11,s[33]),N=d(N,I,k,_,w,16,s[34]),_=d(_,N,I,k,S,23,s[35]),k=d(k,_,N,I,l,4,s[36]),I=d(I,k,_,N,m,11,s[37]),N=d(N,I,k,_,v,16,s[38]),_=d(_,N,I,k,x,23,s[39]),k=d(k,_,N,I,C,4,s[40]),I=d(I,k,_,N,i,11,s[41]),N=d(N,I,k,_,f,16,s[42]),_=d(_,N,I,k,A,23,s[43]),k=d(k,_,N,I,b,4,s[44]),I=d(I,k,_,N,E,11,s[45]),N=d(N,I,k,_,T,16,s[46]),k=p(k,_=d(_,N,I,k,h,23,s[47]),N,I,i,6,s[48]),I=p(I,k,_,N,v,10,s[49]),N=p(N,I,k,_,S,15,s[50]),_=p(_,N,I,k,g,21,s[51]),k=p(k,_,N,I,E,6,s[52]),I=p(I,k,_,N,f,10,s[53]),N=p(N,I,k,_,x,15,s[54]),_=p(_,N,I,k,l,21,s[55]),k=p(k,_,N,I,y,6,s[56]),I=p(I,k,_,N,T,10,s[57]),N=p(N,I,k,_,A,15,s[58]),_=p(_,N,I,k,C,21,s[59]),k=p(k,_,N,I,m,6,s[60]),I=p(I,k,_,N,w,10,s[61]),N=p(N,I,k,_,h,15,s[62]),_=p(_,N,I,k,b,21,s[63]),a[0]=a[0]+k|0,a[1]=a[1]+_|0,a[2]=a[2]+N|0,a[3]=a[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var a=e.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,a,i){var s=e+(t&n|~t&r)+o+i;return(s<<a|s>>>32-a)+t}function u(e,t,n,r,o,a,i){var s=e+(t&r|n&~r)+o+i;return(s<<a|s>>>32-a)+t}function d(e,t,n,r,o,a,i){var s=e+(t^n^r)+o+i;return(s<<a|s>>>32-a)+t}function p(e,t,n,r,o,a,i){var s=e+(n^(t|~r))+o+i;return(s<<a|s>>>32-a)+t}n.MD5=a._createHelper(l),n.HmacMD5=a._createHmacHelper(l)}(Math),t.MD5)}()},1112:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,a=this._iv;a?(o=a.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var i=0;i<n;i++)e[t+i]^=o[i]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,a=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=a}}),e}(),t.mode.CFB)}()},8049:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0),r(i);var s=i.slice(0);n.encryptBlock(s,0);for(var l=0;l<o;l++)e[t+l]^=s[l]}});return e.Decryptor=o,e}(),t.mode.CTRGladman)}()},7962:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0);var i=a.slice(0);n.encryptBlock(i,0),a[r-1]=a[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=i[s]}});return e.Decryptor=n,e}(),t.mode.CTR)}()},8099:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e}(),t.mode.ECB)}()},6380:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._keystream;o&&(a=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var i=0;i<r;i++)e[t+i]^=a[i]}});return e.Decryptor=n,e}(),t.mode.OFB)}()},1884:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,a=n+o-1;e.clamp(),e.words[a>>>2]|=o<<24-a%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.pad.Ansix923)}()},9132:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.pad.Iso10126={pad:function(e,n){var r=4*n,o=r-e.sigBytes%r;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.pad.Iso10126)}()},4423:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971)}()},4087:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding)}()},548:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(2238),t.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},t.pad.ZeroPadding)}()},3930:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(6368),n(4220),function(){var e=t,n=e.lib,r=n.Base,o=n.WordArray,a=e.algo,i=a.SHA256,s=a.HMAC,l=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),a=o.create(),i=o.create([1]),l=a.words,c=i.words,u=n.keySize,d=n.iterations;l.length<u;){var p=r.update(t).finalize(i);r.reset();for(var h=p.words,f=h.length,m=p,g=1;g<d;g++){m=r.finalize(m),r.reset();for(var A=m.words,v=0;v<f;v++)h[v]^=A[v]}a.concat(p),c[0]++}return a.sigBytes=4*u,a}});e.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),t.PBKDF2)}()},1659:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(8523),n(4199),n(8211),n(2238),function(){var e=t,n=e.lib.StreamCipher,r=e.algo,o=[],a=[],i=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var a=t.words,i=a[0],s=a[1],c=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=p,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=p,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=l^c}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}e.RabbitLegacy=n._createHelper(s)}(),t.RabbitLegacy)}()},8875:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(8523),n(4199),n(8211),n(2238),function(){var e=t,n=e.lib.StreamCipher,r=e.algo,o=[],a=[],i=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var a=t.words,i=a[0],s=a[1],c=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=p,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=l^c}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}e.Rabbit=n._createHelper(s)}(),t.Rabbit)}()},9638:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(8523),n(4199),n(8211),n(2238),function(){var e=t,n=e.lib.StreamCipher,r=e.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var a=0;o<256;o++){var i=o%n,s=t[i>>>2]>>>24-i%4*8&255;a=(a+r[o]+s)%256;var l=r[o];r[o]=r[a],r[a]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}e.RC4=n._createHelper(o);var i=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});e.RC4Drop=n._createHelper(i)}(),t.RC4)}()},7423:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(){var e=t,n=e.lib,r=n.WordArray,o=n.Hasher,a=e.algo,i=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a,p,y,b,x,w,E,C,S,T,k,_=this._hash.words,N=u.words,I=d.words,P=i.words,R=s.words,D=l.words,L=c.words;for(w=a=_[0],E=p=_[1],C=y=_[2],S=b=_[3],T=x=_[4],n=0;n<80;n+=1)k=a+e[t+P[n]]|0,k+=n<16?h(p,y,b)+N[0]:n<32?f(p,y,b)+N[1]:n<48?m(p,y,b)+N[2]:n<64?g(p,y,b)+N[3]:A(p,y,b)+N[4],k=(k=v(k|=0,D[n]))+x|0,a=x,x=b,b=v(y,10),y=p,p=k,k=w+e[t+R[n]]|0,k+=n<16?A(E,C,S)+I[0]:n<32?g(E,C,S)+I[1]:n<48?m(E,C,S)+I[2]:n<64?f(E,C,S)+I[3]:h(E,C,S)+I[4],k=(k=v(k|=0,L[n]))+T|0,w=T,T=S,S=v(C,10),C=E,E=k;k=_[1]+y+S|0,_[1]=_[2]+b+T|0,_[2]=_[3]+x+w|0,_[3]=_[4]+a+E|0,_[4]=_[0]+p+C|0,_[0]=k},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,a=o.words,i=0;i<5;i++){var s=a[i];a[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function f(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function A(e,t,n){return e^(t|~n)}function v(e,t){return e<<t|e>>>32-t}e.RIPEMD160=o._createHelper(p),e.HmacRIPEMD160=o._createHmacHelper(p)}(Math),t.RIPEMD160)}()},2002:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(){var e=t,n=e.lib,r=n.WordArray,o=n.Hasher,a=e.algo,i=[],s=a.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+l+i[c];d+=c<20?1518500249+(o&a|~o&s):c<40?1859775393+(o^a^s):c<60?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,l=s,s=a,a=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=o._createHelper(s),e.HmacSHA1=o._createHmacHelper(s)}(),t.SHA1)}()},1641:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(6368),function(){var e=t,n=e.lib.WordArray,r=e.algo,o=r.SHA256,a=r.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=o._createHelper(a),e.HmacSHA224=o._createHmacHelper(a)}(),t.SHA224)}()},6368:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(e){var n=t,r=n.lib,o=r.WordArray,a=r.Hasher,i=n.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),l[o]=n(e.pow(r,1/3)),o++),r++}();var c=[],u=i.SHA256=a.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],d=n[6],p=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[h-2],A=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=m+c[h-7]+A+c[h-16]}var v=r&o^r&a^o&a,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[h]+c[h];p=d,d=u,u=s,s=i+b|0,i=a,a=o,o=r,r=b+(y+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+i|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(u),n.HmacSHA256=a._createHmacHelper(u)}(Math),t.SHA256)}()},6600:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(9749),function(e){var n=t,r=n.lib,o=r.WordArray,a=r.Hasher,i=n.x64.Word,s=n.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,a=0;a<24;a++){for(var s=0,d=0,p=0;p<7;p++){if(1&o){var h=(1<<p)-1;h<32?d^=1<<h:s^=1<<h-32}128&o?o=o<<1^113:o<<=1}u[a]=i.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=i.create()}();var p=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var a=e[t+2*o],i=e[t+2*o+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),(_=n[o]).high^=i,_.low^=a}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++)h^=(_=n[p+5*m]).high,f^=_.low;var g=d[p];g.high=h,g.low=f}for(p=0;p<5;p++){var A=d[(p+4)%5],v=d[(p+1)%5],y=v.high,b=v.low;for(h=A.high^(y<<1|b>>>31),f=A.low^(b<<1|y>>>31),m=0;m<5;m++)(_=n[p+5*m]).high^=h,_.low^=f}for(var x=1;x<25;x++){var w=(_=n[x]).high,E=_.low,C=l[x];C<32?(h=w<<C|E>>>32-C,f=E<<C|w>>>32-C):(h=E<<C-32|w>>>64-C,f=w<<C-32|E>>>64-C);var S=d[c[x]];S.high=h,S.low=f}var T=d[0],k=n[0];for(T.high=k.high,T.low=k.low,p=0;p<5;p++)for(m=0;m<5;m++){var _=n[x=p+5*m],N=d[x],I=d[(p+1)%5+5*m],P=d[(p+2)%5+5*m];_.high=N.high^~I.high&P.high,_.low=N.low^~I.low&P.low}_=n[0];var R=u[s];_.high^=R.high,_.low^=R.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/a)*a>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var i=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=i[u],p=d.high,h=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new o.init(c,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(p),n.HmacSHA3=a._createHmacHelper(p)}(Math),t.SHA3)}()},9092:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(9749),n(7061),function(){var e=t,n=e.x64,r=n.Word,o=n.WordArray,a=e.algo,i=a.SHA512,s=a.SHA384=i.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=i._createHelper(s),e.HmacSHA384=i._createHmacHelper(s)}(),t.SHA384)}()},7061:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(9749),function(){var e=t,n=e.lib.Hasher,r=e.x64,o=r.Word,a=r.WordArray,i=e.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=i.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],d=n[6],p=n[7],h=r.high,f=r.low,m=o.high,g=o.low,A=a.high,v=a.low,y=i.high,b=i.low,x=s.high,w=s.low,E=u.high,C=u.low,S=d.high,T=d.low,k=p.high,_=p.low,N=h,I=f,P=m,R=g,D=A,L=v,O=y,M=b,j=x,F=w,B=E,U=C,z=S,H=T,W=k,V=_,G=0;G<80;G++){var q,Y,Q=c[G];if(G<16)Y=Q.high=0|e[t+2*G],q=Q.low=0|e[t+2*G+1];else{var X=c[G-15],K=X.high,J=X.low,Z=(K>>>1|J<<31)^(K>>>8|J<<24)^K>>>7,$=(J>>>1|K<<31)^(J>>>8|K<<24)^(J>>>7|K<<25),ee=c[G-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ae=c[G-7],ie=ae.high,se=ae.low,le=c[G-16],ce=le.high,ue=le.low;Y=(Y=(Y=Z+ie+((q=$+se)>>>0<$>>>0?1:0))+re+((q+=oe)>>>0<oe>>>0?1:0))+ce+((q+=ue)>>>0<ue>>>0?1:0),Q.high=Y,Q.low=q}var de,pe=j&B^~j&z,he=F&U^~F&H,fe=N&P^N&D^P&D,me=I&R^I&L^R&L,ge=(N>>>28|I<<4)^(N<<30|I>>>2)^(N<<25|I>>>7),Ae=(I>>>28|N<<4)^(I<<30|N>>>2)^(I<<25|N>>>7),ve=(j>>>14|F<<18)^(j>>>18|F<<14)^(j<<23|F>>>9),ye=(F>>>14|j<<18)^(F>>>18|j<<14)^(F<<23|j>>>9),be=l[G],xe=be.high,we=be.low,Ee=W+ve+((de=V+ye)>>>0<V>>>0?1:0),Ce=Ae+me;W=z,V=H,z=B,H=U,B=j,U=F,j=O+(Ee=(Ee=(Ee=Ee+pe+((de+=he)>>>0<he>>>0?1:0))+xe+((de+=we)>>>0<we>>>0?1:0))+Y+((de+=q)>>>0<q>>>0?1:0))+((F=M+de|0)>>>0<M>>>0?1:0)|0,O=D,M=L,D=P,L=R,P=N,R=I,N=Ee+(ge+fe+(Ce>>>0<Ae>>>0?1:0))+((I=de+Ce|0)>>>0<de>>>0?1:0)|0}f=r.low=f+I,r.high=h+N+(f>>>0<I>>>0?1:0),g=o.low=g+R,o.high=m+P+(g>>>0<R>>>0?1:0),v=a.low=v+L,a.high=A+D+(v>>>0<L>>>0?1:0),b=i.low=b+M,i.high=y+O+(b>>>0<M>>>0?1:0),w=s.low=w+F,s.high=x+j+(w>>>0<F>>>0?1:0),C=u.low=C+U,u.high=E+B+(C>>>0<U>>>0?1:0),T=d.low=T+H,d.high=S+z+(T>>>0<H>>>0?1:0),_=p.low=_+V,p.high=k+W+(_>>>0<V>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=n._createHelper(u),e.HmacSHA512=n._createHmacHelper(u)}(),t.SHA512)}()},9475:function(e,t,n){!function(){var t;e.exports=(t=n(4488),n(8523),n(4199),n(8211),n(2238),function(){var e=t,n=e.lib,r=n.WordArray,o=n.BlockCipher,a=e.algo,i=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c
vendor: 7,629 bytes, line 2
2=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
2u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=i[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],a=0;a<16;a++){var c=o[a]=[],u=l[a];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],a=this._lBlock,i=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((i^o[l])&u[l])>>>0];this._lBlock=i,this._rBlock=a^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=o._createHelper(d);var f=a.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(f)}(),t.TripleDES)}()},9749:function(e,t,n){!function(){var t;e.exports=(t=n(4488),function(e){var n=t,r=n.lib,o=r.Base,a=r.WordArray,i=n.x64={};i.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=o.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),t)}()},7347:e=>{"use strict";var t={single_source_shortest_paths:function(e,n,r){var o={},a={};a[n]=0;var i,s,l,c,u,d,p,h=t.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(l in s=(i=h.pop()).value,c=i.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],p=a[l],("undefined"===typeof a[l]||p>
2d)&&(a[l]=d,h.push(l,d),o[l]=s));if("undefined"!==typeof r&&"undefined"===typeof a[r]){var f=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},5558:e=>{"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);if(o>=55296&&o<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(o=1024*(o-55296)+a-56320+65536,r+=1)}o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(63&o|128)):o<55296||o>=57344&&o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(63&o|128)):o>=65536&&o<=1114111?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},3240:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},i=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!a)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"===typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(f&&o&&(i(o)||(c=a(o)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&i(r)?r:{},s(d,{name:n,newValue:e(f,u,o)})):"undefined"!==typeof o&&s(d,{name:n,newValue:o}));return d}},219:(e,t,n)=>{"use strict";var r=n(3763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<i.length;++g){var A=i[g];if(!a[A]&&(!r||!r[A])&&(!m||!m[A])&&(!s||!s[A])){var v=p(n,A);try{c(t,A,v)}catch(y){}}}}return t}},4983:(e,t)=>
2{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,A=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function w(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||x(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===s||e===i||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===A)},t.typeOf=x},3763:(e,t,n)=>{"use strict";e.exports=n(4983)},4403:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function A(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function y(){v(r)}function b(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return A("End of comment missing");var r=e.slice(2,n-2);return p+=2,h(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}
2function w(){var e=f(),n=v(o);if(n){if(x(),!v(a))return A("property missing ':'");var r=v(i),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return y(),function(){var e,t=[];for(b(t);e=w();)!1!==e&&(t.push(e),b(t));return t}()}},6159:(e,t,n)=>{e.exports=function e(t,n,r){function o(i,s){if(!n[i]){if(!t[i]){if(a)return a(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[i]={exports:{}};t[i][0].call(c.exports,(function(e){return o(t[i][1][e]||e)}),c,c.exports,e,t,n,r)}return n[i].exports}for(var a=void 0,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){"use strict";var r=e("./utils"),o=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,o,i,s,l,c,u=[],d=0,p=e.length,h=p,f="string"!==r.getTypeOf(e);d<e.length;)h=p-d,o=f?(t=e[d++],n=d<p?e[d++]:0,d<p?e[d++]:0):(t=e.charCodeAt(d++),n=d<p?e.charCodeAt(d++):0,d<p?e.charCodeAt(d++):0),i=t>>2,s=(3&t)<<4|n>>4,l=1<h?(15&n)<<2|o>>6:64,c=2<h?63&o:64,u.push(a.charAt(i)+a.charAt(s)+a.charAt(l)+a.charAt(c));return u.join("")},n.decode=function(e){var t,n,r,i,s,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var p,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&h--,e.charAt(e.length-2)===a.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=o.uint8array?new Uint8Array(0|h):new Array(0|h);c<e.length;)t=a.indexOf(e.charAt(c++))<<2|(i=a.indexOf(e.charAt(c++)))>>4,n=(15&i)<<4|(s=a.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=a.indexOf(e.charAt(c++))),p[u++]=t,64!==s&&(p[u++]=n),64!==l&&(p[u++]=r);return p}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),o=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),i=e("./stream/DataLengthProbe");function s(e,t,n,r,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=o}s.prototype={getContentWorker:function(){var e=new o(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new o(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new i("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new i("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),o=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var a=o,i=r+n;e^=-1;for(var s=r;s<i;s++)e=e>>>8^a[255&(e^t[s])];return~e}(0|t,e,e.length,0):function(e,t,n,r){var a=o,i=r+n;e^=-1;for(var s=r;s<i;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako"),a=e("./utils"),i=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){i.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(l,i),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)}
vendor: 6,841 bytes, line 2
2,l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function o(e,t,n,o,i,u){var d,p,h=e.file,f=e.compression,m=u!==s.utf8encode,g=a.transformTo("string",u(h.name)),A=a.transformTo("string",s.utf8encode(h.name)),v=h.comment,y=a.transformTo("string",u(v)),b=a.transformTo("string",s.utf8encode(v)),x=A.length!==h.name.length,w=b.length!==v.length,E="",C="",S="",T=h.dir,k=h.date,_={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(_.crc32=e.crc32,_.compressedSize=e.compressedSize,_.uncompressedSize=e.uncompressedSize);var N=0;t&&(N|=8),m||!x&&!w||(N|=2048);var I=0,P=0;T&&(I|=16),"UNIX"===i?(P=798,I|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(h.unixPermissions,T)):(P=20,I|=function(e){return 63&(e||0)}(h.dosPermissions)),d=k.getUTCHours(),d<<=6,d|=k.getUTCMinutes(),d<<=5,d|=k.getUTCSeconds()/2,p=k.getUTCFullYear()-1980,p<<=4,p|=k.getUTCMonth()+1,p<<=5,p|=k.getUTCDate(),x&&(C=r(1,1)+r(l(g),4)+A,E+="up"+r(C.length,2)+C),w&&(S=r(1,1)+r(l(y),4)+b,E+="uc"+r(S.length,2)+S);var R="";return R+="\n\0",R+=r(N,2),R+=f.magic,R+=r(d,2),R+=r(p,2),R+=r(_.crc32,4),R+=r(_.compressedSize,4),R+=r(_.uncompressedSize,4),R+=r(g.length,2),R+=r(E.length,2),{fileRecord:c.LOCAL_FILE_HEADER+R+g+E,dirRecord:c.CENTRAL_FILE_HEADER+r(P,2)+R+r(y.length,2)+"\0\0\0\0"+r(I,4)+r(o,4)+g+E+y}}var a=e("../utils"),i=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,r){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,i),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=o(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=o(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,o=function(e,t,n,o,i){var s=a.transformTo("string",i(o));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!i.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){i.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),o=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var a=new o(t.streamFiles,n,t.platform,t.encodeFileName),i=0;try{e.forEach((function(e,n){i++;var o=function(e,t){var n=e||t,o=r[n];if(!o)throw new Error(n+" is not a valid compression method !");return o}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(o,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=i}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),o=e("./external"),a=e("./utf8"),i=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new o.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip f
2ile",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new i(t);return n.load(e),n})).then((function(e){var n=[o.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(c(r[a]));return o.Promise.all(n)})).then((function(e){for(var o=e.shift(),a=o.files,i=0;i<a.length;i++){var s=a[i],l=s.fileNameStr,c=r.resolve(s.fileNameStr);n.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(c).unsafeOriginalName=l)}return o.zipComment.length&&(n.comment=o.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../stream/GenericWorker");function a(e,t){o.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,o),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function o(e,t,n){r.call(this,t),this._helper=e;var o=this;e.on("data",(function(e,t){o.push(e)||o._helper.pause(),n&&n(t)})).on("error",(function(e){o.emit("error",e)})).on("end",(function(){o.push(null)}))}e("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},t.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,o=a.getTypeOf(t),s=a.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(r=f(e))&&g.call(this,r,!0);var d="string"===o&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",o="string");var A=null;A=t instanceof c||t instanceof i?t:p.isNode&&p.isStream(t)?new h(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new u(e,A,s);this.files[e]=v}var o=e("./utf8"),a=e("./utils"),i=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),p=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),f=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function A(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(A(e)){var o=e;return this.filter((function(e,t){return!t.dir&&o.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(A(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 5,837 bytes, line 2
2,generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(e){(t=new i("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function o(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data[this.zero+e]},o.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===o)return a-this.zero;return-1},o.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&o===a[3]},o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function o(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=o},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},o.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../support"),a=e("./ArrayReader"),i=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new s(e):o.uint8array?new l(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new i(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),o=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}o.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),o=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./GenericWorker");function a(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}
vendor: 6,707 bytes, line 2
2r.inherits(a,o),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./GenericWorker");function a(e){o.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(a,o),a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./ConvertWorker"),a=e("./GenericWorker"),i=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t){return new l.Promise((function(n,o){var a=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,n){a.push(e),t&&t(n)})).on("error",(function(e){a=[],o(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return i.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,o=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(o=new Uint8Array(a),n=0;n<t.length;n++)o.set(t[n],r),r+=t[n].length;return o;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,a),c);n(e)}catch(e){o(e)}a=[]})).resume()}))}function d(e,t,n){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=t,this._mimeType=n,r.checkSupport(i),this._worker=e.pipe(new o(i)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),n.blob=0===o.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),o=e("./support"),a=e("./nodejsUtils"),i=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){i.call(this,"utf-8 decode"),this.leftOver=null}
vendor: 20,032 bytes, line 2
2function u(){i.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return o.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,r,a,i,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=o.uint8array?new Uint8Array(l):new Array(l),a=i=0;i<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[i++]=n:(n<2048?t[i++]=192|n>>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t}(e)},n.utf8decode=function(e){return o.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,o,a,i=e.length,l=new Array(2*i);for(t=n=0;t<i;)if((o=e[t++])<128)l[n++]=o;else if(4<(a=s[o]))l[n++]=65533,t+=a-1;else{for(o&=2===a?31:3===a?15:7;1<a&&t<i;)o=o<<6|63&e[t++],a--;1<a?l[n++]=65533:o<65536?l[n++]=o:(o-=65536,l[n++]=55296|o>>10&1023,l[n++]=56320|1023&o)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(o.uint8array?"uint8array":"array",e))},r.inherits(c,i),c.prototype.processChunk=function(e){var t=r.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;i!==t.length&&(o.uint8array?(l=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(l=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,i),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),o=e("./base64"),a=e("./nodejsUtils"),i=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(t,r){n.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return o.append(t),o.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var r=[],o=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;o<a;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+n,a)))),o+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),o=!0;if("uint8array"===r?o=c.applyCanBeUsed.uint8array:"nodebuffer"===r&&(o=c.applyCanBeUsed.nodebuffer),o)for(;1<t;)try{return c.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var p={};p.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return p.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,a.allocBuffer(e.length))}},p.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},p.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},p.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},p.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return p.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return p[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var o=t[r];"."===o||""===o&&0!==r&&r!==t.length-1||(".."===o?n.pop():n.push(o))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,c){return i.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new i.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(c?t=o.decode(t):a&&!0!==s&&(t=function(e){return l(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):i.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),o=e("./utils"),a=e("./signature"),i=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new i({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),o=e("./utils"),a=e("./compressedObject"),i=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<o;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(o)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||i(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||i(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var o=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),i=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new i.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new i.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new o(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new i.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)r.prototype[c[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var a=0,i=new o(u),s=e.document.createTextNode("");i.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function o(){}var a={},i=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==o&&h(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return a.reject(e,r)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)}))}function p(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function o(t){n||(n=!0,a.resolve(e,t))}var i=f((function(){t(o,r)}));"error"===i.status&&r(i.value)}function f(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===i)return this;var n=new this.constructor(o);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=f(p,t);
vendor: 4,979 bytes, line 2
2if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var o=-1,i=e.queue.length;++o<i;)e.queue[o].callFulfilled(t)}return e},a.reject=function(e,t){e.state=i,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:a.resolve(new this(o),e)},c.reject=function(e){var t=new this(o);return a.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var i=new Array(n),s=0,l=-1,c=new this(o);++l<n;)u(e[l],l);return c;function u(e,o){t.resolve(e).then((function(e){i[o]=e,++s!==n||r||(r=!0,a.resolve(c,i))}),(function(e){r||(r=!0,a.reject(c,e))}))}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var i,s=-1,l=new this(o);++s<n;)i=e[s],t.resolve(i).then((function(e){r||(r=!0,a.resolve(l,e))}),(function(e){r||(r=!0,a.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),o=e("./utils/common"),a=e("./utils/strings"),i=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,p=8;function h(e){if(!(this instanceof h))return new h(e);this.options=o.assign({level:u,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(i[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var f;if(f="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,f))!==c)throw new Error(i[n]);this._dict_set=!0}}function f(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||i[n.err];return n.result}h.prototype.push=function(e,t){var n,i,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;i=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,i))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==i&&2!==i)||("string"===this.options.to?this.onData(a.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===i?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==i||(this.onEnd(c),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=h,n.deflate=f,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,f(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),o=e("./utils/common"),a=e("./utils/strings"),i=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==i.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function p(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,p,h=this.strm,f=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?i.Z_FINISH:i.Z_NO_FLUSH,"string"==typeof e?h.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?h.input=new
vendor: 4,283 bytes, line 2
2Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(f),h.next_out=0,h.avail_out=f),(n=r.inflate(h,i.Z_NO_FLUSH))===i.Z_NEED_DICT&&m&&(p="string"==typeof m?a.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,p)),n===i.Z_BUF_ERROR&&!0===g&&(n=i.Z_OK,g=!1),n!==i.Z_STREAM_END&&n!==i.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==i.Z_STREAM_END&&(0!==h.avail_in||s!==i.Z_FINISH&&s!==i.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(h.output,h.next_out),c=h.next_out-l,d=a.buf2string(h.output,l),h.next_out=c,h.avail_out=f-c,c&&o.arraySet(h.output,h.output,l,c,0),this.onData(d)):this.onData(o.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==i.Z_STREAM_END);return n===i.Z_STREAM_END&&(s=i.Z_FINISH),s===i.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===i.Z_OK):s!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===i.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=p,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var a=0;a<r;a++)e[o+a]=t[n+a]},flattenChunks:function(e){var t,n,r,o,a,i;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(i=new Uint8Array(r),t=o=0,n=e.length;t<n;t++)a=e[t],i.set(a,o),o+=a.length;return i}},a={arraySet:function(e,t,n,r,o){for(var a=0;a<r;a++)e[o+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),o=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var i=new r.Buf8(256),s=0;s<256;s++)i[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n}i[254]=i[254]=1,n.string2buf=function(e){var t,n,o,a,i,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(o=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(o-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),a=i=0;i<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(o=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(o-56320),a++),n<128?t[i++]=n:(n<2048?t[i++]=192|n>>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,o,a,s=t||e.length,c=new Array(2*s);for(n=r=0;n<s;)if((o=e[n++])<128)c[r++]=o;else if(4<(a=i[o]))c[r++]=65533,n+=a-1;else{for(o&=2===a?31:3===a?15:7;1<a&&n<s;)o=o<<6|63&e[n++],a--;1<a?c[r++]=65533:o<65536?c[r++]=o:(o-=65536,c[r++]=55296|o>>10&1023,c[r++]=56320|1023&o)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+i[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";
vendor: 4,179 bytes, line 2
2t.exports=function(e,t,n,r){for(var o=65535&e,a=e>>>16&65535,i=0;0!==n;){for(n-=i=2e3<n?2e3:n;a=a+(o=o+t[r++]|0)|0,--i;);o%=65521,a%=65521}return o|a<<16}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,o){var a=r,i=o+n;e^=-1;for(var s=o;s<i;s++)e=e>>>8^a[255&(e^t[s])];return~e}},{}],46:[function(e,t,n){"use strict";var r,o=e("../utils/common"),a=e("./trees"),i=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,p=-2,h=-1,f=4,m=2,g=8,A=9,v=286,y=30,b=19,x=2*v+1,w=15,E=3,C=258,S=C+E+1,T=42,k=113,_=1,N=2,I=3,P=4;function R(e,t){return e.msg=l[t],t}function D(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function O(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function M(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,O(e.strm)}function j(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var n,r,o=e.max_chain_length,a=e.strstart,i=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-S?e.strstart-(e.w_size-S):0,c=e.window,u=e.w_mask,d=e.prev,p=e.strstart+C,h=c[a+i-1],f=c[a+i];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+i]===f&&c[n+i-1]===h&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<p);if(r=C-(p-a),a=p-C,i<r){if(e.match_start=t,s<=(i=r))break;h=c[a+i-1],f=c[a+i]}}}while((t=d[t&u])>l&&0!=--o);return i<=e.lookahead?i:e.lookahead}function U(e){var t,n,r,a,l,c,u,d,p,h,f=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-S)){for(o.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=n=e.hash_size;r=e.head[--t],e.head[t]=f<=r?r-f:0,--n;);for(t=n=f;r=e.prev[--t],e.prev[t]=f<=r?r-f:0,--n;);a+=f}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,h=void 0,(p=a)<(h=c.avail_in)&&(h=p),n=0===h?0:(c.avail_in-=h,o.arraySet(u,c.input,c.next_in,h,d),1===c.state.wrap?c.adler=i(c.adler,u,h,d):2===c.state.wrap&&(c.adler=s(c.adler,u,h,d)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=E)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+E-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<E)););}while(e.lookahead<S&&0!==e.strm.avail_in)}function z(e,t){for(var n,r;;){if(e.lookahead<S){if(U(e),e.lookahead<S&&t===c)return _;if(0===e.lookahead)break}if(n=0,e.lookahead>=E&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+E-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-S&&(e.match_length=B(e,n)),e.match_length>=E)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-E),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=E){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+E-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;
vendor: 4,761 bytes, line 2
2else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(M(e,!1),0===e.strm.avail_out))return _}return e.insert=e.strstart<E-1?e.strstart:E-1,t===u?(M(e,!0),0===e.strm.avail_out?I:P):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?_:N}function H(e,t){for(var n,r,o;;){if(e.lookahead<S){if(U(e),e.lookahead<S&&t===c)return _;if(0===e.lookahead)break}if(n=0,e.lookahead>=E&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+E-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=E-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-S&&(e.match_length=B(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===E&&4096<e.strstart-e.match_start)&&(e.match_length=E-1)),e.prev_length>=E&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-E,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-E),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+E-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=E-1,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return _}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&M(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return _}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<E-1?e.strstart:E-1,t===u?(M(e,!0),0===e.strm.avail_out?I:P):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?_:N}function W(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*x),this.dyn_dtree=new o.Buf16(2*(2*y+1)),this.bl_tree=new o.Buf16(2*(2*b+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(w+1),this.heap=new o.Buf16(2*v+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*v+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function G(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:k,e.adler=2===t.wrap?0:1,t.last_flush=c,a._tr_init(t),d):R(e,p)}function q(e){var t=G(e);return t===d&&function(e){e.window_size=2*e.w_size,L(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=E-1,e.match_available=0,e.ins_h=0}(e.state),t}function Y(e,t,n,r,a,i){if(!e)return p;var s=1;if(t===h&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||A<a||n!==g||r<8||15<r||t<0||9<t||i<0||f<i)return R(e,p);8===r&&(r=9);var l=new V;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+E-1)/E),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=i,l.method=n,q(e)}r=[new W(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&t===c)return _;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,M(e,!1),0===e.strm.avail_out))return _;if(e.strstart-e.block_start>=e.w_size-S&&(M(e,!1),0===e.strm.avail_out))return _}return e.insert=0,t===u?(M(e,!0),0===e.strm.avail_out?I:P):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),_)}
vendor: 17,414 bytes, line 2
2)),new W(4,4,8,4,z),new W(4,5,16,8,z),new W(4,6,32,32,z),new W(4,4,16,16,H),new W(8,16,32,32,H),new W(8,16,128,128,H),new W(8,32,128,256,H),new W(32,128,258,1024,H),new W(32,258,258,4096,H)],n.deflateInit=function(e,t){return Y(e,t,g,15,8,0)},n.deflateInit2=Y,n.deflateReset=q,n.deflateResetKeep=G,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?p:(e.state.gzhead=t,d):p},n.deflate=function(e,t){var n,o,i,l;if(!e||!e.state||5<t||t<0)return e?R(e,p):p;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&t!==u)return R(e,0===e.avail_out?-5:p);if(o.strm=e,n=o.last_flush,o.last_flush=t,o.status===T)if(2===o.wrap)e.adler=0,j(o,31),j(o,139),j(o,8),o.gzhead?(j(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),j(o,255&o.gzhead.time),j(o,o.gzhead.time>>8&255),j(o,o.gzhead.time>>16&255),j(o,o.gzhead.time>>24&255),j(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),j(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(j(o,255&o.gzhead.extra.length),j(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(j(o,0),j(o,0),j(o,0),j(o,0),j(o,0),j(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),j(o,3),o.status=k);else{var h=g+(o.w_bits-8<<4)<<8;h|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(h|=32),h+=31-h%31,o.status=k,F(o,h),0!==o.strstart&&(F(o,e.adler>>>16),F(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(i=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>i&&(e.adler=s(e.adler,o.pending_buf,o.pending-i,i)),O(e),i=o.pending,o.pending!==o.pending_buf_size));)j(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>i&&(e.adler=s(e.adler,o.pending_buf,o.pending-i,i)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){i=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>i&&(e.adler=s(e.adler,o.pending_buf,o.pending-i,i)),O(e),i=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,j(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>i&&(e.adler=s(e.adler,o.pending_buf,o.pending-i,i)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){i=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>i&&(e.adler=s(e.adler,o.pending_buf,o.pending-i,i)),O(e),i=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,j(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>i&&(e.adler=s(e.adler,o.pending_buf,o.pending-i,i)),0===l&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&O(e),o.pending+2<=o.pending_buf_size&&(j(o,255&e.adler),j(o,e.adler>>8&255),e.adler=0,o.status=k)):o.status=k),0!==o.pending){if(O(e),0===e.avail_out)return o.last_flush=-1,d}else if(0===e.avail_in&&D(t)<=D(n)&&t!==u)return R(e,-5);if(666===o.status&&0!==e.avail_in)return R(e,-5);if(0!==e.avail_in||0!==o.lookahead||t!==c&&666!==o.status){var f=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===c)return _;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(M(e,!1),0===e.strm.avail_out))return _}return e.insert=0,t===u?(M(e,!0),0===e.strm.avail_out?I:P):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?_:N}(o,t):3===o.strategy?function(e,t){for(var n,r,o,i,s=e.window;;){if(e.lookahead<=C){if(U(e),e.lookahead<=C&&t===c)return _;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=E&&0<e.strstart&&(r=s[o=e.strstart-1])===s[++o]&&r===s[++o]&&r===s[++o]){i=e.strstart+C;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&o<i);e.match_length=C-(i-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=E?(n=a._tr_tally(e,1,e.match_length-E),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(M(e,!1),0===e.strm.avail_out))return _}return e.insert=0,t===u?(M(e,!0),0===e.strm.avail_out?I:P):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?_:N}(o,t):r[o.level].func(o,t);if(f!==I&&f!==P||(o.status=666),f===_||f===I)return 0===e.avail_out&&(o.last_flush=-1),d;if(f===N&&(1===t?a._tr_align(o):5!==t&&(a._tr_stored_block(o,0,0,!1),3===t&&(L(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),O(e),0===e.avail_out))return o.last_flush=-1,d}return t!==u?d:o.wrap<=0?1:(2===o.wrap?(j(o,255&e.adler),j(o,e.adler>>8&255),j(o,e.adler>>16&255),j(o,e.adler>>24&255),j(o,255&e.total_in),j(o,e.total_in>>8&255),j(o,e.total_in>>16&255),j(o,e.total_in>>24&255)):(F(o,e.adler>>>16),F(o,65535&e.adler)),O(e),0<o.wrap&&(o.wrap=-o.wrap),0!==o.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==k&&666!==t?R(e,p):(e.state=null,t===k?R(e,-3):d):p},n.deflateSetDictionary=function(e,t){var n,r,a,s,l,c,u,h,f=t.length;if(!e||!e.state)return p;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==T||n.lookahead)return p;for(1===s&&(e.adler=i(e.adler,t,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(L(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new o.Buf8(n.w_size),o.arraySet(h,t,f-n.w_size,n.w_size,0),t=h,f=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=f,e.next_in=0,e.input=t,U(n);n.lookahead>=E;){for(r=n.strstart,a=n.lookahead-(E-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+E-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=E-1,U(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=E-1,n.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,o,a,i,s,l,c,u,d,p,h,f,m,g,A,v,y,b,x,w,E,C,S,T;n=e.state,r=e.next_in,S=e.input,o=r+(e.avail_in-5),a=e.next_out,T=e.output,i=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,p=n.window,h=n.hold,f=n.bits,m=n.lencode,g=n.distcode,A=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{f<15&&(h+=S[r++]<<f,f+=8,h+=S[r++]<<f,f+=8),y=m[h&A];t:for(;;){if(h>>>=b=y>>>24,f-=b,0===(b=y>>>16&255))T[a++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=m[(65535&y)+(h&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&y,(b&=15)&&(f<b&&(h+=S[r++]<<f,f+=8),x+=h&(1<<b)-1,h>>>=b,f-=b),f<15&&(h+=S[r++]<<f,f+=8,h+=S[r++]<<f,f+=8),y=g[h&v];n:for(;;){if(h>>>=b=y>>>24,f-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(h&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(w=65535&y,f<(b&=15)&&(h+=S[r++]<<f,(f+=8)<b&&(h+=S[r++]<<f,f+=8)),l<(w+=h&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=b,f-=b,(b=a-i)<w){if(u<(b=w-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=p,(E=0)===d){if(E+=c-b,b<x){for(x-=b;T[a++]=p[E++],--b;);E=a-w,C=T}}else if(d<b){if(E+=c+d-b,(b-=d)<x){for(x-=b;T[a++]=p[E++],--b;);if(E=0,d<x){for(x-=b=d;T[a++]=p[E++],--b;);E=a-w,C=T}}}else if(E+=d-b,b<x){for(x-=b;T[a++]=p[E++],--b;);E=a-w,C=T}for(;2<x;)T[a++]=C[E++],T[a++]=C[E++],T[a++]=C[E++],x-=3;x&&(T[a++]=C[E++],1<x&&(T[a++]=C[E++]))}else{for(E=a-w;T[a++]=T[E++],T[a++]=T[E++],T[a++]=T[E++],2<(x-=3););x&&(T[a++]=T[E++],1<x&&(T[a++]=T[E++]))}break}}break}}while(r<o&&a<s);r-=x=f>>3,h&=(1<<(f-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=h,n.bits=f}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),o=e("./adler32"),a=e("./crc32"),i=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,p=1,h=852,f=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function A(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=p,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(h),t.distcode=t.distdyn=new r.Buf32(f),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,A(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,v(e))):d}function b(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=y(e,t))!==u&&(e.state=null),n):d}var x,w,E=!0;function C(e){if(E){var t;for(x=new r.Buf32(512),w=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,w,0,e.work,{bits:5}),E=!1}e.lencode=x,e.lenbits=9,e.distcode=w,e.distbits=5}function S(e,t,n,o){var a,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new r.Buf8(i.wsize)),o>=i.wsize?(r.arraySet(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(o<(a=i.wsize-i.wnext)&&(a=o),r.arraySet(i.window,t,n-o,a,i.wnext),(o-=a)?(r.arraySet(i.window,t,n-o,o,0),i.wnext=o,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0}n.inflateReset=v,n.inflateReset2=y,n.inflateResetKeep=A,n.inflateInit=function(e){return b(e,15)},n.inflateInit2=b,n.inflate=function(e,t){var n,h,f,g,A,v,y,b,x,w,E,T,k,_,N,I,P,R,D,L,O,M,j,F,B=0,U=new r.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(n=e.state).mode&&(n.mode=13),A=e.next_out,f=e.output,y=e.avail_out,g=e.next_in,h=e.input,v=e.avail_in,b=n.hold,x=n.bits,w=v,E=y,M=u;e:for(;;)switch(n.mode){case p:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if(2&n.wrap&&35615===b){U[n.check=0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0),x=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,O=8+(15&(b>>>=4)),0===n.wbits)n.wbits=O;else if(O>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<O,e.adler=n.check=1,n.mode=512&b?10:12,x=b=0;break;case 2:for(;x<16;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if(n.flags=b,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}n.head&&(n.head.time=b),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,U[2]=b>>>16&255,U[3]=b>>>24&255,n.check=a(n.check,U,4,0)),x=b=0,n.mode=4;case 4:for(;x<16;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0)),x=b=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0)),x=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(T=n.length)&&(T=v),T&&(n.head&&(O=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,g,T,O)),512&n.flags&&(n.check=a(n.check,h,T,g)),v-=T,g+=T,n.length-=T),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break e;for(T=0;O=h[g+T++],n.head&&O&&n.length<65536&&(n.head.name+=String.fromCharCode(O)),O&&T<v;);if(512&n.flags&&(n.check=a(n.check,h,T,g)),v-=T,g+=T,O)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break e;for(T=0;O=h[g+T++],n.head&&O&&n.length<65536&&(n.head.comment+=String.fromCharCode(O)),O&&T<v;);if(512&n.flags&&(n.check=a(n.check,h,T,g)),v-=T,g+=T,O)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if(b!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}x=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}e.adler=n.check=m(b),x=b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=A,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){b>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}switch(n.last=1&b,x-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(C(n),n.mode=20,6!==t)break;b>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}b>>>=2,x-=2;break;case 14:for(b>>>=7&x,x-=7&x;x<32;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,x=b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(T=n.length){if(v<T&&(T=v),y<T&&(T=y),0===T)break e;r.arraySet(f,h,g,T,A),v-=T,g+=T,y-=T,A+=T,n.length-=T;break}n.mode=12;break;case 17:for(;x<14;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if(n.nlen=257+(31&b),b>>>=5,x-=5,n.ndist=1+(31&b),b>>>=5,x-=5,n.ncode=4+(15&b),b>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}n.lens[z[n.have++]]=7&b,b>>>=3,x-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,j={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,j),n.lenbits=j.bits,M){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(B=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,P=65535&B,!((N=B>>>24)<=x);){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if(P<16)b>>>=N,x-=N,n.lens[n.have++]=P;else{if(16===P){for(F=N+2;x<F;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if(b>>>=N,x-=N,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}O=n.lens[n.have-1],T=3+(3&b),b>>>=2,x-=2}else if(17===P){for(F=N+3;x<F;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}x-=N,O=0,T=3+(7&(b>>>=N)),b>>>=3,x-=3}else{for(F=N+7;x<F;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}x-=N,O=0,T=11+(127&(b>>>=N)),b>>>=7,x-=7}if(n.have+T>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;T--;)n.lens[n.have++]=O}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,j={bits:n.lenbits},M=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,j),n.lenbits=j.bits,M){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,j={bits:n.distbits},M=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,j),n.distbits=j.bits,M){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=A,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,i(e,E),A=e.next_out,f=e.output,y=e.avail_out,g=e.next_in,h=e.input,v=e.avail_in,b=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(B=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,P=65535&B,!((N=B>>>24)<=x);){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if(I&&0==(240&I)){for(R=N,D=I,L=P;I=(B=n.lencode[L+((b&(1<<R+D)-1)>>R)])>>>16&255,P=65535&B,!(R+(N=B>>>24)<=x);){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}b>>>=R,x-=R,n.back+=R}if(b>>>=N,x-=N,n.back+=N,n.length=P,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(F=n.extra;x<F;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(B=n.distcode[b&(1<<n.distbits)-1])>>>16&255,P=65535&B,!((N=B>>>24)<=x);){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if(0==(240&I)){for(R=N,D=I,L=P;I=(B=n.distcode[L+((b&(1<<R+D)-1)>>R)])>>>16&255,P=65535&B,!(R+(N=B>>>24)<=x);){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}b>>>=R,x-=R,n.back+=R}if(b>>>=N,x-=N,n.back+=N,64&I){e.msg="invalid distance code",n.mode=30;break}n.offset=P,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(F=n.extra;x<F;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>
vendor: 4,658 bytes, line 2
2n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break e;if(T=E-y,n.offset>T){if((T=n.offset-T)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}k=T>n.wnext?(T-=n.wnext,n.wsize-T):n.wnext-T,T>n.length&&(T=n.length),_=n.window}else _=f,k=A-n.offset,T=n.length;for(y<T&&(T=y),y-=T,n.length-=T;f[A++]=_[k++],--T;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;f[A++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===v)break e;v--,b|=h[g++]<<x,x+=8}if(E-=y,e.total_out+=E,n.total+=E,E&&(e.adler=n.check=n.flags?a(n.check,f,E,A-E):o(n.check,f,E,A-E)),E=y,(n.flags?b:m(b))!==n.check){e.msg="incorrect data check",n.mode=30;break}x=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===v)break e;v--,b+=h[g++]<<x,x+=8}if(b!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}x=b=0}n.mode=29;case 29:M=1;break e;case 30:M=-3;break e;case 31:return-4;default:return d}return e.next_out=A,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,(n.wsize||E!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&S(e,e.output,e.next_out,E-e.avail_out)?(n.mode=31,-4):(w-=e.avail_in,E-=e.avail_out,e.total_in+=w,e.total_out+=E,n.total+=E,n.wrap&&E&&(e.adler=n.check=n.flags?a(n.check,f,E,e.next_out-E):o(n.check,f,E,e.next_out-E)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===E||4===t)&&M===u&&(M=-5),M)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?d:((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&o(1,t,r,0)!==n.check?-3:S(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],i=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,c,u,d,p){var h,f,m,g,A,v,y,b,x,w=p.bits,E=0,C=0,S=0,T=0,k=0,_=0,N=0,I=0,P=0,R=0,D=null,L=0,O=new r.Buf16(16),M=new r.Buf16(16),j=null,F=0;for(E=0;E<=15;E++)O[E]=0;for(C=0;C<l;C++)O[t[n+C]]++;for(k=w,T=15;1<=T&&0===O[T];T--);if(T<k&&(k=T),0===T)return c[u++]=20971520,c[u++]=20971520,p.bits=1,0;for(S=1;S<T&&0===O[S];S++);for(k<S&&(k=S),E=I=1;E<=15;E++)if(I<<=1,(I-=O[E])<0)return-1;if(0<I&&(0===e||1!==T))return-1;for(M[1]=0,E=1;E<15;E++)M[E+1]=M[E]+O[E];for(C=0;C<l;C++)0!==t[n+C]&&(d[M[t[n+C]]++]=C);if(v=0===e?(D=j=d,19):1===e?(D=o,L-=257,j=a,F-=257,256):(D=i,j=s,-1),E=S,A=u,N=C=R=0,m=-1,g=(P=1<<(_=k))-1,1===e&&852<P||2===e&&592<P)return 1;for(;;){for(y=E-N,x=d[C]<v?(b=0,d[C]):d[C]>v?(b=j[F+d[C]],D[L+d[C]]):(b=96,0),h=1<<E-N,S=f=1<<_;c[A+(R>>N)+(f-=h)]=y<<24|b<<16|x,0!==f;);for(h=1<<E-1;R&h;)h>>=1;if(0!==h?(R&=h-1,R+=h):R=0,C++,0==--O[E]){if(E===T)break;E=t[n+d[C]]}if(k<E&&(R&g)!==m){for(0===N&&(N=k),A+=S,I=1<<(_=E-N);_+N<T&&!((I-=O[_+N])<=0);)_++,I<<=1;if(P+=1<<_,1===e&&852<P||2===e&&592<P)return 1;c[m=R&g]=k<<24|_<<16|A-u}}return 0!==R&&(c[A+R]=E-N<<24|64<<16),p.bits=k,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common"),o=0,a=1;function i(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,c=256,u=c+1+l,d=30,p=19,h=2*u+1,f=15,m=16,g=7,A=256,v=16,y=17,b=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(2*(u+2));i(S);var T=new Array(2*d);i(T);var k=new Array(512);i(k);var _=new Array(256);i(_);var N=new Array(l);i(N);var I,P,R,D=new Array(d);function L(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function O(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?k[e]:k[256+(e>>>7)]}
vendor: 5,750 bytes, line 2
2function j(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,n){e.bi_valid>m-n?(e.bi_buf|=t<<e.bi_valid&65535,j(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=n-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function B(e,t,n){F(e,n[2*t],n[2*t+1])}function U(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function z(e,t,n){var r,o,a=new Array(f+1),i=0;for(r=1;r<=f;r++)a[r]=i=i+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=U(a[s]++,s))}}function H(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<p;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*A]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function W(e){8<e.bi_valid?j(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function V(e,t,n,r){var o=2*t,a=2*n;return e[o]<e[a]||e[o]===e[a]&&r[t]<=r[n]}function G(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&V(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!V(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function q(e,t,n){var r,o,a,i,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===r?B(e,o,t):(B(e,(a=_[o])+c+1,t),0!==(i=x[a])&&F(e,o-=N[a],i),B(e,a=M(--r),n),0!==(i=w[a])&&F(e,r-=D[a],i)),s<e.last_lit;);B(e,A,t)}function Y(e,t){var n,r,o,a=t.dyn_tree,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=h,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=i[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)G(e,a,n);for(o=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],G(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*o]=a[2*n]+a[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=o,e.heap[1]=o++,G(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,a,i,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,A=0;for(a=0;a<=f;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<h;n++)g<(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(a=g,A++),l[2*r+1]=a,c<r||(e.bl_count[a]++,i=0,m<=r&&(i=p[r-m]),s=l[2*r],e.opt_len+=s*(a+i),d&&(e.static_len+=s*(u[2*r+1]+i)));if(0!==A){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,A-=2}while(0<A);for(a=g;0!==a;a--)for(r=e.bl_count[a];0!==r;)c<(o=e.heap[--n])||(l[2*o+1]!==a&&(e.opt_len+=(a-l[2*o+1])*l[2*o],l[2*o+1]=a),r--)}}(e,t),z(a,c,e.bl_count)}function Q(e,t,n){var r,o,a=-1,i=t[1],s=0,l=7,c=4;for(0===i&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=i,i=t[2*(r+1)+1],++s<l&&o===i||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==a&&e.bl_tree[2*o]++,e.bl_tree[2*v]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*b]++,a=o,c=(s=0)===i?(l=138,3):o===i?(l=6,3):(l=7,4))}function X(e,t,n){var r,o,a=-1,i=t[1],s=0,l=7,c=4;for(0===i&&(l=138,c=3),r=0;r<=n;r++)if(o=i,i=t[2*(r+1)+1],!(++s<l&&o===i)){if(s<c)for(;B(e,o,e.bl_tree),0!=--s;);else 0!==o?(o!==a&&(B(e,o,e.bl_tree),s--),B(e,v,e.bl_tree),F(e,s-3,2)):s<=10?(B(e,y,e.bl_tree),F(e,s-3,3)):(B(e,b,e.bl_tree),F(e,s-11,7));a=o,c=(s=0)===i?(l=138,3):o===i?(l=6,3):(l=7,4)}}i(D);var K=!1;function J(e,t,n,o){F(e,(s<<1)+(o?1:0),3),function(e,t,n,o){W(e),o&&(j(e,n),j(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){K||(function(){var e,t,n,r,o,a=new Array(f+1);for(r=n=0;r<l-1;r++)for(N[r]=n,e=0;e<1<<x[r];e++)_[n++]=r;for(_[n-1]=r,r=o=0;r<16;r++)for(D[r]=o,e=0;e<1<<w[r];e++)k[o++]=r;for(o>>=7;r<d;r++)for(D[r]=o<<7,e=0;e<1<<w[r]-7;e++)k[256+o++]=r;for(t=0;t<=f;t++)a[t]=0;for(e=0;e<=143;)S[2*e+1]=8,e++,a[8]++;for(;e<=255;)S[2*e+1]=9,e++,a[9]++;for(;e<=279;)S[2*e+1]=7,e++,a[7]++;for(;e<=287;)S[2*e+1]=8,e++,a[8]++;for(z(S,u+1,a),e=0;e<d;e++)T[2*e+1]=5,T[2*e]=U(e,5);I=new L(S,x,c+1,u,f),P=new L(T,w,0,d,f),R=new L(new Array(0),E,0,p,g)}(),K=!0),e.l_desc=new O(e.dyn_ltree,I),e.d_desc=new O(e.dyn_dtree,P),e.bl_desc=new O(e.bl_tree,R),e.bi_buf=0,e.bi_valid=0,H(e)},n._tr_stored_block=J,n._tr_flush_block=function(e,t,n,r){var i,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return a;return o}(e)),Y(e,e.l_desc),Y(e,e.d_desc),l=function(e){var t;for(Q(e,e.dyn_ltree,e.l_desc.max_code),Q(e,e.dyn_dtree,e.d_desc.max_code),Y(e,e.bl_desc),t=p-1;3<=t&&0===e.bl_tree[2*C[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==t?J(e,t,n,r):4===e.strategy||s===i?(F(e,2+(r?1:0),3),q(e,S,T)):(F(e,4+(r?1:0),3),function(e,t,n,r){var o;for(F(e,t-257,5),F(e,n-1,5),F(e,r-4,4),o=0;o<r;o++)F(e,e.bl_tree[2*C[o]+1],3);X(e,e.dyn_ltree,t-1),X(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),q(e,e.dyn_ltree,e.dyn_dtree)),H(e),r&&W(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(_[n]+c+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){F(e,2,3),B(e,A,S),function(e){16===e.bi_valid?(j(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";
2t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,r,o,a,i=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(p,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return s[i]=o,n(i),i++},u.clearImmediate=d}function d(e){delete s[e]}function p(e){if(l)setTimeout(p,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),l=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},7685:(e,t,n)=>{var r=n(7937)(n(6552),"DataView");e.exports=r},8724:(e,t,n)=>{var r=n(7615),o=n(5051),a=n(2154),i=n(8734),s=n(2662);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},7160:(e,t,n)=>{var r=n(7563),o=n(9935),a=n(4190),i=n(1946),s=n(1714);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},5204:(e,t,n)=>{var r=n(7937)(n(6552),"Map");e.exports=r},4816:(e,t,n)=>{var r=n(7251),o=n(7159),a=n(438),i=n(9394),s=n(6874);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},5387:(e,t,n)=>{var r=n(7937)(n(6552),"Promise");e.exports=r},2070:(e,t,n)=>{var r=n(7937)(n(6552),"Set");e.exports=r},8902:(e,t,n)=>{var r=n(4816),o=n(6179),a=n(6704);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},5538:(e,t,n)=>{var r=n(7160),o=n(4545),a=n(793),i=n(7760),s=n(3892),l=n(6788);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},9812:(e,t,n)=>{var r=n(6552).Symbol;e.exports=r},2929:(e,t,n)=>{var r=n(6552).Uint8Array;e.exports=r},4219:(e,t,n)=>{var r=n(7937)(n(6552),"WeakMap");e.exports=r},1170:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7529:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},3204:(e,t,n)=>{var r=n(3343),o=n(2777),a=n(4052),i=n(4543),s=n(9194),l=n(1268),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&o(e),d=!n&&!u&&i(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},149:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},8895:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},9421:e=>{e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},2587:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},9648:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},3868:(e,t,n)=>{var r=n(1775),o=n(3211);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},8420:(e,t,n)=>{var r=n(1775),o=n(3211),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},1340:(e,t,n)=>{var r=n(3211);e.exports=function(e,t){for(var n=e.length;n--;
vendor: 7,196 bytes, line 2
2)if(r(e[n][0],t))return n;return-1}},1775:(e,t,n)=>{var r=n(5654);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},1817:(e,t,n)=>{var r=n(6686),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},4258:(e,t,n)=>{var r=n(5906)();e.exports=r},2969:(e,t,n)=>{var r=n(5324),o=n(914);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},4262:(e,t,n)=>{var r=n(8895),o=n(4052);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},6913:(e,t,n)=>{var r=n(9812),o=n(4552),a=n(6095),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},7894:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},5193:(e,t,n)=>{var r=n(6913),o=n(2761);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},6989:(e,t,n)=>{var r=n(6399),o=n(2761);e.exports=function e(t,n,a,i,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,a,i,e,s))}},6399:(e,t,n)=>{var r=n(5538),o=n(3668),a=n(9987),i=n(5752),s=n(6924),l=n(4052),c=n(4543),u=n(1268),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,A){var v=l(e),y=l(t),b=v?p:s(e),x=y?p:s(t),w=(b=b==d?h:b)==h,E=(x=x==d?h:x)==h,C=b==x;if(C&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(C&&!w)return A||(A=new r),v||u(e)?o(e,t,n,m,g,A):a(e,t,b,n,m,g,A);if(!(1&n)){var S=w&&f.call(e,"__wrapped__"),T=E&&f.call(t,"__wrapped__");if(S||T){var k=S?e.value():e,_=T?t.value():t;return A||(A=new r),g(k,_,n,m,A)}}return!!C&&(A||(A=new r),i(e,t,n,m,g,A))}},6532:(e,t,n)=>{var r=n(5538),o=n(6989);e.exports=function(e,t,n,a){var i=n.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(a)var f=a(d,p,u,e,t,h);if(!(void 0===f?o(p,d,3,a,h):f))return!1}}return!0}},6954:(e,t,n)=>{var r=n(1629),o=n(7857),a=n(6686),i=n(6996),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:s).test(i(e))}},5428:(e,t,n)=>{var r=n(6913),o=n(6173),a=n(2761),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},9096:(e,t,n)=>{var r=n(9256),o=n(5029),a=n(3279),i=n(4052),s=n(3932);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):s(e)}},3713:(e,t,n)=>{var r=n(6140),o=n(1143),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8122:(e,t,n)=>{var r=n(6686),o=n(6140),a=n(3516),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},9256:(e,t,n)=>{var r=n(6532),o=n(3781),a=n(1310);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},5029:(e,t,n)=>{var r=n(6989),o=n(3097),a=n(3366),i=n(2597),s=n(9417),l=n(1310),c=n(914);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},3253:(e,t,n)=>{var r=n(5538),o=n(3868),a=n(4258),i=n(3223),s=n(6686),l=n(474),c=n(3737);e.exports=function e(t,n,u,d,p){t!==n&&a(n,(function(a,l){if(p||(p=new r),s(a))i(t,n,l,u,e,d,p);else{var h=d?d(c(t,l),a,l+"",t,n,p):void 0;void 0===h&&(h=a),o(t,l,h)}}),l)}},3223:(e,t,n)=>{var r=n(3868),o=n(4353),a=n(8710),i=n(1980),s=n(310),l=n(2777),c=n(4052),u=n(3891),d=n(4543),p=n(1629),h=n(6686),f=n(2322),m=n(1268),g=n(3737),A=n(1609);e.exports=function(e,t,n,v,y,b,x){var w=g(e,n),E=g(t,n),C=x.get(E);if(C)r(e,n,C);else{var S=b?b(w,E,n+"",e,t,x):void 0,T=void 0===S;if(T){var k=c(E),_=!k&&d(E),N=!k&&!_&&m(E);S=E,k||_||N?c(w)?S=w:u(w)?S=i(w):_?(T=!1,S=o(E,!0)):N?(T=!1,S=a(E,!0)):S=[]:f(E)||l(E)?(S=w,l(w)?S=A(w):h(w)&&!p(w)||(S=s(E))):T=!1}T&&(x.set(E,S),y(S,E,v,b,x),x.delete(E)),r(e,n,S)}}},7449:(e,t,n)=>{var r=n(2969),o=n(9261),a=n(5324);e.exports=function(e,t,n){for(var i=-1,s=t.length,l={};++i<s;){var c=t[i],u=r(e,c);n(u,c)&&o(l,a(c,e),u)}return l}},396:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},2866:(e,t,n)=>{var r=n(2969);e.exports=function(e){return function(t){return r(t,e)}}},2037:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},5647:(e,t,n)=>{var r=n(3279),o=n(5636),a=n(6350);e.exports=function(e,t){return a(o(e,t,r),e+"")}},9261:(e,t,n)=>{var r=n(8420),o=n(5324),a=n(9194),i=n(6686),s=n(914);e.exports=function(e,t,n,l){if(!i(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,p=e;null!=p&&++c<u;){var h=s(t[c]),f=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(c!=d){var m=p[h];void 0===(f=l?l(m,h,p):void 0)&&(f=i(m)?m:a(t[c+1])?[]:{})}r(p,h,f),p=p[h]}return e}},8325:(e,t,n)=>{var r=n(2541),o=n(5654),a=n(3279),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},3343:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},8541:(e,t,n)=>{var r=n(9812),o=n(149),a=n(4052),i=n(9841),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7574:e=>{e.exports=function(e){return function(t){return e(t)}}},8114:e=>{e.exports=function(e,t){return e.has(t)}},5324:(e,t,n)=>{var r=n(4052),o=n(2597),a=n(4079),i=n(1069);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},1516:(e,t,n)=>{var r=n(2929);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4353:(e,t,n)=>{e=n.nmd(e);var r=n(6552),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},8710:(e,t,n)=>{var r=n(1516);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},1980:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}
vendor: 8,301 bytes, line 2
2,6614:(e,t,n)=>{var r=n(8420),o=n(1775);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?o(n,c,u):r(n,c,u)}return n}},3440:(e,t,n)=>{var r=n(6552)["__core-js_shared__"];e.exports=r},4570:(e,t,n)=>{var r=n(5647),o=n(929);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,i)}return t}))}},5906:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===n(a[l],l,a))break}return t}}},6882:(e,t,n)=>{var r=n(9421),o=n(4971),a=n(7676),i=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(a(o(t).replace(i,"")),e,"")}}},3086:(e,t,n)=>{var r=n(2037)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=r},5654:(e,t,n)=>{var r=n(7937),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},3668:(e,t,n)=>{var r=n(8902),o=n(2587),a=n(8114);e.exports=function(e,t,n,i,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var A=e[f],v=t[f];if(i)var y=c?i(v,A,f,t,e,l):i(A,v,f,e,t,l);if(void 0!==y){if(y)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!a(g,t)&&(A===e||s(A,e,n,i,l)))return g.push(t)}))){m=!1;break}}else if(A!==v&&!s(A,v,n,i,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},9987:(e,t,n)=>{var r=n(9812),o=n(2929),a=n(3211),i=n(3668),s=n(4160),l=n(2074),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=i(h(e),h(t),r,c,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},5752:(e,t,n)=>{var r=n(9395),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var A=e[p=c[d]],v=t[p];if(a)var y=l?a(v,A,p,t,e,s):a(A,v,p,e,t,s);if(!(void 0===y?A===v||i(A,v,n,a,s):y)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},7105:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},9395:(e,t,n)=>{var r=n(4262),o=n(9621),a=n(8673);e.exports=function(e){return r(e,a,o)}},8592:(e,t,n)=>{var r=n(4262),o=n(6326),a=n(474);e.exports=function(e){return r(e,a,o)}},2622:(e,t,n)=>{var r=n(705);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},3781:(e,t,n)=>{var r=n(9417),o=n(8673);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},7937:(e,t,n)=>{var r=n(6954),o=n(4657);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},5990:(e,t,n)=>{var r=n(3028)(Object.getPrototypeOf,Object);e.exports=r},4552:(e,t,n)=>{var r=n(9812),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},9621:(e,t,n)=>{var r=n(7529),o=n(7828),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},6326:(e,t,n)=>{var r=n(8895),o=n(5990),a=n(9621),i=n(7828),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=s},6924:(e,t,n)=>{var r=n(7685),o=n(5204),a=n(5387),i=n(2070),s=n(4219),l=n(6913),c=n(6996),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(r),g=c(o),A=c(a),v=c(i),y=c(s),b=l;(r&&b(new r(new ArrayBuffer(1)))!=f||o&&b(new o)!=u||a&&b(a.resolve())!=d||i&&b(new i)!=p||s&&b(new s)!=h)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case g:return u;case A:return d;case v:return p;case y:return h}return t}),e.exports=b},4657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9057:(e,t,n)=>{var r=n(5324),o=n(2777),a=n(4052),i=n(9194),s=n(6173),l=n(914);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(p,u)&&(a(e)||o(e))}},5967:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},7615:(e,t,n)=>{var r=n(5575);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},5051:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},2154:(e,t,n)=>{var r=n(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},8734:(e,t,n)=>{var r=n(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}}
2,2662:(e,t,n)=>{var r=n(5575);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},310:(e,t,n)=>{var r=n(1817),o=n(5990),a=n(6140);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},9194:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},929:(e,t,n)=>{var r=n(3211),o=n(6571),a=n(9194),i=n(6686);e.exports=function(e,t,n){if(!i(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},2597:(e,t,n)=>{var r=n(4052),o=n(9841),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},705:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7857:(e,t,n)=>{var r=n(3440),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},6140:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9417:(e,t,n)=>{var r=n(6686);e.exports=function(e){return e===e&&!r(e)}},7563:e=>{e.exports=function(){this.__data__=[],this.size=0}},9935:(e,t,n)=>{var r=n(1340),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4190:(e,t,n)=>{var r=n(1340);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},1946:(e,t,n)=>{var r=n(1340);e.exports=function(e){return r(this.__data__,e)>-1}},1714:(e,t,n)=>{var r=n(1340);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},7251:(e,t,n)=>{var r=n(8724),o=n(7160),a=n(5204);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),str
vendor: 4,750 bytes, line 2
2ing:new r}}},7159:(e,t,n)=>{var r=n(2622);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},438:(e,t,n)=>{var r=n(2622);e.exports=function(e){return r(this,e).get(e)}},9394:(e,t,n)=>{var r=n(2622);e.exports=function(e){return r(this,e).has(e)}},6874:(e,t,n)=>{var r=n(2622);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},4160:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},1310:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},8259:(e,t,n)=>{var r=n(5797);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},5575:(e,t,n)=>{var r=n(7937)(Object,"create");e.exports=r},1143:(e,t,n)=>{var r=n(3028)(Object.keys,Object);e.exports=r},3516:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},6832:(e,t,n)=>{e=n.nmd(e);var r=n(7105),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=s},6095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3028:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5636:(e,t,n)=>{var r=n(1170),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,s=o(a.length-t,0),l=Array(s);++i<s;)l[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(l),r(e,this,c)}}},6552:(e,t,n)=>{var r=n(7105),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},3737:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},6179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6704:e=>{e.exports=function(e){return this.__data__.has(e)}},2074:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},6350:(e,t,n)=>{var r=n(8325),o=n(6578)(r);e.exports=o},6578:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),a=16-(o-r);if(r=o,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4545:(e,t,n)=>{var r=n(7160);e.exports=function(){this.__data__=new r,this.size=0}},793:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7760:e=>{e.exports=function(e){return this.__data__.get(e)}},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},6788:(e,t,n)=>{var r=n(7160),o=n(5204),a=n(4816);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},4079:(e,t,n)=>{var r=n(8259),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},914:(e,t,n)=>{var r=n(9841);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},6996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},1540:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="["+a+"]",s="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+a+s+n+r+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+o+"]",f="(?:"+c+"|"+u+")",m="(?:"+h+"|"+u+")",g="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",A="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",b=y+v+("(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+y+v+")*"),x="(?:"+[l,d,p].join("|")+")"+b,w=RegExp([h+"?"+c+"+"+g+"(?="+[i,h,"$"].join("|")+")",m+"+"+A+"(?="+[i,h+f,"$"].join("|")+")",h+"?"+f+"+"+g,h+"+"+A,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,x].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},2541:e=>{e.exports=function(e){return function(){return e}}},4971:(e,t,n)=>{var r=n(3086),o=n(1069),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
27f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(a,r).replace(i,"")}},3211:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},3097:(e,t,n)=>{var r=n(2969);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},3366:(e,t,n)=>{var r=n(7894),o=n(9057);e.exports=function(e,t){return null!=e&&o(e,t,r)}},3279:e=>{e.exports=function(e){return e}},2777:(e,t,n)=>{var r=n(5193),o=n(2761),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},4052:e=>{var t=Array.isArray;e.exports=t},6571:(e,t,n)=>{var r=n(1629),o=n(6173);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3891:(e,t,n)=>{var r=n(6571),o=n(2761);e.exports=function(e){return o(e)&&r(e)}},4543:(e,t,n)=>{e=n.nmd(e);var r=n(6552),o=n(14),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1629:(e,t,n)=>{var r=n(6913),o=n(6686);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},6173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2322:(e,t,n)=>{var r=n(6913),o=n(5990),a=n(2761),i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},9841:(e,t,n)=>{var r=n(6913),o=n(2761);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},1268:(e,t,n)=>{var r=n(5428),o=n(7574),a=n(6832),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},940:(e,t,n)=>{var r=n(6882)((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));e.exports=r},8673:(e,t,n)=>{var r=n(3204),o=n(3713),a=n(6571);e.exports=function(e){return a(e)?r(e):o(e)}}
2,474:(e,t,n)=>{var r=n(3204),o=n(8122),a=n(6571);e.exports=function(e){return a(e)?r(e,!0):o(e)}},5797:(e,t,n)=>{var r=n(4816);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},4677:(e,t,n)=>{var r=n(3253),o=n(4570)((function(e,t,n){r(e,t,n)}));e.exports=o},7273:(e,t,n)=>{var r=n(149),o=n(9096),a=n(7449),i=n(8592);e.exports=function(e,t){if(null==e)return{};var n=r(i(e),(function(e){return[e]}));return t=o(t),a(e,n,(function(e,n){return t(e,n[0])}))}},3932:(e,t,n)=>{var r=n(396),o=n(2866),a=n(2597),i=n(914);e.exports=function(e){return a(e)?r(i(e)):o(e)}},7828:e=>{e.exports=function(){return[]}},14:e=>{e.exports=function(){return!1}},1609:(e,t,n)=>{var r=n(6614),o=n(474);e.exports=function(e){return r(e,o(e))}},1069:(e,t,n)=>{var r=n(8541);e.exports=function(e){return null==e?"":r(e)}},7676:(e,t,n)=>{var r=n(9648),o=n(5967),a=n(1069),i=n(1540);e.exports=function(e,t,n){return e=a(e),void 0===(t=n?void 0:t)?o(e)?i(e):r(e):e.match(t)||[]}},8970:(e,t,n)=>{const r=n(6116),o=n(4772),a=n(2182),i=n(5487);function s(e,t,n,a,i){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=a=void 0):2!==l||t.getContext||(a=n,n=t,t=void 0),new Promise((function(r,i){try{const i=o.create(n,a);r(e(i,t,a))}catch(s){i(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(i=n,n=t,t=a=void 0):3===l&&(t.getContext&&"undefined"===typeof i?(i=a,a=void 0):(i=a,a=n,n=t,t=void 0));try{const r=o.create(n,a);i(null,e(r,t,a))}catch(u){i(u)}}t.create=o.create,t.toCanvas=s.bind(null,a.render),t.toDataURL=s.bind(null,a.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return i.render(e,n)}))},6116:e=>{e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},9382:(e,t,n)=>{const r=n(7969).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),a=[n-7];for(let r=1;r<t-1;r++)a[r]=a[r-1]-o;return a.push(6),a.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let t=0;t<o;t++)for(let e=0;e<o;e++)0===t&&0===e||0===t&&e===o-1||t===o-1&&0===e||n.push([r[t],r[e]]);return n}},9642:(e,t,n)=>{const r=n(7421),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=r.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=a},4566:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1===(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},4661:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},8697:(e,t,n)=>{const r=n(5558),o=n(7421);function a(e){this.mode=o.BYTE,this.data=new Uint8Array(r(e))}a.getBitsLength=function(e){return 8*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=a},1805:(e,t,n)=>{const r=n(6272),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,
vendor: 14,907 bytes, line 2
2192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}}},6272:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},9021:(e,t,n)=>{const r=n(7969).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},350:(e,t,n)=>{const r=n(7969),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let a=n<<10;for(;r.getBCHDigit(a)-o>=0;)a^=1335<<r.getBCHDigit(a)-o;return 21522^(n<<10|a)}},1166:(e,t)=>{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},5200:(e,t,n)=>{const r=n(7421),o=n(7969);function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=a},4833:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,r=3,o=40,a=10;function i(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let r=0,o=0,a=0,i=null,s=null;for(let l=0;l<t;l++){o=a=0,i=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===i?o++:(o>=5&&(r+=n+(o-5)),i=t,o=1),t=e.get(c,l),t===s?a++:(a>=5&&(r+=n+(a-5)),s=t,a=1)}o>=5&&(r+=n+(o-5)),a>=5&&(r+=n+(a-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return n*r},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,a=0;for(let o=0;o<t;o++){r=a=0;for(let i=0;i<t;i++)r=r<<1&2047|e.get(o,i),i>=10&&(1488===r||93===r)&&n++,a=a<<1&2047|e.get(i,o),i>=10&&(1488===a||93===a)&&n++}return n*o},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*a},t.applyMask=function(e,t){const n=t.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)t.isReserved(o,r)||t.xor(o,r,i(e,o,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,a=1/0;for(let i=0;i<r;i++){n(i),t.applyMask(i,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(i,e),r<a&&(a=r,o=i)}return o}},7421:(e,t,n)=>{const r=n(3257),o=n(8511);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},900:(e,t,n)=>{const r=n(7421);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},1312:(e,t,n)=>{const r=n(1166);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let a=0;a<t.length;a++)n[o+a]^=r.mul(e[o],t[a]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let a=0;a<t.length;a++)n[a]^=r.mul(t[a],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},4772:(e,t,n)=>{const r=n(7969),o=n(6272),a=n(4566),i=n(4661),s=n(9382),l=n(9021),c=n(4833),u=n(1805),d=n(8177),p=n(4980),h=n(350),f=n(7421),m=n(4004);function g(e,t,n){const r=e.size,o=h.getEncodedBits(t,n);let a,i;for(a=0;a<15;a++)i=1===(o>>a&1),a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function A(e,t,n){const o=new a;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(o)}));const i=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=i&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const s=(i-o.getLengthInBits())/8;for(let r=0;r<s;r++)o.put(r%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),a=u.getTotalCodewordsCount(t,n),i=o-a,s=u.getBlocksCount(t,n),l=o%s,c=s-l,p=Math.floor(o/s),h=Math.floor(i/s),f=h+1,m=p-h,g=new d(m);let A=0;const v=new Array(s),y=new Array(s);let b=0;const x=new Uint8Array(e.buffer);for(let r=0;r<s;r++){const e=r<c?h:f;v[r]=x.slice(A,A+e),y[r]=g.encode(v[r]),A+=e,b=Math.max(b,e)}const w=new Uint8Array(o);let E,C,S=0;for(E=0;E<b;E++)for(C=0;C<s;C++)E<v[C].length&&(w[S++]=v[C][E]);for(E=0;E<m;E++)for(C=0;C<s;C++)w[S++]=y[C][E];return w}(o,e,t)}function v(e,t,n,o){let a;if(Array.isArray(e))a=m.fromArray(e);else{if("string"!==typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=p.getBestVersionForData(t,n)}a=m.fromString(e,r||40)}}const u=p.getBestVersionForData(a,n);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const d=A(t,n,a),h=r.getSymbolSize(t),f=new i(h);return function(e,t){const n=e.size,r=l.getPositions(t);for(let o=0;o<r.length;o++){const t=r[o][0],a=r[o][1];for(let r=-1;r<=7;r++)if(!(t+r<=-1||n<=t+r))for(let o=-1;o<=7;o++)a+o<=-1||n<=a+o||(r>=0&&r<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===r||6===r)||r>=2&&r<=4&&o>=2&&o<=4?e.set(t+r,a+o,!0,!0):e.set(t+r,a+o,!1,!0))}}(f,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2===0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(f),function(e,t){const n=s.getPositions(t);for(let r=0;r<n.length;r++){const t=n[r][0],o=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(t+n,o+r,!0,!0):e.set(t+n,o+r,!1,!0)}}(f,t),g(f,n,0),t>=7&&function(e,t){const n=e.size,r=p.getEncodedBits(t);let o,a,i;for(let s=0;s<18;s++)o=Math.floor(s/3),a=s%3+n-8-3,i=1===(r>>s&1),e.set(o,a,i,!0),e.set(a,o,i,!0)}(f,t),function(e,t){const n=e.size;let r=-1,o=n-1,a=7,i=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1;i<t.length&&(r=1===(t[i]>>>a&1)),e.set(o,s-n,r),a--,-1===a&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(f,d),isNaN(o)&&(o=c.getBestMask(f,g.bind(null,f,n))),c.applyMask(o,f),g(f,n,o),{modules:f,version:t,errorCorrectionLevel:n,maskPattern:o,segments:a}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,a,i=o.M;return"undefined"!==typeof t&&(i=o.from(t.errorCorrectionLevel,o.M),n=p.from(t.version),a=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),v(e,n,i,a)}},8177:(e,t,n)=>{const r=n(1312);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},8511:(e,t)=>{const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const a=new RegExp("^"+r+"$"),i=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},4004:(e,t,n)=>{const r=n(7421),o=n(900),a=n(9642),i=n(8697),s=n(5200),l=n(8511),c=n(7969),u=n(7347);function d(e){return unescape(encodeURIComponent(e)).length}function p(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function h(e){const t=p(l.NUMERIC,r.NUMERIC,e),n=p(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,a;c.isKanjiModeEnabled()?(o=p(l.BYTE,r.BYTE,e),a=p(l.KANJI,r.KANJI,e)):(o=p(l.BYTE_KANJI,r.BYTE,e),a=[]);return t.concat(n,o,a).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function f(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return i.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new a(e);case r.KANJI:return new s(e);case r.BYTE:return new i(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"===typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(h(e,c.isKanjiModeEnabled())),a=function(e,t){const n={},o={start:{}};let a=["start"];for(let i=0;i<e.length;i++){const s=e[i],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+i+e;l.push(u),n[u]={node:c,lastCount:0},o[u]={};for(let e=0;e<a.length;e++){const i=a[e];n[i]&&n[i].node.mode===c.mode?(o[i][u]=f(n[i].lastCount+c.length,c.mode)-f(n[i].lastCount,c.mode),n[i].lastCount+=c.length):(n[i]&&(n[i].lastCount=c.length),o[i][u]=f(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}a=l}for(let r=0;r<a.length;r++)o[a[r]].end=0;return{map:o,table:n}}(o,n),i=u.find_path(a.map,"start","end"),s=[];for(let t=1;t<i.length-1;t++)s.push(a.table[i[t]].node);return t.fromArray(function(e){return e.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(h(e,c.isKanjiModeEnabled()))}},7969:(e,t)=>{let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},3257:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},4980:(e,t,n)=>{const r=n(7969),o=n(1805),a=n(6272),i=n(7421),s=n(3257),l=r.getBCHDigit
2(7973);function c(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach((function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=i.BYTE);const a=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===i.MIXED)return a;const l=a-c(n,e);switch(n){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const o=a.from(n,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,i.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},2182:(e,t,n)=>{const r=n(8293);t.render=function(e,t,n){let o=n,a=t;"undefined"!==typeof o||t&&t.getContext||(o=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const i=r.getImageWidth(e.modules.size,o),s=a.getContext("2d"),l=s.createImageData(i,i);return r.qrToImageData(l.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,a,i),s.putImageData(l,0,0),a},t.renderToDataURL=function(e,n,r){let o=r;"undefined"!==typeof o||n&&n.getContext||(o=n,n=void 0),o||(o={});const a=t.render(e,n,o),i=o.type||"image/png",s=o.rendererOpts||{};return a.toDataURL(i,s.quality)}},5487:(e,t,n)=>{const r=n(8293);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function a(e,t,n){let r=e+t;return"undefined"!==typeof n&&(r+=" "+n),r}t.render=function(e,t,n){const i=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*i.margin,u=i.color.light.a?"<path "+o(i.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+o(i.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,i=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||i||(i=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=i?a("M",c+n,.5+u+n):a("m",o,0),o=0,i=!1),c+1<t&&e[l+1]||(r+=a("h",s),s=0)):o++}return r}(l,s,i.margin)+'"/>',p='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+p+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,h),h}},8293:(e,t)=>{function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,a=n.modules.data,i=t.getScale(o,r),s=Math.floor((o+2*r.margin)*i),l=r.margin*i,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;if(t>=l&&n>=l&&t<s-l&&n<s-l){d=c[a[Math.floor((t-l)/i)*o+Math.floor((n-l)/i)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},2730:(e,t,n)=>{"use strict";var r=n(5043),o=n(8853);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 19,036 bytes, line 2
2h((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var A=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(f,e)||!d.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(A,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(A,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(A,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),k=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function O(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,j=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case w:return"Portal";case S:return"Profiler";case C:return"StrictMode";case N:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ae(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var Ae=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(Ae[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,Ee=null,Ce=null;function Se(e){if(e=bo(e)){if("function"!==typeof we)throw Error(a(280));var t=e.stateNode;t&&(t=wo(t),we(e.stateNode,e.type,t))}}function Te(e){Ee?Ce?Ce.push(e):Ce=[e]:Ee=e}function ke(){if(Ee){var e=Ee,t=Ce;if(Ce=Ee=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function _e(e,t){return e(t)}function Ne(){}var Ie=!1;function Pe(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return _e(e,t,n)}finally{Ie=!1,(null!==Ee||null!==Ce)&&(Ne(),ke())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=wo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var De=!1;if(u)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){De=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ue){De=!1}function Oe(e,t,n,r,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,je=null,Fe=!1,Be=null,Ue={onError:function(e){Me=!0,je=e}};function ze(e,t,n,r,o,a,i,s,l){Me=!1,je=null,Oe.apply(Ue,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(He(e)!==e)throw Error(a(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ve(o),e;if(i===r)return Ve(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Xe=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Je=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,$e=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~o;0!==s?r=dt(s):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function At(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,wt,Et,Ct,St,Tt=!1,kt=[],_t=null,Nt=null,It=null,Pt=new Map,Rt=new Map,Dt=[],Lt="mou
2sedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ot(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=bo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=yo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void St(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Tt=!1,null!==_t&&Ft(_t)&&(_t=null),null!==Nt&&Ft(Nt)&&(Nt=null),null!==It&&Ft(It)&&(It=null),Pt.forEach(Bt),Rt.forEach(Bt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function Ht(e){function t(t){return zt(t,e)}if(0<kt.length){zt(kt[0],e);for(var n=1;n<kt.length;n++){var r=kt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&zt(_t,e),null!==Nt&&zt(Nt,e),null!==It&&zt(It,e),Pt.forEach(t),Rt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)jt(n),null===n.blockedOn&&Dt.shift()}var Wt=b.ReactCurrentBatchConfig,Vt=!0;function Gt(e,t,n,r){var o=yt,a=Wt.transition;Wt.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=o,Wt.transition=a}}function qt(e,t,n,r){var o=yt,a=Wt.transition;Wt.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=o,Wt.transition=a}}function Yt(e,t,n,r){if(Vt){var o=Xt(e,t,n,r);if(null===o)Vr(e,t,r,Qt,n),Ot(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return _t=Mt(_t,e,t,n,r,o),!0;case"dragenter":return Nt=Mt(Nt,e,t,n,r,o),!0;case"mouseover":return It=Mt(It,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Pt.set(a,Mt(Pt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,Mt(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ot(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var a=bo(o);if(null!==a&&xt(a),null===(a=Xt(e,t,n,r))&&Vr(e,t,r,Qt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Qt=null;function Xt(e,t,n,r){if(Qt=null,null!==(e=yo(e=xe(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Zt=null,$t=null;function en(){if($t)return $t;var e,t,n=Zt,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return $t=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=j({},cn,{view:0,detail:0}),pn=on(dn),hn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 9,184 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=on(hn),mn=on(j({},hn,{dataTransfer:0})),gn=on(j({},dn,{relatedTarget:0})),An=on(j({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=j({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(vn),bn=on(j({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Sn(){return Cn}var Tn=j({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kn=on(Tn),_n=on(j({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),In=on(j({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=j({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Pn),Dn=[9,13,27,32],Ln=u&&"CompositionEvent"in window,On=null;u&&"documentMode"in document&&(On=document.documentMode);var Mn=u&&"TextEvent"in window&&!On,jn=u&&(!Ln||On&&8<On&&11>=On),Fn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Gn(e,t,n,r){Te(r),0<(t=qr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Yn=null;function Qn(e){Fr(e,0)}function Xn(e){if(Y(xo(e)))return e}function Kn(e,t){if("change"===e)return t}var Jn=!1;if(u){var Zn;if(u){var $n="oninput"in document;if(!$n){var er=document.createElement("div");er.setAttribute("oninput","return;"),$n="function"===typeof er.oninput}Zn=$n}else Zn=!1;Jn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Yn=qn=null)}function nr(e){if("value"===e.propertyName&&Xn(Yn)){var t=[];Gn(t,Yn,e,xe(e)),Pe(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Yn)}function ar(e,t){if("click"===e)return Xn(t)}function ir(e,t){if("input"===e||"change"===e)return Xn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,Ar=null,vr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Q(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=qr(Ar,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Er={},Cr={};function Sr(e){if(Er[e])return Er[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Er[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Tr=Sr("animationend"),kr=Sr("animationiteration"),_r=Sr("animationstart"),Nr=Sr("transitionend"),Ir=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Ir.set(e,t),l(t,[e])}for(var Dr=0;Dr<Pr.length;Dr++){var Lr=Pr[Dr];Rr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Rr(Tr,"onAnimationEnd"),Rr(kr,"onAnimationIteration"),Rr(_r,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Nr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(a(198));var u=je;Me=!1,je=null,Fe||(Fe=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;jr(o,s,c),a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;jr(o,s,c),a=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[zr]){e[zr]=!0,i.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Ur("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Kt(t)){case 1:var o=Gt;break;case 4:o=qt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=yo(s)))return;if(5===(l=i.tag)||6===l){r=a=i;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=a,o=xe(n),i=[];e:{var s=Ir.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=kn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Tr:case kr:case _r:l=An;break;case Nr:l=In;break;case"scroll":l=pn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_n}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Re(f,p))&&u.push(Gr(f,m,h)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,o),i.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yo(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=_n,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:xo(l),h=null==c?s:xo(c),(s=new u(m,f+"leave",l,n,o)).target=d,s.relatedTarget=h,m=null,yo(o)===r&&((u=new u(p,f+"enter",c,n,o)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,f=0,h=u=l;h;h=Yr(h))f++;for(h=0,m=p;m;m=Yr(m))h++;for(;0<f-h;)u=Yr(u),f--;for(;0<h-f;)p=Yr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=Yr(u),p=Yr(p)}u=null}else u=null;null!==l&&Qr(i,s,l,u,!1),null!==c&&null!==d&&Qr(i,d,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Kn;else if(Vn(s))if(Jn)g=ir;else{g=or;var A=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ar);switch(g&&(g=g(e,r))?Gn(i,g,n,o):(A&&A(e,s,r),"focusout"===e&&(A=s._wrapperState)&&A.controlled&&"number"===s.type&&ee(s,"number",s.value)),A=r?xo(r):window,e){case"focusin":(Vn(A)||"true"===A.contentEditable)&&(gr=A,Ar=r,vr=null);break;case"focusout":vr=Ar=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,br(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":br(i,n,o)}var v;if(Ln)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?Un(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");
vendor: 99,169 bytes, line 2
2y&&(jn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(v=en()):(Zt="value"in(Jt=o)?Jt.value:Jt.textContent,Hn=!0)),0<(A=qr(r,y)).length&&(y=new bn(y,e,null,n,o),i.push({event:y,listeners:A}),v?y.data=v:null!==(v=zn(n))&&(y.data=v))),(v=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&Un(e,t)?(e=en(),$t=Zt=Jt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(o=new bn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=v))}Fr(i,t)}))}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Gr(e,a,o)),null!=(a=Re(e,t))&&r.push(Gr(e,a,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Re(n,a))&&i.unshift(Gr(n,l,s)):o||null!=(l=Re(n,a))&&i.push(Gr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Xr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Jr(e){return("string"===typeof e?e:""+e).replace(Xr,"\n").replace(Kr,"")}function Zr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(a(425))}function $r(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,ao="function"===typeof Promise?Promise:void 0,io="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ao?function(e){return ao.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,Ao="__reactListeners$"+po,vo="__reactHandles$"+po;function yo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[ho])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function bo(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wo(e){return e[fo]||null}var Eo=[],Co=-1;function So(e){return{current:e}}function To(e){0>Co||(e.current=Eo[Co],Eo[Co]=null,Co--)}function ko(e,t){Co++,Eo[Co]=e.current,e.current=t}var _o={},No=So(_o),Io=So(!1),Po=_o;function Ro(e,t){var n=e.type.contextTypes;if(!n)return _o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Do(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Lo(){To(Io),To(No)}function Oo(e,t,n){if(No.current!==_o)throw Error(a(168));ko(No,t),ko(Io,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,W(e)||"Unknown",o));return j({},n,r)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,Po=No.current,ko(No,e),ko(Io,Io.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,To(Io),To(No),ko(No,e)):To(Io),ko(Io,n)}var Bo=null,Uo=!1,zo=!1;function Ho(e){null===Bo?Bo=[e]:Bo.push(e)}function Wo(){if(!zo&&null!==Bo){zo=!0;var e=0,t=yt;try{var n=Bo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Uo=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ye($e,Wo),o}finally{yt=t,zo=!1}}return null}var Vo=[],Go=0,qo=null,Yo=0,Qo=[],Xo=0,Ko=null,Jo=1,Zo="";function $o(e,t){Vo[Go++]=Yo,Vo[Go++]=qo,qo=e,Yo=t}function ea(e,t,n){Qo[Xo++]=Jo,Qo[Xo++]=Zo,Qo[Xo++]=Ko,Ko=e;var r=Jo;e=Zo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Jo=1<<32-it(t)+o|n<<o|r,Zo=a+e}else Jo=1<<a|n<<o|r,Zo=e}function ta(e){null!==e.return&&($o(e,1),ea(e,1,0))}function na(e){for(;e===qo;)qo=Vo[--Go],Vo[Go]=null,Yo=Vo[--Go],Vo[Go]=null;for(;e===Ko;)Ko=Qo[--Xo],Qo[Xo]=null,Zo=Qo[--Xo],Qo[Xo]=null,Jo=Qo[--Xo],Qo[Xo]=null}var ra=null,oa=null,aa=!1,ia=null;function sa(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Jo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&la(e,t)?sa(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw ha(),Error(a(418));for(;t;)sa(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=oa;e;)e=co(e.nextSibling)}function fa(){oa=ra=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var ga=b.ReactCurrentBatchConfig;function Aa(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function va(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ya(e){return(0,e._init)(e._payload)}function ba(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=jc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===R&&ya(a)===t.type)?((r=o(t,n.props)).ref=Aa(e,t,n),r.return=e,r):((r=Lc(n.type,n.key,n.props,null,e.mode,r)).ref=Aa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Oc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=jc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Lc(t.type,t.key,t.props,null,e.mode,n)).ref=Aa(e,null,t),n.return=e,n;case w:return(t=Fc(t,e.mode,n)).return=e,t;case R:return p(e,(0,t._init)(t._payload),n)}if(te(t)||O(t))return(t=Oc(t,e.mode,n,null)).return=e,t;va(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case w:return n.key===o?u(e,t,n,r):null;case R:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||O(n))return null!==o?null:d(e,t,n,r,null);va(e,n)}return null}function f(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return f(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||O(r))return d(t,e=e.get(n)||null,r,o,null);va(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var A=h(o,d,s[m],l);if(null===A){null===d&&(d=g);break}e&&d&&null===A.alternate&&t(o,d),a=i(A,a,m),null===u?c=A:u.sibling=A,u=A,d=g}if(m===s.length)return n(o,d),aa&&$o(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return aa&&$o(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=f(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),aa&&$o(o,m),c}function g(o,s,l,c){var u=O(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,A=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(A=m,m=null):A=m.sibling;var y=h(o,m,v.value,c);if(null===y){null===m&&(m=A);break}e&&m&&null===y.alternate&&t(o,m),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y,m=A}if(v.done)return n(o,m),aa&&$o(o,g),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(o,v.value,c))&&(s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return aa&&$o(o,g),u}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=f(m,o,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(o,e)})),aa&&$o(o,g),u}return function e(r,a,i,l){if("object"===typeof i&&null!==i&&i.type===E&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case x:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===E){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===R&&ya(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=Aa(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===E?((a=Oc(i.props.children,r.mode,l,i.key)).return=r,r=a):((l=Lc(i.type,i.key,i.props,null,r.mode,l)).ref=Aa(r,a,i),l.return=r,r=l)}return s(r);case w:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fc(i,r.mode,l)).return=r,r=a}return s(r);case R:return e(r,a,(u=i._init)(i._payload),l)}if(te(i))return m(r,a,i,l);if(O(i))return g(r,a,i,l);va(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=jc(i,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var xa=ba(!0),wa=ba(!1),Ea=So(null),Ca=null,Sa=null,Ta=null;function ka(){Ta=Sa=Ca=null}function _a(e){var t=Ea.current;To(Ea),e._currentValue=t}function Na(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ia(e,t){Ca=e,Ta=Sa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Pa(e){var t=e._currentValue;if(Ta!==e)if(e={context:e,memoizedValue:t,next:null},null===Sa){if(null===Ca)throw Error(a(308));Sa=e,Ca.dependencies={lanes:0,firstContext:e}}else Sa=Sa.next=e;return t}var Ra=null;function Da(e){null===Ra?Ra=[e]:Ra.push(e)}function La(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Da(t)):(n.next=o.next,o.next=n),t.interleaved=n,Oa(e,r)}function Oa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ma=!1;function ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&_l)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Oa(e,n)}return null===(o=r.interleaved)?(t.next=t,Da(r)):(t.next=o.next,o.next=t),r.interleaved=t,Oa(e,n)}function za(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wa(e,t,n,r){var o=e.updateQueue;Ma=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var p=s.lane,h=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(p=t,h=n,m.tag){case 1:if("function"===typeof(f=m.payload)){d=f.call(h,d,p);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(p="function"===typeof(f=m.payload)?f.call(h,d,p):f)||void 0===p)break e;d=j({},d,p);break e;case 2:Ma=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ml|=i,e.lanes=i,e.memoizedState=d}}function Va(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var Ga={},qa=So(Ga),Ya=So(Ga),Qa=So(Ga);function Xa(e){if(e===Ga)throw Error(a(174));return e}function Ka(e,t){switch(ko(Qa,t),ko(Ya,e),ko(qa,Ga),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}To(qa),ko(qa,t)}function Ja(){To(qa),To(Ya),To(Qa)}function Za(e){Xa(Qa.current);var t=Xa(qa.current),n=le(t,e.type);t!==n&&(ko(Ya,e),ko(qa,n))}function $a(e){Ya.current===e&&(To(qa),To(Ya))}var ei=So(0);function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var oi=b.ReactCurrentDispatcher,ai=b.ReactCurrentBatchConfig,ii=0,si=null,li=null,ci=null,ui=!1,di=!1,pi=0,hi=0;function fi(){throw Error(a(321))}function mi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function gi(e,t,n,r,o,i){if(ii=i,si=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?$i:es,e=n(r,o),di){i=0;do{if(di=!1,pi=0,25<=i)throw Error(a(301));i+=1,ci=li=null,t.updateQueue=null,oi.current=ts,e=n(r,o)}while(di)}if(oi.current=Zi,t=null!==li&&null!==li.next,ii=0,ci=li=si=null,ui=!1,t)throw Error(a(300));return e}function Ai(){var e=0!==pi;return pi=0,e}function vi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ci?si.memoizedState=ci=e:ci=ci.next=e,ci}function yi(){if(null===li){var e=si.alternate;e=null!==e?e.memoizedState:null}else e=li.next;var t=null===ci?si.memoizedState:ci.next;if(null!==t)ci=t,li=e;else{if(null===e)throw Error(a(310));e={memoizedState:(li=e).memoizedState,baseState:li.baseState,baseQueue:li.baseQueue,queue:li.queue,next:null},null===ci?si.memoizedState=ci=e:ci=ci.next=e}return ci}function bi(e,t){return"function"===typeof t?t(e):t}function xi(e){var t=yi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=li,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((ii&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,si.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,si.lanes|=i,Ml|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wi(e){var t=yi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sr(i,t.memoizedState)||(ys=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ei(){}function Ci(e,t){var n=si,r=yi(),o=t(),i=!sr(r.memoizedState,o);if(i&&(r.memoizedState=o,ys=!0),r=r.queue,Mi(ki.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ci&&1&ci.memoizedState.tag){if(n.flags|=2048,Pi(9,Ti.bind(null,n,r,o,t),void 0,null),null===Nl)throw Error(a(349));0!==(30&ii)||Si(n,t,o)}return o}function Si(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=si.updateQueue)?(t={lastEffect:null,stores:null},si.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ti(e,t,n,r){t.value=n,t.getSnapshot=r,_i(t)&&Ni(e)}function ki(e,t,n){return n((function(){_i(t)&&Ni(e)}))}function _i(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ni(e){var t=Oa(e,1);null!==t&&nc(t,e,1,-1)}function Ii(e){var t=vi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:e},t.queue=e,e=e.dispatch=Qi.bind(null,si,e),[t.memoizedState,e]}function Pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=si.updateQueue)?(t={lastEffect:null,stores:null},si.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ri(){return yi().memoizedState}function Di(e,t,n,r){var o=vi();si.flags|=e,o.memoizedState=Pi(1|t,n,void 0,void 0===r?null:r)}function Li(e,t,n,r){var o=yi();r=void 0===r?null:r;var a=void 0;if(null!==li){var i=li.memoizedState;if(a=i.destroy,null!==r&&mi(r,i.deps))return void(o.memoizedState=Pi(t,n,a,r))}si.flags|=e,o.memoizedState=Pi(1|t,n,a,r)}function Oi(e,t){return Di(8390656,8,e,t)}function Mi(e,t){return Li(2048,8,e,t)}function ji(e,t){return Li(4,2,e,t)}function Fi(e,t){return Li(4,4,e,t)}function Bi(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ui(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Li(4,4,Bi.bind(null,t,e),n)}function zi(){}function Hi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vi(e,t,n){return 0===(21&ii)?(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),si.lanes|=n,Ml|=n,e.baseState=!0),t)}function Gi(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ai.transition;ai.transition={};try{e(!1),t()}finally{yt=n,ai.transition=r}}function qi(){return yi().memoizedState}function Yi(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xi(e))Ki(t,n);else if(null!==(n=La(e,t,n,r))){nc(n,e,r,ec()),Ji(n,t,r)}}function Qi(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xi(e))Ki(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(o.next=o,Da(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=La(e,t,o,r))&&(nc(n,e,r,o=ec()),Ji(n,t,r))}}function Xi(e){var t=e.alternate;return e===si||null!==t&&t===si}function Ki(e,t){di=ui=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ji(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Zi={readContext:Pa,useCallback:fi,useContext:fi,useEffect:fi,useImperativeHandle:fi,useInsertionEffect:fi,useLayoutEffect:fi,useMemo:fi,useReducer:fi,useRef:fi,useState:fi,useDebugValue:fi,useDeferredValue:fi,useTransition:fi,useMutableSource:fi,useSyncExternalStore:fi,useId:fi,unstable_isNewReconciler:!1},$i={readContext:Pa,useCallback:function(e,t){return vi().memoizedState=[e,void 0===t?null:t],e},useContext:Pa,useEffect:Oi,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Di(4194308,4,Bi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Di(4194308,4,e,t)},useInsertionEffect:function(e,t){return Di(4,2,e,t)},useMemo:function(e,t){var n=vi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Yi.bind(null,si,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vi().memoizedState=e},useState:Ii,useDebugValue:zi,useDeferredValue:function(e){return vi().memoizedState=e},useTransition:function(){var e=Ii(!1),t=e[0];return e=Gi.bind(null,e[1]),vi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=si,o=vi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Nl)throw Error(a(349));0!==(30&ii)||Si(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Oi(ki.bind(null,r,i,e),[e]),r.flags|=2048,Pi(9,Ti.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=vi(),t=Nl.identifierPrefix;if(aa){var n=Zo;t=":"+t+"R"+(n=(Jo&~(1<<32-it(Jo)-1)).toString(32)+n),0<(n=pi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=hi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pa,useCallback:Hi,useContext:Pa,useEffect:Mi,useImperativeHandle:Ui,useInsertionEffect:ji,useLayoutEffect:Fi,useMemo:Wi,useReducer:xi,useRef:Ri,useState:function(){return xi(bi)},useDebugValue:zi,useDeferredValue:function(e){return Vi(yi(),li.memoizedState,e)},useTransition:function(){return[xi(bi)[0],yi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:Ci,useId:qi,unstable_isNewReconciler:!1},ts={readContext:Pa,useCallback:Hi,useContext:Pa,useEffect:Mi,useImperativeHandle:Ui,useInsertionEffect:ji,useLayoutEffect:Fi,useMemo:Wi,useReducer:wi,useRef:Ri,useState:function(){return wi(bi)},useDebugValue:zi,useDeferredValue:function(e){var t=yi();return null===li?t.memoizedState=e:Vi(t,li.memoizedState,e)},useTransition:function(){return[wi(bi)[0],yi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:Ci,useId:qi,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=Ba(r,o);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Ua(e,a,o))&&(nc(t,e,o,r),za(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=Ba(r,o);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Ua(e,a,o))&&(nc(t,e,o,r),za(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ba(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Ua(e,o,r))&&(nc(t,e,r,n),za(t,e,r))}};function as(e,t,n,r,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,a))}function is(e,t,n){var r=!1,o=_o,a=t.contextType;return"object"===typeof a&&null!==a?a=Pa(a):(o=Do(t)?Po:No.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ro(e,o):_o),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ja(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=Pa(a):(a=Do(t)?Po:No.current,o.context=Ro(e,a)),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(rs(e,t,a,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Wa(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ba(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Gl=r),ds(0,t)},n}function fs(e,t,n){(n=Ba(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Sc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function As(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ba(-1,1)).tag=2,Ua(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var vs=b.ReactCurrentOwner,ys=!1;function bs(e,t,n,r){t.child=null===e?wa(t,null,n,r):xa(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var a=t.ref;return Ia(t,o),r=gi(e,t,n,r,a,o),n=Ai(),null===e||ys?(aa&&n&&ta(t),t.flags|=1,bs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vs(e,t,o))}function ws(e,t,n,r,o){if(null===e){var a=n.type;return"function"!==typeof a||Rc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Es(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Vs(e,t,o)}return t.flags|=1,(e=Dc(a,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Vs(e,t,o);0!==(131072&e.flags)&&(ys=!0)}}return Ts(e,t,n,r,o)}function Cs(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ko(Dl,Rl),Rl|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ko(Dl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,ko(Dl,Rl),Rl|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,ko(Dl,Rl),Rl|=r;return bs(e,t,o,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,o){var a=Do(n)?Po:No.current;return a=Ro(t,a),Ia(t,o),n=gi(e,t,n,r,a,o),r=Ai(),null===e||ys?(aa&&r&&ta(t),t.flags|=1,bs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vs(e,t,o))}function ks(e,t,n,r,o){if(Do(n)){var a=!0;jo(t)}else a=!1;if(Ia(t,o),null===t.stateNode)Ws(e,t),is(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pa(c):c=Ro(t,c=Do(n)?Po:No.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,i,r,c),Ma=!1;var p=t.memoizedState;i.state=p,Wa(t,r,i,o),l=t.memoizedState,s!==r||p!==l||Io.current||Ma?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Ma||as(t,n,s,r,p,l,c))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Fa(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"===typeof(l=n.contextType)&&null!==l?l=Pa(l):l=Ro(t,l=Do(n)?Po:No.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,i,r,l),Ma=!1,p=t.memoizedState,i.state=p,Wa(t,r,i,o);var f=t.memoizedState;s!==d||p!==f||Io.current||Ma?("function"===typeof h&&(rs(t,n,h,r),f=t.memoizedState),(c=Ma||as(t,n,c,r,p,f,l)||!1)?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,f,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),i.props=r,i.state=f,i.context=l,r=c):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return _s(e,t,n,r,a,o)}function _s(e,t,n,r,o,a){Ss(e,t);var i=0!==(128&t.flags);if(!r&&!i)return o&&Fo(t,n,!1),Vs(e,t,a);r=t.stateNode,vs.current=t;var s=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=xa(t,e.child,null,a),t.child=xa(t,null,s,a)):bs(e,t,s,a),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?Oo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oo(0,t.context,!1),Ka(e,t.containerInfo)}function Is(e,t,n,r,o){return fa(),ma(o),t.flags|=256,bs(e,t,n,r),t.child}var Ps,Rs,Ds,Ls,Os={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var r,o=t.pendingProps,i=ei.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),ko(ei,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,o,0,null),e=Oc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=Os,e):Fs(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=us(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(i=Oc(i,o,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!==(1&t.mode)&&xa(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Os,i);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=us(i=Error(a(419)),r,void 0))}if(l=0!==(s&e.childLanes),ys||l){if(null!==(r=Nl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Oa(e,o),nc(r,e,o,-1))}return mc(),Bs(e,t,s,r=us(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=kc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Qo[Xo++]=Jo,Qo[Xo++]=Zo,Qo[Xo++]=Ko,Jo=e.id,Zo=e.overflow,Ko=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(s){s=o.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Dc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Dc(r,s):(s=Oc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Os,o}return e=(s=e.child).sibling,o=Dc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&ma(r),xa(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Na(e.return,t,n)}function zs(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Hs(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(bs(e,t,r.children,n),0!==(2&(r=ei.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ko(ei,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ti(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zs(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ti(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zs(t,!0,n,null,a);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Do(t.type)&&Lo(),qs(t),null;case 3:return r=t.stateNode,Ja(),To(Io),To(No),ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ia&&(ic(ia),ia=null))),Rs(e,t),qs(t),null;case 5:$a(t);var o=Xa(Qa.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return qs(t),null}if(e=Xa(qa.current),pa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ho]=t,r[fo]=i,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Or.length;o++)Br(Or[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":K(r,i),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Br("invalid",r);break;case"textarea":oe(r,i),Br("invalid",r)}for(var l in ve(n,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":q(r),$(r,i,!0);break;case"textarea":q(r),ie(r);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(r.onclick=$r)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[fo]=r,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Or.length;o++)Br(Or[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":K(e,r),o=X(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=j({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(i in ve(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ge(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"===typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"===typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Br("scroll",e):null!=u&&y(e,i,u,l))}switch(n){case"input":q(e),$(e,r,!1);break;case"textarea":q(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=$r)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=Xa(Qa.current),Xa(qa.current),pa(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return qs(t),null;case 13:if(To(ei),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!==(1&t.mode)&&0===(128&t.flags))ha(),fa(),t.flags|=98560,i=!1;else if(i=pa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[ho]=t}else fa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),i=!1}else null!==ia&&(ic(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ei.current)?0===Ll&&(Ll=3):mc())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return Ja(),Rs(e,t),null===e&&Hr(t.stateNode.containerInfo),qs(t),null;case 10:return _a(t.type._context),qs(t),null;case 19:if(To(ei),null===(i=t.memoizedState))return qs(t),null;if(r=0!==(128&t.flags),null===(l=i.rendering))if(r)Gs(i,!1);else{if(0!==Ll||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ti(e))){for(t.flags|=128,Gs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ko(ei,1&ei.current|2),t.child}e=e.sibling}null!==i.tail&&Je()>Hl&&(t.flags|=128,r=!0,Gs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ti(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return qs(t),null}else 2*Je()-i.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Gs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Je(),t.sibling=null,n=ei.current,ko(ei,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Rl)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Qs(e,t){switch(na(t),t.tag){case 1:return Do(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ja(),To(Io),To(No),ri(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return $a(t),null;case 13:if(To(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));fa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return To(ei),null;case 4:return Ja(),null;case 10:return _a(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ps=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Ds=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Xa(qa.current);var a,i=null;switch(n){case"input":o=X(e,o),r=X(e,r),i=[];break;case"select":o=j({},o,{value:void 0}),r=j({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=$r)}for(u in ve(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Ks=!1,Js="function"===typeof WeakSet?WeakSet:Set,Zs=null;function $s(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Cc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Cc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&el(t,n,a)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[go],delete t[Ao],delete t[vo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=$r));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Ks||$s(n,t);case 6:var r=ul,o=dl;ul=null,pl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&el(n,t,i),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Ks&&($s(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Cc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,pl(e,t,n),Ks=r):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach((function(t){var r=_c.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(a(160));hl(i,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Cc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),Al(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Cc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Cc(e,e.return,g)}}break;case 1:ml(t,e),Al(e),512&r&&null!==n&&$s(n,n.return);break;case 5:if(ml(t,e),Al(e),512&r&&null!==n&&$s(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(g){Cc(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&J(o,i),ye(l,s);var u=ye(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):y(o,d,p,u)}switch(l){case"input":Z(o,i);break;case"textarea":ae(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?ne(o,!!i.multiple,f,!1):h!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[fo]=i}catch(g){Cc(e,e.return,g)}}break;case 6:if(ml(t,e),Al(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Cc(e,e.return,g)}}break;case 3:if(ml(t,e),Al(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(g){Cc(e,e.return,g)}break;case 4:default:ml(t,e),Al(e);break;case 13:ml(t,e),Al(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Je())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(u=Ks)||d,ml(t,e),Ks=u):ml(t,e),Al(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Zs=e,d=e.child;null!==d;){for(p=Zs=d;null!==Zs;){switch(f=(h=Zs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:$s(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Cc(r,n,g)}}break;case 5:$s(h,h.return);break;case 22:if(null!==h.memoizedState){xl(p);continue}}null!==f?(f.return=h,Zs=f):xl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"===typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Cc(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){Cc(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),Al(e),4&r&&fl(e);case 21:}}function Al(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ll(e,sl(e),i);break;default:throw Error(a(161))}}catch(s){Cc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Zs=e,yl(e,t,n)}function yl(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var o=Zs,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Xs;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Xs;var c=Ks;if(Xs=i,(Ks=l)&&!c)for(Zs=o;null!==Zs;)l=(i=Zs).child,22===i.tag&&null!==i.memoizedState?wl(o):null!==l?(l.return=i,Zs=l):wl(o);for(;null!==a;)Zs=a,yl(a,t,n),a=a.sibling;Zs=o,Xs=s,Ks=c}bl(e)}else 0!==(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zs=a):bl(e)}}function bl(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ks||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Va(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Va(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(a(163))}Ks||512&t.flags&&ol(t)}catch(h){Cc(t,t.return,h)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function xl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function wl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Cc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Cc(t,o,l)}}var a=t.return;try{ol(t)}catch(l){Cc(t,a,l)}break;case 5:var i=t.return;try{ol(t)}catch(l){Cc(t,i,l)}}}catch(l){Cc(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var El,Cl=Math.ceil,Sl=b.ReactCurrentDispatcher,Tl=b.ReactCurrentOwner,kl=b.ReactCurrentBatchConfig,_l=0,Nl=null,Il=null,Pl=0,Rl=0,Dl=So(0),Ll=0,Ol=null,Ml=0,jl=0,Fl=0,Bl=null,Ul=null,zl=0,Hl=1/0,Wl=null,Vl=!1,Gl=null,ql=null,Yl=!1,Ql=null,Xl=0,Kl=0,Jl=null,Zl=-1,$l=0;function ec(){return 0!==(6&_l)?Je():-1!==Zl?Zl:Zl=Je()}function tc(e){return 0===(1&e.mode)?1:0!==(2&_l)&&0!==Pl?Pl&-Pl:null!==ga.transition?(0===$l&&($l=mt()),$l):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function nc(e,t,n,r){if(50<Kl)throw Kl=0,Jl=null,Error(a(185));At(e,n,r),0!==(2&_l)&&e===Nl||(e===Nl&&(0===(2&_l)&&(jl|=n),4===Ll&&sc(e,Pl)),rc(e,r),1===n&&0===_l&&0===(1&t.mode)&&(Hl=Je()+500,Uo&&Wo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?0!==(s&n)&&0===(s&r)||(o[i]=ht(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=pt(e,e===Nl?Pl:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Uo=!0,Ho(e)}(lc.bind(null,e)):Ho(lc.bind(null,e)),io((function(){0===(6&_l)&&Wo()})),n=null;else{switch(bt(r)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Zl=-1,$l=0,0!==(6&_l))throw Error(a(327));var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=pt(e,e===Nl?Pl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=_l;_l|=2;var i=fc();for(Nl===e&&Pl===t||(Wl=null,Hl=Je()+500,pc(e,t));;)try{vc();break}catch(l){hc(e,l)}ka(),Sl.current=i,_l=o,null!==Il?t=0:(Nl=null,Pl=0,t=Ll)}if(0!==t){if(2===t&&(0!==(o=ft(e))&&(r=o,t=ac(e,o))),1===t)throw n=Ol,pc(e,0),sc(e,r),rc(e,Je()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!sr(a(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,r))&&(0!==(i=ft(e))&&(r=i,t=ac(e,i))),1===t))throw n=Ol,pc(e,0),sc(e,r),rc(e,Je()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:xc(e,Ul,Wl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=zl+500-Je())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Ul,Wl),t);break}xc(e,Ul,Wl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>o&&(o=s),r&=~i}if(r=o,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Ul,Wl),r);break}xc(e,Ul,Wl);break;default:throw Error(a(329))}}}return rc(e,Je()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Ul,Ul=n,null!==t&&ic(t)),e}function ic(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function sc(e,t){for(t&=~Fl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&_l))throw Error(a(327));wc();var t=pt(e,0);if(0===(1&t))return rc(e,Je()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Ol,pc(e,0),sc(e,t),rc(e,Je()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Ul,Wl),rc(e,Je()),null}function cc(e,t){var n=_l;_l|=1;try{return e(t)}finally{0===(_l=n)&&(Hl=Je()+500,Uo&&Wo())}}function uc(e){null!==Ql&&0===Ql.tag&&0===(6&_l)&&wc();var t=_l;_l|=1;var n=kl.transition,r=yt;try{if(kl.transition=null,yt=1,e)return e()}finally{yt=r,kl.transition=n,0===(6&(_l=t))&&Wo()}}function dc(){Rl=Dl.current,To(Dl)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Lo();break;case 3:Ja(),To(Io),To(No),ri();break;case 5:$a(r);break;case 4:Ja();break;case 13:case 19:To(ei);break;case 10:_a(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Nl=e,Il=e=Dc(e.current,null),Pl=Rl=t,Ll=0,Ol=null,Fl=jl=Ml=0,Ul=Bl=null,null!==Ra){for(t=0;t<Ra.length;t++)if(null!==(r=(n=Ra[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ra=null}return e}function hc(e,t){for(;;){var n=Il;try{if(ka(),oi.current=Zi,ui){for(var r=si.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ui=!1}if(ii=0,ci=li=si=null,di=!1,pi=0,Tl.current=null,null===n||null===n.return){Ll=1,Ol=t,Il=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,As(f,s,l,0,t),1&f.mode&&ms(i,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(i,u,t),mc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var A=gs(s);if(null!==A){0===(65536&A.flags)&&(A.flags|=256),As(A,s,l,0,t),ma(cs(c,l));break e}}i=c=cs(c,l),4!==Ll&&(Ll=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ha(i,hs(0,c,t));break e;case 1:l=c;var v=i.type,y=i.stateNode;if(0===(128&i.flags)&&("function"===typeof v.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===ql||!ql.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ha(i,fs(i,l,t));break e}}i=i.return}while(null!==i)}bc(n)}catch(b){t=b,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function fc(){var e=Sl.current;return Sl.current=Zi,null===e?Zi:e}function mc(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Nl||0===(268435455&Ml)&&0===(268435455&jl)||sc(Nl,Pl)}function gc(e,t){var n=_l;_l|=2;var r=fc();for(Nl===e&&Pl===t||(Wl=null,pc(e,t));;)try{Ac();break}catch(o){hc(e,o)}if(ka(),_l=n,Sl.current=r,null!==Il)throw Error(a(261));return Nl=null,Pl=0,Ll}function Ac(){for(;null!==Il;)yc(Il)}function vc(){for(;null!==Il&&!Xe();)yc(Il)}function yc(e){var t=El(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?bc(e):Il=t,Tl.current=null}function bc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ys(n,t,Rl)))return void(Il=n)}else{if(null!==(n=Qs(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Ll=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Ll&&(Ll=5)}function xc(e,t,n){var r=yt,o=kl.transition;try{kl.transition=null,yt=1,function(e,t,n,r){do{wc()}while(null!==Ql);if(0!==(6&_l))throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Nl&&(Il=Nl=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Yl||(Yl=!0,Nc(tt,(function(){return wc(),null}))),i=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||i){i=kl.transition,kl.transition=null;var s=yt;yt=1;var l=_l;_l|=4,Tl.current=null,function(e,t){if(eo=Vt,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var f;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break t;if(h===n&&++u===o&&(l=s),h===i&&++d===r&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Vt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,A=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),A);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(a(163))}}catch(x){Cc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=tl,tl=!1}(e,n),gl(n,e),fr(to),Vt=!!eo,to=eo=null,e.current=n,vl(n,e,o),Ke(),_l=l,yt=s,kl.transition=i}else e.current=n;if(Yl&&(Yl=!1,Ql=e,Xl=o),i=e.pendingLanes,0===i&&(ql=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Vl)throw Vl=!1,e=Gl,Gl=null,e;0!==(1&Xl)&&0!==e.tag&&wc(),i=e.pendingLanes,0!==(1&i)?e===Jl?Kl++:(Kl=0,Jl=e):Kl=0,Wo()}(e,t,n,r)}finally{kl.transition=o,yt=r}return null}function wc(){if(null!==Ql){var e=bt(Xl),t=kl.transition,n=yt;try{if(kl.transition=null,yt=16>e?16:e,null===Ql)var r=!1;else{if(e=Ql,Ql=null,Xl=0,0!==(6&_l))throw Error(a(331));var o=_l;for(_l|=4,Zs=e.current;null!==Zs;){var i=Zs,s=i.child;if(0!==(16&Zs.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Zs=p;else for(;null!==Zs;){var h=(d=Zs).sibling,f=d.return;if(al(d),d===u){Zs=null;break}if(null!==h){h.return=f,Zs=h;break}Zs=f}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var A=g.sibling;g.sibling=null,g=A}while(null!==g)}}Zs=i}}if(0!==(2064&i.subtreeFlags)&&null!==s)s.return=i,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(i=Zs).flags))switch(i.tag){case 0:case 11:case 15:nl(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Zs=v;break e}Zs=i.return}}var y=e.current;for(Zs=y;null!==Zs;){var b=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==b)b.return=s,Zs=b;else e:for(s=y;null!==Zs;){if(0!==(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(w){Cc(l,l.return,w)}if(l===s){Zs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Zs=x;break e}Zs=l.return}}if(_l=o,Wo(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(w){}r=!0}return r}finally{yt=n,kl.transition=t}}return!1}function Ec(e,t,n){e=Ua(e,t=hs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(At(e,1,t),rc(e,t))}function Cc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Ua(t,e=fs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(At(t,1,e),rc(t,e));break}}t=t.return}}function Sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Pl&n)===n&&(4===Ll||3===Ll&&(130023424&Pl)===Pl&&500>Je()-zl?pc(e,0):Fl|=n),rc(e,t)}function Tc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Oa(e,t))&&(At(e,t,n),rc(e,n))}function kc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function _c(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Tc(e,n)}function Nc(e,t){return Ye(e,t)}function Ic(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Ic(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lc(e,t,n,r,o,i){var s=2;if(r=e,"function"===typeof e)Rc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return Oc(n.children,o,i,t);case C:s=8,o|=8;break;case S:return(e=Pc(12,n,t,2|o)).elementType=S,e.lanes=i,e;case N:return(e=Pc(13,n,t,o)).elementType=N,e.lanes=i,e;case I:return(e=Pc(19,n,t,o)).elementType=I,e.lanes=i,e;case D:return Mc(n,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case k:s=9;break e;case _:s=11;break e;case P:s=14;break e;case R:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Pc(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Oc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function jc(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,o,a,i,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Pc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ja(a),e}function zc(e){if(!e)return _o;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Do(n))return Mo(e,n,t)}return t}function Hc(e,t,n,r,o,a,i,s,l){return(e=Uc(n,r,!0,e,0,a,0,s,l)).context=zc(null),n=e.current,(a=Ba(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Ua(n,a,o),e.current.lanes=o,At(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,a=ec(),i=tc(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ba(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ua(o,t,i))&&(nc(e,o,i,a),za(e,o,i)),i}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)ys=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),fa();break;case 5:Za(t);break;case 1:Do(t.type)&&jo(t);break;case 4:Ka(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ko(Ea,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ko(ei,1&ei.current),t.flags|=128,null):0!==(n&t.child.childLanes)?js(e,t,n):(ko(ei,1&ei.current),null!==(e=Vs(e,t,n))?e.sibling:null);ko(ei,1&ei.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),ko(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Vs(e,t,n)}(e,t,n);ys=0!==(131072&e.flags)}else ys=!1,aa&&0!==(1048576&t.flags)&&ea(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var o=Ro(t,No.current);Ia(t,n),o=gi(null,t,r,e,o,n);var i=Ai();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(i=!0,jo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ja(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=_s(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),bs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Rc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===_)return 11;if(e===P)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=ks(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=ws(null,t,r,ns(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,ks(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Ns(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Fa(e,t),Wa(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Is(e,t,r,n,o=cs(Error(a(423)),t));break e}if(r!==o){t=Is(e,t,r,n,o=cs(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=wa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fa(),r===o){t=Vs(e,t,n);break e}bs(e,t,r,n)}t=t.child}return t;case 5:return Za(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==i&&no(r,i)&&(t.flags|=32),Ss(e,t),bs(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return js(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xa(t,null,r,n):bs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return bs(e,t,t.pendingProps,n),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ko(Ea,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===o.children&&!Io.current){t=Vs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Ba(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Na(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Na(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}bs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ia(t,n),r=r(o=Pa(o)),t.flags|=1,bs(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),ws(e,t,r,o=ns(r.type,o),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Ws(e,t),t.tag=1,Do(r)?(e=!0,jo(t)):e=!1,Ia(t,n),is(t,r,o),ls(t,r,o,n),_s(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return Cs(e,t,n)}throw Error(a(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function $c(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"===typeof o){var s=o;o=function(){var e=Vc(i);s.call(e)}}Wc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"===typeof r){var a=r;r=function(){var e=Vc(i);a.call(e)}}var i=Hc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=i,e[mo]=i.current,Hr(8===e.nodeType?e.parentNode:e),uc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Vc(l);s.call(e)}}var l=Uc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,l,n,r)})),l}(n,t,e,o,r);return Vc(i)}Xc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Wc(e,t,null,null)},Xc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[mo]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&jt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),rc(t,Je()),0===(6&_l)&&(Hl=Je()+500,Wo()))}break;case 13:uc((function(){var t=Oa(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),qc(e,1)}},wt=function(e){if(13===e.tag){var t=Oa(e,134217728);if(null!==t)nc(t,e,134217728,ec());qc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=Oa(e,t);if(null!==n)nc(n,e,t,ec());qc(e,t)}},Ct=function(){return yt},St=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},we=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=wo(r);if(!o)throw Error(a(90));Y(r),Z(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},_e=cc,Ne=uc;var eu={usingClientEntryPoint:!1,Events:[bo,xo,wo,Te,ke,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),at=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(a(299));var n=!1,r="",o=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(a(200));return $c(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=Yc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hc(t,null,e,1,null!=n?n:null,o,0,i,s),e[mo]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(a(200));return $c(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){$c(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return $c(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},4391:(e,t,n)=>{"use strict";var r=n(7950);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},1153:(e,t,n)=>{"use strict";var r=n(5043),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function A(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}A.prototype.isReactComponent={},A.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},A.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=A.prototype;var b=y.prototype=new v;b.constructor=y,m(b,A.prototype),b.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)w.call(t,o)&&!C.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:n,type:e,key:i,ref:s,props:a,_owner:E.current}}function T(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var k=/\/+/g;function _(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===a?"."+_(l,0):a,x(i)?(o="",null!=e&&(o=e.replace(k,"$&/")+"/"),N(i,t,o,"",(function(e){return e}))):null!=i&&(T(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(k,"$&/")+"/")+e)),t.push(i)),1;if(l=0,a=""===a?".":a+":",x(e))for(var c=0;c<e.length;c++){var u=a+_(s=e[c],c);l+=N(s,t,o,u,i)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=N(s=s.value,t,o,u=a+_(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},D={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:D,ReactCurrentOwner:E};function O(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=A,t.Fragment=o,t.Profiler=i,t.PureComponent=y,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=O,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)w.call(t,c)&&!C.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=O,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},579:(e,t,n)=>{"use strict";e.exports=n(1153)},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,n))c<o&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,g=!1,A="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function b(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,b(e),!m)if(null!==r(c))m=!0,D(w);else{var t=r(u);null!==t&&L(x,t.startTime-e)}}function w(e,n){m=!1,g&&(g=!1,v(T),T=-1),f=!0;var a=h;try{for(b(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!N());){var i=p.callback;if("function"===typeof i){p.callback=null,h=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?p.callback=s:p===r(c)&&o(c),b(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&L(x,d.startTime-n),l=!1}return l}finally{p=null,h=a,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,C=!1,S=null,T=-1,k=5,_=-1;function N(){return!(t.unstable_now()-_<k)}function I(){if(null!==S){var e=t.unstable_now();_=e;var n=!0;try{n=S(!0,e)}finally{n?E():(C=!1,S=null)}}else C=!1}if("function"===typeof y)E=function(){y(I)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=I,E=function(){R.postMessage(null)}}else E=function(){A(I,0)};function D(e){S=e,C||(C=!0,E())}function L(e,n){T=A((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,D(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(g?(v(T),T=-1):g=!0,L(x,a-i))):(e.sortIndex=s,n(c,e),m||f||(m=!0,D(w))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},4222:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!==typeof e)return n;var r=(0,o.default)(e),a="function"===typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;a?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(4403))},2330:(e,t,n)=>{"use strict";var r=n(5043);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},9717:(e,t,n)=>{"use strict";var r=n(5043),o=n(9461);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(i=e,t):(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var h=i(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},9461:(e,t,n)=>{"use strict";e.exports=n(2330)},8443:(e,t,n)=>{"use strict";e.exports=n(9717)},477:()=>{},9912:()=>{},908:()=>{},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},5787:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},8387:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);
2s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,n.d(a,i),a}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+".d2f5876d.chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="med-rpt:";n.l=(r,o,a,i)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+a),s.src=r),e[r]=[o];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{var e={792:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=a);var i=n.p+n.u(t),s=new Error;n.l(i,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,o[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,a,i=r[0],s=r[1],l=r[2],c=0;if(i.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<i.length;c++)a=i[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunkmed_rpt=self.webpackChunkmed_rpt||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{boolean:()=>rp,booleanish:()=>op,commaOrSpaceSeparated:()=>cp,commaSeparated:()=>lp,number:()=>ip,overloadedBoolean:()=>ap,spaceSeparated:()=>sp});var t={};n.r(t),n.d(t,{attentionMarkers:()=>Gf,contentInitial:()=>Bf,disable:()=>qf,document:()=>Ff,flow:()=>zf,flowInitial:()=>Uf,insideSpan:()=>Vf,string:()=>Hf,text:()=>Wf});var r={};n.r(r),n.d(r,{Pl:()=>bj,kp:()=>yj,ZT:()=>gj,Sw:()=>Sj,Vw:()=>xj,tS:()=>wj,z3:()=>Ej,D:()=>Cj,H7:()=>sj,zp:()=>ij,xl:()=>dj,AS:()=>kj,tN:()=>pj,IS:()=>fj,ni:()=>Aj,ds:()=>vj,Hf:()=>lj,Um:()=>cj,_4:()=>uj});var o,a=n(5043),i=n.t(a,2),s=n(4391);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));const c="popstate";function u(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function d(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?m(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r){void 0===r&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,d=o.Pop,m=null,g=A();function A(){return(s.state||{idx:null}).idx}function v(){d=o.Pop;let e=A(),t=null==e?null:e-g;g=e,m&&m({action:d,location:b.location,delta:t})}function y(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:f(e);return n=n.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,s.replaceState(l({},s.state,{idx:g}),""));let b={get action(){return d},get location(){return e(a,s)},listen(e){if(m)throw new Error("A history only accepts one active listener");return a.addEventListener(c,v),m=e,()=>{a.removeEventListener(c,v),m=null}},createHref:e=>t(a,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d=o.Push;let r=h(b.location,e,t);n&&n(r,e),g=A()+1;let l=p(r,g),c=b.createHref(r);try{s.pushState(l,"",c)}catch(u){if(u instanceof DOMException&&"DataCloneError"===u.name)throw u;a.location.assign(c)}i&&m&&m({action:d,location:b.location,delta:1})},replace:function(e,t){d=o.Replace;let r=h(b.location,e,t);n&&n(r,e),g=A();let a=p(r,g),l=b.createHref(r);s.replaceState(a,"",l),i&&m&&m({action:d,location:b.location,delta:0})},go:e=>s.go(e)};return b}var A;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(A||(A={}));
2new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,n){return void 0===n&&(n="/"),y(e,t,n,!1)}function y(e,t,n,r){let o=D(("string"===typeof t?m(t):t).pathname||"/",n);if(null==o)return null;let a=b(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let s=0;null==i&&s<a.length;++s){let e=R(o);i=I(a[s],e,r)}return i}function b(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(u(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=F([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),b(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:N(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of x(e.path))o(e,t,r);else o(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=x(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const w=/^:[\w-]+$/,E=3,C=2,S=1,T=10,k=-2,_=e=>"*"===e;function N(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=k),t&&(r+=C),n.filter((e=>!_(e))).reduce(((e,t)=>e+(w.test(t)?E:""===t?S:T)),r)}function I(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===a?t:t.slice(a.length)||"/",u=P({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=P({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(o,u.params),i.push({params:o,pathname:F([a,u.pathname]),pathnameBase:B(F([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=F([a,u.pathnameBase]))}return i}function P(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);d("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let a=new RegExp(o,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:a,pathnameBase:i,pattern:e}}function R(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return d(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function L(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function O(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function M(e,t){let n=O(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function j(e,t,n,r){let o;void 0===r&&(r=!1),"string"===typeof e?o=m(e):(o=l({},e),u(!o.pathname||!o.pathname.includes("?"),L("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),L("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),L("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?m(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:U(r),hash:z(o)}}(o,a),d=s&&"/"!==s&&s.endsWith("/"),p=(i||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!p||(c.pathname+="/"),c}const F=e=>e.join("/").replace(/\/\/+/g,"/"),B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function H(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],V=(new Set(W),["get",...W]);new Set(V),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}const q=a.createContext(null);const Y=a.createContext(null);const Q=a.createContext(null);const X=a.createContext(null);const K=a.createContext({outlet:null,matches:[],isDataRoute:!1});const J=a.createContext(null);function Z(){return null!=a.useContext(X)}function $(){return Z()||u(!1),a.useContext(X).location}function ee(e){a.useContext(Q).static||a.useLayoutEffect(e)}function te(){let{isDataRoute:e}=a.useContext(K);return e?function(){let{router:e}
2=pe(ue.UseNavigateStable),t=fe(de.UseNavigateStable),n=a.useRef(!1);return ee((()=>{n.current=!0})),a.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,G({fromRouteId:t},o)))}),[e,t])}():function(){Z()||u(!1);let e=a.useContext(q),{basename:t,future:n,navigator:r}=a.useContext(Q),{matches:o}=a.useContext(K),{pathname:i}=$(),s=JSON.stringify(M(o,n.v7_relativeSplatPath)),l=a.useRef(!1);ee((()=>{l.current=!0}));let c=a.useCallback((function(n,o){if(void 0===o&&(o={}),!l.current)return;if("number"===typeof n)return void r.go(n);let a=j(n,JSON.parse(s),i,"path"===o.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:F([t,a.pathname])),(o.replace?r.replace:r.push)(a,o.state,o)}),[t,r,s,i,e]);return c}()}function ne(){let{matches:e}=a.useContext(K),t=e[e.length-1];return t?t.params:{}}function re(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=a.useContext(Q),{matches:o}=a.useContext(K),{pathname:i}=$(),s=JSON.stringify(M(o,r.v7_relativeSplatPath));return a.useMemo((()=>j(e,JSON.parse(s),i,"path"===n)),[e,s,i,n])}function oe(e,t,n,r){Z()||u(!1);let{navigator:i}=a.useContext(Q),{matches:s}=a.useContext(K),l=s[s.length-1],c=l?l.params:{},d=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let p,h=$();if(t){var f;let e="string"===typeof t?m(t):t;"/"===d||(null==(f=e.pathname)?void 0:f.startsWith(d))||u(!1),p=e}else p=h;let g=p.pathname||"/",A=g;if("/"!==d){let e=d.replace(/^\//,"").split("/");A="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=v(e,{pathname:A});let b=ce(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:F([d,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:F([d,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,r);return t&&b?a.createElement(X.Provider,{value:{location:G({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:o.Pop}},b):b}function ae(){let e=function(){var e;let t=a.useContext(J),n=he(de.UseRouteError),r=fe(de.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=H(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,null)}const ie=a.createElement(ae,null);class se extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(K.Provider,{value:this.props.routeContext},a.createElement(J.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function le(e){let{routeContext:t,match:n,children:r}=e,o=a.useContext(q);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),a.createElement(K.Provider,{value:t},r)}function ce(e,t,n,r){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var i;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(i=r)&&i.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,l=null==(o=n)?void 0:o.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||u(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let a=0;a<s.length;a++){let e=s[a];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=a),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,r,o)=>{let i,u=!1,p=null,h=null;var f;n&&(i=l&&r.route.id?l[r.route.id]:void 0,p=r.route.errorElement||ie,c&&(d<0&&0===o?(f="route-fallback",!1||me[f]||(me[f]=!0),u=!0,h=null):d===o&&(u=!0,h=r.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,o+1)),g=()=>{let t;return t=i?p:u?h:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(le,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?a.createElement(se,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:g(),routeC
2ontext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var ue=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ue||{}),de=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(de||{});function pe(e){let t=a.useContext(q);return t||u(!1),t}function he(e){let t=a.useContext(Y);return t||u(!1),t}function fe(e){let t=function(){let e=a.useContext(K);return e||u(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||u(!1),n.route.id}const me={};i.startTransition;function ge(e){let{to:t,replace:n,state:r,relative:o}=e;Z()||u(!1);let{future:i,static:s}=a.useContext(Q),{matches:l}=a.useContext(K),{pathname:c}=$(),d=te(),p=j(t,M(l,i.v7_relativeSplatPath),c,"path"===o),h=JSON.stringify(p);return a.useEffect((()=>d(JSON.parse(h),{replace:n,state:r,relative:o})),[d,h,o,n,r]),null}function Ae(e){u(!1)}function ve(e){let{basename:t="/",children:n=null,location:r,navigationType:i=o.Pop,navigator:s,static:l=!1,future:c}=e;Z()&&u(!1);let d=t.replace(/^\/*/,"/"),p=a.useMemo((()=>({basename:d,navigator:s,static:l,future:G({v7_relativeSplatPath:!1},c)})),[d,c,s,l]);"string"===typeof r&&(r=m(r));let{pathname:h="/",search:f="",hash:g="",state:A=null,key:v="default"}=r,y=a.useMemo((()=>{let e=D(h,d);return null==e?null:{location:{pathname:e,search:f,hash:g,state:A,key:v},navigationType:i}}),[d,h,f,g,A,v,i]);return null==y?null:a.createElement(Q.Provider,{value:p},a.createElement(X.Provider,{children:n,value:y}))}function ye(e){let{children:t,location:n}=e;return oe(be(t),n)}new Promise((()=>{}));a.Component;function be(e,t){void 0===t&&(t=[]);let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,be(e.props.children,o));e.type!==Ae&&u(!1),e.props.index&&e.props.children&&u(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=be(e.props.children,o)),n.push(i)})),n}var xe=n(7950),we=n.t(xe,2);function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ee.apply(this,arguments)}function Ce(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Se(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Te=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(DV){}new Map;const ke=i.startTransition;we.flushSync,i.useId;function _e(e){let{basename:t,children:n,future:r,window:o}=e,i=a.useRef();var s;null==i.current&&(i.current=(void 0===(s={window:o,v5Compat:!0})&&(s={}),g((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return h("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:f(t)}),null,s)));let l=i.current,[c,u]=a.useState({action:l.action,location:l.location}),{v7_startTransition:d}=r||{},p=a.useCallback((e=>{d&&ke?ke((()=>u(e))):u(e)}),[u,d]);return a.useLayoutEffect((()=>l.listen(p)),[l,p]),a.createElement(ve,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:r})}const Ne="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pe=a.forwardRef((function(e,t){let n,{onClick:r,relative:o,reloadDocument:i,replace:s,state:l,target:c,to:d,preventScrollReset:p,viewTransition:h}
2=e,m=Ce(e,Te),{basename:g}=a.useContext(Q),A=!1;if("string"===typeof d&&Ie.test(d)&&(n=d,Ne))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=D(t.pathname,g);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:A=!0}catch(DV){}let v=function(e,t){let{relative:n}=void 0===t?{}:t;Z()||u(!1);let{basename:r,navigator:o}=a.useContext(Q),{hash:i,pathname:s,search:l}=re(e,{relative:n}),c=s;return"/"!==r&&(c="/"===s?r:F([r,s])),o.createHref({pathname:c,search:l,hash:i})}(d,{relative:o}),y=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l}=void 0===t?{}:t,c=te(),u=$(),d=re(e,{relative:s});return a.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:f(u)===f(d);c(e,{replace:n,state:o,preventScrollReset:i,relative:s,viewTransition:l})}}),[u,c,d,r,o,n,e,i,s,l])}(d,{replace:s,state:l,target:c,preventScrollReset:p,relative:o,viewTransition:h});return a.createElement("a",Ee({},m,{href:n||v,onClick:A||i?r:function(e){r&&r(e),e.defaultPrevented||y(e)},ref:t,target:c}))}));var Re,De;function Le(e){let t=a.useRef(Se(e)),n=a.useRef(!1),r=$(),o=a.useMemo((()=>function(e,t){let n=Se(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))}
2)),n}(r.search,n.current?null:t.current)),[r.search]),i=te(),s=a.useCallback(((e,t)=>{const r=Se("function"===typeof e?e(o):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Re||(Re={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(De||(De={}));var Oe=n(8587),Me=n(5787),je=n(8610),Fe=n(3462);const Be=function(e){return"string"===typeof e};const Ue=function(e,t,n){return void 0===e||Be(e)?t:(0,Me.A)({},t,{ownerState:(0,Me.A)({},t.ownerState,n)})};var ze=n(8387);const He=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n};const We=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};const Ve=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=(0,ze.A)(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=(0,Me.A)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=(0,Me.A)({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=He((0,Me.A)({},o,r)),s=We(r),l=We(o),c=t(i),u=(0,ze.A)(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=(0,Me.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=(0,Me.A)({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}};const Ge=function(e,t,n){return"function"===typeof e?e(t,n):e},qe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];const Ye=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=(0,Oe.A)(e,qe),s=a?{}:Ge(r,o),{props:l,internalRef:c}=Ve((0,Me.A)({},i,{externalSlotProps:s})),u=(0,Fe.A)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return Ue(n,(0,Me.A)({},l,{ref:u}),o)};var Qe=n(9303),Xe=n(1782);const Ke=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,s=(0,Qe.A)();a.useEffect((()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}}),[o,r]);const l=(0,Xe.A)(((e,t)=>{null==r||r(e,t)})),c=(0,Xe.A)((e=>{r&&null!=e&&s.start(e,(()=>{l(null,"timeout")}))}));a.useEffect((()=>(o&&c(t),s.clear)),[o,t,c,s]);const u=s.clear,d=a.useCallback((()=>{null!=t&&c(null!=i?i:.5*t)}),[t,i,c]),p=e=>t=>{const n=e.onFocus;null==n||n(t),u()},h=e=>t=>{const n=e.onMouseEnter;null==n||n(t),u()},f=e=>t=>{const n=e.onMouseLeave;null==n||n(t),d()};return a.useEffect((()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[n,o,d,u]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,Me.A)({},He(e),He(t));return(0,Me.A)({role:"presentation"},t,n,{onBlur:(r=n,e=>{const t=r.onBlur;null==t||t(e),d()}),onFocus:p(n),onMouseEnter:h(n),onMouseLeave:f(n)});var r},onClickAway:e=>{null==r||r(e,"clickaway")}}};var Je=n(1668);function Ze(e){var t;return parseInt(a.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}var $e=n(579);function et(e){return e.substring(2).toLowerCase()}function tt(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=a.useRef(!1),l=a.useRef(null),c=a.useRef(!1),u=a.useRef(!1);a.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=(0,Fe.A)(Ze(t),l),p=(0,Xe.A)((e=>{const t=u.current;u.current=!1;const r=(0,Je.A)(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let a;a=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),a||!n&&t||o(e)})),h=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},f={ref:d};return!1!==i&&(f[i]=h(i)),a.useEffect((()=>
2{if(!1!==i){const e=et(i),t=(0,Je.A)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,i]),!1!==r&&(f[r]=h(r)),a.useEffect((()=>{if(!1!==r){const e=et(r),t=(0,Je.A)(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,r]),(0,$e.jsx)(a.Fragment,{children:a.cloneElement(t,f)})}var nt=n(4535),rt=n(8280),ot=n(9369);const at=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=a.useContext(ot.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},it=(0,rt.A)();const st=function(){return at(arguments.length>0&&void 0!==arguments[0]?arguments[0]:it)};var lt=n(5170),ct=n(3375);function ut(){const e=st(lt.A);return e[ct.A]||e}var dt=n(6431),pt=n(6803);function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ht(e,t)}function ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ht(e,t)}const mt=!1,gt=a.createContext(null);var At="unmounted",vt="exited",yt="entering",bt="entered",xt="exiting",wt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=vt,r.appearStatus=yt):o=bt:o=t.unmountOnExit||t.mountOnEnter?At:vt,r.state={status:o},r.nextCallback=null,r}ft(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===At?{status:vt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==yt&&n!==bt&&(t=yt):n!==yt&&n!==bt||(t=xt)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===yt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:xe.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vt&&this.setState({status:At})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[xe.findDOMNode(this),r],a=o[0],i=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||mt?this.safeSetState({status:bt},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:yt},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:bt},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:xe.findDOMNode(this);t&&!mt?(this.props.onExit(r),this.safeSetState({status:xt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:vt},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:vt},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:xe.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===At)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,Oe.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(gt.Provider,{value:null},"function"===typeof n?n(e,r):a.cloneElement(a.Children.only(n),r))},t}(a.Component);function Et(){}wt.contextType=gt,wt.propTypes={},wt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
2:!0,exit:!0,onEnter:Et,onEntering:Et,onEntered:Et,onExit:Et,onExiting:Et,onExited:Et},wt.UNMOUNTED=At,wt.EXITED=vt,wt.ENTERING=yt,wt.ENTERED=bt,wt.EXITING=xt;const Ct=wt,St=e=>e.scrollTop;function Tt(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"===typeof a?a[t.mode]:a,delay:i.transitionDelay}}var kt=n(5849);const _t=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Nt(e){return"scale(".concat(e,", ").concat(e**2,")")}const It={entering:{opacity:1,transform:Nt(1)},entered:{opacity:1,transform:"none"}},Pt="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Rt=a.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:f,timeout:m="auto",TransitionComponent:g=Ct}=e,A=(0,Oe.A)(e,_t),v=(0,Qe.A)(),y=a.useRef(),b=ut(),x=a.useRef(null),w=(0,kt.A)(x,Ze(o),t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),S=E(((e,t)=>{St(e);const{duration:n,delay:r,easing:o}=Tt({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:Pt?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),T=E(c),k=E(h),_=E((e=>{const{duration:t,delay:n,easing:r}=Tt({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:n}),b.transitions.create("transform",{duration:Pt?o:.666*o,delay:Pt?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Nt(.75),d&&d(e)})),N=E(p);return(0,$e.jsx)(g,(0,Me.A)({appear:r,in:s,nodeRef:x,onEnter:S,onEntered:T,onEntering:C,onExit:_,onExited:N,onExiting:k,addEndListener:e=>{"auto"===m&&v.start(y.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},A,{children:(e,t)=>a.cloneElement(o,(0,Me.A)({style:(0,Me.A)({opacity:0,transform:Nt(.75),visibility:"exited"!==e||s?void 0:"hidden"},It[e],f,o.props.style),ref:w},t))}))}));Rt.muiSupportAuto=!0;const Dt=Rt;var Lt=n(7266);const Ot=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var Mt=n(2532),jt=n(2372);function Ft(e){return(0,jt.Ay)("MuiPaper",e)}(0,Mt.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Bt=["className","component","elevation","square","variant"],Ut=(0,nt.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,Me.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.divider)},"elevation"===n.variant&&(0,Me.A)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,Lt.X4)("#fff",Ot(n.elevation)),", ").concat((0,Lt.X4)("#fff",Ot(n.elevation)),")")},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),zt=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=n,l=(0,Oe.A)(n,Bt),c=(0,Me.A)({},n,{component:o,elevation:a,square:i,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,je.A)(a,Ft,o)})(c);return(0,$e.jsx)(Ut,(0,Me.A)({as:o,ownerState:c,className:(0,ze.A)(u.root,r),ref:t},l))}));function Ht(e){return(0,jt.Ay)("MuiSnackbarContent",e)}(0,Mt.A)("MuiSnackbarContent",["root","message","action"]);const Wt=["action","className","message","role"],Vt=(0,nt.Ay)(zt,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?.8:.98,r=(0,Lt.tL)(t.palette.background.default,n);return(0,Me.A)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),Gt=(0,nt.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),qt=(0,nt.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Yt=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:i="alert"}=n,s=(0,Oe.A)(n,Wt),l=n,c=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"],action:["action"],message:["message"]},Ht,t)})(l);return(0,$e.jsxs)(Vt,(0,Me.A)({role:i,square:!0,elevation:6,className:(0,ze.A)(c.root,o),ownerState:l,ref:t},s,{children:[(0,$e.jsx)(Gt,{className:c.message,ownerState:l,children:a}
2),r?(0,$e.jsx)(qt,{className:c.action,ownerState:l,children:r}):null]}))})),Qt=Yt;function Xt(e){return(0,jt.Ay)("MuiSnackbar",e)}(0,Mt.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Kt=["onEnter","onExited"],Jt=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Zt=(0,nt.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["anchorOrigin".concat((0,pt.A)(n.anchorOrigin.vertical)).concat((0,pt.A)(n.anchorOrigin.horizontal))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,Me.A)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),$t=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiSnackbar"}),r=ut(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:f=!1,message:m,open:g,TransitionComponent:A=Dt,transitionDuration:v=o,TransitionProps:{onEnter:y,onExited:b}={}}=n,x=(0,Oe.A)(n.TransitionProps,Kt),w=(0,Oe.A)(n,Jt),E=(0,Me.A)({},n,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:f,TransitionComponent:A,transitionDuration:v}),C=(e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root","anchorOrigin".concat((0,pt.A)(n.vertical)).concat((0,pt.A)(n.horizontal))]};return(0,je.A)(r,Xt,t)})(E),{getRootProps:S,onClickAway:T}=Ke((0,Me.A)({},E)),[k,_]=a.useState(!0),N=Ye({elementType:Zt,getSlotProps:S,externalForwardedProps:w,ownerState:E,additionalProps:{ref:t},className:[C.root,d]});return!g&&k?null:(0,$e.jsx)(tt,(0,Me.A)({onClickAway:T},p,{children:(0,$e.jsx)(Zt,(0,Me.A)({},N,{children:(0,$e.jsx)(A,(0,Me.A)({appear:!0,in:g,timeout:v,direction:"top"===s?"down":"up",onEnter:(e,t)=>{_(!1),y&&y(e,t)},onExited:e=>{_(!0),b&&b(e)}},x,{children:u||(0,$e.jsx)(Qt,(0,Me.A)({message:m,action:i},h))}))}))}))})),en=$t,tn=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],nn=["component","slots","slotProps"],rn=["component"];function on(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,l=(0,Oe.A)(t,tn),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=a,p=(0,Oe.A)(a,nn),h=u[e]||r,f=Ge(d[e],o),m=Ve((0,Me.A)({className:n},l,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f})),{props:{component:g},internalRef:A}=m,v=(0,Oe.A)(m.props,rn),y=(0,Fe.A)(A,null==f?void 0:f.ref,t.ref),b=i?i(v):{},x=(0,Me.A)({},o,b),w="root"===e?g||c:g,E=Ue(h,(0,Me.A)({},"root"===e&&!c&&!u[e]&&s,"root"!==e&&!u[e]&&s,v,w&&{as:w},{ref:y}),x);return Object.keys(b).forEach((e=>{delete E[e]})),[h,E]}function an(e){return(0,jt.Ay)("MuiAlert",e)}const sn=(0,Mt.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var ln=n(3319),cn=n(3574);function un(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function dn(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e}
vendor: 1,588 bytes, line 2
2)).forEach((function(e){n[e.key]=function(e){return t&&(0,a.isValidElement)(e)?t(e):e}(e)})),n}function pn(e,t,n){return null!=n[t]?n[t]:e.props[t]}function hn(e,t,n){var r=dn(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var s=o[i];if((0,a.isValidElement)(s)){var l=i in t,c=i in r,u=t[i],d=(0,a.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,a.isValidElement)(u)&&(o[i]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:pn(s,"exit",e),enter:pn(s,"enter",e)})):o[i]=(0,a.cloneElement)(s,{in:!1}):o[i]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:pn(s,"exit",e),enter:pn(s,"enter",e)})}})),o}var fn=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},mn=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ft(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;
2return{children:t.firstRender?(n=e,r=i,dn(n.children,(function(e){return(0,a.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:pn(e,"appear",n),enter:pn(e,"enter",n),exit:pn(e,"exit",n)})}))):hn(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=dn(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,Me.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,Oe.A)(e,["component","childFactory"]),o=this.state.contextValue,i=fn(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.createElement(gt.Provider,{value:o},i):a.createElement(gt.Provider,{value:o},a.createElement(t,r,i))},t}(a.Component);mn.propTypes={},mn.defaultProps={component:"div",childFactory:function(e){return e}};const gn=mn;var An=n(3290);const vn=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,p]=a.useState(!1),h=(0,ze.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:s,height:s,top:-s/2+i,left:-s/2+o},m=(0,ze.A)(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||p(!0),a.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,$e.jsx)("span",{className:h,style:f,children:(0,$e.jsx)("span",{className:m})})};const yn=(0,Mt.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var bn,xn,wn,En;const Cn=["center","classes","className"];let Sn,Tn,kn,_n;const Nn=(0,An.i7)(Sn||(Sn=bn||(bn=un(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),In=(0,An.i7)(Tn||(Tn=xn||(xn=un(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),Pn=(0,An.i7)(kn||(kn=wn||(wn=un(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),Rn=(0,nt.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Dn=(0,nt.Ay)(vn,{name:"MuiTouchRipple",slot:"Ripple"})(_n||(_n=En||(En=un(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),yn.rippleVisible,Nn,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),yn.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),yn.child,yn.childLeaving,In,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),yn.childPulsate,Pn,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),Ln=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,s=(0,Oe.A)(n,Cn),[l,c]=a.useState([]),u=a.useRef(0),d=a.useRef(null);a.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=a.useRef(!1),h=(0,Qe.A)(),f=a.useRef(null),m=a.useRef(null),g=a.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;c((e=>[...e,(0,$e.jsx)(Dn,{classes:{ripple:(0,ze.A)(o.ripple,yn.ripple),rippleVisible:(0,ze.A)(o.rippleVisible,yn.rippleVisible),ripplePulsate:(0,ze.A)(o.ripplePulsate,yn.ripplePulsate),child:(0,ze.A)(o.child,yn.child),childLeaving:(0,ze.A)(o.childLeaving,yn.childLeaving),childPulsate:(0,ze.A)(o.childPulsate,yn.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)])),u.current+=1,d.current=i}),[o]),A=a.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=i?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);
vendor: 4,240 bytes, line 2
2else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g,h]),v=a.useCallback((()=>{A({},{pulsate:!0})}),[A]),y=a.useCallback(((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void h.start(0,(()=>{y(e,t)}));f.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[h]);return a.useImperativeHandle(t,(()=>({pulsate:v,start:A,stop:y})),[v,A,y]),(0,$e.jsx)(Rn,(0,Me.A)({className:(0,ze.A)(yn.root,o.root,i),ref:m},s,{children:(0,$e.jsx)(gn,{component:null,exit:!0,children:l})}))})),On=Ln;function Mn(e){return(0,jt.Ay)("MuiButtonBase",e)}const jn=(0,Mt.A)("MuiButtonBase",["root","disabled","focusVisible"]),Fn=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Bn=(0,nt.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(jn.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Un=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:A,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:E,onMouseUp:C,onTouchEnd:S,onTouchMove:T,onTouchStart:k,tabIndex:_=0,TouchRippleProps:N,touchRippleRef:I,type:P}=n,R=(0,Oe.A)(n,Fn),D=a.useRef(null),L=a.useRef(null),O=(0,kt.A)(L,I),{isFocusVisibleRef:M,onFocus:j,onBlur:F,ref:B}=(0,cn.A)(),[U,z]=a.useState(!1);c&&U&&z(!1),a.useImperativeHandle(r,(()=>({focusVisible:()=>{z(!0),D.current.focus()}})),[]);const[H,W]=a.useState(!1);a.useEffect((()=>{W(!0)}),[]);const V=H&&!u&&!c;function G(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return(0,ln.A)((r=>{t&&t(r);return!n&&L.current&&L.current[e](r),!0}))}a.useEffect((()=>{U&&p&&!u&&H&&L.current.pulsate()}),[u,p,U,H]);const q=G("start",w),Y=G("stop",g),Q=G("stop",A),X=G("stop",C),K=G("stop",(e=>{U&&e.preventDefault(),E&&E(e)})),J=G("start",k),Z=G("stop",S),$=G("stop",T),ee=G("stop",(e=>{F(e),!1===M.current&&z(!1),f&&f(e)}),!1),te=(0,ln.A)((e=>{D.current||(D.current=e.currentTarget),j(e),!0===M.current&&(z(!0),y&&y(e)),v&&v(e)})),ne=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=a.useRef(!1),oe=(0,ln.A)((e=>{p&&!re.current&&U&&L.current&&" "===e.key&&(re.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),ae=(0,ln.A)((e=>{p&&" "===e.key&&L.current&&U&&!e.defaultPrevented&&(re.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(R.href||R.to)&&(ie=h);const se={};"button"===ie?(se.type=void 0===P?"button":P,se.disabled=c):(R.href||R.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=(0,kt.A)(t,B,D);const ce=(0,Me.A)({},n,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:_,focu
2sVisible:U}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a={root:["root",t&&"disabled",n&&"focusVisible"]},i=(0,je.A)(a,Mn,o);return n&&r&&(i.root+=" ".concat(r)),i})(ce);return(0,$e.jsxs)(Bn,(0,Me.A)({as:ie,className:(0,ze.A)(ue.root,s),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:q,onMouseLeave:K,onMouseUp:X,onDragLeave:Q,onTouchEnd:Z,onTouchMove:$,onTouchStart:J,ref:le,tabIndex:c?-1:_,type:P},se,R,{children:[i,V?(0,$e.jsx)(On,(0,Me.A)({ref:O,center:o},N)):null]}))})),zn=Un;function Hn(e){return(0,jt.Ay)("MuiIconButton",e)}const Wn=(0,Mt.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Vn=["edge","children","className","color","disabled","disableFocusRipple","size"],Gn=(0,nt.Ay)(zn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,pt.A)(n.color))],n.edge&&t["edge".concat((0,pt.A)(n.edge))],t["size".concat((0,pt.A)(n.size))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const o=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,Me.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,Me.A)({color:null==o?void 0:o.main},!n.disableRipple&&{"&:hover":(0,Me.A)({},o&&{backgroundColor:t.vars?"rgba(".concat(o.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.X4)(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(Wn.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),qn=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=(0,Oe.A)(n,Vn),d=(0,Me.A)({},n,{edge:r,color:i,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled","default"!==r&&"color".concat((0,pt.A)(r)),o&&"edge".concat((0,pt.A)(o)),"size".concat((0,pt.A)(a))]};return(0,je.A)(i,Hn,t)})(d);return(0,$e.jsx)(Gn,(0,Me.A)({className:(0,ze.A)(p.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))})),Yn=qn;var Qn=n(9662);const Xn=(0,Qn.A)((0,$e.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Kn=(0,Qn.A)((0,$e.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Jn=(0,Qn.A)((0,$e.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Zn=(0,Qn.A)((0,$e.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),$n=(0,Qn.A)((0,$e.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),er=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","
2slots","variant"],tr=(0,nt.Ay)(zt,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,pt.A)(n.color||n.severity))]]}})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?Lt.e$:Lt.a,r="light"===t.palette.mode?Lt.a:Lt.e$;return(0,Me.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[o]=e;return{props:{colorSeverity:o,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:n(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(o,"StandardBg")]:r(t.palette[o].light,.9),["& .".concat(sn.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert["".concat(r,"Color")]:n(t.palette[r].light,.6),border:"1px solid ".concat((t.vars||t).palette[r].light),["& .".concat(sn.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(r,"IconColor")]}:{color:t.palette[r].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.dark})).map((e=>{let[n]=e;return{props:{colorSeverity:n,variant:"filled"},style:(0,Me.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(n,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(n,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)})}}))]})})),nr=(0,nt.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),rr=(0,nt.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),or=(0,nt.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ar={success:(0,$e.jsx)(Xn,{fontSize:"inherit"}),warning:(0,$e.jsx)(Kn,{fontSize:"inherit"}),error:(0,$e.jsx)(Jn,{fontSize:"inherit"}),info:(0,$e.jsx)(Zn,{fontSize:"inherit"})},ir=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiAlert"}),{action:r,children:o,className:a,closeText:i="Close",color:s,components:l={},componentsProps:c={},icon:u,iconMapping:d=ar,onClose:p,role:h="alert",severity:f="success",slotProps:m={},slots:g={},variant:A="standard"}=n,v=(0,Oe.A)(n,er),y=(0,Me.A)({},n,{color:s,severity:f,variant:A,colorSeverity:s||f}),b=(e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root","color".concat((0,pt.A)(n||r)),"".concat(t).concat((0,pt.A)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,je.A)(a,an,o)})(y),x={slots:(0,Me.A)({closeButton:l.CloseButton,closeIcon:l.CloseIcon},g),slotProps:(0,Me.A)({},c,m)},[w,E]=on("closeButton",{elementType:Yn,externalForwardedProps:x,ownerState:y}),[C,S]=on("closeIcon",{elementType:$n,externalForwardedProps:x,ownerState:y});return(0,$e.jsxs)(tr,(0,Me.A)({role:h,elevation:0,ownerState:y,className:(0,ze.A)(b.root,a),ref:t},v,{children:[!1!==u?(0,$e.jsx)(nr,{ownerState:y,className:b.icon,children:u||d[f]||ar[f]}):null,(0,$e.jsx)(rr,{ownerState:y,className:b.message,children:o}),null!=r?(0,$e.jsx)(or,{ownerState:y,className:b.action,children:r}):null,null==r&&p?(0,$e.jsx)(or,{ownerState:y,className:b.action,children:(0,$e.jsx)(w,(0,Me.A)({size:"small","aria-label":i,title:i,color:"inherit",onClick:p},E,{children:(0,$e.jsx)(C,(0,Me.A)({fontSize:"small"},S))}))}):null]}))})),sr=ir,lr=(0,a.createContext)(),cr=e=>{let{children:t}=e;const[n,r]=(0,a.useState)({selectedSex:"",fromDate:"",toDate:"",age:"",abstracts:"",studyDesigns:[]});return(0,$e.jsx)(lr.Provider,{value:{filters:n,setFilters:r},children:t})};var ur=n(3174),dr=n(8812),pr=n(8698);const hr=["className","component"];var fr=n(9386),mr=n(7344);
2const gr=(0,Mt.A)("MuiBox",["root"]),Ar=(0,mr.A)(),vr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=(0,ur.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(dr.A);return a.forwardRef((function(e,a){const s=st(n),l=(0,pr.A)(e),{className:c,component:u="div"}=l,d=(0,Oe.A)(l,hr);return(0,$e.jsx)(i,(0,Me.A)({as:u,ref:a,className:(0,ze.A)(c,o?o(r):r),theme:t&&s[t]||s},d))}))}({themeId:ct.A,defaultTheme:Ar,defaultClassName:gr.root,generateClassName:fr.A.generate}),yr=vr;function br(e){return(0,jt.Ay)("MuiTypography",e)}(0,Mt.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const xr=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wr=(0,nt.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,pt.A)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),Er={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Cr={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sr=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTypography"}),r=(e=>Cr[e]||e)(n.color),o=(0,pr.A)((0,Me.A)({},n,{color:r})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Er}=o,h=(0,Oe.A)(o,xr),f=(0,Me.A)({},o,{align:a,color:r,className:i,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Er[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,"inherit"!==e.align&&"align".concat((0,pt.A)(t)),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,je.A)(s,br,i)})(f);return(0,$e.jsx)(wr,(0,Me.A)({as:m,ref:t,ownerState:f,className:(0,ze.A)(g.root,i)},h))})),Tr=Sr;function kr(e){return(0,jt.Ay)("MuiDivider",e)}const _r=(0,Mt.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Nr=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ir=(0,nt.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,Lt.X4)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,Me.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}})}),(e=>{let{ownerState:t}=e;return(0,Me.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),Pr=(0,nt.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),Rr=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiDivider"}
2),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,h=(0,Oe.A)(n,Nr),f=(0,Me.A)({},n,{absolute:r,component:i,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]};return(0,je.A)(c,kr,r)})(f);return(0,$e.jsx)(Ir,(0,Me.A)({as:i,className:(0,ze.A)(m.root,a),role:u,ref:t,ownerState:f},h,{children:o?(0,$e.jsx)(Pr,{className:m.wrapper,ownerState:f,children:o}):null}))}));Rr.muiSkipListHighlight=!0;const Dr=Rr;var Lr=n(9172);const Or=["ownerState"],Mr=["variants"],jr=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Fr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Br=(0,rt.A)(),Ur=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function zr(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function Hr(e){return e?(t,n)=>n[e]:null}function Wr(e,t){let{ownerState:n}=t,r=(0,Oe.A)(t,Or);const o="function"===typeof e?e((0,Me.A)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Wr(e,(0,Me.A)({ownerState:n},r))));if(o&&"object"===typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Oe.A)(o,Mr);return e.forEach((e=>{let o=!0;"function"===typeof e.props?o=e.props((0,Me.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,Me.A)({ownerState:n},r,n)):e.style))})),t}return o}const Vr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=Br,rootShouldForwardProp:r=Fr,slotShouldForwardProp:o=Fr}=e,a=e=>(0,dr.A)((0,Me.A)({},e,{theme:zr((0,Me.A)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,ur.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Hr(Ur(l))}=i,p=(0,Oe.A)(i,jr),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let m=Fr;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,ur.default)(e,(0,Me.A)({shouldForwardProp:m,label:undefined},p)),A=e=>"function"===typeof e&&e.__emotion_real!==e||(0,Lr.Q)(e)?r=>Wr(e,(0,Me.A)({},r,{theme:zr({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=function(r){let o=A(r);for(var i=arguments.length,l=new Array(i>1?i-1:0),c=1;c<i;c++)l[c-1]=arguments[c];const u=l?l.map(A):[];s&&d&&u.push((e=>{const r=zr((0,Me.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,a={};return Object.entries(o).forEach((t=>{let[n,o]=t;a[n]=Wr(o,(0,Me.A)({},e,{theme:r}))})),d(e,a)})),s&&!h&&u.push((e=>{var r;const o=zr((0,Me.A)({},e,{defaultTheme:n,themeId:t}));return Wr({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,Me.A)({},e,{theme:o}))})),f||u.push(a);const p=u.length-l.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const m=g(o,...u);return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(v.withConfig=g.withConfig),v}}(),Gr=Vr;var qr=n(3030);function Yr(e){let{props:t,name:n,defaultTheme:r,themeId:o}=e,a=st(r);o&&(a=a[o]||a);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,qr.A)(t.components[n].defaultProps,r):r}({theme:a,name:n,props:t});return i}var Qr=n(9751),Xr=n(8604);const Kr=["component","direction","spacing","divider","children","className","useFlexGap"],Jr=(0,rt.A)(),Zr=Gr("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function $r(e){return Yr({props:e,name:"MuiStack",defaultTheme:Jr})}
2function eo(e,t){const n=a.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(a.cloneElement(t,{key:"separator-".concat(o)})),e)),[])}const to=e=>{let{ownerState:t,theme:n}=e,r=(0,Me.A)({display:"flex",flexDirection:"column"},(0,Qr.NI)({theme:n},(0,Qr.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,Xr.LX)(n),o=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),a=(0,Qr.kW)({values:t.direction,base:o}),i=(0,Qr.kW)({values:t.spacing,base:o});"object"===typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));const s=(n,r)=>{return t.useFlexGap?{gap:(0,Xr._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((o=r?a[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]))]:(0,Xr._W)(e,n)}};var o};r=(0,Lr.A)(r,(0,Qr.NI)({theme:n},i,s))}return r=(0,Qr.iZ)(n.breakpoints,r),r};const no=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Zr,useThemeProps:n=$r,componentName:r="MuiStack"}=e,o=t(to),i=a.forwardRef((function(e,t){const a=n(e),i=(0,pr.A)(a),{component:s="div",direction:l="column",spacing:c=0,divider:u,children:d,className:p,useFlexGap:h=!1}=i,f=(0,Oe.A)(i,Kr),m={direction:l,spacing:c,useFlexGap:h},g=(0,je.A)({root:["root"]},(e=>(0,jt.Ay)(r,e)),{});return(0,$e.jsx)(o,(0,Me.A)({as:s,ownerState:m,ref:t,className:(0,ze.A)(g.root,p)},f,{children:u?eo(d,u):d}))}));return i}({createStyledComponent:(0,nt.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,dt.b)({props:e,name:"MuiStack"})}),ro=no;var oo=n(5844),ao=n(7868),io=n(3940),so=n(4440),lo=n(3468);const co=["onChange","maxRows","minRows","style","value"];function uo(e){return parseInt(e,10)||0}const po={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const ho=a.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:s}=e,l=(0,Oe.A)(e,co),{current:c}=a.useRef(null!=s),u=a.useRef(null),d=(0,Fe.A)(t,u),p=a.useRef(null),h=a.useRef(null),f=a.useCallback((()=>{const t=u.current,n=(0,io.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=h.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,s=uo(n.paddingBottom)+uo(n.paddingTop),l=uo(n.borderBottomWidth)+uo(n.borderTopWidth),c=a.scrollHeight;a.value="x";const d=a.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===i?s+l:0),overflowing:Math.abs(p-c)<=1}}),[r,o,e.placeholder]),m=a.useCallback((()=>{const e=f();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=u.current;p.current!==n&&(p.current=n,r.style.height="".concat(n,"px")),r.style.overflow=e.overflowing?"hidden":""}),[f]);(0,so.A)((()=>{const e=()=>{m()};let t;const n=(0,lo.A)(e),r=u.current,o=(0,io.A)(r);let a;return o.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(a=new ResizeObserver(e),a.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",n),a&&a.disconnect()}}),[f,m]),(0,so.A)((()=>{m()}));return(0,$e.jsxs)(a.Fragment,{children:[(0,$e.jsx)("textarea",(0,Me.A)({value:s,onChange:e=>{c||m(),n&&n(e)},ref:d,rows:o,style:i},l)),(0,$e.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,Me.A)({},po,i,{paddingTop:0,paddingBottom:0})})]})})),fo=ho;function mo(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}const go=a.createContext(void 0);function Ao(){return a.useContext(go)}var vo=n(5013),yo=n(869);const bo=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const o=st(r),a="function"===typeof t?t(n&&o[n]||o):t;return(0,$e.jsx)(yo.A,{styles:a})};const xo=function(e){return(0,$e.jsx)(bo,(0,Me.A)({},e,{defaultTheme:lt.A,themeId:ct.A}))};function wo(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Eo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(wo(e.value)&&""!==e.value||t&&wo(e.defaultValue)&&""!==e.defaultValue)}function Co(e){return(0,jt.Ay)("MuiInputBase",e)}const So=(0,Mt.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),To=["aria-describedby","autoComplete","autoF
2ocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ko=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,pt.A)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_o=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},No=(0,nt.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ko})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(So.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,Me.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),Io=(0,nt.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_o})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,o=(0,Me.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,Me.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(So.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&.".concat(So.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),Po=(0,$e.jsx)(xo,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ro=a.forwardRef((function(e,t){var n;const r=(0,dt.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:f,fullWidth:m=!1,id:g,inputComponent:A="input",inputProps:v={},inputRef:y,maxRows:b,minRows:x,multiline:w=!1,name:E,onBlur:C,onChange:S,onClick:T,onFocus:k,onKeyDown:_,onKeyUp:N,placeholder:I,readOnly:P,renderSuffix:R,rows:D,slotProps:L={},slots:O={},startAdornment:M,type:j="text",value:F}=r,B=(0,Oe.A)(r,To),U=null!=v.value?v.value:F,{current:z}=a.useRef(null!=U),H=a.useRef(),W=a.useCallback((e=>{0}),[]),V=(0,kt.A)(H,y,v.ref,W),[G,q]=a.useState(!1),Y=Ao();const Q=mo({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=Y?Y.focused:G,a.useEffect((()=>{!Y&&p&&G&&(q(!1),C&&C())}),[Y,p,G,C]);const X=Y&&Y.onFilled,K=Y&&Y.onEmpty,J=a.useCallback((e=>{Eo(e)?X&&X():K&&K()}),[X,K]);(0,vo.A)((()=>{z&&J({value:U})}),[U,J,z]);a.useEffect((()=>{J(H.current)}),[]);let Z=A,$=v;w&&"input"===Z&&($=D?(0,Me.A)({type:void 0,minRows:D,maxRows:D},$):(0,Me.A)({type:void 0,maxRows:b,minRows:x},$),Z=fo);a.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(M))}),[Y,M]);const ee=(0,Me.A)({},r,{color:Q.color||"primary",disabled:Q.disabled,endAdornment:f,error:Q.error,focused:Q.focused,formControl:Y,fullWidth:m,hiddenLabel:Q.hiddenLabel,multiline:w,size:Q.size,startAdornment:M,type:j}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:f}=e,m={root:["root","color".concat((0,pt.A)(n)),r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&"medium"!==p&&"size".concat((0,pt.A)(p)),u&&"multiline",h&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return(0,je.A)(m,Co,t)})(ee),ne=O.root||c.Root||No,re=L.root||u.root||{},oe=O.input||c.Input||Io;return $=(0,Me.A)({},$,null!=(n=L.input)?n:u.input),(0,$e.jsxs)(a.Fragment,{children:[!h&&Po,(0,$e.jsxs)(ne,(0,Me.A)({},re,!Be(ne)&&{ownerState:(0,Me.A)({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),T&&T(e)}},B,{className:(0,ze.A)(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[M,(0,$e.jsx)(go.Provider,{value:null,children:(0,$e.jsx)(oe,(0,Me.A)({ownerState:ee,"aria-invalid":Q.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:Q.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:E,placeholder:I,readOnly:P,required:Q.required,rows:D,value:U,onKeyDown:_,onKeyUp:N,type:j},$,!Be(oe)&&{as:Z,ownerState:(0,Me.A)({},ee,$.ownerState)},{ref:V,className:(0,ze.A)(te.input,$.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):q(!1)},onChange:function(e){if(!z){const t=e.target||H.current;if(null==t)throw new Error((0,ao.A)(1));J({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];v.onChange&&v.onChange(e,...n),S&&S(e,...n)},onFocus:e=>{Q.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):q(!0))}}))}),f,R?R((0,Me.A)({},Q,{startAdornment:M})):null]}))]})})),Do=Ro;var Lo=n(1475);function Oo(e){return(0,jt.Ay)("MuiInput",e)}const Mo=(0,Me.A)({},So,(0,Mt.A)("MuiInput",["root","underline","input"])),jo=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","
2slots","type"],Fo=(0,nt.Ay)(No,{shouldForwardProp:e=>(0,Lo.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ko(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,Me.A)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(Mo.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(Mo.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(Mo.disabled,", .").concat(Mo.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}},["&.".concat(Mo.disabled,":before")]:{borderBottomStyle:"dotted"}})})),Bo=(0,nt.Ay)(Io,{name:"MuiInput",slot:"Input",overridesResolver:_o})({}),Uo=a.forwardRef((function(e,t){var n,r,o,a;const i=(0,dt.b)({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:f={},type:m="text"}=i,g=(0,Oe.A)(i,jo),A=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,je.A)(r,Oo,t);return(0,Me.A)({},t,o)})(i),v={root:{ownerState:{disableUnderline:s}}},y=(null!=h?h:c)?(0,Lr.A)(null!=h?h:c,v):v,b=null!=(n=null!=(r=f.root)?r:l.Root)?n:Fo,x=null!=(o=null!=(a=f.input)?a:l.Input)?o:Bo;return(0,$e.jsx)(Do,(0,Me.A)({slots:{root:b,input:x},slotProps:y,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:A}))}));Uo.muiName="Input";const zo=Uo;function Ho(e){return(0,jt.Ay)("MuiFilledInput",e)}const Wo=(0,Me.A)({},So,(0,Mt.A)("MuiFilledInput",["root","underline","input"])),Vo=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Go=(0,nt.Ay)(No,{shouldForwardProp:e=>(0,Lo.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ko(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const o="light"===t.palette.mode,a=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Me.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i}},["&.".concat(Wo.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i},["&.".concat(Wo.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(Wo.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(Wo.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroun
2dChannel," / ").concat(t.vars.opacity.inputUnderline,")"):a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(Wo.disabled,", .").concat(Wo.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(Wo.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,Me.A)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),qo=(0,nt.Ay)(Io,{name:"MuiFilledInput",slot:"Input",overridesResolver:_o})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),Yo=a.forwardRef((function(e,t){var n,r,o,a;const i=(0,dt.b)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:f="text"}=i,m=(0,Oe.A)(i,Vo),g=(0,Me.A)({},i,{fullWidth:c,inputComponent:u,multiline:d,type:f}),A=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,je.A)(r,Ho,t);return(0,Me.A)({},t,o)})(i),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?(0,Lr.A)(v,null!=p?p:l):v,b=null!=(n=null!=(r=h.root)?r:s.Root)?n:Go,x=null!=(o=null!=(a=h.input)?a:s.Input)?o:qo;return(0,$e.jsx)(Do,(0,Me.A)({slots:{root:b,input:x},componentsProps:y,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:f},m,{classes:A}))}));Yo.muiName="Input";const Qo=Yo;var Xo;const Ko=["children","classes","className","label","notched"],Jo=(0,nt.Ay)("fieldset",{shouldForwardProp:Lo.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Zo=(0,nt.Ay)("legend",{shouldForwardProp:Lo.A})((e=>{let{ownerState:t,theme:n}=e;return(0,Me.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,Me.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));function $o(e){return(0,jt.Ay)("MuiOutlinedInput",e)}const ea=(0,Me.A)({},So,(0,Mt.A)("MuiOutlinedInput",["root","notchedOutline","input"])),ta=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],na=(0,nt.Ay)(No,{shouldForwardProp:e=>(0,Lo.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:ko})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Me.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(ea.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(ea.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroun
2dChannel," / 0.23)"):r}},["&.".concat(ea.focused," .").concat(ea.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat(ea.error," .").concat(ea.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(ea.disabled," .").concat(ea.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,Me.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),ra=(0,nt.Ay)((function(e){const{className:t,label:n,notched:r}=e,o=(0,Oe.A)(e,Ko),a=null!=n&&""!==n,i=(0,Me.A)({},e,{notched:r,withLabel:a});return(0,$e.jsx)(Jo,(0,Me.A)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,$e.jsx)(Zo,{ownerState:i,children:a?(0,$e.jsx)("span",{children:n}):Xo||(Xo=(0,$e.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),oa=(0,nt.Ay)(Io,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_o})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),aa=a.forwardRef((function(e,t){var n,r,o,i,s;const l=(0,dt.b)({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:f,slots:m={},type:g="text"}=l,A=(0,Oe.A)(l,ta),v=(e=>{const{classes:t}=e,n=(0,je.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$o,t);return(0,Me.A)({},t,n)})(l),y=Ao(),b=mo({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=(0,Me.A)({},l,{color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:y,fullWidth:u,hiddenLabel:b.hiddenLabel,multiline:h,size:b.size,type:g}),w=null!=(n=null!=(r=m.root)?r:c.Root)?n:na,E=null!=(o=null!=(i=m.input)?i:c.Input)?o:oa;return(0,$e.jsx)(Do,(0,Me.A)({slots:{root:w,input:E},renderSuffix:e=>(0,$e.jsx)(ra,{ownerState:x,className:v.notchedOutline,label:null!=p&&""!==p&&b.required?s||(s=(0,$e.jsxs)(a.Fragment,{children:[p,"\u2009","*"]})):p,notched:"undefined"!==typeof f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:d,multiline:h,ref:t,type:g},A,{classes:(0,Me.A)({},v,{notchedOutline:null})}))}));aa.muiName="Input";const ia=aa;function sa(e){return(0,jt.Ay)("MuiFormLabel",e)}const la=(0,Mt.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ca=["children","className","color","component","disabled","error","filled","focused","required"],ua=(0,nt.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,Me.A)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(la.focused)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(la.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(la.error)]:{color:(t.vars||t).palette.error.main}})})),da=(0,nt.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(la.error)]:{color:(t.vars||t).palette.error.main}}})),pa=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:a="label"}=n,i=(0,Oe.A)(n,ca),s=mo({props:n,muiFormControl:Ao(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Me.A)({},n,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root","color".concat((0,pt.A)(n)),o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,je.A)(l,sa,t)})(l);return(0,$e.jsxs)(ua,(0,Me.A)({as:a,ownerState:l,className:(0,ze.A)(c.root,o),ref:t},i,{children:[r,s.required&&(0,$e.jsxs)(da,{ownerState:l,"aria-hidden":!0,
2className:c.asterisk,children:["\u2009","*"]})]}))})),ha=pa;function fa(e){return(0,jt.Ay)("MuiInputLabel",e)}(0,Mt.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ma=["disableAnimation","margin","shrink","variant","className"],ga=(0,nt.Ay)(ha,{shouldForwardProp:e=>(0,Lo.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(la.asterisk)]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,Me.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,Me.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,Me.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),Aa=a.forwardRef((function(e,t){const n=(0,dt.b)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o,className:a}=n,i=(0,Oe.A)(n,ma),s=Ao();let l=o;"undefined"===typeof l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=mo({props:n,muiFormControl:s,states:["size","variant","required","focused"]}),u=(0,Me.A)({},n,{disableAnimation:r,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&"normal"!==r&&"size".concat((0,pt.A)(r)),i],asterisk:[s&&"asterisk"]},c=(0,je.A)(l,fa,t);return(0,Me.A)({},t,c)})(u);return(0,$e.jsx)(ga,(0,Me.A)({"data-shrink":l,ownerState:u,ref:t,className:(0,ze.A)(d.root,a)},i,{classes:d}))}));var va=n(7328);function ya(e){return(0,jt.Ay)("MuiFormControl",e)}(0,Mt.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ba=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xa=(0,nt.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,Me.A)({},t.root,t["margin".concat((0,pt.A)(n.margin))],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,Me.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),wa=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:f=!1,size:m="medium",variant:g="outlined"}=n,A=(0,Oe.A)(n,ba),v=(0,Me.A)({},n,{color:i,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:f,size:m,variant:g}),y=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&"margin".concat((0,pt.A)(n)),r&&"fullWidth"]};return(0,je.A)(o,ya,t)}
2)(v),[b,x]=a.useState((()=>{let e=!1;return r&&a.Children.forEach(r,(t=>{if(!(0,va.A)(t,["Input","Select"]))return;const n=(0,va.A)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[w,E]=a.useState((()=>{let e=!1;return r&&a.Children.forEach(r,(t=>{(0,va.A)(t,["Input","Select"])&&(Eo(t.props,!0)||Eo(t.props.inputProps,!0))&&(e=!0)})),e})),[C,S]=a.useState(!1);l&&C&&S(!1);const T=void 0===u||l?C:u;let k;const _=a.useMemo((()=>({adornedStart:b,setAdornedStart:x,color:i,disabled:l,error:c,filled:w,focused:T,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{S(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{S(!0)},registerEffect:k,required:f,variant:g})),[b,i,l,c,w,T,d,p,k,f,m,g]);return(0,$e.jsx)(go.Provider,{value:_,children:(0,$e.jsx)(xa,(0,Me.A)({as:s,ownerState:v,className:(0,ze.A)(y.root,o),ref:t},A,{children:r}))})})),Ea=wa;function Ca(e){return(0,jt.Ay)("MuiFormHelperText",e)}const Sa=(0,Mt.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ta;const ka=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_a=(0,nt.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t["size".concat((0,pt.A)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(Sa.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(Sa.error)]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),Na=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p"}=n,i=(0,Oe.A)(n,ka),s=mo({props:n,muiFormControl:Ao(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Me.A)({},n,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&"size".concat((0,pt.A)(r)),n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return(0,je.A)(c,Ca,t)})(l);return(0,$e.jsx)(_a,(0,Me.A)({as:a,ownerState:l,className:(0,ze.A)(c.root,o),ref:t},i,{children:" "===r?Ta||(Ta=(0,$e.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))})),Ia=Na;var Pa=n(2427);const Ra=a.createContext();const Da=()=>{const e=a.useContext(Ra);return null!=e&&e};const La=a.createContext({});function Oa(e){return(0,jt.Ay)("MuiList",e)}(0,Mt.A)("MuiList",["root","padding","dense","subheader"]);const Ma=["children","className","component","dense","disablePadding","subheader"],ja=(0,nt.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),Fa=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,u=(0,Oe.A)(n,Ma),d=a.useMemo((()=>({dense:s})),[s]),p=(0,Me.A)({},n,{component:i,dense:s,disablePadding:l}),h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,a={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,je.A)(a,Oa,t)})(p);return(0,$e.jsx)(La.Provider,{value:d,children:(0,$e.jsxs)(ja,(0,Me.A)({as:i,className:(0,ze.A)(h.root,o),ref:t,ownerState:p},u,{children:[c,r]}))})})),Ba=Fa;function Ua(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const za=Ua,Ha=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Wa(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}
2function Va(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ga(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function qa(e,t,n,r,o,a){let i=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Ga(s,a)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Ya=a.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=(0,Oe.A)(e,Ha),h=a.useRef(null),f=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,vo.A)((()=>{r&&h.current.focus()}),[r]),a.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:n}=t;const r=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&r){const t="".concat(za((0,Pa.A)(e)),"px");h.current.style["rtl"===n?"paddingLeft":"paddingRight"]=t,h.current.style.width="calc(100% + ".concat(t,")")}return h.current}})),[]);const m=(0,kt.A)(h,t);let g=-1;a.Children.forEach(i,((e,t)=>{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))}));const A=a.Children.map(i,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),a.cloneElement(e,t)}return e}));return(0,$e.jsx)(Ba,(0,Me.A)({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=h.current,n=e.key,r=(0,Pa.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),qa(t,r,c,l,Wa);else if("ArrowUp"===n)e.preventDefault(),qa(t,r,c,l,Va);else if("Home"===n)e.preventDefault(),qa(t,null,c,l,Wa);else if("End"===n)e.preventDefault(),qa(t,null,c,l,Va);else if(1===n.length){const o=f.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&Ga(r,o);o.previousKeyMatched&&(s||qa(t,r,!1,l,Wa,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},p,{children:A}))})),Qa=Ya;var Xa=n(950),Ka=n(6078);const Ja=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Za(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ja)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t));let n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function $a(){return!0}const ei=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Za,isEnabled:s=$a,open:l}=e,c=a.useRef(!1),u=a.useRef(null),d=a.useRef(null),p=a.useRef(null),h=a.useRef(null),f=a.useRef(!1),m=a.useRef(null),g=(0,Fe.A)(Ze(t),m),A=a.useRef(null);a.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),a.useEffect((()=>{if(!l||!m.current)return;const e=(0,Je.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),a.useEffect((()=>
vendor: 6,377 bytes, line 2
2{if(!l||!m.current)return;const e=(0,Je.A)(m.current),t=t=>{A.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=i(m.current)),n.length>0){var o,a;const e=Boolean((null==(o=A.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=A.current)?void 0:a.key)),t=n[0],r=n[n.length-1];"string"!==typeof t&&"string"!==typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,s,l,i]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return(0,$e.jsxs)(a.Fragment,{children:[(0,$e.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,$e.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})};var ti=n(6564);const ni=a.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,s]=a.useState(null),l=(0,Fe.A)(a.isValidElement(n)?Ze(n):null,t);if((0,so.A)((()=>{o||s(function(e){return"function"===typeof e?e():e}(r)||document.body)}),[r,o]),(0,so.A)((()=>{if(i&&!o)return(0,ti.A)(t,i),()=>{(0,ti.A)(t,null)}}),[t,i,o]),o){if(a.isValidElement(n)){const e={ref:l};return a.cloneElement(n,e)}return(0,$e.jsx)(a.Fragment,{children:n})}return(0,$e.jsx)(a.Fragment,{children:i?xe.createPortal(n,i):i})}));const ri=ni,oi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ai={entering:{opacity:1},entered:{opacity:1}},ii=a.forwardRef((function(e,t){const n=ut(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:f,onExiting:m,style:g,timeout:A=r,TransitionComponent:v=Ct}=e,y=(0,Oe.A)(e,oi),b=a.useRef(null),x=(0,kt.A)(b,Ze(s),t),w=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},E=w(p),C=w(((e,t)=>{St(e);const r=Tt({style:g,timeout:A,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),S=w(d),T=w(m),k=w((e=>{const t=Tt({style:g,timeout:A,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)})),_=w(f);return(0,$e.jsx)(v,(0,Me.A)({appear:i,in:c,nodeRef:b,onEnter:C,onEntered:S,onEntering:E,onExit:k,onExited:_,onExiting:T,addEndListener:e=>{o&&o(b.current,e)},timeout:A},y,{children:(e,t)=>a.cloneElement(s,(0,Me.A)({style:(0,Me.A)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},ai[e],g,s.props.style),ref:x},t))}))})),si=ii;function li(e){return(0,jt.Ay)("MuiBackdrop",e)}(0,Mt.A)("MuiBackdrop",["root","invisible"]);const ci=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ui=(0,nt.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),di=a.forwardRef((function(e,t){var n,r,o;const a=(0,dt.b)({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=si,transitionDuration:g}=a,A=(0,Oe.A)(a,ci),v=(0,Me.A)({},a,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,je.A)(r,li,t)})(v),b=null!=(n=h.root)?n:u.root;return(0,$e.jsx)(m,(0,Me.A)({in:p,timeout:g},A,{children:(0,$e.jsx)(ui,(0,Me.A)({"aria-hidden":!0},b,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:(0,ze.A)(y.root,s,null==b?void 0:b.className),ownerState:(0,Me.A)({},v,null==b?void 0:b.ownerState),classes:y,ref:t,children:i}))}))})),pi=di;var hi=n(2456);function fi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mi(e){return parseInt((0,io.A)(e).getComputedStyle(e).paddingRight,10)||0}function gi(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&fi(e,o)}))}function Ai(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function vi(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Je.A)(e);return t.body===e?(0,io.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ua((0,Je.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(mi(r)+e,"px");const t=(0,Je.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(mi(t)+e,"px")}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Je.A)(r).body;else{const t=r.parentElement,n=(0,io.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>
2{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const yi=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&fi(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);gi(t,e.mount,e.modalRef,r,!0);const o=Ai(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Ai(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=vi(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=Ai(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&fi(e.modalRef,t),gi(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&fi(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const bi=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=yi,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=e,h=a.useRef({}),f=a.useRef(null),m=a.useRef(null),g=(0,Fe.A)(m,p),[A,v]=a.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(h.current.modalRef=m.current,h.current.mount=f.current,h.current),w=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=(0,Xe.A)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,Je.A)(f.current).body;o.add(x(),e),m.current&&w()})),C=a.useCallback((()=>o.isTopModal(x())),[o]),S=(0,Xe.A)((e=>{f.current=e,e&&(d&&C()?w():m.current&&fi(m.current,b))})),T=a.useCallback((()=>{o.remove(x(),b)}),[b,o]);a.useEffect((()=>()=>{T()}),[T]),a.useEffect((()=>{d?E():y&&i||T()}),[d,T,y,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},_=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=He(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,Me.A)({},n,t);return(0,Me.A)({role:"presentation"},r,{onKeyDown:k(r),ref:g})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Me.A)({"aria-hidden":!0},e,{onClick:_(e),open:d})},getTransitionProps:()=>({onEnter:(0,hi.A)((()=>{v(!1),s&&s()}),null==c?void 0:c.props.onEnter),onExited:(0,hi.A)((()=>{v(!0),l&&l(),i&&T()}),null==c?void 0:c.props.onExited)}),rootRef:g,portalRef:S,isTopModal:C,exited:A,hasTransition:y}};function xi(e){return(0,jt.Ay)("MuiModal",e)}(0,Mt.A)("MuiModal",["root","hidden","backdrop"]);const wi=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Ei=(0,nt.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),Ci=(0,nt.Ay)(pi,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Si=a.forwardRef((function(e,t){var n,r,o,i,s,l;const c=(0,dt.b)({name:"MuiModal",props:e}),{BackdropComponent:u=Ci,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:f,container:m,component:g,components:A
vendor: 9,024 bytes, line 2
2={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:S=!1,keepMounted:T=!1,onBackdropClick:k,open:_,slotProps:N,slots:I}=c,P=(0,Oe.A)(c,wi),R=(0,Me.A)({},c,{closeAfterTransition:h,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:S,keepMounted:T}),{getRootProps:D,getBackdropProps:L,getTransitionProps:O,portalRef:M,isTopModal:j,exited:F,hasTransition:B}=bi((0,Me.A)({},R,{rootRef:t})),U=(0,Me.A)({},R,{exited:F}),z=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,je.A)(o,xi,r)})(U),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),B){const{onEnter:e,onExited:t}=O();H.onEnter=e,H.onExited=t}const W=null!=(n=null!=(r=null==I?void 0:I.root)?r:A.Root)?n:Ei,V=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:A.Backdrop)?o:u,G=null!=(s=null==N?void 0:N.root)?s:v.root,q=null!=(l=null==N?void 0:N.backdrop)?l:v.backdrop,Y=Ye({elementType:W,externalSlotProps:G,externalForwardedProps:P,getSlotProps:D,additionalProps:{ref:t,as:g},ownerState:U,className:(0,ze.A)(p,null==G?void 0:G.className,null==z?void 0:z.root,!U.open&&U.exited&&(null==z?void 0:z.hidden))}),Q=Ye({elementType:V,externalSlotProps:q,additionalProps:d,getSlotProps:e=>L((0,Me.A)({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,ze.A)(null==q?void 0:q.className,null==d?void 0:d.className,null==z?void 0:z.backdrop),ownerState:U});return T||_||B&&!F?(0,$e.jsx)(ri,{ref:M,container:m,disablePortal:w,children:(0,$e.jsxs)(W,(0,Me.A)({},Y,{children:[!S&&u?(0,$e.jsx)(V,(0,Me.A)({},Q)):null,(0,$e.jsx)(ei,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:E,isEnabled:j,open:_,children:a.cloneElement(f,H)})]}))}):null})),Ti=Si;function ki(e){return(0,jt.Ay)("MuiPopover",e)}(0,Mt.A)("MuiPopover",["root","paper"]);const _i=["onEntering"],Ni=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ii=["slotProps"];function Pi(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Ri(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Di(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function Li(e){return"function"===typeof e?e():e}const Oi=(0,nt.Ay)(Ti,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mi=(0,nt.Ay)(zt,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ji=a.forwardRef((function(e,t){var n,r,o;const i=(0,dt.b)({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:h,container:f,elevation:m=8,marginThreshold:g=16,open:A,PaperProps:v={},slots:y,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:w=Dt,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:S=!1}=i,T=(0,Oe.A)(i.TransitionProps,_i),k=(0,Oe.A)(i,Ni),_=null!=(n=null==b?void 0:b.paper)?n:v,N=a.useRef(),I=(0,kt.A)(N,_.ref),P=(0,Me.A)({},i,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:_,transformOrigin:x,TransitionComponent:w,transitionDuration:E,TransitionProps:T}),R=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"],paper:["paper"]},ki,t)})(P),D=a.useCallback((()=>{if("anchorPosition"===d)return u;const e=Li(l),t=(e&&1===e.nodeType?e:(0,Pa.A)(N.current).body).getBoundingClientRect();return{top:t.top+Pi(t,c.vertical),left:t.left+Ri(t,c.horizontal)}}),[l,c.horizontal,c.vertical,u,d]),L=a.useCallback((e=>({vertical:Pi(e,x.vertical),horizontal:Ri(e,x.horizontal)})),[x.horizontal,x.vertical]),O=a.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=L(t);if("none"===d)return{top:null,left:null,transformOrigin:Di(n)};const r=D();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=(0,Ka.A)(Li(l)),u=c.innerHeight-g,p=c.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&i>u){const e=i-u;o-=e,n.vertical+=e}if(null!==g&&a<g){const e=a-g;a-=e,n.horizontal+=e}else if(s>p){const e=s-p;a-=e,n.horizontal+=e}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:Di(n)}}),[l,d,D,L,g]),[M,j]=a.useState(A),F=a.useCallback((()=>{const e=N.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[O]);a.useEffect((()=>(S&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,S,F]);a.useEffect((()=>{A&&F()})),a.useImperativeHandle(s,(()=>A?{updatePosition:()=>{F()}}:null),[A,F]),a.useEffect((()=>{if(!A)return;const e=(0,Xa.A)((()=>{F()})),t=(0,Ka.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,A,F]);let B=E;"auto"!==E||w.muiSupportAuto||(B=void 0);const U=f||(l?(0,Pa.A)(Li(l)).body:void 0),z=null!=(r=null==y?void 0:y.root)?r:Oi,H=null!=(o=null==y?void 0:y.paper)?o:Mi,W=Ye({elementType:H,externalSlotProps:(0,Me.A)({},_,{style:M?_.style:(0,Me.A)({},_.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:P,className:(0,ze.A)(R.paper,null==_?void 0:_.className)}),V=Ye({elementType:z,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:U,open:A},ownerState:P,className:(0,ze.A)(R.root,h)}),{slotProps:G}=V,q=(0,Oe.A)(V,Ii);return(0,$e.jsx)(z,(0,Me.A)({},q,!Be(z)&&{slotProps:G,disableScrollLock:S},{children:(0,$e.jsx)(w,(0,Me.A)({appear:!0,in:A,onEntering:(e,t)=>{C&&C(e,t),F()},onExited:()=>{j(!1)},timeout:B},T,{children:(0,$e.jsx)(H,(0,Me.A)({},W,{children:p}))}))}))})),Fi=ji;function Bi(e){return(0,jt.Ay)("MuiMenu",e)}(0,Mt.A)("MuiMenu",["root","paper","list"]);const Ui=["onEntering"],zi=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Hi={vertical:"top",horizontal:"right"},Wi={vertical:"top",horizontal:"left"},Vi=(0,nt.Ay)(Fi,{shouldForwardProp:e=>(0,Lo.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gi=(0,nt.Ay)(Mi,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qi=(0,nt.Ay)(Qa,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Yi=a.forwardRef((function(e,t){var n,r;const o=(0,dt.b)({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:h={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:A="selectedMenu",slots:v={},slotProps:y={}}=o,b=(0,Oe.A)(o.TransitionProps,Ui),x=(0,Oe.A)(o,zi),w=Da(),E=(0,Me.A)({},o,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:g,PaperProps:h,transitionDuration:m,TransitionProps:b,variant:A}),C=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"],paper:["paper"],list:["list"]},Bi,t)})(E),S=i&&!c&&p,T=a.useRef(null);let k=-1;a.Children.map(s,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===A&&e.props.selected||-1===k)&&(k=t))}));const _=null!=(n=v.paper)?n:Gi,N=null!=(r=y.paper)?r:h,I=Ye({elementType:v.root,externalSlotProps:y.root,ownerState:E,className:[C.root,l]}),P=Ye({elementType:_,externalSlotProps:N,ownerState:E,className:C.paper});return(0,$e.jsx)(Vi,(0,Me.A)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Hi:Wi,slots:{paper:_,root:v.root},slotProps:{root:I,paper:P},open:p,ref:t,transitionDuration:m,TransitionProps:(0,Me.A)({onEntering:(e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},b),ownerState:E},x,{classes:f,children:(0,$e.jsx)(qi,(0,Me.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:T,autoFocus:i&&(-1===k||c),autoFocusItem:S,variant:A},u,{className:(0,ze.A)(C.list,u.className),children:s}))}))})),Qi=Yi;function Xi(e){return(0,jt.Ay)("MuiNativeSelect",e)}const Ki=(0,Mt.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ji=["className","disabled","error","IconComponent","inputRef","variant"],Zi=e=>{let{ownerState:t,theme:n}=e;
2return(0,Me.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Me.A)({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(Ki.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},$i=(0,nt.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Lo.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{["&.".concat(Ki.multiple)]:t.multiple}]}})(Zi),es=e=>{let{ownerState:t,theme:n}=e;return(0,Me.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,["&.".concat(Ki.disabled)]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},ts=(0,nt.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,pt.A)(n.variant))],n.open&&t.iconOpen]}})(es),ns=a.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:s,variant:l="standard"}=e,c=(0,Oe.A)(e,Ji),u=(0,Me.A)({},e,{disabled:r,variant:l,error:o}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,pt.A)(n)),a&&"iconOpen",r&&"disabled"]};return(0,je.A)(s,Xi,t)})(u);return(0,$e.jsxs)(a.Fragment,{children:[(0,$e.jsx)($i,(0,Me.A)({ownerState:u,className:(0,ze.A)(d.select,n),disabled:r,ref:s||t},c)),e.multiple?null:(0,$e.jsx)(ts,{as:i,ownerState:u,className:d.icon})]})}));var rs=n(7123),os=n(5420);function as(e){return(0,jt.Ay)("MuiSelect",e)}const is=(0,Mt.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ss;const ls=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],cs=(0,nt.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["&.".concat(is.select)]:t.select},{["&.".concat(is.select)]:t[n.variant]},{["&.".concat(is.error)]:t.error},{["&.".concat(is.multiple)]:t.multiple}]}})(Zi,{["&.".concat(is.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),us=(0,nt.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,pt.A)(n.variant))],n.open&&t.iconOpen]}})(es),ds=(0,nt.Ay)("input",{shouldForwardProp:e=>(0,rs.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ps(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function hs(e){return null==e||"string"===typeof e&&!e.trim()}const fs=a.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:f=!1,IconComponent:m,inputRef:g,labelId:A,MenuProps:v={},multiple:y,name:b,onBlur:x,onChange:w,onClose:E,onFocus:C,onOpen:S,open:T,readOnly:k,renderValue:_,SelectDisplayProps:N={},tabIndex:I,value:P,variant:R="standard"}=e,D=(0,Oe.A)(e,ls),[L,O]=(0,os.A)({controlled:P,default:d,name:"Select"}),[M,j]=(0,os.A)({controlled:T,default:u,name:"Select"}),F=a.useRef(null),B=a.useRef(null),[U,z]=a.useState(null),{current:H}=a.useRef(null!=T),[W,V]=a.useState(),G=(0,kt.A)(t,g),q=a.useCallback((e=>{B.current=e,e&&z(e)}),[]),Y=null==U?void 0:U.parentNode;a.useImperativeHandle(G,(()=>({focus:()=>{B.current.focus()},node:F.current,value:L})),[L]),a.useEffect((()=>{u&&M&&U&&!H&&(V(s?null:Y.clientWidth),B.current.focus())}),[U,s]),a.useEffect((()=>{i&&B.current.focus()}),[i]),a.useEffect((()=>
2{if(!A)return;const e=(0,Pa.A)(B.current).getElementById(A);if(e){const t=()=>{getSelection().isCollapsed&&B.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[A]);const Q=(e,t)=>{e?S&&S(t):E&&E(t),H||(V(s?null:Y.clientWidth),j(e))},X=a.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==n&&(O(n),w)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:b}}),w(o,e)}y||Q(!1,t)}},J=null!==U&&M;let Z,$;delete D["aria-invalid"];const ee=[];let te=!1,ne=!1;(Eo({value:L})||h)&&(_?Z=_(L):te=!0);const re=X.map((e=>{if(!a.isValidElement(e))return null;let t;if(y){if(!Array.isArray(L))throw new Error((0,ao.A)(2));t=L.some((t=>ps(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=ps(L,e.props.value),t&&te&&($=e.props.children);return t&&(ne=!0),a.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=y?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):$);let oe,ae=W;!s&&H&&U&&(ae=Y.clientWidth),oe="undefined"!==typeof I?I:p?null:0;const ie=N.id||(b?"mui-component-select-".concat(b):void 0),se=(0,Me.A)({},e,{variant:R,value:L,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,pt.A)(n)),a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,je.A)(s,as,t)})(se),ce=(0,Me.A)({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=(0,oo.A)();return(0,$e.jsxs)(a.Fragment,{children:[(0,$e.jsx)(cs,(0,Me.A)({ref:q,tabIndex:oe,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[A,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Q(!0,e))}},onMouseDown:p||k?null:e=>{0===e.button&&(e.preventDefault(),B.current.focus(),Q(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:b}}),x(e))},onFocus:C},N,{ownerState:se,className:(0,ze.A)(N.className,le.select,c),id:ie,children:hs(Z)?ss||(ss=(0,$e.jsx)("span",{className:"notranslate",children:"\u200b"})):Z})),(0,$e.jsx)(ds,(0,Me.A)({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:b,ref:F,"aria-hidden":!0,onChange:e=>{const t=X.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:i,ownerState:se},D)),(0,$e.jsx)(us,{as:m,className:le.icon,ownerState:se}),(0,$e.jsx)(Qi,(0,Me.A)({id:"menu-".concat(b||""),anchorEl:Y,open:J,onClose:e=>{Q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:(0,Me.A)({"aria-labelledby":A,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:(0,Me.A)({},v.slotProps,{paper:(0,Me.A)({},ce,{style:(0,Me.A)({minWidth:ae},null!=ce?ce.style:null)})}),children:re}))]})})),ms=fs,gs=(0,Qn.A)((0,$e.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),As=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],vs=["root"],ys={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,Lo.A)(e)&&"variant"!==e,slot:"Root"},bs=(0,nt.Ay)(zo,ys)(""),xs=(0,nt.Ay)(ia,ys)(""),ws=(0,nt.Ay)(Qo,ys)(""),Es=a.forwardRef((function(e,t){const n=(0,dt.b)({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=gs,id:d,input:p,inputProps:h,label:f,labelId:m,MenuProps:g,multiple:A=!1,native:v=!1,onClose:y,onOpen:b,open:x,renderValue:w,SelectDisplayProps:E,variant:C="outlined"}=n,S=(0,Oe.A)(n,As),T=v?ns:ms,k=mo({props:n,muiFormControl:Ao(),states:["variant","error"]}),_=k.variant||C,N=(0,Me.A)({},n,{variant:_,classes:i}
2),I=(e=>{const{classes:t}=e;return t})(N),P=(0,Oe.A)(I,vs),R=p||{standard:(0,$e.jsx)(bs,{ownerState:N}),outlined:(0,$e.jsx)(xs,{label:f,ownerState:N}),filled:(0,$e.jsx)(ws,{ownerState:N})}[_],D=(0,kt.A)(t,Ze(R));return(0,$e.jsx)(a.Fragment,{children:a.cloneElement(R,(0,Me.A)({inputComponent:T,inputProps:(0,Me.A)({children:o,error:k.error,IconComponent:u,variant:_,type:void 0,multiple:A},v?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:y,onOpen:b,open:x,renderValue:w,SelectDisplayProps:(0,Me.A)({id:d},E)},h,{classes:h?(0,Lr.A)(P,h.classes):P},p?p.props.inputProps:{})},(A&&v||c)&&"outlined"===_?{notched:!0}:{},{ref:D,className:(0,ze.A)(R.props.className,s,I.root)},!p&&{variant:_},S))})}));Es.muiName="Select";const Cs=Es;function Ss(e){return(0,jt.Ay)("MuiTextField",e)}(0,Mt.A)("MuiTextField",["root"]);const Ts=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ks={standard:zo,filled:Qo,outlined:ia},_s=(0,nt.Ay)(Ea,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ns=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:h,id:f,InputLabelProps:m,inputProps:g,InputProps:A,inputRef:v,label:y,maxRows:b,minRows:x,multiline:w=!1,name:E,onBlur:C,onChange:S,onFocus:T,placeholder:k,required:_=!1,rows:N,select:I=!1,SelectProps:P,type:R,value:D,variant:L="outlined"}=n,O=(0,Oe.A)(n,Ts),M=(0,Me.A)({},n,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:p,multiline:w,required:_,select:I,variant:L}),j=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"]},Ss,t)})(M);const F={};"outlined"===L&&(m&&"undefined"!==typeof m.shrink&&(F.notched=m.shrink),F.label=y),I&&(P&&P.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,oo.A)(f),U=h&&B?"".concat(B,"-helper-text"):void 0,z=y&&B?"".concat(B,"-label"):void 0,H=ks[L],W=(0,$e.jsx)(H,(0,Me.A)({"aria-describedby":U,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:p,multiline:w,name:E,rows:N,maxRows:b,minRows:x,type:R,value:D,id:B,inputRef:v,onBlur:C,onChange:S,onFocus:T,placeholder:k,inputProps:g},F,A));return(0,$e.jsxs)(_s,(0,Me.A)({className:(0,ze.A)(j.root,i),disabled:c,error:u,fullWidth:p,ref:t,required:_,color:s,variant:L,ownerState:M},O,{children:[null!=y&&""!==y&&(0,$e.jsx)(Aa,(0,Me.A)({htmlFor:B,id:z},m,{children:y})),I?(0,$e.jsx)(Cs,(0,Me.A)({"aria-describedby":U,id:B,labelId:z,value:D,input:W},P,{children:a})):W,h&&(0,$e.jsx)(Ia,(0,Me.A)({id:U},d,{children:h}))]}))})),Is=Ns;const Ps=(0,Mt.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function Rs(e){return(0,jt.Ay)("MuiListItemText",e)}const Ds=(0,Mt.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Ls(e){return(0,jt.Ay)("MuiMenuItem",e)}const Os=(0,Mt.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ms=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],js=(0,nt.Ay)(zn,{shouldForwardProp:e=>(0,Lo.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Os.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(Os.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(Os.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(Os.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Os.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(_r.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(_r.inset)]:{marginLeft:52},["& .".concat(Ds.root)]:{marginTop:0,marginBottom:0},["& .".concat(Ds.inset)]:{paddingLeft:36},["& .".concat(Ps.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,Me.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(Ps.root," svg")]:{fontSize:"1.25rem"}}))}
2)),Fs=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=n,h=(0,Oe.A)(n,Ms),f=a.useContext(La),m=a.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),g=a.useRef(null);(0,vo.A)((()=>{r&&g.current&&g.current.focus()}),[r]);const A=(0,Me.A)({},n,{dense:m.dense,divider:s,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,s={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},l=(0,je.A)(s,Ls,i);return(0,Me.A)({},i,l)})(n),y=(0,kt.A)(g,t);let b;return n.disabled||(b=void 0!==d?d:-1),(0,$e.jsx)(La.Provider,{value:m,children:(0,$e.jsx)(js,(0,Me.A)({ref:y,role:u,tabIndex:b,component:o,focusVisibleClassName:(0,ze.A)(v.focusVisible,c),className:(0,ze.A)(v.root,p)},h,{ownerState:A,classes:v}))})})),Bs=Fs;function Us(e){return(0,jt.Ay)("MuiFormGroup",e)}(0,Mt.A)("MuiFormGroup",["root","row","error"]);const zs=["className","row"],Hs=(0,nt.Ay)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),Ws=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiFormGroup"}),{className:r,row:o=!1}=n,a=(0,Oe.A)(n,zs),i=mo({props:n,muiFormControl:Ao(),states:["error"]}),s=(0,Me.A)({},n,{row:o,error:i.error}),l=(e=>{const{classes:t,row:n,error:r}=e,o={root:["root",n&&"row",r&&"error"]};return(0,je.A)(o,Us,t)})(s);return(0,$e.jsx)(Hs,(0,Me.A)({className:(0,ze.A)(l.root,r),ownerState:s,ref:t},a))}));function Vs(e){return(0,jt.Ay)("MuiFormControlLabel",e)}const Gs=(0,Mt.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qs=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ys=(0,nt.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(Gs.label)]:t.label},t.root,t["labelPlacement".concat((0,pt.A)(n.labelPlacement))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(Gs.disabled)]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(Gs.label)]:{["&.".concat(Gs.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),Qs=(0,nt.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(Gs.error)]:{color:(t.vars||t).palette.error.main}}})),Xs=a.forwardRef((function(e,t){var n,r;const o=(0,dt.b)({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:h,slotProps:f={}}=o,m=(0,Oe.A)(o,qs),g=Ao(),A=null!=(n=null!=c?c:l.props.disabled)?n:null==g?void 0:g.disabled,v=null!=h?h:l.props.required,y={disabled:A,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof l.props[e]&&"undefined"!==typeof o[e]&&(y[e]=o[e])}));const b=mo({props:o,muiFormControl:g,states:["error"]}),x=(0,Me.A)({},o,{disabled:A,labelPlacement:p,required:v,error:b.error}),w=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled","labelPlacement".concat((0,pt.A)(r)),o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,je.A)(i,Vs,t)})(x),E=null!=(r=f.typography)?r:s.typography;let C=d;return null==C||C.type===Tr||u||(C=(0,$e.jsx)(Tr,(0,Me.A)({component:"span"}
2,E,{className:(0,ze.A)(w.label,null==E?void 0:E.className),children:C}))),(0,$e.jsxs)(Ys,(0,Me.A)({className:(0,ze.A)(w.root,i),ownerState:x,ref:t},m,{children:[a.cloneElement(l,y),v?(0,$e.jsxs)(ro,{display:"block",children:[C,(0,$e.jsxs)(Qs,{ownerState:x,"aria-hidden":!0,className:w.asterisk,children:["\u2009","*"]})]}):C]}))}));function Ks(e){return(0,jt.Ay)("PrivateSwitchBase",e)}(0,Mt.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Js=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Zs=(0,nt.Ay)(zn)((e=>{let{ownerState:t}=e;return(0,Me.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),$s=(0,nt.Ay)("input",{shouldForwardProp:Lo.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),el=a.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:f,onBlur:m,onChange:g,onFocus:A,readOnly:v,required:y=!1,tabIndex:b,type:x,value:w}=e,E=(0,Oe.A)(e,Js),[C,S]=(0,os.A)({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),T=Ao();let k=s;T&&"undefined"===typeof k&&(k=T.disabled);const _="checkbox"===x||"radio"===x,N=(0,Me.A)({},e,{checked:C,disabled:k,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&"edge".concat((0,pt.A)(o))],input:["input"]};return(0,je.A)(a,Ks,t)})(N);return(0,$e.jsxs)(Zs,(0,Me.A)({component:"span",className:(0,ze.A)(I.root,a),centerRipple:!0,focusRipple:!l,disabled:k,tabIndex:null,role:void 0,onFocus:e=>{A&&A(e),T&&T.onFocus&&T.onFocus(e)},onBlur:e=>{m&&m(e),T&&T.onBlur&&T.onBlur(e)},ownerState:N,ref:t},E,{children:[(0,$e.jsx)($s,(0,Me.A)({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:k,id:_?d:void 0,name:f,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;S(t),g&&g(e,t)},readOnly:v,ref:h,required:y,ownerState:N,tabIndex:b,type:x},"checkbox"===x&&void 0===w?{}:{value:w},p)),C?o:u]}))})),tl=el,nl=(0,Qn.A)((0,$e.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),rl=(0,Qn.A)((0,$e.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ol=(0,Qn.A)((0,$e.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function al(e){return(0,jt.Ay)("MuiCheckbox",e)}const il=(0,Mt.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sl=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ll=(0,nt.Ay)(tl,{shouldForwardProp:e=>(0,Lo.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size".concat((0,pt.A)(n.size))],"default"!==n.color&&t["color".concat((0,pt.A)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(il.checked,", &.").concat(il.indeterminate)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(il.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),cl=(0,$e.jsx)(rl,{}),ul=(0,$e.jsx)(nl,{}),dl=(0,$e.jsx)(ol,{}),pl=a.forwardRef((function(e,t){var n,r;const o=(0,dt.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=cl,color:s="primary",icon:l=ul,indeterminate:c=!1,indeterminateIcon:u=dl,inputProps:d,size:p="medium",className:h}=o,f=(0,Oe.A)(o,sl),m=c?u:l,g=c?u:i,A=(0,Me.A)({},o,{color:s,indeterminate:c,size:p}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate","color".concat((0,pt.A)(r)),"size".concat((0,pt.A)(o))]},i=(0,je.A)(a,al,t);return(0,Me.A)({},t,i)})(A);return(0,$e.jsx)(ll,(0,Me.A)({type:"checkbox",inputProps:(0,Me.A)({"data-indeterminate":c},d),icon:a.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:a.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:A,ref:t,className:(0,ze.A)(v.root,h)},f,{classes:v}))})),hl=pl;function fl(e){return(0,jt.Ay)("MuiButton",e)}const ml=(0,Mt.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const gl=a.createContext({});const Al=a.createContext(void 0),vl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],yl=e=>(0,Me.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),bl=(0,nt.Ay)(zn,{shouldForwardProp:e=>(0,Lo.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,pt.A)(n.color))],t["size".concat((0,pt.A)(n.size))],t["".concat(n.variant,"Size").concat((0,pt.A)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,o;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],i="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,Me.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,Me.A)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainCh
2annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:"1px solid ".concat((t.vars||t).palette[n.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,Me.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(ml.focusVisible)]:(0,Me.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(ml.disabled)]:(0,Me.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):"1px solid ".concat((0,Lt.X4)(t.palette[n.color].main,.5))},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(o=t.palette).getContrastText)?void 0:r.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(ml.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(ml.disabled)]:{boxShadow:"none"}}})),xl=(0,nt.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t["iconSize".concat((0,pt.A)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},yl(t))})),wl=(0,nt.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t["iconSize".concat((0,pt.A)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},yl(t))})),El=a.forwardRef((function(e,t){const n=a.useContext(gl),r=a.useContext(Al),o=(0,qr.A)(n,e),i=(0,dt.b)({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:f,focusVisibleClassName:m,fullWidth:g=!1,size:A="medium",startIcon:v,type:y,variant:b="text"}=i,x=(0,Oe.A)(i,vl),w=(0,Me.A)({},i,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:g,size:A,type:y,variant:b}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,"".concat(a).concat((0,pt.A)(t)),"size".concat((0,pt.A)(o)),"".concat(a,"Size").concat((0,pt.A)(o)),"color".concat((0,pt.A)(t)),n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon","iconSize".concat((0,pt.A)(o))],endIcon:["icon","endIcon","iconSize".concat((0,pt.A)(o))]},l=(0,je.A)(s,fl,i);return(0,Me.A)({},i,l)})(w),C=v&&(0,$e.jsx)(xl,{className:E.startIcon,ownerState:w,children:v}),S=f&&(0,$e.jsx)(wl,{className:E.endIcon,ownerState:w,children:f}),T=r||"";return(0,$e.jsxs)(bl,(0,Me.A)({ownerState:w,className:(0,ze.A)(n.className,E.root,u,T),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:(0,ze.A)(E.focusVisible,m),ref:t,type:y},x,{classes:E,children:[C,s,S]}))})),Cl=El,Sl=(0,Qn.A)((0,$e.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Tl=(0,Qn.A)((0,$e.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),kl="x-amz-user-agent";var _l;!function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE",e.NONE="NONE"}(_l||(_l={}));const Nl={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class Il{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_l.WARN;this.name=e,this.level=t,this._pluggables=[]}_padding(e){return e<10?"0"+e:""+e}_ts(){const e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()}configure(e){return e?(this._config=e,this._config):this._config}_log(e){let t=this.level;Il.LOG_LEVEL&&(t=Il.LOG_LEVEL),"undefined"!==typeof window&&window.LOG_LEVEL&&(t=window.LOG_LEVEL);if(!(Nl[e]>=Nl[t]))return;let n=console.log.bind(console);e===_l.ERROR&&console.error&&(n=console.error.bind(console)),e===_l.WARN&&console.warn&&(n=console.warn.bind(console)),Il.BIND_ALL_LOG_LEVELS&&(e===_l.INFO&&console.info&&(n=console.info.bind(console)),e===_l.DEBUG&&console.debug&&(n=console.debug.bind(console)));const r="[".concat(e,"] ").concat(this._ts()," ").concat(this.name);let o="";for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];if(1===i.length&&"string"===typeof i[0])o="".concat(r," - ").concat(i[0]),n(o);else if(1===i.length)o="".concat(r," ").concat(i[0]),n(r,i[0]);else if("string"===typeof i[0]){let e=i.slice(1);1===e.length&&(e=e[0]),o="".concat(r," - ").concat(i[0]," ").concat(e),n("".concat(r," - ").concat(i[0]),e)}else o="".concat(r," ").concat(i),n(r,i);for(const l of this._pluggables){const e={message:o,timestamp:Date.now()};l.pushLogs([e])}}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._log(_l.INFO,...t)}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._log(_l.INFO,...t)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._log(_l.WARN,...t)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._log(_l.ERROR,...t)}debug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._log(_l.DEBUG,...t)}verbose(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._log(_l.VERBOSE,...t)}addPluggable(e){e&&"Logging"===e.getCategoryName()&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}}Il.LOG_LEVEL=null,Il.BIND_ALL_LOG_LEVELS=!1;
2class Pl extends Error{constructor(e){let{message:t,name:n,recoverySuggestion:r,underlyingError:o}=e;super(t),this.name=n,this.underlyingError=o,this.recoverySuggestion=r,this.constructor=Pl,Object.setPrototypeOf(this,Pl.prototype)}}const Rl="undefined"!==typeof Symbol?Symbol("amplify_default"):"@@amplify_default",Dl=new Il("Hub");class Ll{constructor(e){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}_remove(e,t){const n=this.listeners.get(e);n?this.listeners.set(e,[...n.filter((e=>{let{callback:n}=e;return n!==t}))]):Dl.warn("No listeners for ".concat(e))}dispatch(e,t,n,r){if("string"===typeof e&&this.protectedChannels.indexOf(e)>-1){r===Rl||Dl.warn("WARNING: ".concat(e," is protected and dispatching on it can have unintended consequences"))}const o={channel:e,payload:{...t},source:n,patternInfo:[]};try{this._toListeners(o)}catch(DV){Dl.error(DV)}}listen(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"noname";
2if("function"!==typeof t)throw new Pl({name:"NoHubcallbackProvidedException",message:"No callback supplied to Hub"});n=t;let o=this.listeners.get(e);return o||(o=[],this.listeners.set(e,o)),o.push({name:r,callback:n}),()=>{this._remove(e,n)}}_toListeners(e){const{channel:t,payload:n}=e,r=this.listeners.get(t);r&&r.forEach((r=>{Dl.debug("Dispatching to ".concat(t," with "),n);try{r.callback(e)}catch(DV){Dl.error(DV)}}))}}const Ol=new Ll("__default__"),Ml=new Ll("internal-hub"),jl=e=>{const t=Reflect.ownKeys(e);for(const n of t){const t=e[n];(t&&"object"===typeof t||"function"===typeof t)&&jl(t)}return Object.freeze(e)},Fl=Symbol("oauth-listener"),Bl=new Il("parseAWSExports"),Ul={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},zl=e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.split(","))&&void 0!==t?t:[]},Hl=e=>{let{domain:t,scope:n,redirectSignIn:r,redirectSignOut:o,responseType:a}=e;return{domain:t,scopes:n,redirectSignIn:zl(r),redirectSignOut:zl(o),responseType:a}},Wl=e=>e.map((e=>{const t=e.toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}));function Vl(e){const t={};if(e.storage&&(t.Storage=function(e){if(!e)return;const{bucket_name:t,aws_region:n,buckets:r}=e;return{S3:{bucket:t,region:n,buckets:r&&Kl(r)}}}(e.storage)),e.auth&&(t.Auth=function(e){if(!e)return;const{user_pool_id:t,user_pool_client_id:n,identity_pool_id:r,password_policy:o,mfa_configuration:a,mfa_methods:i,unauthenticated_identities_enabled:s,oauth:l,username_attributes:c,standard_required_attributes:u,groups:d}=e,p={Cognito:{userPoolId:t,userPoolClientId:n,groups:d}};var h;return r&&(p.Cognito={...p.Cognito,identityPoolId:r}),o&&(p.Cognito.passwordFormat={requireLowercase:o.require_lowercase,requireNumbers:o.require_numbers,requireUppercase:o.require_uppercase,requireSpecialCharacters:o.require_symbols,minLength:null!==(h=o.min_length)&&void 0!==h?h:6}),a&&(p.Cognito.mfa={status:Xl(a),smsEnabled:null===i||void 0===i?void 0:i.includes("SMS"),totpEnabled:null===i||void 0===i?void 0:i.includes("TOTP")}),s&&(p.Cognito.allowGuestAccess=s),l&&(p.Cognito.loginWith={oauth:{domain:l.domain,redirectSignIn:l.redirect_sign_in_uri,redirectSignOut:l.redirect_sign_out_uri,responseType:"token"===l.response_type?"token":"code",scopes:l.scopes,providers:Ql(l.identity_providers)}}),c&&(p.Cognito.loginWith={...p.Cognito.loginWith,email:c.includes("email"),phone:c.includes("phone_number"),username:c.includes("username")}),u&&(p.Cognito.userAttributes=u.reduce(((e,t)=>({...e,[t]:{required:!0}})),{})),p}(e.auth)),e.analytics&&(t.Analytics=function(e){if(null===e||void 0===e||!e.amazon_pinpoint)return;const{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}(e.analytics)),e.geo&&(t.Geo=function(e){if(!e)return;const{aws_region:t,geofence_collections:n,maps:r,search_indices:o}=e;return{LocationService:{region:t,searchIndices:o,geofenceCollections:n,maps:r}}}(e.geo)),e.data&&(t.API=function(e){if(!e)return;const{aws_region:t,default_authorization_type:n,url:r,api_key:o,model_introspection:a}=e;return{GraphQL:{endpoint:r,defaultAuthMode:ql(n),region:t,apiKey:o,modelIntrospection:a}}}(e.data)),e.custom){const n=function(e){if(null===e||void 0===e||!e.events)return;const{url:t,aws_region:n,api_key:r,default_authorization_type:o}=e.events;return{Events:{endpoint:t,defaultAuthMode:ql(o),region:n,apiKey:r}}}(e.custom);n&&"Events"in n&&(t.API={...t.API,...n})}return e.notifications&&(t.Notifications=function(e){if(!e)return;const{aws_region:t,channels:n,amazon_pinpoint_app_id:r}=e,o=n.includes("IN_APP_MESSAGING"),a=n.includes("APNS")||n.includes("FCM");if(!o&&!a)return;const i={};return o&&(i.InAppMessaging={Pinpoint:{appId:r,region:t}}),a&&(i.PushNotification={Pinpoint:{appId:r,region:t}}),i}(e.notifications)),t}const Gl={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function ql(e){return Gl[e]}const Yl={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function Ql(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>(void 0!==Yl[t]&&e.push(Yl[t]),e)),[])}function Xl(e){return"OPTIONAL"===e?"optional":"REQUIRED"===e?"on":"off"}function Kl(e){const t={};return e.forEach((e=>{let{name:n,bucket_name:r,aws_region:o,paths:a}=e;if(n in t)throw new Error("Duplicate friendly name found: ".concat(n,". Name must be unique."));const i=a?Object.entries(a).reduce(((e,t)=>
2{let[n,r]=t;return void 0!==r&&(e[n]=r),e}),{}):void 0;t[n]={bucketName:r,region:o,paths:i}})),t}const Jl=e=>Object.keys(e).some((e=>e.startsWith("aws_")))?function(){var e,t,n,r,o,a,i,s,l,c,u,d;let p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Object.prototype.hasOwnProperty.call(p,"aws_project_region"))throw new Pl({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});const{aws_appsync_apiKey:h,aws_appsync_authenticationType:f,aws_appsync_graphqlEndpoint:m,aws_appsync_region:g,aws_bots_config:A,aws_cognito_identity_pool_id:v,aws_cognito_sign_up_verification_method:y,aws_cognito_mfa_configuration:b,aws_cognito_mfa_types:x,aws_cognito_password_protection_settings:w,aws_cognito_verification_mechanisms:E,aws_cognito_signup_attributes:C,aws_cognito_social_providers:S,aws_cognito_username_attributes:T,aws_mandatory_sign_in:k,aws_mobile_analytics_app_id:_,aws_mobile_analytics_app_region:N,aws_user_files_s3_bucket:I,aws_user_files_s3_bucket_region:P,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:R,aws_user_pools_id:D,aws_user_pools_web_client_id:L,geo:O,oauth:M,predictions:j,aws_cloud_logic_custom:F,Notifications:B,modelIntrospection:U}=p,z={};_&&(z.Analytics={Pinpoint:{appId:_,region:N}});const{InAppMessaging:H,Push:W}=null!==B&&void 0!==B?B:{};if(null!==H&&void 0!==H&&H.AWSPinpoint||null!==W&&void 0!==W&&W.AWSPinpoint){if(null!==H&&void 0!==H&&H.AWSPinpoint){const{appId:e,region:t}=H.AWSPinpoint;z.Notifications={InAppMessaging:{Pinpoint:{appId:e,region:t}}}}if(null!==W&&void 0!==W&&W.AWSPinpoint){const{appId:e,region:t}=W.AWSPinpoint;z.Notifications={...z.Notifications,PushNotification:{Pinpoint:{appId:e,region:t}}}}}if(Array.isArray(A)&&(z.Interactions={LexV1:Object.fromEntries(A.map((e=>[e.name,e])))}),m){const e=Ul[f];e||Bl.debug("Invalid authentication type ".concat(f,". Falling back to IAM.")),z.API={GraphQL:{endpoint:m,apiKey:h,region:g,defaultAuthMode:null!==e&&void 0!==e?e:"iam"}},U&&(z.API.GraphQL.modelIntrospection=U)}const V=b?{status:b&&b.toLowerCase(),totpEnabled:null!==(e=null===x||void 0===x?void 0:x.includes("TOTP"))&&void 0!==e&&e,smsEnabled:null!==(t=null===x||void 0===x?void 0:x.includes("SMS"))&&void 0!==t&&t}:void 0,G=w?{minLength:w.passwordPolicyMinLength,requireLowercase:null!==(n=null===(r=w.passwordPolicyCharacters)||void 0===r?void 0:r.includes("REQUIRES_LOWERCASE"))&&void 0!==n&&n,requireUppercase:null!==(o=null===(a=w.passwordPolicyCharacters)||void 0===a?void 0:a.includes("REQUIRES_UPPERCASE"))&&void 0!==o&&o,requireNumbers:null!==(i=null===(s=w.passwordPolicyCharacters)||void 0===s?void 0:s.includes("REQUIRES_NUMBERS"))&&void 0!==i&&i,requireSpecialCharacters:null!==(l=null===(c=w.passwordPolicyCharacters)||void 0===c?void 0:c.includes("REQUIRES_SYMBOLS"))&&void 0!==l&&l}:void 0,q=Array.from(new Set([...null!==E&&void 0!==E?E:[],...null!==C&&void 0!==C?C:[]])).reduce(((e,t)=>({...e,[t.toLowerCase()]:{required:!0}})),{}),Y=null!==(u=null===T||void 0===T?void 0:T.includes("EMAIL"))&&void 0!==u&&u,Q=null!==(d=null===T||void 0===T?void 0:T.includes("PHONE_NUMBER"))&&void 0!==d&&d;(v||D)&&(z.Auth={Cognito:{identityPoolId:v,allowGuestAccess:"enable"!==k,signUpVerificationMethod:y,userAttributes:q,userPoolClientId:L,userPoolId:D,mfa:V,passwordFormat:G,loginWith:{username:!(Y||Q),email:Y,phone:Q}}});const X=!!M&&Object.keys(M).length>0,K=!!S&&S.length>0;if(z.Auth&&X&&(z.Auth.Cognito.loginWith={...z.Auth.Cognito.loginWith,oauth:{...Hl(M),...K&&{providers:Wl(S)}}}),I&&(z.Storage={S3:{bucket:I,region:P,dangerouslyConnectToHttpEndpointForTesting:R}}),O){const{amazon_location_service:e}=O;z.Geo={LocationService:{maps:e.maps,geofenceCollections:e.geofenceCollections,searchIndices:e.search_indices,region:e.region}}}if(F&&(z.API={...z.API,REST:F.reduce(((e,t)=>{const{name:n,endpoint:r,region:o,service:a}=t;return{...e,[n]:{endpoint:r,...a?{service:a}:void 0,...o?{region:o}:void 0}}}),{})}),j){var J,Z;const{VoiceId:e}=null!==(J=null===j||void 0===j||null===(Z=j.convert)||void 0===Z||null===(Z=Z.speechGenerator)||void 0===Z?void 0:Z.defaults)&&void 0!==J?J:{};
2z.Predictions=e?{...j,convert:{...j.convert,speechGenerator:{...j.convert.speechGenerator,defaults:{voiceId:e}}}}:j}return z}(e):function(e){const{version:t}=e;return!!t&&t.startsWith("1")}(e)?Vl(e):e;function Zl(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(DV){a(DV)}}function s(e){try{l(r.throw(e))}catch(DV){a(DV)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))}function $l(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(DV){s=[6,DV],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;var ec=64,tc=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),nc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],rc=Math.pow(2,53)-1,oc=function(){function e(){this.state=Int32Array.from(nc),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>rc)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===ec&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%ec>=56){for(var r=this.bufferLength;r<ec;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(32);for(r=0;r<8;r++)o[4*r]=this.state[r]>>>24&255,o[4*r+1]=this.state[r]>>>16&255,o[4*r+2]=this.state[r]>>>8&255,o[4*r+3]=this.state[r]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],s=t[5],l=t[6],c=t[7],u=0;u<ec;u++){if(u<16)this.temp[u]=(255&e[4*u])<<24|(255&e[4*u+1])<<16|(255&e[4*u+2])<<8|255&e[4*u+3];else{var d=this.temp[u-2],p=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,h=((d=this.temp[u-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[u]=(p+this.temp[u-7]|0)+(h+this.temp[u-16]|0)}var f=(((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&s^~i&l)|0)+(c+(tc[u]+this.temp[u]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&r^n&o^r&o)|0;c=l,l=s,s=i,i=a+f|0,a=o,o=r,r=n,n=f+m|0}t[0]+=n,t[1]+=r,t[2]+=o,t[3]+=a,t[4]+=i,t[5]+=s,t[6]+=l,t[7]+=c},e}();var ac="undefined"!==typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function ic(e){return e instanceof Uint8Array?e:"string"===typeof e?ac(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var sc=function(){function e(e){this.secret=e,this.hash=new oc,this.reset()}return e.prototype.update=function(e){if(!function(e){return"string"===typeof e?0===e.length:0===e.byteLength}(e)&&!this.error)try{this.hash.update(ic(e))}catch(DV){this.error=DV}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Zl(this,void 0,void 0,(function(){return $l
2(this,(function(e){return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new oc,this.secret){this.outer=new oc;var e=function(e){var t=ic(e);if(t.byteLength>ec){var n=new oc;n.update(t),t=n.digest()}var r=new Uint8Array(ec);return r.set(t),r}(this.secret),t=new Uint8Array(ec);t.set(e);for(var n=0;n<ec;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(n=0;n<e.byteLength;n++)e[n]=0}},e}();const lc={},cc={};for(let n=0;n<256;n++){let e=n.toString(16).toLowerCase();1===e.length&&(e="0".concat(e)),lc[n]=e,cc[e]=n}class uc{configure(e,t){this.authConfig=e,this.authOptions=t}async fetchAuthSession(){var e,t;let n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=await this.getTokens(o);var i,s,l;a?(r=null===(i=a.accessToken)||void 0===i||null===(i=i.payload)||void 0===i?void 0:i.sub,n=await(null===(s=this.authOptions)||void 0===s||null===(s=s.credentialsProvider)||void 0===s?void 0:s.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:a,authenticated:!0,forceRefresh:o.forceRefresh}))):n=await(null===(l=this.authOptions)||void 0===l||null===(l=l.credentialsProvider)||void 0===l?void 0:l.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:o.forceRefresh}));return{tokens:a,credentials:null===(e=n)||void 0===e?void 0:e.credentials,identityId:null===(t=n)||void 0===t?void 0:t.identityId,userSub:r}}async clearCredentials(){var e;await(null===(e=this.authOptions)||void 0===e||null===(e=e.credentialsProvider)||void 0===e?void 0:e.clearCredentialsAndIdentityId())}async getTokens(e){var t,n;return null!==(t=await(null===(n=this.authOptions)||void 0===n||null===(n=n.tokenProvider)||void 0===n?void 0:n.getTokens(e)))&&void 0!==t?t:void 0}}const dc=new class{constructor(){this.oAuthListener=void 0,this.resourcesConfig={},this.libraryOptions={},this.Auth=new uc}configure(e,t){const n=Jl(e);this.resourcesConfig=n,t&&(this.libraryOptions=t),this.resourcesConfig=jl(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),Ol.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",Rl),this.notifyOAuthListener()}getConfig(){return this.resourcesConfig}[Fl](e){var t,n;null!==(t=this.resourcesConfig.Auth)&&void 0!==t&&null!==(t=t.Cognito.loginWith)&&void 0!==t&&t.oauth?e(null===(n=this.resourcesConfig.Auth)||void 0===n?void 0:n.Cognito):this.oAuthListener=e}notifyOAuthListener(){var e,t;null!==(e=this.resourcesConfig.Auth)&&void 0!==e&&null!==(e=e.Cognito.loginWith)&&void 0!==e&&e.oauth&&this.oAuthListener&&(this.oAuthListener(null===(t=this.resourcesConfig.Auth)||void 0===t?void 0:t.Cognito),this.oAuthListener=void 0)}},pc=(e,t)=>e.Auth.fetchAuthSession(t),hc=e=>pc(dc,e);const fc={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var mc,gc=new Uint8Array(16);function Ac(){if(!mc&&!(mc="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mc(gc)}for(var vc=[],yc=0;yc<256;++yc)vc.push((yc+256).toString(16).slice(1));function bc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;
2return(vc[e[t+0]]+vc[e[t+1]]+vc[e[t+2]]+vc[e[t+3]]+"-"+vc[e[t+4]]+vc[e[t+5]]+"-"+vc[e[t+6]]+vc[e[t+7]]+"-"+vc[e[t+8]]+vc[e[t+9]]+"-"+vc[e[t+10]]+vc[e[t+11]]+vc[e[t+12]]+vc[e[t+13]]+vc[e[t+14]]+vc[e[t+15]]).toLowerCase()}const xc=function(e,t,n){if(fc.randomUUID&&!t&&!e)return fc.randomUUID();var r=(e=e||{}).random||(e.rng||Ac)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return bc(r)};var wc=n(6111);async function Ec(){let e;try{var t;const{idToken:n}=null!==(t=(await hc()).tokens)&&void 0!==t?t:{};e=n}catch(n){console.error(n)}if(!e)try{e=async function(){try{const e=localStorage.getItem("deviceId");if(!e)throw new Error("Device ID not found in local storage");const t=await fetch("".concat("https://api.medrpt.ai","/api/user/one-time"),{method:"POST",headers:{"Content-Type":"application/json","x-api-key":e}});if(!t.ok)throw new Error("Network response was not ok");return(await t.json()).token}catch(n){throw console.error("Error fetching temp token:",n),n}}()}catch(n){console.error("Error fetching temp token:",n)}return e}const Cc=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"public";try{const a=await Ec(),i={question:e,filters:t,pico:n,query:r,searchMode:o},s=await fetch("".concat("https://api.medrpt.ai","/search"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(a)},body:JSON.stringify({requestBody:i})});if(403===s.status){const a=await s.json();return Dc(e,t,n,r,o),{error:a.message}}if(500===s.status){const e=await s.json();throw new Error(e.message)}if(!s.ok)throw new Error("Network response was not ok");return{id:(await s.json()).jobId}}catch(a){return console.error("Error fetching UUID:",a),{error:"An error occurred during search. Please try again."}}},Sc=async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/job/").concat(e),{method:"GET",headers:{Authorization:"Bearer ".concat(t),"Content-type":"application/json"}});if(!n.ok)throw new Error("Network response was not ok");return await n.json()}catch(t){throw console.error("Error fetching results:",t),t}},Tc=async()=>{const e=await Ec();try{const t=await fetch("".concat("https://api.medrpt.ai","/api/user/subscriptionStatus"),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-type":"application/json"}});if(!t.ok)throw new Error("Network response was not ok");return await t.json()}catch(t){throw console.error("Error fetching subscription status",t),t}};async function kc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"monthly";try{const t=await Ec(),n=window.location.pathname+window.location.search,r=await fetch("".concat("https://api.medrpt.ai","/api/user/premium"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({redirectUrl:"/thankyou?redirect=".concat(encodeURIComponent(n)),planType:e})});if(!r.ok)throw new Error("Network response was not ok");const o=await r.json();window.location.href=o.checkoutUrl}catch(t){throw console.error("Error fetching results:",t),t}}async function _c(e){const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/user/changePlan"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({planType:e})}),r=await n.json();if(!n.ok)throw new Error(r.message||"Failed to change plan");return r}const Nc=async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/study-designs"),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)}});if(!t.ok)throw new Error("Network response was not ok");return(await t.json()).studyDesigns}catch(e){throw console.error("Error fetching study designs:",e),e}},Ic=async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/api/user/organizations"),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){if(404===t.status)return null;throw new Error("Network response was not ok")}return await t.json()}catch(e){throw console.error("Error fetching user's organization:",e),e}},Pc=async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/file/").concat(e),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!n.ok)throw new Error("Network response was not ok");return await n.json()}catch(t){throw console.error("Error fetching organization files:",t),t}},Rc=async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/file/").concat(e,"/").concat(t),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)}});if(!r.ok){if(404===r.status)return null;throw new Error("Network response was not ok")}return(await r.json()).url}catch(n){throw console.error("Error fetching signed file URL:",n),n}},Dc=(e,t,n,r,o)=>{const a={question:e,filters:t,pico:n,query:r,searchMode:o,timeStamp:Date.now()};sessionStorage.setItem("pendingFormState",JSON.stringify(a))},Lc=()=>{sessionStorage.removeItem("pendingFormState")},Oc=async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/api/user/info"),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok)throw new Error("Network response was not ok");return await t.json()}catch(e){throw console.error("Error fetching user details:",e),e}},Mc=async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/enterprise/").concat(e),{method:"GET",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}});if(!n.ok){const e=await n.json();throw new Error(e.error||"Failed to fetch enterprise")}const r=await n.json();return r.enterprise?r.enterprise:r}catch(t){throw console.error("Error fetching enterprise by id:",t),t}},jc=async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/").concat(e),{method:"GET",headers:{Authorization:"Bearer ".concat(t),"Content-type":"application/json"}});if(!n.ok)throw new Error("Network response was not ok");return await n.json()}catch(t){throw console.error("Error fetching sources",t),t}},Fc=async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/review/").concat(e,"/added-articles"),{method:"PUT",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({articleUniqueIds:t})});if(!r.ok){const e=await r.json(),t=e.message||e.error||"Failed to save added articles";throw new Error(t)}}catch(n){throw console.error("Error saving added articles",n),n}},Bc=async e=>{try{const r={"Content-type":"application/json"};try{var t;const{idToken:e}=null!==(t=(await hc()).tokens)&&void 0!==t?t:{};e&&(r.Authorization="Bearer ".concat(e))}catch(n){}const o=await fetch("".concat("https://api.medrpt.ai","/api/content?type=").concat(e),{method:"GET",headers:r});if(!o.ok)throw new Error("Network response was not ok");return await o.json()}catch(n){throw console.error("Error fetching FAQs",n),n}},Uc=async function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;try{const o=await Ec(),a=await fetch("".concat("https://api.medrpt.ai","/api/content"),{method:"POST",headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"},body:JSON.stringify({question:e,answer:t,isActive:n,type:r})});if(!a.ok){const e=await a.json();throw new Error(e.error||"Failed to create FAQ")}return await a.json()}catch(o){throw console.error("Error creating FAQ",o),o}},zc=async(e,t,n,r,o)=>{try{const a=await Ec(),i=await fetch("".concat("https://api.medrpt.ai","/api/content/").concat(r),{method:"PUT",headers:{Authorization:"Bearer ".concat(a),"Content-Type":"application/json"},body:JSON.stringify({question:e,answer:t,isActive:n,type:o})});if(!i.ok){const e=await i.json();throw new Error(e.error||"Failed to update FAQ")}}catch(a){throw console.error("Error updating FAQ",a),a}},Hc=async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/content/").concat(e),{method:"DELETE",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}});if(!n.ok){const e=await n.json();throw new Error(e.error||"Failed to delete FAQ")}return await n.json()}catch(t){throw console.error("Error deleting FAQ",t),t}},Wc=async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/api/unsubscribe"),{method:"PUT",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){const e=await t.json(),n=e.message||e.error||"Failed to gather sources";throw new Error(n)}}catch(e){throw console.error("Error updating sources",e),e}},Vc=async e=>{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/abstractScreeningStatus/").concat(e),{method:"GET",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}});if(!n.ok){const e=await n.json().catch((()=>({}))),t=e.message||e.error||"Failed to fetch screening status";throw new Error(t)}return n.json()},Gc=async(e,t)=>{let{columnName:n,screeningQuestion:r,columnId:o}=t;try{const t=await Ec(),a=await fetch("".concat("https://api.medrpt.ai","/api/review/upsertAbstractScreeningColumn/").concat(e),{method:"POST",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},body:JSON.stringify({columnName:n,screeningQuestion:r,columnId:o})});if(!a.ok){const e=await a.json(),t=e.message||e.error||"Failed to add screening column";throw new Error(t)}return await a.json()}catch(a){throw console.error("Error creating abstract screening column",a),a}},qc=async e=>{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/extractionStatus/").concat(e),{method:"GET",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}});if(!n.ok){const e=await n.json().catch((()=>({}))),t=e.message||e.error||"Failed to fetch extraction status";throw new Error(t)}return n.json()},Yc=async e=>{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/researchGapStatus/").concat(e),{method:"GET",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}});if(!n.ok){const e=await n.json().catch((()=>({}))),t=e.message||e.error||"Failed to fetch research gap status";throw new Error(t)}return n.json()},Qc=async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/review/translate/").concat(e),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)},body:JSON.stringify({targetLanguage:t})});if(!r.ok)throw new Error("Failed to translate report");return r.json()}catch(n){throw console.error("Error translating lit review report:",n),n}},Xc=async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/simplify/").concat(e),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!n.ok)throw new Error("Failed to simplify report");return n.json()}catch(t){throw console.error("Error simplifying lit review report:",t),t}},Kc=async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/").concat(e),{method:"GET",headers:{"Content-type":"application/json",Authorization:"Bearer ".concat(t)}});if(!n.ok)throw new Error("Failed to fetch literature review");return await n.json()}catch(t){throw console.error("Error fetching literature review:",t),t}},Jc=e=>{let{toggleModal:t,setSearchMode:n,searchMode:r,availableSearchModes:o}=e;const{filters:i,setFilters:s}=(0,a.useContext)(lr),{fromDate:l,toDate:c,abstracts:u,studyDesigns:d}=i,[p,h]=(0,a.useState)({from:"",to:""}),[f,m]=(0,a.useState)([]),[g,A]=(0,a.useState)(!1);(0,a.useEffect)((()=>{(async()=>{try{A(!0);const e=(await Nc()).map((e=>({value:e.value,label:e.label})));m(e)}catch(p){console.error("Error loading study designs",p)}finally{A(!1)}})()}),[]);return(0,$e.jsxs)(zt,{elevation:8,className:"FilterCard",children:[(0,$e.jsxs)(yr,{className:"FilterCard__Header",children:[(0,$e.jsxs)(yr,{className:"FilterCard__Title",children:[(0,$e.jsx)(Sl,{className:"FilterCard__Icon"}),(0,$e.jsx)(Tr,{variant:"h5",component:"h2",className:"FilterCard__TitleText",children:"Search Filters"})]}),(0,$e.jsx)(Yn,{onClick:t,className:"FilterCard__CloseButton",size:"small",children:(0,$e.jsx)(Tl,{})})]}),(0,$e.jsx)(Dr,{className:"FilterCard__Divider"}),(0,$e.jsxs)(yr,{className:"FilterCard__Content",children:[(0,$e.jsxs)(yr,{className:"YearRange",children:[(0,$e.jsx)(Tr,{variant:"h6",component:"h3",className:"YearRange__Title",children:"Publication Date Range"}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",className:"YearRange__Subtitle",children:"Specify the time period for your search"}),(0,$e.jsxs)(ro,{direction:"row",spacing:2,className:"YearRange__Inputs",children:[(0,$e.jsx)(Is,{label:"From Date",placeholder:"YYYY/MM/DD",variant:"outlined",value:l,onCh
2ange:e=>s((t=>({...t,fromDate:e.target.value}))),error:!!p.from,helperText:p.from,className:"YearRange__Input",size:"small"}),(0,$e.jsx)(Is,{label:"To Date",placeholder:"YYYY/MM/DD",variant:"outlined",value:c,onChange:e=>s((t=>({...t,toDate:e.target.value}))),error:!!p.to,helperText:p.to,className:"YearRange__Input",size:"small"})]})]}),(0,$e.jsxs)(yr,{className:"SearchModeSection",children:[(0,$e.jsx)(Tr,{variant:"h6",component:"h3",className:"SearchModeSection__Title",children:"Search Mode"}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",className:"SearchModeSection__Subtitle",children:"Choose how you want to search through the data"}),(0,$e.jsx)(Ea,{size:"small",variant:"outlined",className:"SearchModeSection__Dropdown",fullWidth:!0,children:(0,$e.jsx)(Cs,{labelId:"search-mode-label",id:"search-mode-select",value:r,onChange:e=>n(e.target.value),displayEmpty:!0,children:o.map((e=>(0,$e.jsx)(Bs,{value:e,children:e.charAt(0).toUpperCase()+e.slice(1)},e)))})})]}),(0,$e.jsxs)(yr,{className:"Methodology",children:[(0,$e.jsxs)(Tr,{variant:"h6",component:"h3",className:"Methodology__Title",children:[" ","Methodology"," "]}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",className:"Methodology__Subtitle",children:"Select study design"}),g?(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",children:"Loading study designs..."}):(0,$e.jsx)(Ws,{className:"Methodology__CheckboxGroup",children:f.map((e=>(0,$e.jsx)(Xs,{control:(0,$e.jsx)(hl,{checked:d.includes(e.value),onChange:t=>{return n=e.value,r=t.target.checked,void s((e=>({...e,studyDesigns:r?[...e.studyDesigns,n]:e.studyDesigns.filter((e=>e!==n))})));var n,r},value:e.value,size:"small"}),label:e.label,className:"Methodology__Checkbox"},e.value)))})]})]}),(0,$e.jsx)(Dr,{className:"FilterCard__Divider"}),(0,$e.jsxs)(yr,{className:"FilterCard__Actions",children:[(0,$e.jsx)(Cl,{variant:"outlined",onClick:()=>{s({fromDate:"",toDate:"",abstracts:"",studyDesigns:[]}),h({from:"",to:""})},className:"FilterCard__ClearButton",size:"medium",children:"Clear All"}),(0,$e.jsx)(Cl,{variant:"contained",onClick:()=>{(()=>{let e=!0;const t={from:"",to:""},n=/^\d{4}\/\d{2}\/\d{2}$/,r=e=>{if(!n.test(e))return null;const[t,r,o]=e.split("/"),a=Number(t),i=Number(r),s=Number(o),l=new Date(a,i-1,s);return l.getFullYear()!==a||l.getMonth()!==i-1||l.getDate()!==s?null:l},o=l?r(l):null,a=c?r(c):null;return l&&!o&&(t.from="Enter a valid date in YYYY/MM/DD format",e=!1),c&&!a&&(t.to="Enter a valid date in YYYY/MM/DD format",e=!1),o&&a&&o>a&&(t.from="From date cannot be after To date",e=!1),h(t),e})()&&t()},className:"FilterCard__ApplyButton",size:"medium",children:"Apply Filters"})]})]})},Zc=(0,a.createContext)(),$c=e=>{let{children:t}=e;const[n,r]=(0,a.useState)({P:"",I:"",C:"",O:"",IC:"",EC:""});return(0,$e.jsx)(Zc.Provider,{value:{pico:n,setPico:r},children:t})},eu=()=>{const{pico:e,setPico:t}=(0,a.useContext)(Zc),{P:n,I:r,C:o,O:i,IC:s,EC:l}=e;return(0,$e.jsxs)(yr,{className:"PicoDetails",children:[(0,$e.jsx)(Tr,{variant:"h6",component:"h3",className:"PicoDetails__Title",children:"Pico Details"}),(0,$e.jsxs)(ro,{direction:"column",spacing:2,className:"PicoDetails__Inputs",children:[(0,$e.jsx)(Is,{label:"Population",variant:"outlined",value:n,onChange:e=>t((t=>({...t,P:e.target.value}))),required:!0,multiline:!0,className:"PicoDetails__Input"}),(0,$e.jsx)(Is,{label:"Intervention",variant:"outlined",value:r,onChange:e=>t((t=>({...t,I:e.target.value}))),required:!0,multiline:!0,className:"PicoDetails__Input"}),(0,$e.jsx)(Is,{label:"Comparision",variant:"outlined",value:o,onChange:e=>t((t=>({...t,C:e.target.value}))),required:!0,multiline:!0,className:"PicoDetails__Input"}),(0,$e.jsx)(Is,{label:"Outcome",variant:"outlined",value:i,onChange:e=>t((t=>({...t,O:e.target.value}))),required:!0,multiline:!0,className:"PicoDetails__Input"}),(0,$e.jsx)(Is,{label:"Inclusion Criteria",variant:"outlined",value:s,onChange:e=>t((t=>({...t,IC:e.target.value}))),required:!0,multiline:!0,className:"PicoDetails__Input"}),(0,$e.jsx)(Is,{label:"Exclusion Criteria",variant:"outlined",value:l,onChange:e=>t((t=>({...t,EC:e.target.value}))),required:!0,multiline:!0,className:"PicoDetails__Input"})]})]})},tu=e=>{let{setQuery:t,query:n}=e;return(0,$e.jsxs)(yr,{className:"QueryTerm",children:[(0,$e.jsx)(Tr,{variant:"h6",component:"h3",className:"QueryTerm__Title",children:"Query Term"}),(0,$e.jsx)(Is,{variant:"outlined",value:n,onChange:e=>t(e.target.value),required:!0,multiline:!0,fullWidth:!0,className:"QueryTerm__Input"})]})},nu=e=>
2{let{toggleModalAdvanced:t,setQuery:n,query:r}=e;return(0,$e.jsxs)(zt,{elevation:8,className:"AdvancedCard",children:[(0,$e.jsxs)(yr,{className:"AdvancedCard__Header",children:[(0,$e.jsxs)(yr,{className:"AdvancedCard__Title",children:[(0,$e.jsx)(Sl,{className:"AdvancedCard__Icon"}),(0,$e.jsx)(Tr,{variant:"h5",component:"h2",className:"AdvancedCard__TitleText",children:"Advanced Filters"})]}),(0,$e.jsx)(Yn,{onClick:t,className:"AdvancedCard__CloseButton",size:"small",children:(0,$e.jsx)(Tl,{})})]}),(0,$e.jsx)(Dr,{className:"AdvancedCard__Divider"}),(0,$e.jsxs)(yr,{className:"AdvancedCard__Content",children:[(0,$e.jsx)(eu,{}),(0,$e.jsx)(tu,{setQuery:n,query:r})," "]}),(0,$e.jsx)(Dr,{className:"AdvancedCard__Divider"}),(0,$e.jsxs)(yr,{className:"AdvancedCard__Actions",children:[(0,$e.jsx)(Cl,{variant:"contained",onClick:async e=>{e.preventDefault(),t()},className:"AdvancedCard__ApplyButton",size:"medium",children:"Apply"})," "]})]})},ru={WEEKLY:"WEEKLY",MONTHLY:"MONTHLY",QUARTERLY:"QUARTERLY",YEARLY:"YEARLY"},ou=e=>{let{isVisible:t,onClose:n,onConfirm:r}=e;const[o,i]=(0,a.useState)(ru.WEEKLY);if(!t)return null;return(0,$e.jsx)("div",{className:"scheduler-overlay",onClick:n,children:(0,$e.jsxs)("div",{className:"schedule-confirmation-card",onClick:e=>e.stopPropagation(),children:[(0,$e.jsx)("div",{className:"card-header",children:(0,$e.jsx)("h3",{children:"Automate Your Search"})}),(0,$e.jsxs)("div",{children:[(0,$e.jsx)("p",{children:"Automatically run searches at a specified frequency without manual effort."}),(0,$e.jsxs)(Ea,{variant:"outlined",sx:{minWidth:120},children:[(0,$e.jsx)(Aa,{id:"frequency-label",children:"Frequency"}),(0,$e.jsx)(Cs,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:e=>i(e.target.value),children:Object.values(ru).map((e=>(0,$e.jsx)(Bs,{value:e,children:e},e)))})]})]}),(0,$e.jsxs)("div",{className:"card-actions",children:[(0,$e.jsx)("button",{onClick:()=>{r(o)},children:"Yes, Schedule it!"}),(0,$e.jsx)("button",{onClick:n,children:"Maybe Later"})]})]})})};var au=n(8443),iu=a.useLayoutEffect;function su(e){return"state"in e}var lu=function(e,t){return e===t},cu=function(e,t){if("state"in(o=e)&&"machine"in o){if(0===e.status&&t.current)return t.current;var n=0!==(r=e).status?r.getSnapshot():r.machine.initialState;return t.current=0===e.status?n:null,n}var r,o;return su(e)?e.state:void 0};const uu=e=>{var t;return null===(t=e.context.actorRef)||void 0===t?void 0:t.getSnapshot()},du=e=>{var t;return null===(t=uu(e))||void 0===t?void 0:t.context},pu=e=>{const t=t=>n=>e({type:t,data:n});return{initializeMachine:t("INIT"),resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toForgotPassword:t("FORGOT_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},hu=e=>{let{send:t,state:n}=e;const r=pu(t),o=(e=>{var t,n,r,o,a;const i=null!==(t=du(e))&&void 0!==t?t:{},{challengeName:s,codeDeliveryDetails:l,remoteError:c,validationError:u,totpSecretCode:d=null,unverifiedUserAttributes:p,username:h}=i,{socialProviders:f=[]}=null!==(n=null===(r=e.context)||void 0===r?void 0:r.config)&&void 0!==n?n:{},m=null!==(o=null===i||void 0===i?void 0:i.user)&&void 0!==o?o:null===(a=e.context)||void 0===a?void 0:a.user,g=!!(u&&Object.keys(u).length>0),A=uu(e),v=e.hasTag("pending")||(null===A||void 0===A?void 0:A.hasTag("pending")),y=((e,t)=>{if(null!==t&&void 0!==t&&t.matches("federatedSignIn")){if(e.matches("signUpActor"))return"signUp";if(e.matches("signInActor"))return"signIn"}switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case null===t||void 0===t?void 0:t.matches("confirmSignUp"):case null===t||void 0===t?void 0:t.matches("resendSignUpCode"):return"confirmSignUp";case null===t||void 0===t?void 0:t.matches("confirmSignIn"):return"confirmSignIn";case null===t||void 0===t?void 0:t.matches("setupTotp.edit"):case null===t||void 0===t?void 0:t.matches("setupTotp.submit"):return"setupTotp";case null===t||void 0===t?void 0:t.matches("signIn"):return"signIn";case null===t||void 0===t?void 0:t.matches("signUp"):case null===t||void 0===t?void 0:t.matches("autoSignIn"):return"signUp";case null===t||void 0===t?void 0:t.matches("forceChangePassword"):return"forceNewPassword";case null===t||void 0===t?void 0:t.matches("forgotPassword"):return"forgotPassword";case null===t||void 0===t?void 0:t.matches("confirmResetPassword"):return"confirmResetPassword";case null===t||void 0===t?void 0:t.matches("selectUserAttributes"):return"verifyUser";case null===t||void 0===t?void 0:t.matches("confirmVerifyUserAttribute"):return"confirmVerifyUser";case e.matches("getCurrentUser"):case null===t||void 0===t?void 0:t.matches("fetchUserAttributes"):return"transition";default:return null}})(e,A);return{authStatus:(e=>{switch(e){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}})(y),challengeName:s,codeDeliveryDetails:l,error:c,hasValidationErrors:g,isPending:v,route:y,socialProviders:f,totpSecretCode:d,unverifiedUserAttributes:p,user:m,username:h,validationErrors:u}})(n);return{...r,...o}},fu=a.createContext(null),mu="`useAuthenticator` must be used inside an `Authenticator.Provider`.";function gu(e){return null!=e&&!Array.isArray(e)&&"object"===typeof e}function Au(e){return"string"===typeof e||"object"===typeof e&&"[object String]"===Object.prototype.toString.call(e)}function vu(e){if(null===e||void 0===e)return!0;
2if(gu(e)&&(function(e){return gu(e)&&"[object Map]"===Object.prototype.toString.call(e)}(e)||function(e){return gu(e)&&"[object Set]"===Object.prototype.toString.call(e)}(e)))return!e.size;if(gu(e)&&(Au(e)||Array.isArray(e)))return!e.length;for(const t in e)if(xu(e,t))return!1;return!0}function yu(e){return Array.isArray(e)&&vu(e)}function bu(e){return gu(e)&&vu(e)}function xu(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function wu(e){return"function"===typeof e}const Eu=(e,t)=>t?"".concat(e,"--").concat(t):"",Cu=(e,t,n)=>n?"".concat(e,"--").concat(t):"";function Su(){}const Tu=["username","email","phone_number","birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website","confirmation_code","password","confirm_password"],ku=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+29
21","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],_u={birthdate:{label:"Birthdate",placeholder:"Enter your Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",placeholder:"Enter your Confirmation Code",type:"text",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",placeholder:"Please confirm your Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",placeholder:"Enter your Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",placeholder:"Enter your Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",placeholder:"Enter your Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",placeholder:"Enter your Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",placeholder:"Enter your Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",placeholder:"Enter your Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",placeholder:"Enter your Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",placeholder:"Enter your Phone Number",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:ku,isRequired:!0},preferred_username:{label:"Preferred Username",placeholder:"Enter your Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",placeholder:"Add your Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",placeholder:"Add your Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",placeholder:"Enter your Username",type:"text",autocomplete:"username",isRequired:!0}},Nu=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Iu=e=>Tu.includes(e),Pu=e=>{return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Ru=new Il("I18n");let Du=class{constructor(){this._options=null,this._lang=null,this._dict={}}setDefaultLanguage(){!this._lang&&"undefined"!==typeof window&&window&&window.navigator&&(this._lang=window.navigator.language),Ru.debug(this._lang)}setLanguage(e){this._lang=e}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(this.setDefaultLanguage(),!this._lang)return"undefined"!==typeof t?t:e;const n=this._lang;let r=this.getByLanguage(e,n);return r||(n.indexOf("-")>0&&(r=this.getByLanguage(e,n.split("-")[0])),r||("undefined"!==typeof t?t:e))}getByLanguage(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return n;const r=this._dict[t];return r?r[e]:n}putVocabulariesForLanguage(e,t){let n=this._dict[e];n||(n=this._dict[e]={}),this._dict[e]={...n,...t}}putVocabularies(e){Object.keys(e).forEach((t=>{this.putVocabulariesForLanguage(t,e[t])}))}};const Lu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pl;return(n,r,o)=>{const{message:a,recoverySuggestion:i}=e[r];if(!n)throw new t({name:r,message:o?"".concat(a," ").concat(o):a,recoverySuggestion:i})}};var Ou;!function(e){e.NotConfigured="NotConfigured"}(Ou||(Ou={}));const Mu=Lu({[Ou.NotConfigured]:{message:"i18n is not configured."}}),ju=new Il("I18n");let Fu={language:null},Bu=null;class Uu{static configure(e){return ju.debug("configure I18n"),e?(Fu=Object.assign({},Fu,e.I18n||e),Uu.createInstance(),Fu):Fu}static getModuleName(){return"I18n"}static createInstance(){ju.debug("create I18n instance"),Bu||(Bu=new Du)}static setLanguage(e){Uu.checkConfig(),Mu(!!Bu,Ou.NotConfigured),Bu.setLanguage(e)}static get(e,t){return Uu.checkConfig()?(Mu(!!Bu,Ou.NotConfigured),Bu.get(e,t)):"undefined"===typeof t?e:t}static putVocabulariesForLanguage(e,t){Uu.checkConfig(),Mu(!!Bu,Ou.NotConfigured),Bu.putVocabulariesForLanguage(e,t)}static putVocabularies(e){Uu.checkConfig(),Mu(!!Bu,Ou.NotConfigured),Bu.putVocabularies(e)}static checkConfig(){return Bu||Uu.createInstance(),!0}}Uu.createInstance();const zu={...{ADD_PROFILE:"Add your Profile",ADD_WEBSITE:"Add your Website",BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CODE_ARRIVAL:"It may take a minute to arrive",CODE_EMAILED:"Your code is on the way. To log in, enter the code we emailed to",CODE_SENT:"Your code is on the way. To log in, enter the code we sent you",CODE_TEXTED:"Your code is on the way. To log in, enter the code we texted to",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Please confirm your Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_MFA_DEFAULT:"Confirm MFA Code",CONFIRM_TOTP:"C
2onfirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CREATE_ACCOUNT:"Create Account",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",ENTER_BIRTHDATE:"Enter your Birthdate",ENTER_CODE:"Enter your code",ENTER_CONFIRMATION_CODE:"Enter your Confirmation Code",ENTER_EMAIL:"Enter your Email",ENTER_FAMILY_NAME:"Enter your Family Name",ENTER_GIVEN_NAME:"Enter your Given Name",ENTER_MIDDLE_NAME:"Enter your Middle Name",ENTER_NAME:"Enter your Name",ENTER_NICK_NAME:"Enter your Nickname",ENTER_PASSWORD:"Enter your Password",ENTER_PHONE_NUMBER:"Enter your Phone Number",ENTER_PREFERRED_USERNAME:"Enter your Preferred Username",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_PASSWORD:"Forgot Password?",FORGOT_YOUR_PASSWORD:"Forgot your password?",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",OR:"or",PASSWORD:"Password",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",SENDING:"Sending",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SUBMIT:"Submit",SUBMITTING:"Submitting",UPPERCASE_COPY:"COPY",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WE_EMAILED:"We Emailed You",WE_SENT_CODE:"We Sent A Code",WE_TEXTED:"We Texted You",WEBSITE:"Website"}};function Hu(e){return Uu.get(e)}const Wu=e=>{var t;const n=null===e||void 0===e||null===(t=e.context.config)||void 0===t?void 0:t.loginMechanisms,[r]=null!==n&&void 0!==n?n:["username"];return r},Vu=e=>{let t=_u[e];const{type:n}=t;return"tel"===n&&(t={...t,dialCode:"+1"}),t},Gu=e=>{const t=Wu(e);return{...Vu(t),autocomplete:"username"}},qu=e=>({confirmation_code:{...Vu("confirmation_code"),label:"Code *",placeholder:"Code"}}),Yu={signIn:e=>({username:{...Gu(e)},password:{...Vu("password"),autocomplete:"current-password"}}),signUp:e=>{const{loginMechanisms:t,signUpAttributes:n}=e.context.config,r=Wu(e),o=Array.from(new Set([...t,"password","confirm_password",...n])),a={};for(const i of o)if(Iu(i)){const t=i===r?Gu(e):Vu(i);a[i]={...t}}else console.debug("Authenticator does not have a default implementation for ".concat(i,". Customize SignUp FormFields to add your own."));return a},confirmSignUp:e=>({confirmation_code:{...Vu("confirmation_code"),placeholder:"Enter your code"}}),confirmSignIn:qu,forceNewPassword:e=>{const t=uu(e),{missingAttributes:n}=t.context,r=Array.from(new Set(["password","confirm_password",...null!==n&&void 0!==n?n:[]])),o={};for(const a of r)Iu(a)?o[a]={...Vu(a)}:console.debug("Authenticator does not have a default implementation for ".concat(a,". Customize ForceNewPassword FormFields to add your own."));return o},forgotPassword:e=>{const t=Wu(e),{label:n}=_u[t];return{username:{...Gu(e),label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())}}},confirmResetPassword:e=>({...qu(),password:{...Vu("password"),label:"New Password",placeholder:"New Password"},confirm_password:{...Vu("confirm_password"),label:"Confirm Password",placeholder:"Confirm Password"}}),confirmVerifyUser:qu,setupTotp:qu},Qu=(e,t)=>{var n;const r=null===(n=du(t))||void 0===n||null===(n=n.formFields)||void 0===n?void 0:n[e];return r&&0!==Object.keys(r).length?Object.entries(r).reduce(((n,r)=>{let[o,a]=r;if("signIn"!==e&&"forgotPassword"!==e||"username"!==o){if((e=>Tu.includes(e))(o)){const e={..._u[o],...a};return{...n,[o]:e}}return{...n,[o]:a}}{const e={...Gu(t),...a};return{...n,[o]:e}}}),{}):{}},Xu=(e,t)=>{const n=((e,t)=>(0,Yu[e])(t))(e,t),r={...n,...Qu(e,t)};return delete r.QR,(e=>{const t={...e};for(const[n,r]of Object.entries(e)){const{label:e,placeholder:o}=r;t[n]={...r,label:e?Hu(e):void 0,placeholder:o?Hu(o):void 0}}return t})(r)},Ku=(e,t)=>
2(e=>e.map((e=>[e[0],{...e[1],order:void 0}])))((e=>Object.entries(e).sort(((e,t)=>(e[1].order||Number.MAX_VALUE)-(t[1].order||Number.MAX_VALUE))).filter((e=>void 0!==e[1])))(Xu(e,t))),Ju=["confirmResetPassword","confirmSignIn","confirmSignUp","confirmVerifyUser","forceNewPassword","forgotPassword","setupTotp","signIn","signUp","verifyUser"];const Zu=()=>!1;function $u(e,t){return e.length===t.length&&e.every(((e,n)=>{const r=t[n];return!(!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(yu)}(e,r)&&!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(bu)}(e,r))||e===r}))}const ed=e=>(t,n)=>$u(e(t),e(n)),td=e=>{var t;return{...null===(t=du(e))||void 0===t||null===(t=t.formFields)||void 0===t||null===(t=t.setupTotp)||void 0===t?void 0:t.QR}},nd=(e,t,n)=>(e=>Ju.some((t=>t===e)))(e)?"verifyUser"===e?(e=>e&&Object.entries(e).map((e=>{let[t,n]=e;return Au(n)&&t?{name:t,label:n,type:"radio",value:n}:{}})))(n):Ku(e,t).flatMap((e=>{let[t,n]=e;return{name:t,...n}})):[];function rd(e){const t=a.useContext(fu);if(!t)throw new Error(mu);const{service:n}=t,{send:r}=n,o=(0,a.useCallback)((e=>({...hu({send:r,state:e})})),[r]),i=e?ed(e):Zu,{authStatus:s}=t,l=function(e,t,n,r){void 0===n&&(n=lu);var o=(0,a.useRef)(null),i=(0,a.useCallback)((function(t){return e.subscribe(t).unsubscribe}),[e]),s=(0,a.useCallback)((function(){return r?r(e):cu(e,o)}),[e,r]);return(0,au.useSyncExternalStoreWithSelector)(i,s,s,t,n)}(n,o,i),{route:c,totpSecretCode:u,unverifiedUserAttributes:d,user:p,...h}=l,f=n.getSnapshot(),m="setupTotp"===c?td(f):null;return{...h,authStatus:s,route:c,totpSecretCode:u,unverifiedUserAttributes:d,user:p,fields:nd(c,f,d),QRFields:m}}const od=function(e){let{enabled:t,charDelayMs:n=60,holdDurationMs:r=2500,gapBeforeNextMs:o=400}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[i,s]=(0,a.useState)(""),l=(0,a.useRef)(0),c=(0,a.useRef)(0),u=(0,a.useRef)(null);return(0,a.useEffect)((()=>{const a=()=>{u.current&&(clearTimeout(u.current),u.current=null)};if(!t||null===e||void 0===e||!e.length)return a(),s(""),l.current=0,c.current=0,a;const i=()=>{const t=e[l.current];t?(c.current+=1,s(t.slice(0,c.current)),c.current<t.length?u.current=setTimeout(i,n):l.current<e.length-1?u.current=setTimeout(d,r):u.current=setTimeout((()=>{s("")}),r)):s("")},d=()=>{s(""),l.current+=1,c.current=0,l.current<e.length&&(u.current=setTimeout(i,o))};return l.current=0,c.current=0,i(),a}),[t,e]),i},ad=["What is the long-term efficacy of GLP-1 receptor agonists for weight management in adults without diabetes?"],id=e=>{let{search:t,scheduleSearch:n,defaultText:r,setQuery:o=()=>{},query:i}=e;const s=$(),l=s.pathname.startsWith("/search"),c="/"===s.pathname,u="/screening"===s.pathname,{user:d}=rd((e=>[e.user])),[p,h]=(0,a.useState)(r||""),[f,m]=(0,a.useState)(!1),g=od(ad,{enabled:""===p&&!f}),[A,v]=(0,a.useState)("public"),[y,b]=(0,a.useState)(["public"]),[x,w]=(0,a.useState)(!1),[E,C]=(0,a.useState)(!1),[S,T]=(0,a.useState)(!1),k=(0,a.useRef)(),_=(0,a.useRef)(),[N,I]=(0,a.useState)({open:!1,message:"",severity:"info"}),{setFilters:P}=(0,a.useContext)(lr),{setPico:R}=(0,a.useContext)(Zc),D=(0,a.useRef)(!1);(0,a.useEffect)((()=>{Tc().then((e=>{e.isActive?b(["public","private","hybrid"]):b(["public"])})).catch((e=>{console.error("Error checking subscription status:",e)}))}),[]),(0,a.useEffect)((()=>{const e=(()=>{try{const e=sessionStorage.getItem("pendingFormState");if(e){const t=JSON.parse(e),n=36e5;if(Date.now()-t.timeStamp<n)return t;Lc()}}catch(e){console.error("Error retrieving user search terms: ",e)}return null})();e&&!D.current?(D.current=!0,e.question&&h(e.question),e.searchMode&&v(e.searchMode),e.query&&o(e.query),e.filters&&P(e.filters),e.pico&&R(e.pico),Lc()):!c||e||D.current||(D.current=!0,d||h("What is the evidence for "),P({selectedSex:"",fromYear:"",toYear:"",age:"",abstracts:"",studyDesigns:[]}))}),[d,c]);const L=()=>{const e=p.trim();h(e),t(e,A)},O=()=>{w(!x)},M=()=>{C(!E)},j=()=>{I({...N,open:!1})};return(0,$e.jsxs)("div",{className:"Card",children:[(0,$e.jsx)("div",{className:"SearchContainer",children:(0,$e.jsx)("div",{className:"InputQuestionDiv InputQuestionDiv--relative",children:(0,$e.jsx)("textarea",{rows:5,cols:5,className:"InputQuestion InputQuestion--withDropdown",placeholder:g,value:p,onFocus:()=>m(!0),onClick:()=>m(!0),onChange:e=>{h(e.target.value)}})})}),l&&(0,$e.jsxs)("div",{children:[(0,$e.jsxs)("div",{className:"C
2ardButtons",children:[(0,$e.jsx)("div",{className:"Button FilterButton",onClick:O,children:"Filter"}),(0,$e.jsx)("div",{className:"Button FilterButton",onClick:M,children:"Advanced"})]}),(0,$e.jsxs)("div",{classNames:"searchButtons",children:[(0,$e.jsx)("div",{className:"Button SubmitButton SearchButton",onClick:L,children:"Submit your question"}),(0,$e.jsx)("div",{className:"Button SubmitButton SearchButton",onClick:()=>T(!0),children:"Schedule Periodic Runs"})]})]}),!l&&(0,$e.jsx)("div",{children:(0,$e.jsxs)("div",{className:"CardButtons",children:[!u&&(0,$e.jsx)("div",{className:"Button FilterButton",onClick:O,children:"Filter"}),(0,$e.jsx)("div",{className:"Button SubmitButton",onClick:L,children:"Submit your question"})]})}),x&&(0,$e.jsx)("div",{className:"FilterCardOverlay",ref:k,onClick:e=>{e.target===k.current&&w(!1)},children:(0,$e.jsx)(Jc,{toggleModal:O,setSearchMode:v,searchMode:A,availableSearchModes:y})}),E&&(0,$e.jsx)("div",{className:"FilterCardOverlay",ref:_,onClick:e=>{e.target===_.current&&C(!1)},children:(0,$e.jsx)(nu,{toggleModalAdvanced:M,setQuery:o,query:i})}),S&&(0,$e.jsx)(ou,{isVisible:S,onClose:()=>T(!1),onConfirm:e=>{const t=p.trim();h(t),n(t,A,e),T(!1)}}),(0,$e.jsx)(en,{open:N.open,autoHideDuration:6e3,onClose:j,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,$e.jsx)(sr,{onClose:j,severity:N.severity,children:N.message})})]})},sd=e=>{let{search:t}=e;const n=e=>{t(e)};return(0,$e.jsxs)("div",{className:"RecentCard",children:[(0,$e.jsx)("div",{className:"Header",children:"Recent Searched Topics"}),(0,$e.jsxs)("div",{className:"Content",children:[(0,$e.jsx)("div",{className:"Pil",onClick:()=>n("What has been reported about wildfire smoke and exacerbation of asthma and COPD?"),children:"What has been reported about wildfire smoke and exacerbation of asthma and COPD?"}),(0,$e.jsx)("div",{className:"Pil",onClick:()=>n("What is the evidence behind the most recent hypertension guideline changes?"),children:"What is the evidence behind the most recent hypertension guideline changes?"}),(0,$e.jsx)("div",{className:"Pil",onClick:()=>n("What are the changing demographics of cancers in women?"),children:"What are the changing demographics of cancers in women?"}),(0,$e.jsx)("div",{className:"Pil",onClick:()=>n("What are the risks and benefits of fluoridation of drinking water?"),children:"What are the risks and benefits of fluoridation of drinking water?"}),(0,$e.jsx)("div",{className:"Pil",onClick:()=>n("What is the association of COVID-19 vaccination with cardiovascular disease?"),children:"What is the association of COVID-19 vaccination with cardiovascular disease?"})]})]})};var ld=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).wnd,t=void 0===e?window:e;!function(e,t,n,r,o,a,i,s){var l=function(t){return!(t in e)||(e.console&&e.console.log&&e.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].'),!1)}(n);function c(e){var t,n=[];function r(){t&&(n.forEach((function(e){var n;try{n=e[t[0]]&&e[t[0]](t[1])}catch(r){return void(e[3]&&e[3](r))}n&&n.then?n.then(e[2],e[3]):e[2]&&e[2](n)})),n.length=0)}function o(e){return function(n){t||(t=[e,n],r())}}return e(o(0),o(1)),{then:function(e,t){return c((function(o,a){n.push([e,t,o,a]),r()}))}}}l&&(i=e[n]=function(){var e=function(e,n,r,o){function a(a,i){t(e,n,r,a,i,o)}o=o||2;var i,s=/Async$/;return s.test(e)?(e=e.replace(s,""),"function"===typeof Promise?new Promise(a):c(a)):t(e,n,r,i,i,o)};function t(t,n,r,o,a,i){return e._api?e._api(t,n,r,o,a,i):(e.q&&e.q.push([t,n,r,o,a,i]),null)}return e.q=[],e}(),s=function(e){function t(t){"function"===typeof t[4]&&t[4](new Error(e))}var n=i.q;if(n){for(var r=0;r<n.length;r++)t(n[r]);n.length=0,n.push=t}},function(){(a=t.createElement(r)).async=!0,a.crossOrigin="anonymous",a.src="https://"+o,a.onerror=function(){s("Error loading "+o)};var e=t.getElementsByTagName(r)[0];e.parentNode.insertBefore(a,e)}(),function(){function e(){}function t(e,t,n){i(e,t,n,1)}function n(e,n,r){t("setProperties",{type:e,properties:n},r)}function r(e,t){n("user",e,t)}function o(e,t,n){r({uid:e},n),t&&r(t,n)}i.identify=o,i.setUserVars=r,i.identifyAccount=e,i.clearUserCookie=e,i.setVars=n,i.event=function(e,n,r){t("trackEvent",{name:e,properties:n},r)},i.anonymize=function(){o(!1)},i.shutdown=function(){t("shutdown")},i.restart=function(){t("restart")},i.log=function(e,n){t("log",{level:e,msg:n})},i.consent=function(e){t("setIdentity",{consent:!arguments.length||e})}}(),function(){var t="fetch",n="XMLHttpRequest";i._w={},i._w[n]=e[n],i._w[t]=e[t],e[t]&&(e[t]=function(){return i._w[t].apply(this,arguments)})}(),i._v="2.0.0")}(t,t.document,t._fs_namespace,"script",t._fs_script)},cd=(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.shouldInsertScript,n=void 0===t||t,r=e.globalVar,o=void 0===r?"window":r,a=e.apiVersion,i=void 0===a?"1.3.0":a;"(function(m,n,e,t,l,o,g,y){\n if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window[\"_fs_namespace\"].');} return;}\n g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];".concat(n?"\n o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;\n y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);":"","\n g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};\n g.anonymize=function(){g.identify(!!0)};\n g.shutdown=function(){g(\"rec\",!1)};g.restart=function(){g(\"rec\",!0)};\n g.log = function(a,b){g(\"log\",[a,b])};\n g.consent=function(a){g(\"consent\",!arguments.length||a)};\n g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};\n g.clearUserCookie=function(){};\n g.setVars=function(n, p){g('setVars',[n,p]);};\n g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];\n if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};\n g._v=\"").concat(i,'";\n})(').concat(o,",").concat(function(e){return"window"===e?"document":"".concat(e,".document")}(o),",").concat(o,"['_fs_namespace'],'script','user');")}(),function(){return cd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}
2,cd.apply(this,arguments)}),ud=function(){if(window._fs_namespace)return window[window._fs_namespace]},dd=function(){var e=ud();if(!e)throw Error("FullStory is not loaded, please ensure the init function is invoked before calling FullStory API functions");return e},pd=function(e,t){var n=cd({},e);if(ud())console.warn("The FullStory snippet has already been defined elsewhere (likely in the <head> element)");else{n.recordCrossDomainIFrames&&(window._fs_run_in_iframe=!0),n.appHost&&(window._fs_app_host=n.appHost),n.assetMapId&&(window._fs_asset_map_id=n.assetMapId),n.startCaptureManually&&(window._fs_capture_on_startup=!1),n.recordOnlyThisIFrame&&(window._fs_is_outer_script=!0),n.cookieDomain&&(window._fs_cookie_domain=n.cookieDomain),!0===n.debug&&(n.script?console.warn("Ignoring `debug = true` because `script` is set"):n.script="edge.fullstory.com/s/fs-debug.js"),function(e){var t=e.orgId,n=e.namespace,r=void 0===n?"FS":n,o=e.host,a=void 0===o?"fullstory.com":o,i=e.script,s=void 0===i?"edge.fullstory.com/s/fs.js":i;if(!t)throw new Error("FullStory orgId is a required parameter");window._fs_host=a,window._fs_script=s,window._fs_org=t,window._fs_namespace=r,ld()}(n);var r=ud();if(r){if(t&&r("observe",{type:"start",callback:t}),!0===n.devMode){var o="FullStory was initialized in devMode and will stop recording";r("trackEvent",{name:"FullStory Dev Mode",properties:{message:o}}),r("shutdown"),window._fs_dev_mode=!0,console.warn(o)}}else console.warn("Failed to initialize FS snippet")}},hd=function(e){return function(t,n){window._fs_initialized?e&&console.warn(e):(pd(t,n),window._fs_initialized=!0)}}("FullStory init has already been called once, additional invocations are ignored"),fd=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(window._fs_dev_mode){var r="FullStory is in dev mode and is not capturing: ".concat(e," method not executed");return console.warn(r),r}var o=ud();return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=dd();return e.every((function(e){return n[e]}))}(e)&&o?o[e].apply(o,t):(console.warn("FS.".concat(e," not ready")),null)}};!function(){var e=function(e,t,n){var r=dd();if(!window._fs_dev_mode)return r(e,t,n);var o="FullStory is in dev mode and is not capturing: ".concat(e," not executed");console.warn(o)};e.anonymize=fd("anonymize"),e.consent=fd("consent"),e.disableConsole=fd("disableConsole"),e.enableConsole=fd("enableConsole"),e.event=fd("event"),e.getCurrentSessionURL=fd("getCurrentSessionURL"),e.identify=fd("identify"),e.log=fd("log"),e.restart=fd("restart"),e.setUserVars=fd("setUserVars"),e.setVars=fd("setVars"),e.shutdown=fd("shutdown")}();const md=["Customized Reports","Customized Sources","Customized Alerts","Customized Branding","Custom To Your Workflow","Unlimited Users","Access literature review tools"],gd=()=>(0,$e.jsx)("span",{className:"enterprise-feature-icon","aria-hidden":"true",children:(0,$e.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,$e.jsx)("circle",{cx:"10",cy:"10",r:"9",fill:"currentColor"}),(0,$e.jsx)("path",{d:"M6 10.5L8.5 13L14 7.5",stroke:"#fff",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ad=e=>{let{onClose:t}=e;return(0,$e.jsx)("div",{className:"enterprise-modal-overlay",onClick:t,children:(0,$e.jsxs)("div",{className:"enterprise-modal-content",onClick:e=>e.stopPropagation(),children:[(0,$e.jsxs)("div",{className:"enterprise-modal-header",children:[(0,$e.jsx)("h3",{children:"MedRPT Pricing Plans"}),(0,$e.jsx)("button",{type:"button",className:"enterprise-modal-close",onClick:t,children:"\xd7"})]}),(0,$e.jsxs)("div",{className:"enterprise-card",children:[(0,$e.jsx)("div",{className:"enterprise-card-label",children:"ENTERPRISE"}),(0,$e.jsx)("h4",{className:"enterprise-card-heading",children:"Contact Us"}),(0,$e.jsx)("ul",{className:"enterprise-card-features",children:md.map((e=>(0,$e.jsxs)("li",{className:"enterprise-card-features-item",children:[(0,$e.jsx)(gd,{}),(0,$e.jsx)("span",{className:"enterprise-card-features-text",children:e})]},e)))}),(0,$e.jsx)("a",{href:"https://www.medrpt.ai/contact-us",target:"_blank",rel:"noopener noreferrer",className:"enterprise-card-btn",children:"Contact Us"})]})]})})},vd=e=>{let{message:t,onClose:n}=e;const[r,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!1);(0,a.useEffect)((()=>{o("You have reached your 5 search limit for our Beta version. We will contact you soon, we hope, when subscription options for the premium (unlimited search) upgrade are available."===t),s("You have reached your search limit. Please sign up or login to continue."===t)}),[t]);return(0,$e.jsxs)("div",{className:"upgrade-modal-overlay",onClick:n,children:[(0,$e.jsxs)("div",{className:"upgrade-modal-content",onClick:e=>e.stopPropagation(),children:[(0,$e.jsxs)("div",{className:"upgrade-modal-header",children:[(0,$e.jsx)("h3",{children:"Alert"}),(0,$e.jsx)("button",{className:"close-button",onClick:n,children:"\xd7"})]}),(0,$e.jsx)("div",{className:"upgrade-modal-body",children:(0,$e.jsx)("p",{children:t})}),r&&(0,$e.jsx)("div",{className:"upgrade-modal-footer",children:(0,$e.jsx)("button",{onClick:()=>{n(),c(!0)},children:"Upgrade Plan"})}),i&&(0,$e.jsx)("div",{className:"upgrade-modal-footer",children:(0,$e.jsx)("button",{onClick:()=>{localStorage.setItem("SearchRemaining","0");const e=window.location.pathname+window.location.search,t="/login?redirect=".concat(encodeURIComponent(e));window.location.href=t},children:"Login"})})]}),l&&(0,$e.jsx)(Ad,{onClose:()=>c(!1)})]})};hd({orgId:"o-200RRF-na1"});const yd=function(){const e=te(),[t,n]=(0,a.useState)(null),{filters:r}=(0,a.useContext)(lr),o=async(t,o)=>{try{const a=await Cc(t,r,{},"",o);if(a.error)return void n(a.error);a.id&&e("/search/".concat(a.id))}catch(a){console.error("Error during search:",a),n("An unexpected error occurred. Please try again.")}};return(0,$e.jsxs)("div",{className:"Home",children:[(0,$e.jsx)(id,{search:o}),(0,$e.jsx)(sd,{search:o}),t&&(0,$e.jsx)(vd,{message:t,onClose:()=>{n(null)}})]})},bd=e=>{let{percent:t}=e;return(0,$e.jsx)("div",{className:"ProgressBar",children:(0,$e.jsx)("div",{className:"progress",children:(0,$e.jsx)("div",{className:"progressBar",style:{width:"".concat(t,"%")},children:"\xa0"})})})},xd=e=>{let{qualifiedAbstracts:t,totalAbstracts:n,qualifiedOrgDocuments:r,totalOrgDocuments:o}=e;return(0,$e.jsxs)("div",{className:"FoundCard",children:[(0,$e.jsxs)("div",{className:"text",children:[(0,$e.jsx)("span",{className:"qualified",children:t})," abstracts qualified out of ",(0,$e.jsx)("span",{className:"analyzed",children:n})," ","analyzed",(0,$e.jsx)(bd,{percent:t/n*100})]}),o>0&&(0,$e.jsxs)("div",{className:"text",children:[(0,$e.jsx)("span",{className:"qualified",children:r})," org documents qualified out of"," ",(0,$e.jsx)("span",{className:"analyzed",children:o})," relevant documents",(0,$e.jsx)(bd,{percent:o>0?r/o*100:0})]})]})},wd=e=>{let{text:t,children:n}=e;return(0,$e.jsxs)("div",{className:"tooltip",children:[n,(0,$e.jsx)("span",{className:"tooltipText",children:t})]})},Ed=e=>{var t,n;let{label:r,Rating:o,Value:a,Justification:i}=e;
2return(0,$e.jsx)(wd,{text:i||"No justification provided",children:(0,$e.jsxs)("span",{className:"Badge ".concat(null!==(t=null===o||void 0===o||null===(n=o.toLowerCase())||void 0===n?void 0:n.replace(/ /g,"_"))&&void 0!==t?t:"not_available"),children:[r,": ",a||(o||"Not available")]})})},Cd=e=>{var t,n,r;let{score:o,title:i,date:s,authors:l,journal:c,insight:u,results:d,citations:p,isPeerReviewed:h,uniqueId:f,index:m,gradeData:g,isPrivate:A=!1}=e;const[v,y]=(0,a.useState)(!0),[b,x]=(0,a.useState)(""),[w,E]=(0,a.useState)(!1),[C,S]=(0,a.useState)({open:!1,message:"",severity:"info"});(0,a.useEffect)((()=>{x(p>15?"HighlyCited":p>5?"ModeratelyCited":"SparselyCited")}),[p]);return(0,$e.jsxs)("div",{className:"ArticleCard ".concat(v?"collapsed":""),onClick:()=>{y(!v)},children:[(0,$e.jsx)("div",{className:"CollapseIcon",children:v?"\u25bc":"\u25b2"}),(0,$e.jsxs)("div",{className:"Body",children:[(0,$e.jsxs)("div",{className:"Title",children:[m+1,". ",i,A&&(0,$e.jsx)("span",{className:"Badge TrustScore high",children:"Private"})]}),(0,$e.jsx)("div",{className:"Container",children:(0,$e.jsxs)("div",{className:"Headervalue",style:{color:"#4a5568",fontWeight:400,fontFamily:"Inter"},children:["Author(s): ",l[0].split(" ")[l[0].split(" ").length-1]," ","et al."]})}),(0,$e.jsxs)("div",{className:"Container",style:{flexWrap:"wrap",gap:"5px"},children:[(0,$e.jsx)(wd,{text:(null===g||void 0===g||null===(t=g.Calculation_Summary)||void 0===t?void 0:t.toString())||"No summary provided",children:(0,$e.jsxs)("span",{className:"Badge TrustScore ".concat((null===g||void 0===g||null===(n=g.Overall_GRADE_Score)||void 0===n||null===(r=n.toLowerCase())||void 0===r?void 0:r.replace(/ /g,"_"))||"not_available"),children:["GRADE: ",(null===g||void 0===g?void 0:g.Overall_GRADE_Score)||"Not available"]})}),(0,$e.jsxs)("div",{className:"GradeContainer",children:[(0,$e.jsx)("button",{className:"toggle-grades",onClick:e=>{e.stopPropagation(),E(!w)},children:w?"Hide Details":"Show Details"}),w&&(0,$e.jsx)($e.Fragment,{children:Object.keys(g||{}).map((e=>{if("Overall_GRADE_Score"!==e&&"Calculation_Summary"!==e){const t=g[e];return(0,$e.jsx)(Ed,{label:e.replace(/_/g," "),Rating:t.Rating,Value:t.Value,Justification:t.Justification},e)}}))})]})]}),!v&&(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)("div",{className:"Container",children:[(0,$e.jsx)("div",{className:"Subheader",children:"Date:"}),(0,$e.jsx)("div",{className:"Headervalue",children:s})]}),(0,$e.jsxs)("div",{className:"Container",children:[(0,$e.jsx)("div",{className:"Subheader",children:"Author(s):"}),(0,$e.jsx)("div",{className:"Headervalue",children:"string"===typeof l?l:l.join(", ")})]}),(0,$e.jsxs)("div",{className:"Container",children:[(0,$e.jsx)("div",{className:"Subheader",children:"Journal:"}),(0,$e.jsx)("div",{className:"Headervalue",children:c})]}),(0,$e.jsxs)("div",{className:"Insight",children:[(0,$e.jsx)("div",{className:"InsightHeader",children:"Key Insights"}),(0,$e.jsx)("div",{className:"InsightValue",children:u})]}),(0,$e.jsxs)("div",{className:"Insight",children:[(0,$e.jsx)("div",{className:"InsightHeader",children:"Analysis Results"}),(0,$e.jsx)("div",{className:"InsightValue",children:d})]}),A?(0,$e.jsx)("button",{className:"ViewFullStudyButton",onClick:e=>(async(e,t)=>{e.stopPropagation();const n=localStorage.getItem("organizationId");if(n)try{const e=await Rc(n,t);e?window.open(e,"_blank"):S({open:!0,message:"File not found.",severity:"error"})}catch(r){S({open:!0,message:"Could not fetch file URL.",severity:"error"})}})(e,f),style:{cursor:"pointer"},children:"View Full Study"}):(0,$e.jsx)("span",{className:"ViewFullStudyButton",children:(0,$e.jsx)("a",{href:"https://pubmed.ncbi.nlm.nih.gov/".concat(f),target:"_blank",rel:"noopener noreferrer",children:"View Full Study"})})]})]})]})};function Sd(e){return(0,jt.Ay)("MuiCircularProgress",e)}(0,Mt.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var Td,kd,_d,Nd;const Id=["className","color","disableShrink","size","style","thickness","value","variant"];let Pd,Rd,Dd,Ld;const Od=44,Md=(0,An.i7)(Pd||(Pd=Td||(Td=un(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }
2\n"])))),jd=(0,An.i7)(Rd||(Rd=kd||(kd=un(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),Fd=(0,nt.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,pt.A)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Me.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,An.AH)(Dd||(Dd=_d||(_d=un(["\n animation: "," 1.4s linear infinite;\n "]))),Md)})),Bd=(0,nt.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ud=(0,nt.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,pt.A)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Me.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,An.AH)(Ld||(Ld=Nd||(Nd=un(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),jd)})),zd=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=n,d=(0,Oe.A)(n,Id),p=(0,Me.A)({},n,{color:o,disableShrink:a,size:i,thickness:l,value:c,variant:u}),h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,"color".concat((0,pt.A)(r))],svg:["svg"],circle:["circle","circle".concat((0,pt.A)(n)),o&&"circleDisableShrink"]};return(0,je.A)(a,Sd,t)})(p),f={},m={},g={};if("determinate"===u){const e=2*Math.PI*((Od-l)/2);f.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),f.strokeDashoffset="".concat(((100-c)/100*e).toFixed(3),"px"),m.transform="rotate(-90deg)"}return(0,$e.jsx)(Fd,(0,Me.A)({className:(0,ze.A)(h.root,r),style:(0,Me.A)({width:i,height:i},m,s),ownerState:p,ref:t,role:"progressbar"},g,d,{children:(0,$e.jsx)(Bd,{className:h.svg,ownerState:p,viewBox:"".concat(22," ").concat(22," ").concat(Od," ").concat(Od),children:(0,$e.jsx)(Ud,{className:h.circle,style:f,ownerState:p,cx:Od,cy:Od,r:(Od-l)/2,fill:"none",strokeWidth:l})})}))})),Hd=zd,Wd=e=>{let{children:t}=e;return(0,$e.jsx)("div",{className:"OrderCard",children:t})};function Vd(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);const e=n.slice(o,r).trim();!e&&a||t.push(e),o=r+1,r=n.indexOf(",",o)}return t}function Gd(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const qd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yd=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qd={};function Xd(e,t){return((t||Qd).jsx?Yd:qd).test(e)}const Kd=/[ \t\n\f\r]/g;function Jd(e){return""===e.replace(Kd,"")}class Zd{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function $d(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Zd(n,r,t)}function ep(e){return e.toLowerCase()}Zd.prototype.property={},Zd.prototype.normal={},Zd.prototype.space=null;class tp{constructor(e,t){this.property=e,this.attribute=t}}tp.prototype.space=null,tp.prototype.boolean=!1,tp.prototype.booleanish=!1,tp.prototype.overloadedBoolean=!1,tp.prototype.number=!1,tp.prototype.commaSeparated=!1,tp.prototype.spaceSeparated=!1,tp.prototype.commaOrSpaceSeparated=!1,tp.prototype.mustUseProperty=!1,tp.prototype.defined=!1;let np=0;const rp=up(),op=up(),ap=up(),ip=up(),sp=up(),lp=up(),cp=up();function up(){return 2**++np}const dp=Object.keys(e);class pp extends tp{constructor(t,n,r,o){let a=-1;if(super(t,n),hp(this,"space",o),"number"===typeof r)for(;++a<dp.length;){const t=dp[a];hp(this,dp[a],(r&e[t])===e[t])}}}function hp(e,t,n){n&&(e[t]=n)}pp.prototype.defined=!0;const fp={}.hasOwnProperty;function mp(e){const t={},n={};let r;for(r in e.properties)if(fp.call(e.properties,r)){const o=e.properties[r],a=new pp(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ep(r)]=r,n[ep(a.attribute)]=r}return new Zd(t,n,e.space)}const gp=mp({space:"xlink",transform:(e,t)=>
vendor: 4,221 bytes, line 2
2"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ap=mp({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function vp(e,t){return t in e?e[t]:t}function yp(e,t){return vp(e,t.toLowerCase())}const bp=mp({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:yp,properties:{xmlns:null,xmlnsXLink:null}}),xp=mp({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:op,ariaAutoComplete:null,ariaBusy:op,ariaChecked:op,ariaColCount:ip,ariaColIndex:ip,ariaColSpan:ip,ariaControls:sp,ariaCurrent:null,ariaDescribedBy:sp,ariaDetails:null,ariaDisabled:op,ariaDropEffect:sp,ariaErrorMessage:null,ariaExpanded:op,ariaFlowTo:sp,ariaGrabbed:op,ariaHasPopup:null,ariaHidden:op,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:sp,ariaLevel:ip,ariaLive:null,ariaModal:op,ariaMultiLine:op,ariaMultiSelectable:op,ariaOrientation:null,ariaOwns:sp,ariaPlaceholder:null,ariaPosInSet:ip,ariaPressed:op,ariaReadOnly:op,ariaRelevant:null,ariaRequired:op,ariaRoleDescription:sp,ariaRowCount:ip,ariaRowIndex:ip,ariaRowSpan:ip,ariaSelected:op,ariaSetSize:ip,ariaSort:null,ariaValueMax:ip,ariaValueMin:ip,ariaValueNow:ip,ariaValueText:null,role:null}}),wp=mp({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:yp,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lp,acceptCharset:sp,accessKey:sp,action:null,allow:null,allowFullScreen:rp,allowPaymentRequest:rp,allowUserMedia:rp,alt:null,as:null,async:rp,autoCapitalize:null,autoComplete:sp,autoFocus:rp,autoPlay:rp,blocking:sp,capture:null,charSet:null,checked:rp,cite:null,className:sp,cols:ip,colSpan:null,content:null,contentEditable:op,controls:rp,controlsList:sp,coords:ip|lp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:rp,defer:rp,dir:null,dirName:null,disabled:rp,download:ap,draggable:op,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:rp,formTarget:null,headers:sp,height:ip,hidden:rp,high:ip,href:null,hrefLang:null,htmlFor:sp,httpEquiv:sp,id:null,imageSizes:null,imageSrcSet:null,inert:rp,inputMode:null,integrity:null,is:null,isMap:rp,itemId:null,itemProp:sp,itemRef:sp,itemScope:rp,itemType:sp,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:rp,low:ip,manifest:null,max:null,maxLength:ip,media:null,method:null,min:null,minLength:ip,multiple:rp,muted:rp,name:null,nonce:null,noModule:rp,noValidate:rp,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:rp,optimum:ip,pattern:null,ping:sp,placeholder:null,playsInl
2ine:rp,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:rp,referrerPolicy:null,rel:sp,required:rp,reversed:rp,rows:ip,rowSpan:ip,sandbox:sp,scope:null,scoped:rp,seamless:rp,selected:rp,shadowRootClonable:rp,shadowRootDelegatesFocus:rp,shadowRootMode:null,shape:null,size:ip,sizes:null,slot:null,span:ip,spellCheck:op,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ip,step:null,style:null,tabIndex:ip,target:null,title:null,translate:null,type:null,typeMustMatch:rp,useMap:null,value:op,width:ip,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:sp,axis:null,background:null,bgColor:null,border:ip,borderColor:null,bottomMargin:ip,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:rp,declare:rp,event:null,face:null,frame:null,frameBorder:null,hSpace:ip,leftMargin:ip,link:null,longDesc:null,lowSrc:null,marginHeight:ip,marginWidth:ip,noResize:rp,noHref:rp,noShade:rp,noWrap:rp,object:null,profile:null,prompt:null,rev:null,rightMargin:ip,rules:null,scheme:null,scrolling:op,standby:null,summary:null,text:null,topMargin:ip,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ip,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:rp,disableRemotePlayback:rp,prefix:null,property:null,results:ip,security:null,unselectable:null}}),Ep=mp({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
2-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:vp,properties:{about:cp,accentHeight:ip,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ip,amplitude:ip,arabicForm:null,ascent:ip,attributeName:null,attributeType:null,azimuth:ip,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ip,by:null,calcMode:null,capHeight:ip,className:sp,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ip,diffuseConstant:ip,direction:null,display:null,dur:null,divisor:ip,dominantBaseline:null,download:rp,dx:null,dy:null,edgeMode:null,editable:null,elevation:ip,enableBackground:null,end:null,event:null,exponent:ip,externalResourcesRequired:null,fill:null,fillOpacity:ip,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:lp,g2:lp,glyphName:lp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ip,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ip,horizOriginX:ip,horizOriginY:ip,id:null,ideographic:ip,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ip,k:ip,k1:ip,k2:ip,k3:ip,k4:ip,kernelMatrix:cp,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ip,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ip,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
2Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ip,overlineThickness:ip,paintOrder:null,panose1:null,path:null,pathLength:ip,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:sp,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ip,pointsAtY:ip,pointsAtZ:ip,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cp,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cp,rev:cp,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cp,requiredFeatures:cp,requiredFonts:cp,requiredFormats:cp,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ip,specularExponent:ip,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ip,strikethroughThickness:ip,string:null,stroke:null,strokeDashArray:cp,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ip,strokeOpacity:ip,strokeWidth:null,style:null,surfaceScale:ip,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cp,tabIndex:ip,tableValues:null,target:null,targetX:ip,targetY:ip,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cp,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ip,underlineThickness:ip,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ip,values:null,vAlphabetic:ip,vMathematical:ip,vectorEffect:null,vHanging:ip,vIdeographic:ip,version:null,vertAdvY:ip,vertOriginX:ip,vertOriginY:ip,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ip,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Cp=$d([Ap,gp,bp,xp,wp],"html"),Sp=$d([Ap,gp,bp,xp,Ep],"svg"),Tp=/^data[-\w.:]+$/i,kp=/-[a-z]/g,_p=/[A-Z]/g;function Np(e,t){const n=ep(t);let r=t,o=tp;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Tp.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(kp,Pp);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!kp.test(e)){let n=e.replace(_p,Ip);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=pp}return new o(r,t)}function Ip(e){return"-"+e.toLowerCase()}function Pp(e){return e.charAt(1).toUpperCase()}const Rp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function Dp(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Lp(e){return e.join(" ").trim()}var Op=n(4222);const Mp=Op.default||Op,jp=Bp("end"),Fp=Bp("start");function Bp(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Up(e){return e&&"object"===typeof e?"position"in e||"type"in e?Hp(e.position):"start"in e||"end"in e?Hp(e):"line"in e||"column"in e?zp(e):"":""}function zp(e){return Wp(e&&e.line)+":"+Wp(e&&e.column)}function Hp(e){return zp(e&&e.start)+"-"+zp(e&&e.end)}function Wp(e){return e&&"number"===typeof e?e:1}class Vp extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",o={},a=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!o.cause&&e&&(a=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const i=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=i?i.line:void 0,this.name=Up(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&"string"===typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Vp.prototype.file="",Vp.prototype.name="",Vp.prototype.reason="",Vp.prototype.message="",Vp.prototype.stack="",Vp.prototype.column=void 0,Vp.prototype.line=void 0,Vp.prototype.ancestors=void 0,Vp.prototype.cause=void 0,Vp.prototype.fatal=void 0,Vp.prototype.place=void 0,Vp.prototype.ruleId=void 0,Vp.prototype.source=void 0;const Gp={}.hasOwnProperty,qp=new Map,Yp=/[A-Z]/g,Qp=/-([a-z])/g,Xp=new Set(["table","tbody","thead","tfoot","tr"]),Kp=new Set(["td","th"]),Jp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Zp(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,a){const i=Array.isArray(o.children),s=Fp(n);return t(r,o,a,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");
vendor: 9,097 bytes, line 2
2if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,a){const i=Array.isArray(o.children)?n:t;return a?i(r,o,a):i(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Sp:Cp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=$p(o,e,void 0);return a&&"string"!==typeof a?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function $p(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Sp,e.schema=o);e.ancestors.push(t);const a=oh(e,t.tagName,!1),i=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&Gp.call(t.properties,o)){const a=rh(e,o,t.properties[o]);if(a){const[o,i]=a;e.tableCellAlignToStyle&&"align"===o&&"string"===typeof i&&Kp.has(t.tagName)?r=i:n[o]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=nh(e,t);Xp.has(t.tagName)&&(s=s.filter((function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&Jd(t.value):Jd(t));var t})));return eh(e,i,a,t),th(i,s),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ah(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Sp,e.schema=o);e.ancestors.push(t);const a=null===t.name?e.Fragment:oh(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else ah(e,t.position);else{const o=r.name;let a;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else ah(e,t.position);else a=null===r.value||r.value;n[o]=a}return n}(e,t),s=nh(e,t);return eh(e,i,a,t),th(i,s),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ah(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return th(r,nh(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function eh(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function th(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function nh(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:qp;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=o.get(e)||0;i=e+"-"+t,o.set(e,t+1)}}const s=$p(e,a,i);void 0!==s&&n.push(s)}return n}function rh(e,t,n){const r=Np(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Gd(n):Lp(n)),"style"===r.property){let t="object"===typeof n?n:function(e,t){const n={};try{Mp(t,r)}catch(o){if(!e.ignoreInvalidStyle){const t=o,n=new Vp("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Jp+"#cannot-parse-style-attribute",n}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Qp,sh)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Gp.call(e,n)&&(t[ih(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Rp[r.property]||r.property:r.attribute,n]}}function oh(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Xd(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Xd(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Gp.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ah(e)}function ah(e,t){const n=new Vp("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Jp+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ih(e){let t=e.replace(Yp,lh);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function sh(e,t){return t.toUpperCase()}function lh(e){return"-"+e.toLowerCase()}const ch={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},uh={};function dh(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ph(e.children,t,n)}return Array.isArray(e)?ph(e,t,n):""}function ph(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=dh(e[o],t,n);return r.join("")}function hh(e,t,n,r){const o=e.length;let a,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function fh(e,t){return e.length>0?(hh(e,e.length,0,t),e):t}class mh{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null===t||void 0===t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&gh(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),gh(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),gh(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);gh(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);gh(this.left,t.reverse())}}}function gh(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ah(e){const t={};let n,r,o,a,i,s,l,c=-1;const u=new mh(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,vh(u,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(a=u.get(o),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type);)"enter"===a[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=o);r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return hh(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function vh(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[],i=n._tokenizer||r.parser[n.contentType](n.start),s=i.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++o)[1]!==h;);a.push(o),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&i.defineSki
vendor: 8,286 bytes, line 2
2p(h.start),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(i.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=a.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const yh={}.hasOwnProperty;function bh(e,t){let n;for(n in t){const r=(yh.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){yh.call(r,a)||(r[a]=[]);const e=o[a];xh(r[a],Array.isArray(e)?e:e?[e]:[])}}}function xh(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);hh(e,0,0,r)}const wh=Lh(/[A-Za-z]/),Eh=Lh(/[\dA-Za-z]/),Ch=Lh(/[#-'*+\--9=?A-Z^-~]/);function Sh(e){return null!==e&&(e<32||127===e)}const Th=Lh(/\d/),kh=Lh(/[\dA-Fa-f]/),_h=Lh(/[!-/:-@[-`{-~]/);function Nh(e){return null!==e&&e<-2}function Ih(e){return null!==e&&(e<0||32===e)}function Ph(e){return-2===e||-1===e||32===e}const Rh=Lh(/\p{P}|\p{S}/u),Dh=Lh(/\s/);function Lh(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Oh(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){if(Ph(r))return e.enter(n),i(r);return t(r)};function i(r){return Ph(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}const Mh={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Oh(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Nh(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const jh={tokenize:function(e){const t=this,n=[];let r,o,a,i=0;return s;function s(r){if(i<n.length){const o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){o=t.events[a][1].end;break}A(i);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return hh(t.events,a+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(i===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return f(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Fh,u,d)(o)}function u(e){return r&&v(),A(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(Fh,h,f)(n)}function h(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&v(),A(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),A(0),void e.consume(n)):Nh(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(A(i),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;hh(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function A(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Fh={tokenize:function(e,t,n){return Oh(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Bh={partial:!0,tokenize:function(e,t,n){return function(t){return Ph(t)?Oh(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Nh(e)?t(e):n(e)}}};const Uh={resolve:function(e){return Ah(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Nh(t)?e.check(zh,a,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},zh={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Oh(e,o,"linePrefix")};function o(o){if(null===o||Nh(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};const Hh={tokenize:function(e){const t=this,n=e.attempt(Bh,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,Oh(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Uh,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Wh={resolveAll:Yh()},Vh=qh("string"),Gh=qh("text");function qh(e){return{resolveAll:Yh("text"===e?Qh:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return l(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Yh(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Qh(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let a,i=o.length,s=-1,l=0;for(;i--;){const e=o[i];if("string"===typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)a=!0,l++;else if(-1!==e){i++;break}}if(l){const o={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const Xh={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),i(a)):o>=3&&(null===a||Nh(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),Ph(t)?Oh(e,a,"whitespace")(t):a(t))}}};const Kh={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Bh,o,a);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Oh(e,t,"listItemIndent",r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Ph(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
vendor: 1,328 bytes, line 2
2=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Zh,t,i)(n))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Oh(e,e.attempt(Kh,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Th(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Xh,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Th(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Bh,r.interrupt?n:c,e.attempt(Jh,d,u))}
vendor: 5,264 bytes, line 2
2function c(e){return r.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return Ph(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Jh={partial:!0,tokenize:function(e,t,n){const r=this;return Oh(e,(function(e){const o=r.events[r.events.length-1];return!Ph(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Zh={partial:!0,tokenize:function(e,t,n){const r=this;return Oh(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const $h={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Ph(t))return Oh(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt($h,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Ph(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function ef(e,t,n,r,o,a,i,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),d;if(null===t||32===t||41===t||Sh(t))return n(t);return e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Nh(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(o){return u||null!==o&&41!==o&&!Ih(o)?u<c&&40===o?(e.consume(o),u++,f):41===o?(e.consume(o),u--,f):null===o||32===o||40===o||Sh(o)?n(o):(e.consume(o),92===o?m:f):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function tf(e,t,n,r,o,a){const i=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Nh(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Nh(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Ph(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function nf(e,t,n,r,o,a){let i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===i?(e.exit(a),s(i)):null===t?n(t):Nh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Oh(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||Nh(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function rf(e,t){let n;return function r(o){if(Nh(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(Ph(o))return Oh(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function of(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const af={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return tf.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return o=of(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return Ih(t)?rf(e,s)(t):s(t)}function s(t){return ef(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(sf,c,c)(t)}function c(t){return Ph(t)?Oh(e,u,"whitespace")(t):u(t)}function u(a){return null===a||Nh(a)?(e.exit("definition"),r.parser.defined.push(o),t(a)):n(a)}}},sf={partial:!0,tokenize:function(e,t,n){return function(t){return Ih(t)?rf(e,r)(t):n(t)};function r(t){return nf(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Ph(t)?Oh(e,a,"whitespace")(t):a(t)}function a(e){return null===e||Nh(e)?t(e):n(e)}}};const lf={name:"codeIndented",tokenize:function(e,t,n){const r=this;
vendor: 4,350 bytes, line 2
2return function(t){return e.enter("codeIndented"),Oh(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?s(t):Nh(t)?e.attempt(cf,a,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Nh(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},cf={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Nh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Oh(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Nh(e)?o(e):n(e)}}};const uf={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);o-2>a&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4);o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},hh(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Ih(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||Nh(n)?(e.exit("atxHeading"),t(n)):Ph(n)?Oh(e,a,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||Ih(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}}};const df={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let i,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){i="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t);return n(t)};function a(t){return t===o?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Ph(t)?Oh(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||Nh(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const pf=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hf=["pre","script","style","textarea"],ff={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,a,i,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,h):63===s?(e.consume(s),o=3,r.interrupt?t:L):wh(s)?(e.consume(s),i=String.fromCharCode(s),f):n(s)}function u(a){return 45===a?(e.consume(a),o=2,d):91===a?(e.consume(a),o=5,s=0,p):wh(a)?(e.consume(a),o=4,r.interrupt?t:L):n(a)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function p(o){const a="CDATA[";
vendor: 4,148 bytes, line 2
2return o===a.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:T:p):n(o)}function h(t){return wh(t)?(e.consume(t),i=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||Ih(s)){const l=47===s,c=i.toLowerCase();return l||a||!hf.includes(c)?pf.includes(i.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?g(s):A(s)):(o=1,r.interrupt?t(s):T(s))}return 45===s||Eh(s)?(e.consume(s),i+=String.fromCharCode(s),f):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function g(t){return Ph(t)?(e.consume(t),g):C(t)}function A(t){return 47===t?(e.consume(t),C):58===t||95===t||wh(t)?(e.consume(t),v):Ph(t)?(e.consume(t),A):C(t)}function v(t){return 45===t||46===t||58===t||95===t||Eh(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),b):Ph(t)?(e.consume(t),y):A(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):Ph(t)?(e.consume(t),b):w(t)}function x(t){return t===l?(e.consume(t),l=null,E):null===t||Nh(t)?n(t):(e.consume(t),x)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Ih(t)?y(t):(e.consume(t),w)}function E(e){return 47===e||62===e||Ph(e)?A(e):n(e)}function C(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||Nh(t)?T(t):Ph(t)?(e.consume(t),S):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),I):60===t&&1===o?(e.consume(t),P):62===t&&4===o?(e.consume(t),O):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),D):!Nh(t)||6!==o&&7!==o?null===t||Nh(t)?(e.exit("htmlFlowData"),k(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(mf,M,k)(t))}function k(t){return e.check(gf,_,M)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||Nh(t)?k(t):(e.enter("htmlFlowData"),T(t))}function I(t){return 45===t?(e.consume(t),L):T(t)}function P(t){return 47===t?(e.consume(t),i="",R):T(t)}function R(t){if(62===t){const n=i.toLowerCase();return hf.includes(n)?(e.consume(t),O):T(t)}return wh(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),R):T(t)}function D(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),O):45===t&&2===o?(e.consume(t),L):T(t)}function O(t){return null===t||Nh(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),O)}function M(n){return e.exit("htmlFlow"),t(n)}}},mf={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Bh,t,n)}}},gf={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Nh(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Af={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},vf={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Ph(t)?Oh(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===a?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===a?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),Ph(t)?Oh(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Nh(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let a,i=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===a?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Ph(t)?Oh(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Nh(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Af,h,v)(n)):(e.enter("co
2deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Nh(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Ph(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Oh(e,d,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function d(t){return null===t||Nh(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Nh(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?n(t):(e.consume(t),p)}function h(t){return e.attempt(o,v,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&Ph(t)?Oh(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||Nh(t)?e.check(Af,h,v)(t):(e.enter("codeFlowValue"),A(t))}function A(t){return null===t||Nh(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),A)}function v(n){return e.exit("codeFenced"),t(n)}}};const yf=document.createElement("i");function bf(e){const t="&"+e+";";yf.innerHTML=t;const n=yf.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const xf={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,a,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,a=Eh,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=kh,c):(e.enter("characterReferenceValue"),o=7,a=Th,c(t))}function c(s){if(59===s&&i){const o=e.exit("characterReferenceValue");return a!==Eh||bf(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return a(s)&&i++<o?(e.consume(s),c):n(s)}}};const wf={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return _h(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Ef={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Oh(e,t,"linePrefix")}}};function Cf(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Sf={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&hh(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,a,i=e.length,s=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=i);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=fh(a,e.slice(r+1,r+s+3)),a=fh(a,[["enter",u,t]]),a=fh(a,Cf(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),a=fh(a,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),a=fh(a,e.slice(o+1)),a=fh(a,[["exit",l,t]]),hh(e,r,e.length,a),e},tokenize:function(e,t,n){const r=this;let o,a,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){o=r.events[i][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return a=r.parser.defined.includes(of(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(Tf,c,a?c:u)(t):91===t?e.attempt(kf,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(_f,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Tf={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Ih(t)?rf(e,o)(t):o(t)}function o(t){return 41===t?c(t):ef(e,a,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Ih(t)?rf(e,s)(t):c(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?nf(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Ih(t)?rf(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},kf={tokenize:function(e,t,n){const r=this;return function(t){return tf.call(r,e,o,a,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(of(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},_f={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Nf={name:"labelStartImage",resolveAll:Sf.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function If(e){return null===e||Ih(e)||Dh(e)?1:Rh(e)?2:void 0}const Pf={name:"attention",resolveAll:function(e,t){let n,r,o,a,i,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
vendor: 6,466 bytes, line 2
2n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};Rf(d,-s),Rf(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...i.end}},e[n][1].end={...a.start},e[u][1].start={...i.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=fh(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=fh(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),l=fh(l,Cf(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=fh(l,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=fh(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,hh(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=If(r);let a;return function(t){return a=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===a)return e.consume(s),i;const l=e.exit("attentionSequence"),c=If(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===a?u:u&&(o||!d)),l._close=Boolean(42===a?d:d&&(c||!u)),t(s)}}};function Rf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Df={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return wh(t)?(e.consume(t),a):64===t?n(t):l(t)}function a(e){return 43===e||45===e||46===e||Eh(e)?(r=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Eh(t))&&r++<32?(e.consume(t),i):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Sh(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):Ch(t)?(e.consume(t),l):n(t)}function c(e){return Eh(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Eh(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const Lf={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,a,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),b):63===t?(e.consume(t),v):wh(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,h):wh(t)?(e.consume(t),A):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Nh(t)?(i=u,R(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?P(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(a++)?(e.consume(t),6===a?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):Nh(t)?(i=f,R(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):f(t)}function A(t){return null===t||62===t?P(t):Nh(t)?(i=A,R(t)):(e.consume(t),A)}function v(t){return null===t?n(t):63===t?(e.consume(t),y):Nh(t)?(i=v,R(t)):(e.consume(t),v)}function y(e){return 62===e?P(e):v(e)}function b(t){return wh(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||Eh(t)?(e.consume(t),x):w(t)}function w(t){return Nh(t)?(i=w,R(t)):Ph(t)?(e.consume(t),w):P(t)}function E(t){return 45===t||Eh(t)?(e.consume(t),E):47===t||62===t||Ih(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),P):58===t||95===t||wh(t)?(e.consume(t),S):Nh(t)?(i=C,R(t)):Ph(t)?(e.consume(t),C):P(t)}function S(t){return 45===t||46===t||58===t||95===t||Eh(t)?(e.consume(t),S):T(t)}function T(t){return 61===t?(e.consume(t),k):Nh(t)?(i=T,R(t)):Ph(t)?(e.consume(t),T):C(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,_):Nh(t)?(i=k,R(t)):Ph(t)?(e.consume(t),k):(e.consume(t),N)}function _(t){return t===o?(e.consume(t),o=void 0,I):null===t?n(t):Nh(t)?(i=_,R(t)):(e.consume(t),_)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Ih(t)?C(t):(e.consume(t),N)}function I(e){return 47===e||62===e||Ih(e)?C(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return Ph(t)?Oh(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}};const Of={name:"labelStartLink",resolveAll:Sf.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Mf={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Nh(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const jf={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[o][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,a=0;
vendor: 11,376 bytes, line 2
2return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),a++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Nh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Nh(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}};const Ff={42:Kh,43:Kh,45:Kh,48:Kh,49:Kh,50:Kh,51:Kh,52:Kh,53:Kh,54:Kh,55:Kh,56:Kh,57:Kh,62:$h},Bf={91:af},Uf={[-2]:lf,[-1]:lf,32:lf},zf={35:uf,42:Xh,45:[df,Xh],60:ff,61:df,95:Xh,96:vf,126:vf},Hf={38:xf,92:wf},Wf={[-5]:Ef,[-4]:Ef,[-3]:Ef,33:Nf,38:xf,42:Pf,60:[Df,Lf],91:Of,92:[Mf,wf],93:Sf,95:Pf,96:jf},Vf={null:[Pf,Wh]},Gf={null:[42,95]},qf={null:[]};function Yf(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let i=[],s=[],l=!0;const c={attempt:v((function(e,t){y(e,t.from)})),check:v(A),consume:function(e){Nh(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:v(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,b()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if("string"===typeof a)i=a;else switch(a){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&o)continue;i=" ";break;default:i=String.fromCharCode(a)}o=-2===a,r.push(i)}return r.join("")}(h(e),t)},sliceStream:h,write:function(e){if(i=fh(i,e),m(),null!==i[i.length-1])return[];return y(t,0),u.events=Cf(a,u.events,u),u.events}};let d,p=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const e=i[0];"string"===typeof e?i[0]=e.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}(i,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:a}}function m(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,p=p(e)}function A(e,t){t.restore()}function v(e,t){return function(n,o,a){let i,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return i=e,d=0,0===e.length?a:g(e[d])}function g(e){return function(n){h=function(){const e=f(),t=u.previous,n=u.currentConstruct,o=u.events.length,a=Array.from(s);return{from:o,restore:i};function i(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,s=a,b()}}(),p=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,A,v)(n)}}function A(t){return l=!0,e(p,h),o}function v(e){return l=!0,h.restore(),++d<i.length?g(i[d]):a}}}function y(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&hh(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Qf(e){const n=function(e){const t={};let n=-1;for(;++n<e.length;)bh(t,e[n]);return t}([t,...(e||{}).extensions||[]]),r={constructs:n,content:o(Mh),defined:[],document:o(jh),flow:o(Hh),lazy:{},string:o(Vh),text:o(Gh)};return r;function o(e){return function(t){return Yf(r,e,t)}}}const Xf=/[\0\t\n\r]/g;function Kf(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Jf=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zf(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Kf(n.slice(t?2:1),t?16:10)}return bf(n)||e}const $f={}.hasOwnProperty;function em(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:a(J),blockQuote:a(q),characterEscape:S,characterReference:S,codeFenced:a(Y),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(Y,i),codeText:a(Q,i),codeTextData:S,data:S,codeFlowValue:S,definition:a(X),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(K),hardBreakEscape:a(Z),hardBreakTrailing:a(Z),htmlFlow:a($,i),htmlFlowData:S,htmlText:a($,i),htmlTextData:S,image:a(ee),label:i,link:a(te),listItem:a(re),listItemValue:p,listOrdered:a(ne,d),listUnordered:a(ne),paragraph:a(oe),reference:B,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(J),strong:a(ae),thematicBreak:a(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:G,autolinkProtocol:V,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:H,characterReference:W,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:T,codeIndented:l(A),codeText:l(P),codeTextData:T,data:T,definition:l(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:l(),hardBreakEscape:l(_),hardBreakTrailing:l(_),htmlFlow:l(N),htmlFlowData:T,htmlText:l(I),htmlTextData:T,image:l(D),label:O,labelText:L,lineEnding:k,link:l(R),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:M,resourceTitleString:j,resource:F,setextHeading:l(C),setextHeadingLineSequence:E,setextHeadingText:w,strong:l(),thematicBreak:l()}};nm(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const a={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];$f.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||om).call(a,void 0,e[0])}for(r.position={start:tm(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tm(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,a,i,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||l||a||(a=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=s;for(o=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!o||a<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,a=void 0,i=!0}}}return e[t][1]._spread=c,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tm(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Up({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||om).call(this,e,r[0])}n.position.end=tm(e.end)}function u(){return function(e,t){const n=t||uh;return dh(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=of(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();this.stack[this.stack.length-1].title=e}function b(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:tm(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tm(e.end)}function k(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=tm(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
vendor: 4,330 bytes, line 2
2ype)&&(S.call(this,e),T.call(this,e))}function _(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Jf,Zf)}(t),n.identifier=of(t).toLowerCase()}function O(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function j(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=of(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function H(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Kf(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=bf(t)}this.stack[this.stack.length-1].value+=r}function W(e){this.stack.pop().position.end=tm(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function q(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function $(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Ah(e););return e}(Qf(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,a,i){const s=[];let l,c,u,d,p;for(o=n+("string"===typeof o?o.toString():new TextDecoder(a||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(Xf.lastIndex=u,l=Xf.exec(o),d=l&&void 0!==l.index?l.index:o.length,p=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function tm(e){return{line:e.line,column:e.column,offset:e.offset}}function nm(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?nm(e,r):rm(e,r)}}function rm(e,t){let n;for(n in t)if($f.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function om(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Up({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Up({start:t.start,end:t.end}
2)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Up({start:t.start,end:t.end})+") is still open")}function am(e){const t=this;t.parser=function(n){return em(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const im="object"===typeof self?self:globalThis,sm=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[a,i]=t[o];switch(a){case 0:case-1:return n(i,o);case 1:{const e=n([],o);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),o);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new im[e](t),o)}case 8:return n(BigInt(i),o);case"BigInt":return n(Object(BigInt(i)),o)}return n(new im[a](i),o)};return r})(new Map,e)(0),lm="",{toString:cm}={},{keys:um}=Object,dm=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=cm.call(e).slice(8,-1);switch(n){case"Array":return[1,lm];case"Object":return[2,lm];case"Date":return[3,lm];case"RegExp":return[4,lm];case"Map":return[5,lm];case"Set":return[6,lm]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},pm=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},hm=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},a=r=>{if(n.has(r))return n.get(r);let[i,s]=dm(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([i,t],r)}case 1:{if(s)return o([s,[...r]],r);const e=[],t=o([i,e],r);for(const n of r)e.push(a(n));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],l=o([i,n],r);for(const t of um(r))!e&&pm(dm(r[t]))||n.push([a(t),a(r[t])]);return l}case 3:return o([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([i,{source:e,flags:t}],r)}case 5:{const t=[],n=o([i,t],r);for(const[o,i]of r)(e||!pm(dm(o))&&!pm(dm(i)))&&t.push([a(o),a(i)]);return n}case 6:{const t=[],n=o([i,t],r);for(const o of r)!e&&pm(dm(o))||t.push(a(o));return n}}const{message:l}=r;return o([i,{name:s,message:l}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},fm="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?sm(hm(e,t)):structuredClone(e):(e,t)=>sm(hm(e,t));function mm(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(37===a&&Eh(e.charCodeAt(n+1))&&Eh(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="\ufffd"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function gm(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Am(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const vm=function(e){if(null===e||void 0===e)return bm;if("function"===typeof e)return ym(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vm(e[n]);return ym(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++e<t.length;)if(t[e].apply(this,r))return!0;return!1}}(e):function(e){const t=e;return ym(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"===typeof e)return function(e){return ym(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function ym(e){return function(t,n,r){return Boolean(xm(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function bm(){return!0}function xm(e){return null!==e&&"object"===typeof e&&"type"in e}const wm=[],Em=!0,Cm=!1,Sm="skip";function Tm(e,t,n,r){let o;"function"===typeof t&&"function"!==typeof n?(r=n,n=t):o=t;const a=vm(o),i=r?-1:1;!function e(o,s,l){const c=o&&"object"===typeof o?o:{};if("string"===typeof c.type){const e="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=wm;if((!t||a(o,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[Em,e];return null===e||void 0===e?wm:[e]}(n(o,l)),p[0]===Cm))return p;if("children"in o&&o.children){const t=o;if(t.children&&p[0]!==Sm)for(u=(r?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Cm)return c;u="number"===typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function km(e,t,n,r){let o,a,i;"function"===typeof t&&"function"!==typeof n?(a=void 0,i=t,o=n):(a=t,i=n,o=r),Tm(e,a,
vendor: 5,184 bytes, line 2
2(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)}),o)}function _m(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});const i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function Nm(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}const Im=9,Pm=32;function Rm(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(Dm(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(Dm(t.slice(o),o>0,!1)),a.join("")}function Dm(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;t===Im||t===Pm;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;t===Im||t===Pm;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Lm={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=mm(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=a+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _m(e,t);const o={src:mm(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const n={src:mm(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _m(e,t);const o={href:mm(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const n={href:mm(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Nm(n[r])}return t}(n):Nm(t),a={},i=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?i.push(e):i.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;
vendor: 4,280 bytes, line 2
2){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Fp(t.children[1]),i=jp(t.children[t.children.length-1]);a&&i&&(r.position={start:a,end:i}),o.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length;let s=-1;const l=[];for(;++s<i;){const n=t.children[s],r={},i=a?a[s]:void 0;i&&(r.align=i);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Rm(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Om,yaml:Om,definition:Om,footnoteDefinition:Om};function Om(){}const Mm={}.hasOwnProperty,jm={};function Fm(e,t){e.position&&(t.position=function(e){const t=Fp(e),n=jp(e);if(t&&n)return{start:t,end:n}}(e))}function Bm(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,fm(o)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function Um(e,t){const n=t.data||{},r=!("value"in t)||Mm.call(n,"hProperties")||Mm.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function zm(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Hm(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Wm(e,t){const n=function(e,t){const n=t||jm,r=new Map,o=new Map,a=new Map,i={...Lm,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Hm(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Hm(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Bm,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=s.handlers[n];if(Mm.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=fm(n);return r.children=s.all(e),r}return fm(e)}return(s.options.unknownHandler||Um)(s,e,t)},options:n,patch:Fm,wrap:zm};return km(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"===typeof e.o
vendor: 14,230 bytes, line 2
2ptions.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||gm,r=e.options.footnoteBackLabel||Am,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const a=e.all(o),i=String(o.identifier).toUpperCase(),c=mm(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,u);"string"===typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=a[a.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else a.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(o,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...fm(i),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:"\n"},o),a}function Vm(e,t){return e&&"run"in e?async function(n,r){const o=Wm(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Wm(n,{file:r,...e||t})}}function Gm(e){if(e)throw e}var qm=n(3240);function Ym(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Qm(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=-1;const a=n.pop();if("function"!==typeof a)throw new TypeError("Expected function as last argument, not "+a);!function t(r){const i=e[++o];let s=-1;if(r)a(r);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++s<n.length;)null!==c[s]&&void 0!==c[s]||(c[s]=n[s]);n=c,i?function(e,t){let n;return o;function o(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];const l=e.length>o.length;let c;l&&o.push(a);try{c=e.apply(this,o)}catch(r){if(l&&n)throw r;return a(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(i,a):c instanceof Error?a(c):i(c))}function a(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t(e,...o)}}function i(e){a(null,e)}}(i,t)(...c):a(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const Xm={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');Km(e);let n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(o=a):(s=-1,o=i));r===o?o=i:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(Km(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Km(e);let t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}if(a<0||r<0||0===i||1===i&&a===r-1&&a===o+1)return"";return e.slice(a,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++t<r.length;)Km(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){Km(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",a=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(o.length<2||2!==a||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",a=0):(o=o.slice(0,r),a=o.length-1-o.lastIndexOf("/")),i=l,s=0;continue}}else if(o.length>0){o="",a=0,i=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,l):o=e.slice(i+1,l),a=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function Km(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Jm={cwd:function(){return"/"}};function Zm(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function $m(e){if("string"===typeof e)e=new URL(e);else if(!Zm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const eg=["history","path","basename","stem","extname","dirname"];class tg{constructor(e){let t;t=e?Zm(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Jm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<eg.length;){const e=eg[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)eg.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?Xm.basename(this.path):void 0}set basename(e){rg(e,"basename"),ng(e,"basename"),this.path=Xm.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?Xm.dirname(this.path):void 0}set dirname(e){og(this.basename,"dirname"),this.path=Xm.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?Xm.extname(this.path):void 0}set extname(e){if(ng(e,"extname"),og(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xm.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Zm(e)&&(e=$m(e)),rg(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?Xm.basename(this.path,this.extname):void 0}set stem(e){rg(e,"stem"),ng(e,"stem"),this.path=Xm.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Vp(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function ng(e,t){if(e&&e.includes(Xm.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Xm.sep+"`")}function rg(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function og(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ag=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ig={}.hasOwnProperty;class sg extends ag{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Qm()}copy(){const e=new sg;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(qm(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(dg("data",this.frozen),this.namespace[e]=t,this):ig.call(this.namespace,e)&&this.namespace[e]||void 0:e?(dg("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=fg(e),n=this.parser||this.Parser;return cg("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),cg("process",this.parser||this.Parser),ug("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const a=fg(e),i=n.parse(a);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(i,a,(function(e,t,r){if(e||!t||!r)return s(e);const o=t,a=n.stringify(o,r);var i;"string"===typeof(i=a)||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=a:r.result=a,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),cg("processSync",this.parser||this.Parser),ug("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,Gm(e),t=r})),hg("processSync","process",n),t}run(e,t,n){pg(e),this.freeze();const r=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,a){const i=fg(t);r.run(e,i,(function(t,r,i){const s=r||e;t?a(t):o?o(s):n(void 0,s,i)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){Gm(e),n=t,r=!0})),hg("runSync","run",r),n}stringify(e,t){this.freeze();const n=fg(t),r=this.compiler||this.Compiler;return ug("stringify",r),pg(e),r(e,n)}use(e){const t=this.attachers,n=this.namespace;if(dg("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];c(e,o)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}return this;function i(e){if("function"===typeof e)c(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(n.settings=qm(!0,n.settings,e.settings))}function l(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function c(e,n){let r=-1,o=-1;for(;++r<t.length;)if(t[r][0]===e){o=r;break}if(-1===o)t.push([e,...n]);else if(n.length>0){let[r,...a]=n;const i=t[o][1];Ym(i)&&Ym(r)&&(r=qm(!0,i,r)),t[o]=[e,r,...a]}}}}const lg=(new sg).freeze();function cg(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function ug(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function dg(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pg(e){if(!Ym(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function hg(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fg(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new tg(e)}const mg=[],gg={allowDangerousHtml:!0},Ag=/^(https?|ircs?|mailto|xmpp)$/i,vg=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function yg(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,i=e.disallowedElements,s=e.rehypePlugins||mg,l=e.remarkPlugins||mg,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gg}:gg,u=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||bg,h=lg().use(am).use(l).use(Vm,c).use(s),f=new tg;"string"===typeof r&&(f.value=r);for(const A of vg)Object.hasOwn(e,A.from)&&(A.from,A.to&&A.to,A.
2id);const m=h.parse(f);let g=h.runSync(m,f);return o&&(g={type:"element",tagName:"div",properties:{className:o},children:"root"===g.type?g.children:[g]}),km(g,(function(e,r,o){if("raw"===e.type&&o&&"number"===typeof r)return u?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in ch)if(Object.hasOwn(ch,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=ch[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=p(String(n||""),t,e))}}if("element"===e.type){let a=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&n&&"number"===typeof r&&(a=!n(e,r,o)),a&&o&&"number"===typeof r)return d&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}})),Zp(g,{Fragment:$e.Fragment,components:a,ignoreInvalidStyle:!0,jsx:$e.jsx,jsxs:$e.jsxs,passKeys:!0,passNode:!0})}function bg(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||Ag.test(e.slice(0,t))?e:""}const xg=/[#.]/g;const wg={}.hasOwnProperty;function Eg(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n);return function(n,o){let a,i=-1;for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];if(void 0===n||null===n){a={type:"root",children:[]};const e=o;l.unshift(e)}else if(a=function(e,t){const n=e||"",r={};let o,a,i=0;for(;i<n.length;){xg.lastIndex=i;const e=xg.exec(n),t=n.slice(i,e?e.index:n.length);t&&(o?"#"===o?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:a=t,i+=t.length),e&&(o=e[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}(n,t),a.tagName=a.tagName.toLowerCase(),r&&wg.call(r,a.tagName)&&(a.tagName=r[a.tagName]),function(e){if(null===e||"object"!==typeof e||Array.isArray(e))return!0;if("string"!==typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"===typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!==typeof e&&"string"!==typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(o))l.unshift(o);else{let t;for(t in o)wg.call(o,t)&&Cg(e,a.properties,t,o[t])}for(;++i<l.length;)Sg(a.children,l[i]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function Cg(e,t,n,r){const o=Np(e,n);let a,i=-1;if(void 0!==r&&null!==r){if("number"===typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"===typeof r?r:"string"===typeof r?o.spaceSeparated?Dp(r):o.commaSeparated?Vd(r):o.commaOrSpaceSeparated?Dp(Vd(r).join(" ")):Tg(o,o.property,r):Array.isArray(r)?r.concat():"style"===o.property?function(e){const t=[];let n;for(n in e)wg.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){const e=[];for(;++i<a.length;){const t=Tg(o,o.property,a[i]);e[i]=t}a=e}if("className"===o.property&&Array.isArray(t.className)){const e=a;a=t.className.concat(e)}t[o.property]=a}}function Sg(e,t){let n=-1;if(void 0===t||null===t);else if("string"===typeof t||"number"===typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Sg(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Sg(e,t.children):e.push(t)}}function Tg(e,t,n){if("string"===typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||ep(n)===ep(t)))return!0}return n}const kg=Eg(Cp,"div"),_g=Eg(Sp,"g",["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","solidColor","textArea","textPath"]);function Ng(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const Ig={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Pg={}.hasOwnProperty,Rg=Object.prototype;function Dg(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Og(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:Lg(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"===typeof e.line&&"number"===typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=Ng(t,e),o=-1===r?t.length+1:r+1;if(e===o)break;n.push(o)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"===typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let o=n[r];if(void 0===o){const e=Ng(t,n[r-1]);o=-1===e?t.length+1:e+1,n[r]=o}if(o>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),o=r.toPoint(0),a=r.toPoint(t.length);n.position={start:o,end:a}}return n}case"#documentType":return n={type:"doctype"},Og(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},Og(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===Ig.svg?Sp:Cp;let r=-1;const o={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;Pg.call(Rg,n)||(o[n]=e.value)}const a="svg"===e.schema.space?_g:kg,i=a(t.tagName,o,Lg(e,t.childNodes));if(Og(e,t,i),"template"===i.tagName){const n=t,r=n.sourceCodeLocation,o=r&&r.startTag&&Mg(r.startTag),a=r&&r.endTag&&Mg(r.endTag),s=Dg(e,n.content);o&&a&&e.file&&(s.position={start:o.end,end:a.start}),i.content=s}return e.schema=n,i}(e,t),n}}function Lg(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=Dg(e,t[n]);r.push(o)}return r}function Og(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=Mg(n);if("element"===t.type){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const r={};let o;if(n.attrs)for(o in n.attrs)Pg.call(n.attrs,o)&&(r[Np(e.schema,o).property]=Mg(n.attrs[o]));n.startTag;const a=Mg(n.startTag),i=n.endTag?Mg(n.endTag):void 0,s={opening:a};i&&(s.closing=i),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Mg(e){const t=jg({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=jg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function jg(e){return e.line&&e.column?e:void 0}const Fg={}.hasOwnProperty;function Bg(e,t){const n=t||{};
2function r(t){let n=r.invalid;const o=r.handlers;if(t&&Fg.call(t,e)){const a=String(t[e]);n=Fg.call(o,a)?o[a]:r.unknown}if(n){for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return n.call(this,t,...i)}}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Ug={},zg={}.hasOwnProperty,Hg=Bg("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Vg(e.children,n,t),Gg(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=Sp);const o=[];let a;if(e.properties)for(a in e.properties)if("children"!==a&&zg.call(e.properties,a)){const t=Wg(r,a,e.properties[a]);t&&o.push(t)}const i=r.space;const s={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:Ig[i],childNodes:[],parentNode:null};s.childNodes=Vg(e.children,s,r),Gg(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Vg(e.children,n,t),Gg(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Gg(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Gg(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Gg(e,t),t}}});function Wg(e,t,n){const r=Np(e,t);if(!1===n||null===n||void 0===n||"number"===typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Gd(n):Lp(n));const o={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=o.name.indexOf(":");e<0?o.prefix="":(o.name=o.name.slice(e+1),o.prefix=r.attribute.slice(0,e)),o.namespace=Ig[r.space]}return o}function Vg(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=Hg(e[r],n);a.parentNode=t,o.push(a)}return o}function Gg(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const qg=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Yg=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Qg="\ufffd";var Xg;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"}(Xg||(Xg={}));const Kg="--",Jg="[CDATA[",Zg="doctype",$g="script",eA="public",tA="system";function nA(e){return e>=55296&&e<=57343}function rA(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function oA(e){return e>=64976&&e<=65007||Yg.has(e)}var aA;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invali
vendor: 6,738 bytes, line 2
2dFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(aA||(aA={}));class iA{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:o}=this,a=r+t,i=o+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Xg.EOF;return this._err(aA.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Xg.EOF;const n=this.html.charCodeAt(t);return n===Xg.CARRIAGE_RETURN?Xg.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Xg.EOF;let e=this.html.charCodeAt(this.pos);if(e===Xg.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,Xg.LINE_FEED;if(e===Xg.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,nA(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===Xg.LINE_FEED||e===Xg.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){rA(e)?this._err(aA.controlCharacterInInputStream):oA(e)&&this._err(aA.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var sA;function lA(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(sA||(sA={}));const cA=new Uint16Array('
vendor: 7,140 bytes, line 2
2\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;
vendor: 6,169 bytes, line 2
2\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;
vendor: 34,219 bytes, line 2
2\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c
2'.split("").map((e=>e.charCodeAt(0)))),uA=new Uint16Array("\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022".split("").map((e=>e.charCodeAt(0))));var dA;const pA=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]]),hA=null!==(dA=String.fromCodePoint)&&void 0!==dA?dA:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function fA(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=pA.get(e))&&void 0!==t?t:e}var mA;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(mA||(mA={}));var gA,AA,vA;function yA(e){return e>=mA.ZERO&&e<=mA.NINE}function bA(e){return e>=mA.UPPER_A&&e<=mA.UPPER_F||e>=mA.LOWER_A&&e<=mA.LOWER_F}function xA(e){return e===mA.EQUALS||function(e){return e>=mA.UPPER_A&&e<=mA.UPPER_Z||e>=mA.LOWER_A&&e<=mA.LOWER_Z||yA(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(gA||(gA={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(AA||(AA={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(vA||(vA={}));class wA{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=AA.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=vA.Strict}startEntity(e){this.decodeMode=e,this.state=AA.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case AA.EntityStart:return e.charCodeAt(t)===mA.NUM?(this.state=AA.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=AA.NamedEntity,this.stateNamedEntity(e,t));case AA.NumericStart:return this.stateNumericStart(e,t);case AA.NumericDecimal:return this.stateNumericDecimal(e,t);case AA.NumericHex:return this.stateNumericHex(e,t);case AA.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===mA.LOWER_X?(this.state=AA.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=AA.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!yA(r)&&!bA(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!yA(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;
vendor: 4,368 bytes, line 2
2if(e===mA.SEMI)this.consumed+=1;else if(this.decodeMode===vA.Strict)return 0;return this.emitCodePoint(fA(this.result),this.consumed),this.errors&&(e!==mA.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],o=(r&gA.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=CA(n,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return 0===this.result||this.decodeMode===vA.Attribute&&(0===o||xA(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&gA.VALUE_LENGTH)>>14,0!==o){if(a===mA.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==vA.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&gA.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~gA.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case AA.NamedEntity:return 0===this.result||this.decodeMode===vA.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case AA.NumericDecimal:return this.emitNumericEntity(0,2);case AA.NumericHex:return this.emitNumericEntity(0,3);case AA.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case AA.EntityStart:return 0}}}function EA(e){let t="";const n=new wA(e,(e=>t+=hA(e)));return function(e,r){let o=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(o,a),n.startEntity(r);const i=n.write(e,a+1);if(i<0){o=a+n.end();break}o=a+i,a=0===i?o+1:o}const i=t+e.slice(o);return t="",i}}function CA(e,t,n,r){const o=(t&gA.BRANCH_LENGTH)>>7,a=t&gA.JUMP_TABLE;if(0===o)return 0!==a&&r===a?n:-1;if(a){const t=r-a;return t<0||t>=o?-1:e[n+t]-1}let i=n,s=i+o-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+o];s=t-1}}return-1}EA(cA),EA(uA);var SA,TA,kA,_A,NA;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(SA||(SA={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(TA||(TA={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(kA||(kA={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="str
2ike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(_A||(_A={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(NA||(NA={}));const IA=new Map([[_A.A,NA.A],[_A.ADDRESS,NA.ADDRESS],[_A.ANNOTATION_XML,NA.ANNOTATION_XML],[_A.APPLET,NA.APPLET],[_A.AREA,NA.AREA],[_A.ARTICLE,NA.ARTICLE],[_A.ASIDE,NA.ASIDE],[_A.B,NA.B],[_A.BASE,NA.BASE],[_A.BASEFONT,NA.BASEFONT],[_A.BGSOUND,NA.BGSOUND],[_A.BIG,NA.BIG],[_A.BLOCKQUOTE,NA.BLOCKQUOTE],[_A.BODY,NA.BODY],[_A.BR,NA.BR],[_A.BUTTON,NA.BUTTON],[_A.CAPTION,NA.CAPTION],[_A.CENTER,NA.CENTER],[_A.CODE,NA.CODE],[_A.COL,NA.COL],[_A.COLGROUP,NA.COLGROUP],[_A.DD,NA.DD],[_A.DESC,NA.DESC],[_A.DETAILS,NA.DETAILS],[_A.DIALOG,NA.DIALOG],[_A.DIR,NA.DIR],[_A.DIV,NA.DIV],[_A.DL,NA.DL],[_A.DT,NA.DT],[_A.EM,NA.EM],[_A.EMBED,NA.EMBED],[_A.FIELDSET,NA.FIELDSET],[_A.FIGCAPTION,NA.FIGCAPTION],[_A.FIGURE,NA.FIGURE],[_A.FONT,NA.FONT],[_A.FOOTER,NA.FOOTER],[_A.FOREIGN_OBJECT,NA.FOREIGN_OBJECT],[_A.FORM,NA.FORM],[_A.FRAME,NA.FRAME],[_A.FRAMESET,NA.FRAMESET],[_A.H1,NA.H1],[_A.H2,NA.H2],[_A.H3,NA.H3],[_A.H4,NA.H4],[_A.H5,NA.H5],[_A.H6,NA.H6],[_A.HEAD,NA.HEAD],[_A.HEADER,NA.HEADER],[_A.HGROUP,NA.HGROUP],[_A.HR,NA.HR],[_A.HTML,NA.HTML],[_A.I,NA.I],[_A.IMG,NA.IMG],[_A.IMAGE,NA.IMAGE],[_A.INPUT,NA.INPUT],[_A.IFRAME,NA.IFRAME],[_A.KEYGEN,NA.KEYGEN],[_A.LABEL,NA.LABEL],[_A.LI,NA.LI],[_A.LINK,NA.LINK],[_A.LISTING,NA.LISTING],[_A.MAIN,NA.MAIN],[_A.MALIGNMARK,NA.MALIGNMARK],[_A.MARQUEE,NA.MARQUEE],[_A.MATH,NA.MATH],[_A.MENU,NA.MENU],[_A.META,NA.META],[_A.MGLYPH,NA.MGLYPH],[_A.MI,NA.MI],[_A.MO,NA.MO],[_A.MN,NA.MN],[_A.MS,NA.MS],[_A.MTEXT,NA.MTEXT],[_A.NAV,NA.NAV],[_A.NOBR,NA.NOBR],[_A.NOFRAMES,NA.NOFRAMES],[_A.NOEMBED,NA.NOEMBED],[_A.NOSCRIPT,NA.NOSCRIPT],[_A.OBJECT,NA.OBJECT],[_A.OL,NA.OL],[_A.OPTGROUP,NA.OPTGROUP],[_A.OPTION,NA.OPTION],[_A.P,NA.P],[_A.PARAM,NA.PARAM],[_A.PLAINTEXT,NA.PLAINTEXT],[_A.PRE,NA.PRE],[_A.RB,NA.RB],[_A.RP,NA.RP],[_A.RT,NA.RT],[_A.RTC,NA.RTC],[_A.RUBY,NA.RUBY],[_A.S,NA.S],[_A.SCRIPT,NA.SCRIPT],[_A.SEARCH,NA.SEARCH],[_A.SECTION,NA.SECTION],[_A.SELECT,
vendor: 6,900 bytes, line 2
2NA.SELECT],[_A.SOURCE,NA.SOURCE],[_A.SMALL,NA.SMALL],[_A.SPAN,NA.SPAN],[_A.STRIKE,NA.STRIKE],[_A.STRONG,NA.STRONG],[_A.STYLE,NA.STYLE],[_A.SUB,NA.SUB],[_A.SUMMARY,NA.SUMMARY],[_A.SUP,NA.SUP],[_A.TABLE,NA.TABLE],[_A.TBODY,NA.TBODY],[_A.TEMPLATE,NA.TEMPLATE],[_A.TEXTAREA,NA.TEXTAREA],[_A.TFOOT,NA.TFOOT],[_A.TD,NA.TD],[_A.TH,NA.TH],[_A.THEAD,NA.THEAD],[_A.TITLE,NA.TITLE],[_A.TR,NA.TR],[_A.TRACK,NA.TRACK],[_A.TT,NA.TT],[_A.U,NA.U],[_A.UL,NA.UL],[_A.SVG,NA.SVG],[_A.VAR,NA.VAR],[_A.WBR,NA.WBR],[_A.XMP,NA.XMP]]);function PA(e){var t;return null!==(t=IA.get(e))&&void 0!==t?t:NA.UNKNOWN}const RA=NA,DA={[SA.HTML]:new Set([RA.ADDRESS,RA.APPLET,RA.AREA,RA.ARTICLE,RA.ASIDE,RA.BASE,RA.BASEFONT,RA.BGSOUND,RA.BLOCKQUOTE,RA.BODY,RA.BR,RA.BUTTON,RA.CAPTION,RA.CENTER,RA.COL,RA.COLGROUP,RA.DD,RA.DETAILS,RA.DIR,RA.DIV,RA.DL,RA.DT,RA.EMBED,RA.FIELDSET,RA.FIGCAPTION,RA.FIGURE,RA.FOOTER,RA.FORM,RA.FRAME,RA.FRAMESET,RA.H1,RA.H2,RA.H3,RA.H4,RA.H5,RA.H6,RA.HEAD,RA.HEADER,RA.HGROUP,RA.HR,RA.HTML,RA.IFRAME,RA.IMG,RA.INPUT,RA.LI,RA.LINK,RA.LISTING,RA.MAIN,RA.MARQUEE,RA.MENU,RA.META,RA.NAV,RA.NOEMBED,RA.NOFRAMES,RA.NOSCRIPT,RA.OBJECT,RA.OL,RA.P,RA.PARAM,RA.PLAINTEXT,RA.PRE,RA.SCRIPT,RA.SECTION,RA.SELECT,RA.SOURCE,RA.STYLE,RA.SUMMARY,RA.TABLE,RA.TBODY,RA.TD,RA.TEMPLATE,RA.TEXTAREA,RA.TFOOT,RA.TH,RA.THEAD,RA.TITLE,RA.TR,RA.TRACK,RA.UL,RA.WBR,RA.XMP]),[SA.MATHML]:new Set([RA.MI,RA.MO,RA.MN,RA.MS,RA.MTEXT,RA.ANNOTATION_XML]),[SA.SVG]:new Set([RA.TITLE,RA.FOREIGN_OBJECT,RA.DESC]),[SA.XLINK]:new Set,[SA.XML]:new Set,[SA.XMLNS]:new Set},LA=new Set([RA.H1,RA.H2,RA.H3,RA.H4,RA.H5,RA.H6]);new Set([_A.STYLE,_A.SCRIPT,_A.XMP,_A.IFRAME,_A.NOEMBED,_A.NOFRAMES,_A.PLAINTEXT]);var OA;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(OA||(OA={}));const MA={DATA:OA.DATA,RCDATA:OA.RCDATA,RAWTEXT:OA.RAWTEXT,SCRIPT_DATA:OA.SCRIPT_DATA,PLAINTEXT:OA.PLAINTEXT,CDATA_SECTION:OA.CDATA_SECTION};function jA(e){return e>=Xg.LATIN_CAPITAL_A&&e<=Xg.LATIN_CAPITAL_Z}function FA(e){return function(e){return e>=Xg.LATIN_SMALL_A&&e<=Xg.LATIN_SMALL_Z}(e)||jA(e)}function BA(e){return FA(e)||function(e){return e>=Xg.DIGIT_0&&e<=Xg.DIGIT_9}(e)}function UA(e){return e+32}function zA(e){return e===Xg.SPACE||e===Xg.LINE_FEED||e===Xg.TABULATION||e===Xg.FORM_FEED}function HA(e){return zA(e)||e===Xg.SOLIDUS||e===Xg.GREATER_THAN_SIGN}class WA{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=OA.DATA,this.returnState=OA.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new iA(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new wA(cA,((e,t)=>
vendor: 4,621 bytes, line 2
2{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(aA.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(aA.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===Xg.NULL?aA.nullCharacterReference:e>1114111?aA.characterReferenceOutsideUnicodeRange:nA(e)?aA.surrogateCharacterReference:oA(e)?aA.noncharacterCharacterReference:rA(e)||e===Xg.CARRIAGE_RETURN?aA.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===n||void 0===n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:sA.START_TAG,tagName:"",tagID:NA.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:sA.END_TAG,tagName:"",tagID:NA.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:sA.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:sA.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===lA(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(aA.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=PA(e.tagName),e.type===sA.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(aA.endTagWithAttributes),e.selfClosing&&this._err(aA.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case sA.CHARACTER:this.handler.onCh
vendor: 6,270 bytes, line 2
2aracter(this.currentCharacterToken);break;case sA.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case sA.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:sA.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=zA(e)?sA.WHITESPACE_CHARACTER:e===Xg.NULL?sA.NULL_CHARACTER:sA.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(sA.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=OA.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?vA.Attribute:vA.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===OA.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===OA.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===OA.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case OA.DATA:this._stateData(e);break;case OA.RCDATA:this._stateRcdata(e);break;case OA.RAWTEXT:this._stateRawtext(e);break;case OA.SCRIPT_DATA:this._stateScriptData(e);break;case OA.PLAINTEXT:this._statePlaintext(e);break;case OA.TAG_OPEN:this._stateTagOpen(e);break;case OA.END_TAG_OPEN:this._stateEndTagOpen(e);break;case OA.TAG_NAME:this._stateTagName(e);break;case OA.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case OA.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case OA.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case OA.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case OA.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case OA.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case OA.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case OA.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case OA.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case OA.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case OA.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case OA.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case OA.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case OA.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case OA.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case OA.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case OA.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case OA.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case OA.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case OA.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case OA.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case OA.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case OA.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case OA.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case OA.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case OA.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case OA.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case OA.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case OA.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case OA.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case OA.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case OA.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case OA.BOGUS_COMMENT:this._stateBogusComment(e);break;case OA.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case OA.COMMENT_START:this._stateCommentStart(e);break;case OA.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case OA.COMMENT:this._stateComment(e);break;case OA.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case OA.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case OA.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case OA.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case OA.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case OA.COMMENT_END:this._stateCommentEnd(e);break;case OA.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case OA.DOCTYPE:this._stateDoctype(e);break;case OA.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case OA.DOCTYPE_NAME:this._stateDoctypeName(e);break;case OA.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case OA.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case OA.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case OA.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case OA.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case OA.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case OA.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case OA.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case OA.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctype
vendor: 20,237 bytes, line 2
2SystemIdentifier(e);break;case OA.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case OA.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case OA.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case OA.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case OA.CDATA_SECTION:this._stateCdataSection(e);break;case OA.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case OA.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case OA.CHARACTER_REFERENCE:this._stateCharacterReference();break;case OA.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Xg.LESS_THAN_SIGN:this.state=OA.TAG_OPEN;break;case Xg.AMPERSAND:this._startCharacterReference();break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this._emitCodePoint(e);break;case Xg.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Xg.AMPERSAND:this._startCharacterReference();break;case Xg.LESS_THAN_SIGN:this.state=OA.RCDATA_LESS_THAN_SIGN;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this._emitChars(Qg);break;case Xg.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Xg.LESS_THAN_SIGN:this.state=OA.RAWTEXT_LESS_THAN_SIGN;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this._emitChars(Qg);break;case Xg.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Xg.LESS_THAN_SIGN:this.state=OA.SCRIPT_DATA_LESS_THAN_SIGN;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this._emitChars(Qg);break;case Xg.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Xg.NULL:this._err(aA.unexpectedNullCharacter),this._emitChars(Qg);break;case Xg.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(FA(e))this._createStartTagToken(),this.state=OA.TAG_NAME,this._stateTagName(e);else switch(e){case Xg.EXCLAMATION_MARK:this.state=OA.MARKUP_DECLARATION_OPEN;break;case Xg.SOLIDUS:this.state=OA.END_TAG_OPEN;break;case Xg.QUESTION_MARK:this._err(aA.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=OA.BOGUS_COMMENT,this._stateBogusComment(e);break;case Xg.EOF:this._err(aA.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(aA.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=OA.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(FA(e))this._createEndTagToken(),this.state=OA.TAG_NAME,this._stateTagName(e);else switch(e){case Xg.GREATER_THAN_SIGN:this._err(aA.missingEndTagName),this.state=OA.DATA;break;case Xg.EOF:this._err(aA.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(aA.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=OA.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:this.state=OA.BEFORE_ATTRIBUTE_NAME;break;case Xg.SOLIDUS:this.state=OA.SELF_CLOSING_START_TAG;break;case Xg.GREATER_THAN_SIGN:this.state=OA.DATA,this.emitCurrentTagToken();break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),t.tagName+=Qg;break;case Xg.EOF:this._err(aA.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(jA(e)?UA(e):e)}}_stateRcdataLessThanSign(e){e===Xg.SOLIDUS?this.state=OA.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=OA.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){FA(e)?(this.state=OA.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=OA.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=OA.BEFORE_ATTRIBUTE_NAME,!1;case Xg.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=OA.SELF_CLOSING_START_TAG,!1;case Xg.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=OA.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=OA.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Xg.SOLIDUS?this.state=OA.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=OA.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){FA(e)?(this.state=OA.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=OA.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=OA.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Xg.SOLIDUS:this.state=OA.SCRIPT_DATA_END_TAG_OPEN;break;case Xg.EXCLAMATION_MARK:this.state=OA.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=OA.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){FA(e)?(this.state=OA.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=OA.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=OA.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Xg.HYPHEN_MINUS?(this.state=OA.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=OA.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Xg.HYPHEN_MINUS?(this.state=OA.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=OA.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Xg.HYPHEN_MINUS:this.state=OA.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case Xg.LESS_THAN_SIGN:this.state=OA.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this._emitChars(Qg);break;case Xg.EOF:this._err(aA.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Xg.HYPHEN_MINUS:this.state=OA.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case Xg.LESS_THAN_SIGN:this.state=OA.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this.state=OA.SCRIPT_DATA_ESCAPED,this._emitChars(Qg);break;case Xg.EOF:this._err(aA.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=OA.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Xg.HYPHEN_MINUS:this._emitChars("-");break;case Xg.LESS_THAN_SIGN:this.state=OA.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Xg.GREATER_THAN_SIGN:this.state=OA.SCRIPT_DATA,this._emitChars(">");break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this.state=OA.SCRIPT_DATA_ESCAPED,this._emitChars(Qg);break;case Xg.EOF:this._err(aA.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=OA.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Xg.SOLIDUS?this.state=OA.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:FA(e)?(this._emitChars("<"),this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=OA.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){FA(e)?(this.state=OA.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=OA.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=OA.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith($g,!1)&&HA(this.preprocessor.peek($g.length))){this._emitCodePoint(e);for(let e=0;e<$g.length;e++)this._emitCodePoint(this._consume());this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=OA.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Xg.HYPHEN_MINUS:this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case Xg.LESS_THAN_SIGN:this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this._emitChars(Qg);break;case Xg.EOF:this._err(aA.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Xg.HYPHEN_MINUS:this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case Xg.LESS_THAN_SIGN:this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Qg);break;case Xg.EOF:this._err(aA.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Xg.HYPHEN_MINUS:this._emitChars("-");break;case Xg.LESS_THAN_SIGN:this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Xg.GREATER_THAN_SIGN:this.state=OA.SCRIPT_DATA,this._emitChars(">");break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Qg);break;case Xg.EOF:this._err(aA.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Xg.SOLIDUS?(this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith($g,!1)&&HA(this.preprocessor.peek($g.length))){this._emitCodePoint(e);for(let e=0;e<$g.length;e++)this._emitCodePoint(this._consume());this.state=OA.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=OA.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:break;case Xg.SOLIDUS:case Xg.GREATER_THAN_SIGN:case Xg.EOF:this.state=OA.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Xg.EQUALS_SIGN:this._err(aA.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=OA.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=OA.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:case Xg.SOLIDUS:case Xg.GREATER_THAN_SIGN:case Xg.EOF:this._leaveAttrName(),this.state=OA.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Xg.EQUALS_SIGN:this._leaveAttrName(),this.state=OA.BEFORE_ATTRIBUTE_VALUE;break;case Xg.QUOTATION_MARK:case Xg.APOSTROPHE:case Xg.LESS_THAN_SIGN:this._err(aA.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this.currentAttr.name+=Qg;break;default:this.currentAttr.name+=String.fromCodePoint(jA(e)?UA(e):e)}}_stateAfterAttributeName(e){switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:break;case Xg.SOLIDUS:this.state=OA.SELF_CLOSING_START_TAG;break;case Xg.EQUALS_SIGN:this.state=OA.BEFORE_ATTRIBUTE_VALUE;break;case Xg.GREATER_THAN_SIGN:this.state=OA.DATA,this.emitCurrentTagToken();break;case Xg.EOF:this._err(aA.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=OA.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:break;case Xg.QUOTATION_MARK:this.state=OA.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Xg.APOSTROPHE:this.state=OA.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Xg.GREATER_THAN_SIGN:this._err(aA.missingAttributeValue),this.state=OA.DATA,this.emitCurrentTagToken();break;default:this.state=OA.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Xg.QUOTATION_MARK:this.state=OA.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Xg.AMPERSAND:this._startCharacterReference();break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this.currentAttr.value+=Qg;break;case Xg.EOF:this._err(aA.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Xg.APOSTROPHE:this.state=OA.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Xg.AMPERSAND:this._startCharacterReference();break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this.currentAttr.value+=Qg;break;case Xg.EOF:this._err(aA.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:this._leaveAttrValue(),this.state=OA.BEFORE_ATTRIBUTE_NAME;break;case Xg.AMPERSAND:this._startCharacterReference();break;case Xg.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=OA.DATA,this.emitCurrentTagToken();break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this.currentAttr.value+=Qg;break;case Xg.QUOTATION_MARK:case Xg.APOSTROPHE:case Xg.LESS_THAN_SIGN:case Xg.EQUALS_SIGN:case Xg.GRAVE_ACCENT:this._err(aA.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Xg.EOF:this._err(aA.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:this._leaveAttrValue(),this.state=OA.BEFORE_ATTRIBUTE_NAME;break;case Xg.SOLIDUS:this._leaveAttrValue(),this.state=OA.SELF_CLOSING_START_TAG;break;case Xg.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=OA.DATA,this.emitCurrentTagToken();break;case Xg.EOF:this._err(aA.eofInTag),this._emitEOFToken();break;default:this._err(aA.missingWhitespaceBetweenAttributes),this.state=OA.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Xg.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=OA.DATA,this.emitCurrentTagToken();break;case Xg.EOF:this._err(aA.eofInTag),this._emitEOFToken();break;default:this._err(aA.unexpectedSolidusInTag),this.state=OA.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Xg.GREATER_THAN_SIGN:this.state=OA.DATA,this.emitCurrentComment(t);break;case Xg.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),t.data+=Qg;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(Kg,!0)?(this._createCommentToken(Kg.length+1),this.state=OA.COMMENT_START):this._consumeSequenceIfMatch(Zg,!1)?(this.currentLocation=this.getCurrentLocation(Zg.length+1),this.state=OA.DOCTYPE):this._consumeSequenceIfMatch(Jg,!0)?this.inForeignNode?this.state=OA.CDATA_SECTION:(this._err(aA.cdataInHtmlContent),this._createCommentToken(Jg.length+1),this.currentToken.data="[CDATA[",this.state=OA.BOGUS_COMMENT):this._ensureHibernation()||(this._err(aA.incorrectlyOpenedComment),this._createCommentToken(2),this.state=OA.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Xg.HYPHEN_MINUS:this.state=OA.COMMENT_START_DASH;break;case Xg.GREATER_THAN_SIGN:{this._err(aA.abruptClosingOfEmptyComment),this.state=OA.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=OA.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Xg.HYPHEN_MINUS:this.state=OA.COMMENT_END;break;case Xg.GREATER_THAN_SIGN:this._err(aA.abruptClosingOfEmptyComment),this.state=OA.DATA,this.emitCurrentComment(t);break;case Xg.EOF:this._err(aA.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=OA.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Xg.HYPHEN_MINUS:this.state=OA.COMMENT_END_DASH;break;case Xg.LESS_THAN_SIGN:t.data+="<",this.state=OA.COMMENT_LESS_THAN_SIGN;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),t.data+=Qg;break;case Xg.EOF:this._err(aA.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Xg.EXCLAMATION_MARK:t.data+="!",this.state=OA.COMMENT_LESS_THAN_SIGN_BANG;break;case Xg.LESS_THAN_SIGN:t.data+="<";break;default:this.state=OA.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Xg.HYPHEN_MINUS?this.state=OA.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=OA.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Xg.HYPHEN_MINUS?this.state=OA.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=OA.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Xg.GREATER_THAN_SIGN&&e!==Xg.EOF&&this._err(aA.nestedComment),this.state=OA.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Xg.HYPHEN_MINUS:this.state=OA.COMMENT_END;break;case Xg.EOF:this._err(aA.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=OA.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Xg.GREATER_THAN_SIGN:this.state=OA.DATA,this.emitCurrentComment(t);break;case Xg.EXCLAMATION_MARK:this.state=OA.COMMENT_END_BANG;break;case Xg.HYPHEN_MINUS:t.data+="-";break;case Xg.EOF:this._err(aA.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=OA.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Xg.HYPHEN_MINUS:t.data+="--!",this.state=OA.COMMENT_END_DASH;break;case Xg.GREATER_THAN_SIGN:this._err(aA.incorrectlyClosedComment),this.state=OA.DATA,this.emitCurrentComment(t);break;case Xg.EOF:this._err(aA.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=OA.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:this.state=OA.BEFORE_DOCTYPE_NAME;break;case Xg.GREATER_THAN_SIGN:this.state=OA.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Xg.EOF:{this._err(aA.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(aA.missingWhitespaceBeforeDoctypeName),this.state=OA.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(jA(e))this._createDoctypeToken(String.fromCharCode(UA(e))),this.state=OA.DOCTYPE_NAME;else switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),this._createDoctypeToken(Qg),this.state=OA.DOCTYPE_NAME;break;case Xg.GREATER_THAN_SIGN:{this._err(aA.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=OA.DATA;break}case Xg.EOF:{this._err(aA.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=OA.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:this.state=OA.AFTER_DOCTYPE_NAME;break;case Xg.GREATER_THAN_SIGN:this.state=OA.DATA,this.emitCurrentDoctype(t);break;
vendor: 4,261 bytes, line 2
2case Xg.NULL:this._err(aA.unexpectedNullCharacter),t.name+=Qg;break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(jA(e)?UA(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:break;case Xg.GREATER_THAN_SIGN:this.state=OA.DATA,this.emitCurrentDoctype(t);break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(eA,!1)?this.state=OA.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(tA,!1)?this.state=OA.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(aA.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=OA.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:this.state=OA.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Xg.QUOTATION_MARK:this._err(aA.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=OA.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Xg.APOSTROPHE:this._err(aA.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=OA.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Xg.GREATER_THAN_SIGN:this._err(aA.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=OA.DATA,this.emitCurrentDoctype(t);break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(aA.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=OA.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:break;case Xg.QUOTATION_MARK:t.publicId="",this.state=OA.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Xg.APOSTROPHE:t.publicId="",this.state=OA.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Xg.GREATER_THAN_SIGN:this._err(aA.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=OA.DATA,this.emitCurrentDoctype(t);break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(aA.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=OA.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Xg.QUOTATION_MARK:this.state=OA.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),t.publicId+=Qg;break;case Xg.GREATER_THAN_SIGN:this._err(aA.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=OA.DATA;break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Xg.APOSTROPHE:this.state=OA.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),t.publicId+=Qg;break;case Xg.GREATER_THAN_SIGN:this._err(aA.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=OA.DATA;break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:this.state=OA.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Xg.GREATER_THAN_SIGN:this.state=OA.DATA,this.emitCurrentDoctype(t);break;case Xg.QUOTATION_MARK:this._err(aA.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=OA.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Xg.APOSTROPHE:this._err(aA.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=OA.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;
vendor: 17,068 bytes, line 2
2default:this._err(aA.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=OA.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:break;case Xg.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=OA.DATA;break;case Xg.QUOTATION_MARK:t.systemId="",this.state=OA.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Xg.APOSTROPHE:t.systemId="",this.state=OA.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(aA.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=OA.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:this.state=OA.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Xg.QUOTATION_MARK:this._err(aA.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=OA.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Xg.APOSTROPHE:this._err(aA.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=OA.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Xg.GREATER_THAN_SIGN:this._err(aA.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=OA.DATA,this.emitCurrentDoctype(t);break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(aA.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=OA.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:break;case Xg.QUOTATION_MARK:t.systemId="",this.state=OA.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Xg.APOSTROPHE:t.systemId="",this.state=OA.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Xg.GREATER_THAN_SIGN:this._err(aA.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=OA.DATA,this.emitCurrentDoctype(t);break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(aA.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=OA.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Xg.QUOTATION_MARK:this.state=OA.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),t.systemId+=Qg;break;case Xg.GREATER_THAN_SIGN:this._err(aA.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=OA.DATA;break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Xg.APOSTROPHE:this.state=OA.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter),t.systemId+=Qg;break;case Xg.GREATER_THAN_SIGN:this._err(aA.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=OA.DATA;break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Xg.SPACE:case Xg.LINE_FEED:case Xg.TABULATION:case Xg.FORM_FEED:break;case Xg.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=OA.DATA;break;case Xg.EOF:this._err(aA.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(aA.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=OA.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Xg.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=OA.DATA;break;case Xg.NULL:this._err(aA.unexpectedNullCharacter);break;case Xg.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Xg.RIGHT_SQUARE_BRACKET:this.state=OA.CDATA_SECTION_BRACKET;break;case Xg.EOF:this._err(aA.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Xg.RIGHT_SQUARE_BRACKET?this.state=OA.CDATA_SECTION_END:(this._emitChars("]"),this.state=OA.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Xg.GREATER_THAN_SIGN:this.state=OA.DATA;break;case Xg.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=OA.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(Xg.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&BA(this.preprocessor.peek(1))?OA.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){BA(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Xg.SEMICOLON&&this._err(aA.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const VA=new Set([NA.DD,NA.DT,NA.LI,NA.OPTGROUP,NA.OPTION,NA.P,NA.RB,NA.RP,NA.RT,NA.RTC]),GA=new Set([...VA,NA.CAPTION,NA.COLGROUP,NA.TBODY,NA.TD,NA.TFOOT,NA.TH,NA.THEAD,NA.TR]),qA=new Set([NA.APPLET,NA.CAPTION,NA.HTML,NA.MARQUEE,NA.OBJECT,NA.TABLE,NA.TD,NA.TEMPLATE,NA.TH]),YA=new Set([...qA,NA.OL,NA.UL]),QA=new Set([...qA,NA.BUTTON]),XA=new Set([NA.ANNOTATION_XML,NA.MI,NA.MN,NA.MO,NA.MS,NA.MTEXT]),KA=new Set([NA.DESC,NA.FOREIGN_OBJECT,NA.TITLE]),JA=new Set([NA.TR,NA.TEMPLATE,NA.HTML]),ZA=new Set([NA.TBODY,NA.TFOOT,NA.THEAD,NA.TEMPLATE,NA.HTML]),$A=new Set([NA.TABLE,NA.TEMPLATE,NA.HTML]),ev=new Set([NA.TD,NA.TH]);class tv{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=NA.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===NA.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===SA.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==SA.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(LA,SA.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ev,SA.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo($A,SA.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ZA,SA.HTML)}clearBackToTableRowContext(){this.clearBackTo(JA,SA.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===NA.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===NA.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case SA.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case SA.SVG:if(KA.has(r))return!1;break;case SA.MATHML:if(XA.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,qA)}hasInListItemScope(e){return this.hasInDynamicScope(e,YA)}hasInButtonScope(e){return this.hasInDynamicScope(e,QA)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case SA.HTML:if(LA.has(t))return!0;if(qA.has(t))return!1;break;case SA.SVG:if(KA.has(t))return!1;break;case SA.MATHML:if(XA.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===SA.HTML)switch(this.tagIDs[t]){case e:return!0;case NA.TABLE:case NA.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===SA.HTML)switch(this.tagIDs[e]){case NA.TBODY:case NA.THEAD:case NA.TFOOT:return!0;case NA.TABLE:case NA.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===SA.HTML)switch(this.tagIDs[t]){case e:return!0;case NA.OPTION:case NA.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;VA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;GA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&GA.has(this.currentTagId);)this.pop()}}var nv;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(nv||(nv={}));const rv={type:nv.Marker};class ov{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,o=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let i=0;i<this.entries.length;i++){const e=this.entries[i];if(e.type===nv.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===o&&this.treeAdapter.getNamespaceURI(t)===a){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:i,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let o=0;for(let a=0;a<n.length;a++){const e=n[a];e.attrs.every((e=>r.get(e.name)===e.value))&&(o+=1,o>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(rv)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:nv.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:nv.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(rv);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===nv.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===nv.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===nv.Element&&t.element===e))}}const av={createDocument:()=>({nodeName:"#document",mode:kA.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const o=e.childNodes.find((e=>"#documentType"===e.nodeName));if(o)o.name=t,o.publicId=n,o.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};av.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(av.isTextNode(n))return void(n.value+=t)}av.appendChild(e,av.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&av.isTextNode(r)?r.value+=t:av.insertBefore(e,av.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},iv="html",sv="about:legacy-compat",lv="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",cv=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],uv=[...cv,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],dv=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),pv=["-
2//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],hv=[...pv,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function fv(e,t){return t.some((t=>e.startsWith(t)))}const mv={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},gv="definitionurl",Av="definitionURL",vv=new Map(["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]))),yv=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:SA.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:SA.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:SA.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:SA.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:SA.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:SA.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:SA.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:SA.XML}],["xml:space",{prefix:"xml",name:"space",namespace:SA.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:SA.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:SA.XMLNS}]]),bv=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","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]))),xv=new Set([NA.B,NA.BIG,NA.BLOCKQUOTE,NA.BODY,NA.BR,NA.CENT
2ER,NA.CODE,NA.DD,NA.DIV,NA.DL,NA.DT,NA.EM,NA.EMBED,NA.H1,NA.H2,NA.H3,NA.H4,NA.H5,NA.H6,NA.HEAD,NA.HR,NA.I,NA.IMG,NA.LI,NA.LISTING,NA.MENU,NA.META,NA.NOBR,NA.OL,NA.P,NA.PRE,NA.RUBY,NA.S,NA.SMALL,NA.SPAN,NA.STRONG,NA.STRIKE,NA.SUB,NA.SUP,NA.TABLE,NA.TT,NA.U,NA.UL,NA.VAR]);function wv(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===gv){e.attrs[t].name=Av;break}}function Ev(e){for(let t=0;t<e.attrs.length;t++){const n=vv.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function Cv(e){for(let t=0;t<e.attrs.length;t++){const n=yv.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Sv(e,t,n,r){return(!r||r===SA.HTML)&&function(e,t,n){if(t===SA.MATHML&&e===NA.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===TA.ENCODING){const e=n[r].value.toLowerCase();return e===mv.TEXT_HTML||e===mv.APPLICATION_XML}return t===SA.SVG&&(e===NA.FOREIGN_OBJECT||e===NA.DESC||e===NA.TITLE)}(e,t,n)||(!r||r===SA.MATHML)&&function(e,t){return t===SA.MATHML&&(e===NA.MI||e===NA.MO||e===NA.MN||e===NA.MS||e===NA.MTEXT)}(e,t)}const Tv="hidden",kv=8,_v=3;var Nv;!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(Nv||(Nv={}));const Iv={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Pv=new Set([NA.TABLE,NA.TBODY,NA.TFOOT,NA.THEAD,NA.TR]),Rv={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:av,onParseError:null};class Dv{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Nv.INITIAL,this.originalInsertionMode=Nv.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Rv,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!==t&&void 0!==t?t:this.treeAdapter.createDocument(),this.tokenizer=new WA(this.options,this),this.activeFormattingElements=new ov(this.treeAdapter),this.fragmentContextID=n?PA(this.treeAdapter.getTagName(n)):NA.UNKNOWN,this._setContextModes(null!==n&&void 0!==n?n:this.document,this.fragmentContextID),this.openElements=new tv(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...Rv,...t};null!==e&&void 0!==e||(e=n.treeAdapter.createElement(_A.TEMPLATE,SA.HTML,[]));const r=n.treeAdapter.createElement("documentmock",SA.HTML,[]),o=new this(n,r,e);return o.fragmentContextID===NA.TEMPLATE&&o.tmplInsertionModeStack.unshift(Nv.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const o=null!==(r=e.location)&&void 0!==r?r:Iv,a={code:t,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:n?o.startLine:o.endLine,endCol:n?o.startCol:o.endCol,endOffset:n?o.startOffset:o.endOffset};this.onParseError(a)}
vendor: 16,384 bytes, line 2
2onItemPush(e,t,n){var r,o;null===(o=(r=this.treeAdapter).onItemPush)||void 0===o||o.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===SA.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,SA.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Nv.TEXT}switchToPlaintextParsing(){this.insertionMode=Nv.TEXT,this.originalInsertionMode=Nv.IN_BODY,this.tokenizer.state=MA.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===_A.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===SA.HTML)switch(this.fragmentContextID){case NA.TITLE:case NA.TEXTAREA:this.tokenizer.state=MA.RCDATA;break;case NA.STYLE:case NA.XMP:case NA.IFRAME:case NA.NOEMBED:case NA.NOFRAMES:case NA.NOSCRIPT:this.tokenizer.state=MA.RAWTEXT;break;case NA.SCRIPT:this.tokenizer.state=MA.SCRIPT_DATA;break;case NA.PLAINTEXT:this.tokenizer.state=MA.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,SA.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,SA.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(_A.HTML,SA.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,NA.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),o=n?r.lastIndexOf(n):r.length,a=r[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),o=t.type===sA.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==NA.SVG||this.treeAdapter.getTagName(t)!==_A.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==SA.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===NA.MGLYPH||e.tagID===NA.MALIGNMARK)&&!this._isIntegrationPoint(n,t,SA.HTML))}_processToken(e){switch(e.type){case sA.CHARACTER:this.onCharacter(e);break;case sA.NULL_CHARACTER:this.onNullCharacter(e);break;case sA.COMMENT:this.onComment(e);break;case sA.DOCTYPE:this.onDoctype(e);break;case sA.START_TAG:this._processStartTag(e);break;case sA.END_TAG:this.onEndTag(e);break;case sA.EOF:this.onEof(e);break;case sA.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Sv(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===nv.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Nv.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(NA.P),this.openElements.popUntilTagNamePopped(NA.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case NA.TR:return void(this.insertionMode=Nv.IN_ROW);case NA.TBODY:case NA.THEAD:case NA.TFOOT:return void(this.insertionMode=Nv.IN_TABLE_BODY);case NA.CAPTION:return void(this.insertionMode=Nv.IN_CAPTION);case NA.COLGROUP:return void(this.insertionMode=Nv.IN_COLUMN_GROUP);case NA.TABLE:return void(this.insertionMode=Nv.IN_TABLE);case NA.BODY:return void(this.insertionMode=Nv.IN_BODY);case NA.FRAMESET:return void(this.insertionMode=Nv.IN_FRAMESET);case NA.SELECT:return void this._resetInsertionModeForSelect(e);case NA.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case NA.HTML:return void(this.insertionMode=this.headElement?Nv.AFTER_HEAD:Nv.BEFORE_HEAD);case NA.TD:case NA.TH:if(e>0)return void(this.insertionMode=Nv.IN_CELL);break;case NA.HEAD:if(e>0)return void(this.insertionMode=Nv.IN_HEAD)}this.insertionMode=Nv.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===NA.TEMPLATE)break;if(e===NA.TABLE)return void(this.insertionMode=Nv.IN_SELECT_IN_TABLE)}this.insertionMode=Nv.IN_SELECT}_isElementCausesFosterParenting(e){return Pv.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case NA.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===SA.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case NA.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return DA[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Nv.INITIAL:Wv(this,e);break;case Nv.BEFORE_HTML:Vv(this,e);break;case Nv.BEFORE_HEAD:Gv(this,e);break;case Nv.IN_HEAD:Qv(this,e);break;case Nv.IN_HEAD_NO_SCRIPT:Xv(this,e);break;case Nv.AFTER_HEAD:Kv(this,e);break;case Nv.IN_BODY:case Nv.IN_CAPTION:case Nv.IN_CELL:case Nv.IN_TEMPLATE:$v(this,e);break;case Nv.TEXT:case Nv.IN_SELECT:case Nv.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Nv.IN_TABLE:case Nv.IN_TABLE_BODY:case Nv.IN_ROW:ly(this,e);break;case Nv.IN_TABLE_TEXT:hy(this,e);break;case Nv.IN_COLUMN_GROUP:Ay(this,e);break;case Nv.AFTER_BODY:Ty(this,e);break;case Nv.AFTER_AFTER_BODY:ky(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=Qg,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Nv.INITIAL:Wv(this,e);break;case Nv.BEFORE_HTML:Vv(this,e);break;case Nv.BEFORE_HEAD:Gv(this,e);break;case Nv.IN_HEAD:Qv(this,e);break;case Nv.IN_HEAD_NO_SCRIPT:Xv(this,e);break;case Nv.AFTER_HEAD:Kv(this,e);break;case Nv.TEXT:this._insertCharacters(e);break;case Nv.IN_TABLE:case Nv.IN_TABLE_BODY:case Nv.IN_ROW:ly(this,e);break;case Nv.IN_COLUMN_GROUP:Ay(this,e);break;case Nv.AFTER_BODY:Ty(this,e);break;case Nv.AFTER_AFTER_BODY:ky(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)zv(this,e);else switch(this.insertionMode){case Nv.INITIAL:case Nv.BEFORE_HTML:case Nv.BEFORE_HEAD:case Nv.IN_HEAD:case Nv.IN_HEAD_NO_SCRIPT:case Nv.AFTER_HEAD:case Nv.IN_BODY:case Nv.IN_TABLE:case Nv.IN_CAPTION:case Nv.IN_COLUMN_GROUP:case Nv.IN_TABLE_BODY:case Nv.IN_ROW:case Nv.IN_CELL:case Nv.IN_SELECT:case Nv.IN_SELECT_IN_TABLE:case Nv.IN_TEMPLATE:case Nv.IN_FRAMESET:case Nv.AFTER_FRAMESET:zv(this,e);break;case Nv.IN_TABLE_TEXT:fy(this,e);break;case Nv.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Nv.AFTER_AFTER_BODY:case Nv.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Nv.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?kA.QUIRKS:function(e){if(e.name!==iv)return kA.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===lv)return kA.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),dv.has(n))return kA.QUIRKS;let e=null===t?uv:cv;if(fv(n,e))return kA.QUIRKS;if(e=null===t?pv:hv,fv(n,e))return kA.LIMITED_QUIRKS}return kA.NO_QUIRKS}(t);(function(e){return e.name===iv&&null===e.publicId&&(null===e.systemId||e.systemId===sv)})(t)||e._err(t,aA.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Nv.BEFORE_HTML}(this,e);break;case Nv.BEFORE_HEAD:case Nv.IN_HEAD:case Nv.IN_HEAD_NO_SCRIPT:case Nv.AFTER_HEAD:this._err(e,aA.misplacedDoctype);break;case Nv.IN_TABLE_TEXT:fy(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,aA.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===NA.FONT&&e.attrs.some((e=>{let{name:t}=e;return t===TA.COLOR||t===TA.SIZE||t===TA.FACE}))||xv.has(t)}(t))_y(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===SA.MATHML?wv(t):r===SA.SVG&&(!function(e){const t=bv.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=PA(e.tagName))}(t),Ev(t)),Cv(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Nv.INITIAL:Wv(this,e);break;case Nv.BEFORE_HTML:!function(e,t){t.tagID===NA.HTML?(e._insertElement(t,SA.HTML),e.insertionMode=Nv.BEFORE_HEAD):Vv(e,t)}(this,e);break;case Nv.BEFORE_HEAD:!function(e,t){switch(t.tagID){case NA.HTML:oy(e,t);break;case NA.HEAD:e._insertElement(t,SA.HTML),e.headElement=e.openElements.current,e.insertionMode=Nv.IN_HEAD;break;default:Gv(e,t)}}(this,e);break;case Nv.IN_HEAD:qv(this,e);break;case Nv.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case NA.HTML:oy(e,t);break;case NA.BASEFONT:case NA.BGSOUND:case NA.HEAD:case NA.LINK:case NA.META:case NA.NOFRAMES:case NA.STYLE:qv(e,t);break;case NA.NOSCRIPT:e._err(t,aA.nestedNoscriptInHead);break;default:Xv(e,t)}}(this,e);break;case Nv.AFTER_HEAD:!function(e,t){switch(t.tagID){case NA.HTML:oy(e,t);break;case NA.BODY:e._insertElement(t,SA.HTML),e.framesetOk=!1,e.insertionMode=Nv.IN_BODY;break;case NA.FRAMESET:e._insertElement(t,SA.HTML),e.insertionMode=Nv.IN_FRAMESET;break;case NA.BASE:case NA.BASEFONT:case NA.BGSOUND:case NA.LINK:case NA.META:case NA.NOFRAMES:case NA.SCRIPT:case NA.STYLE:case NA.TEMPLATE:case NA.TITLE:e._err(t,aA.abandonedHeadElementChild),e.openElements.push(e.headElement,NA.HEAD),qv(e,t),e.openElements.remove(e.headElement);break;case NA.HEAD:e._err(t,aA.misplacedStartTagForHeadElement);break;default:Kv(e,t)}}(this,e);break;case Nv.IN_BODY:oy(this,e);break;case Nv.IN_TABLE:cy(this,e);break;case Nv.IN_TABLE_TEXT:fy(this,e);break;case Nv.IN_CAPTION:!function(e,t){const n=t.tagID;my.has(n)?e.openElements.hasInTableScope(NA.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(NA.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Nv.IN_TABLE,cy(e,t)):oy(e,t)}(this,e);break;case Nv.IN_COLUMN_GROUP:gy(this,e);break;case Nv.IN_TABLE_BODY:vy(this,e);break;case Nv.IN_ROW:by(this,e);break;case Nv.IN_CELL:!function(e,t){const n=t.tagID;my.has(n)?(e.openElements.hasInTableScope(NA.TD)||e.openElements.hasInTableScope(NA.TH))&&(e._closeTableCell(),by(e,t)):oy(e,t)}(this,e);break;case Nv.IN_SELECT:wy(this,e);break;case Nv.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===NA.CAPTION||n===NA.TABLE||n===NA.TBODY||n===NA.TFOOT||n===NA.THEAD||n===NA.TR||n===NA.TD||n===NA.TH?(e.openElements.popUntilTagNamePopped(NA.SELECT),e._resetInsertionMode(),e._processStartTag(t)):wy(e,t)}(this,e);break;case Nv.IN_TEMPLATE:!function(e,t){switch(t.tagID){case NA.BASE:case NA.BASEFONT:case NA.BGSOUND:case NA.LINK:case NA.META:case NA.NOFRAMES:case NA.SCRIPT:case NA.STYLE:case NA.TEMPLATE:case NA.TITLE:qv(e,t);break;case NA.CAPTION:case NA.COLGROUP:case NA.TBODY:case NA.TFOOT:case NA.THEAD:e.tmplInsertionModeStack[0]=Nv.IN_TABLE,e.insertionMode=Nv.IN_TABLE,cy(e,t);break;case NA.COL:e.tmplInsertionModeStack[0]=Nv.IN_COLUMN_GROUP,e.insertionMode=Nv.IN_COLUMN_GROUP,gy(e,t);break;case NA.TR:e.tmplInsertionModeStack[0]=Nv.IN_TABLE_BODY,e.insertionMode=Nv.IN_TABLE_BODY,vy(e,t);break;case NA.TD:case NA.TH:e.tmplInsertionModeStack[0]=Nv.IN_ROW,e.insertionMode=Nv.IN_ROW,by(e,t);break;default:e.tmplInsertionModeStack[0]=Nv.IN_BODY,e.insertionMode=Nv.IN_BODY,oy(e,t)}}(this,e);break;case Nv.AFTER_BODY:!function(e,t){t.tagID===NA.HTML?oy(e,t):Ty(e,t)}(this,e);break;case Nv.IN_FRAMESET:!function(e,t){switch(t.tagID){case NA.HTML:oy(e,t);break;case NA.FRAMESET:e._insertElement(t,SA.HTML);break;case NA.FRAME:e._appendElement(t,SA.HTML),t.ackSelfClosing=!0;break;case NA.NOFRAMES:qv(e,t)}}(this,e);break;case Nv.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case NA.HTML:oy(e,t);break;case NA.NOFRAMES:qv(e,t)}}(this,e);break;case Nv.AFTER_AFTER_BODY:!function(e,t){t.tagID===NA.HTML?oy(e,t):ky(e,t)}(this,e);break;case Nv.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case NA.HTML:oy(e,t);break;case NA.NOFRAMES:qv(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.curren
vendor: 4,945 bytes, line 2
2tToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===NA.P||t.tagID===NA.BR)return _y(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===SA.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Nv.INITIAL:Wv(this,e);break;case Nv.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==NA.HTML&&n!==NA.HEAD&&n!==NA.BODY&&n!==NA.BR||Vv(e,t)}(this,e);break;case Nv.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===NA.HEAD||n===NA.BODY||n===NA.HTML||n===NA.BR?Gv(e,t):e._err(t,aA.endTagWithoutMatchingOpenElement)}(this,e);break;case Nv.IN_HEAD:!function(e,t){switch(t.tagID){case NA.HEAD:e.openElements.pop(),e.insertionMode=Nv.AFTER_HEAD;break;case NA.BODY:case NA.BR:case NA.HTML:Qv(e,t);break;case NA.TEMPLATE:Yv(e,t);break;default:e._err(t,aA.endTagWithoutMatchingOpenElement)}}(this,e);break;case Nv.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case NA.NOSCRIPT:e.openElements.pop(),e.insertionMode=Nv.IN_HEAD;break;case NA.BR:Xv(e,t);break;default:e._err(t,aA.endTagWithoutMatchingOpenElement)}}(this,e);break;case Nv.AFTER_HEAD:!function(e,t){switch(t.tagID){case NA.BODY:case NA.HTML:case NA.BR:Kv(e,t);break;case NA.TEMPLATE:Yv(e,t);break;default:e._err(t,aA.endTagWithoutMatchingOpenElement)}}(this,e);break;case Nv.IN_BODY:iy(this,e);break;case Nv.TEXT:!function(e,t){var n;t.tagID===NA.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Nv.IN_TABLE:uy(this,e);break;case Nv.IN_TABLE_TEXT:fy(this,e);break;case Nv.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case NA.CAPTION:case NA.TABLE:e.openElements.hasInTableScope(NA.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(NA.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Nv.IN_TABLE,n===NA.TABLE&&uy(e,t));break;case NA.BODY:case NA.COL:case NA.COLGROUP:case NA.HTML:case NA.TBODY:case NA.TD:case NA.TFOOT:case NA.TH:case NA.THEAD:case NA.TR:break;default:iy(e,t)}}(this,e);break;case Nv.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case NA.COLGROUP:e.openElements.currentTagId===NA.COLGROUP&&(e.openElements.pop(),e.insertionMode=Nv.IN_TABLE);break;case NA.TEMPLATE:Yv(e,t);break;case NA.COL:break;default:Ay(e,t)}}(this,e);break;case Nv.IN_TABLE_BODY:yy(this,e);break;case Nv.IN_ROW:xy(this,e);break;case Nv.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case NA.TD:case NA.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Nv.IN_ROW);break;case NA.TABLE:case NA.TBODY:case NA.TFOOT:case NA.THEAD:case NA.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),xy(e,t));break;case NA.BODY:case NA.CAPTION:case NA.COL:case NA.COLGROUP:case NA.HTML:break;default:iy(e,t)}}(this,e);break;case Nv.IN_SELECT:Ey(this,e);break;case Nv.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===NA.CAPTION||n===NA.TABLE||n===NA.TBODY||n===NA.TFOOT||n===NA.THEAD||n===NA.TR||n===NA.TD||n===NA.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(NA.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ey(e,t)}(this,e);break;case Nv.IN_TEMPLATE:!function(e,t){t.tagID===NA.TEMPLATE&&Yv(e,t)}(this,e);break;case Nv.AFTER_BODY:Sy(this,e);break;case Nv.IN_FRAMESET:!function(e,t){t.tagID!==NA.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===NA.FRAMESET||(e.insertionMode=Nv.AFTER_FRAMESET))}(this,e);break;case Nv.AFTER_FRAMESET:!function(e,t){t.tagID===NA.HTML&&(e.insertionMode=Nv.AFTER_AFTER_FRAMESET)}(this,e);break;case Nv.AFTER_AFTER_BODY:ky(this,e)}}onEof(e){switch(this.insertionMode){case Nv.INITIAL:Wv(this,e);break;case Nv.BEFORE_HTML:Vv(this,e);break;case Nv.BEFORE_HEAD:Gv(this,e);break;case Nv.IN_HEAD:Qv(this,e);break;case Nv.IN_HEAD_NO_SCRIPT:Xv(this,e);break;case Nv.AFTER_HEAD:Kv(this,e);break;case Nv.IN_BODY:case Nv.IN_TABLE:case Nv.IN_CAPTION:case Nv.IN_COLUMN_GROUP:case Nv.IN_TABLE_BODY:case Nv.IN_ROW:case Nv.IN_CELL:case Nv.IN_SELECT:case Nv.IN_SELECT_IN_TABLE:sy(this,e);break;case Nv.TEXT:!function(e,t){e._err(t,aA.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Nv.IN_TABLE_TEXT:fy(this,e);break;case Nv.IN_TEMPLATE:Cy(this,e);break;case Nv.AFTER_BODY:case Nv.IN_FRAMESET:case Nv.AFTER_FRAMESET:case Nv.AFTER_AFTER_BODY:case Nv.AFTER_AFTER_FRAMESET:Hv(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCo
vendor: 6,916 bytes, line 2
2deAt(0)===Xg.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Nv.IN_HEAD:case Nv.IN_HEAD_NO_SCRIPT:case Nv.AFTER_HEAD:case Nv.TEXT:case Nv.IN_COLUMN_GROUP:case Nv.IN_SELECT:case Nv.IN_SELECT_IN_TABLE:case Nv.IN_FRAMESET:case Nv.AFTER_FRAMESET:this._insertCharacters(e);break;case Nv.IN_BODY:case Nv.IN_CAPTION:case Nv.IN_CELL:case Nv.IN_TEMPLATE:case Nv.AFTER_BODY:case Nv.AFTER_AFTER_BODY:case Nv.AFTER_AFTER_FRAMESET:Zv(this,e);break;case Nv.IN_TABLE:case Nv.IN_TABLE_BODY:case Nv.IN_ROW:ly(this,e);break;case Nv.IN_TABLE_TEXT:py(this,e)}}}function Lv(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ay(e,t),n}function Ov(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Mv(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let a=0,i=o;i!==n;a++,i=o){o=e.openElements.getCommonAncestor(i);const n=e.activeFormattingElements.getElementEntry(i),s=n&&a>=_v;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(i)):(i=jv(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function jv(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Fv(e,t,n){const r=PA(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);r===NA.TEMPLATE&&o===SA.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Bv(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,a=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,o.tagID)}function Uv(e,t){for(let n=0;n<kv;n++){const n=Lv(e,t);if(!n)break;const r=Ov(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const o=Mv(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),a&&Fv(e,a,o),Bv(e,r,n)}}function zv(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Hv(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Wv(e,t){e._err(t,aA.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,kA.QUIRKS),e.insertionMode=Nv.BEFORE_HTML,e._processToken(t)}function Vv(e,t){e._insertFakeRootElement(),e.insertionMode=Nv.BEFORE_HEAD,e._processToken(t)}function Gv(e,t){e._insertFakeElement(_A.HEAD,NA.HEAD),e.headElement=e.openElements.current,e.insertionMode=Nv.IN_HEAD,e._processToken(t)}function qv(e,t){switch(t.tagID){case NA.HTML:oy(e,t);break;case NA.BASE:case NA.BASEFONT:case NA.BGSOUND:case NA.LINK:case NA.META:e._appendElement(t,SA.HTML),t.ackSelfClosing=!0;break;case NA.TITLE:e._switchToTextParsing(t,MA.RCDATA);break;case NA.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,MA.RAWTEXT):(e._insertElement(t,SA.HTML),e.insertionMode=Nv.IN_HEAD_NO_SCRIPT);break;case NA.NOFRAMES:case NA.STYLE:e._switchToTextParsing(t,MA.RAWTEXT);break;case NA.SCRIPT:e._switchToTextParsing(t,MA.SCRIPT_DATA);break;case NA.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Nv.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Nv.IN_TEMPLATE);break;case NA.HEAD:e._err(t,aA.misplacedStartTagForHeadElement);break;default:Qv(e,t)}}function Yv(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==NA.TEMPLATE&&e._err(t,aA.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(NA.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,aA.endTagWithoutMatchingOpenElement)}function Qv(e,t){e.openElements.pop(),e.insertionMode=Nv.AFTER_HEAD,e._processToken(t)}function Xv(e,t){const n=t.type===sA.EOF?aA.openElementsLeftAfterEof:aA.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Nv.IN_HEAD,e._processToken(t)}function Kv(e,t){e._insertFakeElement(_A.BODY,NA.BODY),e.insertionMode=Nv.IN_BODY,Jv(e,t)}function Jv(e,t){switch(t.type){case sA.CHARACTER:$v(e,t);break;case sA.WHITESPACE_CHARACTER:Zv(e,t);break;case sA.COMMENT:zv(e,t);break;case sA.START_TAG:oy(e,t);break;case sA.END_TAG:iy(e,t);break;case sA.EOF:sy(e,t)}}function Zv(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $v(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ey(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,SA.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ty(e){const t=lA(e,TA.TYPE);return null!=t&&t.toLowerCase()===Tv}function ny(e,t){e._switchToTextParsing(t,MA.RAWTEXT)}function ry(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,SA.HTML)}function oy(e,t){switch(t.tagID){case NA.I:case NA.S:case NA.B:case NA.U:case NA.EM:case NA.TT:case NA.BIG:case NA.CODE:case NA.FONT:case NA.SMALL:case NA.STRIKE:case NA.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,SA.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case NA.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_A.A);n&&(Uv(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,SA.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case NA.H1:case NA.H2:case NA.H3:case NA.H4:case NA.H5:case NA.H6:!function(e,t){e.openElements.hasInButtonScope(NA.P)&&e._closePElement(),LA.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,SA.HTML)}(e,t);break;case NA.P:case NA.DL:case NA.OL:case NA.UL:case NA.DIV:case NA.DIR:case NA.NAV:case NA.MAIN:case NA.MENU:case NA.ASIDE:case NA.CENT
vendor: 4,923 bytes, line 2
2ER:case NA.FIGURE:case NA.FOOTER:case NA.HEADER:case NA.HGROUP:case NA.DIALOG:case NA.DETAILS:case NA.ADDRESS:case NA.ARTICLE:case NA.SEARCH:case NA.SECTION:case NA.SUMMARY:case NA.FIELDSET:case NA.BLOCKQUOTE:case NA.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(NA.P)&&e._closePElement(),e._insertElement(t,SA.HTML)}(e,t);break;case NA.LI:case NA.DD:case NA.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===NA.LI&&t===NA.LI||(n===NA.DD||n===NA.DT)&&(t===NA.DD||t===NA.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==NA.ADDRESS&&t!==NA.DIV&&t!==NA.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(NA.P)&&e._closePElement(),e._insertElement(t,SA.HTML)}(e,t);break;case NA.BR:case NA.IMG:case NA.WBR:case NA.AREA:case NA.EMBED:case NA.KEYGEN:ey(e,t);break;case NA.HR:!function(e,t){e.openElements.hasInButtonScope(NA.P)&&e._closePElement(),e._appendElement(t,SA.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case NA.RB:case NA.RTC:!function(e,t){e.openElements.hasInScope(NA.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,SA.HTML)}(e,t);break;case NA.RT:case NA.RP:!function(e,t){e.openElements.hasInScope(NA.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(NA.RTC),e._insertElement(t,SA.HTML)}(e,t);break;case NA.PRE:case NA.LISTING:!function(e,t){e.openElements.hasInButtonScope(NA.P)&&e._closePElement(),e._insertElement(t,SA.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case NA.XMP:!function(e,t){e.openElements.hasInButtonScope(NA.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,MA.RAWTEXT)}(e,t);break;case NA.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Ev(t),Cv(t),t.selfClosing?e._appendElement(t,SA.SVG):e._insertElement(t,SA.SVG),t.ackSelfClosing=!0}(e,t);break;case NA.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case NA.BASE:case NA.LINK:case NA.META:case NA.STYLE:case NA.TITLE:case NA.SCRIPT:case NA.BGSOUND:case NA.BASEFONT:case NA.TEMPLATE:qv(e,t);break;case NA.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case NA.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(NA.P)&&e._closePElement(),e._insertElement(t,SA.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case NA.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(NA.NOBR)&&(Uv(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,SA.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case NA.MATH:!function(e,t){e._reconstructActiveFormattingElements(),wv(t),Cv(t),t.selfClosing?e._appendElement(t,SA.MATHML):e._insertElement(t,SA.MATHML),t.ackSelfClosing=!0}(e,t);break;case NA.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==kA.QUIRKS&&e.openElements.hasInButtonScope(NA.P)&&e._closePElement(),e._insertElement(t,SA.HTML),e.framesetOk=!1,e.insertionMode=Nv.IN_TABLE}(e,t);break;case NA.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,SA.HTML),ty(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case NA.PARAM:case NA.TRACK:case NA.SOURCE:!function(e,t){e._appendElement(t,SA.HTML),t.ackSelfClosing=!0}(e,t);break;case NA.IMAGE:!function(e,t){t.tagName=_A.IMG,t.tagID=NA.IMG,ey(e,t)}(e,t);break;case NA.BUTTON:!function(e,t){e.openElements.hasInScope(NA.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(NA.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,SA.HTML),e.framesetOk=!1}(e,t);break;case NA.APPLET:case NA.OBJECT:case NA.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,SA.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case NA.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,MA.RAWTEXT)}(e,t);break;case NA.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,SA.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Nv.IN_TABLE||e.insertionMode===Nv.IN_CAPTION||e.insertionMode===Nv.IN_TABLE_BODY||e.insertionMode===Nv.IN_ROW||e.insertionMode===Nv.IN_CELL?Nv.IN_SELECT_IN_TABLE:Nv.IN_SELECT}(e,t);break;case NA.OPTION:case NA.OPTGROUP:!function(e,t){e.openElements.currentTagId===NA.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,SA.HTML)}(e,t);break;case NA.NOEMBED:case NA.NOFRAMES:ny(e,t);break;case NA.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();
vendor: 11,203 bytes, line 2
2e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,SA.HTML),e.insertionMode=Nv.IN_FRAMESET)}(e,t);break;case NA.TEXTAREA:!function(e,t){e._insertElement(t,SA.HTML),e.skipNextNewLine=!0,e.tokenizer.state=MA.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Nv.TEXT}(e,t);break;case NA.NOSCRIPT:e.options.scriptingEnabled?ny(e,t):ry(e,t);break;case NA.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(NA.P)&&e._closePElement(),e._insertElement(t,SA.HTML),e.tokenizer.state=MA.PLAINTEXT}(e,t);break;case NA.COL:case NA.TH:case NA.TD:case NA.TR:case NA.HEAD:case NA.FRAME:case NA.TBODY:case NA.TFOOT:case NA.THEAD:case NA.CAPTION:case NA.COLGROUP:break;default:ry(e,t)}}function ay(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const t=e.openElements.items[o],a=e.openElements.tagIDs[o];if(r===a&&(r!==NA.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(t,a))break}}function iy(e,t){switch(t.tagID){case NA.A:case NA.B:case NA.I:case NA.S:case NA.U:case NA.EM:case NA.TT:case NA.BIG:case NA.CODE:case NA.FONT:case NA.NOBR:case NA.SMALL:case NA.STRIKE:case NA.STRONG:Uv(e,t);break;case NA.P:!function(e){e.openElements.hasInButtonScope(NA.P)||e._insertFakeElement(_A.P,NA.P),e._closePElement()}(e);break;case NA.DL:case NA.UL:case NA.OL:case NA.DIR:case NA.DIV:case NA.NAV:case NA.PRE:case NA.MAIN:case NA.MENU:case NA.ASIDE:case NA.BUTTON:case NA.CENTER:case NA.FIGURE:case NA.FOOTER:case NA.HEADER:case NA.HGROUP:case NA.DIALOG:case NA.ADDRESS:case NA.ARTICLE:case NA.DETAILS:case NA.SEARCH:case NA.SECTION:case NA.SUMMARY:case NA.LISTING:case NA.FIELDSET:case NA.BLOCKQUOTE:case NA.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case NA.LI:!function(e){e.openElements.hasInListItemScope(NA.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(NA.LI),e.openElements.popUntilTagNamePopped(NA.LI))}(e);break;case NA.DD:case NA.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case NA.H1:case NA.H2:case NA.H3:case NA.H4:case NA.H5:case NA.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case NA.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_A.BR,NA.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case NA.BODY:!function(e,t){if(e.openElements.hasInScope(NA.BODY)&&(e.insertionMode=Nv.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case NA.HTML:!function(e,t){e.openElements.hasInScope(NA.BODY)&&(e.insertionMode=Nv.AFTER_BODY,Sy(e,t))}(e,t);break;case NA.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(NA.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(NA.FORM):n&&e.openElements.remove(n))}(e);break;case NA.APPLET:case NA.OBJECT:case NA.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case NA.TEMPLATE:Yv(e,t);break;default:ay(e,t)}}function sy(e,t){e.tmplInsertionModeStack.length>0?Cy(e,t):Hv(e,t)}function ly(e,t){if(Pv.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Nv.IN_TABLE_TEXT,t.type){case sA.CHARACTER:hy(e,t);break;case sA.WHITESPACE_CHARACTER:py(e,t)}else dy(e,t)}function cy(e,t){switch(t.tagID){case NA.TD:case NA.TH:case NA.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_A.TBODY,NA.TBODY),e.insertionMode=Nv.IN_TABLE_BODY,vy(e,t)}(e,t);break;case NA.STYLE:case NA.SCRIPT:case NA.TEMPLATE:qv(e,t);break;case NA.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_A.COLGROUP,NA.COLGROUP),e.insertionMode=Nv.IN_COLUMN_GROUP,gy(e,t)}(e,t);break;case NA.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,SA.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case NA.TABLE:!function(e,t){e.openElements.hasInTableScope(NA.TABLE)&&(e.openElements.popUntilTagNamePopped(NA.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case NA.TBODY:case NA.TFOOT:case NA.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,SA.HTML),e.insertionMode=Nv.IN_TABLE_BODY}(e,t);break;case NA.INPUT:!function(e,t){ty(t)?e._appendElement(t,SA.HTML):dy(e,t),t.ackSelfClosing=!0}(e,t);break;case NA.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,SA.HTML),e.insertionMode=Nv.IN_CAPTION}(e,t);break;case NA.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,SA.HTML),e.insertionMode=Nv.IN_COLUMN_GROUP}(e,t);break;default:dy(e,t)}}function uy(e,t){switch(t.tagID){case NA.TABLE:e.openElements.hasInTableScope(NA.TABLE)&&(e.openElements.popUntilTagNamePopped(NA.TABLE),e._resetInsertionMode());break;case NA.TEMPLATE:Yv(e,t);break;case NA.BODY:case NA.CAPTION:case NA.COL:case NA.COLGROUP:case NA.HTML:case NA.TBODY:case NA.TD:case NA.TFOOT:case NA.TH:case NA.THEAD:case NA.TR:break;default:dy(e,t)}}function dy(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Jv(e,t),e.fosterParentingEnabled=n}function py(e,t){e.pendingCharacterTokens.push(t)}function hy(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function fy(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)dy(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const my=new Set([NA.CAPTION,NA.COL,NA.COLGROUP,NA.TBODY,NA.TD,NA.TFOOT,NA.TH,NA.THEAD,NA.TR]);function gy(e,t){switch(t.tagID){case NA.HTML:oy(e,t);break;case NA.COL:e._appendElement(t,SA.HTML),t.ackSelfClosing=!0;break;case NA.TEMPLATE:qv(e,t);break;default:Ay(e,t)}}function Ay(e,t){e.openElements.currentTagId===NA.COLGROUP&&(e.openElements.pop(),e.insertionMode=Nv.IN_TABLE,e._processToken(t))}function vy(e,t){switch(t.tagID){case NA.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,SA.HTML),e.insertionMode=Nv.IN_ROW;break;case NA.TH:case NA.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(_A.TR,NA.TR),e.insertionMode=Nv.IN_ROW,by(e,t);break;case NA.CAPTION:case NA.COL:case NA.COLGROUP:case NA.TBODY:case NA.TFOOT:case NA.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Nv.IN_TABLE,cy(e,t));break;default:cy(e,t)}}function yy(e,t){const n=t.tagID;switch(t.tagID){case NA.TBODY:case NA.TFOOT:case NA.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Nv.IN_TABLE);break;case NA.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Nv.IN_TABLE,uy(e,t));break;case NA.BODY:case NA.CAPTION:case NA.COL:case NA.COLGROUP:case NA.HTML:case NA.TD:case NA.TH:case NA.TR:break;default:uy(e,t)}}function by(e,t){switch(t.tagID){case NA.TH:case NA.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,SA.HTML),e.insertionMode=Nv.IN_CELL,e.activeFormattingElements.insertMarker();break;case NA.CAPTION:case NA.COL:case NA.COLGROUP:case NA.TBODY:case NA.TFOOT:case NA.THEAD:case NA.TR:e.openElements.hasInTableScope(NA.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Nv.IN_TABLE_BODY,vy(e,t));break;default:cy(e,t)}}function xy(e,t){switch(t.tagID){case NA.TR:e.openElements.hasInTableScope(NA.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Nv.IN_TABLE_BODY);break;case NA.TABLE:e.openElements.hasInTableScope(NA.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Nv.IN_TABLE_BODY,yy(e,t));break;case NA.TBODY:case NA.TFOOT:case NA.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(NA.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Nv.IN_TABLE_BODY,yy(e,t));break;case NA.BODY:case NA.CAPTION:case NA.COL:case NA.COLGROUP:case NA.HTML:case NA.TD:case NA.TH:break;default:uy(e,t)}}function wy(e,t){switch(t.tagID){case NA.HTML:oy(e,t);break;case NA.OPTION:e.openElements.currentTagId===NA.OPTION&&e.openElements.pop(),e._insertElement(t,SA.HTML);break;case NA.OPTGROUP:e.openElements.currentTagId===NA.OPTION&&e.openElements.pop(),e.openElements.currentTagId===NA.OPTGROUP&&e.openElements.pop(),e._insertElement(t,SA.HTML);break;case NA.HR:e.openElements.currentTagId===NA.OPTION&&e.openElements.pop(),e.openElements.currentTagId===NA.OPTGROUP&&e.openElements.pop(),e._appendElement(t,SA.HTML),t.ackSelfClosing=!0;break;case NA.INPUT:case NA.KEYGEN:case NA.TEXTAREA:case NA.SELECT:e.openElements.hasInSelectScope(NA.SELECT)&&(e.openElements.popUntilTagNamePopped(NA.SELECT),e._resetInsertionMode(),t.tagID!==NA.SELECT&&e._processStartTag(t));break;case NA.SCRIPT:case NA.TEMPLATE:qv(e,t)}}function Ey(e,t){switch(t.tagID){case NA.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===NA.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===NA.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===NA.OPTGROUP&&e.openElements.pop();break;case NA.OPTION:e.openElements.currentTagId===NA.OPTION&&e.openElements.pop();break;case NA.SELECT:e.openElements.hasInSelectScope(NA.SELECT)&&(e.openElements.popUntilTagNamePopped(NA.SELECT),e._resetInsertionMode());break;case NA.TEMPLATE:Yv(e,t)}}function Cy(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(NA.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Hv(e,t)}function Sy(e,t){var n;if(t.tagID===NA.HTML){if(e.fragmentContext||(e.insertionMode=Nv.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===NA.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else Ty(e,t)}function Ty(e,t){e.insertionMode=Nv.IN_BODY,Jv(e,t)}function ky(e,t){e.insertionMode=Nv.IN_BODY,Jv(e,t)}function _y(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==SA.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.o
2penElements.current);)e.openElements.pop()}const Ny=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function Iy(e,t){return function(n){let r,o=0,a="";for(;r=e.exec(n);)o!==r.index&&(a+=n.substring(o,r.index)),a+=t.get(r[0].charCodeAt(0)),o=r.index+1;return a+n.substring(o)}}Iy(/[&<>'"]/g,Ny),Iy(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Iy(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),new Set([_A.AREA,_A.BASE,_A.BASEFONT,_A.BGSOUND,_A.BR,_A.COL,_A.EMBED,_A.FRAME,_A.HR,_A.IMG,_A.INPUT,_A.KEYGEN,_A.LINK,_A.META,_A.PARAM,_A.SOURCE,_A.TRACK,_A.WBR]);const Py=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Ry=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Dy={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ly(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=Bg("type",{handlers:{root:My,element:jy,text:Fy,comment:zy,doctype:By,raw:Hy},unknown:Wy}),o={parser:n?new Dv(Dy):Dv.getFragmentParser(void 0,Dy),handle(e){r(e,o)},stitches:!1,options:t||{}};r(e,o),Vy(o,Fp());const a=function(e,t){const n=t||{};return Dg({file:n.file||void 0,location:!1,schema:"svg"===n.space?Sp:Cp,verbose:n.verbose||!1},e)}(n?o.parser.document:o.parser.getFragment(),{file:o.options.file});return o.stitches&&km(a,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type?a.children[0]:a}function Oy(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function My(e,t){Oy(e.children,t)}function jy(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===MA.PLAINTEXT)return;Vy(t,Fp(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:Ig.html;o===Ig.html&&"svg"===n&&(o=Ig.svg);const a=function(e,t){const n=(t||Ug).space;return Hg(e,"svg"===n?Sp:Cp)}({...e,children:[]},{space:o===Ig.svg?"svg":"html"}),i={type:sA.START_TAG,tagName:n,tagID:PA(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:qy(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Oy(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&qg.includes(n))return;if(t.parser.tokenizer.state===MA.PLAINTEXT)return;Vy(t,jp(e));const r={type:sA.END_TAG,tagName:n,tagID:PA(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:qy(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==MA.RCDATA&&t.parser.tokenizer.state!==MA.RAWTEXT&&t.parser.tokenizer.state!==MA.SCRIPT_DATA||(t.parser.tokenizer.state=MA.DATA)}(e,t)}function Fy(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:sA.CHARACTER,chars:e.value,location:qy(e)};Vy(t,Fp(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function By(e,t){const n={type:sA.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:qy(e)};Vy(t,Fp(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Uy(e,t){t.stitches=!0;const n=function(e){return fm("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=Ly({type:"root",children:e.children},t.options);n.children=r.children}zy({type:"comment",value:{stitch:n}},t)}function zy(e,t){const n=e.value,r={type:sA.COMMENT,data:n,location:qy(e)};Vy(t,Fp(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Hy(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Gy(t,Fp(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Py,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function Wy(e,t){const n=e;
2if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw Ry.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}Uy(n,t)}function Vy(e,t){Gy(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=MA.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Gy(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function qy(e){const t=Fp(e)||{line:void 0,column:void 0,offset:void 0},n=jp(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Yy(e){return function(t,n){return Ly(t,{...e,file:n})}}const Qy=e=>{let{selectedLanguage:t,onLanguageChange:n}=e;const[r,o]=(0,a.useState)([]),[i,s]=(0,a.useState)(!1),l=(0,a.useRef)(null);(0,a.useEffect)((()=>{function e(e){l.current&&!l.current.contains(e.target)&&s(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[l]),(0,a.useEffect)((()=>{(async()=>{try{const e=await(async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/languages"),{method:"GET",headers:{"Content-type":"application/json",Authorization:"Bearer ".concat(e)}});if(!t.ok)throw new Error("Network response was not okay");return await t.json()}catch(e){throw console.error("Error fetching languages",e),e}})();o(e.languages);const r=e.languages.find((e=>e.isSelected));r&&!t&&n(r.name)}catch(e){console.error("Failed to load languages",e)}})()}),[]);const c=r.find((e=>e.name===t))||{};return(0,$e.jsxs)("div",{className:"language-selector",ref:l,children:[(0,$e.jsxs)("button",{className:"language-select-button",onClick:()=>s(!i),children:[(0,$e.jsx)("span",{children:c.name||t||"English"}),(0,$e.jsx)("svg",{className:"chevron-icon ".concat(i?"open":""),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"currentColor"})})]}),i&&(0,$e.jsx)("ul",{className:"language-options",children:r.map((e=>(0,$e.jsxs)("li",{className:"language-option ".concat(e.name===t?"selected":""),onClick:()=>{return t=e.name,n(t),void s(!1);var t},children:[(0,$e.jsx)("svg",{className:"checkmark-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),e.name]},e.code)))})]})},Xy=e=>{let{selectedReportType:t,onReportTypeChange:n}=e;const[r,o]=(0,a.useState)(!1),i=(0,a.useRef)(null),s=[{value:"original",label:"Original"},{value:"plainLanguage",label:"Plain language"}];(0,a.useEffect)((()=>{function e(e){i.current&&!i.current.contains(e.target)&&o(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[i]);const l=s.find((e=>e.value===t))||s[0];return(0,$e.jsxs)("div",{className:"report-type-selector",ref:i,children:[(0,$e.jsxs)("button",{className:"report-type-select-button",onClick:()=>o(!r),children:[(0,$e.jsx)("span",{children:l.label}),(0,$e.jsx)("svg",{className:"chevron-icon ".concat(r?"open":""),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"
2currentColor"})})]}),r&&(0,$e.jsx)("ul",{className:"report-type-options",children:s.map((e=>(0,$e.jsxs)("li",{className:"report-type-option ".concat(e.value===t?"selected":""),onClick:()=>(n(e.value),void o(!1)),children:[(0,$e.jsx)("svg",{className:"checkmark-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),e.label]},e.value)))})]})},Ky=e=>{let{trustScore:t,trustText:n,selectedLanguage:r,selectedReportType:o,isLoadingReport:a,isLoadingSimplification:i,onLanguageChange:s,onReportTypeChange:l}=e;const c=e=>e/100*360;"conic-gradient(\n ".concat((u=t,u<=35?"#ff5101":u<=70?"#e29b10":"#399d39")," ").concat(c(t),"deg,\n #E8E8E8 ").concat(c(t),"deg 360deg\n )");var u;return(0,$e.jsx)("section",{className:"container",children:(0,$e.jsx)("div",{className:"orderCard",children:(0,$e.jsx)("div",{className:"innerCard",children:(0,$e.jsx)("div",{className:"contentWrapper",children:(0,$e.jsx)("div",{className:"mainColumn",children:(0,$e.jsxs)("div",{className:"trustScoreContent",children:[(0,$e.jsxs)("div",{className:"trustCardHeader",children:[(0,$e.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,$e.jsxs)("svg",{className:"responsive-svg",viewBox:"0 0 184 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,$e.jsx)("path",{d:"M89.6724 10.9168H97.74C99.3525 10.9168 100.835 11.1788 102.187 11.7027C103.534 12.2266 104.696 12.9571 105.672 13.8891C106.649 14.821 107.4 15.9142 107.931 17.1736C108.462 18.4331 108.727 19.7932 108.727 21.2592V21.3196C108.727 22.7856 108.462 24.1559 107.931 25.4203C107.4 26.6898 106.644 27.788 105.672 28.72C104.696 29.652 103.534 30.3824 102.187 30.9215C100.84 31.4555 99.3576 31.7225 97.74 31.7225H89.6724V15.1737V10.9168ZM97.74 27.5916C98.6665 27.5916 99.5128 27.4455 100.279 27.1482C101.045 26.851 101.701 26.4228 102.242 25.8687C102.783 25.3145 103.209 24.6596 103.514 23.909C103.82 23.1534 103.97 22.3121 103.97 21.3801V21.3196C103.97 20.4078 103.82 19.5665 103.514 18.7958C103.209 18.025 102.783 17.36 102.242 16.8059C101.701 16.2517 101.045 15.8185 100.279 15.5112C99.5128 15.2039 98.6615 15.0528 97.74 15.0528H89.7124L89.6774 27.3447V27.5966H97.74V27.5916Z",fill:"#01344A"}),(0,$e.jsx)("path",{d:"M44.2314 10.9168H49.1341L54.5727 19.7126L60.0112 10.9168H64.9139V31.7225H60.4218V18.1409L54.6027 27.0273H54.4825L48.7235 18.2316V31.7275H44.2314V10.9168Z",fill:"#01344A"}),(0,$e.jsx)("path",{d:"M112.779 10.9168H122.234C124.853 10.9168 126.861 11.6221 128.264 13.0276C129.445 14.2165 130.036 15.8034 130.036 17.7832V17.8436C130.036 19.5262 129.626 20.9015 128.809 21.9594C127.993 23.0173 126.921 23.7982 125.604 24.2919L130.657 31.7225H125.339L120.907 25.0626H120.847H117.331V31.7225H112.779V10.9168ZM121.939 21.0224C123.06 21.0224 123.922 20.7554 124.523 20.2214C125.124 19.6874 125.424 18.9721 125.424 18.0804V18.02C125.424 17.0275 125.109 16.287 124.478 15.7933C123.847 15.2996 122.97 15.0528 121.849 15.0528H117.326V21.0224H121.939Z",fill:"#49994C"}),(0,$e.jsx)("path",{d:"M134.142 10.9168H142.59C143.832 10.9168 144.939 11.0881 145.916 11.4357C146.892 11.7833 147.718 12.272 148.399 12.9067C149.081 13.5415 149.601 14.2971 149.967 15.1787C150.332 16.0603 150.513 17.0376 150.513 18.1056V18.1661C150.513 19.3751 150.297 20.433 149.862 21.3448C149.426 22.2567 148.83 23.0173 148.074 23.6319C147.318 24.2465 146.431 24.705 145.415 25.0123C144.398 25.3196 143.311 25.4757 142.15 25.4757H138.694V31.7174H134.142V10.9168ZM142.295 21.4103C143.437 21.4103 144.323 21.1081 144.954 20.5035C145.585 19.899 145.901 19.1534 145.901 18.2618V18.2013C145.901 17.1736 145.57 16.3878 144.909 15.8538C144.248 15.3198 143.347 15.0528 142.205 15.0528H138.689V21.4154H142.295V21.4103Z",fill:"#49994C"}),(0,$e.jsx)("path",{d:"M158.696 15.1384H152.401V10.9168H169.538V15.1384H163.243V31.7225H158.691V15.1384H158.696Z",fill:"#49994C"}),(0,$e.jsx)("path",{d:"M69.8818 10.9168H85.4512V14.9873H74.3739V19.2089H98.6469V23.2793H74.3739V27.647H85.6015V31.7174H69.8818V10.9168Z",fill:"#01344A"}),(0,$e.jsx)("path",{d:"M25.2659 10.3868L28.6042 12.3013L19.5461 17.8172V22.8518L35.5174 13.7398V10.8629L17.6378 0.312347L0 11.106V16.3787L17.7561 5.82821L21.2127 7.74789L0 19.9749V25.2527L25.2659 10.3868Z",fill:"#01344A"}),(0,$e.jsx)("path",{d:"M31.6733 19.3813L31.7093 28.3536L17.8778 36.5239L6.49477 30.0404L16.8594 24.0537V19.0191L0.234863 28.9383V31.6755L17.8778 42.1898L35.7522 31.541V16.97L31.6733 19.3813Z",fill:"#50A854"})]}),(0,$e.jsx)("h2",{className:"trustScoreTitle",children:"Findings"})]}),(0,$e.jsxs)("div",{className:"languageColumn",children:[(0,$e.jsx)(Xy,{selectedReportType:o,onReportTypeChange:l}),(0,$e.jsx)(Qy,{selectedLanguage:r,onLanguageChange:s})]})]}),a||i?(0,$e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"20px",gap:"10px"},children:[" ",(0,$e.jsx)(Hd,{size:20}),(0,$e.jsx)("span",{style:{color:"#4a5568",fontSize:"14px"},children:i?"Simplifying":"Translating"})]}):(0,$e.jsx)(yg,{className:"trustScoreDescription",rehypePlugins:[Yy],children:n})]})})})})})})},Jy=(0,a.createContext)(),Zy=e=>{let{children:t}=e;const[n,r]=(0,a.useState)(!1);return(0,$e.jsx)(Jy.Provider,{value:{refreshTrigger:n,setRefreshTrigger:r},children:t})};const $y=function(){const{user:e}=rd((e=>[e.user])),t=te(),{id:n}=ne(),{pico:r,setPico:o}=(0,a.useContext)(Zc),{filters:i,setFilters:s}=(0,a.useContext)(lr),[l,c]=(0,a.useState)(!0),[u,d]=(0,a.useState)(""),[p]=(0,a.useState)(!1),[h,f]=(0,a.useState)(""),[m,g]=(0,a.useState)([]),[A,v]=(0,a.useState)([]),[y,b]=(0,a.useState)(""),[x,w]=(0,a.useState)(null),[E,C]=(0,a.useState)(null),[S,T]=(0,a.useState)(null),[k,_]=(0,a.useState)(0),[N,I]=(0,a.useState)(0),[P,R]=(0,a.useState)(0),[D,L]=(0,a.useState)(0),[O,M]=(0,a.useState)(""),[j,F]=(0,a.useState)(""),[B,U]=(0,a.useState)(""),[z,H]=(0,a.useState)(""),[W,V]=(0,a.useState)(null),[G,q]=(0,a.useState)(!1),[Y,Q]=(0,a.useState)(!1),[X,K]=(0,a.useState)(!1),[J,Z]=(0,a.useState)("original"),{setRefreshTrigger:$}=(0,a.useContext)(Jy),ee=async e=>{if(e!==S)try{Q(!0),T(e);const t=await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/translate/").concat(t),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)},body:JSON.stringify({targetLanguage:e})});if(!r.ok)throw new Error("Network response was not ok");const o=await r.json();return{originalTranslatedSummary:o.originalTranslatedSummary,simplifiedTranslatedSummary:o.simplifiedTranslatedSummary,translatedArticles:o.translatedArticles,translatedSimplifiedArticles:o.translatedSimplifiedArticles}}catch(n){throw console.error("Unable to translate text",n),n}})(e,n);if(t){if(t.originalTranslatedSummary&&w(t.originalTranslatedSummary),t.simplifiedTranslatedSummary&&""!==t.simplifiedTranslatedSummary.trim()&&C(t.simplifiedTranslatedSummary),t.translatedArticles&&"original"===J){const e=t.translatedArticles.sort(((e,t)=>e.gradeData.GradeNumber-t.gradeData.GradeNumber));g(e),v(e)}if(t.translatedSimplifiedArticles&&"plainLanguage"===J){const e=t.translatedSimplifiedArticles.sort(((e,t)=>e.gradeData.GradeNumber-t.gradeData.GradeNumber));g(e)}else console.warn("No translated articles returned.")}}catch(t){console.error("Error translating synthesis:",t),V("Failed to translate synthesis. Please try again.")}finally{Q(!1)}}
2,re=(e,t,n)=>e||(t?"".concat(t,"/").concat(n):"");(0,a.useEffect)((()=>{const e=setInterval((async()=>{try{c(!0);const t=await Sc(n);if(d(t.status),"Completed"===t.status){const n=t.translatedArticles.sort(((e,t)=>e.gradeData.GradeNumber-t.gradeData.GradeNumber));g(n),v(n),w(t.translatedSynthesisResult),t.translatedSimplifiedSummary&&C(t.translatedSimplifiedSummary),_(t.qualifiedAbstracts),Z("original"),I(t.totalAbstracts),M(t.question),F(t.email),U(t.updatedAt),T(t.languagePreferred),R(t.extractedData.filter((e=>!0===e.isPrivate)).length),L(t.extractedData.filter((e=>!0===e.isPrivate)).length),s({fromDate:re(t.fromDate,t.fromYear,"01/01"),toDate:re(t.toDate,t.toYear,"12/31"),abstracts:t.userSelectedAbstracts,studyDesigns:t.studyDesigns||[]}),H(t.query),o({P:t.pico.P||"",I:t.pico.I||"",C:t.pico.C||"",O:t.pico.O||"",IC:t.pico.IC||"",EC:t.pico.EC||""}),$((e=>!e)),clearInterval(e),c(!1)}else if("Error"===t.status&&"No sufficient articles found. Please try with different search."===t.error){const t=await Sc(n);M(t.question),H(t.query),o({P:t.pico.P||"",I:t.pico.I||"",C:t.pico.C||"",O:t.pico.O||"",IC:t.pico.IC||"",EC:t.pico.EC||""}),s({fromDate:re(t.fromDate,t.fromYear,"01/01"),toDate:re(t.toDate,t.toYear,"12/31"),abstracts:t.userSelectedAbstracts,studyDesigns:t.studyDesigns||[]}),_(t.qualifiedAbstracts),I(t.totalAbstracts),q(!0),c(!1),clearInterval(e)}else"Error"===t.status&&(b(t.error),clearInterval(e))}catch(t){console.error("Error fetching job status:",t),clearInterval(e),c(!1)}}),1e3);return()=>clearInterval(e)}),[n,p,$]),(0,a.useEffect)((()=>{if(y){const e=setTimeout((()=>{b(""),c(!1),t("/")}),5e3);return()=>clearTimeout(e)}}),[y,t]),(0,a.useEffect)((()=>{j&&f("Report sent to ".concat(j," on ").concat(B))}),[j,B]);const oe=Number.isFinite(N)?N:0,ae=Number.isFinite(k)?k:0;return(0,$e.jsxs)($e.Fragment,{children:[l?(0,$e.jsxs)("div",{className:"loading-container",children:[(0,$e.jsx)(Hd,{}),(0,$e.jsx)("p",{className:"loading-status",children:u})]}):(0,$e.jsxs)("div",{className:"SearchResults",children:[G&&(0,$e.jsx)(sr,{severity:"warning",sx:{mb:2},children:(()=>{const e=[];return G&&e.push("We couldn't find enough results to complete your report."),!l&&oe<10&&e.push("Fewer than 10 abstracts were found. Please update your question."),!l&&ae<1&&e.push("No abstracts met your qualifying criteria. Please update your PICO selections and filters."),e})().map(((e,t)=>(0,$e.jsx)("div",{children:e},t)))}),(0,$e.jsx)(id,{defaultText:O,search:async e=>{try{const n=await Cc(e,i,r,z);if(n.error)return void V(n.error);n.id&&t("/search/".concat(n.id),{replace:!0})}catch(n){console.error("Error during search:",n),V("An unexpected error occurred. Please try again.")}},scheduleSearch:async(e,t,n)=>{try{await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"public",a=arguments.length>5?arguments[5]:void 0;try{const i=await Ec(),s={question:e,filters:t,pico:n,query:r,searchMode:o,frequency:a};await fetch("".concat("https://api.medrpt.ai","/scheduleSearch"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(i)},body:JSON.stringify({requestBody:s})})}catch(i){console.error("Error fetching UUID:",i)}}(e,i,r,z,t,n)}catch(o){console.error("Error during search:",o),V("An unexpected error occurred. Please try again.")}},setQuery:H,query:z}),(0,$e.jsxs)("h3",{children:[" ",h," "]}),(0,$e.jsx)(Wd,{children:(0,$e.jsx)(Ky,{trustText:"original"===J?x:E,isLoadingReport:Y,isLoadingSimplification:X,selectedLanguage:S,onLanguageChange:ee,selectedReportType:J,onReportTypeChange:async e=>{if(Z(e),"plainLanguage"===e)try{K(!0);const e=await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/simplify/").concat(e),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)},body:JSON.stringify({selectedLanguage:t})});if(!r)throw new Error("Failed to simplify result");return await r.json()}catch(n){throw console.error("Error simplifying job:",n),n}})(n,S);e&&e.simplifiedSummary&&e.simplifiedArticles&&(C(e.simplifiedSummary),g(e.simplifiedArticles))}catch(t){console.error("Error simplifying result ",t),V("Failed to simplify result. Please try again later.")}finally{K(!1)}else"original"===e&&g((e=>A.length>0?A:e))}})}),(0,$e.jsx)("div",{children:(0,$e.jsxs)("p",{children:["Please take a moment to provide your feedback:"," ",(0,$e.jsx)("a",{href:"https://www.surveymonkey.com/r/MJGBFFY",children:"MedRPT Feedback Survey"})]})}),(0,$e.jsx)(xd,{qualifiedAbstracts:k,totalAbstracts:N,qualifiedOrgDocuments:P,totalOrgDocuments:D}),(0,$e.jsx)(Wd,{children:m.map(((e,t)=>(0,$e.jsx)("div",{id:"paper-".concat(t+1),className:"article-container",children:(0,$e.jsx)(Cd,{title:e.title,date:e.publicationDate,authors:e.authors,journal:e.journalTitle,insight:e.insight,results:e.extracted,citations:e.citationCount,uniqueId:e.uniqueId||e.pubmed_id,index:t,gradeData:e.gradeData,isPrivate:e.isPrivate,language:S,onLanguageChange:ee},t)},t)))})]}),y&&(0,$e.jsx)(sr,{severity:"error",children:y}),W&&(0,$e.jsx)(vd,{message:W,onClose:()=>{V(null)}})]})},eb=()=>(0,$e.jsxs)("div",{className:"DisclaimerCard",children:[(0,$e.jsx)("div",{className:"DisclaimerHeader",children:"Disclaimer"}),(0,$e.jsx)("div",{className:"DisclaimerText",children:"Medical information is ever-changing, transformed frequently by new research and clinical experience. While MedRPT makes every effort to retrieve and present accurate information no warranty, expressed or implied, is offered. The member-subscriber-user should always use his/her own judgment, knowledge, experience and diagnostic decision-making before applying any information, whether provided by MedRPT, other member-subscribers or third parties, for any professional or personal use."}),(0,$e.jsx)("div",{className:"DisclaimerText",children:"This service complies with the Health Insurance Portability and Accountability Act (HIPAA) and its regulations to protect the privacy and security of protected health information (PHI). Any PHI shared through this platform will be safeguarded in accordance with HIPAA requirements."})]});const tb=function(){return(0,$e.jsx)(eb,{})},nb=()=>(0,$e.jsxs)("div",{className:"AboutCard",children:[(0,$e.jsx)("div",{className:"AboutHeader",children:"About"}),(0,$e.jsx)("div",{children:(0,$e.jsx)("div",{className:"AboutText",children:"In today's world of information overload, finding accurate answers especially in health sciences is more challenging than ever. Search engines often retrieve too much irrelevant information or, worse, unreliable sources that can mislead critical decisions."})}),(0,$e.jsx)("div",{children:(0,$e.jsxs)("div",{className:"AboutText",children:["MedRPT.ai is an Al-powered report generator built specifically for health sciences. It streamlines research and reporting by:",(0,$e.jsxs)("ul",{children:[(0,$e.jsx)("li",{children:"Identifying relevant research up to the moment you ask your question."}),(0,$e.jsx)("li",{children:"Ranking trustworthy studies and synthesizing key findings into an easy-to-read report."}),(0,$e.jsx)("li",{children:"Providing direct access to underlying studies for full transparency and verification."})]})]})}),(0,$e.jsx)("div",{children:(0,$e.jsxs)("div",{className:"AboutText",children:["MedRPT.ai was founded in 2024 by a team of academic health professionals:",(0,$e.jsxs)("ul",{children:[(0,$e.jsx)("li",{children:'Dr. Harry Levy created, and still directs, for Albert Einstein College of Medicine, the award-winning Cyberounds\xae and ONCOmmunity, the Internet\'s first complete digital training sites for graduate continuing medical education, which 30 years ago pioneered remote learning and game-based education ("medutainment") authored by academic experts from 14 U.S. medical schools.'}),(0,$e.jsx)("li",{children:"Dr. Ted Witek, following a distinguished scie
2ntific and executive career at Boehringer Ingelheim, is a Professor and Director of the Doctor of Public Health program at the University of Toronto. Dr. Witek has published over 100 manuscripts, chapter and texts in respiratory public health and drug development. He serves as a Director and advisor to several firms."}),(0,$e.jsx)("li",{children:"Mr. Farbod Abolhassani is a leader in AI, software engineering, and healthcare, actively contributing to multiple organizations. He is an Adjunct Professor at the University of Toronto, an Affiliate Scientist at Trillium Health Partners, and the Director of Innovation at TeleVU Innovation, where he drives the development of AI-powered telemedicine and healthcare solutions."})]})]})})]});const rb=function(){return(0,$e.jsx)(nb,{})},ob=e=>{let{isVisible:t,onConfirm:n,onCancel:r}=e;return t?(0,$e.jsx)("div",{className:"cancel-confirmation-overlay",onClick:r,children:(0,$e.jsxs)("div",{className:"cancel-confirmation-card",onClick:e=>e.stopPropagation(),children:[(0,$e.jsx)("div",{className:"cancel-confirmation-header",children:(0,$e.jsx)("h3",{children:"Cancel Subscription"})}),(0,$e.jsx)("div",{className:"cancel-confirmation-body",children:(0,$e.jsx)("p",{children:"Are you sure you want to cancel your subscription?"})}),(0,$e.jsxs)("div",{className:"cancel-confirmation-footer",children:[(0,$e.jsx)("button",{className:"cancel-confirmation-btn cancel-btn",onClick:r,children:"Keep Subscription"}),(0,$e.jsx)("button",{className:"cancel-confirmation-btn confirm-btn",onClick:n,children:"Yes, Cancel"})]})]})}):null},ab=["monthly","advanced"],ib=[{key:"monthly",name:"Basic",price:10,features:[{text:"Unlimited searches per month",state:"included"},{text:"Up to 300 abstracts",state:"included"},{text:"Upload supporting research",state:"included"},{text:"Access to private data",state:"included"},{text:"Invite colleagues to join",state:"included"},{text:"Access literature review tools",state:"excluded",link:{label:"Contact us",href:"https://www.medrpt.ai/contact-us"}}]},{key:"advanced",name:"Advanced",price:25,badge:"Recommended",features:[{text:"Unlimited searches per month",state:"included"},{text:"No limit on abstracts",state:"included"},{text:"Upload supporting research",state:"included"},{text:"Access to private data",state:"included"},{text:"Invite colleagues to join",state:"included"},{text:"Access literature review tools",state:"excluded",link:{label:"Contact us",href:"https://www.medrpt.ai/contact-us"}}]}],sb=e=>{let{state:t}=e;return"excluded"===t?(0,$e.jsx)("span",{className:"plan-feature-icon plan-feature-icon--excluded","aria-hidden":"true",children:(0,$e.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,$e.jsx)("circle",{cx:"10",cy:"10",r:"9",fill:"#d1d5db",stroke:"#d1d5db",strokeWidth:"1"}),(0,$e.jsx)("path",{d:"M6 10.5L8.5 13L14 7.5",stroke:"#fff",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})}):"outline"===t?(0,$e.jsx)("span",{className:"plan-feature-icon plan-feature-icon--outline","aria-hidden":"true",children:(0,$e.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("circle",{cx:"10",cy:"10",r:"8.5",stroke:"currentColor",strokeWidth:"2"})})}):(0,$e.jsx)("span",{className:"plan-feature-icon plan-feature-icon--included","aria-hidden":"true",children:(0,$e.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,$e.jsx)("circle",{cx:"10",cy:"10",r:"9",fill:"currentColor"}),(0,$e.jsx)("path",{d:"M6 10.5L8.5 13L14 7.5",stroke:"#fff",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})})},lb=e=>{let{onClose:t,recommendedPlan:n="advanced",requiredPlan:r=null,currentPlan:o=null,onChangePlan:i=null}=e;const s=te(),[l,c]=(0,a.useState)(null),u=r?ab.indexOf(r):-1;return(0,$e.jsx)("div",{className:"plan-modal-overlay",onClick:t,children:(0,$e.jsxs)("div",{className:"plan-modal-content",onClick:e=>e.stopPropagation(),children:[(0,$e.jsxs)("div",{className:"plan-modal-header",children:[(0,$e.jsx)("h3",{children:"Choose a Plan"}),(0,$e.jsx)("button",{type:"button",className:"plan-modal-close",onClick:t,children:"\xd7"})]}),(0,$e.jsx)("div",{className:"plan-modal-cards",children:ib.map((e=>{const r=e.key===n,a=u>-1&&ab.indexOf(e.key)<u,d=e.key===o,p=l===e.key;return(0,$e.jsxs)("div",{className:"plan-card".concat(r?" plan-card--rec
2ommended":"").concat(a?" plan-card--disabled":"").concat(d?" plan-card--current":""),children:[d&&(0,$e.jsx)("div",{className:"plan-card-badge plan-card-badge--current",children:"Current Plan"}),!d&&r&&e.badge&&(0,$e.jsx)("div",{className:"plan-card-badge",children:e.badge}),(0,$e.jsxs)("h4",{className:"plan-card-name",children:[e.name," plan"]}),(0,$e.jsxs)("div",{className:"plan-card-price",children:[(0,$e.jsx)("span",{className:"plan-card-price-amount",children:(h=e.price,h.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}))}),(0,$e.jsx)("span",{className:"plan-card-price-period",children:"USD per month"})]}),(0,$e.jsx)("ul",{className:"plan-card-features",children:e.features.map((e=>(0,$e.jsxs)("li",{className:"plan-card-features-item plan-card-features-item--".concat(e.state),children:[(0,$e.jsx)(sb,{state:e.state}),(0,$e.jsxs)("span",{className:"plan-card-features-text",children:[e.text,e.link&&(0,$e.jsxs)($e.Fragment,{children:[" (",(0,$e.jsx)("a",{href:e.link.href,target:"_blank",rel:"noopener noreferrer",className:"plan-feature-contact-link",children:e.link.label}),")"]})]})]},e.text)))}),(0,$e.jsx)("button",{type:"button",className:"plan-card-btn",onClick:()=>(async e=>{if(o&&i){c(e);try{await i(e),t()}finally{c(null)}}else t(),s("/checkout?plan=".concat(e))})(e.key),disabled:a||d||p,children:p?"Switching...":d?"Current Plan":o?"Switch to this plan":"Select"}),a&&(0,$e.jsx)("p",{className:"plan-card-unavailable",children:"Doesn't include Literature Review Tools"})]},e.key);var h}))})]})})},cb=e=>{let{profileMenu:t}=e;const n=te(),[r,o]=((0,a.useRef)(null),(0,a.useState)(!1)),[i,s]=(0,a.useState)(""),[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),[f,m]=(0,a.useState)(!1),[g,A]=(0,a.useState)(!1),[v,y]=(0,a.useState)({open:!1,message:"",severity:"info"}),b=async()=>{try{const e=await Tc();c(e.currentPlan||null),e.isActive&&e.cancelAtPeriodEnd?s("Resume Subscription"):e.isActive&&!e.cancelAtPeriodEnd?s("Cancel Subscription"):s("Upgrade Plan")}catch(e){console.error("Error updating subscription state:",e)}};(0,a.useEffect)((()=>{x();(async()=>{try{await b()}catch(e){console.error("Error fetching subscription status:",e),s("Upgrade Plan")}})()}),[]);const x=async()=>{try{var e;const t=await Oc();null!==t&&void 0!==t&&null!==(e=t.user)&&void 0!==e&&e.Enterprise&&d(!0)}catch(t){console.error("Error checking enterprise user:",t)}},w=(e,t)=>{"clickaway"!==t&&y((e=>({...e,open:!1})))};return(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("ul",{className:t,children:(0,$e.jsxs)("li",{className:"questions-list",children:[(0,$e.jsx)("button",{className:"question",onClick:()=>n("/settings"),children:"Settings"}),("Upgrade Plan"!==i||u)&&(0,$e.jsx)("button",{className:"question",onClick:()=>n("/organization-dataset"),children:"Dataset"}),i&&!u&&(0,$e.jsx)("button",{className:"question",onClick:async()=>{try{if("Resume Subscription"===i){const e=await(async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/api/user/continueSubscription"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)}});if(!t.ok)throw new Error("Network response was not ok");return await t.json()}catch(e){throw console.error("Error continuing subscription",e),e}})();e.success?(y({open:!0,message:e.message,severity:"success"}),await b()):y({open:!1,message:e.message||"Failed to continue subscription",severity:"error"})}else"Cancel Subscription"===i?h(!0):"Upgrade Plan"===i&&A(!0)}catch(e){console.error("Error handling subscription action:",e),y({open:!0,message:"An error occurred. Please try again.",severity:"error"})}},children:i}),l&&!u&&(0,$e.jsx)("button",{className:"question",onClick:()=>m(!0),children:"Change Plan"})]})}),f&&(0,$e.jsx)(lb,{onClose:()=>m(!1),currentPlan:l,onChangePlan:l?async e=>{try{const t=await _c(e);y({open:!0,message:t.message,severity:"success"}),await b()}catch(t){y({open:!0,message:t.message||"Failed to change plan",severity:"error"})}}:null}),g&&(0,$e.jsx)(Ad,{onClose:()=>A(!1)}),p&&(0,$e.jsx)(ob,{isVisible:p,onConfirm:async()=>{h(!1);try{const e=await(async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/api/user/cancelSubscription"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)}});if(!t.ok)throw new Error("Network response was not ok");return await t.json()}catch(e){throw console.error("Error cancelling subscription",e),e}})();e.success?(y({open:!0,message:e.message,severity:"success"}),await b()):y({open:!0,message:e.message||"Failed to cancel subscription",severity:"error"})}catch(e){console.error("Error cancelling subscription:",e),y({open:!0,message:"An error occurred. Please try again.",severity:"error"})}},onCancel:()=>{h(!1)}}),(0,$e.jsx)(en,{open:Boolean(v.open),autoHideDuration:4e3,onClose:w,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,$e.jsx)(sr,{onClose:w,severity:v.severity,sx:{width:"100%"},children:v.message})})]})},ub="https://platform.medrpt.ai",db="Check out MedRPT \u2014 AI-powered medical literature synthesis platform",pb=[{key:"bluesky",label:"Bluesky",color:"#0085ff",href:"https://bsky.app/intent/compose?text=".concat(encodeURIComponent(db+" "+ub)),icon:(0,$e.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 600 530",fill:"currentColor",children:(0,$e.jsx)("path",{d:"M135.72 44.03C202.216 93.951 273.74 195.17 300 249.49c26.262-54.316 97.782-155.54 164.28-205.46C512.26 8.009 590-19.862 590 68.825c0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.38-3.69-10.832-3.708-7.896-.017-2.936-1.193.516-3.707 7.896-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.45-163.25-81.433C20.15 217.613 10 86.535 10 68.825c0-88.687 77.742-60.816 125.72-24.795z"})})},{key:"twitter",label:"X / Twitter",color:"#000",href:"https://twitter.com/intent/tweet?text=".concat(encodeURIComponent(db),"&url=").concat(encodeURIComponent(ub)),icon:(0,$e.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"
2currentColor",children:(0,$e.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.746l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.911-5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})},{key:"facebook",label:"Facebook",color:"#1877f2",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(ub)),icon:(0,$e.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$e.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})},{key:"whatsapp",label:"WhatsApp",color:"#25d366",href:"https://wa.me/?text=".concat(encodeURIComponent(db+" "+ub)),icon:(0,$e.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$e.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})})},{key:"email",label:"Email",color:"#6b7280",href:"mailto:?subject=".concat(encodeURIComponent("MedRPT \u2014 AI-powered medical literature synthesis platform"),"&body=").concat(encodeURIComponent(db+"\n\n"+ub)),icon:(0,$e.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,$e.jsx)("path",{d:"M3 8L10.89 13.26C11.2187 13.4793 11.6049 13.5963 12 13.5963C12.3951 13.5963 12.7813 13.4793 13.11 13.26L21 8M5 19H19C19.5304 19 20.0391 18.7893 20.4142 18.4142C20.7893 18.0391 21 17.5304 21 17V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H5C4.46957 5 3.96086 5.21071 3.58579 5.58579C3.21071 5.96086 3 6.46957 3 7V17C3 17.5304 3.21071 18.0391 3.58579 18.4142C3.96086 18.7893 4.46957 19 5 19Z"})})}],hb=()=>{const e=te(),{user:t}=rd((e=>[e.user])),[n,r]=(0,a.useState)(!1),[o,i]=(0,a.useState)(!1),s=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=e=>{s.current&&!s.current.contains(e.target)&&r(!1)};return n&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[n]);return(0,$e.jsxs)("div",{className:"TopBar",children:[(0,$e.jsx)("div",{className:"MedRPT",onClick:()=>e("/"),children:(0,$e.jsxs)("svg",{className:"responsive-svg",viewBox:"0 0 184 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,$e.jsx)("path",{d:"M89.6724 10.9168H97.74C99.3525 10.9168 100.835 11.1788 102.187 11.7027C103.534 12.2266 104.696 12.9571 105.672 13.8891C106.649 14.821 107.4 15.9142 107.931 17.1736C108.462 18.4331 108.727 19.7932 108.727 21.2592V21.3196C108.727 22.7856 108.462 24.1559 107.931 25.4203C107.4 26.6898 106.644 27.788 105.672 28.72C104.696 29.652 103.534 30.3824 102.187 30.9215C100.84 31.4555 99.3576 31.7225 97.74 31.7225H89.6724V15.1737V10.9168ZM97.74 27.5916C98.6665 27.5916 99.5128 27.4455 100.279 27.1482C101.045 26.851 101.701 26.4228 102.242 25.8687C102.783 25.3145 103.209 24.6596 103.514 23.909C103.82 23.1534 103.97 22.3121 103.97 21.3801V21.3196C103.97 20.4078 103.82 19.5665 103.514 18.7958C103.209 18.025 102.783 17.36 102.242 16.8059C101.701 16.2517 101.045 15.8185 100.279 15.5112C99.5128 15.2039 98.6615 15.0528 97.74 15.0528H89.7124L89.6774 27.3447V27.5966H97.74V27.5916Z",fill:"#01344A"}),(0,$e.jsx)("path",{d:"M44.2314 10.9168H49.1341L54.5727 19.7126L60.0112 10.9168H64.9139V31.7225H60.4218V18.1409L54.6027 27.0273H54.4825L48.7235 18.2316V31.7275H44.2314V10.9168Z",fill:"#01344A"}),(0,$e.jsx)("path",{d:"M112.779 10.9168H122.234C124.853 10.9168 126.861 11.6221 128.264 13.0276C129.445 14.2165 130.036 15.8034 130.036 17.7832V17.8436C130.036 19.5262 129.62
26 20.9015 128.809 21.9594C127.993 23.0173 126.921 23.7982 125.604 24.2919L130.657 31.7225H125.339L120.907 25.0626H120.847H117.331V31.7225H112.779V10.9168ZM121.939 21.0224C123.06 21.0224 123.922 20.7554 124.523 20.2214C125.124 19.6874 125.424 18.9721 125.424 18.0804V18.02C125.424 17.0275 125.109 16.287 124.478 15.7933C123.847 15.2996 122.97 15.0528 121.849 15.0528H117.326V21.0224H121.939Z",fill:"#49994C"}),(0,$e.jsx)("path",{d:"M134.142 10.9168H142.59C143.832 10.9168 144.939 11.0881 145.916 11.4357C146.892 11.7833 147.718 12.272 148.399 12.9067C149.081 13.5415 149.601 14.2971 149.967 15.1787C150.332 16.0603 150.513 17.0376 150.513 18.1056V18.1661C150.513 19.3751 150.297 20.433 149.862 21.3448C149.426 22.2567 148.83 23.0173 148.074 23.6319C147.318 24.2465 146.431 24.705 145.415 25.0123C144.398 25.3196 143.311 25.4757 142.15 25.4757H138.694V31.7174H134.142V10.9168ZM142.295 21.4103C143.437 21.4103 144.323 21.1081 144.954 20.5035C145.585 19.899 145.901 19.1534 145.901 18.2618V18.2013C145.901 17.1736 145.57 16.3878 144.909 15.8538C144.248 15.3198 143.347 15.0528 142.205 15.0528H138.689V21.4154H142.295V21.4103Z",fill:"#49994C"}),(0,$e.jsx)("path",{d:"M158.696 15.1384H152.401V10.9168H169.538V15.1384H163.243V31.7225H158.691V15.1384H158.696Z",fill:"#49994C"}),(0,$e.jsx)("path",{d:"M69.8818 10.9168H85.4512V14.9873H74.3739V19.2089H98.6469V23.2793H74.3739V27.647H85.6015V31.7174H69.8818V10.9168Z",fill:"#01344A"}),(0,$e.jsx)("path",{d:"M25.2659 10.3868L28.6042 12.3013L19.5461 17.8172V22.8518L35.5174 13.7398V10.8629L17.6378 0.312347L0 11.106V16.3787L17.7561 5.82821L21.2127 7.74789L0 19.9749V25.2527L25.2659 10.3868Z",fill:"#01344A"}),(0,$e.jsx)("path",{d:"M31.6733 19.3813L31.7093 28.3536L17.8778 36.5239L6.49477 30.0404L16.8594 24.0537V19.0191L0.234863 28.9383V31.6755L17.8778 42.1898L35.7522 31.541V16.97L31.6733 19.3813Z",fill:"#50A854"})]})}),(0,$e.jsxs)("div",{className:"contact-us-container",children:[(0,$e.jsx)("span",{className:"contact-us-text",children:"For more information, "}),(0,$e.jsxs)("button",{className:"contact-us-button",onClick:()=>window.location.href="https://www.medrpt.ai/contact-us",children:[(0,$e.jsx)("span",{className:"contact-us-button-text",children:"Contact Us"}),(0,$e.jsx)("svg",{className:"contact-us-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M3 8L10.89 13.26C11.2187 13.4793 11.6049 13.5963 12 13.5963C12.3951 13.5963 12.7813 13.4793 13.11 13.26L21 8M5 19H19C19.5304 19 20.0391 18.7893 20.4142 18.4142C20.7893 18.0391 21 17.5304 21 17V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H5C4.46957 5 3.96086 5.21071 3.58579 5.58579C3.21071 5.96086 3 6.46957 3 7V17C3 17.5304 3.21071 18.0391 3.58579 18.4142C3.96086 18.7893 4.46957 19 5 19Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,$e.jsxs)("div",{className:"share-wrapper",ref:s,children:[(0,$e.jsxs)("button",{className:"share-button",onClick:()=>r((e=>!e)),"aria-label":"Share",children:[(0,$e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,$e.jsx)("circle",{cx:"18",cy:"5",r:"3"}),(0,$e.jsx)("circle",{cx:"6",cy:"12",r:"3"}),(0,$e.jsx)("circle",{cx:"18",cy:"19",r:"3"}),(0,$e.jsx)("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),(0,$e.jsx)("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]}),(0,$e.jsx)("span",{className:"contact-us-button-text",children:"Share"})]}),n&&(0,$e.jsxs)("div",{className:"share-popover",children:[(0,$e.jsx)("p",{className:"share-popover-title",children:"Share MedRPT"}),(0,$e.jsxs)("div",{className:"share-popover-items",children:[pb.map((e=>(0,$e.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"share-popover-item",onClick:()=>r(!1),children:[(0,$e.jsx)("span",{className:"share-popover-icon",style:{color:e.color},children:e.icon}),(0,$e.jsx)("span",{className:"share-popover-label",children:e.label})]},e.key))),(0,$e.jsxs)("button",{className:"share-popover-item",onClick:async()=>{await navigator.clipboard.writeText(ub),i(!0),setTimeout((()=>i(!1)),2e3)},children:[(0,$e.jsx)("span",{className:"share-popover-icon",style:{color:"#6b7280"},children:(0,$e.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,$e.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,$e.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}),(0,$e.jsx)("span",{className:"share-popover-label",children:o?"Copied!":"Copy link"})]})]})]})]})]})]})},fb=e=>{let{children:t}=e;return(0,$e.jsx)("div",{className:"app-container",children:t})},mb=[{id:"reports",text:"Reports",svg:(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"30",viewBox:"0 0 28 30",fill:"none",children:[(0,$e.jsx)("g",{"clip-path":"url(#clip0_5705_262)",children:(0,$e.jsx)("path",{d:"M12.4333 11.0947C12.4333 10.5976 12.8363 10.1947 13.3333 10.1947H13.6667C14.1637 10.1947 14.5667 10.5976 14.5667 11.0947V22.7137C14.5667 23.2108 14.1637 23.6137 13.6667 23.6137H13.3333C12.8363 23.6137 12.4333 23.2108 12.4333 22.7137V11.0947ZM17.1 16.5423C17.1 16.0452 17.5029 15.6423 18 15.6423H18.3333C18.8304 15.6423 19.2333 16.0452 19.2333 16.5423V22.7137C19.2333 23.2108 18.8304 23.6137 18.3333 23.6137H18C17.5029 23.6137 17.1 23.2108 17.1 22.7137V16.5423ZM7.76667 19.2661C7.76667 18.7691 8.16961 18.3661 8.66667 18.3661H9C9.49706 18.3661 9.9 18.7691 9.9 19.2661V22.7137C9.9 23.2108 9.49706 23.6137 9 23.6137H8.66667C8.16961 23.6137 7.76667 23.2108 7.76667 22.7137V19.2661ZM17.1 7.00897C17.1 6.40145 16.6075 5.90897 16 5.90897H6.33333C5.72582 5.90897 5.23333 6.40145 5.23333 7.00897V26.7994C5.23333 27.407 5.72582 27.8994 6.33333 27.8994H20.6667C21.2742 27.8994 21.7667 27.407 21.7667 26.7994V12.4566C21.7667 11.8491 21.2742 11.3566 20.6667 11.3566H18C17.5029 11.3566 17.1 10.9536 17.1 10.4566V7.00897ZM3.1 4.63589C3.1 3.93077 3.59065 3.38516 4.16492 3.38516H17.7065C17.9694 3.38516 18.2191 3.50005 18.3901 3.69966L23.6832 9.87894C23.8229 10.042 23.8997 10.2497 23.8997 10.4644L23.9 29.1511C23.9 29.8701 23.4106 30.4233 22.841 30.4233H4.15897C3.5886 30.4233 3.1 29.8636 3.1 29.1725V4.63589Z",fill:"white",stroke:"black","stroke-width":"0.2"})}),(0,$e.jsx)("defs",{children:(0,$e.jsx)("clipPath",{id:"clip0_5705_262",children:(0,$e.jsx)("rect",{width:"28",height:"29.3333",f
2ill:"white",transform:"translate(0 0.667969)"})})})]})},{id:"home",text:"Home",svg:(0,$e.jsxs)("svg",{width:"24",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,$e.jsx)("path",{d:"M3 9L12 2L21 9V20C21 20.55 20.55 21 20 21H4C3.45 21 3 20.55 3 20V9Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,$e.jsx)("path",{d:"M9 20V12H15V20",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},{id:"screening",text:"Literature Review Tools",svg:(0,$e.jsxs)("svg",{width:"24",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,$e.jsx)("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,$e.jsx)("path",{d:"M6.5 2H20V22H6.5A2.5 2.5 0 0 1 4 19.5V4.5A2.5 2.5 0 0 1 6.5 2Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,$e.jsx)("path",{d:"M8 6H16",stroke:"white",strokeWidth:"2",strokeLinecap:"round"}),(0,$e.jsx)("path",{d:"M8 10H16",stroke:"white",strokeWidth:"2",strokeLinecap:"round"}),(0,$e.jsx)("path",{d:"M8 14H16",stroke:"white",strokeWidth:"2",strokeLinecap:"round"}),(0,$e.jsx)("path",{d:"M8 18H16",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})]})},{id:"scheduleRuns",text:"Schedule Runs",svg:(0,$e.jsxs)("svg",{width:"24",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,$e.jsx)("path",{d:"M19 4H5C3.89543 4 3 4.89543 3 6V20C3 21.1046 3.89543 22 5 22H19C20.1046 22 21 21.1046 21 20V6C21 4.89543 20.1046 4 19 4Z",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{d:"M16 2V6",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{d:"M8 2V6",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{d:"M3 10H21",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{d:"M12 16L14 14",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{d:"M12 12V16",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})},{id:"about",text:"About",svg:(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"24",viewBox:"0 0 20 24",fill:"white",children:[(0,$e.jsx)("path",{d:"M3.12462 17.3095L6.56159 15.1142L6.56159 12.64L0.00679456 16.8039L0.00679442 18.3513L9.61843 23.4883L19.1001 17.6826L19.1001 14.8466L19.1001 10.4785L17.2091 11.5811L17.2091 15.8572L9.55483 20.5214L3.12462 17.3095Z",fill:"white"}),(0,$e.jsx)("path",{d:"M15.9755 6.89757L12.6338 9.03043L12.6338 11.5117L19.0933 7.40317L19.0933 5.85572L9.48167 0.718752L-9.02997e-07 6.5244L-1.53263e-06 9.48635L1.89097 8.34983L9.54527 3.68559L15.9755 6.89757Z",fill:"white"}),(0,$e.jsx)("path",{d:"M8.83447 10.377L8.83447 16.334L10.4507 16.334L10.4507 10.377L8.83447 10.377ZM9.63916 7.36914C9.38671 7.36914 9.16862 7.45772 8.99072 7.63379L8.92725 7.7002C8.78802 7.86137 8.71729 8.05407 8.71729 8.27344C8.71739 8.52132 8.80953 8.7361 8.98975 8.91211C9.16794 9.08588 9.3868 9.17285 9.63916 9.17285C9.88913 9.1728 10.1073 9.08606 10.2876 8.91309L10.2876 8.91211C10.4679 8.73607 10.56 8.52139 10.5601 8.27344C10.5601 8.0231 10.4686 7.80762 10.2876 7.63379L10.2183 7.57227C10.0524 7.43735 9.85836 7.36918 9.63916 7.36914Z",fill:"white",stroke:"white","stroke-width":"0.2"})]})},{id:"disclaimer",text:"Disclaimer",svg:(0,$e.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,$e.jsx)("path",{d:"M12 2L22 20H2L12 2Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,$e.jsx)("path",{d:"M12 9V13",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,$e.jsx)("path",{d:"M12 17H12.01",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},{id:"login",text:"Log In | Sign Up",svg:(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",children:[(0,$e.jsx)("path",{d:"M3.12 5.8371V3.77207C3.12 3.22438 3.33627 2.69913 3.72123 2.31187C4.1062 1.9246 4.62833 1.70703 5.17275 1.70703H15.8471C16.3915 1.70703 16.9136 1.9246 17.2986 2.31187C17.6836 2.69913 17.8998 3.22438 17.8998 3.77207V16.1623C17.8998 16.71 17.6836 17.2352 17.2986 17.6225C16.9136 18.0097 16.3915 18.2273 15.8471 18.2273H5.17275C4.62833 18.2273 4.1062 18.0097 3.72123 17.6225C3.33627 17.2352 3.12 16.71 3.12 16.1623V14.0972",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{d:"M9.01031 14.0973L13.1164 9.9666L9.01031 5.83594",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{d:"M1 9.97266H11.9144",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})},{id:"enterprise",text:"Enterprise",svg:(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,$e.jsx)("path",{d:"M3 21H21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,$e.jsx)("path",{d:"M5 21V7L13 2L21 7V21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,$e.jsx)("path",{d:"M9 9V21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}
2),(0,$e.jsx)("path",{d:"M15 9V21",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},{id:"help",text:"Help & FAQ",svg:(0,$e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",children:(0,$e.jsxs)("g",{transform:"translate(0, 2)",children:[(0,$e.jsx)("path",{d:"M9.5498 1C14.2765 1 18.0996 4.81173 18.0996 9.50293C18.0995 14.194 14.2764 18.0049 9.5498 18.0049C4.82326 18.0048 1.00015 14.1939 1 9.50293C1 4.81179 4.82317 1.00011 9.5498 1Z",stroke:"white","stroke-width":"2"}),(0,$e.jsx)("path",{d:"M8.644 11.9297V11.8004C8.64731 11.2005 8.70366 10.7232 8.81303 10.3686C8.92572 10.014 9.08481 9.72893 9.29031 9.51349C9.4958 9.29474 9.74603 9.09422 10.041 8.91193C10.2432 8.78598 10.4238 8.64844 10.5829 8.49929C10.7453 8.34683 10.8729 8.17779 10.9657 7.99219C11.0585 7.80327 11.1049 7.5928 11.1049 7.3608C11.1049 7.09896 11.0436 6.87192 10.921 6.67969C10.7984 6.48745 10.6326 6.33831 10.4238 6.23224C10.2183 6.12618 9.98799 6.07315 9.73278 6.07315C9.49746 6.07315 9.27373 6.12453 9.06161 6.22727C8.85281 6.3267 8.6788 6.47917 8.5396 6.68466C8.40371 6.88684 8.32747 7.1437 8.3109 7.45526H6.54102C6.55759 6.82552 6.71005 6.29853 6.9984 5.87429C7.29007 5.45005 7.67454 5.13187 8.15181 4.91974C8.6324 4.70762 9.1627 4.60156 9.74272 4.60156C10.3758 4.60156 10.9326 4.71259 11.4132 4.93466C11.8971 5.15672 12.2733 5.47325 12.5417 5.88423C12.8135 6.2919 12.9494 6.7758 12.9494 7.33594C12.9494 7.71378 12.8881 8.05185 12.7654 8.35014C12.6461 8.64844 12.4754 8.91359 12.2534 9.1456C12.0313 9.3776 11.7678 9.58475 11.4629 9.76705C11.1944 9.93277 10.974 10.1051 10.8017 10.2841C10.6326 10.4631 10.5067 10.6735 10.4238 10.9155C10.3443 11.1541 10.3029 11.4491 10.2995 11.8004V11.9297H8.644ZM9.50906 15.032C9.21076 15.032 8.95389 14.9259 8.73846 14.7138C8.52302 14.5017 8.41531 14.2431 8.41531 13.9382C8.41531 13.6399 8.52302 13.3847 8.73846 13.1726C8.95389 12.9605 9.21076 12.8544 9.50906 12.8544C9.80404 12.8544 10.0592 12.9605 10.2747 13.1726C10.4934 13.3847 10.6028 13.6399 10.6028 13.9382C10.6028 14.1404 10.5514 14.3243 10.4487 14.4901C10.3493 14.6558 10.2167 14.7884 10.051 14.8878C9.88855 14.9839 9.70792 15.032 9.50906 15.032Z",fill:"white"})]})})},{id:"privacy",text:"Privacy",svg:(0,$e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,$e.jsx)("path",{d:"M10 20.999L7.18762 18.9902C4.55966 17.1131 3 14.0824 3 10.8529L3 5.75335C3 5.30687 3.29598 4.91448 3.72528 4.79182L9.72528 3.07754C9.90483 3.02624 10.0952 3.02624 10.2747 3.07754L16.2747 4.79182C16.704 4.91448 17 5.30687 17 5.75335V7.49905M19 14.999V12.999C19 11.8945 18.1046 10.999 17 10.999C15.8954 10.999 15 11.8945 15 12.999V14.999M19 14.999H15M19 14.999C20.1046 14.999 21 15.8945 21 16.999V18.999C21 20.1036 20.1046 20.999 19 20.999H15C13.8954 20.999 13 20.1036 13 18.999V16.999C13 15.8945 13.8954 14.999 15 14.999",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})},{id:"logout",text:"Log Out",svg:(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",children:[(0,$e.jsx)("path",{d:"M15.7793 14.1004L15.7793 16.1654C15.7793 16.7131 15.563 17.2384 15.1781 17.6256C14.7931 18.0129 14.271 18.2305 13.7265 18.2305L3.05221 18.2305C2.50778 18.2305 1.98566 18.0129 1.60069 17.6256C1.21572 17.2384 0.999452 16.7131 0.999452 16.1654L0.999453 3.77523C0.999453 3.22755 1.21572 2.7023 1.60069 2.31503C1.98566 1.92776 2.50778 1.71019 3.05221 1.71019L13.7265 1.7102C14.271 1.7102 14.7931 1.92776 15.1781 2.31503C15.563 2.7023 15.7793 3.22755 15.7793 3.77523L15.7793 5.84026",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{d:"M9.88867 5.84025L5.78257 9.9709L9.88867 14.1016",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{d:"M17.8984 9.96484L6.98404 9.96484",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}],gb=()=>{const{user:e}=rd((e=>[e.user])),[t,n]=(0,a.useState)(!1),[r,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(null),[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!0),[f,m]=(0,a.useState)("");return(0,a.useEffect)((()=>
2{if(!e)return void h(!1);let t=!1;return(async()=>{h(!0);try{var e,r;const[a,i]=await Promise.all([Tc().catch((e=>(t||m("Failed to check subscription status"),console.error("Error checking subscription:",e),null))),Oc().catch((e=>(t||m("Failed to check enterprise status"),console.error("Error checking enterprise user:",e),null)))]);if(t)return;null!=(null===a||void 0===a?void 0:a.isActive)&&n(a.isActive),null!=(null===a||void 0===a?void 0:a.isAdvanced)&&o(a.isAdvanced),null!=(null===a||void 0===a?void 0:a.currentPlan)&&s(a.currentPlan),null!==i&&void 0!==i&&null!==(e=i.user)&&void 0!==e&&e.isMedRPTAdmin?c(!0):null!==i&&void 0!==i&&null!==(r=i.user)&&void 0!==r&&r.Enterprise&&(d(!0),c(i.user.Enterprise.isActive||!1))}finally{t||h(!1)}})(),()=>{t=!0}}),[e]),{user:e,isSubscribed:t,isAdvanced:r,currentPlan:i,isEnterpriseActive:l,hasEnterprise:u,loading:p,errorMessage:f,setErrorMessage:m}},Ab=e=>{var t,n;let{children:r}=e;const o=te(),[i,s]=(0,a.useState)([]),[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),[f,m]=(0,a.useState)(!1),[g,A]=(0,a.useState)(!1),[v,y]=(0,a.useState)(!1),[b,x]=(0,a.useState)([]),[w,E]=(0,a.useState)(!1),[C,S]=(0,a.useState)(!1),[T,k]=(0,a.useState)(!1),[_,N]=(0,a.useState)(!1),[I,P]=(0,a.useState)(!1),[R,D]=(0,a.useState)(!1),[L,O]=(0,a.useState)(null),{id:M}=($(),ne()),{user:j,signOut:F}=rd((e=>[e.user])),{refreshTrigger:B}=(0,a.useContext)(Jy),{isAdvanced:U,isEnterpriseActive:z,loading:H}=gb(),W=Boolean(j&&(z||U)),V=async()=>{try{const e=await(async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/searchHistory"),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-type":"application/json"}});if(!t.ok)throw new Error("Network response was not ok");return await t.json()}catch(e){throw console.error("Error fetching search results",e),e}})();s(e||[])}catch(e){console.error("Error fetching search history:",e),s([])}};(0,a.useEffect)((()=>{V()}),[]),(0,a.useEffect)((()=>{B&&V()}),[B]);const G=async()=>{try{const e=await(async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/api/review/history"),{method:"GET",headers:{Authorization:"Bearer ".concat(e)}});if(!t.ok)throw new Error("Failed to fetch literature review history");return await t.json()}catch(e){throw console.error("Error fetching literature review history:",e),e}})();x((null===e||void 0===e?void 0:e.jobs)||[])}catch(e){console.error("Error fetching literature review history:",e),x([])}};(0,a.useEffect)((()=>{W&&G()}),[W]),(0,a.useEffect)((()=>{(async()=>{if(j&&j.userId)try{var e,t,n,r,o;const a=await Oc();P((null===a||void 0===a||null===(e=a.user)||void 0===e?void 0:e.isMedRPTAdmin)||!1),D("ADMIN"===(null===a||void 0===a||null===(t=a.user)||void 0===t?void 0:t.EnterpriseUserRole)||!1);const i=(null===a||void 0===a||null===(n=a.user)||void 0===n||null===(r=n.Enterprise)||void 0===r?void 0:r.id)||(null===a||void 0===a||null===(o=a.user)||void 0===o?void 0:o.enterpriseId);O(i||null)}catch(a){console.error("Error checking MedRPT admin status:",a),P(!1),D(!1),O(null)}else P(!1),D(!1),O(null)})()}),[j]),(0,a.useEffect)((()=>{C?document.body.classList.add("mobile-menu-open"):document.body.classList.remove("mobile-menu-open")}),[C]);const q=e=>{o("/search/".concat(e)),S(!1)},Y=()=>{c(!l)},Q=()=>{d(!u)},X=()=>{E(!w)},K=e=>e?e.slice(0,2).toUpperCase():"",J=()=>[{id:"home",path:"/"},{id:"about",path:"/about"},{id:"disclaimer",path:"/disclaimer"},{id:"help",path:"/help"},{id:"privacy",path:"/privacy"}].map((e=>{const t=mb.find((t=>t.id===e.id));return t?(0,$e.jsxs)("button",{className:"nav-button",onClick:()=>o(e.path),children:[t.svg,(0,$e.jsx)("span",{className:"nav-content",children:t.text})]},e.id):null})),Z=()=>{if(j){const e=mb.find((e=>"logout"===e.id));return(0,$e.jsxs)("button",{className:"nav-button",onClick:()=>(e=>{e(),o("/")})(F),children:[null===e||void 0===e?void 0:e.svg,(0,$e.jsx)("span",{className:"nav-content",children:null===e||void 0===e?void 0:e.text})]})}{const e=mb.find((e=>"login"===e.id));return(0,$e.jsxs)("button",{className:"nav-button",onClick:()=>
2o("/login"),children:[null===e||void 0===e?void 0:e.svg,(0,$e.jsx)("span",{className:"nav-content",children:null===e||void 0===e?void 0:e.text})]})}},ee=()=>{if(j){const e=mb.find((e=>"scheduleRuns"===e.id));return(0,$e.jsxs)("button",{className:"nav-button",onClick:()=>o("/scheduled-runs"),children:[null===e||void 0===e?void 0:e.svg,(0,$e.jsx)("span",{className:"nav-content",children:null===e||void 0===e?void 0:e.text})]})}},re=()=>{if(I){const e=mb.find((e=>"enterprise"===e.id));return(0,$e.jsxs)("button",{className:"nav-button",onClick:()=>o("/enterprise"),children:[null===e||void 0===e?void 0:e.svg,(0,$e.jsx)("span",{className:"nav-content",children:null===e||void 0===e?void 0:e.text})]})}if(R&&L){const e=mb.find((e=>"enterprise"===e.id));return(0,$e.jsxs)("button",{className:"nav-button",onClick:()=>o("/enterprise/".concat(L)),children:[null===e||void 0===e?void 0:e.svg,(0,$e.jsx)("span",{className:"nav-content",children:null===e||void 0===e?void 0:e.text})]})}return null},oe=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=mb.find((e=>"reports"===e.id));if(!t)return null;const n=e?Q:Y,r=e?u:l;return(0,$e.jsxs)("button",{className:"nav-button",onClick:n,children:[t.svg,(0,$e.jsx)("span",{className:"nav-content",children:t.text}),(0,$e.jsx)("svg",{className:"chevron-icon ".concat(r?"open":""),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"currentColor"})})]})},ae=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=mb.find((e=>"screening"===e.id));if(!t)return null;const n=e?f:p;return(0,$e.jsxs)("button",{type:"button",className:"nav-button",onClick:()=>function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o("/screening"),e&&S(!1)}(e),children:[t.svg,(0,$e.jsx)("span",{className:"nav-content",children:t.text}),(0,$e.jsx)("svg",{className:"chevron-icon ".concat(n?"open":""),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",onClick:t=>{t.stopPropagation(),e?(m(!f),f&&y(!1)):(h(!p),p&&A(!1))},role:"button","aria-label":n?"Collapse literature reviews":"Expand literature reviews","aria-expanded":n,children:(0,$e.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"currentColor"})})]})};return(0,$e.jsxs)("div",{className:"black-container",children:[(0,$e.jsxs)("aside",{className:"sidebar ".concat(w?"collapsed":""),children:[(0,$e.jsxs)("div",{className:"logo-header",children:[(0,$e.jsxs)("div",{className:"logo-container",onClick:w?X:void 0,children:[(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"29",viewBox:"0 0 24 29",fill:"none",children:[(0,$e.jsx)("path",{d:"M17.0231 6.66178L19.539 8.07667L13.1694 12.1866V15.2859L23.9301 9.04685V7.10849L11.8836 0L0 7.27234V10.8248L11.9633 3.71635L14.2922 5.04476L0 13.8036V17.3072L17.0231 6.66178Z",fill:"white"}),(0,$e.jsx)("path",{d:"M3.90724 21.0883L10.7603 16.6415L10.7603 13.5422L-0.00041507 20.455L-0.000415239 22.3934L12.0461 28.8281L23.9297 21.5558L23.9297 18.0033L23.9297 12.5316L21.5597 13.9128L21.5597 19.2692L11.9664 25.1118L3.90724 21.0883Z",fill:"white"})]}),(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"143",height:"36",viewBox:"20 0 143 36",fill:"none",children:[(0,$e.jsx)("path",{d:"M69.207 8.74219H75.6133C76.8938 8.74219 78.0708 8.9502 79.1445 9.36623C80.2142 9.78226 81.1368 10.3623 81.9122 11.1023C82.6877 11.8424 83.2841 12.7105 83.7057 13.7105C84.1272 14.7106 84.3379 15.7907 84.3379 16.9547V17.0027C84.3379 18.1668 84.1272 19.2549 83.7057 20.259C83.2841 21.267 82.6837 22.1391 81.9122 22.8791C81.1368 23.6192 80.2142 24.1992 79.1445 24.6273C78.0748 25.0513 76.8978 25.2633 75.6133 25.2633H69.207V12.1224V8.74219ZM75.6133 21.9831C76.349 21.9831 77.021 21.8671 77.6294 21.6311C78.2379 21.395 78.7588 21.055 79.1883 20.615C79.6177 20.175 79.9557 19.6549 80.1983 19.0589C80.4409 18.4588 80.5602 17.7908 80.5602 17.0507V17.0027C80.5602 16.2787 80.4409 15.6107 80.1983 14.9986C79.9557 14.3866 79.6177 13.8585 79.1883 13.4185C78.7588 12.9785 78.2379 12.6344 77.6294 12.3904C77.021 12.1464 76.345 12.0264 75.6133 12.0264H69.2388L69.211 21.7871V21.9871H75.6133V21.9831Z",fill:"white"}),(0,$e.jsx)("path",{d:"M33.125 8.74219H37.0181L41.3367 15.7267L45.6552 8.74219H49.5483V25.2633H45.9813V14.4786L41.3605 21.5351H41.2651L36.692 14.5506V25.2673H33.125V8.74219Z",fill:"white"}),(0,$e.jsx)("path",{d:"M87.5586 8.74219H95.0664C97.1461 8.74219 98.7408 9.30223 99.8542 10.4183C100.793 11.3624 101.262 12.6224 101.262 14.1946V14.2426C101.262 15.5786 100.936 16.6707 100.288 17.5108C99.6395 18.3508 98.7885 18.9709 97.7426 19.3629L101.755 25.2633H97.5319L94.0126 19.9749H93.9649H91.1733V25.2633H87.5586V8.74219ZM94.8318 16.7667C95.7225 16.7667 96.4065 16.5547 96.8837 16.1307C97.3609 15.7067 97.5995 15.1386 97.5995 14.4306V14.3826C97.5995 13.5945 97.349 13.0065 96.8479 12.6144C96.3469 12.2224 95.6509 12.0264 94.7602 12.0264H91.1693V16.7667H94.8318Z",fill:"#4FC04F"}),(0,$e.jsx)("path",{d:"M104.52 8.74219H111.228C112.214 8.74219 113.093 8.8782 113.868 9.15422C114.644 9.43023 115.3 9.81826 115.841 10.3223C116.382 10.8263 116.795 11.4264 117.086 12.1264C117.376 12.8265 117.519 13.6025 117.519 14.4506V14.4986C117.519 15.4586 117.348 16.2987 117.002 17.0227C116.656 17.7468 116.183 18.3508 115.582 18.8389C114.982 19.3269 114.278 19.6909 113.471 19.9349C112.664 20.179 111.801 20.303 110.878 20.303H108.134V25.2593H104.52V8.74219ZM110.993 17.0747C111.9 17.0747 112.604 16.8347 113.105 16.3547C113.606 15.8747 113.857 15.2826 113.857 14.5746V14.5266C113.857 13.7105 113.594 13.0865 113.069 12.6625C112.544 12.2384 111.828 12.0264 110.922 12.0264H108.13V17.0787H110.993V17.0747Z",fill:"#4FC04F"}),(0,$e.jsx)("path",{d:"M124.018 12.0944H119.02V8.74219H132.627V12.0944H127.629V25.2633H124.014V12.0944H124.018Z",fill:"#4FC04F"}),(0,$e.jsx)("path",{d:"M53.4922 8.74219H65.8554V11.9744H57.0592V15.3266
2H76.3337V18.5588H57.0592V22.0271H65.9747V25.2593H53.4922V8.74219Z",fill:"white"})]})]}),!w&&(0,$e.jsx)("button",{className:"collapse-button",onClick:X,children:(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:[(0,$e.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.74722 11.7456C6.01054 11.4065 6.01054 10.8567 5.74722 10.5175L3.30213 7.36842L2.60067 6.58184C2.60067 6.58184 2.6857 6.40561 2.57332 6.5L2.60067 6.49151L3.30213 5.63158L5.74722 2.48249C6.01054 2.14335 6.01054 1.59349 5.74722 1.25436C5.4839 0.915216 5.05697 0.915216 4.79365 1.25436L1.19749 5.88593C0.93417 6.22507 0.93417 6.77493 1.19749 7.11407L4.79365 11.7456C5.05697 12.0848 5.4839 12.0848 5.74722 11.7456Z",fill:"#FAFAF9"}),(0,$e.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.49 11.7456C12.7533 11.4065 12.7533 10.8567 12.49 10.5175L10.0449 7.36842L9.34346 6.58184C9.34346 6.58184 9.42849 6.40561 9.31611 6.5L9.34346 6.49151L10.0449 5.63158L12.49 2.48249C12.7533 2.14335 12.7533 1.59349 12.49 1.25436C12.2267 0.915217 11.7998 0.915216 11.5364 1.25436L7.94028 5.88593C7.67696 6.22507 7.67696 6.77493 7.94028 7.11407L11.5364 11.7456C11.7998 12.0848 12.2267 12.0848 12.49 11.7456Z",fill:"#FAFAF9"}),(0,$e.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.74722 11.7456C6.01054 11.4065 6.01054 10.8567 5.74722 10.5175L3.30213 7.36842L2.60067 6.58184C2.60067 6.58184 2.6857 6.40561 2.57332 6.5L2.60067 6.49151L3.30213 5.63158L5.74722 2.48249C6.01054 2.14335 6.01054 1.59349 5.74722 1.25436C5.4839 0.915216 5.05697 0.915216 4.79365 1.25436L1.19749 5.88593C0.93417 6.22507 0.93417 6.77493 1.19749 7.11407L4.79365 11.7456C5.05697 12.0848 5.4839 12.0848 5.74722 11.7456Z",stroke:"white","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,$e.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.49 11.7456C12.7533 11.4065 12.7533 10.8567 12.49 10.5175L10.0449 7.36842L9.34346 6.58184C9.34346 6.58184 9.42849 6.40561 9.31611 6.5L9.34346 6.49151L10.0449 5.63158L12.49 2.48249C12.7533 2.14335 12.7533 1.59349 12.49 1.25436C12.2267 0.915217 11.7998 0.915216 11.5364 1.25436L7.94028 5.88593C7.67696 6.22507 7.67696 6.77493 7.94028 7.11407L11.5364 11.7456C11.7998 12.0848 12.2267 12.0848 12.49 11.7456Z",stroke:"white","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})]}),(0,$e.jsxs)("div",{className:"sidebar-navigation",children:[j&&(0,$e.jsxs)($e.Fragment,{children:[oe(!1),l&&(0,$e.jsx)("ul",{className:"completed-questions",children:i&&i.length>0&&i.map(((e,t)=>(0,$e.jsx)("li",{className:"questions-list",children:(0,$e.jsx)("button",{className:"question",onClick:()=>q(e.id),children:e.question})},t)))}),!H&&ae(!1),W&&p&&(0,$e.jsxs)("ul",{className:"completed-questions",children:[(0,$e.jsx)("li",{className:"questions-list",children:(0,$e.jsx)("button",{className:"question",onClick:()=>o("/screening"),children:"New Search"})}),(0,$e.jsxs)("li",{className:"questions-list",children:[(0,$e.jsxs)("button",{className:"question nav-sub-toggle",onClick:()=>{A(!g)},children:["Reports",(0,$e.jsx)("svg",{className:"chevron-icon ".concat(g?"open":""),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"currentColor"})})]}),g&&(0,$e.jsx)("ul",{className:"completed-questions",children:b.length>0?b.map((e=>(0,$e.jsx)("li",{className:"questions-list",children:(0,$e.jsx)("button",{className:"question",onClick:()=>o("/screening/".concat(e.id),{state:{litreviewtitle:e.litreviewtitle||e.question}}),children:e.litreviewtitle||e.question})},e.id))):(0,$e.jsx)("li",{className:"questions-list",children:(0,$e.jsx)("span",{className:"question",style:{cursor:"default",opacity:.6},children:"No reviews yet"})})})]})]})]}),J(),ee(),re(),j&&(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)("button",{className:"nav-button",onClick:()=>{k(!T)},children:[(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",viewBox:"0 0 20 20",fill:"none",children:[(0,$e.jsx)("path",{d:"M9.5498 1.74609C14.2765 1.74609 18.0996 5.55782 18.0996 10.249C18.0995 14.9401 14.2764 18.751 9.5498 18.751C4.82326 18.7509 1.00015 14.94 1 10.249C1 5.55789 4.82317 1.7462 9.5498 1.74609Z",stroke:"white","stroke-width":"1.2"}),(0,$e.jsxs)("text",{x:"10",y:"13",textAnchor:"middle",fill:"white",fontSize:"9",fontWeight:"bold",children:[" ",K(null===j||void 0===j||null===(t=j.signInDetail
2s)||void 0===t?void 0:t.loginId)," "]})]}),(0,$e.jsx)("span",{className:"nav-content",children:"Profile"}),(0,$e.jsx)("svg",{className:"chevron-icon ".concat(T?"open":""),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"currentColor"})})]}),T&&(0,$e.jsx)(cb,{isProfileOpen:T,profileMenu:"profile-menu"})]}),Z()]})]}),(0,$e.jsxs)("div",{className:"main-content-wrapper",children:[(0,$e.jsxs)("div",{className:"mobile-top-bar",children:[(0,$e.jsx)("button",{className:"mobile-menu-button ".concat(C?"collapsed":""),onClick:()=>{S(!C)},children:C?(0,$e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",onClick:e=>{e.stopPropagation(),S(!1)},children:(0,$e.jsx)("path",{d:"M3.24635 3L25 24.8417M24.7537 3.15834L3 25",stroke:"white","stroke-width":"4.5","stroke-linecap":"round"})}):(0,$e.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M3 12H21M3 6H21M3 18H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,$e.jsxs)("div",{className:"mobile-logo-container",children:[(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"29",viewBox:"0 0 24 29",fill:"none",children:[(0,$e.jsx)("path",{d:"M17.0231 6.66178L19.539 8.07667L13.1694 12.1866V15.2859L23.9301 9.04685V7.10849L11.8836 0L0 7.27234V10.8248L11.9633 3.71635L14.2922 5.04476L0 13.8036V17.3072L17.0231 6.66178Z",fill:"white"}),(0,$e.jsx)("path",{d:"M3.90724 21.0883L10.7603 16.6415L10.7603 13.5422L-0.00041507 20.455L-0.000415239 22.3934L12.0461 28.8281L23.9297 21.5558L23.9297 18.0033L23.9297 12.5316L21.5597 13.9128L21.5597 19.2692L11.9664 25.1118L3.90724 21.0883Z",fill:"white"})]}),(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"122",height:"31",viewBox:"20 0 122 31",fill:"none",children:[(0,$e.jsx)("path",{d:"M59.2637 7.41797H64.6993C65.7858 7.41797 66.7845 7.59447 67.6955 7.94746C68.6031 8.30045 69.3859 8.79261 70.0439 9.42053C70.7018 10.0485 71.2079 10.785 71.5656 11.6335C71.9232 12.4821 72.1021 13.3985 72.1021 14.3862V14.4269C72.1021 15.4146 71.9232 16.3379 71.5656 17.1898C71.2079 18.0451 70.6984 18.7851 70.0439 19.413C69.3859 20.0409 68.6031 20.5331 67.6955 20.8962C66.7879 21.256 65.7891 21.4359 64.6993 21.4359H59.2637V10.286V7.41797ZM64.6993 18.6527C65.3235 18.6527 65.8937 18.5543 66.41 18.354C66.9262 18.1537 67.3682 17.8652 67.7326 17.4919C68.097 17.1185 68.3838 16.6773 68.5896 16.1715C68.7955 15.6624 68.8967 15.0956 68.8967 14.4677V14.4269C68.8967 13.8126 68.7955 13.2458 68.5896 12.7265C68.3838 12.2072 68.097 11.7591 67.7326 11.3858C67.3682 11.0124 66.9262 10.7205 66.41 10.5135C65.8937 10.3064 65.3201 10.2046 64.6993 10.2046H59.2907L59.267 18.4864V18.6561H64.6993V18.6527Z",fill:"white"}),(0,$e.jsx)("path",{d:"M28.6484 7.41797H31.9517L35.6159 13.3442L39.2802 7.41797H42.5834V21.4359H39.5568V12.2852L35.6362 18.2725H35.5552L31.675 12.3463V21.4393H28.6484V7.41797Z",fill:"white"}),(0,$e.jsx)("path",{d:"M74.834 7.41797H81.2042C82.9689 7.41797 84.3219 7.89315 85.2666 8.84013C86.0629 9.64115 86.4611 10.7103 86.4611 12.0442V12.085C86.4611 13.2186 86.1844 14.1452 85.6344 14.858C85.0844
215.5708 84.3624 16.0969 83.475 16.4295L86.8795 21.4359H83.2962L80.3101 16.9488H80.2696H77.901V21.4359H74.834V7.41797ZM81.0052 14.2267C81.761 14.2267 82.3413 14.0468 82.7462 13.687C83.1511 13.3272 83.3535 12.8453 83.3535 12.2445V12.2038C83.3535 11.5351 83.141 11.0362 82.7158 10.7035C82.2907 10.3709 81.7002 10.2046 80.9444 10.2046H77.8977V14.2267H81.0052Z",fill:"#4FC04F"}),(0,$e.jsx)("path",{d:"M89.2266 7.41797H94.9186C95.7554 7.41797 96.5011 7.53337 97.159 7.76757C97.817 8.00177 98.3737 8.331 98.8326 8.75867C99.2914 9.18633 99.6424 9.69546 99.8887 10.2894C100.135 10.8834 100.256 11.5419 100.256 12.2615V12.3022C100.256 13.1168 100.111 13.8296 99.8178 14.4439C99.5243 15.0583 99.1227 15.5708 98.6133 15.9849C98.1038 16.399 97.5066 16.7078 96.8216 16.9149C96.1367 17.1219 95.4045 17.2271 94.6217 17.2271H92.2936V21.4325H89.2266V7.41797ZM94.7196 14.488C95.4889 14.488 96.0861 14.2844 96.5112 13.8771C96.9363 13.4698 97.1489 12.9674 97.1489 12.3667V12.3259C97.1489 11.6335 96.9262 11.104 96.4808 10.7443C96.0355 10.3845 95.4281 10.2046 94.6588 10.2046H92.2902V14.4914H94.7196V14.488Z",fill:"#4FC04F"}),(0,$e.jsx)("path",{d:"M105.771 10.2623H101.529V7.41797H113.075V10.2623H108.834V21.4359H105.767V10.2623H105.771Z",fill:"#4FC04F"}),(0,$e.jsx)("path",{d:"M45.9297 7.41797H56.4197V10.1605H48.9562V13.0048H65.3104V15.7473H48.9562V18.69H56.5209V21.4325H45.9297V7.41797Z",fill:"white"})]})]})]}),C&&(0,$e.jsxs)("div",{className:"mobile-menu-content",children:[j&&(0,$e.jsxs)($e.Fragment,{children:[oe(!0),u&&(0,$e.jsx)("ul",{className:"completed-questions",children:i.map(((e,t)=>(0,$e.jsx)("li",{children:(0,$e.jsx)("button",{className:"question",onClick:()=>{q(e.id),S(!1)},children:e.question})},t)))}),!H&&ae(!0),W&&f&&(0,$e.jsxs)("ul",{className:"completed-questions",children:[(0,$e.jsx)("li",{className:"questions-list",children:(0,$e.jsx)("button",{className:"question",onClick:()=>{o("/screening"),S(!1)},children:"New Search"})}),(0,$e.jsxs)("li",{className:"questions-list",children:[(0,$e.jsxs)("button",{className:"question nav-sub-toggle",onClick:()=>{y(!v)},children:["Reports",(0,$e.jsx)("svg",{className:"chevron-icon ".concat(v?"open":""),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"currentColor"})})]}),v&&(0,$e.jsx)("ul",{className:"completed-questions",children:b.length>0?b.map((e=>(0,$e.jsx)("li",{children:(0,$e.jsx)("button",{className:"question",onClick:()=>{o("/screening/".concat(e.id),{state:{litreviewtitle:e.litreviewtitle||e.question}}),S(!1)},children:e.litreviewtitle||e.question})},e.id))):(0,$e.jsx)("li",{children:(0,$e.jsx)("span",{className:"question",style:{cursor:"default",opacity:.6},children:"No reviews yet"})})})]})]})]}),J(),ee(),re(),j&&(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)("button",{className:"nav-button",onClick:()=>{N(!_)},children:[(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",viewBox:"0 0 20 20",fill:"none",children:[(0,$e.jsx)("path",{d:"M9.5498 1.74609C14.2765 1.74609 18.0996 5.55782 18.0996 10.249C18.0995 14.9401 14.2764 18.751 9.5498 18.751C4.82326 18.7509 1.00015 14.94 1 10.249C1 5.55789 4.82317 1.7462 9.5498 1.74609Z",stroke:"white","stroke-width":"1.2"}),(0,$e.jsxs)("text",{x:"10",y:"13",textAnchor:"middle",fill:"white",fontSize:"9",fontWeight:"bold",children:[" ",K(null===j||void 0===j||null===(n=j.signInDetails)||void 0===n?void 0:n.loginId)," "]})]}),(0,$e.jsx)("span",{className:"nav-content",children:"Profile"}),(0,$e.jsx)("svg",{className:"chevron-icon ".concat(_?"open":""),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"currentColor"})})]}),_&&(0,$e.jsx)(cb,{isProfileOpen:_,profileMenu:"profile-menu"})]}),Z()]}),(0,$e.jsx)("main",{className:"main-content",children:r})]})]})},vb=e=>{let{children:t}=e;const{user:n}=rd((e=>[e.user])),r="1"===localStorage.getItem("SearchRemaining");if((0,a.useEffect)((()=>{(async()=>{if(n)try{const e=await Ic();e&&e.id&&(localStorage.setItem("organizationId",e.id),e.name&&localStorage.setItem("organizationName",e.name))}catch(DV){console.error("Error fetching organization:",DV)}})()}),[n]),!n&&!r){const e=window.location.pathname+window.location.search,t="/login?redirect=".concat(encodeURIComponent(e));return(0,$e.jsx)(ge,{to:t,replace:!0})}return t},yb=()=>{if("object"===typeof window&&"object"===typeof window.crypto)return window.crypto;if("object"===typeof crypto)return crypto;
2throw new Pl({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},bb={convert(e,t){let n=e;return null!==t&&void 0!==t&&t.urlSafe&&(n=n.replace(/-/g,"+").replace(/_/g,"/")),(()=>{if("undefined"!==typeof window&&"function"===typeof window.atob)return window.atob;if("function"===typeof atob)return atob;throw new Pl({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})})()(n)}};var xb;!function(e){e.AuthTokenConfigException="AuthTokenConfigException",e.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",e.AuthUserPoolException="AuthUserPoolException",e.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",e.OAuthNotConfigureException="OAuthNotConfigureException"}(xb||(xb={}));const wb=Lu({[xb.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[xb.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[xb.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[xb.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[xb.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}});function Eb(e){let t=!0;t=!!e&&(!!e.userPoolId&&!!e.userPoolClientId),wb(t,xb.AuthUserPoolException)}function Cb(e){var t,n,r,o;const a=!(null===e||void 0===e||null===(t=e.loginWith)||void 0===t||null===(t=t.oauth)||void 0===t||!t.domain)&&!(null===e||void 0===e||null===(n=e.loginWith)||void 0===n||null===(n=n.oauth)||void 0===n||!n.redirectSignOut)&&!(null===e||void 0===e||null===(r=e.loginWith)||void 0===r||null===(r=r.oauth)||void 0===r||!r.redirectSignIn)&&!(null===e||void 0===e||null===(o=e.loginWith)||void 0===o||null===(o=o.oauth)||void 0===o||!o.responseType);wb(a,xb.OAuthNotConfigureException)}function Sb(e){const t=!(null===e||void 0===e||!e.identityPoolId);wb(t,xb.InvalidIdentityPoolIdException)}function Tb(e){const t=e.split(".");if(3!==t.length)throw new Error("Invalid token");try{const n=t[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(bb.convert(n).split("").map((e=>"%".concat("00".concat(e.charCodeAt(0).toString(16)).slice(-2)))).join(""));return{toString:()=>e,payload:JSON.parse(r)}}catch(n){throw new Error("Invalid token payload")}}class kb extends Pl{constructor(e){super(e),this.constructor=kb,Object.setPrototypeOf(this,kb.prototype)}}const _b="UserUnAuthenticatedException",Nb="UserAlreadyAuthenticatedException",Ib="DeviceMetadataNotFoundException",Pb="AutoSignInException",Rb=new kb({name:"InvalidRedirectException",message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."}),Db=(new kb({name:"InvalidAppSchemeException",message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."}),new kb({name:"InvalidPreferredRedirectUrlException",message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."})),Lb=new kb({name:"InvalidOriginException",message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."});function Ob(e){if(!e||!e.accessToken)throw new kb({name:_b,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const Mb=new kb({name:"TokenRefreshException",message:"Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow. \n\tPlease change your oauth configuration to use 'code grant' flow.",recoverySuggestion:"Please logout and change your Amplify configuration to use \"code grant\" flow. \n\tE.g { responseType: 'code' }"}),jb=new kb({name:_b,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function Fb(e){if(function(e){return zb(e)&&!(null!==e&&void 0!==e&&e.refreshToken)}(e))throw Mb;if(!function(e){return zb(e)&&(null===e||void 0===e?void 0:e.refreshToken)}(e))throw jb}function Bb(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new kb({name:Ib,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}const Ub={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function zb(e){return(null===e||void 0===e?void 0:e.accessToken)||(null===e||void 0===e?void 0:e.idToken)}const Hb=async()=>(async e=>{var t,n,r;Eb(null===(t=e.getConfig().Auth)||void 0===t?void 0:t.Cognito);const o=await e.Auth.getTokens({forceRefresh:!1});Ob(o);const{"cognito:username":a,sub:i}=null!==(n=null===(r=o.idToken)||void 0===r?void 0:r.payload)&&void 0!==n?n:{},s={username:a,userId:i},l=function(e){return null===e||void 0===e?void 0:e.signInDetail
2s}(o);return l&&(s.signInDetails=l),s})(dc);var Wb,Vb,Gb,qb,Yb,Qb,Xb,Kb,Jb,Zb,$b,ex,tx,nx;!function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"}(Wb||(Wb={})),function(e){e.AI="ai",e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"}(Vb||(Vb={})),function(e){e.CreateConversation="1",e.GetConversation="2",e.ListConversations="3",e.DeleteConversation="4",e.SendMessage="5",e.ListMessages="6",e.OnMessage="7",e.Generation="8",e.UpdateConversation="9"}(Gb||(Gb={})),function(e){e.Record="1",e.IdentifyUser="2"}(qb||(qb={})),function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"}(Yb||(Yb={})),function(e){e.SignUp="1",e.ConfirmSignUp="2",e.ResendSignUpCode="3",e.SignIn="4",e.FetchMFAPreference="6",e.UpdateMFAPreference="7",e.SetUpTOTP="10",e.VerifyTOTPSetup="11",e.ConfirmSignIn="12",e.DeleteUserAttributes="15",e.DeleteUser="16",e.UpdateUserAttributes="17",e.FetchUserAttributes="18",e.ConfirmUserAttribute="22",e.SignOut="26",e.UpdatePassword="27",e.ResetPassword="28",e.ConfirmResetPassword="29",e.FederatedSignIn="30",e.RememberDevice="32",e.ForgetDevice="33",e.FetchDevices="34",e.SendUserAttributeVerificationCode="35",e.SignInWithRedirect="36",e.StartWebAuthnRegistration="37",e.CompleteWebAuthnRegistration="38",e.ListWebAuthnCredentials="39",e.DeleteWebAuthnCredential="40"}(Qb||(Qb={})),function(e){e.Subscribe="1",e.GraphQl="2"}(Xb||(Xb={})),function(e){e.SearchByText="0",e.SearchByCoordinates="1",e.SearchForSuggestions="2",e.SearchByPlaceId="3",e.SaveGeofences="4",e.GetGeofence="5",e.ListGeofences="6",e.DeleteGeofences="7"}(Kb||(Kb={})),function(e){e.SyncMessages="1",e.IdentifyUser="2",e.NotifyMessageInteraction="3"}(Jb||(Jb={})),function(e){e.None="0"}(Zb||(Zb={})),function(e){e.Convert="1",e.Identify="2",e.Interpret="3"}($b||($b={})),function(e){e.Subscribe="1"}(ex||(ex={})),function(e){e.InitializePushNotifications="1",e.IdentifyUser="2"}(tx||(tx={})),function(e){e.UploadData="1",e.DownloadData="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6",e.GetUrl="7",e.GetDataAccess="8",e.ListCallerAccessGrants="9"}(nx||(nx={}));const rx=URL;var ox,ax,ix,sx,lx,cx,ux,dx,px,hx,fx,mx,gx,Ax,vx,yx,bx,xx,wx,Ex,Cx,Sx,Tx,kx;!function(e){e.ConcurrentModificationException="ConcurrentModificationException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException"}(ox||(ox={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(ax||(ax={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UsernameExistsException="UsernameExistsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(ix||(ix={})),function(e){e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(sx||(sx={})),function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"}(lx||(lx={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(cx||(cx={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(ux||(ux={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(dx||(dx={})),function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPol
2icyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"}(px||(px={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(hx||(hx={})),function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"}(fx||(fx={})),function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"}(mx||(mx={})),function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(gx||(gx={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException"}(Ax||(Ax={})),function(e){e.PasswordResetRequiredException="PasswordResetRequiredException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(vx||(vx={})),function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPol
2icyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"}(yx||(yx={})),function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.MFAMethodNotFoundException="MFAMethodNotFoundException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(bx||(bx={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(xx||(xx={})),function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UsernameExistsException="UsernameExistsException"}(wx||(wx={})),function(e){e.AliasExistsException="AliasExistsException",e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(Ex||(Ex={})),function(e){e.CodeMismatchException="CodeMismatchException",e.EnableSoftw
2areTokenMFAException="EnableSoftwareTokenMFAException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(Cx||(Cx={})),function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(Sx||(Sx={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(Tx||(Tx={})),function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"}(kx||(kx={}));var _x;!function(e){e.EmptySignInUsername="EmptySignInUsername",e.EmptySignInPassword="EmptySignInPassword",e.CustomAuthSignInPassword="CustomAuthSignInPassword",e.EmptySignUpUsername="EmptySignUpUsername",e.EmptySignUpPassword="EmptySignUpPassword",e.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",e.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",e.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",e.EmptyChallengeResponse="EmptyChallengeResponse",e.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",e.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",e.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",e.EmptyResetPasswordUsername="EmptyResetPasswordUsername",e.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",e.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",e.IncorrectMFAMethod="IncorrectMFAMethod",e.EmptyUpdatePassword="EmptyUpdatePassword"}(_x||(_x={}));const Nx={[_x.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[_x.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[_x.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[_x.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[_x.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[_x.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[_x.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[_x.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[_x.EmptySignInPassword]:{message:"password is required to signIn"},[_x.EmptySignInUsername]:{message:"username is required to signIn"},[_x.EmptySignUpPassword]:{message:"password is required to signUp"},[_x.EmptySignUpUsername]:{message:"username is required to signUp"},[_x.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[_x.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS, TOTP, or EMAIL",recoverySuggestion:"Try to pass SMS, TOTP, or EMAIL as the challengeResponse"},[_x.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[_x.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[_x.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"}};var Ix,Px;function Rx(e,t){const{message:n,recoverySuggestion:r}=Nx[t];if(!e)throw new kb({name:t,message:n,recoverySuggestion:r})}
2!function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in",e.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"}(Ix||(Ix={})),function(e){e.SignInException="SignInException",e.OAuthSignInError="OAuthSignInException"}(Px||(Px={}));const Dx="6.13.5",Lx=()=>"undefined"!==typeof global,Ox=()=>"undefined"!==typeof window,Mx=()=>"undefined"!==typeof document,jx=()=>"undefined"!==typeof process,Fx=(e,t)=>!!Object.keys(e).find((e=>e.startsWith(t)));const Bx=[{platform:Wb.Expo,detectionMethod:function(){return Lx()&&"undefined"!==typeof global.expo}},{platform:Wb.ReactNative,detectionMethod:function(){return"undefined"!==typeof navigator&&"undefined"!==typeof navigator.product&&"ReactNative"===navigator.product}},{platform:Wb.NextJs,detectionMethod:function(){return Ox()&&window.next&&"object"===typeof window.next}},{platform:Wb.Nuxt,detectionMethod:function(){return Ox()&&(void 0!==window.__NUXT__||void 0!==window.$nuxt)}},{platform:Wb.Angular,detectionMethod:function(){const e=Boolean(Mx()&&document.querySelector("[ng-version]")),t=Boolean(Ox()&&"undefined"!==typeof window.ng);return e||t}},{platform:Wb.React,detectionMethod:function(){const e=e=>e.startsWith("_react")||e.startsWith("__react");return Mx()&&Array.from(document.querySelectorAll("[id]")).some((t=>Object.keys(t).find(e)))}},{platform:Wb.VueJs,detectionMethod:function(){return Ox()&&Fx(window,"__VUE")}},{platform:Wb.Svelte,detectionMethod:function(){return Ox()&&Fx(window,"__SVELTE")}},{platform:Wb.WebUnknown,detectionMethod:function(){return Ox()}},{platform:Wb.NextJsSSR,detectionMethod:function(){return Lx()&&(Fx(global,"__next")||Fx(global,"__NEXT"))}},{platform:Wb.NuxtSSR,detectionMethod:function(){return Lx()&&"undefined"!==typeof global.__NUXT_PATHS__}},{platform:Wb.ReactSSR,detectionMethod:function(){return jx()&&!!Object.keys({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SECRET_KEY:"5+HOaVTSq1nwvFnWBPToYQ==",REACT_APP_BACKEND_URL:"https://api.medrpt.ai"}).find((e=>e.includes("react")))}},{platform:Wb.VueJsSSR,detectionMethod:function(){return Lx()&&Fx(global,"__VUE")}},{platform:Wb.AngularSSR,detectionMethod:function(){var e;return jx()&&(null===(e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SECRET_KEY:"5+HOaVTSq1nwvFnWBPToYQ==",REACT_APP_BACKEND_URL:"https://api.medrpt.ai"}.npm_lifecycle_script)||void 0===e?void 0:e.startsWith("ng "))||!1}},{platform:Wb.SvelteSSR,detectionMethod:function(){return jx()&&!!Object.keys({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SECRET_KEY:"5+HOaVTSq1nwvFnWBPToYQ==",REACT_APP_BACKEND_URL:"https://api.medrpt.ai"}).find((e=>e.includes("svelte")))}}];let Ux;const zx=[];let Hx=!1;const Wx=()=>
2{if(!Ux){if(Ux=function(){var e;return(null===(e=Bx.find((e=>e.detectionMethod())))||void 0===e?void 0:e.platform)||Wb.ServerSideUnknown}(),Hx)for(;zx.length;){var e;null===(e=zx.pop())||void 0===e||e()}else zx.forEach((e=>{e()}));Gx(Wb.ServerSideUnknown,10),Gx(Wb.WebUnknown,10)}return Ux},Vx=e=>{Hx||zx.push(e)};function Gx(e,t){Ux!==e||Hx||setTimeout((()=>{Ux=void 0,Hx=!0,setTimeout(Wx,1e3)}),t)}const qx={},Yx=e=>{var t;qx[e.category]=e.apis.reduce(((t,n)=>{var r;return{...t,[n]:{refCount:null!==(r=t[n])&&void 0!==r&&r.refCount?t[n].refCount+1:1,additionalDetails:e.additionalDetails}}}),null!==(t=qx[e.category])&&void 0!==t?t:{});let n=!1;return()=>{n||(n=!0,e.apis.forEach((t=>{const n=qx[e.category][t].refCount;n>1?qx[e.category][t].refCount=n-1:(delete qx[e.category][t],Object.keys(qx[e.category]).length||delete qx[e.category])})))}},Qx="aws-amplify",Xx=e=>e.replace(/\+.*/,"");new class{constructor(){this.userAgent="".concat(Qx,"/").concat(Xx(Dx))}get framework(){return Wx()}get isReactNative(){return this.framework===Wb.ReactNative||this.framework===Wb.Expo}observeFrameworkChanges(e){Vx(e)}};const Kx=function(){let{category:e,action:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=[[Qx,Xx(Dx)]];if(e&&n.push([e,t]),n.push(["framework",Wx()]),e&&t){const r=((e,t)=>{var n;return null===(n=qx[e])||void 0===n||null===(n=n[t])||void 0===n?void 0:n.additionalDetails})(e,t);r&&r.forEach((e=>{n.push(e)}))}return n},Jx=e=>Kx(e).map((e=>{let[t,n]=e;return t&&n?"".concat(t,"/").concat(n):t})).join(" "),Zx=(e,t)=>Jx({category:Vb.Auth,action:e,...t}),$x=(e,t,n,r)=>async(o,a)=>{const i={...r,...o},s=await i.endpointResolver(i,a),l=await t(a,s),c=await e(l,{...i});return n(c)},ew=e=>(t,n)=>{const r=tw(e),o=JSON.stringify(t);return nw(n,r,o)},tw=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityProviderService.".concat(e)}),nw=(e,t,n)=>{let{url:r}=e;return{headers:t,url:r,body:n,method:"POST"}},rw=e=>{var t,n;const{headers:r,statusCode:o}=e;return{...ow(e)?e.$metadata:{},httpStatusCode:o,requestId:null!==(t=null!==(n=r["x-amzn-requestid"])&&void 0!==n?n:r["x-amzn-request-id"])&&void 0!==t?t:r["x-amz-request-id"],extendedRequestId:r["x-amz-id-2"],cfId:r["x-amz-cf-id"]}},ow=e=>"object"===typeof(null===e||void 0===e?void 0:e.$metadata),aw=async e=>{var t,n,r,o,a;if(!e||e.statusCode<300)return;const i=await iw(e),s=(e=>{const[t]=e.toString().split(/[,:]+/);return t.includes("#")?t.split("#")[1]:t})(null!==(t=null!==(n=null!==(r=e.headers["x-amzn-errortype"])&&void 0!==r?r:i.code)&&void 0!==n?n:i.__type)&&void 0!==t?t:"UnknownError"),l=null!==(o=null!==(a=i.message)&&void 0!==a?a:i.Message)&&void 0!==o?o:"Unknown error",c=new Error(l);return Object.assign(c,{name:s,$metadata:rw(e)})},iw=async e=>{if(!e.body)throw new Error("Missing response payload");const t=await e.body.json();return Object.assign(t,{$metadata:rw(e)})};var sw;function lw(e){if(!e||"Error"===e.name||e instanceof TypeError)throw new kb({name:sw.Unknown,message:"An unknown error has occurred.",underlyingError:e})}!function(e){e.NoEndpointId="NoEndpointId",e.PlatformNotSupported="PlatformNotSupported",e.Unknown="Unknown",e.NetworkError="NetworkError"}(sw||(sw={}));const cw=()=>async e=>{if(e.statusCode>=300){const t=await aw(e);throw lw(t),new kb({name:t.name,message:t.message})}return iw(e)},uw=(e,t)=>(n,r)=>{const o={};let a=t=>e(t,r);for(let e=t.length-1;e>=0;e--){a=(0,t[e])(r)(a,o)}return a(n)},dw=3,pw=(e,t)=>{if(null!==t&&void 0!==t&&t.aborted)return Promise.resolve();let n,r;const o=new Promise((t=>{r=t,n=setTimeout(t,e)}));return null===t||void 0===t||t.addEventListener("abort",(function e(o){clearTimeout(n),null===t||void 0===t||t.removeEventListener("abort",e),r()})),o},hw=(e,t)=>{var n;"[object Object]"===Object.prototype.toString.call(e)&&(e.$metadata={...null!==(n=e.$metadata)&&void 0!==n?n:{},attempts:t})},fw=e=>{let t;return()=>(t||(t=e()),t)},mw=e=>!["HEAD","GET","DELETE"].includes(e.toUpperCase()),gw=uw((async(e,t)=>{var n,r;let o,{url:a,method:i,headers:s,body:l}=e,{abortSignal:c,cache:u,withCrossDomainCredentials:d}=t;try{o=await fetch(a,{method:i,headers:s,body:mw(i)?l:void 0,signal:c,cache:u,credentials:d?"include":"same-origin"})}
2catch(DV){if(DV instanceof TypeError)throw new Pl({name:sw.NetworkError,message:"A network error has occurred.",underlyingError:DV});throw DV}const p={};null===(n=o.headers)||void 0===n||n.forEach(((e,t)=>{p[t.toLowerCase()]=e}));return{...{statusCode:o.status,headers:p,body:null},body:Object.assign(null!==(r=o.body)&&void 0!==r?r:{},{text:fw((()=>o.text())),blob:fw((()=>o.blob())),json:fw((()=>o.json()))})}}),[e=>{let{userAgentHeader:t="x-amz-user-agent",userAgentValue:n=""}=e;return e=>async function(r){if(0===n.trim().length){return await e(r)}{const o=t.toLowerCase();r.headers[o]=r.headers[o]?"".concat(r.headers[o]," ").concat(n):n;return await e(r)}}},e=>{let{maxAttempts:t=dw,retryDecider:n,computeDelay:r,abortSignal:o}=e;if(t<1)throw new Error("maxAttempts must be greater than 0");return(e,a)=>async function(i){var s;let l,c,u=null!==(s=a.attemptsCount)&&void 0!==s?s:0;const d=()=>{if(c)return hw(c,u),c;throw hw(l,u),l};for(;(null===o||void 0===o||!o.aborted)&&u<t;){var p,h;try{c=await e(i),l=void 0}catch(DV){l=DV,c=void 0}u=(null!==(p=a.attemptsCount)&&void 0!==p?p:0)>u?null!==(h=a.attemptsCount)&&void 0!==h?h:0:u+1,a.attemptsCount=u;const{isCredentialsExpiredError:s,retryable:f}=await n(c,l,a);if(!f)return d();if(a.isCredentialsExpired=!!s,(null===o||void 0===o||!o.aborted)&&u<t){const e=r(u);await pw(e,o)}}if(null!==o&&void 0!==o&&o.aborted)throw new Error("Request aborted.");return d()}}]),Aw=uw(gw,[()=>(e,t)=>async function(t){return t.headers["cache-control"]="no-store",e(t)}]),vw=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],yw=e=>async(t,n)=>{var r;const o=null!==(r=null!==n&&void 0!==n?n:await e(t))&&void 0!==r?r:void 0,a=(null===o||void 0===o?void 0:o.code)||(null===o||void 0===o?void 0:o.name),i=null===t||void 0===t?void 0:t.statusCode;return{retryable:Ew(n)||ww(i,a)||(e=>!!e&&vw.includes(e))(a)||Cw(i,a)}},bw=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],xw=["TimeoutError","RequestTimeout","RequestTimeoutException"],ww=(e,t)=>429===e||!!t&&bw.includes(t),Ew=e=>[sw.NetworkError,"ERR_NETWORK"].includes(null===e||void 0===e?void 0:e.name),Cw=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&xw.includes(t);const Sw=3e5,Tw=e=>{const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e5;return t=>{const n=2**t*100+100*Math.random();return!(n>e)&&n}}(Sw),n=t(e);return!1===n?Sw:n},kw="cognito-idp",_w={service:kw,retryDecider:yw(aw),computeDelay:Tw,userAgentValue:Jx(),cache:"no-store"},Nw=e=>$x(Aw,ew("InitiateAuth"),cw(),{..._w,...e}),Iw=e=>$x(Aw,ew("RespondToAuthChallenge"),cw(),{..._w,...e}),Pw=e=>$x(Aw,ew("VerifySoftwareToken"),cw(),{..._w,...e}),Rw=e=>$x(Aw,ew("AssociateSoftwareToken"),cw(),{..._w,...e}),Dw={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},Lw={partitions:[Dw,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},Ow=e=>{const{partitions:t}=Lw;for(const{regions:n,outputs:r,regionRegex:o}of t){const t=new RegExp(o);if(n.includes(e)||t.test(e))return r.dnsSuffix}return Dw.outputs.dnsSuffix},Mw=e=>{let{endpointOverride:t}=e;return e=>t?{url:new rx(t)}:(e=>{let{region:t}=e;return{url:new rx("https://".concat(kw,".").concat(t,".").concat(Ow(t)))}})(e)};function jw(e){const t=null===e||void 0===e?void 0:e.split("_")[0];if(!e||e.indexOf("_")<0||!t||"string"!==typeof t)throw new kb({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}function Fw(e){if(!e||!e.includes(":"))throw new kb({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}class Bw extends Pl{constructor(){super({name:sw.PlatformNotSupported,message:"Function not supported on current platform"})}}class Uw{constructor(e){this.storage=e}async setItem(e,t){if(!this.storage)throw new Bw;this.storage.setItem(e,t)}async getItem(e){if(!this.storage)throw new Bw;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new Bw;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new Bw;this.storage.clear()}}class zw{constructor(){this.storage=new Map}get length(){return this.storage.size}key(e){return e>this.length-1?null:Array.from(this.storage.keys())[e]}setItem(e,t){this.storage.set(e,t)}getItem(e){var t;return null!==(t=this.storage.get(e))&&void 0!==t?t:null}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}}const Hw=new Il("CoreStorageUtils"),Ww=()=>{try{if("undefined"!==typeof window&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch(DV){return Hw.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new zw}};class Vw{constructor(e){this._storage=e}get storage(){if(!this._storage)throw new Bw;return this._storage}setItem(e,t){this.storage.setItem(e,t)}getItem(e){return this.storage.getItem(e)}removeItem(e){this.storage.removeItem(e)}clear(){this.storage.clear()}}const Gw=new class extends Uw{constructor(){super((()=>{try{if("undefined"!==typeof window&&window.localStorage)return window.localStorage}catch(DV){Hw.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new zw})())}},qw=(new class extends Uw{constructor(){super(Ww())}},new class extends Vw{constructor(){super(Ww())}});new Uw(new zw);function Yw(e){let{username:t,userPoolId:n,userPoolClientId:r}=e;if("undefined"===typeof window)return;const o=window.AmazonCognitoAdvancedSecurityData;if("undefined"===typeof o)return;const a=o.getData(t,n,r);if(a){return{EncodedData:a}}return{}}const Qw=async e=>{var t,n;let{tokens:r,authConfig:o,username:a}=e;Eb(null===o||void 0===o?void 0:o.Cognito);const{userPoolId:i,userPoolClientId:s,userPoolEndpoint:l}=o.Cognito,c=jw(i);Fb(r);const u=r.refreshToken,d={REFRESH_TOKEN:u};null!==(t=r.deviceMetadata)&&void 0!==t&&t.deviceKey&&(d.DEVICE_KEY=r.deviceMetadata.deviceKey);const p=Yw({username:a,userPoolId:i,userPoolClientId:s}),h=Nw({endpointResolver:Mw({endpointOverride:l})}),{AuthenticationResult:f}=await h({region:c},{ClientId:s,AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:d,UserContextData:p}),m=Tb(null!==(n=null===f||void 0===f?void 0:f.AccessToken)&&void 0!==n?n:""),g=null!==f&&void 0!==f&&f.IdToken?Tb(f.IdToken):void 0,{iat:A}=m.payload;if(!A)throw new kb({name:"iatNotFoundException",message:"iat not found in access token"});return{accessToken:m,idToken:g,clockDrift:1e3*A-(new Date).getTime(),refreshToken:u,username:a}},Xw=(e=>{let t;return async function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t||(t=new Promise(((n,o)=>{e(...r).then((e=>{n(e)})).catch((e=>{o(e)})).finally((()=>{t=void 0}))})),t)}})(Qw),Kw={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetail
2s:"signInDetails",oauthMetadata:"oauthMetadata"};var Jw;!function(e){e.InvalidAuthTokens="InvalidAuthTokens"}(Jw||(Jw={}));const Zw=Lu({[Jw.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}}),$w="CognitoIdentityServiceProvider";class eE{getKeyValueStorage(){if(!this.keyValueStorage)throw new kb({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(e){this.keyValueStorage=e}setAuthConfig(e){this.authConfig=e}async loadTokens(){try{var e,t,n;const r=await this.getAuthKeys(),o=await this.getKeyValueStorage().getItem(r.accessToken);if(!o)throw new kb({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const a=Tb(o),i=await this.getKeyValueStorage().getItem(r.idToken),s=i?Tb(i):void 0,l=null!==(e=await this.getKeyValueStorage().getItem(r.refreshToken))&&void 0!==e?e:void 0,c=null!==(t=await this.getKeyValueStorage().getItem(r.clockDrift))&&void 0!==t?t:"0",u=Number.parseInt(c),d=await this.getKeyValueStorage().getItem(r.signInDetails),p={accessToken:a,idToken:s,refreshToken:l,deviceMetadata:null!==(n=await this.getDeviceMetadata())&&void 0!==n?n:void 0,clockDrift:u,username:await this.getLastAuthUser()};return d&&(p.signInDetails=JSON.parse(d)),p}catch(r){return null}}async storeTokens(e){Zw(void 0!==e,Jw.InvalidAuthTokens);const t=e.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),t);const n=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n.accessToken,e.accessToken.toString()),e.idToken?await this.getKeyValueStorage().setItem(n.idToken,e.idToken.toString()):await this.getKeyValueStorage().removeItem(n.idToken),e.refreshToken?await this.getKeyValueStorage().setItem(n.refreshToken,e.refreshToken):await this.getKeyValueStorage().removeItem(n.refreshToken),e.deviceMetadata&&(e.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(n.deviceKey,e.deviceMetadata.deviceKey),e.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(n.deviceGroupKey,e.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(n.randomPasswordKey,e.deviceMetadata.randomPassword)),e.signInDetails?await this.getKeyValueStorage().setItem(n.signInDetails,JSON.stringify(e.signInDetails)):await this.getKeyValueStorage().removeItem(n.signInDetails),await this.getKeyValueStorage().setItem(n.clockDrift,"".concat(e.clockDrift))}async clearTokens(){const e=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(e.accessToken),this.getKeyValueStorage().removeItem(e.idToken),this.getKeyValueStorage().removeItem(e.clockDrift),this.getKeyValueStorage().removeItem(e.refreshToken),this.getKeyValueStorage().removeItem(e.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(e.oauthMetadata)])}async getDeviceMetadata(e){const t=await this.getAuthKeys(e),n=await this.getKeyValueStorage().getItem(t.deviceKey),r=await this.getKeyValueStorage().getItem(t.deviceGroupKey),o=await this.getKeyValueStorage().getItem(t.randomPasswordKey);return o&&r&&n?{deviceKey:n,deviceGroupKey:r,randomPassword:o}:null}async clearDeviceMetadata(e){const t=await this.getAuthKeys(e);await Promise.all([this.getKeyValueStorage().removeItem(t.deviceKey),this.getKeyValueStorage().removeItem(t.deviceGroupKey),this.getKeyValueStorage().removeItem(t.randomPasswordKey)])}async getAuthKeys(e){var t;Eb(null===(t=this.authConfig)||void 0===t?void 0:t.Cognito);const n=null!==e&&void 0!==e?e:await this.getLastAuthUser();return tE($w,"".concat(this.authConfig.Cognito.userPoolClientId,".").concat(n))}getLastAuthUserKey(){var e;Eb(null===(e=this.authConfig)||void 0===e?void 0:e.Cognito);const t=this.authConfig.Cognito.userPoolClientId;return"".concat($w,".").concat(t,".LastAuthUser")}async getLastAuthUser(){var e;return null!==(e=await this.getKeyValueStorage().getItem(this.getLastAuthUserKey()))&&void 0!==e?e:"username"}async setOAuthMetadata(e){const{oauthMetadata:t}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(t,JSON.stringify(e))}async getOAuthMetadata(){const{oauthMetadata:e}=await this.getAuthKeys(),t=await this.getKeyValueStorage().getItem(e);return t&&JSON.parse(t)}}const tE=(e,t)=>nE(Kw)("".concat(e),t);function nE(e){const t=Object.values({...e});return(e,n)=>t.reduce(((t,r)=>({...t,[r]:"".concat(e,".").concat(n,".").concat(r)})),{})}const rE=()=>"undefined"!==typeof window&&"undefined"!==typeof window.document;function oE(e){let{expiresAt:t,clockDrift:n,tolerance:r=5e3}=e;return Date.now()+n+r>t}const aE="amplify-signin-with-hostedUI",iE="CognitoIdentityServiceProvider";class sE{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){Eb(this.cognitoConfig);const e=lE(iE,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){Eb(this.cognitoConfig);const e=lE(iE,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(aE),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){Eb(this.cognitoConfig);const e=lE(iE,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){Eb(this.cognitoConfig);const t=lE(iE,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthState,e)}loadPKCE(){Eb(this.cognitoConfig);const e=lE(iE,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){Eb(this.cognitoConfig);const t=lE(iE,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){Eb(this.cognitoConfig);const e=lE(iE,this.cognitoConfig.userPoolClientId);return"true"===await this.keyValueStorage.getItem(e.inflightOAuth)}async storeOAuthInFlight(e){Eb(this.cognitoConfig);const t=lE(iE,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(t.inflightOAuth,"".concat(e))}async loadOAuthSignIn(){var e,t;Eb(this.cognitoConfig);
2const n=lE(iE,this.cognitoConfig.userPoolClientId),r=await this.keyValueStorage.getItem(aE),[o,a]=null!==(e=null===(t=await this.keyValueStorage.getItem(n.oauthSignIn))||void 0===t?void 0:t.split(","))&&void 0!==e?e:[];return{isOAuthSignIn:"true"===o||"true"===r,preferPrivateSession:"true"===a}}async storeOAuthSignIn(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Eb(this.cognitoConfig);const n=lE(iE,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.oauthSignIn,"".concat(e,",").concat(t))}}const lE=(e,t)=>nE(Ub)(e,t),cE=new sE(Gw),uE=[],dE=()=>{for(;uE.length;){var e;null===(e=uE.pop())||void 0===e||e()}};class pE{constructor(){this.waitForInflightOAuth=rE()?async()=>{if(await cE.loadOAuthInFlight())return this.inflightPromise||(this.inflightPromise=new Promise(((e,t)=>{(e=>{uE.push(e)})(e)}))),this.inflightPromise}:async()=>{}}setAuthConfig(e){cE.setAuthConfig(e.Cognito),this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}getTokenStore(){if(!this.tokenStore)throw new kb({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new kb({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}async getTokens(e){var t,n,r,o,a,i,s,l,c,u;let d;try{var p;Eb(null===(p=this.authConfig)||void 0===p?void 0:p.Cognito)}catch(g){return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,d=await this.getTokenStore().loadTokens();const h=await this.getTokenStore().getLastAuthUser();if(null===d)return null;const f=!(null===(t=d)||void 0===t||!t.idToken)&&oE({expiresAt:1e3*(null!==(n=null===(r=d.idToken)||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.exp)&&void 0!==n?n:0),clockDrift:null!==(o=d.clockDrift)&&void 0!==o?o:0}),m=oE({expiresAt:1e3*(null!==(a=null===(i=d.accessToken)||void 0===i||null===(i=i.payload)||void 0===i?void 0:i.exp)&&void 0!==a?a:0),clockDrift:null!==(s=d.clockDrift)&&void 0!==s?s:0});return(null!==e&&void 0!==e&&e.forceRefresh||f||m)&&(d=await this.refreshTokens({tokens:d,username:h}),null===d)?null:{accessToken:null===(l=d)||void 0===l?void 0:l.accessToken,idToken:null===(c=d)||void 0===c?void 0:c.idToken,signInDetails:null===(u=d)||void 0===u?void 0:u.signInDetails}}async refreshTokens(e){let{tokens:t,username:n}=e;try{const{signInDetails:e}=t,r=await this.getTokenRefresher()({tokens:t,authConfig:this.authConfig,username:n});return r.signInDetails=e,await this.setTokens({tokens:r}),Ol.dispatch("auth",{event:"tokenRefresh"},"Auth",Rl),r}catch(r){return this.handleErrors(r)}}handleErrors(e){if(lw(e),e.name!==sw.NetworkError&&this.clearTokens(),Ol.dispatch("auth",{event:"tokenRefresh_failure",data:{error:e}},"Auth",Rl),e.name.startsWith("NotAuthorizedException"))return null;throw e}async setTokens(e){let{tokens:t}=e;return this.getTokenStore().storeTokens(t)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(e){return this.getTokenStore().getDeviceMetadata(e)}clearDeviceMetadata(e){return this.getTokenStore().clearDeviceMetadata(e)}setOAuthMetadata(e){return this.getTokenStore().setOAuthMetadata(e)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}const hE=new class{constructor(){this.authTokenStore=new eE,this.authTokenStore.setKeyValueStorage(Gw),this.tokenOrchestrator=new pE,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(Xw)}getTokens(){let{forceRefresh:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{forceRefresh:!1};return this.tokenOrchestrator.getTokens({forceRefresh:e})}setKeyValueStorage(e){this.authTokenStore.setKeyValueStorage(e)}setAuthConfig(e){this.authTokenStore.setAuthConfig(e),this.tokenOrchestrator.setAuthConfig(e)}},{tokenOrchestrator:fE}=hE;async function mE(e){if(!e.AccessToken)throw new Pl({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"});{const t=Tb(e.AccessToken),n=1e3*(t.payload.iat||0),r=(new Date).getTime(),o=n>0?n-r:0;let a,i,s;e.RefreshToken&&(i=e.RefreshToken),e.IdToken&&(a=Tb(e.IdToken)),null!==e&&void 0!==e&&e.NewDeviceMetadata&&(s=e.NewDeviceMetadata);const l={accessToken:t,idToken:a,refreshToken:i,clockDrift:o,deviceMetadata:s,username:e.username};
2null!==e&&void 0!==e&&e.signInDetails&&(l.signInDetails=e.signInDetails),await fE.setTokens({tokens:l})}}const gE=async()=>{try{Ol.dispatch("auth",{event:"signedIn",data:await Hb()},"Auth",Rl)}catch(e){if(e.name===_b)throw new kb({name:"UnexpectedSignInInterruptionException",message:"Unable to get user session following successful sign-in.",recoverySuggestion:"This most likely is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."});throw e}},AE="CognitoSignInState",vE={username:"".concat(AE,".username"),challengeName:"".concat(AE,".challengeName"),signInSession:"".concat(AE,".signInSession"),expiry:"".concat(AE,".expiry")},yE=()=>{EE.dispatch({type:"RESET_STATE"})},bE=()=>{for(const e of Object.values(vE))qw.removeItem(e)},xE=()=>({username:void 0,challengeName:void 0,signInSession:void 0}),wE=()=>{var e,t,n;const r=qw.getItem(vE.expiry);if(!r||Number(r)<=Date.now())return bE(),xE();return{username:null!==(e=qw.getItem(vE.username))&&void 0!==e?e:void 0,challengeName:null!==(t=qw.getItem(vE.challengeName))&&void 0!==t?t:void 0,signInSession:null!==(n=qw.getItem(vE.signInSession))&&void 0!==n?n:void 0}},EE=(e=>{let t=e(xE(),{type:"SET_INITIAL_STATE"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}})(((e,t)=>{switch(t.type){case"SET_SIGN_IN_SESSION":return SE({signInSession:t.value}),{...e,signInSession:t.value};case"SET_SIGN_IN_STATE":return SE(t.value),{...t.value};case"SET_CHALLENGE_NAME":return SE({challengeName:t.value}),{...e,challengeName:t.value};case"SET_USERNAME":return SE({username:t.value}),{...e,username:t.value};case"SET_INITIAL_STATE":return wE();case"RESET_STATE":return bE(),xE();default:return e}}));function CE(e){EE.dispatch({type:"SET_SIGN_IN_STATE",value:e})}const SE=e=>{let{challengeName:t,signInSession:n,username:r}=e;r&&qw.setItem(vE.username,r),t&&qw.setItem(vE.challengeName,t),n&&(qw.setItem(vE.signInSession,n),qw.setItem(vE.expiry,String(Date.now()+18e4)))};class TE extends Pl{constructor(e){super(e),this.constructor=TE,Object.setPrototypeOf(this,TE.prototype)}}var kE;!function(e){e.PasskeyNotSupported="PasskeyNotSupported",e.PasskeyAlreadyExists="PasskeyAlreadyExists",e.InvalidPasskeyRegistrationOptions="InvalidPasskeyRegistrationOptions",e.InvalidPasskeyAuthenticationOptions="InvalidPasskeyAuthenticationOptions",e.RelyingPartyMismatch="RelyingPartyMismatch",e.PasskeyRegistrationFailed="PasskeyRegistrationFailed",e.PasskeyRetrievalFailed="PasskeyRetrievalFailed",e.PasskeyRegistrationCanceled="PasskeyRegistrationCanceled",e.PasskeyAuthenticationCanceled="PasskeyAuthenticationCanceled",e.PasskeyOperationAborted="PasskeyOperationAborted"}(kE||(kE={}));const _E="Passkeys may not be supported on this device. Ensure your application is running in a secure context (HTTPS) and Web Authentication API is supported.",NE="User may have canceled the ceremony or another interruption has occurred. Check underlying error for details.",IE="Ensure your user pool is configured to support the WEB_AUTHN as an authentication factor.",PE={[kE.PasskeyNotSupported]:{message:"Passkeys may not be supported on this device.",recoverySuggestion:_E},[kE.InvalidPasskeyRegistrationOptions]:{message:"Invalid passkey registration options.",recoverySuggestion:IE},[kE.InvalidPasskeyAuthenticationOptions]:{message:"Invalid passkey authentication options.",recoverySuggestion:IE},[kE.PasskeyRegistrationFailed]:{message:"Device failed to create passkey.",recoverySuggestion:_E},[kE.PasskeyRetrievalFailed]:{message:"Device failed to retrieve passkey.",recoverySuggestion:"Passkeys may not be available on this device. Try an alternative authentication factor like PASSWORD, EMAIL_OTP, or SMS_OTP."},[kE.PasskeyAlreadyExists]:{message:"Passkey already exists in authenticator.",recoverySuggestion:"Proceed with existing passkey or try again after deleting the credential."},[kE.PasskeyRegistrationCanceled]:{message:"Passkey registration ceremony has been canceled.",recoverySuggestion:NE},[kE.PasskeyAuthenticationCanceled]:{message:"Passkey authentication ceremony has been canceled.",recoverySuggestion:NE},[kE.PasskeyOperationAborted]:{message:"Passkey operation has been aborted.",recoverySuggestion:NE},[kE.RelyingPartyMismatch]:{message:"Relying party does not match current domain.",recoverySuggestion:"Ensure relying party identifier matches current domain."}},RE=Lu(PE,TE),DE=e=>{if(e instanceof Error){if("AbortError"===e.name){const{message:t,recoverySuggestion:n}=PE[kE.PasskeyOperationAborted];return new TE({name:kE.PasskeyOperationAborted,message:t,recoverySuggestion:n,underlyingError:e})}if("SecurityError"===e.name){const{message:t,recoverySuggestion:n}=PE[kE.RelyingPartyMismatch];return new TE({name:kE.RelyingPartyMismatch,message:t,recoverySuggestion:n,underlyingError:e})}}return new TE({name:sw.Unknown,message:"An unknown error has occurred.",underlyingError:e})};const LE={convert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{urlSafe:!1,skipPadding:!1};const n="string"===typeof e?e:function(e){return Array.from(e,(e=>String.fromCodePoint(e))).join("")}(e);let r=(()=>
2{if("undefined"!==typeof window&&"function"===typeof window.btoa)return window.btoa;if("function"===typeof btoa)return btoa;throw new Pl({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})})()(n);return t.urlSafe&&(r=r.replace(/\+/g,"-").replace(/\//g,"_")),t.skipPadding&&(r=r.replace(/=/g,"")),r}},OE=e=>LE.convert(new Uint8Array(e),{urlSafe:!0,skipPadding:!0}),ME=e=>Uint8Array.from(bb.convert(e,{urlSafe:!0}),(e=>e.charCodeAt(0))).buffer;const jE=async e=>{try{const t=rE()&&window.isSecureContext&&"credentials"in navigator&&"function"===typeof window.PublicKeyCredential;RE(t,kE.PasskeyNotSupported);const n=(e=>{const t=ME(e.challenge),n=(e.allowCredentials||[]).map((e=>({...e,id:ME(e.id)})));return{...e,challenge:t,allowCredentials:n}})(e),r=await navigator.credentials.get({publicKey:n});return function(e){RE(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAssertionResponse,kE.PasskeyRetrievalFailed)}(r),(e=>{const t={clientDataJSON:OE(e.response.clientDataJSON),authenticatorData:OE(e.response.authenticatorData),signature:OE(e.response.signature)};e.response.userHandle&&(t.userHandle=OE(e.response.userHandle));const n={id:e.id,rawId:OE(e.rawId),type:e.type,clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(n.authenticatorAttachment=e.authenticatorAttachment),n})(r)}catch(t){throw(e=>{if(e instanceof TE)return e;if(e instanceof Error&&"NotAllowedError"===e.name){const{message:t,recoverySuggestion:n}=PE[kE.PasskeyAuthenticationCanceled];return new TE({name:kE.PasskeyAuthenticationCanceled,message:t,recoverySuggestion:n,underlyingError:e})}return DE(e)})(t)}},FE=async()=>{const{userAgentData:e}=navigator;if(!e)return navigator.userAgent;const{platform:t="",platformVersion:n="",model:r="",architecture:o="",fullVersionList:a=[]}=await e.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]);return[t,n,o,r,t,a.map((e=>"".concat(e.brand,"/").concat(e.version))).join(";")].filter((e=>e)).join(" ")||navigator.userAgent},BE=e=>$x(Aw,ew("ConfirmDevice"),cw(),{..._w,...e}),UE={convert:e=>(new TextEncoder).encode(e)};function zE(e,t){null!=e&&this.fromString(e,t)}function HE(){return new zE(null,null)}let WE;const VE="undefined"!==typeof navigator;VE&&"Microsoft Internet Explorer"===navigator.appName?(zE.prototype.am=function(e,t,n,r,o,a){const i=32767&t,s=t>>15;for(;--a>=0;){let t=32767&this[e];const a=this[e++]>>15,l=s*t+a*i;t=i*t+((32767&l)<<15)+n[r]+(1073741823&o),o=(t>>>30)+(l>>>15)+s*a+(o>>>30),n[r++]=1073741823&t}return o},WE=30):VE&&"Netscape"!==navigator.appName?(zE.prototype.am=function(e,t,n,r,o,a){for(;--a>=0;){const a=t*this[e++]+n[r]+o;o=Math.floor(a/67108864),n[r++]=67108863&a}return o},WE=26):(zE.prototype.am=function(e,t,n,r,o,a){const i=16383&t,s=t>>14;for(;--a>=0;){let t=16383&this[e];const a=this[e++]>>14,l=s*t+a*i;t=i*t+((16383&l)<<14)+n[r]+o,o=(t>>28)+(l>>14)+s*a,n[r++]=268435455&t}return o},WE=28),zE.prototype.DB=WE,zE.prototype.DM=(1<<WE)-1,zE.prototype.DV=1<<WE;zE.prototype.FV=Math.pow(2,52),zE.prototype.F1=52-WE,zE.prototype.F2=2*WE-52;const GE="0123456789abcdefghijklmnopqrstuvwxyz",qE=[];let YE,QE;for(YE="0".charCodeAt(0),QE=0;QE<=9;++QE)qE[YE++]=QE;for(YE="a".charCodeAt(0),QE=10;QE<36;++QE)qE[YE++]=QE;for(YE="A".charCodeAt(0),QE=10;QE<36;++QE)qE[YE++]=QE;function XE(e){return GE.charAt(e)}function KE(e,t){const n=qE[e.charCodeAt(t)];return null==n?-1:n}function JE(e){const t=HE();return t.fromInt(e),t}function ZE(e){let t,n=1;return 0!==(t=e>>>16)&&(e=t,n+=16),0!==(t=e>>8)&&(e=t,n+=8),0!==(t=e>>4)&&(e=t,n+=4),0!==(t=e>>2)&&(e=t,n+=2),0!==(t=e>>1)&&(e=t,n+=1),n}function $E(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}$E.prototype.convert=function(e){const t=HE();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(zE.ZERO)>0&&this.m.subTo(t,t),t},$E.prototype.revert=function(e){const t=HE();return e.copyTo(t),this.reduce(t),t},$E.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(let t=0;t<this.m.t;++t){let n=32767&e[t];const r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},$E.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},$E.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},zE.prototype.copyTo=function(e){for(let t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},zE.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},zE.prototype.fromString=function(e,t){let n;if(16===t)n=4;else if(8===t)n=3;else if(2===t)n=1;else if(32===t)n=5;else{if(4!==t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;let r=e.length,o=!1,a=0;for(;--r>=0;){const t=KE(e,r);t<0?"-"===e.charAt(r)&&(o=!0):(o=!1,0===a?this[this.t++]=t:a+n>this.DB?(this[this.t-1]|=(t&(1<<this.DB-a)-1)<<a,this[this.t++]=t>>this.DB-a):this[this.t-1]|=t<<a,a+=n,a>=this.DB&&(a-=this.DB))}this.clamp(),o&&zE.ZERO.subTo(this,this)},zE.prototype.clamp=function(){const e=this.s&this.DM;for(;this.t>0&&this[this.t-1]==e;)--this.t},zE.prototype.dlShiftTo=function(e,t){let n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},zE.prototype.drShiftTo=function(e,t){for(let n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},zE.prototype.lShiftTo=function(e,t){const n=e%this.DB,r=this.DB-n,o=(1<<r)-1,a=Math.floor(e/this.DB);let i,s=this.s<<n&this.DM;for(i=this.t-1;i>=0;--i)t[i+a+1]=this[i]>>r|s,s=(this[i]&o)<<n;for(i=a-1;i>=0;--i)t[i]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},zE.prototype.rShiftTo=function(e,t){t.s=this.s;const n=Math.floor(e/this.DB);if(n>=this.t)return void(t.t=0);const r=e%this.DB,o=this.DB-r,a=(1<<r)-1;t[0]=this[n]>>r;
2for(let i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&a)<<o,t[i-n]=this[i]>>r;r>0&&(t[this.t-n-1]|=(this.s&a)<<o),t.t=this.t-n,t.clamp()},zE.prototype.subTo=function(e,t){let n=0,r=0;const o=Math.min(e.t,this.t);for(;n<o;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},zE.prototype.multiplyTo=function(e,t){const n=this.abs(),r=e.abs();let o=n.t;for(t.t=o+r.t;--o>=0;)t[o]=0;for(o=0;o<r.t;++o)t[o+n.t]=n.am(0,r[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!==e.s&&zE.ZERO.subTo(t,t)},zE.prototype.squareTo=function(e){const t=this.abs();let n=e.t=2*t.t;for(;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){const r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},zE.prototype.divRemTo=function(e,t,n){const r=e.abs();if(r.t<=0)return;const o=this.abs();if(o.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null===n&&(n=HE());const a=HE(),i=this.s,s=e.s,l=this.DB-ZE(r[r.t-1]);l>0?(r.lShiftTo(l,a),o.lShiftTo(l,n)):(r.copyTo(a),o.copyTo(n));const c=a.t,u=a[c-1];if(0===u)return;const d=u*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),p=this.FV/d,h=(1<<this.F1)/d,f=1<<this.F2;let m=n.t,g=m-c;const A=null===t?HE():t;for(a.dlShiftTo(g,A),n.compareTo(A)>=0&&(n[n.t++]=1,n.subTo(A,n)),zE.ONE.dlShiftTo(c,A),A.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--g>=0;){let e=n[--m]===u?this.DM:Math.floor(n[m]*p+(n[m-1]+f)*h);if((n[m]+=a.am(0,e,n,g,0,c))<e)for(a.dlShiftTo(g,A),n.subTo(A,n);n[m]<--e;)n.subTo(A,n)}null!==t&&(n.drShiftTo(c,t),i!==s&&zE.ZERO.subTo(t,t)),n.t=c,n.clamp(),l>0&&n.rShiftTo(l,n),i<0&&zE.ZERO.subTo(n,n)},zE.prototype.invDigit=function(){if(this.t<1)return 0;const e=this[0];if(0===(1&e))return 0;let t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},zE.prototype.addTo=function(e,t){let n=0,r=0;const o=Math.min(e.t,this.t);for(;n<o;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},zE.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);let t;if(16==e)t=4;else if(8===e)t=3;else if(2===e)t=1;else if(32===e)t=5;else{if(4!==e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}const n=(1<<t)-1;let r,o=!1,a="",i=this.t,s=this.DB-i*this.DB%t;if(i-- >0)for(s<this.DB&&(r=this[i]>>s)>0&&(o=!0,a=XE(r));i>=0;)s<t?(r=(this[i]&(1<<s)-1)<<t-s,r|=this[--i]>>(s+=this.DB-t)):(r=this[i]>>(s-=t)&n,s<=0&&(s+=this.DB,--i)),r>0&&(o=!0),o&&(a+=XE(r));return o?a:"0"},zE.prototype.negate=function(){const e=HE();return zE.ZERO.subTo(this,e),e},zE.prototype.abs=function(){return this.s<0?this.negate():this},zE.prototype.compareTo=function(e){let t=this.s-e.s;if(0!=t)return t;let n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},zE.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ZE(this[this.t-1]^this.s&this.DM)},zE.prototype.mod=function(e){const t=HE();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(zE.ZERO)>0&&e.subTo(t,t),t},zE.prototype.equals=function(e){return 0===this.compareTo(e)},zE.prototype.add=function(e){const t=HE();return this.addTo(e,t),t},zE.prototype.subtract=function(e){const t=HE();return this.subTo(e,t),t},zE.prototype.multiply=function(e){const t=HE();return this.multiplyTo(e,t),t},zE.prototype.divide=function(e){const t=HE();return this.divRemTo(e,t,null),t},zE.prototype.modPow=function(e,t,n){let r,o=e.bitLength(),a=JE(1);const i=new $E(t);if(o<=0)return a;r=o<18?1:o<48?3:o<144?4:o<768?5:6;const s=[];let l=3;const c=r-1,u=(1<<r)-1;if(s[1]=i.convert(this),r>1){const e=HE();for(i.sqrTo(s[1],e);l<=u;)s[l]=HE(),i.mulTo(e,s[l-2],s[l]),l+=2}let d,p,h=e.t-1,f=!0,m=HE();for(o=ZE(e[h])-1;h>=0;){for(o>=c?d=e[h]>>o-c&u:(d=(e[h]&(1<<o+1)-1)<<c-o,h>0&&(d|=e[h-1]>>this.DB+o-c)),l=r;0===(1&d);)d>>=1,--l;if((o-=l)<0&&(o+=this.DB,--h),f)s[d].copyTo(a),f=!1;else{for(;l>1;)i.sqrTo(a,m),i.sqrTo(m,a),l-=2;l>0?i.sqrTo(a,m):(p=a,a=m,m=p),i.mulTo(m,s[d],a)}for(;h>=0&&0===(e[h]&1<<o);)i.sqrTo(a,m),p=a,a=m,m=p,--o<0&&(o=this.DB-1,--h)}const g=i.revert(a);return n(null,g),g},zE.ZERO=JE(0),zE.ONE=JE(1);const eC={},tC={};for(let n=0;n<256;n++){let e=n.toString(16).toLowerCase();1===e.length&&(e="0".concat(e)),eC[n]=e,tC[e]=n}const nC=e=>{if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(!(r in tC))throw new Error("Cannot decode unrecognized sequence ".concat(r," as hexadecimal"));t[n/2]=tC[r]}return t},rC=e=>{let t="";for(let n=0;n<e.byteLength;n++)t+=eC[e[n]];return t},oC=e=>{const t=new sc;t.update(e);const n=t.digestSync(),r=rC(n);return new Array(64-r.length).join("0")+r},aC=e=>oC(nC(e)),iC=/^[89a-f]/i,sC=e=>{if(!(e instanceof zE))throw new Error("Not a BigInteger");const t=e.compareTo(zE.ZERO)<0;let n=e.abs().toString(16);if(n=n.length%2!==0?"0".concat(n):n,n=iC.test(n)?"00".concat(n):n,t){const e=n.split("").map((e=>{const t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)})).join("");n=new zE(e,16).add(zE.ONE).toString(16),n.toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n};class lC{constructor(e,t){this.words=[];let n=e;n=this.words=n||[],this.sigBytes=void 0!==t?t:4*n.length}random(e){const t=[];for(let n=0;n<e;n+=4)t.push(yb().getRandomValues(new Uint32Array(1))[0]);return new lC(t,e)}toString(){return function(e){const{words:t}=e,{sigBytes:n}=e,r=[];for(let o=0;o<n;o++){const e=t[o>>>2]>>>24-o%4*8&255;r.push((e>>>4).toString(16)),r.push((15&e).toString(16))}return r.join("")}(this)}}const cC=e=>{const t=(new lC).random(e).toString();return nC(t)};class uC{constructor(e){let{userPoolName:t,a:n,g:r,A:o,N:a}=e;this.encoder=UE,this.userPoolName=t,this.a=n,this.g=r,this.A=o,this.N=a,this.k=new zE(aC("".concat(sC(a)).concat(sC(r))),16)}getRandomPassword(){if(!this.randomPassword)throw new kb({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new kb({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new kb({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(e,t){this.randomPassword=LE.convert(cC(40));const n="".concat(e).concat(t,":").concat(this.randomPassword),r=oC(n),o=rC(cC(16));return this.saltToHashDevices=sC(new zE(o,16)),new Promise(((e,t)=>{this.g.modPow(new zE(aC(this.saltToHashDevices+r),16),this.N,((n,r)=>{n?t(n):(this.verifierDevices=sC(r),e())}))}))}async getPasswordAuthenticationKey(e){let{username:t,password:n,serverBValue:r,salt:o}=e;if(r.mod(this.N).equals(zE.ZERO))throw new Error("B cannot be zero.");const a=(e=>{let{A:t,B:n}=e;const r=new zE(aC(sC(t)+sC(n)),16);if(r.equals(zE.ZERO))throw new Error("U cannot be zero.");return r})({A:this.A,B:r}),i="".concat(this.userPoolName).concat(t,":").concat(n),s=oC(i),l=new zE(aC(sC(o)+s),16),c=await(async e=>{let{a:t,g:n,k:r,x:o,B:a,N:i,U:s}=e;return new Promise(((e,l)=>{n.modPow(o,i,((n,c)=>{n?l(n):a.subtract(r.multiply(c)).modPow(t.add(s.multiply(o)),i,((t,n)=>{t?l(t):e(n.mod(i))}))}))}))})({a:this.a,g:this.g,k:this.k,x:l,B:r,N:this.N,U:a}),u=this.encoder.convert("Caldera Derived Key"),d=this.encoder.convert(String.fromCharCode(1)),p=new Uint8Array(u.byteLength+d.byteLength);p.set(u,0),p.set(d,u.byteLength);const h=((e,t,n)=>{const r=new sc(t);r.update(e);const o=r.digestSync(),a=new sc(o);return a.update(n),a.digestSync().slice(0,16)})(nC(sC(c)),nC(sC(a)),p);return h}}const dC=async e=>{const t=new zE("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E
27EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),n=new zE("2",16),r=pC(),o=await(async e=>{let{a:t,g:n,N:r}=e;return new Promise(((e,o)=>{n.modPow(t,r,((t,n)=>{t?o(t):n.mod(r).equals(zE.ZERO)?o(new Error("Illegal parameter. A mod N cannot be 0.")):e(n)}))}))})({a:r,g:n,N:t});return new uC({userPoolName:e,a:r,g:n,A:o,N:t})},pC=()=>new zE(rC(cC(128)),16);async function hC(e){let{userPoolId:t,userPoolEndpoint:n,newDeviceMetadata:r,accessToken:o}=e;if(!r)return;const a=t.split("_")[1]||"",i=await dC(a),s=null===r||void 0===r?void 0:r.DeviceKey,l=null===r||void 0===r?void 0:r.DeviceGroupKey;try{await i.generateHashDevice(null!==l&&void 0!==l?l:"",null!==s&&void 0!==s?s:"")}catch(d){return}const c={Salt:LE.convert(nC(i.getSaltToHashDevices())),PasswordVerifier:LE.convert(nC(i.getVerifierDevices()))},u=i.getRandomPassword();try{const e=BE({endpointResolver:Mw({endpointOverride:n})});return await e({region:jw(t)},{AccessToken:o,DeviceName:await FE(),DeviceKey:null===r||void 0===r?void 0:r.DeviceKey,DeviceSecretVerifierConfig:c}),{deviceKey:s,deviceGroupKey:l,randomPassword:u}}catch(p){return}}const fC=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],mC=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],gC=()=>{const e=new Date,t=mC[e.getUTCDay()],n=fC[e.getUTCMonth()],r=e.getUTCDate();let o=e.getUTCHours();o<10&&(o="0".concat(o));let a=e.getUTCMinutes();a<10&&(a="0".concat(a));let i=e.getUTCSeconds();i<10&&(i="0".concat(i));const s=e.getUTCFullYear();return"".concat(t," ").concat(n," ").concat(r," ").concat(o,":").concat(a,":").concat(i," UTC ").concat(s)},AC=e=>{let{userPoolName:t,username:n,challengeParameters:r,dateNow:o,hkdf:a}=e;const i=UE.convert(t),s=UE.convert(n),l=vC(r.SECRET_BLOCK),c=UE.convert(o),u=new Uint8Array(i.byteLength+s.byteLength+l.byteLength+c.byteLength);u.set(i,0),u.set(s,i.byteLength),u.set(l,i.byteLength+s.byteLength),u.set(c,i.byteLength+s.byteLength+l.byteLength);const d=new sc(a);d.update(u);const p=d.digestSync();return LE.convert(p)},vC=e=>{const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),n=bb.convert(t),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r};async function yC(e){let{username:t,config:n,clientMetadata:r,session:o,tokenOrchestrator:a}=e;const{userPoolId:i,userPoolEndpoint:s}=n,l=n.userPoolClientId,c=await(null===a||void 0===a?void 0:a.getDeviceMetadata(t));Bb(c);const u=await dC(c.deviceGroupKey),d={ChallengeName:"DEVICE_SRP_AUTH",ClientId:l,ChallengeResponses:{USERNAME:t,SRP_A:u.A.toString(16),DEVICE_KEY:c.deviceKey},ClientMetadata:r,Session:o},p=Iw({endpointResolver:Mw({endpointOverride:s})}),{ChallengeParameters:h,Session:f}=await p({region:jw(i)},d);return async function(e,t,n,r,o,a,i){var s;let{userPoolId:l,userPoolClientId:c,userPoolEndpoint:u}=a;const d=await(null===i||void 0===i?void 0:i.getDeviceMetadata(e));Bb(d);const p=new zE(null===t||void 0===t?void 0:t.SRP_B,16),h=new zE(null===t||void 0===t?void 0:t.SALT,16),{deviceKey:f}=d,{deviceGroupKey:m}=d,g=await o.getPasswordAuthenticationKey({username:d.deviceKey,password:d.randomPassword,serverBValue:p,salt:h}),A=gC(),v={USERNAME:null!==(s=null===t||void 0===t?void 0:t.USERNAME)&&void 0!==s?s:e,PASSWORD_CLAIM_SECRET_BLOCK:null===t||void 0===t?void 0:t.SECRET_BLOCK,TIMESTAMP:A,PASSWORD_CLAIM_SIGNATURE:AC({username:f,userPoolName:m,challengeParameters:t,dateNow:A,hkdf:g}),DEVICE_KEY:f},y=Yw({username:e,userPoolId:l,userPoolClientId:c}),b={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:c,ChallengeResponses:v,Session:r,ClientMetadata:n,UserContextData:y},x=Iw({endpointResolver:Mw({endpointOverride:u})});return x({region:jw(l)},b)}(t,h,r,f,u,n,a)}async function bC(e,t,n,r,o,a,i){const{userPoolId:s,userPoolClientId:l,userPoolEndpoint:c}=a,u=(null===s||void 0===s?void 0:s.split("_")[1])||"",d=new zE(null===t||void 0===t?void 0:t.SRP_B,16),p=new zE(null===t||void 0===t?void 0:t.SALT,16),h=null===t||void 0===t?void 0:t.USER_ID_FOR_SRP;if(!h)throw new kb({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const f=await o.getPasswordAuthenticationKey({username:h,password:e,serverBValue:d,salt:p}),m=gC(),g={USERNAME:h,PASSWORD_CLAIM_SECRET_BLOCK:null===t||void 0===t?void 0:t.SECRET_BLOCK,TIMESTAMP:m,PASSWORD_CLAIM_SIGNATURE:AC({username:h,userPoolName:u,challengeParameters:t,dateNow:m,hkdf:f})},A=await i.getDeviceMetadata(h);A&&A.deviceKey&&(g.DEVICE_KEY=A.deviceKey);const v={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:g,ClientMetadata:n,Session:r,ClientId:l,
2UserContextData:Yw({username:h,userPoolId:s,userPoolClientId:l})},y=Iw({endpointResolver:Mw({endpointOverride:c})}),b=await y({region:jw(s)},v);return"DEVICE_SRP_AUTH"===b.ChallengeName?yC({username:h,config:a,clientMetadata:n,session:b.Session,tokenOrchestrator:i}):b}async function xC(e,t,n,r){try{return await e(...t)}catch(o){if(o instanceof kb&&"ResourceNotFoundException"===o.name&&o.message.includes("Device does not exist."))return await r.clearDeviceMetadata(n),e(...t);throw o}}function wC(e){const{dispatch:t}=EE;t({type:"SET_USERNAME",value:e})}async function EC(e){var t;let{username:n,password:r,clientMetadata:o,config:a,tokenOrchestrator:i,authFlow:s,preferredChallenge:l}=e;const{userPoolId:c,userPoolClientId:u,userPoolEndpoint:d}=a,p=(null===c||void 0===c?void 0:c.split("_")[1])||"",h=await dC(p),f={USERNAME:n,SRP_A:h.A.toString(16)};"USER_AUTH"===s&&l&&(f.PREFERRED_CHALLENGE=l);const m={AuthFlow:s,AuthParameters:f,ClientMetadata:o,ClientId:u,UserContextData:Yw({username:n,userPoolId:c,userPoolClientId:u})},g=Nw({endpointResolver:Mw({endpointOverride:d})}),A=await g({region:jw(c),userAgentValue:Zx(Qb.SignIn)},m),{ChallengeParameters:v,Session:y}=A,b=null!==(t=null===v||void 0===v?void 0:v.USERNAME)&&void 0!==t?t:n;return wC(b),"PASSWORD_VERIFIER"===A.ChallengeName?xC(bC,[r,v,o,y,h,a,i],b,i):A}const CC="userAttributes.";async function SC(e){let{challengeResponse:t,clientMetadata:n,session:r,username:o,config:a,tokenOrchestrator:i}=e;const{userPoolId:s,userPoolClientId:l,userPoolEndpoint:c}=a,u={USERNAME:o,ANSWER:t},d=await(null===i||void 0===i?void 0:i.getDeviceMetadata(o));d&&d.deviceKey&&(u.DEVICE_KEY=d.deviceKey);const p={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:u,Session:r,ClientMetadata:n,ClientId:l,UserContextData:Yw({username:o,userPoolId:s,userPoolClientId:l})},h=Iw({endpointResolver:Mw({endpointOverride:c})}),f=await h({region:jw(s),userAgentValue:Zx(Qb.ConfirmSignIn)},p);return"DEVICE_SRP_AUTH"===f.ChallengeName?yC({username:o,config:a,clientMetadata:n,session:f.Session,tokenOrchestrator:i}):f}async function TC(e,t,n,r,o){var a,i,s,l;const{userPoolClientId:c,userPoolId:u,userPoolEndpoint:d}=r,p={USERNAME:e,PASSWORD:t},h=await o.getDeviceMetadata(e);h&&h.deviceKey&&(p.DEVICE_KEY=h.deviceKey);const f={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:p,ClientMetadata:n,ClientId:c,UserContextData:Yw({username:e,userPoolId:u,userPoolClientId:c})},m=Nw({endpointResolver:Mw({endpointOverride:d})}),g=await m({region:jw(u),userAgentValue:Zx(Qb.SignIn)},f),A=null!==(a=null!==(i=null===(s=g.ChallengeParameters)||void 0===s?void 0:s.USERNAME)&&void 0!==i?i:null===(l=g.ChallengeParameters)||void 0===l?void 0:l.USER_ID_FOR_SRP)&&void 0!==a?a:e;return wC(A),"DEVICE_SRP_AUTH"===g.ChallengeName?yC({username:A,config:r,clientMetadata:n,session:g.Session,tokenOrchestrator:o}):g}async function kC(e,t,n,r){var o,a;const{userPoolClientId:i,userPoolId:s,userPoolEndpoint:l}=n,c={USERNAME:e},u=await r.getDeviceMetadata(e);u&&u.deviceKey&&(c.DEVICE_KEY=u.deviceKey);const d={AuthFlow:"CUSTOM_AUTH",AuthParameters:c,ClientMetadata:t,ClientId:i,UserContextData:Yw({username:e,userPoolId:s,userPoolClientId:i})},p=Nw({endpointResolver:Mw({endpointOverride:l})}),h=await p({region:jw(s),userAgentValue:Zx(Qb.SignIn)},d),f=null!==(o=null===(a=h.ChallengeParameters)||void 0===a?void 0:a.USERNAME)&&void 0!==o?o:e;return wC(f),"DEVICE_SRP_AUTH"===h.ChallengeName?yC({username:f,config:n,clientMetadata:t,session:h.Session,tokenOrchestrator:r}):h}async function _C(e){var t;const{challengeName:n,challengeParameters:r,availableChallenges:o}=e,a=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;switch(Eb(a),n){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:r}};case"MFA_SETUP":{const{signInSession:e,username:t}=EE.getState(),n=MC(jC(r.MFAS_CAN_SETUP))||[],o=n.filter((e=>"EMAIL"===e||"TOTP"===e)),i=o.includes("TOTP"),s=o.includes("EMAIL");if(i&&s)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION",allowedMFATypes:o}};if(s)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"}};if(i){const n=Rw({endpointResolver:Mw({endpointOverride:a.userPoolEndpoint})}),{Session:r,SecretCode:o}=await n({region:jw(a.userPoolId)},{Session:e});return EE.dispatch({type:"SET_SIGN_IN_SESSION",value:r}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:NC(o,t)}}}throw new kb({name:Px.SignInException,message:"Cannot initiate MFA setup from available types: ".concat(n)})}case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:PC(r.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:MC(jC(r.MFAS_CAN_CHOOSE))}};case"SMS_OTP":case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:r.CODE_DELIVERY_DELIVERY_MEDIUM,destination:r.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}};case"EMAIL_OTP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_EMAIL_CODE",codeDeliveryDetails:{deliveryMedium:r.CODE_DELIVERY_DELIVERY_MEDIUM,destination:r.CODE_DELIVERY_DESTINATION}}};case"WEB_AUTHN":{const e=await async function(e){var t;const n=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(n);
2const{username:r,signInSession:o,signInDetails:a,challengeName:i}=EE.getState();if("WEB_AUTHN"!==i||!r)throw new kb({name:Px.SignInException,message:"Unable to proceed due to invalid sign in state."});const{CREDENTIAL_REQUEST_OPTIONS:s}=e;RE(!!s,kE.InvalidPasskeyAuthenticationOptions);const l=await jE(JSON.parse(s)),c=Iw({endpointResolver:Mw({endpointOverride:n.userPoolEndpoint})}),{ChallengeName:u,ChallengeParameters:d,AuthenticationResult:p,Session:h}=await c({region:jw(n.userPoolId),userAgentValue:Zx(Qb.ConfirmSignIn)},{ChallengeName:"WEB_AUTHN",ChallengeResponses:{USERNAME:r,CREDENTIAL:JSON.stringify(l)},ClientId:n.userPoolClientId,Session:o});if(CE({signInSession:h,username:r,challengeName:u,signInDetails:a}),p)return await mE({...p,username:r,NewDeviceMetadata:await hC({userPoolId:n.userPoolId,userPoolEndpoint:n.userPoolEndpoint,newDeviceMetadata:p.NewDeviceMetadata,accessToken:p.AccessToken}),signInDetails:a}),EE.dispatch({type:"RESET_STATE"}),await gE(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};if("WEB_AUTHN"===u)throw new kb({name:Px.SignInException,message:"Sequential WEB_AUTHN challenges returned from underlying service cannot be handled."});return{challengeName:u,challengeParameters:d}}(r);return function(e){return"isSignedIn"in e&&"nextStep"in e}(e)?e:_C(e)}case"PASSWORD":case"PASSWORD_SRP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_PASSWORD"}};case"SELECT_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION",availableChallenges:o}}}throw new kb({name:Px.SignInException,message:"An error occurred during the sign in process. "+"".concat(n," challengeName returned by the underlying service was not addressed.")})}function NC(e,t){return{sharedSecret:e,getSetupUri:(n,r)=>{const o="otpauth://totp/".concat(n,":").concat(null!==r&&void 0!==r?r:t,"?secret=").concat(e,"&issuer=").concat(n);return new rx(o)}}}function IC(e){return e===vx.PasswordResetRequiredException?{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}}:e===vx.UserNotConfirmedException?{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}:void 0}function PC(e){if(!e)return[];return JSON.parse(e).map((e=>e.includes(CC)?e.replace(CC,""):e))}function RC(e){if(!e)return{};const t={};return Object.entries(e).forEach((e=>{let[n,r]=e;r&&(t["".concat(CC).concat(n)]=r)})),t}async function DC(e,t,n,r,o,a,i,s){const l=null===s||void 0===s?void 0:s.userAttributes,c=null===s||void 0===s?void 0:s.friendlyDeviceName;switch(t){case"WEB_AUTHN":case"SELECT_CHALLENGE":return"PASSWORD_SRP"===r||"PASSWORD"===r?{ChallengeName:r,Session:n,$metadata:{}}:async function(e){let{username:t,session:n,selectedChallenge:r,config:o,clientMetadata:a}=e;return Iw({endpointResolver:Mw({endpointOverride:o.userPoolEndpoint})})({region:jw(o.userPoolId),userAgentValue:Zx(Qb.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:{USERNAME:t,ANSWER:r},ClientId:o.userPoolClientId,Session:n,ClientMetadata:a})}({username:e,session:n,selectedChallenge:r,config:o,clientMetadata:i});case"SELECT_MFA_TYPE":return async function(e){let{challengeResponse:t,username:n,clientMetadata:r,session:o,config:a}=e;const{userPoolId:i,userPoolClientId:s,userPoolEndpoint:l}=a;Rx("TOTP"===t||"SMS"===t||"EMAIL"===t,_x.IncorrectMFAMethod);const c={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:{USERNAME:n,ANSWER:LC(t)},Session:o,ClientMetadata:r,ClientId:s,UserContextData:Yw({username:n,userPoolId:i,userPoolClientId:s})};return Iw({endpointResolver:Mw({endpointOverride:l})})({region:jw(i),userAgentValue:Zx(Qb.ConfirmSignIn)},c)}({challengeResponse:r,clientMetadata:i,session:n,username:e,config:o});case"MFA_SETUP":return async function(e){let{challengeResponse:t,username:n,clientMetadata:r,session:o,deviceName:a,config:i}=e;const{userPoolId:s,userPoolClientId:l,userPoolEndpoint:c}=i;if("EMAIL"===t)return{ChallengeName:"MFA_SETUP",Session:o,ChallengeParameters:{MFAS_CAN_SETUP:'["EMAIL_OTP"]'},$metadata:{}};if("TOTP"===t)return{ChallengeName:"MFA_SETUP",Session:o,ChallengeParameters:{MFAS_CAN_SETUP:'["SOFTWARE_TOKEN_MFA"]'},$metadata:{}};const u={USERNAME:n};if(/^\d+$/.test(t)){const e=Pw({endpointResolver:Mw({endpointOverride:c})}),{Session:n}=await e({region:jw(s),userAgentValue:Zx(Qb.ConfirmSignIn)},{UserCode:t,Session:o,FriendlyDeviceName:a});EE.dispatch({type:"SET_SIGN_IN_SESSION",value:n});const i={ChallengeName:"MFA_SETUP",ChallengeResponses:u,Session:n,ClientMetadata:r,ClientId:l};return Iw({endpointResolver:Mw({endpointOverride:c})})({region:jw(s),userAgentValue:Zx(Qb.ConfirmSignIn)},i)}if(t.includes("@")){u.EMAIL=t;const e={ChallengeName:"MFA_SETUP",ChallengeResponses:u,Session:o,ClientMetadata:r,ClientId:l};return Iw({endpointResolver:Mw({endpointOverride:c})})({region:jw(s),userAgentValue:Zx(Qb.ConfirmSignIn)},e)}throw new kb({name:Px.SignInException,message:"Cannot proceed with MFA setup using challengeResponse: ".concat(t),recoverySuggestion:'Try passing "EMAIL", "TOTP", a valid email, or OTP co
2de as the challengeResponse.'})}({challengeResponse:r,clientMetadata:i,session:n,username:e,deviceName:c,config:o});case"NEW_PASSWORD_REQUIRED":return async function(e){let{challengeResponse:t,clientMetadata:n,session:r,username:o,requiredAttributes:a,config:i}=e;const{userPoolId:s,userPoolClientId:l,userPoolEndpoint:c}=i,u={ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:{...RC(a),NEW_PASSWORD:t,USERNAME:o},ClientMetadata:n,Session:r,ClientId:l,UserContextData:Yw({username:o,userPoolId:s,userPoolClientId:l})};return Iw({endpointResolver:Mw({endpointOverride:c})})({region:jw(s),userAgentValue:Zx(Qb.ConfirmSignIn)},u)}({challengeResponse:r,clientMetadata:i,session:n,username:e,requiredAttributes:l,config:o});case"CUSTOM_CHALLENGE":return xC(SC,[{challengeResponse:r,clientMetadata:i,session:n,username:e,config:o,tokenOrchestrator:a}],e,a);case"SMS_MFA":case"SOFTWARE_TOKEN_MFA":case"SMS_OTP":case"EMAIL_OTP":return async function(e){let{challengeName:t,challengeResponse:n,clientMetadata:r,session:o,username:a,config:i}=e;const{userPoolId:s,userPoolClientId:l,userPoolEndpoint:c}=i,u={USERNAME:a};"EMAIL_OTP"===t&&(u.EMAIL_OTP_CODE=n);"SMS_MFA"===t&&(u.SMS_MFA_CODE=n);"SMS_OTP"===t&&(u.SMS_OTP_CODE=n);"SOFTWARE_TOKEN_MFA"===t&&(u.SOFTWARE_TOKEN_MFA_CODE=n);const d=Yw({username:a,userPoolId:s,userPoolClientId:l}),p={ChallengeName:t,ChallengeResponses:u,Session:o,ClientMetadata:r,ClientId:l,UserContextData:d};return Iw({endpointResolver:Mw({endpointOverride:c})})({region:jw(s),userAgentValue:Zx(Qb.ConfirmSignIn)},p)}({challengeName:t,challengeResponse:r,clientMetadata:i,session:n,username:e,config:o});case"PASSWORD":return async function(e,t,n,r,o){var a,i;const{userPoolId:s,userPoolClientId:l,userPoolEndpoint:c}=r,u={ANSWER:"PASSWORD",USERNAME:e,PASSWORD:t},d=Yw({username:e,userPoolId:s,userPoolClientId:l}),p=Iw({endpointResolver:Mw({endpointOverride:c})}),h=await p({region:jw(s),userAgentValue:Zx(Qb.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:u,ClientId:l,ClientMetadata:n,Session:o,UserContextData:d});return wC(null!==(a=null===(i=h.ChallengeParameters)||void 0===i?void 0:i.USERNAME)&&void 0!==a?a:e),h}(e,r,i,o,n);case"PASSWORD_SRP":return async function(e,t,n,r,o,a){var i,s;const{userPoolId:l,userPoolClientId:c,userPoolEndpoint:u}=r,d=l.split("_")[1]||"",p=await dC(d),h={ANSWER:"PASSWORD_SRP",USERNAME:e,SRP_A:p.A.toString(16)},f=Yw({username:e,userPoolId:l,userPoolClientId:c}),m=Iw({endpointResolver:Mw({endpointOverride:u})}),g=await m({region:jw(l),userAgentValue:Zx(Qb.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:h,ClientId:c,ClientMetadata:n,Session:o,UserContextData:f}),A=null!==(i=null===(s=g.ChallengeParameters)||void 0===s?void 0:s.USERNAME)&&void 0!==i?i:e;return wC(A),"PASSWORD_VERIFIER"===g.ChallengeName?xC(bC,[t,g.ChallengeParameters,n,g.Session,p,r,a],A,a):g}(e,r,i,o,n,a)}throw new kb({name:Px.SignInException,message:"An error occurred during the sign in process.\n\t\t".concat(t," challengeName returned by the underlying service was not addressed.")})}function LC(e){let t="SMS_MFA";return"TOTP"===e&&(t="SOFTWARE_TOKEN_MFA"),"EMAIL"===e&&(t="EMAIL_OTP"),t}function OC(e){return"SMS_MFA"===e?"SMS":"SOFTWARE_TOKEN_MFA"===e?"TOTP":"EMAIL_OTP"===e?"EMAIL":void 0}function MC(e){if(e)return e.map(OC).filter(Boolean)}function jC(e){return e?JSON.parse(e):[]}async function FC(){let e;try{e=await Hb()}catch(t){}if(e&&e.userId&&e.username)throw new kb({name:Nb,message:"There is already a signed in user.",recoverySuggestion:"Call signOut before calling signIn again."})}function BC(e){var t;return null!==(t=EE.getState().username)&&void 0!==t?t:e}async function UC(e){var t;const{username:n,password:r,options:o}=e,a={loginId:n,authFlowType:"CUSTOM_WITH_SRP"},i=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(i);const s=null===o||void 0===o?void 0:o.clientMetadata;Rx(!!n,_x.EmptySignInUsername),Rx(!!r,_x.EmptySignInPassword);try{const{ChallengeName:e,ChallengeParameters:t,AuthenticationResult:o,Session:l}=await async function(e,t,n,r,o){var a;Eb(r);const{userPoolId:i,userPoolClientId:s,userPoolEndpoint:l}=r,c=(null===i||void 0===i?void 0:i.split("_")[1])||"",u=await dC(c),d={AuthFlow:"CUSTOM_AUTH",AuthParameters:{USERNAME:e,SRP_A:u.A.toString(16),CHALLENGE_NAME:"SRP_A"},ClientMetadata:n,ClientId:s,UserContextData:Yw({username:e,userPoolId:i,userPoolClientId:s})},p=Nw({endpointResolver:Mw({endpointOverride:l})}),{ChallengeParameters:h,Session:f}=await p({region:jw(i),userAgentValue:Zx(Qb.SignIn)},d),m=null!==(a=null===h||void 0===h?void 0:h.USERNAME)&&void 0!==a?a:e;return wC(m),xC(bC,[t,h,n,f,u,r,o],m,o)}(n,r,s,i,fE),c=BC(n);return CE({signInSession:l,username:c,challengeName:e,signInDetail
2s:a}),o?(await mE({username:c,...o,NewDeviceMetadata:await hC({userPoolId:i.userPoolId,userPoolEndpoint:i.userPoolEndpoint,newDeviceMetadata:o.NewDeviceMetadata,accessToken:o.AccessToken}),signInDetails:a}),yE(),await gE(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):_C({challengeName:e,challengeParameters:t})}catch(l){yE(),lw(l);const e=IC(l.name);if(e)return e;throw l}}const zC=(e=>{let t=e({active:!1},{type:"RESET"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}})(((e,t)=>{switch(t.type){case"SET_USERNAME":return{...e,username:t.value};case"SET_SESSION":return{...e,session:t.value};case"START":return{...e,active:!0};case"RESET":return{active:!1};default:return e}})),HC=async()=>{throw new kb({name:Pb,message:"The autoSignIn flow has not started, or has been cancelled/completed.",recoverySuggestion:"Please try to use the signIn API or log out before starting a new autoSignIn flow."})};let WC=HC;function VC(e){WC=e}function GC(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(WC=HC),zC.dispatch({type:"RESET"})}async function qC(e){var t,n;const{username:r,password:o}=e,a=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito,i={loginId:r,authFlowType:"USER_SRP_AUTH"};Eb(a);const s=null===(n=e.options)||void 0===n?void 0:n.clientMetadata;Rx(!!r,_x.EmptySignInUsername),Rx(!!o,_x.EmptySignInPassword);try{const{ChallengeName:e,ChallengeParameters:t,AuthenticationResult:n,Session:l}=await async function(e,t,n,r,o){return EC({username:e,password:t,clientMetadata:n,config:r,tokenOrchestrator:o,authFlow:"USER_SRP_AUTH"})}(r,o,s,a,fE),c=BC(r);return CE({signInSession:l,username:c,challengeName:e,signInDetails:i}
2),n?(await mE({username:c,...n,NewDeviceMetadata:await hC({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:n.NewDeviceMetadata,accessToken:n.AccessToken}),signInDetails:i}),yE(),await gE(),GC(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):_C({challengeName:e,challengeParameters:t})}catch(l){yE(),GC(),lw(l);const e=IC(l.name);if(e)return e;throw l}}async function YC(e){var t;const{username:n,password:r,options:o}=e,a=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito,i={loginId:n,authFlowType:"USER_AUTH"};Eb(a);const s=null===o||void 0===o?void 0:o.clientMetadata,l=null===o||void 0===o?void 0:o.preferredChallenge;Rx(!!n,_x.EmptySignInUsername);try{const e={username:n,config:a,tokenOrchestrator:fE,clientMetadata:s,preferredChallenge:l,password:r},t=zC.getState();t.active&&t.username===n&&(e.session=t.session);const o=await async function(e){let{username:t,clientMetadata:n,config:r,tokenOrchestrator:o,preferredChallenge:a,password:i,session:s}=e;const{userPoolId:l,userPoolClientId:c,userPoolEndpoint:u}=r,d=Yw({username:t,userPoolId:l,userPoolClientId:c}),p={USERNAME:t};if(a){if("PASSWORD_SRP"===a)return Rx(!!i,_x.EmptySignInPassword),EC({username:t,password:i,clientMetadata:n,config:r,tokenOrchestrator:o,authFlow:"USER_AUTH",preferredChallenge:a});"PASSWORD"===a&&(Rx(!!i,_x.EmptySignInPassword),p.PASSWORD=i),p.PREFERRED_CHALLENGE=a}const h={AuthFlow:"USER_AUTH",AuthParameters:p,ClientMetadata:n,ClientId:c,UserContextData:d};s&&(h.Session=s);const f=Nw({endpointResolver:Mw({endpointOverride:u})}),m=await f({region:jw(l),userAgentValue:Zx(Qb.SignIn)},h);return wC(t),m}(e),c=BC(n);return CE({signInSession:o.Session,username:c,challengeName:o.ChallengeName,signInDetails:i}
2),o.AuthenticationResult?(await mE({username:c,...o.AuthenticationResult,NewDeviceMetadata:await hC({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:o.AuthenticationResult.NewDeviceMetadata,accessToken:o.AuthenticationResult.AccessToken}),signInDetails:i}),yE(),await gE(),GC(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):_C({challengeName:o.ChallengeName,challengeParameters:o.ChallengeParameters,availableChallenges:"AvailableChallenges"in o?o.AvailableChallenges:void 0})}catch(c){yE(),GC(),lw(c);const e=IC(c.name);if(e)return e;throw c}}async function QC(e){var t;GC(!1);const n=null===(t=e.options)||void 0===t?void 0:t.authFlowType;switch(await FC(),n){case"USER_SRP_AUTH":default:return qC(e);case"USER_PASSWORD_AUTH":return async function(e){var t;const{username:n,password:r,options:o}=e,a=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito,i={loginId:n,authFlowType:"USER_PASSWORD_AUTH"};Eb(a);const s=null===o||void 0===o?void 0:o.clientMetadata;Rx(!!n,_x.EmptySignInUsername),Rx(!!r,_x.EmptySignInPassword);try{const{ChallengeName:e,ChallengeParameters:t,AuthenticationResult:o,Session:l}=await xC(TC,[n,r,s,a,fE],n,fE),c=BC(n);return CE({signInSession:l,username:c,challengeName:e,signInDetails:i}
2),o?(await mE({...o,username:c,NewDeviceMetadata:await hC({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:o.NewDeviceMetadata,accessToken:o.AccessToken}),signInDetails:i}),yE(),await gE(),GC(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):_C({challengeName:e,challengeParameters:t})}catch(l){yE(),GC(),lw(l);const e=IC(l.name);if(e)return e;throw l}}(e);case"CUSTOM_WITHOUT_SRP":return async function(e){var t;const n=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(n);const{username:r,password:o,options:a}=e,i={loginId:r,authFlowType:"CUSTOM_WITHOUT_SRP"},s=null===a||void 0===a?void 0:a.clientMetadata;Rx(!!r,_x.EmptySignInUsername),Rx(!o,_x.CustomAuthSignInPassword);try{const{ChallengeName:e,ChallengeParameters:t,AuthenticationResult:o,Session:a}=await xC(kC,[r,s,n,fE],r,fE),l=BC(r);return CE({signInSession:a,username:l,challengeName:e,signInDetails:i}),o?(await mE({username:l,...o,NewDeviceMetadata:await hC({userPoolId:n.userPoolId,userPoolEndpoint:n.userPoolEndpoint,newDeviceMetadata:o.NewDeviceMetadata,accessToken:o.AccessToken}),signInDetails:i}
2),yE(),await gE(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):_C({challengeName:e,challengeParameters:t})}catch(l){yE(),lw(l);const e=IC(l.name);if(e)return e;throw l}}(e);case"CUSTOM_WITH_SRP":return UC(e);case"USER_AUTH":return YC(e)}}async function XC(e){var t,n;const{username:r}=e;Rx(!!r,_x.EmptySignUpUsername);const o=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(o);const{userPoolClientId:a,userPoolId:i,userPoolEndpoint:s}=o,l=null===(n=e.options)||void 0===n?void 0:n.clientMetadata,c=Yw({username:r,userPoolId:i,userPoolClientId:a}),u=(e=>$x(Aw,ew("ResendConfirmationCode"),cw(),{..._w,...e}))({endpointResolver:Mw({endpointOverride:s})}),{CodeDeliveryDetails:d}=await u({region:jw(o.userPoolId),userAgentValue:Zx(Qb.ResendSignUpCode)},{Username:r,ClientMetadata:l,ClientId:o.userPoolClientId,UserContextData:c}),{DeliveryMedium:p,AttributeName:h,Destination:f}={...d};return{destination:f,deliveryMedium:p,attributeName:h||void 0}}async function KC(e){var t;const{challengeResponse:n,options:r}=e,{username:o,challengeName:a,signInSession:i,signInDetails:s}=EE.getState(),l=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(l);const c=null===r||void 0===r?void 0:r.clientMetadata;if(Rx(!!n,_x.EmptyChallengeResponse),!o||!a||!i)throw new kb({name:Px.SignInException,message:"\n\t\t\tAn error occurred during the sign in process.\n\n\t\t\tThis most likely occurred due to:\n\t\t\t1. signIn was not called before confirmSignIn.\n\t\t\t2. signIn threw an exception.\n\t\t\t3. page was refreshed during the sign in flow and session has expired.\n\t\t\t",recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:e,ChallengeName:t,AuthenticationResult:u,ChallengeParameters:d}=await DC(o,a,i,n,l,fE,c,r);return CE({signInSession:e,username:o,challengeName:t,signInDetails:s}),u?(await mE({username:o,...u,NewDeviceMetadata:await hC({userPoolId:l.userPoolId,userPoolEndpoint:l.userPoolEndpoint,newDeviceMetadata:u.NewDeviceMetadata,accessToken:u.AccessToken}),signInDetails:s}),yE(),await gE(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):_C({challengeName:t,challengeParameters:d})}catch(u){lw(u);const e=IC(u.name);if(e)return e;throw u}}var JC=n(7260),ZC=n(2819);const $C=e=>$x(Aw,ew("ForgotPassword"),cw(),{..._w,...e});async function eS(e){var t,n;const{username:r}=e;Rx(!!r,_x.EmptyResetPasswordUsername);const o=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(o);const{userPoolClientId:a,userPoolId:i,userPoolEndpoint:s}=o,l=null===(n=e.options)||void 0===n?void 0:n.clientMetadata,c=Yw({username:r,userPoolId:i,userPoolClientId:a}),u=$C({endpointResolver:Mw({endpointOverride:s})}),d=(await u({region:jw(i),userAgentValue:Zx(Qb.ResetPassword)},{Username:r,ClientMetadata:l,ClientId:a,UserContextData:c})).CodeDeliveryDetails;return{isPasswordReset:!1,nextStep:{resetPasswordStep:"CONFIRM_RESET_PASSWORD_WITH_CODE",codeDeliveryDetails:{deliveryMedium:null===d||void 0===d?void 0:d.DeliveryMedium,destination:null===d||void 0===d?void 0:d.Destination,attributeName:null===d||void 0===d?void 0:d.AttributeName}}}}async function tS(e){var t,n;const r=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(r);const{userPoolClientId:o,userPoolId:a,userPoolEndpoint:i}=r,{username:s,newPassword:l}=e;Rx(!!s,_x.EmptyConfirmResetPasswordUsername),Rx(!!l,_x.EmptyConfirmResetPasswordNewPassword);const c=e.confirmationCode;Rx(!!c,_x.EmptyConfirmResetPasswordConfirmationCode);const u=null===(n=e.options)||void 0===n?void 0:n.clientMetadata,d=Yw({username:s,userPoolId:a,userPoolClientId:o}),p=(e=>$x(Aw,ew("ConfirmForgotPassword"),cw(),{..._w,...e}))({endpointResolver:Mw({endpointOverride:i})});await p({region:jw(r.userPoolId),userAgentValue:Zx(Qb.ConfirmResetPassword)},{Username:s,ConfirmationCode:c,Password:l,ClientMetadata:u,ClientId:r.userPoolClientId,UserContextData:d})}const nS=e=>{let{name:t,placeholder:n="New Password",value:r,onChange:o,className:i=""}=e;const[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)({minLength:!1,hasUpperCase:!1,hasLowerCase:!1,hasNumber:!1,hasSpecialChar:!1});return(0,$e.jsxs)("div",{className:"password-input-wrapper ".concat(i),children:[(0,$e.jsxs)("div",{className:"new-password-container",children:[(0,$e.jsx)("input",{name:t,type:s?"text":"password",placeholder:n,value:r,onChange:e=>{const t=e.target.value;u({minLength:t.length>=8,hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasNumber:/[0-9]/.test(t),hasS
2pecialChar:/[!@#$%&*]/.test(t)}),o&&o(e)},required:!0}),(0,$e.jsx)("button",{type:"button",className:"new-password-toggle",onClick:()=>l(!s),children:s?(0,$e.jsx)(ZC.A,{}):(0,$e.jsx)(JC.A,{})})]}),(0,$e.jsxs)("div",{className:"new-password-requirements",children:["Password must be at least 8 characters long and contain:",(0,$e.jsxs)("ul",{children:[(0,$e.jsxs)("li",{className:c.minLength?"requirement-met":"requirement-unmet",children:[c.minLength?"\u2713":"\u2717"," At least 8 characters"]}),(0,$e.jsxs)("li",{className:c.hasUpperCase?"requirement-met":"requirement-unmet",children:[c.hasUpperCase?"\u2713":"\u2717"," Uppercase letters"]}),(0,$e.jsxs)("li",{className:c.hasLowerCase?"requirement-met":"requirement-unmet",children:[c.hasLowerCase?"\u2713":"\u2717"," Lowercase letters"]}),(0,$e.jsxs)("li",{className:c.hasNumber?"requirement-met":"requirement-unmet",children:[c.hasNumber?"\u2713":"\u2717"," Numbers"]}),(0,$e.jsxs)("li",{className:c.hasSpecialChar?"requirement-met":"requirement-unmet",children:[c.hasSpecialChar?"\u2713":"\u2717"," Special characters (e.g., !, @, #, $, %, &, *)"]})]})]})]})},rS=e=>{let{switchToLogin:t}=e;const[n,r]=(0,a.useState)(""),[o,i]=(0,a.useState)(!1),[s,l]=(0,a.useState)(""),[c,u]=(0,a.useState)(""),[d,p]=(0,a.useState)(""),[h,f]=(0,a.useState)("");return(0,$e.jsxs)("div",{className:"ForgotPassword",children:[(0,$e.jsx)("h3",{children:"Forgot Password"}),d&&(0,$e.jsx)("p",{className:"success-message",children:d}),h&&(0,$e.jsx)("p",{className:"error-message",children:h}),o?(0,$e.jsxs)("form",{onSubmit:async e=>{e.preventDefault();try{await tS({username:n,confirmationCode:s,newPassword:c}),p("Password reset successful. You can now log in."),f(""),setTimeout(t,2e3)}catch(r){console.error(r),f("Failed to reset password. Please check the code.")}},children:[(0,$e.jsx)("input",{type:"text",placeholder:"Verification Code",required:!0,value:s,onChange:e=>l(e.target.value)}),(0,$e.jsx)(nS,{name:"newPassword",placeholder:"New Password",value:c,onChange:e=>u(e.target.value)}),(0,$e.jsx)("button",{type:"submit",children:"Reset Password"})]}):(0,$e.jsxs)("form",{onSubmit:async e=>{e.preventDefault();try{await eS({username:n}),i(!0),p("Verification code sent to your email."),f("")}catch(t){console.error(t),f("Failed to send code. Please try again.")}},children:[(0,$e.jsx)("input",{type:"email",placeholder:"Enter your email",required:!0,value:n,onChange:e=>r(e.target.value)}),(0,$e.jsx)("button",{type:"submit",children:"Send Verification Code"})]})]})},oS=e=>{let{switchToSignup:t,setShowOtpInput:n,setEmail:r}=e;const[o,i]=(0,a.useState)(""),[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),[d,p]=(0,a.useState)(!1),[h,f]=(0,a.useState)(""),[m,g]=(0,a.useState)(!1),A=te(),v=$();(0,a.useEffect)((()=>{(async()=>{try{await Hb();const e=new URLSearchParams(v.search).get("redirect"),t=e?decodeURIComponent(e):null;A(t||"/")}catch(e){console.log("User is not authenticated")}})()}),[v,A]);return(0,$e.jsxs)("div",{className:"Login",children:[(0,$e.jsx)("h2",{children:"Sign in"}),o&&(0,$e.jsx)("div",{className:"error-message",children:o}),c?(0,$e.jsx)(rS,{switchToLogin:()=>u(!1)}):d?(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("p",{children:"Please set a new password to continue."}),(0,$e.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),i("");const t=e.target.newPassword.value;try{if("DONE"===(await KC({challengeResponse:t})).nextStep.signInStep){const e=new URLSearchParams(v.search).get("redirect"),t=e?decodeURIComponent(e):null;window.location.href=t||"/"}}catch(n){console.error("Error confirming new password:",n),"NotAuthorizedException"===n.name?i("Password does not meet requirements or is invalid"):i("An error occurred while setting your new password. Please try again.")}},children:[(0,$e.jsx)(nS,{name:"newPassword",placeholder:"New Password"}),(0,$e.jsx)("button",{type:"submit",children:"SET NEW PASSWORD"})]}),(0,$e.jsx)("p",{children:(0,$e.jsx)("button",{onClick:()=>{p(!1),f(""),i("")},children:"Back to Login"})})]}):(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),i("");const t=e.target.userEmail.value;try{const o=await QC({username:t,password:e.target.userPassword.value});if("CONFIRM_SIGN_UP"===o.nextStep.signInStep)r(t),n(!0),await XC({username:t});else if("CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED"===o.nextStep.signInStep)f(t),p(!0);else if("DONE"===o.nextStep.signInStep){const e=new URLSearchParams(v.search).get("redirect"),t=e?decodeURIComponent(e):null;window.location.href=t||"/"}}catch(o){console.error("Error signing in:",o),"NotAuthorizedException"===o.name?i("Incorrect username or password"):"UserNotFoundException"===o.name?i("User does not exist"):"UserNotConfirmedException"===o.name?i("User is not confirmed"):i("An error occurred during sign in. Please try again.")}},children:[(0,$e.jsx)("input",{name:"userEmail",type:"email",placeholder:"Email",required:!0}),(0,$e.jsxs)("div",{className:"password-container",children:[(0,$e.jsx)("input",{name:"userPassword",type:s?"text":"password",placeholder:"Password",required:!0}),(0,$e.jsx)("button",{type:"button",className:"password-toggle",onClick:()=>l(!s),children:s?(0,$e.jsx)(ZC.A,{}):(0,$e.jsx)(JC.A,{})})]}),(0,$e.jsx)("button",{type:"submit",children:"LOG IN"})]}),(0,$e.jsx)("p",{children:(0,$e.jsx)("button",{onClick:()=>u(!0),children:"Forgot Password?"})}),(0,$e.jsxs)("p",{children:["Don't have an account?"," ",(0,$e.jsx)("button",{onClick:t,children:"SIGN UP"})]})]})]})};function aS(e){return Object.entries(e).map((e=>{let[t,n]=e;return{Name:t,Value:n}}))}const iS=18e4;function sS(e,t){let n;return r=>{n||e(...r),clearTimeout(n),n=setTimeout((()=>{n=void 0}),t)}}const lS=sS((function(e,t,n){const r=Date.now(),o=setInterval((async()=>
2{if(Date.now()-r>iS)clearInterval(o),n(new kb({name:Pb,message:"The account was not confirmed on time.",recoverySuggestion:"Try to verify your account by clicking the link sent your email or phone and then login manually."})),GC();else try{const n=await QC(e);"CONFIRM_SIGN_UP"!==n.nextStep.signInStep&&(t(n),clearInterval(o),GC())}catch(a){clearInterval(o),n(a),GC()}}),5e3)}),300),cS=sS((async function(e,t,n){try{var r;t("USER_AUTH"===(null===e||void 0===e||null===(r=e.options)||void 0===r?void 0:r.authFlowType)?await YC(e):await QC(e)),GC()}catch(o){n(o),GC()}}),300);function uS(e){return async()=>new Promise(((t,n)=>{cS([e,t,n])}))}const dS=uS,pS=e=>$x(Aw,ew("SignUp"),(async e=>{if(e.statusCode>=300){const t=await aw(e);if(lw(t),t.name===wx.InvalidParameterException&&/'password'/.test(t.message)&&/Member must not be null/.test(t.message)){const e=_x.EmptySignUpPassword,{message:t,recoverySuggestion:n}=Nx[e];throw new kb({name:e,message:t,recoverySuggestion:n})}throw new kb({name:t.name,message:t.message})}return iw(e)}),{..._w,...e});async function hS(e){var t,n,r;const{username:o,password:a,options:i}=e,s=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito,l=null!==(n=null===s||void 0===s?void 0:s.signUpVerificationMethod)&&void 0!==n?n:"code",{clientMetadata:c,validationData:u,autoSignIn:d}=null!==(r=e.options)&&void 0!==r?r:{};Eb(s),Rx(!!o,_x.EmptySignUpUsername);const p="boolean"!==typeof d?d:void 0,h={username:o,options:p};"CUSTOM_WITHOUT_SRP"!==(null===p||void 0===p?void 0:p.authFlowType)&&(h.password=a);const{userPoolId:f,userPoolClientId:m,userPoolEndpoint:g}=s,A=pS({endpointResolver:Mw({endpointOverride:g})}),v={Username:o,Password:void 0,UserAttributes:(null===i||void 0===i?void 0:i.userAttributes)&&aS(null===i||void 0===i?void 0:i.userAttributes),ClientMetadata:c,ValidationData:u&&aS(u),ClientId:m,UserContextData:Yw({username:o,userPoolId:f,userPoolClientId:m})};a&&(v.Password=a);const{UserSub:y,CodeDeliveryDetails:b,UserConfirmed:x,Session:w}=await A({region:jw(f),userAgentValue:Zx(Qb.SignUp)},v);(p||!0===d)&&(zC.dispatch({type:"START"}),zC.dispatch({type:"SET_USERNAME",value:o}),zC.dispatch({type:"SET_SESSION",value:w}));const E={destination:null===b||void 0===b?void 0:b.Destination,deliveryMedium:null===b||void 0===b?void 0:b.DeliveryMedium,attributeName:null===b||void 0===b?void 0:b.AttributeName},C=!!x,S=zC.getState().active;if(C)return S?(VC(dS(h)),{isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"},userId:y}):{isSignUpComplete:!0,nextStep:{signUpStep:"DONE"},userId:y};if(S){if("link"===l)return VC(function(e){return async()=>new Promise(((t,n)=>{lS([e,t,n])}))}(h)),{isSignUpComplete:!1,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN",codeDeliveryDetails:E},userId:y};!function(e){const t=Ml.listen("auth-internal",(async n=>{let{payload:r}=n;if("confirmSignUp"===r.event){const n=r.data;null!==n&&void 0!==n&&n.isSignUpComplete&&(Ml.dispatch("auth-internal",{event:"autoSignIn"}),VC(uS(e)),t())}})),n=setTimeout((()=>{t(),clearTimeout(n),GC()}),iS)}(h)}return{isSignUpComplete:!1,nextStep:{signUpStep:"CONFIRM_SIGN_UP",codeDeliveryDetails:E},userId:y}}async function fS(e){var t;const{username:n,confirmationCode:r,options:o}=e,a=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(a);const{userPoolId:i,userPoolClientId:s,userPoolEndpoint:l}=a,c=null===o||void 0===o?void 0:o.clientMetadata;Rx(!!n,_x.EmptyConfirmSignUpUsername),Rx(!!r,_x.EmptyConfirmSignUpCode);const u=Yw({username:n,userPoolId:i,userPoolClientId:s}),d=(e=>$x(Aw,ew("ConfirmSignUp"),cw(),{..._w,...e}))({endpointResolver:Mw({endpointOverride:l})}),{Session:p}=await d({region:jw(a.userPoolId),userAgentValue:Zx(Qb.ConfirmSignUp)},{Username:n,ConfirmationCode:r,ClientMetadata:c,ForceAliasCreation:null===o||void 0===o?void 0:o.forceAliasCreation,ClientId:a.userPoolClientId,UserContextData:u});return new Promise(((e,t)=>{try{const t={isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}},r=zC.getState();if(!r.active||r.username!==n)return e(t),void GC();zC.dispatch({type:"SET_SESSION",value:p});const o=Ml.listen("auth-internal",(t=>{let{payload:n}=t;if("autoSignIn"===n.event)e({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),o()}));Ml.dispatch("auth-internal",{event:"confirmSignUp",data:t})}catch(r){t(r)}}))}const mS=e=>
2{let{switchToLogin:t,setShowOtpInput:n,showOtpInput:r,email:o,setEmail:i}=e;const[s,l]=(0,a.useState)(""),[c,u]=(0,a.useState)(""),[d,p]=(0,a.useState)(!1),h=te(),f=$();return(0,$e.jsxs)("div",{className:"Signup",children:[(0,$e.jsx)("h2",{children:"Sign up"}),s&&(0,$e.jsx)("div",{className:"error-message",children:s}),r?(0,$e.jsxs)("form",{onSubmit:async e=>{e.preventDefault();const t=e.target.otp.value;try{const{nextStep:e}=await fS({username:o,confirmationCode:t});if("DONE"===e.signUpStep)try{await(async(e,t)=>{try{if(!(await fetch("".concat("https://api.medrpt.ai","/api/user/signup"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,userId:t})})).ok)throw new Error("Network response was not ok")}catch(s){throw console.error("Error sending token:",s),s}})(o,c),i(""),u("");const e=new URLSearchParams(f.search).get("redirect");h(e||"/"),setTimeout((()=>{n(!1)}),100)}catch(r){console.error("Error during send token",r)}}catch(s){console.error("Error confirming signup:",s),"CodeMismatchException"===s.name?l("Invalid verification code. Please try again."):l("Error during verification. Please contact support.")}},children:[(0,$e.jsxs)("p",{children:["Please enter the verification code sent to ",o]}),(0,$e.jsx)("input",{name:"otp",type:"text",placeholder:"Enter verification code",required:!0}),(0,$e.jsx)("button",{type:"submit",children:"Verify Email"})]}):(0,$e.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),l("");try{const t=await hS({username:e.target.userSignUpEmail.value,password:e.target.userPassword.value});u(t.userId),i(e.target.userSignUpEmail.value),e.target.reset(),"CONFIRM_SIGN_UP"===t.nextStep.signUpStep&&n(!0)}catch(s){console.error("Error during sign up",s),"UsernameExistsException"===s.name?l("An account with this email already exists. Please sign in instead."):"InvalidPasswordException"===s.name?l("Password does not meet requirements."):l("An error occurred during sign up. Please try again.")}},children:[(0,$e.jsx)("input",{name:"userSignUpEmail",type:"email",placeholder:"Email",required:!0}),(0,$e.jsx)(nS,{name:"userPassword",placeholder:"Password"}),(0,$e.jsx)("button",{type:"submit",children:"SIGN UP"}),(0,$e.jsxs)("p",{children:["Already have an account?"," ",(0,$e.jsx)("button",{onClick:t,children:"LOG IN"})]})]})]})};const gS=function(){const e=te(),t=$();return(0,$e.jsx)("div",{className:"thankyou-container",children:(0,$e.jsxs)("div",{className:"thankyou-content",children:[(0,$e.jsx)("h1",{className:"thankyou-title",children:"Thank you for Subscribing!"}),(0,$e.jsx)("p",{className:"thankyou-message",children:"Welcome to premium! You now have access to unlimited searches."}),(0,$e.jsx)("button",{className:"explore-button",onClick:()=>{const n=new URLSearchParams(t.search).get("redirect"),r=n?decodeURIComponent(n):null;e(r||"/")},children:"Explore Unlimited Searches"})]})})},AS=(0,Qn.A)((0,$e.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function vS(e){return(0,jt.Ay)("MuiChip",e)}const yS=(0,Mt.A)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),bS=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xS=(0,nt.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{["& .".concat(yS.avatar)]:t.avatar},{["& .".concat(yS.avatar)]:t["avatar".concat((0,pt.A)(s))]},{["& .".concat(yS.avatar)]:t["avatarColor".concat((0,pt.A)(r))]},{["& .".concat(yS.icon)]:t.icon},{["& .".concat(yS.icon)]:t["icon".concat((0,pt.A)(s))]},{["& .".concat(yS.icon)]:t["iconColor".concat((0,pt.A)(o))]},{["& .".concat(yS.deleteIcon)]:t.deleteIcon},{["& .".concat(yS.deleteIcon)]:t["deleteIcon".concat((0,pt.A)(s))]},{["& .".concat(yS.deleteIcon)]:t["deleteIconColor".concat((0,pt.A)(r))]},{["& .".concat(yS.deleteIcon)]:t["deleteIcon".concat((0,pt.A)(l),"Color").concat((0,pt.A)(r))]},t.root,t["size".concat((0,pt.A)(s))],t["color".concat((0,pt.A)(r))],a&&t.clickable,a&&"default"!==r&&t["clickableColor".concat((0,pt.A)(r),")")],i&&t.deletable,i&&"default"!==r&&t["deletableColor".concat((0,pt.A)(r))],t[l],t["".concat(l).concat((0,pt.A)(r))]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,Me.A)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(yS.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(yS.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:r,fontSize:t.typography.pxToRem(12)},["& .".concat(yS.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(yS.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.c
2ontrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(yS.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(yS.icon)]:(0,Me.A)({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&(0,Me.A)({color:t.vars?t.vars.palette.Chip.defaultIconColor:r},"default"!==n.color&&{color:"inherit"})),["& .".concat(yS.deleteIcon)]:(0,Me.A)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,Lt.X4)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,Lt.X4)(t.palette.text.primary,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:t.vars?"rgba(".concat(t.vars.palette[n.color].contrastTextChannel," / 0.7)"):(0,Lt.X4)(t.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].contrastText}})},"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},n.onDelete&&{["&.".concat(yS.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Lt.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},n.onDelete&&"default"!==n.color&&{["&.".concat(yS.focusVisible)]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},n.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Lt.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(yS.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Lt.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},n.clickable&&"default"!==n.color&&{["&:hover, &.".concat(yS.focusVisible)]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},"outlined"===n.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(yS.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(yS.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(yS.avatar)]:{marginLeft:4},["& .".concat(yS.avatarSmall)]:{marginLeft:2},["& .".concat(yS.icon)]:{marginLeft:4},["& .".concat(yS.iconSmall)]:{marginLeft:2},["& .".concat(yS.deleteIcon)]:{marginRight:5},["& .".concat(yS.deleteIconSmall)]:{marginRight:3}},"outlined"===n.variant&&"default"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):(0,Lt.X4)(t.palette[n.color].main,.7)),["&.".concat(yS.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity)},["&.".concat(yS.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,Lt.X4)(t.palette[n.color].main,t.palette.action.focusOpacity)},["& .".concat(yS.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):(0,Lt.X4)(t.palette[n.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].main}}})})),wS=(0,nt.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t["label".concat((0,pt.A)(r))]]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})}));function ES(e){return"Backspace"===e.key||"Delete"===e.key}const CS=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:h,onDelete:f,onKeyDown:m,onKeyUp:g,size:A="medium",variant:v="filled",tabIndex:y,skipFocusWhenDisabled:b=!1}=n,x=(0,Oe.A)(n,bS),w=a.useRef(null),E=(0,kt.A)(w,t),C=e=>{e.stopPropagation(),f&&f(e)},S=!(!1===i||!h)||i,T=S||f?zn:l||"div",k=(0,Me.A)({},n,{component:T,disabled:u,size:A,color:s,iconColor:a.isValidElement(d)&&d.props.color||s,onDelete:!!f,clickable:S,variant:v}),_=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled","size".concat((0,pt.A)(r)),"color".concat((0,pt.A)(o)),s&&"clickable",s&&"clickableColor".concat((0,pt.A)(o)),i&&"deletable",i&&"deletableColor".concat((0,pt.A)(o)),"".concat(l).concat((0,pt.A)(o))],label:["label","label".concat((0,pt.A)(r))],avatar:["avatar","avatar".concat((0,pt.A)(r)),"avatarColor".concat((0,pt.A)(o))],icon:["icon","icon".concat((0,pt.A)(r)),"iconColor".concat((0,pt.A)(a))],deleteIcon:["deleteIcon","deleteIcon".concat((0,pt.A)(r)),"deleteIconColor".concat((0,pt.A)(o)),"deleteIcon".concat((0,pt.A)(l),"Color").concat((0,pt.A)(o))]};return(0,je.A)(c,vS,t)}
2)(k),N=T===zn?(0,Me.A)({component:l||"div",focusVisibleClassName:_.focusVisible},f&&{disableRipple:!0}):{};let I=null;f&&(I=c&&a.isValidElement(c)?a.cloneElement(c,{className:(0,ze.A)(c.props.className,_.deleteIcon),onClick:C}):(0,$e.jsx)(AS,{className:(0,ze.A)(_.deleteIcon),onClick:C}));let P=null;r&&a.isValidElement(r)&&(P=a.cloneElement(r,{className:(0,ze.A)(_.avatar,r.props.className)}));let R=null;return d&&a.isValidElement(d)&&(R=a.cloneElement(d,{className:(0,ze.A)(_.icon,d.props.className)})),(0,$e.jsxs)(xS,(0,Me.A)({as:T,className:(0,ze.A)(_.root,o),disabled:!(!S||!u)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&ES(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&ES(e)?f(e):"Escape"===e.key&&w.current&&w.current.blur()),g&&g(e)},ref:E,tabIndex:b&&u?-1:y,ownerState:k},N,x,{children:[P||R,(0,$e.jsx)(wS,{className:(0,ze.A)(_.label),ownerState:k,children:p}),I]}))})),SS=CS;var TS=n(2954),kS=n(2374);function _S(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function NS(e){return e instanceof _S(e).Element||e instanceof Element}function IS(e){return e instanceof _S(e).HTMLElement||e instanceof HTMLElement}function PS(e){return"undefined"!==typeof ShadowRoot&&(e instanceof _S(e).ShadowRoot||e instanceof ShadowRoot)}var RS=Math.max,DS=Math.min,LS=Math.round;function OS(){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 MS(){return!/^((?!chrome|android).)*safari/i.test(OS())}function jS(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&IS(e)&&(o=e.offsetWidth>0&&LS(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&LS(r.height)/e.offsetHeight||1);var i=(NS(e)?_S(e):window).visualViewport,s=!MS()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,c=(r.top+(s&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function FS(e){var t=_S(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function BS(e){return e?(e.nodeName||"").toLowerCase():null}function US(e){return((NS(e)?e.ownerDocument:e.document)||window.document).documentElement}function zS(e){return jS(US(e)).left+FS(e).scrollLeft}function HS(e){return _S(e).getComputedStyle(e)}function WS(e){var t=HS(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function VS(e,t,n){void 0===n&&(n=!1);var r=IS(t),o=IS(t)&&function(e){var t=e.getBoundingClientRect(),n=LS(t.width)/e.offsetWidth||1,r=LS(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=US(t),i=jS(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==BS(t)||WS(a))&&(s=function(e){return e!==_S(e)&&IS(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:FS(e);var t}(t)),IS(t)?((l=jS(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=zS(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function GS(e){var t=jS(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qS(e){return"html"===BS(e)?e:e.assignedSlot||e.parentNode||(PS(e)?e.host:null)||US(e)}function YS(e){return["html","body","#document"].indexOf(BS(e))>=0?e.ownerDocument.body:IS(e)&&WS(e)?e:YS(qS(e))}function QS(e,t){var n;void 0===t&&(t=[]);var r=YS(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=_S(r),i=o?[a].concat(a.visualViewport||[],WS(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(QS(qS(i)))}function XS(e){return["table","td","th"].indexOf(BS(e))>=0}function KS(e){return IS(e)&&"fixed"!==HS(e).position?e.offsetParent:null}function JS(e){for(var t=_S(e),n=KS(e);
vendor: 4,906 bytes, line 2
2n&&XS(n)&&"static"===HS(n).position;)n=KS(n);return n&&("html"===BS(n)||"body"===BS(n)&&"static"===HS(n).position)?t:n||function(e){var t=/firefox/i.test(OS());if(/Trident/i.test(OS())&&IS(e)&&"fixed"===HS(e).position)return null;var n=qS(e);for(PS(n)&&(n=n.host);IS(n)&&["html","body"].indexOf(BS(n))<0;){var r=HS(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var ZS="top",$S="bottom",eT="right",tT="left",nT="auto",rT=[ZS,$S,eT,tT],oT="start",aT="end",iT="clippingParents",sT="viewport",lT="popper",cT="reference",uT=rT.reduce((function(e,t){return e.concat([t+"-"+oT,t+"-"+aT])}),[]),dT=[].concat(rT,[nT]).reduce((function(e,t){return e.concat([t,t+"-"+oT,t+"-"+aT])}),[]),pT=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function hT(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function fT(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var mT={placement:"bottom",modifiers:[],strategy:"absolute"};function gT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function AT(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?mT:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},mT,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,l={state:o,setOptions:function(n){var s="function"===typeof n?n(o.options):n;c(),o.options=Object.assign({},a,o.options,s),o.scrollParents={reference:NS(e)?QS(e):e.contextElement?QS(e.contextElement):[],popper:QS(t)};var u=function(e){var t=hT(e);return pT.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"===typeof a){var s=a({state:o,name:t,instance:l,options:r}),c=function(){};i.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(gT(t,n)){o.rects={reference:VS(t,JS(n),"fixed"===o.options.strategy),popper:GS(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var a=o.orderedModifiers[r],i=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"===typeof i&&(o=i({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:fT((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!gT(e,t))return l;function c(){i.forEach((function(e){return e()})),i=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var vT={passive:!0};function yT(e){return e.split("-")[0]}function bT(e){return e.split("-")[1]}function xT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wT(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?yT(o):null,i=o?bT(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case ZS:t={x:s,y:n.y-r.height};break;case $S:t={x:s,y:n.y+n.height};break;case eT:t={x:n.x+n.width,y:l};break;case tT:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?xT(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case oT:t[c]=t[c]-(n[u]/2-r[u]/2);break;case aT:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ET={top:"auto",right:"auto",bottom:"auto",left:"auto"};function CT(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,h=void 0===p?0:p,f=i.y,m=void 0===f?0:f,g="function"===typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var A=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=tT,b=ZS,x=window;if(c){var w=JS(n),E="clientHeight",C="clientWidth";if(w===_S(n)&&"static"!==HS(w=US(n)).position&&"absolute"===s&&(E="scrollHeight",C="scrollWidth"),o===ZS||(o===tT||o===eT)&&a===aT)b=$S,m-=(d&&w===x&&x.visualVie
vendor: 7,943 bytes, line 2
2wport?x.visualViewport.height:w[E])-r.height,m*=l?1:-1;if(o===tT||(o===ZS||o===$S)&&a===aT)y=eT,h-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[C])-r.width,h*=l?1:-1}var S,T=Object.assign({position:s},c&&ET),k=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:LS(n*o)/o||0,y:LS(r*o)/o||0}}({x:h,y:m},_S(n)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},T,((S={})[b]=v?"0":"",S[y]=A?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},T,((t={})[b]=v?m+"px":"",t[y]=A?h+"px":"",t.transform="",t))}const ST={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];IS(o)&&BS(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});IS(r)&&BS(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};const TT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=dT.reduce((function(e,n){return e[n]=function(e,t,n){var r=yT(e),o=[tT,ZS].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[tT,eT].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var kT={left:"right",right:"left",bottom:"top",top:"bottom"};function _T(e){return e.replace(/left|right|bottom|top/g,(function(e){return kT[e]}))}var NT={start:"end",end:"start"};function IT(e){return e.replace(/start|end/g,(function(e){return NT[e]}))}function PT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&PS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function RT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function DT(e,t,n){return t===sT?RT(function(e,t){var n=_S(e),r=US(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=MS();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+zS(e),y:l}}(e,n)):NS(t)?function(e,t){var n=jS(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):RT(function(e){var t,n=US(e),r=FS(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=RS(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=RS(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+zS(e),l=-r.scrollTop;return"rtl"===HS(o||n).direction&&(s+=RS(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(US(e)))}function LT(e,t,n,r){var o="clippingParents"===t?function(e){var t=QS(qS(e)),n=["absolute","fixed"].indexOf(HS(e).position)>=0&&IS(e)?JS(e):e;return NS(n)?t.filter((function(e){return NS(e)&&PT(e,n)&&"body"!==BS(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=DT(e,n,r);return t.top=RS(o.top,t.top),t.right=DS(o.right,t.right),t.bottom=DS(o.bottom,t.bottom),t.left=RS(o.left,t.left),t}),DT(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function OT(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function MT(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function jT(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?iT:s,c=n.rootBoundary,u=void 0===c?sT:c,d=n.elementContext,p=void 0===d?lT:d,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,A=OT("number"!==typeof g?g:MT(g,rT)),v=p===lT?cT:lT,y=e.rects.popper,b=e.elements[f?v:p],x=LT(NS(b)?b:b.contextElement||US(e.elements.popper),l,u,i),w=jS(e.elements.reference),E=wT({reference:w,element:y,strategy:"absolute",placement:o}),C=RT(Object.assign({},y,E)),S=p===lT?C:w,T={top:x.top-S.top+A.top,bottom:S.bottom-x.bottom+A.bottom,left:x.left-S.left+A.left,right:S.right-x.right+A.right},k=e.modifiersData.offset;if(p===lT&&k){var _=k[o];Object.keys(T).forEach((function(e){var t=[eT,$S].indexOf(e)>=0?1:-1,n=[ZS,$S].indexOf(e)>=0?"y":"x";T[e]+=_[n]*t}))}return T}const FT={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,A=yT(g),v=l||(A===g||!f?[_T(g)]:function(e){if(yT(e)===nT)return[];var t=_T(e);return[IT(e),t,IT(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(yT(n)===nT?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?dT:l,u=bT(r),d=u?s?uT:uT.filter((function(e){return bT(e)===u})):rT,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=jT(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[yT(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),b=t.rects.reference,x=t.rects.popper,w=new Map,E=!0,C=y[0],S=0;S<y.length;S++){var T=y[S],k=yT(T),_=bT(T)===oT,N=[ZS,$S].indexOf(k)>=0,I=N?"width":"height",P=jT(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=N?_?eT:tT:_?$S:ZS;b[I]>x[I]&&(R=_T(R));var D=_T(R),L=[];if(a&&L.push(P[k]<=0),s&&L.push(P[R]<=0,P[D]<=0),L.every((function(e){return e}))){C=T,E=!1;break}w.set(T,L)}if(E)for(var O=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},M=f?3:1;M>0;M--){if("break"===O(M))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function BT(e,t,n){return RS(e,DS(t,n))}const UT={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=jT(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),A=yT(t.placement),v=bT(t.placement),y=!v,b=xT(A),x="x"===b?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,S="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"===typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(w){if(a){var N,I="y"===b?ZS:tT,P="y"===b?$S:eT,R="y"===b?"height":"width",D=w[b],L=D+g[I],O=D-g[P],M=h?-C[R]/2:0,j=v===oT?E[R]:C[R],F=v===oT?-C[R]:-E[R],B=t.elements.arrow,U=h&&B?GS(B):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0}
vendor: 4,255 bytes, line 2
2,H=z[I],W=z[P],V=BT(0,E[R],U[R]),G=y?E[R]/2-M-V-H-T.mainAxis:j-V-H-T.mainAxis,q=y?-E[R]/2+M+V+W+T.mainAxis:F+V+W+T.mainAxis,Y=t.elements.arrow&&JS(t.elements.arrow),Q=Y?"y"===b?Y.clientTop||0:Y.clientLeft||0:0,X=null!=(N=null==k?void 0:k[b])?N:0,K=D+q-X,J=BT(h?DS(L,D+G-X-Q):L,D,h?RS(O,K):O);w[b]=J,_[b]=J-D}if(s){var Z,$="x"===b?ZS:tT,ee="x"===b?$S:eT,te=w[x],ne="y"===x?"height":"width",re=te+g[$],oe=te-g[ee],ae=-1!==[ZS,tT].indexOf(A),ie=null!=(Z=null==k?void 0:k[x])?Z:0,se=ae?re:te-E[ne]-C[ne]-ie+T.altAxis,le=ae?te+E[ne]+C[ne]-ie-T.altAxis:oe,ce=h&&ae?function(e,t,n){var r=BT(e,t,n);return r>n?n:r}(se,te,le):BT(h?se:re,te,h?le:oe);w[x]=ce,_[x]=ce-te}t.modifiersData[r]=_}},requiresIfExists:["offset"]};const zT={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=yT(n.placement),l=xT(s),c=[tT,eT].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return OT("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:MT(e,rT))}(o.padding,n),d=GS(a),p="y"===l?ZS:tT,h="y"===l?$S:eT,f=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],g=JS(a),A=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,y=u[p],b=A-d[c]-u[h],x=A/2-d[c]/2+v,w=BT(y,x,b),E=l;n.modifiersData[r]=((t={})[E]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&PT(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function HT(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function WT(e){return[ZS,eT,$S,tT].some((function(t){return e[t]>=0}))}var VT=AT({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=_S(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,vT)})),s&&l.addEventListener("resize",n.update,vT),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,vT)})),s&&l.removeEventListener("resize",n.update,vT)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=wT({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,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:yT(t.placement),variation:bT(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,CT(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,CT(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ST,TT,FT,UT,zT,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=jT(t,{elementContext:"reference"}),s=jT(t,{altBoundary:!0}),l=HT(i,r),c=HT(s,o,a),u=WT(l),d=WT(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function GT(e){return(0,jt.Ay)("MuiPopper",e)}(0,Mt.A)("MuiPopper",["root"]);const qT=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","
2slots","TransitionProps","ownerState"],YT=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function QT(e){return"function"===typeof e?e():e}function XT(e){return void 0!==e.nodeType}const KT={},JT=a.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:f={},TransitionProps:m}=e,g=(0,Oe.A)(e,qT),A=a.useRef(null),v=(0,Fe.A)(A,t),y=a.useRef(null),b=(0,Fe.A)(y,p),x=a.useRef(b);(0,so.A)((()=>{x.current=b}),[b]),a.useImperativeHandle(p,(()=>y.current),[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,i),[E,C]=a.useState(w),[S,T]=a.useState(QT(r));a.useEffect((()=>{y.current&&y.current.forceUpdate()})),a.useEffect((()=>{r&&T(QT(r))}),[r]),(0,so.A)((()=>{if(!S||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;(e=>{C(e.placement)})(t)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=VT(S,A.current,(0,Me.A)({placement:w},d,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[S,s,l,c,d,w]);const k={placement:E};null!==m&&(k.TransitionProps=m);const _=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"]},GT,t)})(e),N=null!=(n=f.root)?n:"div",I=Ye({elementType:N,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:_.root});return(0,$e.jsx)(N,(0,Me.A)({},I,{children:"function"===typeof o?o(k):o}))})),ZT=a.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=KT,popperRef:h,style:f,transition:m=!1,slotProps:g={},slots:A={}}=e,v=(0,Oe.A)(e,YT),[y,b]=a.useState(!0);if(!l&&!u&&(!m||y))return null;let x;if(o)x=o;else if(n){const e=QT(n);x=e&&XT(e)?(0,Je.A)(e).body:(0,Je.A)(null).body}
2const w=u||!l||m&&!y?void 0:"none",E=m?{in:u,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return(0,$e.jsx)(ri,{disablePortal:s,container:x,children:(0,$e.jsx)(JT,(0,Me.A)({anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:t,open:m?!y:u,placement:d,popperOptions:p,popperRef:h,slotProps:g,slots:A},v,{style:(0,Me.A)({position:"fixed",top:0,left:0,display:w},f),TransitionProps:E,children:r}))})})),$T=ZT,ek=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],tk=(0,nt.Ay)($T,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nk=a.forwardRef((function(e,t){var n;const r=(0,kS.A)(),o=(0,dt.b)({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:A,slots:v,slotProps:y}=o,b=(0,Oe.A)(o,ek),x=null!=(n=null==v?void 0:v.root)?n:null==s?void 0:s.Root,w=(0,Me.A)({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:A},b);return(0,$e.jsx)(tk,(0,Me.A)({as:i,direction:null==r?void 0:r.direction,slots:{root:x},slotProps:null!=y?y:l},w,{ref:t}))})),rk=nk;var ok=n(5879);function ak(e){return(0,jt.Ay)("MuiTooltip",e)}const ik=(0,Mt.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),sk=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const lk=(0,nt.Ay)(rk,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:n,open:r}=e;return(0,Me.A)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(ik.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(ik.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(ik.arrow)]:(0,Me.A)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(ik.arrow)]:(0,Me.A)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),ck=(0,nt.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,pt.A)(n.placement.split("-")[0]))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,Lt.X4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat((r=16/14,Math.round(1e5*r)/1e5),"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(ik.popper,'[data-popper-placement*="left"] &')]:(0,Me.A)({transformOrigin:"right center"},n.isRtl?(0,Me.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,Me.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[".".concat(ik.popper,'[data-popper-placement*="right"] &')]:(0,Me.A)({transformOrigin:"left center"},n.isRtl?(0,Me.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,Me.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[".".concat(ik.popper,'[data-popper-placement*="top"] &')]:(0,Me.A)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[".".concat(ik.popper,'[data-popper-placement*="bottom"] &')]:(0,Me.A)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})});var r})),uk=(0,nt.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,Lt.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let dk=!1;const pk=new Qe.E;let hk={x:0,y:0};function fk(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t&&t(n,...o),e(n,...o)}}const mk=a.forwardRef((function(e,t){var n,r,o,i,s,l,c,u,d,p,h,f,m,g,A,v,y,b,x;const w=(0,dt.b)({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:C,components:S={},componentsProps:T={},describeChild:k=!1,disableFocusListener:_=!1,disableHoverListener:N=!1,disableInteractive:I=!1,disableTouchListener:P=!1,enterDelay:R=100,enterNextDelay:D=0,enterTouchDelay:L=700,followCursor:O=!1,id:M,leaveDelay:j=0,leaveTouchDelay:F=1500,onClose:B,onOpen:U,open:z,placement:H="bottom",PopperComponent:W,PopperProps:V={},slotProps:G={},slots:q={},title:Y,TransitionComponent:Q=Dt,TransitionProps:X}=w,K=(0,Oe.A)(w,sk),J=a.isValidElement(C)?C:(0,$e.jsx)("span",{children:C}),Z=ut(),$=Da(),[ee,te]=a.useState(),[ne,re]=a.useState(null),oe=a.useRef(!1),ae=I||O,ie=(0,Qe.A)(),se=(0,Qe.A)(),le=(0,Qe.A)(),ce=(0,Qe.A)(),[ue,de]=(0,os.A)({controlled:z,default:!1,name:"Tooltip",state:"open"});let pe=ue;const he=(0,ok.A)(M),fe=a.useRef(),me=(0,ln.A)((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),ce.clear()}
2));a.useEffect((()=>me),[me]);const ge=e=>{pk.clear(),dk=!0,de(!0),U&&!pe&&U(e)},Ae=(0,ln.A)((e=>{pk.start(800+j,(()=>{dk=!1})),de(!1),B&&pe&&B(e),ie.start(Z.transitions.duration.shortest,(()=>{oe.current=!1}))})),ve=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),R||dk&&D?se.start(dk?D:R,(()=>{ge(e)})):ge(e))},ye=e=>{se.clear(),le.start(j,(()=>{Ae(e)}))},{isFocusVisibleRef:be,onBlur:xe,onFocus:we,ref:Ee}=(0,cn.A)(),[,Ce]=a.useState(!1),Se=e=>{xe(e),!1===be.current&&(Ce(!1),ye(e))},Te=e=>{ee||te(e.currentTarget),we(e),!0===be.current&&(Ce(!0),ve(e))},ke=e=>{oe.current=!0;const t=J.props;t.onTouchStart&&t.onTouchStart(e)},_e=e=>{ke(e),le.clear(),ie.clear(),me(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(L,(()=>{document.body.style.WebkitUserSelect=fe.current,ve(e)}))},Ne=e=>{J.props.onTouchEnd&&J.props.onTouchEnd(e),me(),le.start(F,(()=>{Ae(e)}))};a.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Ae(e)}}),[Ae,pe]);const Ie=(0,kt.A)(Ze(J),Ee,te,t);Y||0===Y||(pe=!1);const Pe=a.useRef(),Re={},De="string"===typeof Y;k?(Re.title=pe||!De||N?null:Y,Re["aria-describedby"]=pe?he:null):(Re["aria-label"]=De?Y:null,Re["aria-labelledby"]=pe&&!De?he:null);const Le=(0,Me.A)({},Re,K,J.props,{className:(0,ze.A)(K.className,J.props.className),onTouchStart:ke,ref:Ie},O?{onMouseMove:e=>{const t=J.props;t.onMouseMove&&t.onMouseMove(e),hk={x:e.clientX,y:e.clientY},Pe.current&&Pe.current.update()}}:{});const Fe={};P||(Le.onTouchStart=_e,Le.onTouchEnd=Ne),N||(Le.onMouseOver=fk(ve,Le.onMouseOver),Le.onMouseLeave=fk(ye,Le.onMouseLeave),ae||(Fe.onMouseOver=ve,Fe.onMouseLeave=ye)),_||(Le.onFocus=fk(Te,Le.onFocus),Le.onBlur=fk(Se,Le.onBlur),ae||(Fe.onFocus=Te,Fe.onBlur=Se));const Be=a.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=V.popperOptions)&&e.modifiers&&(t=t.concat(V.popperOptions.modifiers)),(0,Me.A)({},V.popperOptions,{modifiers:t})}),[ne,V]),He=(0,Me.A)({},w,{isRtl:$,arrow:E,disableInteractive:ae,placement:H,PopperComponentProp:W,touch:oe.current}),We=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,pt.A)(a.split("-")[0]))],arrow:["arrow"]};return(0,je.A)(i,ak,t)})(He),Ve=null!=(n=null!=(r=q.popper)?r:S.Popper)?n:lk,Ge=null!=(o=null!=(i=null!=(s=q.transition)?s:S.Transition)?i:Q)?o:Dt,qe=null!=(l=null!=(c=q.tooltip)?c:S.Tooltip)?l:ck,Ye=null!=(u=null!=(d=q.arrow)?d:S.Arrow)?u:uk,Xe=Ue(Ve,(0,Me.A)({},V,null!=(p=G.popper)?p:T.popper,{className:(0,ze.A)(We.popper,null==V?void 0:V.className,null==(h=null!=(f=G.popper)?f:T.popper)?void 0:h.className)}),He),Ke=Ue(Ge,(0,Me.A)({},X,null!=(m=G.transition)?m:T.transition),He),Je=Ue(qe,(0,Me.A)({},null!=(g=G.tooltip)?g:T.tooltip,{className:(0,ze.A)(We.tooltip,null==(A=null!=(v=G.tooltip)?v:T.tooltip)?void 0:A.className)}),He),et=Ue(Ye,(0,Me.A)({},null!=(y=G.arrow)?y:T.arrow,{className:(0,ze.A)(We.arrow,null==(b=null!=(x=G.arrow)?x:T.arrow)?void 0:b.className)}),He);return(0,$e.jsxs)(a.Fragment,{children:[a.cloneElement(J,Le),(0,$e.jsx)(Ve,(0,Me.A)({as:null!=W?W:rk,placement:H,anchorEl:O?{getBoundingClientRect:()=>({top:hk.y,left:hk.x,right:hk.x,bottom:hk.y,width:0,height:0})}:ee,popperRef:Pe,open:!!ee&&pe,id:he,transition:!0},Fe,Xe,{popperOptions:Be,children:e=>{let{TransitionProps:t}=e;return(0,$e.jsx)(Ge,(0,Me.A)({timeout:Z.transitions.duration.shorter},t,Ke,{children:(0,$e.jsxs)(qe,(0,Me.A)({},Je,{children:[Y,E?(0,$e.jsx)(Ye,(0,Me.A)({},et,{ref:re})):null]}))}))}}))]})})),gk=mk;var Ak=n(9167);const vk=e=>{let{onUpload:t,isAdmin:n}=e;const[r,o]=(0,a.useState)([]),[i,s]=(0,a.useState)(""),[l,c]=(0,a.useState)(!1),u=(0,a.useRef)(),d=e=>{s("");const t=e.filter((e=>"application/pdf"===e.type));t.length===e.length?o((e=>[...e,...t])):s("Only PDF files are allowed.")};return(0,$e.jsxs)("div",{className:"file-upload-container ".concat(l?"drag-over":""),onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),c(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),c(!1)},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{e.preventDefault(),e.stopPropagation(),c(!1);const t=Array.from(e.dataTransfer.files);d(t)},children:[(0,$e.jsx)("input",{type:"file",multiple:!0,accept:"application/pdf",ref:u,onCh
2ange:e=>{const t=Array.from(e.target.files);d(t),u.current.value=""},style:{display:"none"},id:"file-upload-input"}),n&&(0,$e.jsxs)(zt,{elevation:0,className:"file-upload-paper",sx:{display:"flex",alignItems:"center",width:"100%",minHeight:56,boxShadow:"0 1px 4px rgba(0,0,0,0.04)",border:"1px solid #e0e0e0",borderRadius:2,px:2,py:1},children:[(0,$e.jsx)(gk,{title:"Select PDF files",children:(0,$e.jsx)(Yn,{color:"primary",component:"span",onClick:()=>{u.current&&u.current.click()},size:"large",sx:{mr:1},"aria-label":"Select PDF files",children:(0,$e.jsx)(Ak.A,{})})}),(0,$e.jsx)(ro,{direction:"row",spacing:1,useFlexGap:!0,flexWrap:"wrap",className:"file-upload-chip-stack",style:{flex:1,minWidth:0},children:0===r.length?(0,$e.jsx)("div",{className:"file-upload-placeholder",children:"Drag and drop files here"}):r.map(((e,t)=>(0,$e.jsx)(SS,{label:e.name,onDelete:()=>(e=>{o((t=>{const n=t.filter(((t,n)=>n!==e));return n}))})(t),color:"default",variant:"outlined",sx:{mb:.5,maxWidth:180}},t)))}),(0,$e.jsx)(Cl,{variant:"contained",color:"primary",endIcon:(0,$e.jsx)(TS.A,{}),onClick:()=>{0!==r.length?(t&&t(r),o([])):s("No files selected.")},disabled:0===r.length,className:"file-upload-upload-btn",sx:{ml:2,minWidth:120},children:"Upload"})]}),i&&(0,$e.jsx)("div",{className:"file-upload-error",children:i})]})};var yk=n(3044),bk=n(8082);function xk(e){return(0,jt.Ay)("MuiDialog",e)}const wk=(0,Mt.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Ek=a.createContext({}),Ck=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Sk=(0,nt.Ay)(pi,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Tk=(0,nt.Ay)(Ti,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),kk=(0,nt.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll".concat((0,pt.A)(n.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),_k=(0,nt.Ay)(zt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper".concat((0,pt.A)(n.scroll))],t["paperWidth".concat((0,pt.A)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(wk.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit),["&.".concat(wk.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(wk.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),Nk=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiDialog"}),r=ut(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:g,onClick:A,onClose:v,open:y,PaperComponent:b=zt,PaperProps:x={},scroll:w="paper",TransitionComponent:E=si,transitionDuration:C=o,TransitionProps:S}=n,T=(0,Oe.A)(n,Ck),k=(0,Me.A)({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:f,maxWidth:m,scroll:w}),_=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}
2=e,i={root:["root"],container:["container","scroll".concat((0,pt.A)(n))],paper:["paper","paperScroll".concat((0,pt.A)(n)),"paperWidth".concat((0,pt.A)(String(r))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,je.A)(i,xk,t)})(k),N=a.useRef(),I=(0,oo.A)(s),P=a.useMemo((()=>({titleId:I})),[I]);return(0,$e.jsx)(Tk,(0,Me.A)({className:(0,ze.A)(_.root,d),closeAfterTransition:!0,components:{Backdrop:Sk},componentsProps:{backdrop:(0,Me.A)({transitionDuration:C,as:l},c)},disableEscapeKeyDown:p,onClose:v,open:y,ref:t,onClick:e=>{A&&A(e),N.current&&(N.current=null,g&&g(e),v&&v(e,"backdropClick"))},ownerState:k},T,{children:(0,$e.jsx)(E,(0,Me.A)({appear:!0,in:y,timeout:C,role:"presentation"},S,{children:(0,$e.jsx)(kk,{className:(0,ze.A)(_.container),onMouseDown:e=>{N.current=e.target===e.currentTarget},ownerState:k,children:(0,$e.jsx)(_k,(0,Me.A)({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":I},x,{className:(0,ze.A)(_.paper,x.className),ownerState:k,children:(0,$e.jsx)(Ek.Provider,{value:P,children:u})}))})}))}))})),Ik=Nk;function Pk(e){return(0,jt.Ay)("MuiDialogTitle",e)}const Rk=(0,Mt.A)("MuiDialogTitle",["root"]),Dk=["className","id"],Lk=(0,nt.Ay)(Tr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ok=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiDialogTitle"}),{className:r,id:o}=n,i=(0,Oe.A)(n,Dk),s=n,l=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"]},Pk,t)})(s),{titleId:c=o}=a.useContext(Ek);return(0,$e.jsx)(Lk,(0,Me.A)({component:"h2",className:(0,ze.A)(l.root,r),ownerState:s,ref:t,variant:"h6",id:null!=o?o:c},i))}));function Mk(e){return(0,jt.Ay)("MuiDialogActions",e)}(0,Mt.A)("MuiDialogActions",["root","spacing"]);const jk=["className","disableSpacing"],Fk=(0,nt.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),Bk=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=n,a=(0,Oe.A)(n,jk),i=(0,Me.A)({},n,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,je.A)(r,Mk,t)})(i);return(0,$e.jsx)(Fk,(0,Me.A)({className:(0,ze.A)(s.root,r),ownerState:i,ref:t},a))}));var Uk=n(3471),zk=n(1132);const Hk=e=>{let{files:t,onRemove:n,onRefresh:r,isAdmin:o}=e;const[i,s]=(0,a.useState)(null),[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null),[f,m]=(0,a.useState)({open:!1,message:"",severity:"info"}),g=()=>{s(null),c(null)},A=async e=>{g();const t=localStorage.getItem("organizationId");if(t)try{const n=await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/file/").concat(e,"/").concat(t,"/download"),{method:"GET",headers:{Authorization:"Bearer ".concat(n)}});if(!r.ok){if(404===r.status)return{error:"File not found"};throw new Error("Network response was not ok")}const o=r.headers.get("Content-Disposition");let a="downloaded_file";o&&-1!==o.indexOf("filename=")&&(a=o.split("filename=")[1].replace(/"/g,""));const i=await r.blob(),s=window.URL.createObjectURL(i),l=document.createElement("a");return l.href=s,l.download=a,document.body.appendChild(l),l.click(),l.remove(),window.URL.revokeObjectURL(s),{success:!0}}catch(n){throw console.error("Error downloading organization file:",n),n}})(t,e.id);n&&n.error?m({open:!0,message:n.error,severity:"error"}):m({open:!0,message:"Download started.",severity:"success"})}catch(n){m({open:!0,message:"Could not download file.",severity:"error"})}},v=()=>{d(!1),h(null)},y=(e,t)=>{"clickaway"!==t&&m((e=>({...e,open:!1})))};return t&&0!==t.length?(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("ul",{className:"file-list",children:t.map(((e,t)=>(0,$e.jsxs)("li",{className:"file-list-item",children:[(0,$e.jsx)(yk.A,{style:{color:"#d32f2f",marginRight:8}}),(0,$e.jsx)("span",{className:"file-list-name",style:{wordBreak:"break-all",whiteSpace:"pre-wrap"},children:e.fileName}),(0,$e.jsx)(Yn,{size:"small",onClick:e=>((e,t)=>{s(e.currentTarget),c(t)})(e,t),"aria-label":"file actions",children:(0,$e.jsx)(bk.A,{})}
2),(0,$e.jsxs)(Qi,{anchorEl:i,open:l===t&&Boolean(i),onClose:g,children:[(0,$e.jsxs)(Bs,{onClick:()=>(async e=>{g();const t=localStorage.getItem("organizationId");if(t)try{const n=await Rc(t,e.id);n?(window.open(n,"_blank"),m({open:!0,message:"File opened in new tab.",severity:"success"})):m({open:!0,message:"File not found.",severity:"error"})}catch(n){m({open:!0,message:"Could not fetch file URL.",severity:"error"})}})(e),children:[(0,$e.jsx)(JC.A,{fontSize:"small",style:{marginRight:8}})," View"]}),(0,$e.jsxs)(Bs,{onClick:()=>A(e),children:[(0,$e.jsx)(zk.A,{fontSize:"small",style:{marginRight:8}})," Download"]}),o&&(0,$e.jsxs)(Bs,{onClick:()=>(e=>{h(e),d(!0),g()})(t),children:[(0,$e.jsx)(Uk.A,{fontSize:"small",style:{marginRight:8},color:"error"})," Delete"]})]})]},t)))}),(0,$e.jsxs)(Ik,{open:u,onClose:v,children:[(0,$e.jsx)(Ok,{children:"Are you sure you want to delete this file?"}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:v,children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{const e=t[p],o=localStorage.getItem("organizationId");if(o&&e){try{const t=await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/file/").concat(e,"/").concat(t),{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)}});if(!r.ok){if(404===r.status)return{error:"File not found"};throw new Error("Network response was not ok")}return await r.json()}catch(n){throw console.error("Error deleting organization file:",n),n}})(o,e.id);t&&t.error?m({open:!0,message:t.error,severity:"error"}):(m({open:!0,message:"File deleted successfully!",severity:"success"}),n&&n(p),r&&r())}catch(a){m({open:!0,message:"Failed to delete file.",severity:"error"})}d(!1),h(null)}},color:"error",variant:"contained",children:"Delete"})]})]}),(0,$e.jsx)(en,{open:Boolean(f.open),autoHideDuration:4e3,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,$e.jsx)(sr,{onClose:y,severity:f.severity,sx:{width:"100%"},children:f.message})})]}):(0,$e.jsx)("div",{className:"file-list-empty",children:"No files uploaded."})};function Wk(e){return(0,jt.Ay)("MuiDialogContent",e)}(0,Mt.A)("MuiDialogContent",["root","dividers"]);const Vk=["className","dividers"],Gk=(0,nt.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(Rk.root," + &")]:{paddingTop:0}})})),qk=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,a=(0,Oe.A)(n,Vk),i=(0,Me.A)({},n,{dividers:o}),s=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,je.A)(r,Wk,t)})(i);return(0,$e.jsx)(Gk,(0,Me.A)({className:(0,ze.A)(s.root,r),ownerState:i,ref:t},a))})),Yk=e=>{let{open:t,onClose:n,onCreate:r}=e;const[o,i]=(0,a.useState)(""),s=()=>{i(""),n()};return(0,$e.jsxs)(Ik,{open:t,onClose:s,children:[(0,$e.jsx)(Ok,{children:"Create Organization"}),(0,$e.jsx)(qk,{children:(0,$e.jsx)(Is,{autoFocus:!0,margin:"dense",label:"Organization Name",type:"text",fullWidth:!0,value:o,onChange:e=>i(e.target.value)})}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:s,children:"Cancel"}),(0,$e.jsx)(Cl,{variant:"contained",onClick:()=>{o.trim()&&(r(o.trim()),i(""))},disabled:!o.trim(),children:"Create"})]})]})};function Qk(e){return(0,jt.Ay)("MuiDialogContentText",e)}(0,Mt.A)("MuiDialogContentText",["root"]);const Xk=["children","className"],Kk=(0,nt.Ay)(Tr,{shouldForwardProp:e=>(0,Lo.A)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jk=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiDialogContentText"}),{className:r}=n,o=(0,Oe.A)(n,Xk),a=(e=>{const{classes:t}=e,n=(0,je.A)({root:["root"]},Qk,t);return(0,Me.A)({},t,n)})(o);return(0,$e.jsx)(Kk,(0,Me.A)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,ze.A)(a.root,r)},n,{classes:a}))}));const Zk=a.createContext();function $k(e){return(0,jt.Ay)("MuiTable",e)}(0,Mt.A)("MuiTable",["root","stickyHeader"]);const e_=["className","component","padding","size","stickyHeader"],t_=(0,nt.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,Me.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),n_="table",r_=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTable"}),{className:r,component:o=n_,padding:i="normal",size:s="medium",stickyHeader:l=!1}=n,c=(0,Oe.A)(n,e_),u=(0,Me.A)({},n,{component:o,padding:i,size:s,stickyHeader:l}),d=(e=>{const{classes:t,stickyHeader:n}=e,r={root:["root",n&&"stickyHeader"]};return(0,je.A)(r,$k,t)})(u),p=a.useMemo((()=>({padding:i,size:s,stickyHeader:l})),[i,s,l]);return(0,$e.jsx)(Zk.Provider,{value:p,children:(0,$e.jsx)(t_,(0,Me.A)({as:o,role:o===n_?null:"table",ref:t,className:(0,ze.A)(d.root,r),ownerState:u},c))})})),o_=r_;const a_=a.createContext();function i_(e){return(0,jt.Ay)("MuiTableBody",e)}(0,Mt.A)("MuiTableBody",["root"]);const s_=["className","component"],l_=(0,nt.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),c_={variant:"body"},u_="tbody",d_=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTableBody"}),{className:r,component:o=u_}=n,a=(0,Oe.A)(n,s_),i=(0,Me.A)({},n,{component:o}),s=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"]},i_,t)})(i);return(0,$e.jsx)(a_.Provider,{value:c_,children:(0,$e.jsx)(l_,(0,Me.A)({className:(0,ze.A)(s.root,r),as:o,ref:t,role:o===u_?null:"rowgroup",ownerState:i},a))})}));function p_(e){return(0,jt.Ay)("MuiTableCell",e)}const h_=(0,Mt.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),f_=["align","className","component","padding","scope","size","sortDirection","variant"],m_=(0,nt.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["size".concat((0,pt.A)(n.size))],"normal"!==n.padding&&t["padding".concat((0,pt.A)(n.padding))],"inherit"!==n.align&&t["align".concat((0,pt.A)(n.align))],n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,Lt.a)((0,Lt.X4)(t.palette.divider,1),.88):(0,Lt.e$)((0,Lt.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",["&.".concat(h_.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),g_=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:d}=n,p=(0,Oe.A)(n,f_),h=a.useContext(Zk),f=a.useContext(a_),m=f&&"head"===f.variant;let g;g=i||(m?"th":"td");let A=l;"td"===g?A=void 0:!A&&m&&(A="col");const v=d||f&&f.variant,y=(0,Me.A)({},n,{align:r,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&h&&h.stickyHeader,variant:v}),b=(e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader","inherit"!==r&&"align".concat((0,pt.A)(r)),"normal"!==o&&"padding".concat((0,pt.A)(o)),"size".concat((0,pt.A)(a))]};return(0,je.A)(s,p_,t)})(y);let x=null;return u&&(x="asc"===u?"ascending":"descending"),(0,$e.jsx)(m_,(0,Me.A)({as:g,ref:t,className:(0,ze.A)(b.root,o),"aria-sort":x,scope:A,ownerState:y},p))})),A_=g_;function v_(e){return(0,jt.Ay)("MuiTableContainer",e)}(0,Mt.A)("MuiTableContainer",["root"]);const y_=["className","component"],b_=(0,nt.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),x_=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,a=(0,Oe.A)(n,y_),i=(0,Me.A)({},n,{component:o}),s=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"]},v_,t)})(i);return(0,$e.jsx)(b_,(0,Me.A)({ref:t,as:o,className:(0,ze.A)(s.root,r),ownerState:i},a))}));function w_(e){return(0,jt.Ay)("MuiTableHead",e)}(0,Mt.A)("MuiTableHead",["root"]);const E_=["className","component"],C_=(0,nt.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),S_={variant:"head"},T_="thead",k_=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTableHead"}),{className:r,component:o=T_}=n,a=(0,Oe.A)(n,E_),i=(0,Me.A)({},n,{component:o}),s=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"]},w_,t)})(i);return(0,$e.jsx)(a_.Provider,{value:S_,children:(0,$e.jsx)(C_,(0,Me.A)({as:o,className:(0,ze.A)(s.root,r),ref:t,role:o===T_?null:"rowgroup",ownerState:i},a))})}));function __(e){return(0,jt.Ay)("MuiTableRow",e)}const N_=(0,Mt.A)("MuiTableRow",["root","selected","hover","head","footer"]),I_=["className","component","hover","selected"],P_=(0,nt.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(N_.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(N_.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),R_="tr",D_=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTableRow"}),{className:r,component:o=R_,hover:i=!1,selected:s=!1}=n,l=(0,Oe.A)(n,I_),c=a.useContext(a_),u=(0,Me.A)({},n,{component:o,hover:i,selected:s,head:c&&"head"===c.variant,footer
2:c&&"footer"===c.variant}),d=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e,i={root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]};return(0,je.A)(i,__,t)})(u);return(0,$e.jsx)(P_,(0,Me.A)({as:o,ref:t,className:(0,ze.A)(d.root,r),role:o===R_?null:"row",ownerState:u},l))})),L_=D_,O_=e=>{let{organizationId:t}=e;const[n,r]=(0,a.useState)(""),[o,i]=(0,a.useState)("MEMBER"),[s,l]=(0,a.useState)([]),[c,u]=(0,a.useState)(!0),[d,p]=(0,a.useState)(null),[h,f]=(0,a.useState)(!1),[m,g]=(0,a.useState)(""),[A,v]=(0,a.useState)(!1),[y,b]=(0,a.useState)(null),x=async()=>{u(!0),p(null);try{const e=await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/organization/").concat(e,"/invitations"),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!n.ok){const e=await n.json();throw new Error(e.error||"Network response was not ok")}return await n.json()}catch(d){throw console.error("Error fetching organization invitations:",d),d}})(t);l(e)}catch(e){p("Failed to fetch invitations.")}finally{u(!1)}};(0,a.useEffect)((()=>{t&&x()}),[t]);const w=()=>{f(!1)},E=()=>{v(!1),b(null)};return(0,$e.jsxs)(yr,{sx:{p:1},children:[(0,$e.jsxs)(yr,{component:"form",onSubmit:e=>e.preventDefault(),sx:{display:"flex",gap:2,alignItems:"center",p:1},children:[(0,$e.jsx)(Is,{label:"Email",type:"email",value:n,onChange:e=>r(e.target.value),required:!0,size:"small",sx:{flexGrow:1}}),(0,$e.jsxs)(Ea,{size:"small",sx:{minWidth:120},children:[(0,$e.jsx)(Aa,{children:"Role"}),(0,$e.jsxs)(Cs,{value:o,label:"Role",onChange:e=>i(e.target.value),children:[(0,$e.jsx)(Bs,{value:"MEMBER",children:"Member"}),(0,$e.jsx)(Bs,{value:"ADMIN",children:"Admin"})]})]}),(0,$e.jsx)(Cl,{variant:"contained",onClick:()=>{f(!0)},disabled:!n,children:"Invite"})]}),m&&(0,$e.jsx)(sr,{severity:"success",sx:{mb:2},children:m}),d&&(0,$e.jsx)(sr,{severity:"error",sx:{mb:2},children:d}),(0,$e.jsx)("h3",{children:"Invited Users"}),c?(0,$e.jsx)(yr,{sx:{display:"flex",justifyContent:"center",mt:4},children:(0,$e.jsx)(Hd,{})}):0===s.length?(0,$e.jsx)(Tr,{variant:"body1",children:"No invitations found."}):(0,$e.jsx)(x_,{component:zt,children:(0,$e.jsxs)(o_,{sx:{minWidth:650},"aria-label":"simple table",children:[(0,$e.jsx)(k_,{children:(0,$e.jsxs)(L_,{children:[(0,$e.jsx)(A_,{children:"Email"}),(0,$e.jsx)(A_,{children:"Role"}),(0,$e.jsx)(A_,{children:"Status"}),(0,$e.jsx)(A_,{children:"Expires At"}),(0,$e.jsx)(A_,{children:"Actions"})]})}),(0,$e.jsx)(d_,{children:s.map((e=>(0,$e.jsxs)(L_,{children:[(0,$e.jsx)(A_,{children:e.email}),(0,$e.jsx)(A_,{children:e.role}),(0,$e.jsx)(A_,{children:e.status}),(0,$e.jsx)(A_,{children:new Date(e.expiresAt).toLocaleDateString()}),(0,$e.jsx)(A_,{children:(0,$e.jsx)(Cl,{variant:"outlined",color:"error",size:"small",onClick:()=>{return t=e.id,b(t),void v(!0);var t},children:"Remove"})})]},e.id)))})]})}),(0,$e.jsxs)(Ik,{open:h,onClose:w,"aria-labelledby":"confirm-invite-dialog-title","aria-describedby":"confirm-invite-dialog-description",children:[(0,$e.jsx)(Ok,{id:"confirm-invite-dialog-title",children:"Confirm Invitation"}),(0,$e.jsx)(qk,{children:(0,$e.jsxs)(Jk,{id:"confirm-invite-dialog-description",children:["Are you sure you want to invite ",n," as a ",o,"?"]})}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:w,children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{f(!1),g(""),p(null);try{const e=await(async(e,t,n)=>{try{const r=await Ec(),o=await fetch("".concat("https://api.medrpt.ai","/api/organization/").concat(e,"/invitations"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},body:JSON.stringify({email:t,role:n})});if(!o.ok){const e=await o.json();throw new Error(e.error||"Network response was not ok")}return await o.json()}catch(d){throw console.error("Error sending invitation:",d),d}})(t,n,o);g(e.message),r(""),i("MEMBER"),x()}catch(e){p(e.message||"Failed to send invitation.")}},autoFocus:!0,children:"Confirm"})]})]}),(0,$e.jsxs)(Ik,{open:A,onClose:E,"aria-labelledby":"confirm-remove-dialog-title","aria-describedby":"
2confirm-remove-dialog-description",children:[(0,$e.jsx)(Ok,{id:"confirm-remove-dialog-title",children:"Confirm Removal"}),(0,$e.jsx)(qk,{children:(0,$e.jsx)(Jk,{id:"confirm-remove-dialog-description",children:"Are you sure you want to remove this invitation?"})}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:E,children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{v(!1),p(null);try{await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/organization/invitations/").concat(e),{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!n.ok){const e=await n.json();throw new Error(e.error||"Network response was not ok")}return await n.json()}catch(d){throw console.error("Error removing organization invitation:",d),d}})(y),g("Invitation removed successfully."),x()}catch(e){p(e.message||"Failed to remove invitation.")}finally{b(null)}},color:"error",autoFocus:!0,children:"Remove"})]})]})]})};function M_(e){return(0,jt.Ay)("MuiLinearProgress",e)}(0,Mt.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var j_,F_,B_,U_,z_,H_;const W_=["className","color","value","valueBuffer","variant"];let V_,G_,q_,Y_,Q_,X_;const K_=(0,An.i7)(V_||(V_=j_||(j_=un(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])))),J_=(0,An.i7)(G_||(G_=F_||(F_=un(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])))),Z_=(0,An.i7)(q_||(q_=B_||(B_=un(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])))),$_=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,Lt.a)(e.palette[t].main,.62):(0,Lt.e$)(e.palette[t].main,.5),eN=(0,nt.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["color".concat((0,pt.A)(n.color))],t[n.variant]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Me.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:$_(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),tN=(0,nt.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t["dashedColor".concat((0,pt.A)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;const r=$_(n,t.color);return(0,Me.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,An.AH)(Y_||(Y_=U_||(U_=un(["\n animation: "," 3s infinite linear;\n "]))),Z_)),nN=(0,nt.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t["barColor".concat((0,pt.A)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Me.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,An.AH)(Q_||(Q_=z_||(z_=un(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),K_)})),rN=(0,nt.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t["barColor".concat((0,pt.A)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Me.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:$_(n,t.color),transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,An.AH)(X_||(X_=H_||(H_=un(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),J_)})),oN=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:a,valueBuffer:i,variant:s="indeterminate"}=n,l=(0,Oe.A)(n,W_),c=(0,Me.A)({},n,{color:o,variant:s}),u=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root","color".concat((0,pt.A)(r)),n],dashed:["dashed","dashedColor".concat((0,pt.A)(r))],bar1:["bar","barColor".concat((0,pt.A)(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barC
2olor".concat((0,pt.A)(r)),"buffer"===n&&"color".concat((0,pt.A)(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,je.A)(o,M_,t)})(c),d=Da(),p={},h={bar1:{},bar2:{}};if("determinate"===s||"buffer"===s)if(void 0!==a){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=a-100;d&&(e=-e),h.bar1.transform="translateX(".concat(e,"%)")}else 0;if("buffer"===s)if(void 0!==i){let e=(i||0)-100;d&&(e=-e),h.bar2.transform="translateX(".concat(e,"%)")}else 0;return(0,$e.jsxs)(eN,(0,Me.A)({className:(0,ze.A)(u.root,r),ownerState:c,role:"progressbar"},p,{ref:t},l,{children:["buffer"===s?(0,$e.jsx)(tN,{className:u.dashed,ownerState:c}):null,(0,$e.jsx)(nN,{className:u.bar1,ownerState:c,style:h.bar1}),"determinate"===s?null:(0,$e.jsx)(rN,{className:u.bar2,ownerState:c,style:h.bar2})]}))})),aN=oN;let iN;function sN(){if(iN)return iN;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),iN="reverse",e.scrollLeft>0?iN="default":(e.scrollLeft=1,0===e.scrollLeft&&(iN="negative")),document.body.removeChild(e),iN}function lN(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(sN()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function cN(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const uN=["onChange"],dN={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const pN=(0,Qn.A)((0,$e.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hN=(0,Qn.A)((0,$e.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function fN(e){return(0,jt.Ay)("MuiTabScrollButton",e)}const mN=(0,Mt.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),gN=["className","slots","slotProps","direction","orientation","disabled"],AN=(0,nt.Ay)(zn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({width:40,flexShrink:0,opacity:.8,["&.".concat(mN.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),vN=a.forwardRef((function(e,t){var n,r;const o=(0,dt.b)({props:e,name:"MuiTabScrollButton"}),{className:a,slots:i={},slotProps:s={},direction:l}=o,c=(0,Oe.A)(o,gN),u=Da(),d=(0,Me.A)({isRtl:u},o),p=(e=>{const{classes:t,orientation:n,disabled:r}=e,o={root:["root",n,r&&"disabled"]};return(0,je.A)(o,fN,t)})(d),h=null!=(n=i.StartScrollButtonIcon)?n:pN,f=null!=(r=i.EndScrollButtonIcon)?r:hN,m=Ye({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=Ye({elementType:f,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,$e.jsx)(AN,(0,Me.A)({component:"div",className:(0,ze.A)(p.root,a),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?(0,$e.jsx)(h,(0,Me.A)({},m)):(0,$e.jsx)(f,(0,Me.A)({},g))}))}));function yN(e){return(0,jt.Ay)("MuiTabs",e)}const bN=(0,Mt.A)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","
2indicator"]),xN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wN=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,EN=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,CN=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},SN=(0,nt.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(bN.scrollButtons)]:t.scrollButtons},{["& .".concat(bN.scrollButtons)]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Me.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat(bN.scrollButtons)]:{[n.breakpoints.down("sm")]:{display:"none"}}})})),TN=(0,nt.Ay)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),kN=(0,nt.Ay)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),_N=(0,nt.Ay)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:n}=e;return(0,Me.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),NN=(0,nt.Ay)((function(e){const{onChange:t}=e,n=(0,Oe.A)(e,uN),r=a.useRef(),o=a.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return(0,vo.A)((()=>{const e=(0,Xa.A)((()=>{const e=r.current;i(),e!==r.current&&t(r.current)})),n=(0,Ka.A)(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),a.useEffect((()=>{i(),t(r.current)}),[t]),(0,$e.jsx)("div",(0,Me.A)({style:dN},n,{ref:o}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),IN={};const PN=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTabs"}),r=ut(),o=Da(),{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:f="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:A=vN,scrollButtons:v="auto",selectionFollowsFocus:y,slots:b={},slotProps:x={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:C="primary",value:S,variant:T="standard",visibleScrollbar:k=!1}=n,_=(0,Oe.A)(n,xN),N="scrollable"===T,I="vertical"===g,P=I?"scrollTop":"scrollLeft",R=I?"top":"left",D=I?"bottom":"right",L=I?"clientHeight":"clientWidth",O=I?"height":"width",M=(0,Me.A)({},n,{component:p,allowScrollButtonsMobile:h,indicatorColor:f,orientation:g,vertical:I,scrollButtons:v,textColor:C,variant:T,visibleScrollbar:k,fixed:!N,hideScrollbar:N&&!k,scrollableX:N&&!I,scrollableY:N&&I,centered:c&&!N,scrollButtonsHideMobile:!h}),j=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hide
2Scrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,je.A)(c,yN,l)})(M),F=Ye({elementType:b.StartScrollButtonIcon,externalSlotProps:x.startScrollButtonIcon,ownerState:M}),B=Ye({elementType:b.EndScrollButtonIcon,externalSlotProps:x.endScrollButtonIcon,ownerState:M});const[U,z]=a.useState(!1),[H,W]=a.useState(IN),[V,G]=a.useState(!1),[q,Y]=a.useState(!1),[Q,X]=a.useState(!1),[K,J]=a.useState({overflow:"hidden",scrollbarWidth:0}),Z=new Map,$=a.useRef(null),ee=a.useRef(null),te=()=>{const e=$.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:lN(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==S){const e=ee.current.children;if(e.length>0){const t=e[Z.get(S)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ne=(0,ln.A)((()=>{const{tabsMeta:e,tabMeta:t}=te();let n,r=0;if(I)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const a=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+a)}const a={[n]:r,[O]:t?t[O]:0};if(isNaN(H[n])||isNaN(H[O]))W(a);else{const e=Math.abs(H[n]-a[n]),t=Math.abs(H[O]-a[O]);(e>=1||t>=1)&&W(a)}})),re=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:a=cN,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const u=Math.min(1,(r-s)/i);t[e]=a(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(P,$.current,e,{duration:r.transitions.duration.standard}):$.current[P]=e},oe=e=>{let t=$.current[P];I?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===sN()?-1:1),re(t)},ae=()=>{const e=$.current[L];let t=0;const n=Array.from(ee.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[L]>e){0===r&&(t=e);break}t+=o[L]}return t},ie=()=>{oe(-1*ae())},se=()=>{oe(ae())},le=a.useCallback((e=>{J({overflow:null,scrollbarWidth:e})}),[]),ce=(0,ln.A)((e=>{const{tabsMeta:t,tabMeta:n}=te();if(n&&t)if(n[R]<t[R]){const r=t[P]+(n[R]-t[R]);re(r,{animation:e})}else if(n[D]>t[D]){const r=t[P]+(n[D]-t[D]);re(r,{animation:e})}})),ue=(0,ln.A)((()=>{N&&!1!==v&&X(!Q)}));a.useEffect((()=>{const e=(0,Xa.A)((()=>{$.current&&ne()}));let t;const n=n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),ue()},r=(0,Ka.A)($.current);let o;return r.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach((e=>{t.observe(e)}))),"undefined"!==typeof MutationObserver&&(o=new MutationObserver(n),o.observe(ee.current,{childList:!0})),()=>{var n,a;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(a=t)||a.disconnect()}}),[ne,ue]),a.useEffect((()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&N&&!1!==v){const n=e[0],r=e[t-1],o={root:$.current,threshold:.99},a=new IntersectionObserver((e=>{G(!e[0].isIntersecting)}),o);a.observe(n);const i=new IntersectionObserver((e=>{Y(!e[0].isIntersecting)}),o);return i.observe(r),()=>{a.disconnect(),i.disconnect()}}}),[N,v,Q,null==u?void 0:u.length]),a.useEffect((()=>{z(!0)}),[]),a.useEffect((()=>{ne()})),a.useEffect((()=>{ce(IN!==H)}),[ce,H]),a.useImperativeHandle(l,(()=>({updateIndicator:ne,updateScrollButtons:ue})),[ne,ue]);const de=(0,$e.jsx)(_N,(0,Me.A)({},w,{className:(0,ze.A)(j.indicator,w.className),ownerState:M,style:(0,Me.A)({},H,w.style)}));let pe=0;const he=a.Children.map(u,(e=>{if(!a.isValidElement(e))return null;const t=void 0===e.props.value?pe:e.props.value;Z.set(t,pe);const n=t===S;return pe+=1,a.cloneElement(e,(0,Me.A)({fullWidth:"fullWidth"===T,indicator:n&&!U&&de,selected:n,selectionFollowsFocus:y,onChange:m,textColor:C,value:t},1!==pe||!1!==S||e.props.tabIndex?{}:{tabIndex:0}))})),fe=(()=>{const e={};e.scrollbarSizeListener=N?(0,$e.jsx)(NN,{onChange:le,className:(0,ze.A)(j.scrollableX,j.hideScrollbar)}):null;const t=N&&("auto"===v&&(V||q)||!0===v);return e.scrollButtonStart=t?(0,$e.jsx)(A,(0,Me.A)({slots:{StartScrollButtonIcon:b.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:F},orientation:g,direction:o?"right":"left",onClick:ie,disabled:!V},E,{className:(0,ze.A)(j.scrollButtons,E.className)})):null,e.scrollButtonEnd=t?(0,$e.jsx)(A,(0,Me.A)({slots:{EndScrollButtonIcon:b.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:o?"left":"right",onClick:se,disabled:!q},E,{className:(0,ze.A)(j.scrollButtons,E.className)})):null,e})();return(0,$e.jsxs)(SN,(0,Me.A)({className:(0,ze.A)(j.root,d),ownerState:M,ref:t,as:p},_,{children:[fe.scrollButtonStart,fe.scrollbarSizeListener,(0,$e.jsxs)(TN,{className:j.scroller,ownerState:M,style:{overflow:K.overflow,[I?"margin".concat(o?"Left":"Right"):"marginBottom"]:k?void 0:-K.scrollbarWidth},ref:$,children:[(0,$e.jsx)(kN,{"aria-label":i,"aria-labelledby":s,"aria-orientation":"vertical"===g?"vertical":null,className:j.flexContainer,ownerState:M,onKeyDown:e=>{const t=ee.current,n=(0,Pa.A)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===g?"ArrowLeft":"ArrowUp",a="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&o&&(r="ArrowRight",a="ArrowLeft"),e.key){case r:e.preventDefault(),CN(t,n,EN);break;case a:e.preventDefault(),CN(t,n,wN);break;case"Home":e.preventDefault(),CN(t,null,wN);break;case"End":e.preventDefault(),CN(t,null,EN)}},ref:ee,role:"tablist",children:he}),U&&de]}
2),fe.scrollButtonEnd]}))})),RN=PN;function DN(e){return(0,jt.Ay)("MuiTab",e)}const LN=(0,Mt.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ON=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],MN=(0,nt.Ay)(zn,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat((0,pt.A)(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{["& .".concat(LN.iconWrapper)]:t.iconWrapper}]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(LN.iconWrapper)]:(0,Me.A)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,["&.".concat(LN.selected)]:{opacity:1},["&.".concat(LN.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(LN.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(LN.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(LN.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(LN.disabled)]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})}
2)),jN=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:h,onFocus:f,selected:m,selectionFollowsFocus:g,textColor:A="inherit",value:v,wrapped:y=!1}=n,b=(0,Oe.A)(n,ON),x=(0,Me.A)({},n,{disabled:o,disableFocusRipple:i,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:A,wrapped:y}),w=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon","textColor".concat((0,pt.A)(n)),r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,je.A)(c,DN,t)})(x),E=l&&d&&a.isValidElement(l)?a.cloneElement(l,{className:(0,ze.A)(w.iconWrapper,l.props.className)}):l;return(0,$e.jsxs)(MN,(0,Me.A)({focusRipple:!i,className:(0,ze.A)(w.root,r),ref:t,role:"tab","aria-selected":m,disabled:o,onClick:e=>{!m&&p&&p(e,v),h&&h(e)},onFocus:e=>{g&&!m&&p&&p(e,v),f&&f(e)},ownerState:x,tabIndex:m?0:-1},b,{children:["top"===c||"start"===c?(0,$e.jsxs)(a.Fragment,{children:[E,d]}):(0,$e.jsxs)(a.Fragment,{children:[d,E]}),u]}))})),FN=jN;function BN(e){const{children:t,value:n,index:r,...o}=e;return(0,$e.jsx)("div",{role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r),...o,children:n===r&&(0,$e.jsx)(yr,{sx:{p:3},children:t})})}function UN(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}const zN=()=>{const e=te(),{user:t}=rd((e=>[e.user])),[n,r]=(0,a.useState)([]),[o,i]=(0,a.useState)(!1),[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(""),[d,p]=(0,a.useState)(!1),[h,f]=(0,a.useState)({open:!1,message:"",severity:"info"}),[m,g]=(0,a.useState)(0),[A,v]=(0,a.useState)(!1);(0,a.useEffect)((()=>{t?Tc().then((t=>{t.isActive||(f({open:!0,message:"You need to upgrade your subscription to access organization features.",severity:"warning"}),e("/login"))})).catch((e=>{console.error("Error checking subscription status:",e),f({open:!0,message:"Failed to check subscription status. Please try again later.",severity:"error"})})):e("/login")}),[t]),(0,a.useEffect)((()=>{(async()=>{const e=localStorage.getItem("organizationId"),t=localStorage.getItem("organizationName");let n=e;if(e&&t)u(t);else try{const e=await Ic();if(!e||!e.id)return void i(!0);localStorage.setItem("organizationId",e.id),e.name&&localStorage.setItem("organizationName",e.name),u(e.name||""),n=e.id}catch(o){return void i(!0)}if(n)try{const e=await Pc(n);r(e||[]);const t=await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/user/organization/role?organizationId=").concat(e),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!n.ok){const e=await n.json();throw new Error(e.error||"Network response was not ok")}return(await n.json()).role}catch(t){throw console.error("Error fetching user organization role:",t),t}})(n);v("ADMIN"===t)}catch(o){r([])}})()}),[t]);const y=(e,t)=>{"clickaway"!==t&&f((e=>({...e,open:!1})))};return(0,$e.jsxs)("div",{className:"org-dataset-page",children:[(0,$e.jsx)(Yk,{open:o,onClose:()=>{i(!1)},onCreate:async e=>{try{const t=await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/user/organization"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({organizationName:e})});if(!n.ok)throw new Error("Network response was not ok");return await n.json()}catch(t){throw console.error("Error creating organization:",t),t}})(e);if(t&&t.organization){localStorage.setItem("organizationId",t.organization.id),localStorage.setItem("organizationName",t.organization.name),u(e),i(!1),f({open:!0,message:"Organization created successfully!",severity:"success"});const n=await Pc(t.organization.id);r(n||[]),v(!0),g(0)}else f({open:!0,message:"Failed to create organization. Please try again.",severity:"error"})}catch(t){f({open:!0,message:"Failed to create organization. Please try again.",severity:"error"})}}}),(0,$e.jsxs)(Ik,{open:s,onClose:()=>l(!1),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,$e.jsx)(Ok,{id:"alert-dialog-title",children:"Delete Organization?"}),(0,$e.jsx)(qk,{children:(0,$e.jsx)(Jk,{id:"alert-dialog-description",children:"Are you sure you want to delete this organization? This action cannot be undone."})}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:()=>l(!1),children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{const e=localStorage.getItem("organizationId");if(e)try{await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/organization/").concat(e),{method:"DELETE",headers:{Authorization:"Bearer ".concat(t)}});if(!n.ok){const e=await n.json();throw new Error(e.error||"Network response was not ok")}return await n.json()}catch(t){throw console.error("Error deleting organization:",t),t}})(e),localStorage.removeItem("organizationId"),localStorage.removeItem("organizationName"),u(""),r([]),f({open:!0,message:"Organization deleted successfully!",severity:"success"}),l(!1)}catch(t){f({open:!0,message:"Failed to delete organization. Please try again.",severity:"error"})}},color:"error",autoFocus:!0,children:"Delete"})]})]}),(0,$e.jsx)("h2",{className:"org-dataset-title",children:c?"".concat(c," Dataset"):"Organization Dataset"}),c&&(0,$e.jsxs)(yr,{sx:{width:"100%",padding:1},children:[(0,$e.jsx)(yr,{sx:{borderBottom:1,borderColor:"divider",padding:1},children:(0,$e.jsxs)(RN,{value:m,onChange:(e,t)=>
2{g(t)},"aria-label":"organization tabs",children:[A&&(0,$e.jsx)(FN,{label:"Manage Users",...UN(0)}),(0,$e.jsx)(FN,{label:"Manage Files",...UN(A?1:0)}),A&&(0,$e.jsx)(FN,{label:"Settings",...UN(A?2:1)})]})}),A&&(0,$e.jsx)(BN,{value:m,index:0,sx:{padding:1},children:(0,$e.jsx)(O_,{organizationId:localStorage.getItem("organizationId")})}),(0,$e.jsxs)(BN,{value:m,index:A?1:0,children:[A&&(0,$e.jsx)(vk,{onUpload:async e=>{const t=localStorage.getItem("organizationId");if(t&&0!==e.length){p(!0);try{await(async(e,t)=>{try{const n=await Ec(),r=new FormData;t.forEach((e=>{r.append("files",e)}));const o=await fetch("".concat("https://api.medrpt.ai","/api/file/").concat(e,"/upload"),{method:"POST",headers:{Authorization:"Bearer ".concat(n)},body:r});if(!o.ok)throw new Error("Network response was not ok");return await o.json()}catch(n){throw console.error("Error uploading files:",n),n}})(t,e),f({open:!0,message:"Files uploaded successfully!",severity:"success"});const n=await Pc(t);r(n||[])}catch(n){f({open:!0,message:"Failed to upload files. Please try again.",severity:"error"})}finally{p(!1)}}},isAdmin:A}),d&&(0,$e.jsxs)(yr,{sx:{width:"100%",mt:2,mb:2,display:"flex",alignItems:"center",gap:2},children:[(0,$e.jsx)(aN,{sx:{flex:1}}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",sx:{minWidth:120},children:"Uploading files..."})]}),(0,$e.jsxs)("div",{className:"org-dataset-list-section",children:[(0,$e.jsx)("h3",{children:"Uploaded Files"}),(0,$e.jsx)(Hk,{files:n,onRemove:()=>{},onRefresh:async()=>{const e=localStorage.getItem("organizationId");if(e)try{const t=await Pc(e);r(t||[])}catch(t){r([])}},isAdmin:A})]})]}),A&&(0,$e.jsx)(BN,{value:m,index:2,children:(0,$e.jsx)(Cl,{variant:"contained",color:"error",onClick:()=>l(!0),children:"Delete Organization"})})]}),(0,$e.jsx)(en,{open:Boolean(h.open),autoHideDuration:4e3,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,$e.jsx)(sr,{onClose:y,severity:h.severity,sx:{width:"100%"},children:h.message})})]})},HN=()=>{const e=$(),t=te(),{authStatus:n}=rd((e=>[e.authStatus])),[r,o]=(0,a.useState)(!0),[i,s]=(0,a.useState)(""),[l,c]=(0,a.useState)("");return(0,a.useEffect)((()=>{const r=new URLSearchParams(e.search).get("token");if(!r)return c("Invitation token not found."),void o(!1);(async()=>{if("configuring"!==n)if("authenticated"===n)try{s("Accepting invitation...");const e=await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/organization/invitations/").concat(e,"/accept"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!n.ok){const e=await n.json();throw new Error(e.error||"Network response was not ok")}return await n.json()}catch(l){throw console.error("Error accepting invitation:",l),l}})(r);s(e.message||"Invitation accepted successfully!"),localStorage.setItem("organizationId",e.organizationId),localStorage.setItem("organizationName",e.organizationName),setTimeout((()=>{t("/organization-dataset")}),2e3)}catch(a){c(a.message||"Failed to accept invitation.")}finally{o(!1)}else t("/login?redirect=".concat(encodeURIComponent(e.pathname+e.search)))})()}),[e,t,n]),r?(0,$e.jsxs)(yr,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh"},children:[(0,$e.jsx)(Hd,{}),(0,$e.jsx)(Tr,{variant:"h6",sx:{mt:2},children:i||"Loading..."})]}):(0,$e.jsxs)(yr,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh"},children:[l&&(0,$e.jsx)(sr,{severity:"error",children:l}),!l&&i&&(0,$e.jsx)(sr,{severity:"success",children:i}),(0,$e.jsx)(Cl,{variant:"contained",onClick:()=>t("/"),sx:{mt:2},children:"Go to Home"})]})};function WN(e){return(0,jt.Ay)("MuiListItem",e)}const VN=(0,Mt.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);const GN=(0,Mt.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function qN(e){return(0,jt.Ay)("MuiListItemSecondaryAction",e)}(0,Mt.A)("MuiListItemSecondaryAction",["root","disableGutters"]);const YN=["className"],QN=(0,nt.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),XN=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=(0,Oe.A)(n,YN),i=a.useContext(La),s=(0,Me.A)({},n,{disableGutters:i.disableGutters}),l=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,je.A)(r,qN,n)})(s);return(0,$e.jsx)(QN,(0,Me.A)({className:(0,ze.A)(l.root,r),ownerState:s,ref:t},o))}));XN.muiName="ListItemSecondaryAction";const KN=XN,JN=["className"],ZN=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","
2slots"],$N=(0,nt.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,Me.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(GN.root)]:{paddingRight:48}},{["&.".concat(VN.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(VN.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(VN.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(VN.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(VN.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Lt.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),eI=(0,nt.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),tI=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:f=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:A=!1,divider:v=!1,focusVisibleClassName:y,secondaryAction:b,selected:x=!1,slotProps:w={},slots:E={}}=n,C=(0,Oe.A)(n.ContainerProps,JN),S=(0,Oe.A)(n,ZN),T=a.useContext(La),k=a.useMemo((()=>({dense:f||T.dense||!1,alignItems:r,disableGutters:g})),[r,T.dense,f,g]),_=a.useRef(null);(0,vo.A)((()=>{o&&_.current&&_.current.focus()}),[o]);const N=a.Children.toArray(s),I=N.length&&(0,va.A)(N[N.length-1],["ListItemSecondaryAction"]),P=(0,Me.A)({},n,{alignItems:r,autoFocus:o,button:i,dense:k.dense,disabled:m,disableGutters:g,disablePadding:A,divider:v,hasSecondaryAction:I,selected:x}),R=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e,d={root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return(0,je.A)(d,WN,r)})(P),D=(0,kt.A)(_,t),L=E.root||u.Root||$N,O=w.root||d.root||{},M=(0,Me.A)({className:(0,ze.A)(R.root,O.className,l),disabled:m},S);let j=c||"li";return i&&(M.component=c||"div",M.focusVisibleClassName=(0,ze.A)(VN.focusVisible,y),j=zn),I?(j=M.c
2omponent||c?j:"div","li"===p&&("li"===j?j="div":"li"===M.component&&(M.component="div")),(0,$e.jsx)(La.Provider,{value:k,children:(0,$e.jsxs)(eI,(0,Me.A)({as:p,className:(0,ze.A)(R.container,h),ref:D,ownerState:P},C,{children:[(0,$e.jsx)(L,(0,Me.A)({},O,!Be(L)&&{as:j,ownerState:(0,Me.A)({},P,O.ownerState)},M,{children:N})),N.pop()]}))})):(0,$e.jsx)(La.Provider,{value:k,children:(0,$e.jsxs)(L,(0,Me.A)({},O,{as:j,ref:D},!Be(L)&&{ownerState:(0,Me.A)({},P,O.ownerState)},M,{children:[N,b&&(0,$e.jsx)(KN,{children:b})]}))})})),nI=tI,rI=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],oI=(0,nt.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(Ds.primary)]:t.primary},{["& .".concat(Ds.secondary)]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),aI=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=n,p=(0,Oe.A)(n,rI),{dense:h}=a.useContext(La);let f=null!=l?l:r,m=u;const g=(0,Me.A)({},n,{disableTypography:i,inset:s,primary:!!f,secondary:!!m,dense:h}),A=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e,i={root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,je.A)(i,Rs,t)})(g);return null==f||f.type===Tr||i||(f=(0,$e.jsx)(Tr,(0,Me.A)({variant:h?"body2":"body1",className:A.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:f}))),null==m||m.type===Tr||i||(m=(0,$e.jsx)(Tr,(0,Me.A)({variant:"body2",className:A.secondary,color:"text.secondary",display:"block"},d,{children:m}))),(0,$e.jsxs)(oI,(0,Me.A)({className:(0,ze.A)(A.root,o),ownerState:g,ref:t},p,{children:[f,m]}))})),iI=aI,sI=e=>{let{isOpen:t,onClose:n,onFileSelect:r,selectedFiles:o}=e;const[i,s]=(0,a.useState)([]),[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)("");(0,a.useEffect)((()=>{t&&f()}),[t]);const f=async()=>{c(!0);try{const e=await(async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/api/screening/files"),{headers:{Authorization:"Bearer ".concat(e)}});if(!t.ok)throw new Error("Failed to fetch user screening files");return await t.json()}catch(p){throw console.error("Error fetching user screening files:",p),p}})();s(e.files)}catch(e){h(e.message||"Failed to load files.")}finally{c(!1)}},m=e=>{c(!0),h(""),(async e=>{try{const t=await Ec();if(!(await fetch("".concat("https://api.medrpt.ai","/api/screening/files"),{method:"DELETE",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},body:JSON.stringify({file:e})})).ok)throw new Error("Failed to delete screening file")}catch(p){throw console.error("Error deleting screening file:",p),p}})(e).then((()=>{s(i.filter((t=>t.id!==e.id))),r({id:e.id,fileName:e.fileName},!0)})).catch((e=>{h(e.message||"Failed to delete file.")})).finally((()=>{c(!1)}))},g=e=>o.some((t=>t.id===e.id));return t?(0,$e.jsxs)(Ik,{open:t,onClose:n,fullWidth:!0,maxWidth:"sm",children:[(0,$e.jsx)(Ok,{children:"Select Files for Screening"}),(0,$e.jsxs)(qk,{dividers:!0,children:[o.length>0&&(0,$e.jsxs)(yr,{sx:{display:"flex",flexWrap:"wrap",gap:1,mb:2},children:[(0,$e.jsx)(Tr,{variant:"subtitle1",sx:{width:"100%",mb:1},children:"Selected Files:"}),o.map((e=>(0,$e.jsx)(SS,{label:e.fileName,onDelete:()=>r(e,!0),color:"primary"},e.id)))]}),(0,$e.jsx)(vk,{onUpload:async e=>{d(!0),h("");try{const t=await(async e=>{try{const t=await Ec(),n=new FormData;e.forEach((e=>{n.append("files",e)}));const r=await fetch("".concat("https://api.medrpt.ai","/api/screening/upload-pdfs"),{method:"POST",headers:{Authorization:"Bearer ".concat(t)},body:n});if(!r.ok){const e=await r.json();throw new Error(e.error||"Upload failed")}return await r.json()}catch(p){throw console.error("Error uploading PDF screening files:",p),p}})(e);await f(),console.log(t.files);for(const e of t.files)r(e,!1)}catch(t){h(t.message||"Upload failed")}finally{d(!1)}},isAdmin:!0}),u&&(0,$e.jsxs)(yr,{sx:{width:"100%",mt:2,mb:2,display:"flex",alignItems:"center",gap:2},children:[(0,$e.jsx)(aN,{sx:{flex:1}}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",sx:{minWidth:120},children:"Uploading files..."})]}),(0,$e.jsx)(Dr,{sx:{my:2}}),(0,$e.jsx)(Tr,{variant:"h6",gutterBottom:!0,children:"Select from Previous Uploads"}),l?(0,$e.jsx)(yr,{display:"flex",justifyContent:"center",my:2,children:(0,$e.jsx)(Hd,{})}):(0,$e.jsxs)(Ba,{sx:{maxHeight:300,overflow:"auto"},children:[0===i.length&&(0,$e.jsx)(nI,{children:(0,$e.jsx)(iI,{primary:"No previously uploaded files found."})}),i.map((e=>(0,$e.jsx)(nI,{button:!0,onClick:()=>r(e,g(e)),selected:g(e),secondaryAction:(0,$e.jsx)(Yn,{edge:"end","aria-label":"delete",onClick:t=>{t.stopPropagation(),m(e)},children:(0,$e.jsx)(Uk.A,{color:"error"})}),children:(0,$e.jsx)(iI,{primary:e.fileName})},e.id)))]})]}),(0,$e.jsx)(Bk,{children:(0,$e.jsx)(Cl,{onClick:n,color:"primary",children:"Done"})}),(0,$e.jsx)(en,{open:!!p,autoHideDuration:6e3,onClose:()=>h(""),children:(0,$e.jsx)(sr,{onClose:()=>h(""),severity:"error",sx:{width:"100%"},children:p})})]}):null};var lI=n(7598);const cI=["className","component","disableGutters","fixed","maxWidth","classes"],uI=(0,rt.A)(),dI=Gr("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,lI.A)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),pI=e=>Yr({props:e,name:"MuiContainer",defaultTheme:uI});const hI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=dI,useThemeProps:n=pI,componentName:r="MuiContainer"}=e,o=t((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{let{theme:t,ownerState:n}=e;return n.fixed&&Object.keys(t.breakpoints.values).reduce(((e,n)=>{const r=n,o=t.breakpoints.values[r];return 0!==o&&(e[t.breakpoints.up(r)]={maxWidth:"".concat(o).concat(t.breakpoints.unit)}),e}),{})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},"xs"===n.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},n.maxWidth&&"xs"!==n.maxWidth&&{[t.breakpoints.up(n.maxWidth)]:{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)}})})),i=a.forwardRef((function(e,t){const a=n(e),{className:i,component:s="div",disableGutters:l=!1,fixed:c=!1,maxWidth:u="lg"}=a,d=(0,Oe.A)(a,cI),p=(0,Me.A)({},a,{component:s,disableGutters:l,fixed:c,maxWidth:u}),h=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:a}=e,i={root:["root",a&&"maxWidth".concat((0,lI.A)(String(a))),r&&"fixed",o&&"disableGutters"]};return(0,je.A)(i,(e=>(0,jt.Ay)(t,e)),n)})(p,r);return(0,$e.jsx)(o,(0,Me.A)({as:s,ownerState:p,className:(0,ze.A)(h.root,i),ref:t},d))}));return i}({createStyledComponent:(0,nt.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,pt.A)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,dt.b)({props:e,name:"MuiContainer"})}),fI=hI;const mI=a.createContext();function gI(e){return(0,jt.Ay)("MuiGrid",e)}const AI=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],vI=(0,Mt.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>"spacing-xs-".concat(e))),...["column-reverse","column","row-reverse","row"].map((e=>"direction-xs-".concat(e))),...["nowrap","wrap-reverse","wrap"].map((e=>"wrap-xs-".concat(e))),...AI.map((e=>"grid-xs-".concat(e))),...AI.map((e=>"grid-sm-".concat(e))),...AI.map((e=>"grid-md-".concat(e))),...AI.map((e=>"grid-lg-".concat(e))),...AI.map((e=>"grid-xl-".concat(e)))]),yI=vI,bI=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xI(e){const t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function wI(e){let{breakpoints:t,values:n}=e,r="";
2Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const o=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return o.slice(0,o.indexOf(r))}const EI=(0,nt.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n["spacing-".concat(t,"-").concat(String(o))])})),r}(i,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])})),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t["direction-xs-".concat(String(o))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})((e=>{let{ownerState:t}=e;return(0,Me.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const r=(0,Qr.kW)({values:n.direction,breakpoints:t.breakpoints.values});return(0,Qr.NI)({theme:t},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(yI.item)]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:o}=n;let a={};if(r&&0!==o){const e=(0,Qr.kW)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=wI({breakpoints:t.breakpoints.values,values:e})),a=(0,Qr.NI)({theme:t},e,((e,r)=>{var o;const a=t.spacing(e);return"0px"!==a?{marginTop:"-".concat(xI(a)),["& > .".concat(yI.item)]:{paddingTop:xI(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,["& > .".concat(yI.item)]:{paddingTop:0}}}))}return a}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:o}=n;let a={};if(r&&0!==o){const e=(0,Qr.kW)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=wI({breakpoints:t.breakpoints.values,values:e})),a=(0,Qr.NI)({theme:t},e,((e,r)=>{var o;const a=t.spacing(e);return"0px"!==a?{width:"calc(100% + ".concat(xI(a),")"),marginLeft:"-".concat(xI(a)),["& > .".concat(yI.item)]:{paddingLeft:xI(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(yI.item)]:{paddingLeft:0}}}))}return a}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=(0,Qr.kW)({values:r.columns,breakpoints:n.breakpoints.values}),s="object"===typeof i?i[o]:i;if(void 0===s||null===s)return e;const l="".concat(Math.round(t/s*1e8)/1e6,"%");let c={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t="calc(".concat(l," + ").concat(xI(e),")");c={flexBasis:t,maxWidth:t}}}a=(0,Me.A)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));const CI=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e="spacing-".concat(t,"-").concat(String(r));n.push(e)}})),n}(a,l));const u=[];l.forEach((t=>{const n=e[t];n&&u.push("grid-".concat(t,"-").concat(String(n)))}));const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==i&&"wrap-xs-".concat(String(i)),...u]};return(0,je.A)(d,gI,t)},SI=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiGrid"}),{breakpoints:r}=ut(),o=(0,pr.A)(n),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:f=0,wrap:m
2="wrap",zeroMinWidth:g=!1}=o,A=(0,Oe.A)(o,bI),v=h||f,y=l||f,b=a.useContext(mI),x=u?s||12:b,w={},E=(0,Me.A)({},A);r.keys.forEach((e=>{null!=A[e]&&(w[e]=A[e],delete E[e])}));const C=(0,Me.A)({},o,{columns:x,container:u,direction:d,item:p,rowSpacing:v,columnSpacing:y,wrap:m,zeroMinWidth:g,spacing:f},w,{breakpoints:r.keys}),S=CI(C);return(0,$e.jsx)(mI.Provider,{value:x,children:(0,$e.jsx)(EI,(0,Me.A)({ownerState:C,className:(0,ze.A)(S.root,i),as:c,ref:t},E))})}));const TI=SI;function kI(e){return(0,jt.Ay)("MuiCard",e)}(0,Mt.A)("MuiCard",["root"]);const _I=["className","raised"],NI=(0,nt.Ay)(zt,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),II=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,a=(0,Oe.A)(n,_I),i=(0,Me.A)({},n,{raised:o}),s=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"]},kI,t)})(i);return(0,$e.jsx)(NI,(0,Me.A)({className:(0,ze.A)(s.root,r),elevation:o?8:void 0,ref:t,ownerState:i},a))}));function PI(e){return(0,jt.Ay)("MuiCardActionArea",e)}const RI=(0,Mt.A)("MuiCardActionArea",["root","focusVisible","focusHighlight"]),DI=["children","className","focusVisibleClassName"],LI=(0,nt.Ay)(zn,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",["&:hover .".concat(RI.focusHighlight)]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},["&.".concat(RI.focusVisible," .").concat(RI.focusHighlight)]:{opacity:(t.vars||t).palette.action.focusOpacity}}})),OI=(0,nt.Ay)("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})((e=>{let{theme:t}=e;return{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}})),MI=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiCardActionArea"}),{children:r,className:o,focusVisibleClassName:a}=n,i=(0,Oe.A)(n,DI),s=n,l=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"],focusHighlight:["focusHighlight"]},PI,t)})(s);return(0,$e.jsxs)(LI,(0,Me.A)({className:(0,ze.A)(l.root,o),focusVisibleClassName:(0,ze.A)(a,l.focusVisible),ref:t,ownerState:s},i,{children:[r,(0,$e.jsx)(OI,{className:l.focusHighlight,ownerState:s})]}))})),jI=MI;function FI(e){return(0,jt.Ay)("MuiCardContent",e)}(0,Mt.A)("MuiCardContent",["root"]);const BI=["className","component"],UI=(0,nt.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),zI=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiCardContent"}),{className:r,component:o="div"}=n,a=(0,Oe.A)(n,BI),i=(0,Me.A)({},n,{component:o}),s=(e=>{const{classes:t}=e;return(0,je.A)({root:["root"]},FI,t)})(i);return(0,$e.jsx)(UI,(0,Me.A)({as:o,className:(0,ze.A)(s.root,r),ownerState:i,ref:t},a))}));function HI(e){return(0,jt.Ay)("MuiLink",e)}const WI=(0,Mt.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var VI=n(7162);const GI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qI=e=>{let{theme:t,ownerState:n}=e;const r=(e=>GI[e]||e)(n.color),o=(0,VI.Yn)(t,"palette.".concat(r),!1)||n.color,a=(0,VI.Yn)(t,"palette.".concat(r,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,Lt.X4)(o,.4)},YI=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],QI=(0,nt.Ay)(Tr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["underline".concat((0,pt.A)(n.underline))],"button"===n.component&&t.button]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,Me.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:qI({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(WI.focusVisible)]:{outline:"auto"}})})),XI=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:s,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=n,h=(0,Oe.A)(n,YI),{isFocusVisibleRef:f,onBlur:m,onFocus:g,ref:A}=(0,cn.A)(),[v,y]=a.useState(!1),b=(0,kt.A)(t,A),x=(0,Me.A)({},n,{color:o,component:i,focusVisible:v,underline:u,variant:d}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root","underline".concat((0,pt.A)(o)),"button"===n&&"button",r&&"focusVisible"]};return(0,je.A)(a,HI,t)})(x);return(0,$e.jsx)(QI,(0,Me.A)({color:o,className:(0,ze.A)(w.root,r),classes:c,component:i,onBlur:e=>{m(e),!1===f.current&&y(!1),s&&s(e)},onFocus:e=>{g(e),!0===f.current&&y(!0),l&&l(e)},ref:b,ownerState:x,variant:d,sx:[...Object.keys(GI).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},h))})),KI=XI;var JI=n(4802);const ZI=e=>{let{job:t,onClose:n}=e;const[r,o]=(0,a.useState)([]),[i,s]=(0,a.useState)(!0),[l,c]=(0,a.useState)(null);return(0,a.useEffect)((()=>{(async()=>
2{if(t){s(!0),c(null);try{const e=await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/scheduledSearch/").concat(e),{method:"GET",headers:{Authorization:"Bearer ".concat(t)}});if(!n.ok)throw new Error("Failed to fetch scheduled job history");return await n.json()}catch(l){throw console.error("Error fetching scheduled job history:",l),l}})(t.id);o(Array.isArray(e)?e:[])}catch(e){c(e.message)}finally{s(!1)}}})()}),[t]),(0,$e.jsxs)(Ik,{open:!0,onClose:n,fullWidth:!0,maxWidth:"md",children:[(0,$e.jsxs)(Ok,{children:[(0,$e.jsx)(Tr,{variant:"h6",children:"Run History"}),(0,$e.jsx)(Yn,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,$e.jsx)(JI.A,{})})]}),(0,$e.jsxs)(qk,{dividers:!0,children:[(0,$e.jsxs)(Tr,{gutterBottom:!0,children:[(0,$e.jsx)("strong",{children:"For:"})," ",t.question]}),i&&(0,$e.jsx)(yr,{sx:{display:"flex",justifyContent:"center",my:2},children:(0,$e.jsx)(Hd,{})}),l&&(0,$e.jsx)(sr,{severity:"error",sx:{my:2},children:l}),!i&&!l&&(r.length>0?(0,$e.jsx)(Ba,{children:r.map(((e,t)=>(0,$e.jsxs)(a.Fragment,{children:[(0,$e.jsx)(nI,{alignItems:"flex-start",children:(0,$e.jsx)(iI,{primary:"Run Date: ".concat(new Date(e.createdAt).toLocaleString()),secondary:(0,$e.jsxs)(a.Fragment,{children:[(0,$e.jsxs)(Tr,{component:"span",variant:"body2",color:"text.primary",children:["Status: ",e.status]}),"Completed"===e.status&&(0,$e.jsx)(KI,{href:"/search/".concat(e.id),target:"_blank",rel:"noopener noreferrer",sx:{ml:2},children:"View Report"}),"Error"===e.status&&(0,$e.jsxs)(Tr,{component:"p",variant:"body2",color:"error",children:["Error: ",e.error]})]})})}),t<r.length-1&&(0,$e.jsx)(Dr,{variant:"inset",component:"li"})]},e.id)))}):(0,$e.jsx)(Tr,{sx:{my:2},children:"No run history found for this scheduled search."}))]}),(0,$e.jsx)(Bk,{children:(0,$e.jsx)(Cl,{onClick:n,children:"Close"})})]})},$I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{selectedSex:t="",age:n="",fromDate:r,toDate:o,fromYear:a,toYear:i,abstracts:s="",studyDesigns:l=[]}=e,c=a?"".concat(a,"/01/01"):"",u=i?"".concat(i,"/12/31"):"";return{selectedSex:t,age:n,fromDate:r||c,toDate:o||u,abstracts:s,studyDesigns:l}},eP=e=>{let{job:t,onClose:n,onSave:r}=e;const{setFilters:o}=(0,a.useContext)(lr),{pico:i,setPico:s}=(0,a.useContext)(Zc),[l,c]=(0,a.useState)(t.question),[u,d]=(0,a.useState)(t.query||""),[p,h]=(0,a.useState)((()=>$I(t.filters))),[f,m]=(0,a.useState)(t.searchMode||"public"),[g,A]=(0,a.useState)(t.frequency||ru.WEEKLY),[v,y]=(0,a.useState)([]),[b,x]=(0,a.useState)(!1),[w,E]=(0,a.useState)({from:"",to:""});(0,a.useEffect)((()=>{(async()=>{try{x(!0);const e=(await Nc()).map((e=>({value:e.value,label:e.label})));y(e)}catch(w){console.error("Error loading study designs",w)}finally{x(!1)}})();const e=$I(t.filters);s(t.pico),c(t.question),d(t.query||""),h(e),m(t.searchMode||"public"),A(t.frequency||ru.QUARTERLY),o(e)}),[]),(0,a.useEffect)((()=>{o(p)}),[p,o]);const C=()=>{let e=!0;const t={from:"",to:""},n=/^\d{4}\/\d{2}\/\d{2}$/,r=e=>{if(!n.test(e))return null;const[t,r,o]=e.split("/"),a=Number(t),i=Number(r),s=Number(o),l=new Date(a,i-1,s);return l.getFullYear()!==a||l.getMonth()!==i-1||l.getDate()!==s?null:l},o=p.fromDate?r(p.fromDate):null,a=p.toDate?r(p.toDate):null;return p.fromDate&&!o&&(t.from="Enter a valid date in YYYY/MM/DD format",e=!1),p.toDate&&!a&&(t.to="Enter a valid date in YYYY/MM/DD format",e=!1),o&&a&&o>a&&(t.from="From date cannot be after To date",e=!1),E(t),e};return(0,$e.jsxs)(Ik,{open:!0,onClose:n,maxWidth:"md",fullWidth:!0,children:[(0,$e.jsx)(Ok,{children:"Edit Scheduled Search"}),(0,$e.jsxs)(qk,{children:[(0,$e.jsx)(Is,{label:"Question",value:l,onChange:e=>c(e.target.value),fullWidth:!0,margin:"normal"}),(0,$e.jsx)(yr,{my:2,children:(0,$e.jsx)(eu,{})}),(0,$e.jsx)(yr,{my:2,children:(0,$e.jsx)(tu,{query:u,setQuery:d})}),(0,$e.jsx)(Dr,{sx:{my:2}}),(0,$e.jsx)(Tr,{variant:"h6",children:"Search Filters"}),(0,$e.jsxs)(ro,{direction:"row",spacing:2,sx:{my:2},children:[(0,$e.jsx)(Is,{label:"From Date",placeholder:"YYYY/MM/DD",variant:"outlined",value:p.fromDate,onChange:e=>h((t=>({...t,fromDate:e.target.value}))),error:!!w.from,helperText:w.from,size:"small"}),(0,$e.jsx)(Is,{label:"To Date",placeholder:"YYYY/MM/DD",variant:"outlined",value:p.toDate,onChange:e=>h((t=>({...t,toDate:e.target.value}))),error:!!w.to,helperText:w.to,size:"small"})]}),(0,$e.jsx)(Ea,{size:"small",variant:"outlined",fullWidth:!0,sx:{my:2},children:(0,$e.jsxs)(Cs,{value:f,onChange:e=>m(e.target.value),displayEmpty:!0,children:[(0,$e.jsx)(Bs,{value:"public",children:"Public"}),(0,$e.jsx)(Bs,{value:"private",children:"Private"})]})}),(0,$e.jsxs)(Ea,{size:"small",variant:"outlined",fullWidth:!0,sx:{my:2},children:[(0,$e.jsx)(Aa,{children:"Frequency"}),(0,$e.jsx)(Cs,{value:g,onChange:e=>A(e.target.value),label:"Frequency",children:Object.values(ru).map((e=>(0,$e.jsx)(Bs,{value:e,children:e},e)))})]}),(0,$e.jsx)(Tr,{variant:"h6",component:"h3",sx:{mt:2},children:"Methodology"}),b?(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",children:"Loading study designs..."}):(0,$e.jsx)(Ws,{children:v.map((e=>(0,$e.jsx)(Xs,{control:(0,$e.jsx)(hl,{checked:p.studyDesigns.includes(e.value),onChange:t=>{return n=e.value,r=t.target.checked,void h((e=>({...e,studyDesigns:r?[...e.studyDesigns,n]:e.studyDesigns.filter((e=>e!==n))})));var n,r},value:e.value,size:"small"}),label:e.label},e.value)))})]}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:n,children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:()=>{C()&&r({...t,question:l,pico:i,query:u,filters:p,searchMode:f,frequency:g})},variant:"contained",children:"Save"})]})]})},tP=(0,Qn.A)((0,$e.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),nP=(0,Qn.A)((0,$e.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),rP=()=>{const{user:e}=rd((e=>[e.user])),[t,n]=(0,a.useState)([]),[r,o]=(0,a.useState)(null),[i,s]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)(null),[p,h]=(0,a.useState)(!0),[f,m]=(0,a.useState)(null);(0,a.useEffect)((()=>{e&&g()}),[]);const g=async()=>{try{h(!0);const e=await(async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/scheduledSearch"),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-type":"application/json"}});if(!t.ok)throw new Error("Failed to fetch scheduled jobs");return await t.json()}catch(f){throw console.error("Error fetching scheduled jobs:",f),f}})();n(e)}catch(e){m(e.message)}finally{h(!1)}},A=()=>{c(!1),o(null)};return p?(0,$e.jsx)(fI,{sx:{py:4,display:"flex",justifyContent:"center"},children:(0,$e.jsx)(Hd,{})}):f?(0,$e.jsx)(fI,{sx:{py:4},children:(0,$e.jsx)(sr,{severity:"error",children:f})}):(0,$e.jsxs)(fI,{sx:{py:4},children:[(0,$e.jsx)(Tr,{variant:"h4",component:"h1",gutterBottom:!0,children:"Your Scheduled Searches"}),0===t.length?(0,$e.jsx)(Tr,{children:"You have no scheduled searches."}):(0,$e.jsx)(TI,{container:!0,spacing:1,children:t.map((e=>(0,$e.jsx)(TI,{item:!0,xs:12,children:(0,$e.jsx)(II,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:(0,$e.jsx)(jI,{onClick:()=>(e=>{o(e),s(!0)})(e),sx:{flexGrow:1},children:(0,$e.jsxs)(zI,{children:[(0,$e.jsxs)(yr,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:0,margin:0},children:[(0,$e.jsx)(Tr,{gutterBottom:!0,variant:"h6",component:"h6",noWrap:!0,children:e.question}),(0,$e.jsxs)(yr,{sx:{display:"flex",p:0},children:[(0,$e.jsx)(gk,{title:"Edit",children:(0,$e.jsx)(Yn,{onClick:()=>(e=>{o(e),c(!0)})(e),children:(0,$e.jsx)(tP,{color:"primary"})})}),(0,$e.jsx)(gk,{title:"Delete",children:(0,$e.jsx)(Yn,{onClick:()=>(e=>{d(e)})(e),children:(0,$e.jsx)(nP,{color:"error"})})})]})]}),(0,$e.jsxs)(yr,{sx:{mb:1,display:"flex",gap:2,flexWrap:"wrap",p:0},children:[(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",children:[(0,$e.jsx)("strong",{children:"Next Run:"})," ",new Date(e.nextRunAt).toLocaleDateString()]}),(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",children:[(0,$e.jsx)("strong",{children:"Search Mode:"})," ",e.searchMode]}),(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",children:[(0,$e.jsx)("strong",{children:"Frequency:"})," ",e.frequency]})]}),e.query&&(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",noWrap:!0,children:[(0,$e.jsx)("strong",{children:"Query:"})," ",e.query]}),e.pico&&"object"===typeof e.pico&&(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",noWrap:!0,children:[(0,$e.jsx)("strong",{children:"Population:"})," ",e.pico.P]}),(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",noWrap:!0,children:[(0,$e.jsx)("strong",{children:"Intervention:"})," ",e.pico.I]}),(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",noWrap:!0,children:[(0,$e.jsx)("strong",{children:"Comparison:"})," ",e.pico.C]}),(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",noWrap:!0,children:[(0,$e.jsx)("strong",{children:"Outcome:"})," ",e.pico.O]})]}),e.filters&&"object"===typeof e.filters&&(0,$e.jsx)(yr,{sx:{display:"flex",flexWrap:"wrap",gap:2,p:0},children:Object.entries(e.filters).filter((e=>{let[t,n]=e;return n&&(!Array.isArray(n)||n.length>0)})).map((e=>{let[t,n]=e;return(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",noWrap:!0,children:[(0,$e.jsxs)("strong",{children:[t.replace(/([A-Z])/g," $1").replace(/^./,(e=>e.toUpperCase())),":"]})," ",Array.isArray(n)?n.join(", "):n]},t)}))})]})})})},e.id)))}),i&&r&&(0,$e.jsx)(ZI,{job:r,onClose:()=>{s(!1),o(null)}}),l&&r&&(0,$e.jsx)(eP,{job:r,onClose:A,onSave:async e=>{try{const r=await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/scheduledSearch/").concat(e),{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)},body:JSON.stringify(t)});if(!r.ok)throw new Error("Failed to update scheduled job");return await r.json()}catch(f){throw console.error("Error updating scheduled job:",f),f}})(e.id,e);n(t.map((t=>t.id===e.id?r:t))),A()}catch(r){m(r.message)}}}),(0,$e.jsxs)(Ik,{open:!!u,onClose:()=>d(null),children:[(0,$e.jsx)(Ok,{children:"Confirm Deletion"}),(0,$e.jsx)(qk,{children:(0,$e.jsx)(Tr,{children:"Are you sure you want to delete this scheduled search?"})}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:()=>d(null),children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{try{await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/scheduledSearch/").concat(e),{method:"DELETE",headers:{Authorization:"Bearer ".concat(t)}});if(!n.ok)throw new Error("Failed to delete scheduled job");return await n.json()}catch(f){throw console.error("Error deleting scheduled job:",f),f}})(u.id),n(t.filter((e=>e.id!==u.id))),d(null)}catch(e){m(e.message)}},color:"error",children:"Delete"})]})]})]})};const oP=function(){return(0,$e.jsx)(rP,{})};const aP=function(){const e=te(),[t,n]=(0,a.useState)([]),[r,o]=(0,a.useState)(!0),[i,s]=(0,a.useState)(null),[l,c]=(0,a.useState)({open:!1,message:"",severity:"success"}),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(""),[f,m]=(0,a.useState)(""),[g,A]=(0,a.useState)(""),[v,y]=(0,a.useState)(!1),b=!r&&0===t.length;(0,a.useEffect)((()=>{(async()=>{o(!0),s(null);try{const e=await(async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/api/enterprise/detail
2s"),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){const e=await t.json();throw new Error(e.error||"Failed to fetch enterprises")}return await t.json()}catch(i){throw console.error("Error fetching enterprise details:",i),i}})();n(e||[])}catch(i){s(i.message||"Failed to fetch enterprises. Please try again."),console.error("Error fetching enterprises:",i)}finally{o(!1)}})()}),[]);const x=()=>{d(!1),h(""),m(""),A(""),s(null)},w=(e,t)=>{"clickaway"!==t&&c((e=>({...e,open:!1})))};return(0,$e.jsxs)("div",{children:[(0,$e.jsx)(yr,{sx:{display:"flex",justifyContent:b?"center":"flex-end",mb:2,width:"100%",pt:b?"12%":0},children:(0,$e.jsx)(Cl,{variant:"contained",onClick:()=>{d(!0)},sx:{backgroundColor:" #49994C","&:hover":{backgroundColor:"darkgreen"}},children:"Create Enterprise"})}),i&&(0,$e.jsx)(sr,{severity:"error",sx:{mb:2},children:i}),r?(0,$e.jsx)(yr,{sx:{display:"flex",justifyContent:"center",mt:4},children:(0,$e.jsx)(Hd,{})}):t.length>0&&(0,$e.jsx)(x_,{component:zt,className:"enterprise-table-container",children:(0,$e.jsxs)(o_,{sx:{minWidth:650},"aria-label":"enterprises table",children:[(0,$e.jsx)(k_,{children:(0,$e.jsxs)(L_,{children:[(0,$e.jsxs)(A_,{children:[(0,$e.jsx)("strong",{children:"Company Name"}),(0,$e.jsx)("br",{}),(0,$e.jsx)("span",{})]}),(0,$e.jsx)(A_,{children:(0,$e.jsx)("strong",{children:"Capacity"})}),(0,$e.jsx)(A_,{children:(0,$e.jsx)("strong",{children:"Expiry Date"})}),(0,$e.jsx)(A_,{children:(0,$e.jsx)("strong",{children:"isActive"})})]})}),(0,$e.jsx)(d_,{children:t.map((t=>(0,$e.jsxs)(L_,{hover:!0,onClick:()=>{return n=t.id,void e("/enterprise/".concat(n));var n},children:[(0,$e.jsx)(A_,{children:t.name||"N/A"}),(0,$e.jsx)(A_,{children:t.capacity||"N/A"}),(0,$e.jsx)(A_,{children:t.expiryDate?t.expiryDate.includes("T")?t.expiryDate.split("T")[0]:t.expiryDate:"N/A"}),(0,$e.jsx)(A_,{children:t.isActive?"Yes":"No"})]},t.id)))})]})}),(0,$e.jsxs)(Ik,{open:u,onClose:x,"aria-labelledby":"create-enterprise-dialog-title",children:[(0,$e.jsx)(Ok,{id:"create-enterprise-dialog-title",children:"Create Enterprise"}),(0,$e.jsxs)(qk,{children:[(0,$e.jsx)(Is,{autoFocus:!0,margin:"dense",label:"Enterprise Name",type:"text",fullWidth:!0,variant:"outlined",value:p,onChange:e=>h(e.target.value),InputLabelProps:{sx:{"&.Mui-focused":{color:"#000"}}},sx:{mb:2,"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:" #49994C"}},required:!0}),(0,$e.jsx)(Is,{autoFocus:!0,fullWidth:!0,label:"Capacity",type:"number",margin:"dense",variant:"outlined",value:f,onChange:e=>m(e.target.value),InputLabelProps:{sx:{"&.Mui-focused":{color:"#000"}}},sx:{mb:2,"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:" #49994C"}},required:!0}),(0,$e.jsx)(Is,{fullWidth:!0,label:"Expiry Date",type:"date",variant:"outlined",size:"small",margin:"dense",value:g,onChange:e=>A(e.target.value),InputLabelProps:{shrink:!0,sx:{"&.Mui-focused":{color:"#000"}}},inputProps:{min:(new Date).toISOString().split("T")[0]},sx:{mb:2,backgroundColor:"#f5f5f5","& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:" #49994C"}}})]}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:x,sx:{color:" #49994C"},children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{if(p.trim()){y(!0),s(null);try{const e=await(async(e,t,n)=>{try{const r=await Ec(),o=await fetch("".concat("https://api.medrpt.ai","/api/enterprise/createEnterprise"),{method:"POST",headers:{Authorization:"Bearer ".concat(r),"Content-Type":"application/json"},body:JSON.stringify({name:e,capacity:t,expiryDate:n})});if(!o.ok){const e=await o.json();throw new Error(e.error||"Failed to create enterprise")}const a=await o.json();return a.enterprise||a}catch(i){throw console.error("Error creating enterprise:",i),i}})(p,f?parseInt(f):null,g||null);n([...t,e]),d(!1),h(""),m(""),A(""),c({open:!0,message:"Enterprise created successfully!",severity:"success"})}catch(i){s(i.message||"Failed to create enterprise. Please try again."),console.error("Error creating enterprise:",i)}finally{y(!1)}}else s("Enterprise Name required.")},variant:"contained",disabled:!p.trim()||v,sx:{backgroundColor:" #49994C","&:hover":{backgroundColor:"darkgreen"}},children:v?"Creating...":"Create"})]})]}),(0,$e.jsx)(en,{open:l.open,autoHideDuration:4e3,onClose:w,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,$e.jsx)(sr,{onClose:w,severity:l.severity,sx:{width:"100%"},children:l.message})})]})};function iP(e){return(0,jt.Ay)("MuiSwitch",e)}const sP=(0,Mt.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lP=["className","color","edge","size","sx"],cP=(0,nt.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t["edge".concat((0,pt.A)(n.edge))],t["size".concat((0,pt.A)(n.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(sP.thumb)]:{width:16,height:16},["& .".concat(sP.switchBase)]:{padding:4,["&.".concat(sP.checked)]:{transform:"translateX(16px)"}}}}]}),uP=(0,nt.Ay)(tl,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{["& .".concat(sP.input)]:t.input},"default"!==n.color&&t["color".concat((0,pt.A)(n.color))]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(sP.checked)]:{transform:"translateX(20px)"},["&.".concat(sP.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(sP.checked," + .").concat(sP.track)]:{opacity:.5},["&.".concat(sP.disabled," + .").concat(sP.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(sP.input)]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[n]=e;return{props:{color:n},style:{["&.".concat(sP.checked)]:{color:(t.vars||t).palette[n].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Lt.X4)(t.palette[n].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(sP.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(n,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,Lt.a)(t.palette[n].main,.62):(0,Lt.e$)(t.palette[n].main,.55))}},["&.".concat(sP.checked," + .").concat(sP.track)]:{backgroundColor:(t.vars||t).palette[n].main}}}}))]}})),dP=(0,nt.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}
2),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),pP=(0,nt.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),hP=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:a=!1,size:i="medium",sx:s}=n,l=(0,Oe.A)(n,lP),c=(0,Me.A)({},n,{color:o,edge:a,size:i}),u=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&"edge".concat((0,pt.A)(n)),"size".concat((0,pt.A)(r))],switchBase:["switchBase","color".concat((0,pt.A)(o)),a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,je.A)(s,iP,t);return(0,Me.A)({},t,l)})(c),d=(0,$e.jsx)(pP,{className:u.thumb,ownerState:c});return(0,$e.jsxs)(cP,{className:(0,ze.A)(u.root,r),sx:s,ownerState:c,children:[(0,$e.jsx)(uP,(0,Me.A)({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:c},l,{classes:(0,Me.A)({},u,{root:u.switchBase})})),(0,$e.jsx)(dP,{className:u.track,ownerState:c})]})})),fP=hP;const mP=function(){const{enterpriseId:e}=ne(),[t,n]=(0,a.useState)(null),[r,o]=(0,a.useState)([]),[i,s]=(0,a.useState)(!0),[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),[f,m]=(0,a.useState)(null),[g,A]=(0,a.useState)(""),[v,y]=(0,a.useState)(!0),[b,x]=(0,a.useState)(!1),[w,E]=(0,a.useState)(!1),[C,S]=(0,a.useState)({open:!1,message:"",severity:"success"});(0,a.useEffect)((()=>{e&&((async()=>{s(!0),c(null);try{const t=await Mc(e);n(t.enterpriseData),o(t.enterpriseUsers||[])}catch(t){c(t.message||"Failed to fetch enterprise details. Please try again."),console.error("Error fetching enterprise:",t)}finally{s(!1)}})(),(async()=>{try{var e;const t=await Oc();E((null===t||void 0===t||null===(e=t.user)||void 0===e?void 0:e.isMedRPTAdmin)||!1)}catch(l){console.error("Error checking admin status:",l),E(!1)}})())}),[e]);const T=(e,t)=>{"clickaway"!==t&&S((e=>({...e,open:!1})))};return i?(0,$e.jsx)("div",{className:"enterprise-detail-container",children:(0,$e.jsx)(yr,{sx:{display:"flex",justifyContent:"center",mt:4},children:(0,$e.jsx)(Hd,{})})}):t?(0,$e.jsxs)(fI,{sx:{py:4},children:[l&&(0,$e.jsx)(sr,{severity:"error",sx:{mb:2},children:l}),(0,$e.jsxs)(yr,{className:"enterprise-details-section",children:[(0,$e.jsxs)(yr,{sx:{mb:3},children:[(0,$e.jsx)(Tr,{gutterBottom:!0,variant:"h6",component:"h6",noWrap:!0,children:"Name"}),(0,$e.jsx)(Is,{fullWidth:!0,value:t.name||"",onChange:e=>{n({...t,name:e.target.value})},variant:"outlined",size:"small",disabled:!w,InputLabelProps:{sx:{"&.Mui-focused":{color:"#000"}}},sx:{mb:2,backgroundColor:w?"inherit":"#f5f5f5","& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:" #49994C"}}})]}),(0,$e.jsxs)(yr,{sx:{display:"flex",gap:3,mb:3,flexWrap:"wrap"},children:[(0,$e.jsxs)(yr,{sx:{flex:1,p:0},children:[(0,$e.jsx)(Tr,{gutterBottom:!0,variant:"h6",component:"h6",noWrap:!0,children:"Capacity"}),(0,$e.jsx)(Is,{fullWidth:!0,value:t.capacity||"",onChange:e=>{n({...t,capacity:e.target.value})},variant:"outlined",size:"small",type:"number",disabled:!w,InputLabelProps:{sx:{"&.Mui-focused":{color:"#000"}}},sx:{mb:2,backgroundColor:w?"inherit":"#f5f5f5","& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:" #49994C"}}})]}),(0,$e.jsxs)(yr,{sx:{flex:1,p:0},children:[(0,$e.jsx)(Tr,{gutterBottom:!0,variant:"h6",component:"h6",noWrap:!0,children:"Number Of Users"}),(0,$e.jsx)(Is,{fullWidth:!0,value:r.length||0,variant:"outlined",size:"small",disabled:!0,InputLabelProps:{sx:{"&.Mui-focused":{color:"#000"}}},sx:{mb:2,backgroundColor:"#f5f5f5","& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:" #49994C"}}})]}),(0,$e.jsxs)(yr,{sx:{flex:1,p:0},children:[(0,$e.jsx)(Tr,{gutterBottom:!0,variant:"h6",component:"h6",noWrap:!0,children:"Expiry Date"}),(0,$e.jsx)(Is,{fullWidth:!0,type:"date",value:t.expiryDate?t.expiryDate.includes("T")?t.expiryDate.split("T")[0]:t.expiryDate:"",onChange:e=>{n({...t,expiryDate:e.target.value})},variant:"outlined",size:"small",disabled:!w,InputLabelProps:{shrink:!0},inputProps:{min:(new Date).toISOString().split("T")[0]},sx:{mb:2,backgroundColor:"#f5f5f5","& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:" #49994C"}}})]}),w&&(0,$e.jsxs)(yr,{sx:{flex:1,p:0},children:[(0,$e.jsx)(Tr,{gutterBottom:!0,variant:"h6",component:"h6",noWrap:!0,children:"IsActive"}),(0,$e.jsx)(Xs,{control:(0,$e.jsx)(fP,{checked:t.isActive||!1,onChange:async e=>{const r=e.target.checked;n({...t,isActive:r})},disabled:b,color:"success"}),label:t.isActive?"Active":"Inactive"})]})]}),w&&(0,$e.jsx)(yr,{sx:{display:"flex",justifyContent:"flex-start","@media (max-width: 767px)":{justifyContent:"center"}},children:(0,$e.jsx)(Cl,{variant:"contained",onClick:async()=>{x(!0),c(null);try{await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/enterprise/").concat(e),{method:"PUT",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){const e=await r.json();throw new Error(e.error||"Failed to update enterprise")}}catch(l){throw console.error("Error updating enterprise:",l),l}})(e,{name:t.name,capacity:t.capacity,isActive:t.isActive,expiryDate:t.expiryDate}),S({open:!0,message:"Enterprise updated successfully!",severity:"success"})}catch(n){c(n.message||"Failed to save changes. Please try again."),console.error("Error updating enterprise:",n)}finally{x(!1)}},disabled:b,sx:{mb:3,backgroundColor:" #49994C","&:hover":{backgroundColor:"darkgreen"}},children:b?"Saving...":"Save Changes"})})]}),(0,$e.jsxs)(yr,{className:"enterprise-users-section",children:[(0,$e.jsxs)(yr,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,"@media (max-width: 767px)":{flexDirection:"column-reverse",gap:5}},children:[(0,$e.jsx)(Tr,{variant:"h6",children:"Users"}),(0,$e.jsx)(Cl,{variant:"contained",onClick:()=>{d(!0)}
2,sx:{mb:3,"@media (max-width: 767px)":{mb:0},backgroundColor:" #49994C","&:hover":{backgroundColor:"darkgreen"}},children:"Create User"})]}),(0,$e.jsx)(yr,{children:0===r.length?(0,$e.jsx)(Tr,{variant:"body1",sx:{p:0},children:"No users found."}):(0,$e.jsx)(x_,{component:zt,children:(0,$e.jsxs)(o_,{sx:{minWidth:650},"aria-label":"users table",children:[(0,$e.jsx)(k_,{children:(0,$e.jsxs)(L_,{children:[(0,$e.jsx)(A_,{children:"User Email"}),(0,$e.jsx)(A_,{children:"Is Admin"})]})}),(0,$e.jsx)(d_,{children:r.map((e=>(0,$e.jsxs)(L_,{children:[(0,$e.jsx)(A_,{children:e.email}),(0,$e.jsx)(A_,{children:"ADMIN"===e.EnterpriseUserRole?"Yes":"No"}),(0,$e.jsx)(A_,{children:(0,$e.jsx)(Cl,{variant:"outlined",color:"error",size:"small",onClick:()=>{return t=e.userId,m(t),void h(!0);var t},children:"Delete"})})]},e.userId)))})]})})})]}),(0,$e.jsxs)(Ik,{open:u,onClose:()=>d(!1),"aria-labelledby":"create-user-dialog-title",children:[(0,$e.jsx)(Ok,{id:"create-user-dialog-title",children:"Create User"}),(0,$e.jsxs)(qk,{children:[(0,$e.jsx)(Is,{margin:"dense",label:"Email",type:"email",fullWidth:!0,variant:"outlined",value:g,onChange:e=>A(e.target.value),InputLabelProps:{sx:{"&.Mui-focused":{color:"#000"}}},sx:{mb:2,"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:" #49994C"}},required:!0}),(0,$e.jsx)(Xs,{control:(0,$e.jsx)(fP,{checked:v,onChange:e=>y(e.target.checked),color:"success"}),label:"Is Admin"})]}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:()=>d(!1),sx:{color:" #49994C"},children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{if(g.trim()){c(null);try{await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/enterprise/").concat(e),{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({email:t.email,isAdmin:t.isAdmin})});if(!r.ok){const e=await r.json();throw new Error(e.error||"Failed to create enterprise user")}}catch(l){throw console.error("Error creating enterprise user:",l),l}})(e,{email:g,isAdmin:v}),d(!1),A(""),y(!0),S({open:!0,message:"User created successfully.",severity:"success"});const t=await Mc(e);o(t.enterpriseUsers||[])}catch(l){c(l.message||"Failed to create user. Please try again."),console.error("Error creating user:",l)}}else c("User email is required.")},variant:"contained",disabled:!g.trim(),sx:{backgroundColor:" #49994C","&:hover":{backgroundColor:"darkgreen"}},children:"Create"})]})]}),(0,$e.jsxs)(Ik,{open:p,onClose:()=>h(!1),"aria-labelledby":"delete-user-dialog-title",children:[(0,$e.jsx)(Ok,{id:"delete-user-dialog-title",children:"Delete User"}),(0,$e.jsx)(qk,{children:(0,$e.jsx)(Jk,{children:"Are you sure you want to delete this user? This action cannot be undone."})}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:()=>h(!1),sx:{color:" #49994C"},children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{c(null);try{await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/enterprise/").concat(e,"/users/").concat(t),{method:"DELETE",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});if(!r.ok){const e=await r.json();throw new Error(e.error||"Failed to delete enterprise user")}}catch(l){throw console.error("Error deleting enterprise user:",l),l}})(e,f),h(!1),m(null),S({open:!0,message:"User deleted successfully!",severity:"success"});const t=await Mc(e);o(t.enterpriseUsers||[])}catch(t){c(t.message||"Failed to delete user. Please try again."),console.error("Error deleting user:",t)}},color:"error",variant:"contained",children:"Delete"})]})]}),(0,$e.jsx)(en,{open:C.open,autoHideDuration:4e3,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,$e.jsx)(sr,{onClose:T,severity:C.severity,sx:{width:"100%"},children:C.message})})]}):(0,$e.jsx)("div",{className:"enterprise-detail-container",children:(0,$e.jsx)(sr,{severity:"error",children:l||"Enterprise not found."})})},gP=[{id:"paper-sources",label:"Article selection",route:"/screening"},{id:"abstract-screening",label:"Abstract screening",route:"/screening"},{id:"recommended-abstracts",label:"Recommended Abstracts",route:"/screening"},{id:"full-text-screening",label:"Full-text screening",route:"/screening"},{id:"recommended-sources",label:"Recommended Sources",route:"/screening"},{id:"data-extraction-definition",label:"Data Extraction",route:"/screening"},{id:"data-extraction-results",label:"Extraction results",route:"/screening"},{id:"research-report",label:"Research report",route:"/screening"}],AP=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return gP.map((n=>{const r=gP.findIndex((e=>e.id===n.id)),o=gP.findIndex((t=>t.id===e));
2return{...n,isActive:n.id===e,isCompleted:t.includes(n.id)||r<o&&-1!==o}}))},vP=()=>{var e,t;return null!==(e=null===(t=gP[0])||void 0===t?void 0:t.id)&&void 0!==e?e:"paper-sources"},yP=new Set(gP.map((e=>e.id))),bP="screening-step",xP=(e,t)=>{if("undefined"!==typeof window&&e&&t)try{localStorage.setItem("".concat(bP,"-").concat(e),t)}catch(n){}},wP="screening-from-step",EP=e=>{if("undefined"===typeof window||!e)return null;try{return localStorage.getItem("".concat(wP,"-").concat(e))}catch{return null}},CP=(0,a.createContext)(null),SP=new Set(["data-extraction-definition","data-extraction-results","research-report"]),TP={question:"",screenedArticles:[],articleUniqueIds:[],articleValues:{},suggestedColumns:[],customColumns:[],fullTextArticleIds:null,fullTextUploadedCount:null,extractionColumns:[],extractionArticleValues:{},columnsList:[],litreviewtitle:""},kP=e=>{var t,n,r,o,i;let{children:s}=e;const l=te(),c=$(),{id:u}=ne(),d="undefined"!==typeof window&&window.location.hash||c.hash||"",p=null!==(t=null!==(n=null!==(r=null===(o=c.state)||void 0===o?void 0:o.step)&&void 0!==r?r:(e=>{const t=e?e.replace(/^#/,"").trim():"";return t&&yP.has(t)?t:null})(d))&&void 0!==n?n:u?(e=>{if("undefined"===typeof window||!e)return null;try{const t=localStorage.getItem("".concat(bP,"-").concat(e));return t&&yP.has(t)?t:null}catch{return null}})(u):null)&&void 0!==t?t:vP(),[h,f]=(0,a.useState)((()=>{var e;return null!==(e=u?EP(u):null)&&void 0!==e?e:null})),[m,g]=(0,a.useState)((()=>{var e;return{...TP,litreviewtitle:(null===(e=c.state)||void 0===e?void 0:e.litreviewtitle)||""}})),A=(0,a.useRef)(u);(0,a.useEffect)((()=>{if(A.current!==u){var e;const t=A.current;A.current=u;const n=(null===(e=c.state)||void 0===e?void 0:e.litreviewtitle)||"";g((e=>!t&&u&&(e.litreviewtitle||e.question)?{...TP,litreviewtitle:e.litreviewtitle||n,question:e.question}:{...TP,litreviewtitle:n})),f(u?EP(u):null)}}),[u,null===(i=c.state)||void 0===i?void 0:i.litreviewtitle]),(0,a.useEffect)((()=>{if(!u)return;let e=!1;return(async()=>{try{const t=await Kc(u);if(e||!t)return;const n=t.litreviewtitle||t.question||"";if(!n&&!t.question)return;g((e=>({...e,litreviewtitle:n||e.litreviewtitle,question:t.question||e.question})))}catch(t){console.error("Failed to load persisted literature review title:",t)}})(),()=>{e=!0}}),[u]),(0,a.useEffect)((()=>{if(!u||!p)return;xP(u,p);d.replace(/^#/,"").trim()!==p&&l("/screening/".concat(u,"#").concat(p),{replace:!0})}),[u,p,d,l]);const{user:v,isSubscribed:y,isAdvanced:b,currentPlan:x,isEnterpriseActive:w,hasEnterprise:E,loading:C,errorMessage:S,setErrorMessage:T}=gb(),k=(0,a.useCallback)((e=>{g((t=>({...t,...e})))}),[]),_=(0,a.useCallback)((e=>{u&&(xP(u,e),l("/screening/".concat(u,"#").concat(e)))}),[u,l]),N=(0,a.useCallback)((e=>{u&&((e,t)=>{if("undefined"!==typeof window&&e&&t)try{localStorage.setItem("".concat(wP,"-").concat(e),t)}catch(n){}})(u,e),f(e)}),[u]),I=(0,a.useCallback)((e=>{const t=AP(e);return SP.has(e)&&"recommended-abstracts"===h?t.filter((e=>"full-text-screening"!==e.id&&"recommended-sources"!==e.id)):t}),[h]),P=(0,a.useCallback)((async e=>{try{T("");const t=await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/"),{method:"POST",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},body:JSON.stringify({question:e})});if(!n.ok){const e=await n.json(),t=e.message||e.error||"Failed to gather sources";throw new Error(t)}const r=await n.json();return{id:r.jobId,litreviewtitle:r.litreviewtitle}}catch(t){throw console.error("Error initiating paper source search",t),t}})(e);if(t.id){const e=vP();xP(t.id,e),t.litreviewtitle&&k({litreviewtitle:t.litreviewtitle}),l("/screening/".concat(t.id,"#").concat(e))}}catch(t){console.error("Error during search:",t),T(t.message||"An unexpected error occurred. Please try again.")}}),[l,T,k]),R=(0,a.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"advanced";await kc(e)}),[]),D=(0,a.useCallback)((()=>{T(null)}),[T]),L=(0,a.useMemo)((()=>({id:u,step:p,fromStep:h,user:v,isSubscribed:y,isAdvanced:b,currentPlan:x,isEnterpriseActive:w,hasEnterprise:E,loading:C,errorMessage:S,setErrorMessage:T,workflowData:m,setWorkflowData:k,navigateToStep:_,setFromStep:N,getStepsForPage:I,handleNavigateToPaperSources:P,handleSubscription:R,closeErrorModal:D})),[u,p,h,v,y,b,x,w,E,C,S,T,m,k,_,N,I,P,R,D]);return(0,$e.jsx)(CP.Provider,{value:L,children:s})},_P=()=>{const e=(0,a.useContext)(CP);if(!e)throw new Error("useLiteratureReview must be used within a LiteratureReviewProvider");return e},NP=(0,a.createContext)(null);function IP(){return(0,a.useContext)(NP)}function PP(e){var t;let{reviewId:n,children:r}=e;const o=te(),i=$(),[s,l]=(0,a.useState)(!1),c=(i.hash||"").replace(/^#/,"").trim()||(null===(t=i.state)||void 0===t?void 0:t.step)||null,u=(0,a.useCallback)((async()=>
2{if(n)try{const e=await Kc(n);l(function(e){if(!e)return!1;const t=e.synthesisResult;return null!=t&&""!==t&&("string"===typeof t?t.trim().length>0:Array.isArray(t)?t.length>0:"object"===typeof t?Object.keys(t).length>0:Boolean(t))}(e))}catch{l(!1)}else l(!1)}),[n]);(0,a.useEffect)((()=>{u()}),[u,i.hash,i.pathname]);const d=(0,a.useCallback)((()=>{n&&o("/screening/".concat(n,"#research-report"),{state:{...i.state||{},step:"research-report"}})}),[o,n,i.state]),p=(0,a.useCallback)((()=>{u()}),[u]),h=(0,a.useMemo)((()=>({hasSavedReport:s,goToReport:d,refreshReportAvailability:p,routeStep:c})),[s,d,p,c]);return(0,$e.jsx)(NP.Provider,{value:h,children:r})}const RP=e=>{var t;let{projectTitle:n="Literature Review",editableTitle:r=!1,steps:o=[],mainContent:i,sidebar:s,headerActions:l,onBack:c,onNext:u,backLabel:d="",nextLabel:p="Next",showBack:h=!0,showNext:f=!0,secondaryButtonLabel:m,onSecondaryClick:g,showSecondary:A=!1}=e;const{id:v,setWorkflowData:y,navigateToStep:b}=_P(),[x,w]=(0,a.useState)(!1),[E,C]=(0,a.useState)(""),[S,T]=(0,a.useState)(!1),[k,_]=(0,a.useState)(""),[N,I]=(0,a.useState)({open:!1,message:"",severity:"success"}),P=IP(),R=!0===(null===P||void 0===P?void 0:P.hasSavedReport)&&"research-report"!==(null===P||void 0===P?void 0:P.routeStep),D=()=>{w(!1),_("")},L=async()=>{const e=E.trim();if(e){T(!0),_("");try{const t=await(async(e,t)=>{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/review/").concat(e,"/litreviewtitle"),{method:"PUT",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({litreviewtitle:t})}),o=await r.json();if(!r.ok){const e=new Error((null===o||void 0===o?void 0:o.message)||(null===o||void 0===o?void 0:o.error)||"Failed to update title");throw e.status=r.status,e}return o})(v,e);y({litreviewtitle:t.litreviewtitle}),I({open:!0,message:"Title updated",severity:"success"}),w(!1)}catch(t){const e=t.status;_(400===e?"Title cannot be empty.":403===e?"You don't have permission to edit this title.":404===e?"Job not found. Please refresh.":"Failed to update title. Please try again.")}finally{T(!1)}}else _("Title cannot be empty.")};return(0,$e.jsxs)("div",{className:"literature-review-layout",children:[(0,$e.jsxs)("div",{className:"lr-header",children:[(0,$e.jsxs)("div",{className:"lr-header-left",children:[r&&x?(0,$e.jsxs)("div",{className:"lr-title-edit",children:[(0,$e.jsx)("input",{className:"lr-title-input",value:E,onChange:e=>C(e.target.value),onKeyDown:e=>{"Enter"===e.key&&L(),"Escape"===e.key&&D()},autoFocus:!0,disabled:S}),k&&(0,$e.jsx)("span",{className:"lr-title-error",children:k}),(0,$e.jsxs)("div",{className:"lr-title-edit-actions",children:[(0,$e.jsx)("button",{className:"lr-title-save-btn",onClick:L,disabled:S||!E.trim(),children:S?"Saving...":"Save"}),(0,$e.jsx)("button",{className:"lr-title-cancel-btn",onClick:D,disabled:S,children:"Cancel"})]})]}):(0,$e.jsxs)("div",{className:"lr-project-title".concat(r?" lr-project-title--editable":""),onClick:r?()=>{C(n),_(""),w(!0)}:void 0,title:r?"Click to edit title":void 0,children:[n,r&&(0,$e.jsx)("span",{className:"lr-title-edit-icon","aria-label":"Edit title",children:"\u270f\ufe0f"})]}),R&&(0,$e.jsx)("button",{type:"button",className:"lr-nav-button lr-return-report-button",onClick:P.goToReport,children:"Return to Report"})]}),(0,$e.jsxs)("div",{className:"lr-header-center",children:[o.length>0&&(0,$e.jsx)("div",{className:"lr-progress-indicator",children:o.map(((e,t)=>(0,$e.jsxs)(a.Fragment,{children:[(0,$e.jsx)("div",{className:"lr-progress-dot ".concat(e.isActive?"active":""," ").concat(e.isCompleted?"completed":""," ").concat(e.isCompleted?"clickable":""),title:e.label,onClick:e.isCompleted?()=>b(e.id):void 0}),t<o.length-1&&(0,$e.jsx)("div",{className:"lr-progress-line ".concat(e.isCompleted?"completed":"")})]},e.id||t)))}),o.length>0&&(0,$e.jsx)("div",{className:"lr-current-step",children:(null===(t=o.find((e=>e.isActive)))||void 0===t?void 0:t.label)||""})]}),(0,$e.jsxs)("div",{className:"lr-header-right",children:[l,h&&c&&(0,$e.jsxs)("button",{className:"lr-nav-button lr-back-button",onClick:c,children:[(0,$e.jsx)("span",{className:"lr-back-arrow",children:"<"})," ",d]}),f&&u&&(0,$e.jsxs)("button",{className:"lr-nav-button lr-next-button",onClick:u,children:[p," >>"]}),A&&m&&g&&(0,$e.jsxs)("button",{className:"lr-nav-button lr-secondary-button",onClick:g,children:[m," >"]})]})]}),(0,$e.jsxs)("div",{className:"lr-content-wrapper",children:[(0,$e.jsx)("div",{className:"lr-main-content",children:i}),s&&(0,$e.jsx)("div",{className:"lr-sidebar",children:s})]}),(0,$e.jsx)(en,{open:N.open,autoHideDuration:3e3,onClose:()=>I((e=>({...e,open:!1}))),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,$e.jsx)(sr,{onClose:()=>I((e=>({...e,open:!1}))),severity:N.severity,sx:{width:"100%"},children:N.message})})]})},DP=e=>{const t=a.useRef({});return a.useEffect((()=>{t.current=e})),t.current};const LP=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=DP({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:s,max:l=r}=i?a:e;
2return{badgeContent:s,invisible:i,max:l,displayValue:s&&Number(s)>l?"".concat(l,"+"):s}};function OP(e){return(0,jt.Ay)("MuiBadge",e)}const MP=(0,Mt.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),jP=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],FP=(0,nt.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),BP=(0,nt.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t["anchorOrigin".concat((0,pt.A)(n.anchorOrigin.vertical)).concat((0,pt.A)(n.anchorOrigin.horizontal)).concat((0,pt.A)(n.overlap))],"default"!==n.color&&t["color".concat((0,pt.A)(n.color))],n.invisible&&t.invisible]}})((e=>{let{theme:t}=e;var n;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n,r;return(null!=(n=t.vars)?n:t).palette[e].main&&(null!=(r=t.vars)?r:t).palette[e].contrastText})).map((e=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(MP.invisible)]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(MP.invisible)]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(MP.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(MP.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(MP.invisible)]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(MP.invisible)]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap}
2,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(MP.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(MP.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}})),UP=a.forwardRef((function(e,t){var n,r,o,a,i,s;const l=(0,dt.b)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:h={},children:f,overlap:m="rectangular",color:g="default",invisible:A=!1,max:v=99,badgeContent:y,slots:b,slotProps:x,showZero:w=!1,variant:E="standard"}=l,C=(0,Oe.A)(l,jP),{badgeContent:S,invisible:T,max:k,displayValue:_}=LP({max:v,invisible:A,badgeContent:y,showZero:w}),N=DP({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=T||null==S&&"dot"!==E,{color:P=g,overlap:R=m,anchorOrigin:D=c,variant:L=E}=I?N:l,O="dot"!==L?_:void 0,M=(0,Me.A)({},l,{badgeContent:S,invisible:I,max:k,displayValue:O,showZero:w,anchorOrigin:D,color:P,overlap:R,variant:L}),j=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible","anchorOrigin".concat((0,pt.A)(n.vertical)).concat((0,pt.A)(n.horizontal)),"anchorOrigin".concat((0,pt.A)(n.vertical)).concat((0,pt.A)(n.horizontal)).concat((0,pt.A)(o)),"overlap".concat((0,pt.A)(o)),"default"!==t&&"color".concat((0,pt.A)(t))]};return(0,je.A)(s,OP,i)})(M),F=null!=(n=null!=(r=null==b?void 0:b.root)?r:p.Root)?n:FP,B=null!=(o=null!=(a=null==b?void 0:b.badge)?a:p.Badge)?o:BP,U=null!=(i=null==x?void 0:x.root)?i:h.root,z=null!=(s=null==x?void 0:x.badge)?s:h.badge,H=Ye({elementType:F,externalSlotProps:U,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:M,className:(0,ze.A)(null==U?void 0:U.className,j.root,u)}),W=Ye({elementType:B,externalSlotProps:z,ownerState:M,className:(0,ze.A)(j.badge,null==z?void 0:z.className)});return(0,$e.jsxs)(F,(0,Me.A)({},H,{children:[f,(0,$e.jsx)(B,(0,Me.A)({},W,{children:O}))]}))})),zP=UP;var HP=n(4318);function WP(e){return(0,jt.Ay)("MuiCollapse",e)}(0,Mt.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const VP=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],GP=(0,nt.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Me.A)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,Me.A)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),qP=(0,nt.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((e=>{let{ownerState:t}=e;return(0,Me.A)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),YP=(0,nt.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((e=>{let{ownerState:t}=e;return(0,Me.A)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),QP=a.forwardRef((function(e,t){const n=(0,dt.b)({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:m,onExiting:g,orientation:A="vertical",style:v,timeout:y=HP.p0.standard,TransitionComponent:b=Ct}=n,x=(0,Oe.A)(n,VP),w=(0,Me.A)({},n,{orientation:A,collapsedSize:s}),E=(e=>{const{orientation:t,classes:n}=e,r={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,je.A)(r,WP,n)})(w),C=ut(),S=(0,Qe.A)(),T=a.useRef(null),k=a.useRef(),_="number"===typeof s?"".concat(s,"px"):s,N="horizontal"===A,I=N?"width":"height",P=a.useRef(null),R=(0,kt.A)(t,P),D=e=>t=>{if(e){const n=P.current;void 0===t?e(n):e(n,t)}},L=()=>T.current?T.current[N?"clientWidth":"clientHeight"]:0,O=D(((e,t)=>{T.current&&N&&(T.current.style.position="absolute"),e.style[I]=_,d&&d(e,t)})),M=D(((e,t)=>{const n=L();T.current&&N&&(T.current.style.position="");const{duration:r,easing:o}=Tt({style:v,timeout:y,easing:c},{mode:"enter"});if("auto"===y){const t=C.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(t,"ms"),k.current=t}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style[I]="".concat(n,"px"),e.style.transitionTimingFunction=o,h&&h(e,t)})),j=D(((e,t)=>{e.style[I]="auto",p&&p(e,t)})),F=D((e=>{e.style[I]="".concat(L(),"px"),f&&f(e)})),B=D(m),U=D((e=>{const t=L(),{duration:n,easing:r}=Tt({style:v,timeout:y,easing:c},{mode:"exit"});if("auto"===y){const n=C.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),k.current=n}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style[I]=_,e.style.transitionTimingFunction=r,g&&g(e)}));return(0,$e.jsx)(b,(0,Me.A)({in:u,onEnter:O,onEntered:j,onEntering:M,onExit:F,onExited:B,onExiting:U,addEndListener:e=>{"auto"===y&&S.start(k.current||0,e),r&&r(P.current,e)},nodeRef:P,timeout:"auto"===y?null:y},x,{children:(e,t)=>(0,$e.jsx)(GP,(0,Me.A)({as:l,className:(0,ze.A)(E.root,i,{entered:E.entered,exited:!u&&"0px"===_&&E.hidden}[e]),style:(0,Me.A)({[N?"minWidth":"minHeight"]:_},v),ref:R},t,{ownerState:(0,Me.A)({},w,{state:e}),children:(0,$e.jsx)(qP,{ownerState:(0,Me.A)({},w,{state:e}),className:E.wrapper,ref:T,children:(0,$e.jsx)(YP,{ownerState:(0,Me.A)({},w,{state:e}),className:E.wrapperInner,children:o})})}))}))}));QP.muiSupportAuto=!0;const XP=QP,KP=(0,Qn.A)([(0,$e.jsx)("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z"},"0"),(0,$e.jsx)("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24"},"1")],"MenuBook"),JP=e=>{let{doi:t}=e;const[n,r]=(0,a.useState)(null);return t&&null!==t?(0,$e.jsx)(gk,{title:"Copy DOI",arrow:!0,children:(0,$e.jsx)(Tr,{variant:"caption",onClick:()=>(async e=>{try{const t=e.startsWith("https://doi.org/")?e:"https://doi.org/".concat(e);await navigator.clipboard.writeText(t),r(e),setTimeout((()=>r(null)),1e3)}catch(t){console.error("Failed to copy DOI:",t)}})(t),sx:{cursor:"pointer",backgroundColor:"#E5E4E2",color:"#808080",padding:"2px 8px",borderRadius:"4px",display:"inline-block","&:hover":{backgroundColor:"#D3D3D3",fontWeight:500}},children:n===t?"DOI Copied!":"DOI"})}):null},ZP=e=>{let{open:t,onClose:n,query:r,question:o,screenedArticles:i=[],onAddSources:s,status:l,setScreenedArticles:c,incomingError:u,onSearchUpdated:d,onQuestionUpdated:p,onQueryUpdated:h,searchFilters:f,onLargeSearchWarning:m}=e;const[g,A]=(0,a.useState)("question"),[v,y]=(0,a.useState)(o||""),[b,x]=(0,a.useState)(r||""),[w,E]=(0,a.useState)(""),[C,S]=(0,a.useState)(!1),[T,k]=(0,a.useState)(!1),{id:_}=ne(),[N,I]=(0,a.useState)(!1),[P,R]=(0,a.useState)(f.fromDate||""),[D,L]=(0,a.useState)(f.toDate||""),[O,M]=(0,a.useState)(f.studyDesigns||[]),[j,F]=(0,a.useState)([]),[B,U]=(0,a.useState)(""),[z,H]=(0,a.useState)(f.abstractContains||""),[W,V]=(0,a.useState)(f.abstractNotContains||""),[G,q]=(0,a.useState)(f.numberOfAbstracts||"");(0,a.useEffect)((()=>{Nc().then(F).catch((()=>{}))}),[]),(0,a.useEffect)((()=>{t&&"large_search_warning"===l&&I(!0)}),[t,l]);const Y=/^\d{4}\/\d{2}\/\d{2}$/,Q=(e,t)=>e&&!Y.test(e)?"From date must be in YYYY/MM/DD format":t&&!Y.test(t)?"To date must be in YYYY/MM/DD format":e&&t&&new Date(e)>new Date(t)?"From date cannot be after To date":"",X=(P?1:0)+(D?1:0)+O.length+(z?1:0)+(W?1:0)+(G?1:0),K=e=>{const t=(e||"").trim();if(0===t.length)return null;const n=["AND","OR","NOT"],r=t.toUpperCase();for(const o of n)if(r===o||r.endsWith(" ".concat(o)))return t.slice(t.length-o.length);return null},J=!K(b)&&(null===v||void 0===v?void 0:v.trim().length)>0;(0,a.useEffect)((()=>{o&&y(o),r&&x(r),f.fromDate&&R(f.fromDate),f.toDate&&L(f.toDate),f.studyDesigns&&M(f.studyDesigns),f.abstractContains&&H(f.abstractContains),f.abstractNotContains&&V(f.abstractNotContains),f.numberOfAbstracts&&q(f.numberOfAbstracts),u&&E(u)}),[o,r,u,f]),(0,a.useEffect)((()=>
2{if(!C||!_)return;const e=setInterval((async()=>{try{const e=await jc(_);if(e.status&&$(e.status),"Gathering Sources Completed"===e.status){if(e.query!==b&&(x(e.query),h&&h(e.query)),e.question&&p&&p(e.question),e.searchFilters&&(e.searchFilters.fromDate&&R(e.searchFilters.fromDate),e.searchFilters.toDate&&L(e.searchFilters.toDate),e.searchFilters.abstractContains&&H(e.searchFilters.abstractContains),e.searchFilters.abstractNotContains&&V(e.searchFilters.abstractNotContains),e.searchFilters.studyDesignOptions&&F(e.searchFilters.studyDesignOptions)),e.screenedArticles&&c){const t=[...e.screenedArticles].sort(((e,t)=>{var n,r;return((null===(n=e.gradeData)||void 0===n?void 0:n.GradeNumber)||0)-((null===(r=t.gradeData)||void 0===r?void 0:r.GradeNumber)||0)}));c(t)}d&&d(),k(!1),S(!1)}else"large_search_warning"===e.status?(S(!1),n(),m&&m(e.totalAbstracts||0)):"Error"===e.status&&(E(e.error||"An error occurred"),k(!0),S(!1))}catch(e){console.error("Error fetching job status:",e),E(e.message||"Failed to fetch job status"),k(!0),S(!1)}}),1e3);return()=>clearInterval(e)}),[C,_]);const[Z,$]=(0,a.useState)(""),[ee,te]=(0,a.useState)(new Set),re="Gathering Sources Completed"===l||"large_search_warning"===l,oe="Error"===l||!!w,ae=re&&i.length>0&&!T?i:[],ie=w||("Error"===l?"An error occurred during search":""),se=e=>{const{name:t,value:n}=e.target;if("question"!==t){if("keyword"===t){x(n);const e=K(n);E(e?"Query cannot end with ".concat(e):"")}}else y(n)},le=ae.length>0&&ee.size===ae.length,ce=ee.size>0&&ee.size<ae.length;return(0,$e.jsxs)(Ik,{open:t,onClose:n,maxWidth:"md",fullWidth:!0,className:"add-from-search-dialog",PaperProps:{sx:{minHeight:"80vh",maxHeight:"90vh"}},children:[(0,$e.jsx)(Ok,{sx:{pb:1},children:(0,$e.jsx)(Tr,{variant:"h6",component:"div",children:"Select articles from MedRPT Search"})}),(0,$e.jsx)(qk,{dividers:!0,sx:{p:0},children:re||oe?(0,$e.jsxs)(yr,{sx:{p:3},children:[(0,$e.jsxs)(yr,{sx:{mb:2},children:[(0,$e.jsxs)(RN,{value:g,onChange:(e,t)=>
2(e=>{A(e),T||E("")})(t),sx:{mb:1,"& .MuiTabs-indicator":{backgroundColor:"#3b7b3f"},"& .MuiTab-root.Mui-selected":{color:"#3b7b3f"}},children:[(0,$e.jsx)(FN,{label:"Question",value:"question"}),(0,$e.jsx)(FN,{label:"Keyword",value:"keyword"})]}),"question"===g&&(0,$e.jsx)(Is,{fullWidth:!0,multiline:!0,rows:2,placeholder:"Ask your question...",name:"question",value:v,onChange:se,variant:"outlined",sx:{mb:2,"& .MuiOutlinedInput-root":{"&.Mui-focused fieldset":{borderColor:"#3b7b3f"}},"& .MuiInputLabel-root.Mui-focused":{color:"#3b7b3f"}}}),"keyword"===g&&(0,$e.jsx)(Is,{fullWidth:!0,placeholder:"Enter query terms",name:"keyword",value:b,onChange:se,variant:"outlined",error:!!w,helperText:w,sx:{mb:2,"& .MuiOutlinedInput-root":{"&.Mui-focused fieldset":{borderColor:"#3b7b3f"}},"& .MuiInputLabel-root.Mui-focused":{color:"#3b7b3f"}},multiline:!0}),(0,$e.jsxs)(yr,{sx:{display:"flex",justifyContent:"center",gap:1,alignItems:"center"},children:[(0,$e.jsx)(zP,{badgeContent:X,color:"success",overlap:"circular",children:(0,$e.jsx)(Cl,{variant:"outlined",size:"small",startIcon:(0,$e.jsx)(Sl,{}),onClick:()=>I((e=>!e)),sx:{borderColor:"#3b7b3f",color:"#3b7b3f",borderRadius:"6px",fontSize:"14px",fontWeight:500,padding:"10px 20px",textTransform:"none","&:hover":{borderColor:"#3b7b3f",backgroundColor:"rgba(59,123,63,0.06)"}},children:"Filters"})}),(0,$e.jsx)(Cl,{variant:"contained",size:"small",sx:{backgroundColor:"#3b7b3f",color:"#ffffff",borderRadius:"6px",fontSize:"14px",fontWeight:500,padding:"10px 20px",textTransform:"none","&:hover":{backgroundColor:"#3b7b3f",boxShadow:"0 2px 8px #1e3e20"},"&:disabled":{backgroundColor:"#cccccc",color:"#666666"}},disabled:!J||C||!!B,onClick:async()=>{const e=K(b);if(e)E("Query cannot end with ".concat(e));else if(te(new Set),_){E(""),k(!1),$(""),S(!0);try{const e=parseInt(G,10),t={...P?{fromDate:P}:{},...D?{toDate:D}:{},...O.length>0?{studyDesigns:O}:{},...z?{abstractContains:z}:{},...W?{abstractNotContains:W}:{},...e>0?{numberOfAbstracts:e}:{}};await async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{const o=await Ec(),a=await fetch("".concat("https://api.medrpt.ai","/api/review/").concat(e),{method:"PUT",headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"},body:JSON.stringify({question:t,query:n,filters:r})});if(!a.ok){const e=await a.json(),t=e.message||e.error||"Failed to update search";throw new Error(t)}}catch(w){throw console.error("Error updating email preference",w),w}}(_,v,b,t)}catch(w){console.error("Error updating sources:",w),E(w.message||"Failed to update sources"),k(!0),S(!1)}}else E("No review ID found")},children:"Update search"})]}),T&&w&&(0,$e.jsx)(sr,{severity:"error",sx:{mt:1.5},children:w}),(0,$e.jsx)(XP,{in:N,children:(0,$e.jsxs)(yr,{className:"add-from-search-filters",sx:{mt:2},children:[(0,$e.jsxs)(yr,{className:"add-from-search-filters-header",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,$e.jsxs)(yr,{sx:{display:"flex",alignItems:"center"},children:[(0,$e.jsx)(Sl,{className:"add-from-search-filters-header-icon"}),(0,$e.jsx)(Tr,{variant:"subtitle2",component:"div",className:"add-from-search-filters-header-title",children:"Search filters"})]}),X>0&&(0,$e.jsx)(Cl,{variant:"outlined",size:"small",onClick:()=>{R(""),L(""),M([]),H(""),V(""),q(""),U("")},sx:{borderColor:"#3b7b3f",color:"#3b7b3f",textTransform:"none",fontWeight:500,fontSize:"13px",p:"2px 8px",minWidth:0,"&:hover":{borderColor:"#3b7b3f",backgroundColor:"rgba(59,123,63,0.06)"}},children:"Clear all"})]}),(0,$e.jsx)(yr,{className:"add-from-search-filters-body",children:(0,$e.jsxs)(ro,{spacing:3,children:[(0,$e.jsxs)(ro,{spacing:1.25,children:[(0,$e.jsx)(Tr,{variant:"subtitle2",sx:{fontWeight:600},children:"Publication date range"}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",children:"Search results by publication date (YYYY/MM/DD)."}),(0,$e.jsxs)(yr,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[(0,$e.jsx)(Is,{label:"From date",placeholder:"YYYY/MM/DD",value:P,onChange:e=>{return t=e.target.value,R(t),void U(Q(t,D));var t},size:"small",sx:{flex:"1 1 160px",minWidth:0}}),(0,$e.jsx)(Is,{label:"To date",placeholder:"YYYY/MM/DD",value:D,onChange:e=>{return t=e.target.value,L(t),void U(Q(P,t));var t},size:"small",sx:{flex:"1 1 160px",minWidth:0}})]}
2),B&&(0,$e.jsx)(Tr,{variant:"caption",color:"error",sx:{display:"block"},children:B})]}),(0,$e.jsx)(Dr,{className:"add-from-search-filters-divider"}),(0,$e.jsxs)(ro,{spacing:1.25,children:[(0,$e.jsx)(Tr,{variant:"subtitle2",sx:{fontWeight:600},children:"Abstract keywords"}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",children:"Terms that must appear or must not appear in the abstract."}),(0,$e.jsxs)(ro,{spacing:1.5,children:[(0,$e.jsx)(Is,{label:"Abstract contains",placeholder:"e.g. randomized",value:z,onChange:e=>H(e.target.value),size:"small",fullWidth:!0}),(0,$e.jsx)(Is,{label:"Abstract does not contain",placeholder:"e.g. animal",value:W,onChange:e=>V(e.target.value),size:"small",fullWidth:!0})]})]}),(0,$e.jsx)(Dr,{className:"add-from-search-filters-divider"}),(0,$e.jsxs)(ro,{spacing:1.25,children:[(0,$e.jsx)(Tr,{variant:"subtitle2",sx:{fontWeight:600},children:"Maximum abstracts"}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",children:"Limit the number of articles retrieved (useful for large or broad searches)."}),(0,$e.jsx)(Is,{label:"Number of abstracts",placeholder:"e.g. 200",value:G,onChange:e=>{const t=e.target.value;if(""===t||/^\d+$/.test(t)){const e=parseInt(t,10);(""===t||e>=1&&e<=1e4)&&q(t)}},size:"small",inputProps:{min:1,max:1e4,inputMode:"numeric"},sx:{maxWidth:200}})]}),j.length>0&&(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(Dr,{className:"add-from-search-filters-divider"}),(0,$e.jsxs)(ro,{spacing:1.25,children:[(0,$e.jsx)(Tr,{variant:"subtitle2",sx:{fontWeight:600},children:"Methodology"}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",children:"Select one or more study designs to include."}),(0,$e.jsx)(yr,{className:"add-from-search-filters-methodology",children:(0,$e.jsx)(Ws,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:.5,columnGap:2,rowGap:.25},children:j.map((e=>(0,$e.jsx)(Xs,{control:(0,$e.jsx)(hl,{checked:O.includes(e.value),onChange:()=>{return t=e.value,void M((e=>e.includes(t)?e.filter((e=>e!==t)):[...e,t]));var t},size:"small"}),label:(0,$e.jsx)(Tr,{variant:"body2",children:e.label})},e.value)))})})]})]})]})})]})})]}),(0,$e.jsx)(Dr,{sx:{mt:1,mb:.5}}),(0,$e.jsxs)(yr,{children:[(0,$e.jsxs)(yr,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,$e.jsxs)(yr,{sx:{display:"flex",alignItems:"center"},children:[(0,$e.jsx)(hl,{checked:le,indeterminate:ce,onChange:e=>{return t=e.target.checked,void te(t?new Set(ae.map(((e,t)=>t))):new Set);var t},sx:{color:"#3b7b3f","&.Mui-checked":{color:"#3b7b3f"},"&.MuiCheckbox-indeterminate":{color:"#3b7b3f"}}}),(0,$e.jsx)(Tr,{variant:"body1",sx:{fontWeight:500},children:"Select articles retrieved from MedRPT Search"})]}),(0,$e.jsxs)(Tr,{variant:"body2",color:"text.secondary",children:[ee.size," articles selected"]})]}),ie&&!C?(0,$e.jsx)(yr,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:8,gap:2},children:(0,$e.jsx)(Tr,{variant:"body2",color:"error",children:ie})}):C?(0,$e.jsxs)(yr,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:8,gap:2},children:[(0,$e.jsx)(Hd,{sx:{color:"#3b7b3f"}}),(0,$e.jsx)(Tr,{variant:"body2",children:Z||"Searching for relevant sources..."})]}):ae.length>0?(0,$e.jsx)(ro,{spacing:2,children:ae.map(((e,t)=>(0,$e.jsxs)(zt,{variant:"outlined",sx:{p:2,display:"flex",gap:2},children:[(0,$e.jsx)(hl,{checked:ee.has(t),onChange:()=>(e=>{const t=new Set(ee);t.has(e)?t.delete(e):t.add(e),te(t)})(t),sx:{color:"#3b7b3f","&.Mui-checked":{color:"#3b7b3f"}}}),(0,$e.jsxs)(yr,{sx:{flex:1},children:[(0,$e.jsx)(Tr,{variant:"subtitle1",sx:{fontWeight:500,mb:.5},children:e.title}),(0,$e.jsx)(Tr,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:Array.isArray(e.authors)?e.authors.join(", "):e.authors||"Unknown authors"}),e.journalTitle&&(0,$e.jsxs)(yr,{className:"journal-title-box",sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,$e.jsx)(KP,{sx:{fontSize:16,color:"text.secondary",backgroundColor:"white",borderRadius:"2px"}}),(0,$e.jsxs)(Tr,{variant:"caption",color:"text.secondary",children:[e.journalTitle,","]}),e.publicationDate&&(0,$e.jsxs)(Tr,{variant:"caption",color:"text.secondary",children:[e.publicationDate,","]}),void 0!==e.citationCount&&(0,$e.jsxs)(Tr,{variant:"caption",color:"text.secondary",children:[e.citationCount," citations,"]}),null!==e.doi&&(0,$e.jsx)(JP,{doi:e.doi})]})]})]},t)))}):null]})]}):(0,$e.jsxs)(yr,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"60vh",gap:2},children:[(0,$e.jsx)(Hd,{sx:{color:"#3b7b3f"}}),(0,$e.jsx)(Tr,{variant:"body2",children:l||"Loading relevant search results"})]})}),re&&(0,$e.jsxs)(Bk,{sx:{p:2,justifyContent:"flex-end",gap:2},children:[(0,$e.jsx)(Cl,{onClick:n,variant:"outlined",sx:{borderColor:"#3b7b3f",color:"#3b7b3f",borderRadius:"6px",fontSize:"14px",fontWeight:500,padding:"10px 20px",textTransform:"none","&:hover":{borderColor:"#3b7b3f",backgroundColor:"rgba(59, 123, 63, 0.08)"}},children:"Cancel"}),(0,$e.jsxs)(Cl,{onClick:()=>
2{if(0===ee.size)return;const e=ae.filter(((e,t)=>ee.has(t)));s&&e.length>0&&s(e),n()},variant:"contained",disabled:0===ee.size,sx:{backgroundColor:"#3b7b3f",color:"#ffffff",borderRadius:"6px",fontSize:"14px",fontWeight:500,padding:"10px 20px",textTransform:"none","&:hover":{backgroundColor:"#3b7b3f",boxShadow:"0 2px 8px #1e3e20"},"&:disabled":{backgroundColor:"#cccccc",color:"#666666"}},children:["Add ",ee.size," source(s)"]})]})]})},$P=(0,Qn.A)((0,$e.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),eR=()=>{const{id:e,workflowData:t,setWorkflowData:n,navigateToStep:r,getStepsForPage:o}=_P(),[i,s]=(0,a.useState)(!!e),[l,c]=(0,a.useState)(""),[u,d]=(0,a.useState)(""),[p,h]=(0,a.useState)(""),[f,m]=(0,a.useState)(""),[g,A]=(0,a.useState)([]),[v,y]=(0,a.useState)([]),[b,x]=(0,a.useState)(!1),[w,E]=(0,a.useState)(""),[C,S]=(0,a.useState)(!1),[T,k]=(0,a.useState)(new Set),[_,N]=(0,a.useState)(!1),[I,P]=(0,a.useState)(0),[R,D]=(0,a.useState)(0),L=o("paper-sources"),O=e=>{var t,n;return null!==(t=null!==(n=e.uniqueId)&&void 0!==n?n:e.pubmed_id)&&void 0!==t?t:e.title},M=v.length>0&&T.size===v.length;(0,a.useEffect)((()=>{if(!e)return void s(!1);const t=setInterval((async()=>{try{s(!0);const r=await jc(e);if(E(r.status),r.litreviewtitle&&n({litreviewtitle:r.litreviewtitle}),"Gathering Sources Completed"===r.status){if(h(r.question),n({litreviewtitle:r.litreviewtitle||r.question}),d(r.query),r.searchFilters&&m(r.searchFilters),r.screenedArticles){const e=r.screenedArticles.sort(((e,t)=>{var n,r;return((null===(n=e.gradeData)||void 0===n?void 0:n.GradeNumber)||0)-((null===(r=t.gradeData)||void 0===r?void 0:r.GradeNumber)||0)}));A(e)}if(r.addedArticles){const e=r.addedArticles.sort(((e,t)=>{var n,r;return((null===(n=e.gradeData)||void 0===n?void 0:n.GradeNumber)||0)-((null===(r=t.gradeData)||void 0===r?void 0:r.GradeNumber)||0)}));y(e)}N(!1),s(!1),clearInterval(t)}else"large_search_warning"===r.status?(r.query&&d(r.query),r.question&&h(r.question),P(r.totalAbstracts||0),N(!0),s(!1),clearInterval(t)):"Error"===r.status&&(c(r.error||"An error occurred"),r.question&&h(r.question),(r.litreviewtitle||r.question)&&n({litreviewtitle:r.litreviewtitle||r.question}),r.query&&d(r.query),N(!1),s(!1),clearInterval(t))}catch(l){console.error("Error fetching job status:",l),c("Failed to fetch job status"),clearInterval(t),s(!1)}}),1e3);return()=>clearInterval(t)}),[e,R,n]);const j=!i&&!l&&v.length>0,F=(0,$e.jsxs)("div",{className:"paper-sources-content",children:[_&&(0,$e.jsxs)("div",{className:"large-search-warning",children:[(0,$e.jsx)("div",{className:"large-search-warning-icon",children:"\u26a0\ufe0f"}),(0,$e.jsxs)("div",{className:"large-search-warning-body",children:[(0,$e.jsxs)("p",{className:"large-search-warning-title",children:["Large search result: ",I.toLocaleString()," articles found"]}),(0,$e.jsx)("p",{className:"large-search-warning-text",children:"Processing this many articles may take a long time. You can narrow your search by setting a maximum number of abstracts in the filter section, or proceed with all articles."}),(0,$e.jsxs)("div",{className:"large-search-warning-actions",children:[(0,$e.jsx)("button",{className:"large-search-btn large-search-btn-primary",onClick:()=>S(!0),children:"Narrow search"}),(0,$e.jsx)("button",{className:"large-search-btn large-search-btn-secondary",onClick:async()=>{try{N(!1),s(!0),await(async e=>{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/proceed-large-search/").concat(e),{method:"POST",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}});if(!n.ok){const e=await n.json().catch((()=>({})));throw new Error(e.message||e.error||"Failed to proceed with large search")}return n.json()})(e),D((e=>e+1))}catch(t){console.error("Error proceeding with large search:",t),c(t.message||"Failed to proceed with search"),s(!1)}},children:"Proceed with all articles"})]})]})]}),(0,$e.jsx)("div",{className:"source-selection-cards",children:(0,$e.jsxs)("div",{className:"source-card",children:[(0,$e.jsx)("h2",{className:"source-card-title",children:"Select from MedRPT Search"}),i&&!_?(0,$e.jsx)("p",{className:"source-card-status",children:w||"Loading relevant search results"}):l?(0,$e.jsx)("p",{className:"source-card-status",children:l}):(0,$e.jsx)("p",{className:"source-card-status",children:g.length>0?"".concat(g.length," search results available"):"No search results"}),(0,$e.jsxs)("button",{className:"source-card-button",onClick:()=>S(!0),children:[(0,$e.jsx)("span",{className:"source-card-icon",children:"\ud83d\udd0d"}),"Add from search"]})]})}),j?(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)("div",{className:"paper-sources-header",children:[(0,$e.jsx)(hl,{className:"paper-checkbox",checked:M,onChange:()=>{k(M?new Set:new Set(v.map((e=>O(e)))))},sx:{color:"#3b7b3f","&.Mui-checked":{color:"#3b7b3f"}}}),(0,$e.jsxs)("span",{className:"paper-count",children:[v.length," sources to be screened"]}),T.size>0&&(0,$e.jsxs)("button",{className:"delete-all-button",onClick:()=>{const t=T.size,n=M?"all":t;if(window.confirm("Delete ".concat(n," selected article").concat(1===t?"":"s","?")))if(M)y([]),k(new Set),Fc(e,[]).catch((e=>console.error("Failed to save after deleting all articles",e)));else{const t=v.filter((e=>!T.has(O(e))));y(t),k(new Set);const n=t.map((e=>{var t;return null!==(t=e.uniqueId)&&void 0!==t?t:e.pubmed_id})).filter((e=>null!=e&&""!==e));Fc(e,n).catch((e=>console.error("Failed to save after deleting articles",e)))}},children:[(0,$e.jsx)($P,{sx:{fontSize:16}}),M?"Delete all":"Delete ".concat(T.size," selected")]})]}),(0,$e.jsx)("div",{className:"papers-list",children:v.map(((t,n)=>{const r=Array.isArray(t.authors)?t.authors.join(", "):t.authors||"Unknown authors";return(0,$e.jsxs)("div",{className:"paper-item",children:[(0,$e.jsx)(hl,{className:"paper-item-checkbox",checked:T.has(O(t)),onChange:()=>(e=>{k((t=>{const n=new Set(t),r=O(e);return n.has(r)?n.delete(r):n.add(r),n}))})(t),sx:{color:"#3b7b3f","&.Mui-checked":{color:"#3b7b3f"}}}),(0,$e.jsxs)("div",{className:"paper-details",children:[(0,$e.jsx)("h3",{className:"paper-title",children:t.title}),(0,$e.jsx)("p",{className:"paper-authors",children:r}),(0,$e.jsxs)("div",{className:"paper-meta",children:[t.journalTitle&&(0,$e.jsxs)("span",{className:"paper-meta-item",children:[(0,$e.jsx)(KP,{sx:{fontSize:14,color:"#666",mr:.5,verticalAlign:"middle"}}),t.journalTitle,","]}),t.publicationDate&&(0,$e.jsxs)("span",{className:"paper-meta-item",children:[t.publicationDate,","]}),void 0!==t.citationCount&&null!==t.citationCount&&(0,$e.jsxs)("span",{className:"paper-meta-item",children:[t.citationCount," citations,"]}),null!==t.doi&&(0,$e.jsx)(JP,{doi:t.doi})]})]}),(0,$e.jsx)(Yn,{className:"paper-delete-button",onClick:()=>(t=>{const n=O(t),r=v.filter((e=>O(e)!==n));y(r),k((e=>{const t=new Set(e);return t.delete(n),t}));const o=r.map((e=>{var t;return null!==(t=e.uniqueId)&&void 0!==t?t:e.pubmed_id})).filter((e=>null!=e&&""!==e));Fc(e,o).catch((e=>console.error("Failed to save after deleting article",e)))})(t),size:"small","aria-label":"Remove article",sx:{color:"#999","&:hover":{color:"#d32f2f"}},children:(0,$e.jsx)($P,{fontSize:"small"})})]},O(t))}))})]}):(0,$e.jsxs)("div",{className:"no-sources-message",children:[(0,$e.jsxs)("div",{className:"papers-header",children:[(0,$e.jsx)("input",{type:"checkbox",className:"paper-checkbox"}),(0,$e.jsx)("span",{className:"paper-label",children:"Articles"}),(0,$e.jsx)("span",{className:"no-sources-text",children:"No sources are selected"})]}),(0,$e.jsxs)("div",{className:"no-sources-content",children:[(0,$e.jsx)("p",{className:"no-sources-title",children:"No selected sources"}),(0,$e.jsx)("p",{className:"no-sources-subtitle",children:"Add articles for screening against your research question."})]})]})]}),B=(0,$e.jsxs)("div",{className:"paper-sources-sidebar",children:[(0,$e.jsx)("div",{className:"sidebar-section",children:(0,$e.jsxs)("h3",{className:"sidebar-title",children:["Articles"," ",(0,$e.jsx)("span",{className:"sidebar-icon",onClick:e=>{e.stopPropagation(),x(!1)},children:"\u2139\ufe0f"})]})}),!b&&(0,$e.jsxs)("div",{className:"sidebar-section",children:[(0,$e.jsx)("div",{className:"sidebar-header",children:(0,$e.jsx)("h4",{children:"Add articles for screening"})}),(0,$e.jsxs)("div",{className:"sidebar-content",children:[(0,$e.jsx)("p",{children:"MedRPT has some initial suggestions, and you can add any relevant articles. Next, we'll develop screening criteria to rigorously assess whether any of these should be part of the review."}),(0,$e.jsx)("a",{href:"#",className:"sidebar-link",onClick:e=>{e.preventDefault(),x(!0)},children:"Hide"})]})]}),p&&(0,$e.jsxs)("div",{className:"sidebar-section",children:[(0,$e.jsx)("h4",{children:"Research question"}),(0,$e.jsx)("p",{className:"research-question",children:p})]})]});return(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(RP,{projectTitle:t.litreviewtitle||p||"Paper sources",editableTitle:!!e,steps:L,mainContent:F,sidebar:B,onNext:()=>{const e=v.map((e=>{var t;return null!==(t=e.uniqueId)&&void 0!==t?t:e.pubmed_id})).filter((e=>null!=e&&""!==e));n({question:p,screenedArticles:v,articleUniqueIds:e}),r("abstract-screening")},nextLabel:"Screen abstracts",showBack:!1,showNext:!i&&!l&&v.length>0}),(0,$e.jsx)(ZP,{open:C,onClose:()=>S(!1),query:u,question:p,searchFilters:f,screenedArticles:g,onAddSources:t=>{y((n=>{const r=new Set(n.map((e=>O(e)))),o=t.filter((e=>!r.has(O(e)))),a=[...n,...o],i=a.map((e=>{var t;return null!==(t=e.uniqueId)&&void 0!==t?t:e.pubmed_id})).filter((e=>null!=e&&""!==e));return Fc(e,i).catch((e=>console.error("Failed to save added articles",e))),a}))},status:w,setScreenedArticles:A,incomingError:l,onSearchUpdated:()=>{y([]),N(!1)},onQuestionUpdated:e=>{e&&h(e)},onQueryUpdated:e=>{e&&d(e)},onLargeSearchWarning:e=>{P(e),N(!0)}})]})},tR=(0,Qn.A)((0,$e.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator");var nR=n(2505);const rR=e=>{let{variant:t="screening",onClose:n,onAdd:r,onUpdate:o,onDelete:i,editingColumn:s}=e;const l="extraction"===t,c=Boolean(null===s||void 0===s?void 0:s.id),[u,d]=(0,a.useState)(""),[p,h]=(0,a.useState)(""),[f,m]=(0,a.useState)("any"),[g,A]=(0,a.useState)(""),[v,y]=(0,a.useState)(""),[b,x]=(0,a.useState)("any"),[w,E]=(0,a.useState)(!1),[C,S]=(0,a.useState)(""),T=l?"Name your extraction column":"Name your screening criterion",k=l?"Instructions":"Screening question",_=l,N=l?"extractionInstructions":"screeningQuestion",I=l?"Describe of what kind of data you want to extract":'If answer is "yes", paper is more likely to be screened in';(0,a.useEffect)((()=>
2{if(c){var e,t,n,r;const o=null!==(e=null===s||void 0===s?void 0:s.name)&&void 0!==e?e:"",a=l?null!==(t=null===s||void 0===s?void 0:s.instructions)&&void 0!==t?t:"":null!==(n=null===s||void 0===s?void 0:s.screeningQuestion)&&void 0!==n?n:"",i=null!==(r=null===s||void 0===s?void 0:s.answerStructure)&&void 0!==r?r:"any";d(o),h(a),m(i),A(o),y(a),x(i)}else d(""),h(""),m("any"),A(""),y(""),x("any");S("")}),[c,l,null===s||void 0===s?void 0:s.id,null===s||void 0===s?void 0:s.name,null===s||void 0===s?void 0:s.screeningQuestion,null===s||void 0===s?void 0:s.instructions,null===s||void 0===s?void 0:s.answerStructure]);const P=()=>{w||n()};return(0,$e.jsxs)("div",{className:"add-new-column-sidebar-root",role:"region","aria-labelledby":"add-new-column-title",children:[(0,$e.jsxs)("header",{className:"add-new-column-header",children:[(0,$e.jsx)("button",{type:"button",className:"add-new-column-back",onClick:P,children:"Back"}),(0,$e.jsx)("h2",{id:"add-new-column-title",className:"add-new-column-title",children:"Column details"}),(0,$e.jsx)("div",{className:"add-new-column-header-spacer","aria-hidden":!0})]}),(0,$e.jsxs)("form",{className:"add-new-column-form",onSubmit:async e=>{e.preventDefault();const t=u.trim(),a=p.trim();if(t){E(!0),S("");try{c?await o({columnId:s.id,name:t,...l?{instructions:a,answerStructure:f}:{screeningQuestion:a}}):l?await r({name:t,answerStructure:f,...a?{instructions:a}:{}}):await r({name:t,screeningQuestion:a}),n()}catch(i){S((null===i||void 0===i?void 0:i.message)||(c?"Failed to update column":"Failed to add column"))}finally{E(!1)}}},children:[(0,$e.jsxs)("div",{className:"add-new-column-field",children:[(0,$e.jsx)("label",{htmlFor:"columnName",className:"add-new-column-label",children:"Name"}),(0,$e.jsx)("input",{id:"columnName",name:"columnName",type:"text",className:"add-new-column-input",placeholder:T,autoComplete:"off",value:u,onChange:e=>d(e.target.value)})]}),(0,$e.jsxs)("div",{className:"add-new-column-field",children:[(0,$e.jsxs)("label",{htmlFor:N,className:"add-new-column-label",children:[k,_&&(0,$e.jsx)("span",{className:"add-new-column-label-optional",children:" (optional)"})]}),(0,$e.jsx)("textarea",{id:N,name:N,className:"add-new-column-textarea",rows:4,placeholder:I,value:p,onChange:e=>h(e.target.value)})]}),l&&(0,$e.jsxs)("div",{className:"add-new-column-field",children:[(0,$e.jsx)("label",{className:"add-new-column-label",children:"Answer structure"}),(0,$e.jsx)("div",{className:"answer-structure-group",children:[{value:"any",label:"Any"},{value:"yes_no_maybe",label:"Yes/No/Maybe"}].map((e=>(0,$e.jsx)("button",{type:"button",className:"answer-structure-btn".concat(f===e.value?" answer-structure-btn--active":""),onClick:()=>m(e.value),disabled:w,children:e.label},e.value)))})]}),C&&(0,$e.jsx)("p",{className:"add-new-column-error",role:"alert",children:C}),(0,$e.jsx)("footer",{className:"add-new-column-footer",children:c?(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("button",{type:"submit",className:"add-new-column-btn add-new-column-btn-primary",disabled:w,children:w?"Saving...":"Update"}),(0,$e.jsx)("button",{type:"button",className:"add-new-column-btn add-new-column-btn-danger",onClick:async()=>{if(c&&null!==s&&void 0!==s&&s.id){E(!0),S("");try{await i(s.id),n()}catch(e){S((null===e||void 0===e?void 0:e.message)||"Failed to delete column")}finally{E(!1)}}},disabled:w,children:"Delete"}),(0,$e.jsx)("button",{type:"button",className:"add-new-column-btn add-new-column-btn-discard",onClick:()=>{c&&(w||(d(g),h(v),m(b),S("")))},disabled:w,children:"Cancel"})]}):(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("button",{type:"button",className:"add-new-column-btn add-new-column-btn-cancel",onClick:P,children:"Cancel"}),(0,$e.jsx)("button",{type:"submit",className:"add-new-column-btn add-new-column-btn-primary",disabled:w||!u.trim()||!l&&!p.trim(),children:w?"Adding...":"Add column"})]})})]})]})},oR=e=>{const t=(0,a.useRef)(null),n=(0,a.useCallback)((()=>{t.current&&(clearInterval(t.current),t.current=null)}),[]),r=(0,a.useCallback)((r=>{n(),t.current=setInterval((()=>r(n)),e)}),[e,n]);return(0,a.useEffect)((()=>n),[n]),{startPolling:r,stopPolling:n}},aR=oR,iR=()=>{const{id:e,workflowData:t,getStepsForPage:n,setWorkflowData:r,navigateToStep:o}=_P(),{startPolling:i,stopPolling:s}=aR(2e3),[l,c]=(0,a.useState)(""),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),[f,m]=(0,a.useState)([]),[g,A]=(0,a.useState)({}),[v,y]=(0,a.useState)([]),[b,x]=(0,a.useState)([]),[w,E]=(0,a.useState)(!1),[C,S]=(0,a.useState)("default"),[T,k]=(0,a.useState)([]),[_,N]=(0,a.useState)(null),[I,P]=(0,a.useState)(""),R=n("abstract-screening"),D=e=>{null!=(null===e||void 0===e?void 0:e.suggestedColumns)&&m(Array.isArray(e.suggestedColumns)?e.suggestedColumns:[]),null!=(null===e||void 0===e?void 0:e.articleValues)&&"object"===typeof e.articleValues&&A(e.articleValues),null!=(null===e||void 0===e?void 0:e.articleUniqueIds)&&x(e.articleUniqueIds),null!=(null===e||void 0===e?void 0:e.addedArticles)&&y(e.addedArticles),null!=(null===e||void 0===e?void 0:e.question)&&P(e.question)};(0,a.useEffect)((()=>
2{if(!e)return;return(async()=>{d(!0),h(!0),c("");try{const t=await Vc(e);if("completed"===(null===t||void 0===t?void 0:t.status))return D(t),d(!1),void h(!1);if("processing"===(null===t||void 0===t?void 0:t.status))return D(t),void i((async t=>{try{const n=await Vc(e);D(n),Array.isArray(null===n||void 0===n?void 0:n.articleUniqueIds)&&n.articleUniqueIds.length>0&&d(!1),"completed"===(null===n||void 0===n?void 0:n.status)?(d(!1),h(!1),t()):"failed"===(null===n||void 0===n?void 0:n.status)&&(c(n.error||"Failed to load screening data"),d(!1),h(!1),t())}catch(n){c(n.message||"Failed to load screening data"),d(!1),h(!1),t()}}));if("failed"===(null===t||void 0===t?void 0:t.status))return c(t.error||"Failed to load screening data"),d(!1),void h(!1);const n=await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/review/createAbstractSuggestedColumns/").concat(e),{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({articleUniqueIds:t})});if(!r.ok){const e=await r.json(),t=e.message||e.error||"Failed to screen abstracts";throw new Error(t)}return await r.json()}catch(l){throw console.error("Error submitting articles IDs for screening",l),l}})(e);"completed"===(null===n||void 0===n?void 0:n.status)?(D(n),d(!1),h(!1)):"processing"===(null===n||void 0===n?void 0:n.status)||"pending"===(null===n||void 0===n?void 0:n.status)?(D(n),i((async t=>{try{const n=await Vc(e);D(n),Array.isArray(null===n||void 0===n?void 0:n.articleUniqueIds)&&n.articleUniqueIds.length>0&&d(!1),"completed"===(null===n||void 0===n?void 0:n.status)?(d(!1),h(!1),t()):"failed"===(null===n||void 0===n?void 0:n.status)&&(c(n.error||"Failed to load screening data"),d(!1),h(!1),t())}catch(n){c(n.message||"Failed to load screening data"),d(!1),h(!1),t()}}))):null!=(null===n||void 0===n?void 0:n.suggestedColumns)?(D(n),d(!1),h(!1)):(d(!1),h(!1))}catch(t){c(t.message||"Failed to load screening data"),d(!1),h(!1)}})(),s}),[e]);const L=e=>{var t,n,r;null!==e&&void 0!==e&&e.id&&(N({id:e.id,name:null!==(t=null!==(n=e.name)&&void 0!==n?n:e.label)&&void 0!==t?t:"",screeningQuestion:null!==(r=e.screeningQuestion)&&void 0!==r?r:""}),S("add-column"))},O=new Map(T.map((e=>[e.id,e]))),M=(new Map(f.map((e=>[e.id,e]))),f.map((e=>{var t,n,r,o,a,i;const s=null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:"";if(!s)return null;const l=O.get(s),c=null!==(n=null!==(r=null===l||void 0===l?void 0:l.name)&&void 0!==r?r:null===e||void 0===e?void 0:e.label)&&void 0!==n?n:(s||"").split(/[-_]/).map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ");return{id:s,label:c,name:c,screeningQuestion:null!==(o=null!==(a=null!==(i=null===l||void 0===l?void 0:l.screeningQuestion)&&void 0!==i?i:null===e||void 0===e?void 0:e.screeningQuestion)&&void 0!==a?a:null===e||void 0===e?void 0:e.question)&&void 0!==o?o:""}})).filter(Boolean)),j=new Set(f.map((e=>null===e||void 0===e?void 0:e.id)).filter(Boolean)),F=[...M,...T.filter((e=>(null===e||void 0===e?void 0:e.id)&&!j.has(e.id))).map((e=>{var t;return{id:e.id,label:e.name,name:e.name,screeningQuestion:null!==(t=e.screeningQuestion)&&void 0!==t?t:""}}))],B=!l&&(b.length>0||Object.keys(g).length>0),U=(0,$e.jsxs)("div",{className:"abstract-screening-content",children:[u&&!B&&(0,$e.jsxs)("div",{className:"abstract-screening-loading",children:[(0,$e.jsx)(Hd,{sx:{color:"#0d9488"},size:40}),(0,$e.jsx)("p",{className:"abstract-screening-loading-message",children:"Evaluating"})]}),!u&&l&&(0,$e.jsx)("div",{className:"abstract-screening-error",children:(0,$e.jsx)("p",{className:"source-card-status",children:l})}),B&&p&&(0,$e.jsxs)("div",{className:"abstract-screening-evaluating-banner",children:[(0,$e.jsx)(Hd,{sx:{color:"#0d9488"},size:16}),(0,$e.jsx)("span",{children:"Evaluating remaining articles\u2026"})]}),B&&(0,$e.jsx)($e.Fragment,{children:(0,$e.jsx)("div",{className:"abstract-screening-table-wrapper",children:(0,$e.jsxs)("table",{className:"abstract-screening-table",children:[(0,$e.jsx)("thead",{children:(0,$e.jsxs)("tr",{children:[(0,$e.jsx)("th",{className:"abstract-screening-paper-col",children:"Paper"}),F.map((e=>(0,$e.jsx)("th",{onClick:()=>L(e),role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),L(e))},className:"abstract-screening-col-header--clickable",children:e.label},e.id)))]})}),(0,$e.jsx)("tbody",{children:b.map(((e,t)=>{var n,r,o,a,i,s;const l=null!==(n=v[t])&&void 0!==n?n:{},c=(e=>{var t,n;if(null==e)return{};const r=null!==(t=null!==(n=g[e])&&void 0!==n?n:g[String(e)])&&void 0!==t?t:g[Number(e)];if(null==r||Array.isArray(r))return{};if(r.columns&&"object"===typeof r.columns){const e={};for(const[t,n]of Object.entries(r.columns)){var o;e[t]=null!==(o=null===n||void 0===n?void 0:n.value)&&void 0!==o?o:n}return e}return r})(e),u=c&&Object.keys(c).length>0,d=null!==(r=null===l||void 0===l?void 0:l.title)&&void 0!==r?r:"",p=null===l||void 0===l?void 0:l.authors,h=Array.isArray(p)?p.join(", "):null!==p&&void 0!==p?p:"",f=null!==(o=null===l||void 0===l?void 0:l.journalTitle)&&void 0!==o?o:"",m=null!==(a=null===l||void 0===l?void 0:l.publicationDate)&&void 0!==a?a:"",A=null!==(i=null===l||void 0===l?void 0:l.citationCount)&&void 0!==i?i:0,y=null!==(s=null===l||void 0===l?void 0:l.doi)&&void 0!==s?s:"";return(0,$e.jsxs)("tr",{children:[(0,$e.jsx)("td",{className:"abstract-screening-paper-cell",children:(0,$e.jsxs)("div",{className:"abstract-screening-paper-card",children:[(0,$e.jsx)("div",{className:"abstract-screening-paper-title",children:d}),h&&(0,$e.jsx)("div",{className:"abstract-screening-paper-authors",children:h}),(0,$e.jsxs)("div",{className:"abstract-screening-paper-meta",children:[(0,$e.jsxs)("span",{className:"paper-meta-item",children:[" ",(0,$e.jsx)(KP,{sx:{fontSize:14,color:"#666",mr:.5,verticalAlign:"middle"}}),f,", "]}),(0,$e.jsxs)("span",{className:"paper-meta-item",children:[m,","]})," ",(0,$e.jsxs)("span",{className:"paper-meta-item",children:[A," citations,"]}),y&&(0,$e.jsx)(JP,{doi:y})]})]})}),F.map((e=>
2{const t=c[e.id],n=null==t||""===String(t).trim(),r=String(n?u?"No":"\u2014":t),o=r.toLowerCase(),a="yes"===o?"pill-yes":"no"===o?"pill-no":"pill-maybe";return(0,$e.jsx)("td",{children:(0,$e.jsxs)("span",{className:"abstract-screening-pill ".concat(a),children:[(0,$e.jsx)("span",{className:"abstract-screening-pill-dot"}),r]})},e.id)}))]},String(e))}))})]})})})]}),z=(0,$e.jsxs)("div",{className:"abstract-screening-sidebar",children:[(0,$e.jsx)("div",{className:"abstract-screening-sidebar-section",children:(0,$e.jsxs)("h3",{className:"abstract-screening-sidebar-title",children:["Columns"," ",(0,$e.jsx)("span",{className:"abstract-screening-sidebar-icon",onClick:e=>{e.stopPropagation(),E(!1)},children:"\u2139\ufe0f"})]})}),!w&&(0,$e.jsxs)("div",{className:"abstract-screening-sidebar-section",children:[(0,$e.jsx)("div",{className:"abstract-screening-sidebar-header",children:(0,$e.jsx)("h4",{children:"Add screening columns"})}),(0,$e.jsxs)("div",{className:"abstract-screening-sidebar-content",children:[(0,$e.jsx)("p",{children:"Use our suggested screening criteria or add your own. MedRPT will evaluate the sources on these criteria, then move on to screening decisions in the next step. "}),(0,$e.jsx)("a",{href:"#",className:"abstract-screening-sidebar-link",onClick:e=>{e.preventDefault(),E(!0)},children:"Hide"})]})]}),(0,$e.jsx)("div",{className:"abstract-screening-sidebar-columns-block",children:(0,$e.jsxs)("button",{type:"button",className:"abstract-screening-add-new-link",onClick:()=>{N(null),S("add-column")},children:[(0,$e.jsx)(nR.A,{sx:{fontSize:18}}),"Add new column"]})}),(0,$e.jsx)("div",{className:"abstract-screening-sidebar-columns-block abstract-screening-sidebar-suggested-block",children:(0,$e.jsx)("h3",{className:"abstract-screening-sidebar-column-heading",children:"Screening columns"})}),F.length>0&&(0,$e.jsx)("ul",{className:"abstract-screening-sidebar-column-list",children:F.map((e=>(0,$e.jsxs)("li",{className:"abstract-screening-sidebar-column-item abstract-screening-sidebar-column-item--clickable",onClick:()=>L(e),role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),L(e))},children:[(0,$e.jsx)(tR,{className:"abstract-screening-sidebar-drag-icon",fontSize:"small"}),(0,$e.jsx)("span",{children:e.label})]},e.id)))})]}),H="add-column"===C?(0,$e.jsx)("div",{className:"abstract-screening-sidebar abstract-screening-sidebar--add-column",children:(0,$e.jsx)(rR,{variant:"screening",onClose:()=>{S("default"),N(null)},onAdd:async t=>{var n,r,o;let{name:a,screeningQuestion:i}=t;if(!e)throw new Error("Literature review job id is missing");const s=await Gc(e,{columnName:a,screeningQuestion:i}),l=null!==(n=null===s||void 0===s?void 0:s.newColumn)&&void 0!==n?n:null===s||void 0===s?void 0:s.column;if(null===l||void 0===l||!l.id)throw new Error("Server did not return newColumn.id");const c={id:l.id,name:null!==(r=l.label)&&void 0!==r?r:a,screeningQuestion:null!==(o=l.screeningQuestion)&&void 0!==o?o:i};Array.isArray(null===s||void 0===s?void 0:s.suggestedColumns)&&m(s.suggestedColumns),k((e=>[c,...e.filter((e=>e.id!==l.id))])),null==(null===s||void 0===s?void 0:s.articleValues)||"object"!==typeof s.articleValues||Array.isArray(s.articleValues)||A(s.articleValues)},onUpdate:async t=>{let{columnId:n,name:r,screeningQuestion:o}=t;if(!e)throw new Error("Literature review job id is missing");const a=await Gc(e,{columnName:r,screeningQuestion:o,columnId:n});Array.isArray(null===a||void 0===a?void 0:a.suggestedColumns)&&m(a.suggestedColumns),k((e=>e.map((e=>(null===e||void 0===e?void 0:e.id)===n?{...e,name:r,screeningQuestion:o}:e)))),null==(null===a||void 0===a?void 0:a.articleValues)||"object"!==typeof a.articleValues||Array.isArray(a.articleValues)||A(a.articleValues)},onDelete:async t=>{var n,r;if(!e)throw new Error("Literature review job id is missing");if(!t)throw new Error("Column id is missing");const o=await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/review/deleteAbstractScreeningColumn/").concat(e,"/").concat(t),{method:"DELETE",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});if(!r.ok){const e=await r.json(),t=e.message||e.error||"Failed to delete screening column";throw new Error(t)}return await r.json()}catch(l){throw console.error("Error deleting abstract screening column:",l),l}})(e,t);m(null!==(n=o.suggestedColumns)&&void 0!==n?n:[]),A(null!==(r=o.articleValues)&&void 0!==r?r:{}),k((e=>e.filter((e=>(null===e||void 0===e?void 0:e.id)!==t)))),N((e=>(null===e||void 0===e?void 0:e.id)===t?null:e))},editingColumn:_})}):z;return(0,$e.jsx)(RP,{projectTitle:t.litreviewtitle||I||"Abstract screening",editableTitle:!!e,steps:R,mainContent:U,sidebar:H,onNext:()=>{const e=new Set(f.map((e=>
2null===e||void 0===e?void 0:e.id)).filter(Boolean)),t=T.filter((t=>(null===t||void 0===t?void 0:t.id)&&!e.has(t.id))).map((e=>({id:e.id,label:e.name,screeningQuestion:e.screeningQuestion}))),n=[...f,...t].filter(((e,t,n)=>(null===e||void 0===e?void 0:e.id)&&n.findIndex((t=>(null===t||void 0===t?void 0:t.id)===e.id))===t));r({screenedArticles:v,articleUniqueIds:b,articleValues:g,suggestedColumns:n}),o("recommended-abstracts")},onBack:()=>{o("paper-sources")},nextLabel:"Evaluate Screening",showBack:!0,showNext:!p&&!u&&!l})},sR=(0,Qn.A)((0,$e.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),lR=(0,Qn.A)((0,$e.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),cR=(0,Qn.A)((0,$e.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),uR=(0,Qn.A)((0,$e.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),dR=(0,Qn.A)((0,$e.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),pR=(0,Qn.A)((0,$e.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),hR=(0,Qn.A)((0,$e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),fR=e=>{let{projectTitle:t,screenedArticles:n,articleUniqueIds:r,articleValues:o,suggestedColumns:i,screeningType:s,steps:l,onBack:c,onNext:u,nextLabel:d,showBack:p=!0,secondaryButtonLabel:h,onSecondaryClick:f,showSecondary:m=!1}=e;const[g,A]=(0,a.useState)({}),[v,y]=(0,a.useState)({}),[b,x]=(0,a.useState)(3.7),[w,E]=(0,a.useState)("desc"),[C,S]=(0,a.useState)(""),[T,k]=(0,a.useState)(!1),_=(0,a.useMemo)((()=>Array.isArray(i)?i:[]),[i]),N="full-text"===s,I=N?"(Full-text)":"(Abstract only)",P=N?"full-texts":"abstracts",R=e=>{var t,n,r;return null==e?null:null!==(t=null!==(n=null!==(r=o[e])&&void 0!==r?r:o[String(e)])&&void 0!==n?n:o[Number(e)])&&void 0!==t?t:null},D=e=>{const t=R(e);return t&&t.inclusion_scores?t.inclusion_scores:null},L=e=>{const t=R(e);if(!t)return{};if(t.columns&&"object"===typeof t.columns)return t.columns;const n={};for(const[r,o]of Object.entries(t))"inclusion_scores"!==r&&"columns"!==r&&(n[r]="object"===typeof o?o:{value:o,rationale:""});return n},O=(e,t)=>{var n;const r=e[t];return r?"object"===typeof r?null!==(n=r.value)&&void 0!==n?n:"\u2014":r:"\u2014"},M=(0,a.useMemo)((()=>_.map((e=>{var t,n;const r=null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:"";return{id:r,label:null!==(n=null===e||void 0===e?void 0:e.label)&&void 0!==n?n:(r||"").split(/[-_]/).map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ")}})).filter((e=>e.id))),[_]),j=e=>{var t;const n=D(e);return null!==(t=null===n||void 0===n?void 0:n.value)&&void 0!==t?t:null},F=e=>{if(null==e)return null;const t=Number(e);return isNaN(t)?null:t},B=e=>{const t=F(j(e));return null==t?"unknown":t>=b?"include":"exclude"},U=(0,a.useMemo)((()=>r.filter((e=>"include"===B(e)))),[r,o,b]),z=(0,a.useMemo)((()=>U.map((e=>n.find((t=>t.uniqueId===e)))).filter(Boolean)),[U,n]),H=()=>{const e={};return U.forEach((t=>{const n=R(t);n&&(e[t]=n)})),e},W=(0,a.useMemo)((()=>{let e=0,t=0;return r.forEach((n=>{const r=B(n);"include"===r?e++:"exclude"===r&&t++})),{total:r.length,included:e,excluded:t}}),[r,o,b]),V=(0,a.useCallback)((e=>{A((t=>({...t,[e]:!t[e]})))}),[]),G=(0,a.useCallback)((e=>{y((t=>({...t,[e]:!t[e]})))}),[]),q=e=>{const t=String(e).toLowerCase();return"yes"===t?"pill-yes":"no"===t?"pill-no":"pill-maybe"},Y=r.length>0||Object.keys(o).length>0,Q="desc"===w?"Score: High to Low":"Score: Low to High",X=(0,a.useMemo)((()=>{let e=r.map(((e,t)=>({aid:e,idx:t})));if(C.trim()){const t=C.trim().toLowerCase();e=e.filter((e=>{var r,o,a;let{aid:i,idx:s}=e;const l=null!==(r=n[s])&&void 0!==r?r:{},c=(null!==(o=null===l||void 0===l?void 0:l.title)&&void 0!==o?o:"").toLowerCase(),u=null===l||void 0===l?void 0:l.authors,d=Array.isArray(u)?u.join(", ").toLowerCase():(null!==u&&void 0!==u?u:"").toLowerCase(),p=(null!==(a=null===l||void 0===l?void 0:l.abstract)&&void 0!==a?a:"").toLowerCase();return c.includes(t)||d.includes(t)||p.includes(t)}))}return w&&e.sort(((e,t)=>{var n,r;const o=null!==(n=F(j(e.aid)))&&void 0!==n?n:-1,a=null!==(r=F(j(t.aid)))&&void 0!==r?r:-1;return"desc"===w?a-o:o-a})),e}),[r,n,o,C,w]),K=(0,$e.jsx)("div",{className:"eval-screening-content",children:Y&&(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)("div",{className:"eval-screening-toolbar",children:[(0,$e.jsxs)("button",{className:"eval-screening-toolbar-btn",onClick:()=>{E((e=>"desc"===e?"asc":"desc"))},children:["desc"===w?(0,$e.jsx)(sR,{sx:{fontSize:16}}):(0,$e.jsx)(lR,{sx:{fontSize:16}}),Q]}),T?(0,$e.jsxs)("div",{className:"eval-screening-search-wrapper",children:[(0,$e.jsx)(cR,{sx:{fontSize:16,color:"#666"}}),(0,$e.jsx)("input",{type:"text",className:"eval-screening-search-input",placeholder:"Search title, author or abstract\u2026",value:C,onChange:e=>S(e.target.value),autoFocus:!0}),(0,$e.jsx)("button",{className:"eval-screening-search-close",onClick:()=>{k(!1),S("")},children:(0,$e.jsx)(Tl,{sx:{fontSize:16}})})]}):(0,$e.jsxs)("button",{className:"eval-screening-toolbar-btn",onClick:()=>k(!0),children:[(0,$e.jsx)(cR,{sx:{fontSize:16}})," Search"]}),(0,$e.jsxs)("button",{className:"eval-screening-toolbar-btn",onClick:()=>{!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export.csv";const r=e=>'"'.concat(String(null!==e&&void 0!==e?e:"").replace(/"/g,'""'),'"'),o=[e,...t].map((e=>e.map(r).join(","))).join("\n"),a=new Blob([o],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(a),s=document.createElement("a");s.href=i,s.download=n,s.click(),URL.revokeObjectURL(i)}(["Title","Authors","Journal","Date","DOI","Score","Decision",...M.map((e=>e.label))],X.map((e=>{var t,r,o,a,i,s;let{aid:l,idx:c}=e;const u=null!==(t=n[c])&&void 0!==t?t:{},d=L(l),p=F(j(l)),h=B(l);return[null!==(r=u.title)&&void 0!==r?r:"",Array.isArray(u.authors)?u.authors.join("; "):null!==(o=u.authors)&&void 0!==o?o:"",null!==(a=u.journalTitle)&&void 0!==a?a:"",null!==(i=u.publicationDate)&&void 0!==i?i:"",null!==(s=u.doi)&&void 0!==s?s:"",null!==p&&void 0!==p?p:"",h,...M.map((e=>O(d,e.id)))]})),"screening-results.csv")},children:[(0,$e.jsx)(uR,{sx:{fontSize:16}})," Export"]})]}),(0,$e.jsx)("div",{className:"eval-screening-table-wrapper",children:(0,$e.jsxs)("table",{className:"eval-screening-table",children:[(0,$e.jsx)("thead",{children:(0,$e.jsxs)("tr",{children:[(0,$e.jsx)("th",{className:"eval-screening-paper-col",children:"Paper"}),(0,$e.jsxs)("th",{className:"eval-screening-judgement-col",children:["Screening judgement ",(0,$e.jsx)("span",{className:"eval-screening-judgement-label",children:I})]})]})}),(0,$e.jsx)("tbody",{children:X.map((e=>{var t,r,o,a,i,s,l;let{aid:c,idx:u}=e;const d=null!==(t=n[u])&&void 0!==t?t:{},p=D(c),h=L(c),f=B(c),m=F(j(c)),A=null!==(r=null===d||void 0===d?void 0:d.title)&&void 0!==r?r:"",y=null===d||void 0===d?void 0:d.authors,b=Array.isArray(y)?y:[],x=b.length>0?b.join(", "):null!==y&&void 0!==y?y:"",w=b.length>
22,E=null!==(o=null===d||void 0===d?void 0:d.journalTitle)&&void 0!==o?o:"",C=null!==(a=null===d||void 0===d?void 0:d.publicationDate)&&void 0!==a?a:"",S=null!==(i=null===d||void 0===d?void 0:d.citationCount)&&void 0!==i?i:0,T=null!==(s=null===d||void 0===d?void 0:d.doi)&&void 0!==s?s:"",k=!!g[c],_=!!v[c],N=null!==(l=null===p||void 0===p?void 0:p.rationale)&&void 0!==l?l:"";return(0,$e.jsxs)("tr",{className:"eval-screening-row ".concat(f),children:[(0,$e.jsx)("td",{className:"eval-screening-paper-cell",children:(0,$e.jsxs)("div",{className:"eval-screening-paper-card",children:[(0,$e.jsx)("div",{className:"eval-screening-paper-title",children:A}),x&&(0,$e.jsxs)("div",{className:"eval-screening-paper-authors-wrapper",children:[(0,$e.jsx)("div",{className:"eval-screening-paper-authors ".concat(_?"expanded":""),children:x}),w&&(0,$e.jsx)("button",{className:"eval-screening-authors-toggle",onClick:()=>G(c),children:_?"Show less":"Show all"})]}),(0,$e.jsxs)("div",{className:"eval-screening-paper-meta",children:[(0,$e.jsxs)("span",{className:"paper-meta-item",children:[(0,$e.jsx)(KP,{sx:{fontSize:14,color:"#666",mr:.5,verticalAlign:"middle"}}),E,","]}),(0,$e.jsxs)("span",{className:"paper-meta-item",children:[C,","]}),(0,$e.jsxs)("span",{className:"paper-meta-item",children:[S," citation",1!==S?"s":"",","]}),T&&(0,$e.jsx)(JP,{doi:T})]})]})}),(0,$e.jsx)("td",{className:"eval-screening-judgement-cell",children:(0,$e.jsxs)("div",{className:"eval-screening-judgement-content",children:[(0,$e.jsxs)("div",{className:"eval-screening-judgement-header",children:[(0,$e.jsxs)("span",{className:"eval-screening-decision-pill decision-".concat(f),children:[(0,$e.jsx)("span",{className:"eval-screening-decision-dot"}),"include"===f?"Include":"Exclude"]}),null!=m&&(0,$e.jsxs)("span",{className:"eval-screening-score",children:[m," / ",10]})]}),N&&(0,$e.jsx)("p",{className:"eval-screening-rationale",children:N}),M.length>0&&(0,$e.jsx)("div",{className:"eval-screening-criteria-pills",children:M.map((e=>{const t=O(h,e.id),n=q(t);return(0,$e.jsxs)("span",{className:"eval-screening-criteria-pill ".concat(n),children:[(0,$e.jsx)("span",{className:"eval-screening-criteria-dot"}),e.label]},e.id)}))}),M.length>0&&(0,$e.jsxs)("button",{className:"eval-screening-expand-btn",onClick:()=>V(c),children:[k?"Hide":"Show"," criteria evaluations",k?(0,$e.jsx)(dR,{sx:{fontSize:18}}):(0,$e.jsx)(pR,{sx:{fontSize:18}})]}),k&&(0,$e.jsx)("div",{className:"eval-screening-criteria-details",children:M.map((e=>{var t,n;const r=h[e.id],o="object"===typeof r?null!==(t=null===r||void 0===r?void 0:r.value)&&void 0!==t?t:"\u2014":null!==r&&void 0!==r?r:"\u2014",a="object"===typeof r&&null!==(n=null===r||void 0===r?void 0:r.rationale)&&void 0!==n?n:"",i=q(o);return(0,$e.jsxs)("div",{className:"eval-screening-criteria-row",children:[(0,$e.jsxs)("div",{className:"eval-screening-criteria-label",children:[(0,$e.jsxs)("span",{className:"eval-screening-criteria-pill ".concat(i),children:[(0,$e.jsx)("span",{className:"eval-screening-criteria-dot"}),e.label]}),(0,$e.jsx)("span",{className:"eval-screening-criteria-value ".concat(i),children:o})]}),a&&(0,$e.jsx)("p",{className:"eval-screening-criteria-rationale",children:a})]},e.id)}))})]})})]},String(c))}))})]})})]})}),J=(0,$e.jsxs)("div",{className:"eval-screening-sidebar",children:[(0,$e.jsxs)("div",{className:"eval-screening-sidebar-header",children:[(0,$e.jsx)("h3",{className:"eval-screening-sidebar-title",children:"Screening results"}),(0,$e.jsx)("span",{className:"eval-screening-sidebar-info",children:(0,$e.jsx)(hR,{sx:{fontSize:18,color:"#94a3b8"}})})]}),(0,$e.jsxs)("div",{className:"eval-screening-sidebar-section",children:[(0,$e.jsx)("h4",{className:"eval-screening-sidebar-subtitle",children:"Overview"}),(0,$e.jsxs)("ul",{className:"eval-screening-overview-list",children:[(0,$e.jsxs)("li",{className:"eval-screening-overview-item",children:[(0,$e.jsx)("span",{className:"eval-screening-overview-icon eval-check",children:"\u2713"}),(0,$e.jsxs)("span",{children:[W.total," ",P," evaluated"]})]}),(0,$e.jsxs)("li",{className:"eval-screening-overview-item",children:[(0,$e.jsx)("span",{className:"eval-screening-overview-dot dot-included"}),(0,$e.jsxs)("span",{children:[W.included," ",P," included"]})]}),(0,$e.jsxs)("li",{className:"eval-screening-overview-item",children:[(0,$e.jsx)("span",{className:"eval-screening-overview-dot dot-excluded"}),(0,$e.jsxs)("span",{children:[W.excluded," ",P," excluded"]})]})]})]}),(0,$e.jsxs)("div",{className:"eval-screening-sidebar-section",children:[(0,$e.jsxs)("h4",{className:"eval-screening-sidebar-subtitle",children:["Score threshold",(0,$e.jsx)("span",{className:"eval-screening-sidebar-info-inline",children:(0,$e.jsx)(hR,{sx:{fontSize:16,color:"#94a3b8"}})})]}),(0,$e.jsxs)("div",{className:"eval-screening-threshold-control",children:[(0,$e.jsx)("input",{type:"number",className:"eval-screening-threshold-input",value:b,min:0,max:10,step:.1,onChange:e=>{const t=parseFloat(e.target.value);isNaN(t)||x(Math.min(10,Math.max(0,Math.round(10*t)/10)))}}),(0,$e.jsx)("input",{type:"range",className:"eval-screening-threshold-slider",value:b,min:0,max:10,step:.1,onChange:e=>{x(parseFloat(e.target.value))},style:{"--slider-pct":"".concat(b/10*100,"%")}})]}),(0,$e.jsx)("p",{className:"eval-screening-threshold-desc",children:"Papers with screening scores above this value will be included and below this value will be excluded. Papers that fail strict criteria will always be excluded."})]})]});return(0,$e.jsx)(RP,{projectTitle:t||"Evaluate screening results",steps:l,mainContent:K,sidebar:J,onNext:()=>{u&&u(U,z,H())},onBack:c,nextLabel:d,showBack:p,showNext:Y,secondaryButtonLabel:h,onSecondaryClick:m?()=>{f&&f(U,z,H())}:void 0,showSecondary:m&&Y})},mR=()=>{const{id:e,workflowData:t,setWorkflowData:n,navigateToStep:r,setFromStep:o,getStepsForPage:i}=_P(),s=i("recommended-abstracts"),[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(null),[p,h]=(0,a.useState)(null),[f,m]=(0,a.useState)(null);(0,a.useEffect)((()=>
2{if(!e)return;let t=!1;return(async()=>{try{const n=await Vc(e);if(t)return;Array.isArray(null===n||void 0===n?void 0:n.addedArticles)&&c(n.addedArticles),Array.isArray(null===n||void 0===n?void 0:n.articleUniqueIds)&&d(n.articleUniqueIds),null!==n&&void 0!==n&&n.articleValues&&"object"===typeof n.articleValues&&h(n.articleValues),Array.isArray(null===n||void 0===n?void 0:n.suggestedColumns)&&m(n.suggestedColumns)}catch(n){console.error("Failed to fetch abstract screening data:",n)}})(),()=>{t=!0}}),[e]);const g=Array.isArray(l)&&l.length>0?l:t.screenedArticles,A=Array.isArray(u)&&u.length>0?u:t.articleUniqueIds,v=p&&"object"===typeof p&&Object.keys(p).length>0?p:t.articleValues,y=(0,a.useMemo)((()=>Array.isArray(f)&&f.length>0?f:t.suggestedColumns),[f,t.suggestedColumns]);return(0,$e.jsx)(fR,{projectTitle:t.litreviewtitle,screenedArticles:g,articleUniqueIds:A,articleValues:v,suggestedColumns:y,screeningType:"abstract",steps:s,onBack:()=>{r("abstract-screening")},onNext:(e,t,o)=>{n({screenedArticles:t,articleUniqueIds:e,articleValues:o}),r("full-text-screening")},nextLabel:"Screen full-texts",showBack:!0,secondaryButtonLabel:"Extract data",onSecondaryClick:(e,t,a)=>{n({articleUniqueIds:e,screenedArticles:t,articleValues:a}),o("recommended-abstracts"),r("data-extraction-definition")},showSecondary:!0})},gR=(0,Qn.A)((0,$e.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),AR=(0,Qn.A)((0,$e.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile"),vR=()=>{const{id:e,workflowData:t,setWorkflowData:n,navigateToStep:r,setFromStep:o,getStepsForPage:i}=_P(),s=i("full-text-screening"),l=(0,a.useMemo)((()=>{var e;return null!==(e=t.screenedArticles)&&void 0!==e?e:[]}),[t.screenedArticles]),c=(0,a.useMemo)((()=>{var e;return null!==(e=t.articleUniqueIds)&&void 0!==e?e:[]}),[t.articleUniqueIds]),u=(0,a.useMemo)((()=>{var e;return null!==(e=t.articleValues)&&void 0!==e?e:{}}),[t.articleValues]),d=(0,a.useMemo)((()=>{var e;return null!==(e=t.suggestedColumns)&&void 0!==e?e:[]}),[t.suggestedColumns]),[p,h]=(0,a.useState)([]),[f,m]=(0,a.useState)(!1),[g,A]=(0,a.useState)(!1),[v,y]=(0,a.useState)(0),b=(0,a.useRef)(null),[x,w]=(0,a.useState)(""),[E,C]=(0,a.useState)(!1),[S,T]=(0,a.useState)(!1),[k,_]=(0,a.useState)(null),N=(e,t)=>{var n,r;if(e&&null!=t)return null!==(n=null!==(r=e[t])&&void 0!==r?r:e[String(t)])&&void 0!==n?n:void 0},I=e=>{if(!e||"object"!==typeof e)return null;const t={...e};return t.inclusionScore&&!t.inclusion_scores&&(t.inclusion_scores=t.inclusionScore),t},P=async e=>{const t=e.map((e=>e.doi)).filter(Boolean);if(0!==t.length)try{const e=await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/pdfFileUrls"),{method:"POST",headers:{"Content-type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({dois:e})});if(!n.ok)throw new Error("Failed to get PDF file URLs");return await n.json()}catch(t){throw console.error("Error getting PDF file URLs:",t),t}})(t);null!==e&&void 0!==e&&e.results&&h((t=>t.map((t=>{const n=e.results.find((e=>e.DOI===t.doi));return n?{...t,fileUrl:n.fileUrl||null,fileMissing:!n.available||!n.fileUrl}:t}))))}catch(n){console.error("Error fetching PDF URLs:",n)}};(0,a.useEffect)((()=>{const e=c.map((e=>{const t=l.find((t=>t.uniqueId===e))||{},n=t.doi||"";return{uniqueId:e,paper:t,doi:n,fileUrl:null,fileMissing:!1,status:"pending",evaluation:null}}));return h(e),e.length>0&&P(e),()=>{b.current&&clearInterval(b.current)}}),[c,l]);const R=()=>{b.current&&clearInterval(b.current),b.current=setInterval((async()=>{try{const t=await Kc(e),n=t.fullTextArticleStatus,r=t.fullTextArticleValues,o={};c.forEach((e=>{const t=N(n,e);if(t)return void(o[e]=(e=>{if(!e)return"pending";const t=String(e).toLowerCase();return["done","completed","complete","success","succeeded","finished"].includes(t)?"done":["failed","error","errored"].includes(t)?"failed":["processing","running","in_progress","in-progress"].includes(t)?"processing":"pending"})(t));!!N(r,e)&&(o[e]="done")}));const a=c.length,i=c.filter((e=>{const t=o[e];return"done"===t||"failed"===t})).length,s=a>0&&Object.values(o).every((e=>"done"===e||"failed"===e));console.log("Polling update:",{normalizedStatusMap:o,allFinished:s}),h((e=>e.map((e=>{const t=o[e.uniqueId]||e.status,n=I(N(r,e.uniqueId)||e.evaluation);return{...e,status:t,evaluation:n}})))),y(a>0?i/a*100:0),s&&(clearInterval(b.current),m(!1),A(!0))}catch(t){console.error("Polling error:",t)}}),5e3)},D=(0,a.useMemo)((()=>
2{if(!x.trim())return p;const e=x.trim().toLowerCase();return p.filter((t=>{const n=(t.paper.title||"").toLowerCase(),r=t.paper.authors,o=Array.isArray(r)?r.join(", ").toLowerCase():(r||"").toLowerCase(),a=(t.paper.abstract||"").toLowerCase();return n.includes(e)||o.includes(e)||a.includes(e)}))}),[p,x]),L=p.some((e=>e.fileMissing||!e.fileUrl)),O=p.length>0&&!f,M=(0,a.useMemo)((()=>{const e={};return p.forEach((t=>{"done"===t.status&&t.evaluation&&(e[t.uniqueId]=I(t.evaluation))})),console.log("Completed Article Values for Results:",e),e}),[p]),j=(0,a.useMemo)((()=>p.filter((e=>"done"===e.status)).map((e=>e.uniqueId))),[p]),F=(0,a.useMemo)((()=>j.map((e=>l.find((t=>t.uniqueId===e)))).filter(Boolean)),[j,l]),B=(0,$e.jsxs)("div",{className:"eval-screening-content fts-content",children:[(0,$e.jsx)("div",{className:"fts-toolbar-actions eval-screening-toolbar",children:E?(0,$e.jsxs)("div",{className:"eval-screening-search-wrapper",children:[(0,$e.jsx)(cR,{sx:{fontSize:16,color:"#666"}}),(0,$e.jsx)("input",{type:"text",className:"eval-screening-search-input",placeholder:"Search title, author...",value:x,onChange:e=>w(e.target.value),autoFocus:!0}),(0,$e.jsx)("button",{className:"eval-screening-search-close",onClick:()=>{C(!1),w("")},children:(0,$e.jsx)(Tl,{sx:{fontSize:16}})})]}):(0,$e.jsxs)("button",{className:"eval-screening-toolbar-btn",onClick:()=>C(!0),children:[(0,$e.jsx)(cR,{sx:{fontSize:16}})," Search"]})}),(0,$e.jsx)("div",{className:"eval-screening-table-wrapper fts-table-wrapper",children:(0,$e.jsxs)("table",{className:"eval-screening-table fts-table",children:[(0,$e.jsx)("thead",{children:(0,$e.jsxs)("tr",{children:[(0,$e.jsx)("th",{className:"eval-screening-paper-col",children:"Paper"}),(0,$e.jsx)("th",{className:"fts-file-col",children:"File Status"}),(0,$e.jsx)("th",{className:"fts-evaluation-col",children:"Evaluation Status"})]})}),(0,$e.jsxs)("tbody",{children:[D.map((e=>{const{uniqueId:t,paper:n,fileUrl:r,fileMissing:o,status:a,evaluation:i}=e,s=(null===n||void 0===n?void 0:n.title)||"Unknown Title",l=null===n||void 0===n?void 0:n.authors,c=Array.isArray(l)?l:[],u=c.length>0?c.join(", "):l||"";return(0,$e.jsxs)("tr",{className:"eval-screening-row fts-row",children:[(0,$e.jsx)("td",{className:"eval-screening-paper-cell",children:(0,$e.jsxs)("div",{className:"eval-screening-paper-card",children:[(0,$e.jsx)("div",{className:"eval-screening-paper-title",children:s}),u&&(0,$e.jsx)("div",{className:"eval-screening-paper-authors",children:u}),(0,$e.jsx)("div",{className:"eval-screening-paper-meta",children:(null===n||void 0===n?void 0:n.doi)&&(0,$e.jsx)(JP,{doi:n.doi})})]})}),(0,$e.jsx)("td",{className:"fts-file-cell",children:r?(0,$e.jsxs)("div",{className:"fts-status-pill fts-success",children:[(0,$e.jsx)("span",{className:"fts-dot success-dot"})," File ready"]}):o?(0,$e.jsxs)("div",{className:"fts-missing-wrapper",children:[(0,$e.jsxs)("div",{className:"fts-status-pill fts-warning",children:[(0,$e.jsx)(gR,{sx:{fontSize:14,mr:.5}})," File Missing"]}),(0,$e.jsx)("div",{className:"fts-upload-mini",children:(0,$e.jsx)(Cl,{variant:"outlined",size:"small",startIcon:(0,$e.jsx)(AR,{}),onClick:()=>{_(t),T(!0)},children:"Upload Full-text File"})})]}):(0,$e.jsx)("div",{className:"fts-status-pill fts-pending",children:"Pending lookup..."})}),(0,$e.jsxs)("td",{className:"fts-evaluation-cell",children:[(0,$e.jsx)("div",{className:"fts-status-pill fts-eval-".concat(a),children:"processing"===a?"Processing...":"done"===a?"Done":"failed"===a?"Failed":"Pending"}),(null===i||void 0===i?void 0:i.inclusionScore)&&(0,$e.jsxs)("div",{className:"fts-eval-score",children:["Score: ",i.inclusionScore.value," / 10"]})]})]},t)})),0===D.length&&(0,$e.jsx)("tr",{children:(0,$e.jsx)("td",{colSpan:"3",style:{textAlign:"center",padding:"20px"},children:"No articles found."})})]})]})})]}),U=(0,$e.jsxs)("div",{className:"eval-screening-sidebar",children:[(0,$e.jsx)("div",{className:"eval-screening-sidebar-header",children:(0,$e.jsx)("h3",{className:"eval-screening-sidebar-title",children:"Actions"})}),(0,$e.jsxs)("div",{className:"eval-screening-sidebar-section",children:[(0,$e.jsx)("p",{style:{fontSize:"13px",color:"#64748b",marginBottom:"16
2px"},children:"Full texts are retrieved automatically when this page loads. Upload any missing files before evaluating."}),(0,$e.jsx)("button",{className:"fts-evaluate-btn ".concat(O?"":"disabled"),onClick:async()=>{const t=p.map((e=>({uniqueArticleId:e.uniqueId,DOI:e.doi||"",fileURL:e.fileUrl||""})));try{m(!0),await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/review/fullTextScreening/").concat(e),{method:"POST",headers:{"Content-type":"application/json",Authorization:"Bearer ".concat(n)},body:JSON.stringify({articles:t})});if(!r.ok){const e=await r.json().catch((()=>({})));throw new Error(e.message||"Failed to start full-text screening")}return await r.json()}catch(n){throw console.error("Error starting full-text screening:",n),n}})(e,t),R()}catch(n){console.error("Error starting evaluation:",n),m(!1)}},disabled:!O,children:f?"Evaluating...":"Evaluate full-text screening"}),f&&(0,$e.jsxs)("div",{style:{marginTop:"16px"},children:[(0,$e.jsx)(aN,{variant:"determinate",value:v}),(0,$e.jsxs)("p",{style:{fontSize:"12px",color:"#64748b",marginTop:"8px",textAlign:"center"},children:[Math.round(v),"% Completed"]})]})]}),(0,$e.jsxs)("div",{className:"eval-screening-sidebar-section",children:[(0,$e.jsx)("h4",{className:"eval-screening-sidebar-subtitle",children:"Overview"}),(0,$e.jsxs)("ul",{className:"eval-screening-overview-list",style:{listStyle:"none",padding:0,margin:0,fontSize:"13px"},children:[(0,$e.jsxs)("li",{style:{padding:"4px 0",borderBottom:"1px solid #f1f5f9"},children:[(0,$e.jsx)("strong",{children:p.length})," Total Articles"]}),(0,$e.jsxs)("li",{style:{padding:"4px 0",borderBottom:"1px solid #f1f5f9",color:L?"#d97706":"inherit"},children:[(0,$e.jsx)("strong",{children:p.filter((e=>e.fileUrl)).length})," Ready Files"]}),(0,$e.jsxs)("li",{style:{padding:"4px 0",borderBottom:"1px solid #f1f5f9"},children:[(0,$e.jsx)("strong",{children:p.filter((e=>"done"===e.status)).length})," Evaluated"]})]})]})]});return g&&(console.log("Evaluation complete. Articles:"),console.log("Completed Article Values for Results:",M)),(0,$e.jsx)($e.Fragment,{children:g&&Object.keys(M).length>0?(0,$e.jsx)(fR,{projectTitle:t.litreviewtitle,screenedArticles:F,articleUniqueIds:j,articleValues:M,suggestedColumns:d,screeningType:"full-text",steps:AP("full-text-screening"),onBack:()=>{A(!1)},onNext:(e,t,a)=>{const i=c.filter((e=>!j.includes(e))),s=i.map((e=>l.find((t=>t.uniqueId===e)))).filter(Boolean),d={};i.forEach((e=>{const t=u[e];t&&(d[e]=t)})),n({articleUniqueIds:[...e,...i],screenedArticles:[...t,...s],articleValues:{...d,...a},fullTextArticleIds:e,fullTextUploadedCount:j.length}),o("full-text-screening"),r("data-extraction-definition")},nextLabel:"Data Extraction",showBack:!0}):(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(RP,{projectTitle:t.litreviewtitle||"Full text screening",editableTitle:!!e,steps:s,mainContent:B,sidebar:U,onBack:()=>{r("recommended-abstracts")},showBack:!0,showNext:!1}),(0,$e.jsx)(sI,{isOpen:S,onClose:()=>{T(!1),_(null)},onFileSelect:function(e){if(!k)return;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return;const t=e.fileKey||e.id||e.url;t&&h((e=>e.map((e=>e.uniqueId===k?{...e,fileUrl:t,fileMissing:!1}:e)))),T(!1),_(null)},selectedFiles:[]})]})})},yR=(0,Qn.A)((0,$e.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock"),bR=()=>{var e,t;const{id:n,fromStep:r,workflowData:o,setWorkflowData:i,navigateToStep:s,setFromStep:l,getStepsForPage:c}=_P(),{startPolling:u,stopPolling:d}=oR(2e3),[p,h]=(0,a.useState)(!1),[f,m]=(0,a.useState)("default"),[g,A]=(0,a.useState)(!1),[v,y]=(0,a.useState)(!1),[b,x]=(0,a.useState)(""),[w,E]=(0,a.useState)({}),[C,S]=(0,a.useState)([]),[T,k]=(0,a.useState)([]),[_,N]=(0,a.useState)(null),[I,P]=(0,a.useState)((()=>new Set)),[R]=(0,a.useState)(null!==(e=o.question)&&void 0!==e?e:""),D=null!==(t=o.screenedArticles)&&void 0!==t?t:[],L=(0,a.useMemo)((()=>Array.isArray(o.articleUniqueIds)?o.articleUniqueIds:[]),[o.articleUniqueIds]),O=(0,a.useMemo)((()=>c("data-extraction-definition")),[c]),M=(0,a.useMemo)((()=>T.map((e=>{var t,n;const r=null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:"";return{id:r,label:null!==(n=null===e||void 0===e?void 0:e.label)&&void 0!==n?n:(r||"").split(/[-_]/).map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ")}})).filter((e=>e.id))),[T]),j=(0,a.useMemo)((()=>L.join(",")),[L]),F=((0,a.useMemo)((()=>M.map((e=>e.id)).join(",")),[M]),"data-extraction-definition"===("undefined"!==typeof window&&window.location.hash||"").replace(/^#/,"").trim());(0,a.useEffect)((()=>
2{if(!n||!j||!F)return;const e=e=>{Array.isArray(null===e||void 0===e?void 0:e.extractionColumns)&&(S(e.extractionColumns),k(e.extractionColumns.map((e=>({...e}))))),null!=(null===e||void 0===e?void 0:e.extractionArticleValues)&&"object"===typeof e.extractionArticleValues&&E(e.extractionArticleValues)},t=d,r=()=>{u((async t=>{try{const r=await qc(n);e(r),Array.isArray(null===r||void 0===r?void 0:r.extractionColumns)&&r.extractionColumns.length>0&&A(!1),"completed"===(null===r||void 0===r?void 0:r.status)?(A(!1),y(!1),t()):"failed"===(null===r||void 0===r?void 0:r.status)&&(x(r.error||"Failed to load extraction data"),A(!1),y(!1),t())}catch(r){x((null===r||void 0===r?void 0:r.message)||"Failed to load extraction data"),A(!1),y(!1),t()}}))};return(async()=>{A(!0),y(!0),x("");try{const t=await qc(n);if("completed"===(null===t||void 0===t?void 0:t.status))return e(t),A(!1),void y(!1);if("processing"===(null===t||void 0===t?void 0:t.status))return e(t),void r();if("failed"===(null===t||void 0===t?void 0:t.status))return x(t.error||"Failed to load extraction data"),A(!1),void y(!1);const o=await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/review/getExtractionData/").concat(e),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)},body:JSON.stringify({includedArticleIds:t})});if(!r.ok){const e=await r.json(),t=e.message||e.error||"Failed to get extraction data";throw new Error(t)}return await r.json()}catch(b){throw console.error("Error getting extraction data",b),b}})(n,L);"completed"===(null===o||void 0===o?void 0:o.status)?(e(o),A(!1),y(!1)):"processing"===(null===o||void 0===o?void 0:o.status)||"pending"===(null===o||void 0===o?void 0:o.status)?(e(o),r()):Array.isArray(null===o||void 0===o?void 0:o.extractionColumns)?(e(o),A(!1),y(!1)):(A(!1),y(!1))}catch(t){x((null===t||void 0===t?void 0:t.message)||"Failed to load extraction data"),A(!1),y(!1)}})(),t}),[n,F,j,u,d,L]);const B=!b&&L.length>0&&(C.length>0||Object.keys(w).length>0),U=()=>{m("default"),N(null)},z=e=>{var t,n;N({id:e.id,name:e.label,instructions:null!==(t=e.instructions)&&void 0!==t?t:"",answerStructure:null!==(n=e.answerStructure)&&void 0!==n?n:"any"}),m("edit-column")},H=(0,$e.jsxs)("div",{className:"extraction-definition-content",children:[g&&!B&&(0,$e.jsxs)("div",{className:"extraction-definition-loading",children:[(0,$e.jsx)(Hd,{sx:{color:"#0d9488"},size:40}),(0,$e.jsx)("p",{className:"extraction-definition-loading-message",children:"Extracting data..."})]}),!g&&b&&(0,$e.jsx)("div",{className:"extraction-definition-error",children:(0,$e.jsx)("p",{className:"source-card-status",children:b})}),B&&v&&(0,$e.jsxs)("div",{className:"extraction-definition-evaluating-banner",children:[(0,$e.jsx)(Hd,{sx:{color:"#0d9488"},size:16}),(0,$e.jsx)("span",{children:"Extracting remaining articles\u2026"})]}),B&&(0,$e.jsx)($e.Fragment,{children:(0,$e.jsx)("div",{className:"extraction-definition-table-wrapper",children:(0,$e.jsxs)("table",{className:"extraction-definition-table",children:[(0,$e.jsx)("thead",{children:(0,$e.jsxs)("tr",{children:[(0,$e.jsx)("th",{className:"extraction-definition-paper-col",children:"Paper"}),C.map((e=>{var t,n;var r,o;return"builtin"===e.type?(0,$e.jsxs)("th",{className:"extraction-definition-col-header--locked",children:[(0,$e.jsx)(yR,{sx:{fontSize:14,mr:.5,verticalAlign:"middle",color:"#888"}}),null!==(r=null!==(o=e.label)&&void 0!==o?o:e.id)&&void 0!==r?r:""]},e.id):(0,$e.jsx)("th",{className:"extraction-definition-col-header--clickable",onClick:()=>z({id:e.id,label:e.label,instructions:e.instructions,answerStructure:e.answerStructure}),role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||z({id:e.id,label:e.label,instructions:e.instructions,answerStructure:e.answerStructure})},children:null!==(t=null!==(n=e.label)&&void 0!==n?n:e.id)&&void 0!==t?t:""},e.id)}))]})}),(0,$e.jsx)("tbody",{children:L.map(((e,t)=>{var n,r,o,a,i,s;const l=null!==(n=D[t])&&void 0!==n?n:{},c=null!==(r=null===l||void 0===l?void 0:l.title)&&void 0!==r?r:"",u=null===l||void 0===l?void 0:l.authors,d=Array.isArray(u)?u.join(", "):null!==u&&void 0!==u?u:"",p=null!==(o=null===l||void 0===l?void 0:l.journalTitle)&&void 0!==o?o:"",h=null!==(a=null===l||void 0===l?void 0:l.publicationDate)&&void 0!==a?a:"",f=null!==(i=null===l||void 0===l?void 0:l.citationCount)&&void 0!==i?i:0,m=null!==(s=null===l||void 0===l?void 0:l.doi)&&void 0!==s?s:"";return(0,$e.jsxs)("tr",{children:[(0,$e.jsx)("td",{className:"extraction-definition-paper-cell",children:(0,$e.jsxs)("div",{className:"extraction-definition-paper-card",children:[(0,$e.jsx)("div",{className:"extraction-definition-paper-title",children:c}),d&&(0,$e.jsx)("div",{className:"extraction-definition-paper-authors",children:d}),(0,$e.jsxs)("div",{className:"extraction-definition-paper-meta",children:[(0,$e.jsxs)("span",{className:"paper-meta-item",children:[(0,$e.jsx)(KP,{sx:{fontSize:14,color:"#666",mr:.5,verticalAlign:"middle"}}),p,","," "]}),(0,$e.jsxs)("span",{className:"paper-meta-item",children:[h,", "]}),(0,$e.jsxs)("span",{className:"paper-meta-item",children:[f," citations, "]}),m&&(0,$e.jsx)(JP,{doi:m})]})]})}),C.map((t=>{var n;const r=((e,t)=>{var n,r,o;
2if(null==e||!t)return{};const a=null!==(n=null!==(r=w[e])&&void 0!==r?r:w[String(e)])&&void 0!==n?n:w[Number(e)];if(null==a||Array.isArray(a))return{};const i=null!==(o=a[t])&&void 0!==o?o:a[String(t)];return null==i||"object"!==typeof i||Array.isArray(i)?{}:i})(e,t.id),o=Array.isArray(t.fields)?t.fields:[],a=(t.type,"yes_no_maybe"===t.answerStructure);return(0,$e.jsx)("td",{className:"extraction-definition-field-cell",children:a?(0,$e.jsx)("span",{children:null!==(n=r.answer)&&void 0!==n?n:"\u2014"}):(0,$e.jsx)("ul",{className:"extraction-definition-field-list",children:o.map(((n,o)=>{var a,i,s,l,c,u,d,p,h;const f=null!==(a=null!==(i=r[n.name])&&void 0!==i?i:r[n.id])&&void 0!==a?a:"\u2014",m=String(f),g=null!==(s=null!==(l=null!==(c=n.label)&&void 0!==c?c:n.description)&&void 0!==l?l:n.name)&&void 0!==s?s:"",A="".concat(e,"|").concat(t.id,"|").concat(null!==(u=null!==(d=n.name)&&void 0!==d?d:n.id)&&void 0!==u?u:o),v=m.length>180,y=I.has(A),b=v&&!y;return(0,$e.jsxs)("li",{children:[(0,$e.jsxs)("div",{className:b?"extraction-definition-field-item--clamped":void 0,children:[(0,$e.jsx)("span",{className:"extraction-definition-field-sep",children:"-"})," ",g,(0,$e.jsx)("span",{className:"extraction-definition-field-sep",children:":"})," ",m]}),v&&(0,$e.jsx)("button",{type:"button",className:"extraction-definition-field-toggle",onClick:()=>{return e=A,void P((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}));var e},children:y?"Show less":"Show more"})]},null!==(p=null!==(h=n.name)&&void 0!==h?h:n.id)&&void 0!==p?p:o)}))})},t.id)}))]},String(e))}))})]})})})]}),W=(0,$e.jsxs)("div",{className:"extraction-definition-sidebar",children:[(0,$e.jsx)("div",{className:"extraction-definition-sidebar-section",children:(0,$e.jsxs)("h3",{className:"extraction-definition-sidebar-title",children:["Columns"," ",(0,$e.jsx)("span",{className:"extraction-definition-sidebar-icon",onClick:e=>{e.stopPropagation(),h(!1)},children:"\u2139\ufe0f"})]})}),!p&&(0,$e.jsxs)("div",{className:"extraction-definition-sidebar-section",children:[(0,$e.jsx)("div",{className:"extraction-definition-sidebar-header",children:(0,$e.jsx)("h4",{children:"Extraction columns"})}),(0,$e.jsxs)("div",{className:"extraction-definition-sidebar-content",children:[(0,$e.jsx)("p",{children:"Use suggested extraction columns or add your own. Evaluate extraction results and refine column definitions as needed. "}),(0,$e.jsx)("a",{href:"#",className:"extraction-definition-sidebar-link",onClick:e=>{e.preventDefault(),h(!0)},children:"Hide"})]})]}),(0,$e.jsxs)("div",{className:"extraction-definition-sidebar-columns-block",children:[(0,$e.jsx)("h3",{className:"extraction-definition-sidebar-column",children:"Extraction columns"}),(0,$e.jsxs)("button",{type:"button",className:"extraction-definition-add-new-link",onClick:()=>m("add-column"),children:[(0,$e.jsx)(nR.A,{sx:{fontSize:18}}),"Add new column"]})]}),(0,$e.jsx)("ul",{className:"extraction-definition-sidebar-column-list",children:M.map((e=>{var t;const n=null!==(t=C.find((t=>t.id===e.id)))&&void 0!==t?t:e;return"builtin"===n.type?(0,$e.jsxs)("li",{className:"extraction-definition-sidebar-column-item extraction-definition-sidebar-column-item--locked",title:"Built-in column (locked)",children:[(0,$e.jsx)(yR,{className:"extraction-definition-sidebar-drag-icon",fontSize:"small"}),(0,$e.jsx)("span",{children:e.label})]},e.id):(0,$e.jsxs)("li",{className:"extraction-definition-sidebar-column-item extraction-definition-sidebar-column-item--clickable",onClick:()=>{var t;return z({id:n.id,label:null!==(t=n.label)&&void 0!==t?t:e.label,instructions:n.instructions,answerStructure:n.answerStructure})},role:"button",tabIndex:0,onKeyDown:t=>{var r;"Enter"!==t.key&&" "!==t.key||z({id:n.id,label:null!==(r=n.label)&&void 0!==r?r:e.label,instructions:n.instructions,answerStructure:n.answerStructure})},children:[(0,$e.jsx)(tR,{className:"extraction-definition-sidebar-drag-icon",fontSize:"small"}),(0,$e.jsx)("span",{children:e.label})]},e.id)}))})]}),V="add-column"===f?(0,$e.jsx)("div",{className:"extraction-definition-sidebar extraction-definition-sidebar--add-column",children:(0,$e.jsx)(rR,{variant:"extraction",onClose:U,onAdd:async e=>{let{name:t,instructions:r,answerStructure:o}=e;if(!n)throw new Error("Literature review job id is missing");if(!L.length)throw new Error("No articles to extract");const a=await(async(e,t)=>{let{columnName:n,includedArticleIds:r,instructions:o,answerStructure:a}=t;
2try{const t=await Ec(),i={columnName:n,includedArticleIds:r,answerStructure:a||"any"},s=null!=o?String(o).trim():"";s&&(i.instructions=s);const l=await fetch("".concat("https://api.medrpt.ai","/api/review/extract-new/").concat(e),{method:"POST",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},body:JSON.stringify(i)});if(!l.ok){const e=await l.json(),t=e.message||e.error||"Failed to add extraction column";throw new Error(t)}return await l.json()}catch(b){throw console.error("Error creating extraction column",b),b}})(n,{columnName:t,includedArticleIds:L,answerStructure:o||"any",...null!=r&&""!==String(r).trim()?{instructions:String(r).trim()}:{}});if(Array.isArray(null===a||void 0===a?void 0:a.extractionColumns))k(a.extractionColumns);else{var i;const e=null!==(i=null===a||void 0===a?void 0:a.column)&&void 0!==i?i:null===a||void 0===a?void 0:a.newColumn;null!==e&&void 0!==e&&e.id&&k((n=>{var r;return[...n.filter((t=>(null===t||void 0===t?void 0:t.id)!==e.id)),{id:e.id,label:null!==(r=e.label)&&void 0!==r?r:t,screeningQuestion:e.screeningQuestion}]}))}Array.isArray(null===a||void 0===a?void 0:a.extractionColumns)&&S(a.extractionColumns),null==(null===a||void 0===a?void 0:a.extractionArticleValues)||"object"!==typeof a.extractionArticleValues||Array.isArray(a.extractionArticleValues)||E(a.extractionArticleValues)}})}):"edit-column"===f?(0,$e.jsx)("div",{className:"extraction-definition-sidebar extraction-definition-sidebar--add-column",children:(0,$e.jsx)(rR,{variant:"extraction",onClose:U,onUpdate:async e=>{let{columnId:t,name:r,instructions:o,answerStructure:a}=e;if(!n)throw new Error("Literature review job id is missing");const i=await(async(e,t)=>{let{columnId:n,columnName:r,instructions:o,includedArticleIds:a,answerStructure:i}=t;try{const t=await Ec(),s=await fetch("".concat("https://api.medrpt.ai","/api/review/reextractColumn/").concat(e),{method:"POST",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},body:JSON.stringify({columnId:n,columnName:r,includedArticleIds:a,instructions:null!=o?String(o).trim():"",answerStructure:i||"any"})});if(!s.ok){const e=await s.json();throw new Error(e.message||e.error||"Failed to re-extract column")}return await s.json()}catch(b){throw console.error("Error re-extracting column:",b),b}})(n,{columnId:t,columnName:r,instructions:o,includedArticleIds:L,answerStructure:a||"any"});Array.isArray(null===i||void 0===i?void 0:i.extractionColumns)&&(S(i.extractionColumns),k(i.extractionColumns)),null==(null===i||void 0===i?void 0:i.extractionArticleValues)||"object"!==typeof i.extractionArticleValues||Array.isArray(i.extractionArticleValues)||E(i.extractionArticleValues)},onDelete:async e=>{if(!n)throw new Error("Literature review job id is missing");const t=await(async(e,t)=>{try{const n=await Ec(),r=await fetch("".concat("https://api.medrpt.ai","/api/review/deleteExtractionColumn/").concat(e,"/").concat(t),{method:"DELETE",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});if(!r.ok){const e=await r.json();throw new Error(e.message||e.error||"Failed to delete extraction column")}return await r.json()}catch(b){throw console.error("Error deleting extraction column:",b),b}})(n,e);Array.isArray(null===t||void 0===t?void 0:t.extractionColumns)&&(S(t.extractionColumns),k(t.extractionColumns)),null==(null===t||void 0===t?void 0:t.extractionArticleValues)||"object"!==typeof t.extractionArticleValues||Array.isArray(t.extractionArticleValues)||E(t.extractionArticleValues)},editingColumn:_})}):W;return(0,$e.jsx)(RP,{projectTitle:o.litreviewtitle||R||"Data extraction definition",editableTitle:!!n,steps:O,mainContent:H,sidebar:V,onNext:()=>{i({extractionArticleValues:w,extractionColumns:C}),s("data-extraction-results")},onBack:()=>{"recommended-sources"===(null!==r&&void 0!==r?r:"recommended-abstracts")?(l("recommended-sources"),s("recommended-sources")):(l("recommended-abstracts"),s("recommended-abstracts"))},nextLabel:"View extraction results",showBack:!0,showNext:B&&!v})},xR=(0,Qn.A)((0,$e.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),wR=()=>{var e,t,n,r;const{id:o,fromStep:i,workflowData:s,navigateToStep:l,getStepsForPage:c}=_P(),[u,d]=(0,a.useState)(!1),p=(0,a.useMemo)((()=>c("data-extraction-results")),[c]),h=null!==(e=s.screenedArticles)&&void 0!==e?e:[],f=Array.isArray(s.articleUniqueIds)?s.articleUniqueIds:[],m=null!==(t=s.extractionArticleValues)&&void 0!==t?t:{},g=(n=s.fullTextArticleIds,r=s.fullTextUploadedCount,(0,a.useMemo)((()=>Array.isArray(s.extractionColumns)?s.extractionColumns:[]),[s.extractionColumns])),A=(e,t)=>
2{var n,r,o;if(null==e||!t)return{};const a=null!==(n=null!==(r=m[e])&&void 0!==r?r:m[String(e)])&&void 0!==n?n:m[Number(e)];if(null==a||Array.isArray(a))return{};const i=null!==(o=a[t])&&void 0!==o?o:a[String(t)];return null==i||"object"!==typeof i||Array.isArray(i)?{}:i},v=f.length>0&&(g.length>0||Object.keys(m).length>0),y=e=>{if(null==e)return"";const t=String(e).trim();return t.includes(",")||t.includes('"')||t.includes("\n")||t.includes("\r")?'"'.concat(t.replace(/"/g,'""'),'"'):t},b=(0,$e.jsx)("div",{className:"extraction-definition-content",children:v?(0,$e.jsx)("div",{className:"extraction-definition-table-wrapper",children:(0,$e.jsxs)("table",{className:"extraction-definition-table",children:[(0,$e.jsx)("thead",{children:(0,$e.jsxs)("tr",{children:[(0,$e.jsx)("th",{className:"extraction-definition-paper-col",children:"Paper"}),g.map((e=>{var t,n;return(0,$e.jsx)("th",{children:null!==(t=null!==(n=e.label)&&void 0!==n?n:e.id)&&void 0!==t?t:""},e.id)}))]})}),(0,$e.jsx)("tbody",{children:f.map(((e,t)=>{var n,r,o,a,i,s;const l=null!==(n=h[t])&&void 0!==n?n:{},c=null!==(r=null===l||void 0===l?void 0:l.title)&&void 0!==r?r:"",u=null===l||void 0===l?void 0:l.authors,d=Array.isArray(u)?u.join(", "):null!==u&&void 0!==u?u:"",p=null!==(o=null===l||void 0===l?void 0:l.journalTitle)&&void 0!==o?o:"",f=null!==(a=null===l||void 0===l?void 0:l.publicationDate)&&void 0!==a?a:"",m=null!==(i=null===l||void 0===l?void 0:l.citationCount)&&void 0!==i?i:0,v=null!==(s=null===l||void 0===l?void 0:l.doi)&&void 0!==s?s:"";return(0,$e.jsxs)("tr",{children:[(0,$e.jsx)("td",{className:"extraction-definition-paper-cell",children:(0,$e.jsxs)("div",{className:"extraction-definition-paper-card",children:[(0,$e.jsx)("div",{className:"extraction-definition-paper-title",children:c}),d&&(0,$e.jsx)("div",{className:"extraction-definition-paper-authors",children:d}),(0,$e.jsxs)("div",{className:"extraction-definition-paper-meta",children:[(0,$e.jsxs)("span",{className:"paper-meta-item",children:[(0,$e.jsx)(KP,{sx:{fontSize:14,color:"#666",mr:.5,verticalAlign:"middle"}}),p,","," "]}),(0,$e.jsxs)("span",{className:"paper-meta-item",children:[f,", "]}),(0,$e.jsxs)("span",{className:"paper-meta-item",children:[m," citations, "]}),v&&(0,$e.jsx)(JP,{doi:v})]})]})}),g.map((t=>{var n;const r=A(e,t.id),o=Array.isArray(t.fields)?t.fields:[],a="yes_no_maybe"===t.answerStructure;return(0,$e.jsx)("td",{className:"extraction-definition-field-cell",children:a?(0,$e.jsx)("span",{children:null!==(n=r.answer)&&void 0!==n?n:"\u2014"}):(0,$e.jsx)("ul",{className:"extraction-definition-field-list",children:o.map(((e,t)=>{var n,o,a,i,s,l,c;const u=null!==(n=null!==(o=r[e.name])&&void 0!==o?o:r[e.id])&&void 0!==n?n:"\u2014",d=null!==(a=null!==(i=null!==(s=e.label)&&void 0!==s?s:e.description)&&void 0!==i?i:e.name)&&void 0!==a?a:"";return(0,$e.jsxs)("li",{children:[(0,$e.jsx)("span",{className:"extraction-definition-field-sep",children:"-"})," ",d,(0,$e.jsx)("span",{className:"extraction-definition-field-sep",children:":"})," ",String(u)]},null!==(l=null!==(c=e.name)&&void 0!==c?c:e.id)&&void 0!==l?l:t)}))})},t.id)}))]},String(e))}))})]})}):(0,$e.jsx)("div",{className:"extraction-results-empty",children:(0,$e.jsx)("p",{children:"No extraction results to display. Run extraction from the Extraction Definition step."})})}),x=(0,$e.jsxs)("div",{className:"extraction-results-sidebar",children:[(0,$e.jsx)("div",{className:"extraction-results-sidebar-section",children:(0,$e.jsxs)("h3",{className:"extraction-results-sidebar-title",children:["Extraction Details",(0,$e.jsx)("span",{className:"extraction-results-sidebar-icon",onClick:e=>{e.stopPropagation(),d(!1)},children:"\u2139\ufe0f"})]})}),!u&&(0,$e.jsxs)("div",{className:"extraction-results-sidebar-section",children:[(0,$e.jsx)("div",{className:"extraction-results-sidebar-header",children:(0,$e.jsx)("h4",{children:"Review and export extraction"})}),(0,$e.jsxs)("div",{className:"extraction-results-sidebar-content",children:[(0,$e.jsx)("p",{children:"MedRPT will extract data from screened-in sources and continue processing them even if you close this tab. When finished, you can export the extraction results as a CSV."}),(0,$e.jsx)("a",{href:"#",className:"extraction-results-sidebar-link",onClick:e=>{e.preventDefault(),d(!0)},children:"Hide"})]})]}),(0,$e.jsxs)("div",{className:"extraction-results-sidebar-section",children:[(0,$e.jsx)("h3",{className:"extraction-results-sidebar-title",children:"Status"}),(0,$e.jsx)("div",{className:"extraction-results-status",children:(0,$e.jsx)("span",{className:"extraction-results-status-badge",children:"Extraction complete"})})]}),(0,$e.jsxs)("div",{className:"extraction-results-sidebar-section",children:[(0,$e.jsx)("h3",{className:"extraction-results-sidebar-title",children:"Export"}),(0,$e.jsx)("div",{className:"extraction-results-export-buttons",children:(0,$e.jsxs)("button",{type:"button",className:"extraction-results-export-btn-card",onClick:()=>{const e=(()=>{const e=["Paper Title","Authors","Journal","Publication Date","Citations","DOI"];g.forEach((t=>{const n=Array.isArray(t.fields)?t.fields:[];var r,o;0===n.length?e.push(null!==(r=null!==(o=t.label)&&void 0!==o?o:t.id)&&void 0!==r?r:""):n.forEach((n=>{var r,o,a,i,s,l;const c=null!==(r=null!==(o=null!==(a=null!==(i=n.label)&&void 0!==i?i:n.description)&&void 0!==a?a:n.name)&&void 0!==o?o:n.id)&&void 0!==r?r:"";e.push("".concat(null!==(s=null!==(l=t.label)&&void 0!==l?l:t.id)&&void 0!==s?s:""," - ").concat(c))}))}));const t=[e.map(y).join(",")];return f.forEach(((e,n)=>{var r,o,a,i,s,l;const c=null!==(r=h[n])&&void 0!==r?r:{},u=null===c||void 0===c?void 0:c.authors,d=Array.isArray(u)?u.join(", "):null!==u&&void 0!==u?u:"",p=[y(null!==(o=null===c||void 0===c?void 0:c.title)&&void 0!==o?o:""),y(d),y(null!==(a=null===c||void 0===c?void 0:c.journalTitle)&&void 0!==a?a:""),y(null!==(i=null===c||void 0===c?void 0:c.publicationDate)&&void 0!==i?i:""),y(null!==(s=null===c||void 0===c?void 0:c.citationCount)&&void 0!==s?s:""),y(null!==(l=null===c||void 0===c?void 0:c.doi)&&void 0!==l?l:"")];g.forEach((t=>{const n=A(e,t.id),r=Array.isArray(t.fields)?t.fields:[];if(0===r.length){var o,a;const e=null!==(o=null!==(a=n.value)&&void 0!==a?a:n)&&void 0!==o?o:"";p.push(y(e))}else r.forEach((e=>{var t,r;const o=null!==(t=null!==(r=n[e.name])&&void 0!==r?r:n[e.id])&&void 0!==t?t:"";p.push(y(o))}))})),t.push(p.join(","))})),t.join("\r\n")})(),t=new Blob(["\ufeff"+e],{type:"text/csv;charset=utf-8;"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download="MedRPT-extraction-results-".concat(null!==o&&void 0!==o?o:"export",".csv"),r.click(),URL.revokeObjectURL(n)},disabled:!v,children:[(0,$e.jsx)(xR,{className:"extraction-results-export-btn-icon"}),(0,$e.jsxs)("div",{className:"extraction-results-export-btn-text",children:[(0,$e.jsx)("span",{className:"extraction-results-export-btn-label",children:"CSV"}),(0,$e.jsx)("span",{className:"extraction-results-export-btn-subtitle",children:"Comma-separated"})]})]})})]})]});return(0,$e.jsx)(RP,{projectTitle:s.litreviewtitle||"Extraction Results",editableTitle:!!o,steps:p,mainContent:b,sidebar:x,onBack:()=>{l("data-extraction-definition")},backLabel:"",onNext:()=>{l("research-report")},nextLabel:"Generate report",showBack:!0,showNext:v})},ER="printWindow";function CR(e){let{level:t="error",messages:n,suppressErrors:r=!1}=e;r||("error"===t?console.error(n):"warning"===t?console.warn(n):console.debug(n))}function SR(e,t){if(t||!e){const e=document.getElementById(ER);e&&document.body.removeChild(e)}}function TR(e){return e instanceof Error?e:new Error("Unknown Error")}function kR(e,t){const{documentTitle:n,onAfterPrint:r,onPrintError:o,preserveAfterPrint:a,print:i,suppressErrors:s}=t;setTimeout((()=>
2{if(e.contentWindow){let c=function(){null!==r&&void 0!==r&&r(),SR(a)};if(e.contentWindow.focus(),i)i(e).then(c).catch((e=>{o?o("print",TR(e)):CR({messages:["An error was thrown by the specified `print` function"],suppressErrors:s})}));else{if(e.contentWindow.print){var t,l;const r=null!==(t=null===(l=e.contentDocument)||void 0===l?void 0:l.title)&&void 0!==t?t:"",o=e.ownerDocument.title,a="function"==typeof n?n():n;a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=o,e.contentDocument&&(e.contentDocument.title=r))}else CR({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:s});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((e=>{var t,n;return(null!==(t=null!==(n=navigator.userAgent)&&void 0!==n?n:navigator.vendor)&&void 0!==t?t:"opera"in window&&window.opera).match(e)}))?setTimeout(c,500):c()}}else CR({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:s})}),500)}function _R(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null);let r=n.nextNode();for(;r;)t.push(r),r=n.nextNode();return t}function NR(e,t,n){const r=_R(e),o=_R(t);if(r.length===o.length)for(let a=0;a<r.length;a++){const e=r[a],t=o[a],i=e.shadowRoot;if(null!==i){const e=t.attachShadow({mode:i.mode});e.innerHTML=i.innerHTML,NR(i,e,n)}}else CR({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",e,t],suppressErrors:n})}const IR='\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n color-adjust: exact; /* Firefox. This is an older version of "print-color-adjust" */\n print-color-adjust: exact; /* Firefox/Safari */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n }\n }\n';function PR(e,t,n){var r,o;const{contentNode:a,clonedContentNode:i,clonedImgNodes:s,clonedVideoNodes:l,numResourcesToLoad:c,originalCanvasNodes:u}=t,{bodyClass:d,fonts:p,ignoreGlobalStyles:h,pageStyle:f,nonce:m,suppressErrors:g,copyShadowRoots:A}=n,v=[],y=[];function b(t,r){v.includes(t)?CR({level:"debug",messages:["Tried to mark a resource that has already been handled",t],suppressErrors:g}):(r?(CR({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...r],suppressErrors:g}),y.push(t)):v.push(t),v.length+y.length===c&&kR(e,n))}e.onload=null;const x=null!==(r=e.contentDocument)&&void 0!==r?r:null===(o=e.contentWindow)||void 0===o?void 0:o.document;if(x){var w,E;const t=x.body.appendChild(i);A&&NR(a,t,!!g),p&&(null!==(w=e.contentDocument)&&void 0!==w&&w.fonts&&null!==(E=e.contentWindow)&&void 0!==E&&E.FontFace?p.forEach((t=>{const n=new FontFace(t.family,t.source,{weight:t.weight,style:t.style});e.contentDocument.fonts.add(n),n.loaded.then((()=>{b(n)})).catch((e=>{b(n,["Failed loading the font:",n,"Load error:",TR(e)])}))})):(p.forEach((e=>{b(e)})),CR({messages:['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'],suppressErrors:g})));const n=null!==f&&void 0!==f?f:IR,r=x.createElement("style");m&&(r.setAttribute("nonce",m),x.head.setAttribute("nonce",m)),r.appendChild(x.createTextNode(n)),x.head.appendChild(r),d&&x.body.classList.add(...d.split(" "));const o=x.querySelectorAll("canvas");for(let e=0;e<u.length;++e){const t=u[e],n=o[e];if(void 0===n){CR({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",t],suppressErrors:g});continue}const r=n.getContext("2d");r&&r.drawImage(t,0,0)}for(let e=0;e<s.length;e++){const t=s[e],n=t.getAttribute("src");if(n){const e=new Image;e.onload=()=>{b(t)},e.onerror=(e,n,r,o,a)=>{b(t,["Error loading <img>",t,"Error",a])},e.src=n}else b(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.',t])}for(let e=0;e<l.length;e++){const t=l[e];t.preload="auto";const n=t.getAttribute("poster");if(n){const e=new Image;e.onload=()=>{b(t)},e.onerror=(e,r,o,a,i)=>{b(t,["Error loading video poster",n,"for video",t,"Error:",i])},e.src=n}else t.readyState>=2?b(t):t.src?(t.onloadeddata=()=>{b(t)},t.onerror=(e,n,r,o,a)=>{b(t,["Error loading video",t,"Error",a])},t.onstalled=()=>{b(t,["Loading video stalled, skipping",t])}):b(t,["Error loading video, `src` is empty",t])}const c="select",v=a.querySelectorAll(c),y=x.querySelectorAll(c);for(let e=0;e<v.length;e++)y[e].value=v[e].value;if(!h){const e=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']");for(let t=0,n=e.length;t<n;++t){const n=e[t];if("style"===n.tagName.toLowerCase()){const e=x.createElement(n.tagName),r=n.sheet;if(r){let o="";try{const e=r.cssRules.length;for(let t=0;t<e;++t)"string"==typeof r.cssRules[t].cssText&&(o+="".concat(r.cssRules[t].cssText,"\r\n"))}catch(S){CR({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-
2print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",n,"Original error: ".concat(TR(S).message)],level:"warning"})}e.setAttribute("id","react-to-print-".concat(t)),m&&e.setAttribute("nonce",m),e.appendChild(x.createTextNode(o)),x.head.appendChild(e)}}else if(n.getAttribute("href"))if(n.hasAttribute("disabled"))CR({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",n],level:"warning"}),b(n);else{const e=x.createElement(n.tagName);for(let t=0,r=n.attributes.length;t<r;++t){var C;const r=n.attributes[t];r&&e.setAttribute(r.nodeName,null!==(C=r.nodeValue)&&void 0!==C?C:"")}e.onload=()=>{b(e)},e.onerror=(t,n,r,o,a)=>{b(e,["Failed to load",e,"Error:",a])},m&&e.setAttribute("nonce",m),x.head.appendChild(e)}else CR({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",n],level:"warning"}),b(n)}}}0===c&&kR(e,n)}function RR(e,t){const{contentRef:n,fonts:r,ignoreGlobalStyles:o,suppressErrors:a}=t,i=function(e){let{contentRef:t,optionalContent:n,suppressErrors:r}=e;return n&&"function"==typeof n?(t&&CR({level:"warning",messages:['"react-to-print" received a `contentRef` option and an optional-content param passed to its callback. The `contentRef` option will be ignored.']}),n()):t?t.current:void CR({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:r})}({contentRef:n,optionalContent:e,suppressErrors:a});if(!i)return;const s=i.cloneNode(!0),l=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),c=s.querySelectorAll("img"),u=s.querySelectorAll("video"),d=r?r.length:0;return{contentNode:i,clonedContentNode:s,clonedImgNodes:c,clonedVideoNodes:u,numResourcesToLoad:(o?0:l.length)+c.length+u.length+d,originalCanvasNodes:i.querySelectorAll("canvas")}}function DR(e){let{bodyClass:t,contentRef:n,copyShadowRoots:r,documentTitle:o,fonts:i,ignoreGlobalStyles:s,nonce:l,onAfterPrint:c,onBeforePrint:u,onPrintError:d,pageStyle:p,preserveAfterPrint:h,print:f,printIframeProps:m,suppressErrors:g}=e;return(0,a.useCallback)((e=>{function a(){const a={bodyClass:t,contentRef:n,copyShadowRoots:r,documentTitle:o,fonts:i,ignoreGlobalStyles:s,nonce:l,onAfterPrint:c,onPrintError:d,pageStyle:p,preserveAfterPrint:h,print:f,suppressErrors:g},u=function(e){const t=document.createElement("iframe");return t.width="".concat(document.documentElement.clientWidth,"px"),t.height="".concat(document.documentElement.clientHeight,"px"),t.style.position="absolute",t.style.top="-".concat(document.documentElement.clientHeight+100,"px"),t.style.left="-".concat(document.documentElement.clientWidth+100,"px"),t.id=ER,t.srcdoc="<!DOCTYPE html>",e&&(e.allow&&(t.allow=e.allow),void 0!==e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),void 0!==e.sandbox&&(t.sandbox=e.sandbox)),t}(m),A=RR(e,a);A?function(e,t,n){e.onload=()=>{PR(e,t,n)},document.body.appendChild(e)}(u,A,a):CR({messages:["There is nothing to print"],suppressErrors:g})}SR(h,!0),u?u().then((()=>{a()})).catch((e=>{null===d||void 0===d||d("onBeforePrint",TR(e))})):a()}),[t,n,r,o,i,s,l,c,u,d,p,h,m,f,g])}var LR=n(6159),OR=n.n(LR),MR=function(){return MR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},MR.apply(this,arguments)};function jR(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(DV){a(DV)}}function s(e){try{l(r.throw(e))}catch(DV){a(DV)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))}function FR(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(DV){s=[6,DV],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}
2function BR(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var UR,zR,HR=914400,WR=12700,VR="\r\n",GR=/^[0-9a-fA-F]{6}$/,qR=1.67,YR=27,QR="solid",XR="666666",KR=1,JR=[.05,.1,.05,.1],ZR={type:"solid",color:"363636",pt:1},$R={color:"888888",style:"solid",size:1,cap:"flat"},eD="000000",tD=12,nD=18,rD="LAYOUT_16x9",oD="DEFAULT",aD="333333",iD={type:"outer",blur:3,offset:23e3/12700,angle:90,color:"000000",opacity:.35,rotateWithShape:!0},sD=[.5,.5,.5,.5],lD={type:"outer",blur:8,offset:4,angle:270,color:"000000",opacity:.75},cD={size:8,color:"FFFFFF",opacity:.75},uD="2094734552",dD="2094734553",pD="2094734554",hD="2094734555",fD="2094734556",mD="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),gD=["C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360","C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360"],AD=["5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7","5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7"];!function(e){e.left="left",e.center="center",e.right="right",e.justify="justify"}(UR||(UR={})),function(e){e.b="b",e.ctr="ctr",e.t="t"}(zR||(zR={}));var vD,yD,bD,xD,wD,ED,CD,SD,TD,kD,_D,ND,ID,PD="{F7021451-1387-4CA6-816F-3879F97B5CBC}";!function(e){e.arraybuffer="arraybuffer",e.base64="base64",e.binarystring="binarystring",e.blob="blob",e.nodebuffer="nodebuffer",e.uint8array="uint8array"}(vD||(vD={})),function(e){e.area="area",e.bar="bar",e.bar3d="bar3D",e.bubble="bubble",e.bubble3d="bubble3D",e.doughnut="doughnut",e.line="line",e.pie="pie",e.radar="radar",e.scatter="scatter"}(yD||(yD={})),function(e){e.accentBorderCallout1="accentBorderCallout1",e.accentBorderCallout2="accentBorderCallout2",e.accentBorderCallout3="accentBorderCallout3",e.accentCallout1="accentCallout1",e.accentCallout2="accentCallout2",e.accentCallout3="accentCallout3",e.actionButtonBackPrevious="actionButtonBackPrevious",e.actionButtonBeginning="actionButtonBeginning",e.actionButtonBlank="actionButtonBlank",e.actionButtonDocument="actionButtonDocument",e.actionButtonEnd="actionButtonEnd",e.actionButtonForwardNext="actionButtonForwardNext",e.actionButtonHelp="actionButtonHelp",e.actionButtonHome="actionButtonHome",e.actionButtonInformation="actionButtonInformation",e.actionButtonMovie="actionButtonMovie",e.actionButtonReturn="actionButtonReturn",e.actionButtonSound="actionButtonSound",e.arc="arc",e.bentArrow="bentArrow",e.bentUpArrow="bentUpArrow",e.bevel="bevel",e.blockArc="blockArc",e.borderCallout1="borderCallout1",e.borderCallout2="borderCallout2",e.borderCallout3="borderCallout3",e.bracePair="bracePair",e.bracketPair="bracketPair",e.callout1="callout1",e.callout2="callout2",e.callout3="callout3",e.can="can",e.chartPlus="chartPlus",e.chartStar="chartStar",e.chartX="chartX",e.chevron="chevron",e.chord="chord",e.circularArrow="circularArrow",e.cloud="cloud",e.cloudCallout="cloudCallout",e.corner="corner",e.cornerTabs="cornerTabs",e.cube="cube",e.curvedDownArrow="curvedDownArrow",e.curvedLeftArrow="curvedLeftArrow",e.curvedRightArrow="curvedRightArrow",e.curvedUpArrow="curvedUpArrow",e.custGeom="custGeom",e.decagon="decagon",e.diagStripe="diagStripe",e.diamond="diamond",e.dodecagon="dodecagon",e.donut="donut",e.doubleWave="doubleWave",e.downArrow="downArrow",e.downArrowCallout="downArrowCallout",e.ellipse="ellipse",e.ellipseRibbon="ellipseRibbon",e.ellipseRibbon2="ellipseRibbon2",e.flowChartAlternateProcess="flowChartAlternateProcess",e.flowChartCollate="flowChartCollate",e.flowChartConnector="flowChartConnector",e.flowChartDecision="flowChartDecision",e.flowChartDelay="flowChartDelay",e.flowChartDisplay="flowChartDisplay",e.flowChartDocument="flowChartDocument",e.flowChartExtract="flowChartExtract",e.flowChartInputOutput="flowChartInputOutput",e.flowChartInternalStorage="flowChartInternalStorage",e.flowChartMagneticDisk="flowChartMagneticDisk",e.flowChartMagneticDrum="flowChartMagneticDrum",e.flowChartMagneticTape="flowChartMagneticTape",e.flowChartManualInput="flowChartManualInput",e.flowChartManualOperation="flowChartManualOperation",e.flowChartMerge="flowChartMerge",e.flowChartMultidocument="flowChartMultidocument",e.flowChartOfflineStorage="flowChartOfflineStorage",e.flowChartOffpageConnector="flowChartOffpageConnector",e.flowChartOnlineStorage="flowChartOnlineStorage",e.flowChartOr="flowChartOr",e.flowChartPredefinedProcess="flowChartPredefinedProcess",e.flowChartPreparation="flowChartPreparation",e.flowChartProcess="flowChartProcess",e.flowChartPunchedCard="flowChartPunchedCard",e.flowChartPunchedTape="flowChartPunchedTape",e.flowChartSort="flowChartSort",e.flowChartSummingJunction="flowChartSummingJunction",e.flowChartTerminator="flowChartTerminator",e.folderCorner="folderCorner",e.frame="frame",e.funnel="funnel",e.gear6="gear6",e.gear9="gear9",e.halfFrame="halfFrame",e.heart="heart",e.heptagon="heptagon",e.hexagon="hexagon",e.homePlate="homePlate",e.horizontalScroll="horizontalScroll",e.irregularSeal1="irregularSeal1",e.irregularSeal2="irregularSeal2",e.leftArrow="leftArrow",e.leftArrowCallout="leftArrowCallout",e.leftBrace="leftBrace",e.leftBracket="leftBracket",e.leftCircularArrow="leftCircularArrow",e.leftRightArrow="leftRightArrow",e.leftRightArrowCallout="leftRightArrowCallout",e.leftRightCircularArrow="leftRightCircularArrow",e.leftRightRibbon="leftRightRibbon",e.leftRightUpArrow="leftRightUpArrow",e.leftUpArrow="leftUpArrow",e.lightningBolt="lightningBolt",e.line="line",e.lineInv="lineInv",e.mathDivide="mathDivide",e.mathEqual="mathEqual",e.mathMinus="mathMinus",e.mathMultiply="mathMultiply",e.mathNotEqual="mathNotEqual",e.mathPlus="mathPlus",e.moon="moon",e.noSmoking="noSmoking",e.nonIsoscelesTrapezoid="nonIsoscelesTrapezoid",e.notchedRightArrow="notchedRightArrow",e.octagon="octagon",e.parallelogram="parallelogram",e.pentagon="pentagon",e.pie="pie",e.pieWedge="pieWedge",e.plaque="plaque",e.plaqueTabs="plaqueTabs",e.plus="plus",e.quadArrow="quadArrow",e.quadArrowCallout="quadArrowCallout",e.rect="rect",e.ribbon="ribbon",e.ribbon2="ribbon2",e.rightArrow="rightArrow",e.rightArrowCallout="rightArrowCallout",e.rightBrace="rightBrace",e.rightBracket="rightBracket",e.round1Rect="round1Rect",e.round2DiagRect="round2DiagRect",e.round2SameRect="round2SameRect",e.roundRect="roundRect",e.rtTriangle="rtTriangle",e.smileyFace="smileyFace",e.snip1Rect="snip1Rect",e.snip2DiagRect="snip2DiagRect",e.snip2SameRect="snip2SameRect",e.snipRoundRect="snipRoundRect",e.squareTabs="squareTabs",e.star10="star10",e.star12="star12",e.star16="star16",e.star24="star24",e.star32="star32",e.star4="star4",e.star5="star5",e.star6="star6",e.star7="star7",e.star8="star8",e.stripedRightArrow="stripedRightArrow",e.sun="sun",e.swooshArrow="swooshArrow",e.teardrop="teardrop",e.trapezoid="trapezoid",e.triangle="triangle",e.upArrow="upArrow",e.upArrowCallout="upArrowCallout",e.upDownArrow="upDownArrow",e.upDownArrowCallout="upDownArrowCallout",e.uturnArrow="uturnArrow",e.verticalScroll="verticalScroll",e.wave="wave",e.wedgeEllipseCallout="wedgeEllipseCallout",e.wedgeRectCallout="wedgeRectCallout",e.wedgeRoundRectCallout="wedgeRoundRectCallout"}(bD||(bD={})),function(e){e.text1="tx1",e.text2="tx2",e.background1="bg1",e.background2="bg2",e.accent1="accent1",e.accent2="accent2",e.accent3="accent3",e.accent4="accent4",e.accent5="accent5",e.accent6="accent6"}(xD||(xD={})),function(e){e.left="left",e.center="center",e.right="right",e.justify="justify"}(wD||(wD={})),function(e){e.top="top",e.middle="middle",e.bottom="bottom"}(ED||(ED={})),function(e){e.ACTION_BUTTON_BACK_OR_PREVIOUS="actionButtonBackPrevious",e.ACTION_BUTTON_BEGINNING="actionButtonBeginning",e.ACTION_BUTTON_CUSTOM="actionButtonBlank",e.ACTION_BUTTON_DOCUMENT="actionButtonDocument",e.ACTION_BUTTON_END="actionButtonEnd",e.ACTION_BUTTON_FORWARD_OR_NEXT="actionButtonForwardNext",e.ACTION_BUTTON_HELP="actionButtonHelp",e.ACTION_BUTTON_HOME="actionButtonHome",e.ACTION_BUTTON_INFORMATION="actionButtonInformation",e.ACTION_BUTTON_MOVIE="actionButtonMovie",e.ACTION_BUTTON_RETURN="actionButtonReturn",e.ACTION_BUTTON_SOUND="actionButtonSound",e.ARC="arc",e.BALLOON="wedgeRoundRectCallout",e.BENT_ARROW="bentArrow",e.BENT_UP_ARROW="bentUpArrow",e.BEVEL="bevel",e.BLOCK_ARC="blockArc",e.CAN="can",e.CHART_PLUS="chartPlus",e.CHART_STAR="chartStar",e.CHART_X="chartX",e.CHEVRON="chevron",e.CHORD="chord",e.CIRCULAR_ARROW="circularArrow",e.CLOUD="cloud",e.CLOUD_CALLOUT="cloudCallout",e.CORNER="corner",e.CORNER_TABS="cornerTabs",e.CROSS="plus",e.CUBE="cube",e.CURVED_DOWN_ARROW="curvedDownArrow",e.CURVED_DOWN_RIBBON="ellipseRibbon",e.CURVED_LE
2FT_ARROW="curvedLeftArrow",e.CURVED_RIGHT_ARROW="curvedRightArrow",e.CURVED_UP_ARROW="curvedUpArrow",e.CURVED_UP_RIBBON="ellipseRibbon2",e.CUSTOM_GEOMETRY="custGeom",e.DECAGON="decagon",e.DIAGONAL_STRIPE="diagStripe",e.DIAMOND="diamond",e.DODECAGON="dodecagon",e.DONUT="donut",e.DOUBLE_BRACE="bracePair",e.DOUBLE_BRACKET="bracketPair",e.DOUBLE_WAVE="doubleWave",e.DOWN_ARROW="downArrow",e.DOWN_ARROW_CALLOUT="downArrowCallout",e.DOWN_RIBBON="ribbon",e.EXPLOSION1="irregularSeal1",e.EXPLOSION2="irregularSeal2",e.FLOWCHART_ALTERNATE_PROCESS="flowChartAlternateProcess",e.FLOWCHART_CARD="flowChartPunchedCard",e.FLOWCHART_COLLATE="flowChartCollate",e.FLOWCHART_CONNECTOR="flowChartConnector",e.FLOWCHART_DATA="flowChartInputOutput",e.FLOWCHART_DECISION="flowChartDecision",e.FLOWCHART_DELAY="flowChartDelay",e.FLOWCHART_DIRECT_ACCESS_STORAGE="flowChartMagneticDrum",e.FLOWCHART_DISPLAY="flowChartDisplay",e.FLOWCHART_DOCUMENT="flowChartDocument",e.FLOWCHART_EXTRACT="flowChartExtract",e.FLOWCHART_INTERNAL_STORAGE="flowChartInternalStorage",e.FLOWCHART_MAGNETIC_DISK="flowChartMagneticDisk",e.FLOWCHART_MANUAL_INPUT="flowChartManualInput",e.FLOWCHART_MANUAL_OPERATION="flowChartManualOperation",e.FLOWCHART_MERGE="flowChartMerge",e.FLOWCHART_MULTIDOCUMENT="flowChartMultidocument",e.FLOWCHART_OFFLINE_STORAGE="flowChartOfflineStorage",e.FLOWCHART_OFFPAGE_CONNECTOR="flowChartOffpageConnector",e.FLOWCHART_OR="flowChartOr",e.FLOWCHART_PREDEFINED_PROCESS="flowChartPredefinedProcess",e.FLOWCHART_PREPARATION="flowChartPreparation",e.FLOWCHART_PROCESS="flowChartProcess",e.FLOWCHART_PUNCHED_TAPE="flowChartPunchedTape",e.FLOWCHART_SEQUENTIAL_ACCESS_STORAGE="flowChartMagneticTape",e.FLOWCHART_SORT="flowChartSort",e.FLOWCHART_STORED_DATA="flowChartOnlineStorage",e.FLOWCHART_SUMMING_JUNCTION="flowChartSummingJunction",e.FLOWCHART_TERMINATOR="flowChartTerminator",e.FOLDED_CORNER="folderCorner",e.FRAME="frame",e.FUNNEL="funnel",e.GEAR_6="gear6",e.GEAR_9="gear9",e.HALF_FRAME="halfFrame",e.HEART="heart",e.HEPTAGON="heptagon",e.HEXAGON="hexagon",e.HORIZONTAL_SCROLL="horizontalScroll",e.ISOSCELES_TRIANGLE="triangle",e.LEFT_ARROW="leftArrow",e.LEFT_ARROW_CALLOUT="leftArrowCallout",e.LEFT_BRACE="leftBrace",e.LEFT_BRACKET="leftBracket",e.LEFT_CIRCULAR_ARROW="leftCircularArrow",e.LEFT_RIGHT_ARROW="leftRightArrow",e.LEFT_RIGHT_ARROW_CALLOUT="leftRightArrowCallout",e.LEFT_RIGHT_CIRCULAR_ARROW="leftRightCircularArrow",e.LEFT_RIGHT_RIBBON="leftRightRibbon",e.LEFT_RIGHT_UP_ARROW="leftRightUpArrow",e.LEFT_UP_ARROW="leftUpArrow",e.LIGHTNING_BOLT="lightningBolt",e.LINE_CALLOUT_1="borderCallout1",e.LINE_CALLOUT_1_ACCENT_BAR="accentCallout1",e.LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR="accentBorderCallout1",e.LINE_CALLOUT_1_NO_BORDER="callout1",e.LINE_CALLOUT_2="borderCallout2",e.LINE_CALLOUT_2_ACCENT_BAR="accentCallout2",e.LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR="accentBorderCallout2",e.LINE_CALLOUT_2_NO_BORDER="callout2",e.LINE_CALLOUT_3="borderCallout3",e.LINE_CALLOUT_3_ACCENT_BAR="accentCallout3",e.LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR="accentBorderCallout3",e.LINE_CALLOUT_3_NO_BORDER="callout3",e.LINE_CALLOUT_4="borderCallout3",e.LINE_CALLOUT_4_ACCENT_BAR="accentCallout3",e.LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR="accentBorderCallout3",e.LINE_CALLOUT_4_NO_BORDER="callout3",e.LINE="line",e.LINE_INVERSE="lineInv",e.MATH_DIVIDE="mathDivide",e.MATH_EQUAL="mathEqual",e.MATH_MINUS="mathMinus",e.MATH_MULTIPLY="mathMultiply",e.MATH_NOT_EQUAL="mathNotEqual",e.MATH_PLUS="mathPlus",e.MOON="moon",e.NON_ISOSCELES_TRAPEZOID="nonIsoscelesTrapezoid",e.NOTCHED_RIGHT_ARROW="notchedRightArrow",e.NO_SYMBOL="noSmoking",e.OCTAGON="octagon",e.OVAL="ellipse",e.OVAL_CALLOUT="wedgeEllipseCallout",e.PARALLELOGRAM="parallelogram",e.PENTAGON="homePlate",e.PIE="pie",e.PIE_WEDGE="pieWedge",e.PLAQUE="plaque",e.PLAQUE_TABS="plaqueTabs",e.QUAD_ARROW="quadArrow",e.QUAD_ARROW_CALLOUT="quadArrowCallout",e.RECTANGLE="rect",e.RECTANGULAR_CALLOUT="wedgeRectCallout",e.REGULAR_PENTAGON="pentagon",e.RIGHT_ARROW="rightArrow",e.RIGHT_ARROW_CALLOUT="rightArrowCallout",e.RIGHT_BRACE="rightBrace",e.RIGHT_BRACKET="rightBracket",e.RIGHT_TRIANGLE="rtTriangle",e.ROUNDED_RECTANGLE="roundRect",e.ROUNDED_RECTANGULAR_CALLOUT="wedgeRoundRectCallout",e.ROUND_1_RECTANGLE="round1Rect",e.ROUND_2_DIAG_RECTANGLE="round2DiagRect",e.ROUND_2_SAME_RECTANGLE="round2SameRect",e.SMILEY_FACE="smileyFace",e.SNIP_1_RECTANGLE="snip1Rect",e.SNIP_2_DIAG_RECTANGLE="snip2DiagRect",e.SNIP_2_SAME_RECTANGLE="snip2SameRect",e.SNIP_ROUND_RECTANGLE="snipRoundRect",e.SQUARE_TABS="squareTabs",e.STAR_10_POINT="star10",e.STAR_12_POINT="star12",e.STAR_16_POINT="star16",e.STAR_24_POINT="star24",e.STAR_32_POINT="star32",e.STAR_4_POINT="star4",e.STAR_5_POINT="star5",e.STAR_6_POINT="star6",e.STAR_7_POINT="star7",e.STAR_8_POINT="star8",e.STRIPED_RIGHT_ARROW="stripedRightArrow",e.SUN="sun",e.SWOOSH_ARROW="swooshArrow",e.TEAR="teardrop",e.TRAPEZOID="trapezoid",e.UP_ARROW="upArrow",e.UP_ARROW_CALLOUT="upArrowCallout",e.UP_DOWN_ARROW="upDownArrow",e.UP_DOWN_ARROW_CALLOUT="upDownArrowCallout",e.UP_RIBBON="ribbon2",e.U_TURN_ARROW="uturnArrow",e.VERTICAL_SCROLL="verticalScroll",e.WAVE="wave"}(CD||(CD={})),function(e){e.AREA="area",e.BAR="bar",e.BAR3D="bar3D",e.BUBBLE="bubble",e.BUBBLE3D="bubble3D",e.DOUGHNUT="doughnut",e.LINE="line",e.PIE="pie",e.RADAR="radar",e.SCATTER="scatter"}(SD||(SD={})),function(e){e.TEXT1="tx1",e.TEXT2="tx2",e.BACKGROUND1="bg1",e.BACKGROUND2="bg2",e.ACCENT1="accent1",e.ACCENT2="accent2",e.ACCENT3="accent3",e.ACCENT4="accent4",e.ACCENT5="accent5",e.ACCENT6="accent6"}(TD||(TD={})),function(e){e.chart="chart",e.image="image",e.line="line",e.rect="rect",e.text="text",e.placeholder="placeholder"}(kD||(kD={})),function(e){e.chart="chart",e.hyperlink="hyperlink",e.image="image",e.media="media",e.online="online",e.placeholder="placeholder",e.table="table",e.tablecell="tablecell",e.text="text",e.notes="notes"}(_D||(_D={})),function(e){e.title="title",e.body="body",e.image="pic",e.chart="chart",e.table="tbl",e.media="media"}(ND||(ND={})),function(e){e.DEFAULT="•",e.CHECK="✓",e.STAR="★",e.TRIANGLE="▶"}(ID||(ID={}));var RD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAB3CAYAAAD1oOVhAAAGAUlEQVR4Xu2dT0xcRRzHf7tAYSsc0EBSIq2xEg8mtTGebVzEqOVIolz0siRE4gGTStqKwdpWsXoyGhMuyAVJOHBgqyvLNgonDkabeCBYW/8kTUr0wsJC+Wfm0bfuvn37Znbem9mR9303mJnf/Pb7ed95M7PDI5JIJPYJV5EC7e3t1N/fT62trdqViQCIu+bVgpIHEo/Hqbe3V/sdYVKHyWSSZmZm8ilVA0oeyNjYmEnaVC2Xvr6+qg5fAOJAz4DU1dURGzFSqZRVqtMpAFIGyMjICC0vL9PExIRWKADiAYTNshYWFrRCARAOEFZcCKWtrY0GBgaUTYkBRACIE4rKZwqACALR5RQAqQCIDqcASIVAVDsFQCSAqHQKgEgCUeUUAPEBRIVTAMQnEBvK5OQkbW9vk991CoAEAMQJxc86BUACAhKUUwAkQCBBOAVAAgbi1ykAogCIH6cAiCIgsk4BEIVAZJwCIIqBVLqiBxANQFgXS0tLND4+zl08AogmIG5OSSQS1gGKwgtANAIRcQqAaAbCe6YASBWA2E6xDyeyDUl7+AKQMkDYYevm5mZHabA/Li4uUiaTsYLau8QA4gLE/hU7wajyYtv1hReDAiAOxQcHBymbzark4BkbQKom/X8d
2p9Npmpqasn4BIAYAYSnYp+4BBEAMUcCwNOCQsAKZnp62NtQOw8WmwT09PUo+ijaHsOMx7GppaaH6+nolH0Z10K2tLVpdXbW6UfV3mNqBdHd3U1NTk2rtlMRfW1uj2dlZAFGirkRQAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAGHqrm8caPzQ0WC1logbeiC7X3xJm0PvUmRzh45cuki1588FAmVn9BO6P3yF9utrqGH0MtW82S8UN9RA9v/4k7InjhcJFTs/TLVXLwmJV67S7vD7tHF5pKi46fYdosdOcOOGG8j1OcqefbFEJD9Q3GCwDhqT31HklS4A8VRgfYM2Op6k3bt/BQJl58J7lPvwg5JYNccepaMry0LPqFA7hCm39+NNyp2J0172b19QysGINj5CsRtpij57musOViH0QPJQXn6J9u7dlYJSFkbrMYolrwvDAJAC+WWdEpQz7FTgECeUCpzi6YxvvqXoM6eEhqnCSgDikEzUKUE7Aw7xuHctKB5OYU3dZlNR9syQdAaAcAYTC0pXF+39c09o2Ik+3EqxVKqiB7hbYAxZkk4pbBaEM+AQofv+wTrFwylBOQNABIGwavdfe4O2pg5elO+86l99nY58/VUF0byrYsjiSFluNlXYrOHcBar7+EogUADEQ0YRGHbzoKAASBkg2+9cpM1rV0tK2QOcXW7bLEFAARAXIF4w2DrDWoeUWaf4hQIgDiA8GPZ2iNfi0Q8UACkAIgrDbrJ385eDxaPLLrEsFAB5oG6lMPJQPLZZZKAACBGVhcG2Q+bmuLu2nk55e4jqPv1IeEoceiBeX7s2zCa5MAqdstl91vfXwaEGsv/rb5TtOFk6tWXOuJGh6KmnhO9sayrMninPx103JBtXblHkice58cINZP4Hyr5wpkgkdiChEmc4FWazLzenNKa/p0jncwDiqcD6BuWePk07t1asatZGoYQzSqA4nFJ7soNiP/+EUyfc25GI2GG53dHPrKo1g/1Cw4pIXLrzO+1c+/wg7tBbFDle/EbQcjFCPWQJCau5EoBoFpzXHYDwFNJcDiCaBed1ByA8hTSXA4hmwXndAQhPIc3lAKJZcF53AMJTSHM5gGgWnNcdgPAU0lwOIJoF53UHIDyFNJcfSiCdnZ0Ui8U0SxlMd7lcjubn561gh+Y1scFIU/0o/3sgeLO12E2k7UXKYumgFoAYdg8ACIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6ZQ4JB6PKzviYthnNy4d9h+1M5mMlVckkUjsG5dhiBMCEMPg/wuOfrZZ/RSywQAAAABJRU5ErkJggg==";
2function DD(e,t,n){return"string"!==typeof e||isNaN(Number(e))||(e=Number(e)),"number"===typeof e&&e<100?MD(e):"number"===typeof e&&e>=100?e:"string"===typeof e&&e.includes("%")?t&&"X"===t?Math.round(parseFloat(e)/100*n.width):t&&"Y"===t?Math.round(parseFloat(e)/100*n.height):Math.round(parseFloat(e)/100*n.width):0}function LD(e){return e.replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function OD(e){return"undefined"===typeof e||null==e?"":e.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function MD(e){return"number"===typeof e&&e>100?e:("string"===typeof e&&(e=Number(e.replace(/in*/gi,""))),Math.round(HR*e))}function jD(e){var t=Number(e)||0;return isNaN(t)?0:Math.round(t*WR)}function FD(e){return e=e||0,Math.round(6e4*(e>360?e-360:e))}function BD(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function UD(e,t,n){return(BD(e)+BD(t)+BD(n)).toUpperCase()}function zD(e,t){var n=(e||"").replace("#","");GR.test(n)||n===xD.background1||n===xD.background2||n===xD.text1||n===xD.text2||n===xD.accent1||n===xD.accent2||n===xD.accent3||n===xD.accent4||n===xD.accent5||n===xD.accent6||(console.warn('"'.concat(n,'" is not a valid scheme color or hex RGB! "').concat(eD,"\" used instead. Only provide 6-digit RGB or 'pptx.SchemeColor' values!")),n=eD);var r=GR.test(n)?"srgbClr":"schemeClr",o='val="'+(GR.test(n)?n.toUpperCase():n)+'"';return t?"<a:".concat(r," ").concat(o,">").concat(t,"</a:").concat(r,">"):"<a:".concat(r," ").concat(o,"/>")}function HD(e){var t="solid",n="",r="",o="";if(e)if("string"===typeof e?n=e:(e.type&&(t=e.type),e.color&&(n=e.color),e.alpha&&(r+='<a:alpha val="'.concat(Math.round(1e3*(100-e.alpha)),'"/>')),e.transparency&&(r+='<a:alpha val="'.concat(Math.round(1e3*(100-e.transparency)),'"/>'))),"solid"===t)o+="<a:solidFill>".concat(zD(n,r),"</a:solidFill>");else o+="";return o}function WD(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function VD(e){if(e&&"object"===typeof e)return"outer"!==e.type&&"inner"!==e.type&&"none"!==e.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),e.type="outer"),e.angle&&((isNaN(Number(e.angle))||e.angle<0||e.angle>359)&&(console.warn("Warning: shadow.angle can only be 0-359"),e.angle=270),e.angle=Math.round(Number(e.angle))),e.opacity&&((isNaN(Number(e.opacity))||e.opacity<0||e.opacity>1)&&(console.warn("Warning: shadow.opacity can only be 0-1"),e.opacity=.75),e.opacity=Number(e.opacity)),e.color&&e.color.startsWith("#")&&(console.warn('Warning: shadow.color should not include hash (#) character, , e.g. "FF0000"'),e.color=e.color.replace("#","")),e}function GD(e,t,n,r){void 0===e&&(e=[]),void 0===t&&(t={});var o,a=sD,i=1*HR,s=0,l=0,c=[],u=DD(t.x,"X",n),d=DD(t.y,"Y",n),p=DD(t.w,"X",n),h=DD(t.h,"Y",n),f=p;function m(){var e=0;0===c.length&&(e=d||MD(a[0])),c.length>0&&(e=MD(t.autoPageSlideStartY||t.newSlideStartY||a[0])),i=(h||n.height)-e-MD(a[2]),c.length>1&&("number"===typeof t.autoPageSlideStartY?i=(h||n.height)-MD(t.autoPageSlideStartY+a[2]):"number"===typeof t.newSlideStartY?i=(h||n.height)-MD(t.newSlideStartY+a[2]):d&&(i=(h||n.height)-MD((d/HR<a[0]?d/HR:a[0])+a[2]))<h&&(i=h))}if(t.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log("| presLayout.width ................................ = ".concat((n.width/HR).toFixed(1))),console.log("| presLayout.height ............................... = ".concat((n.height/HR).toFixed(1))),console.log("| tableProps.x .................................... = ".concat("number"===typeof t.x?(t.x/HR).toFixed(1):t.x)),console.log("| tableProps.y .................................... = ".concat("number"===typeof t.y?(t.y/HR).toFixed(1):t.y)),console.log("| tableProps.w .................................... = ".concat("number"===typeof t.w?(t.w/HR).toFixed(1):t.w)),console.log("| tableProps.h .................................... = ".concat("number"===typeof t.h?(t.h/HR).toFixed(1):t.h)),console.log("| tableProps.slideMargin .......................... = ".concat(t.slideMargin?String(t.slideMargin):"")),console.log("| tableProps.margin ............................... = ".concat(String(t.margin))),console.log("| tableProps.colW ................................. = ".concat(String(t.colW))),console.log("| tableProps.autoPageSlideStartY .................. = ".concat(t.autoPageSlideStartY)),console.log("| tableProps.autoPageCharWeight ................... = ".concat(t.autoPageCharWeight)),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log("| tablePropX ...................................... = ".concat(u/HR)),console.log("| tablePropY ...................................... = ".concat(d/HR)),console.log("| tablePropW ...................................... = ".concat(p/HR)),console.log("| tablePropH ...................................... = ".concat(h/HR)),console.log("| tableCalcW ...................................... = ".concat(f/HR))),t.slideMargin||0===t.slideMargin||(t.slideMargin=sD[0]),r&&"undefined"!==typeof r._margin?Array.isArray(r._margin)?a=r._margin:isNaN(Number(r._margin))||(a=[Number(r._margin),Number(r._margin),Number(r._margin),Number(r._margin)]):(t.slideMargin||0===t.slideMargin)&&(Array.isArray(t.slideMargin)?a=t.slideMargin:isNaN(t.slideMargin)||(a=[t.slideMargin,t.slideMargin,t.slideMargin,t.slideMargin])),t.verbose&&console.log("| arrInchMargins .................................. = [".concat(a.join(", "),"]")),(e[0]||[]).forEac
2h((function(e){e||(e={_type:_D.tablecell});var t=e.options||null;l+=Number((null===t||void 0===t?void 0:t.colspan)?t.colspan:1)})),t.verbose&&console.log("| numCols ......................................... = ".concat(l)),!p&&t.colW&&(f=Array.isArray(t.colW)?t.colW.reduce((function(e,t){return e+t}))*HR:t.colW*l||0,t.verbose&&console.log("| tableCalcW ...................................... = ".concat(f/HR))),o=f||MD((u?u/HR:a[1])+a[3]),t.verbose&&console.log("| emuSlideTabW .................................... = ".concat((o/HR).toFixed(1))),!t.colW||!Array.isArray(t.colW))if(t.colW&&!isNaN(Number(t.colW))){var g=[];(e[0]||[]).forEach((function(){return g.push(t.colW)})),t.colW=[],g.forEach((function(e){Array.isArray(t.colW)&&t.colW.push(e)}))}else{t.colW=[];for(var A=0;A<l;A++)t.colW.push(o/HR/l)}var v={rows:[]};return e.forEach((function(e,n){var r=[],o=0,a=0,l=[];e.forEach((function(e){var n,r,i,s;l.push({_type:_D.tablecell,text:[],options:e.options}),e.options.margin&&e.options.margin[0]>=1?((null===(n=e.options)||void 0===n?void 0:n.margin)&&e.options.margin[0]&&jD(e.options.margin[0])>o?o=jD(e.options.margin[0]):(null===t||void 0===t?void 0:t.margin)&&t.margin[0]&&jD(t.margin[0])>o&&(o=jD(t.margin[0])),(null===(r=e.options)||void 0===r?void 0:r.margin)&&e.options.margin[2]&&jD(e.options.margin[2])>a?a=jD(e.options.margin[2]):(null===t||void 0===t?void 0:t.margin)&&t.margin[2]&&jD(t.margin[2])>a&&(a=jD(t.margin[2]))):((null===(i=e.options)||void 0===i?void 0:i.margin)&&e.options.margin[0]&&MD(e.options.margin[0])>o?o=MD(e.options.margin[0]):(null===t||void 0===t?void 0:t.margin)&&t.margin[0]&&MD(t.margin[0])>o&&(o=MD(t.margin[0])),(null===(s=e.options)||void 0===s?void 0:s.margin)&&e.options.margin[2]&&MD(e.options.margin[2])>a?a=MD(e.options.margin[2]):(null===t||void 0===t?void 0:t.margin)&&t.margin[2]&&MD(t.margin[2])>a&&(a=MD(t.margin[2])))})),m(),s+=o+a,t.verbose&&0===n&&console.log("| SLIDE [".concat(c.length,"]: emuSlideTabH ...... = ").concat((i/HR).toFixed(1)," ")),e.forEach((function(e,n){var o,a={_type:_D.tablecell,_lines:null,_lineHeight:MD(((null===(o=e.options)||void 0===o?void 0:o.fontSize)?e.options.fontSize:t.fontSize?t.fontSize:tD)*(qR+(t.autoPageLineWeight?t.autoPageLineWeight:0))/100),text:[],options:e.options};a.options.rowspan&&(a._lineHeight=0),a.options.autoPageCharWeight=t.autoPageCharWeight?t.autoPageCharWeight:null;var i=t.colW[n];e.options.colspan&&Array.isArray(t.colW)&&(i=t.colW.filter((function(t,r){return r>=n&&r<r+e.options.colspan})).reduce((function(e,t){return e+t}))),a._lines=function(e,t,n){var r,o,a=2.3+((null===(r=e.options)||void 0===r?void 0:r.autoPageCharWeight)?e.options.autoPageCharWeight:0),i=Math.floor(t/WR*HR)/(((null===(o=e.options)||void 0===o?void 0:o.fontSize)?e.options.fontSize:tD)/a),s=[],l=[],c=[],u=[];e.text&&0===e.text.toString().trim().length?l.push({_type:_D.tablecell,text:" "}):"number"===typeof e.text||"string"===typeof e.text?l.push({_type:_D.tablecell,text:(e.text||"").toString().trim()}):Array.isArray(e.text)&&(l=e.text),n&&(console.log("[1/4] inputCells"),l.forEach((function(e,t){return console.log("[1/4] [".concat(t+1,"] cell: ").concat(JSON.stringify(e)))})));var d=[];return l.forEach((function(e){var t;"string"===typeof e.text&&(e.text.split("\n").length>1?e.text.split("\n").forEach((function(t){d.push({_type:_D.tablecell,text:t,options:MR(MR({},e.options),{breakLine:!0})})})):d.push({_type:_D.tablecell,text:e.text.trim(),options:e.options}),(null===(t=e.options)||void 0===t?void 0:t.breakLine)&&(n&&console.log("inputCells: new line > ".concat(JSON.stringify(d))),c.push(d),d=[])),d.length>0&&(c.push(d),d=[])})),n&&(console.log("[2/4] inputLines1 (".concat(c.length,")")),c.forEach((function(e,t){return console.log("[2/4] [".concat(t+1,"] line: ").concat(JSON.stringify(e)))}))),c.forEach((function(e){e.forEach((function(e){var t=[],n=String(e.text).split(" ");n.forEach((function(r,o){var a=MR({},e.options);(null===a||void 0===a?void 0:a.breakLine)&&(a.breakLine=o+1===n.length),t.push({_type:_D.tablecell,text:r+(o+1<n.length?" ":""),options:a})})),u.push(t)}))})),n&&(console.log("[3/4] inputLines2 (".concat(u.length,")")),u.forEach((function(e){return console.log("[3/4] line: ".concat(JSON.stringify(e)))}))),u.forEach((function(e){var t=[],n="";e.forEach((function(e){n.length+e.text.length>
2i&&(s.push(t),t=[],n=""),t.push(e),n+=e.text.toString()})),t.length>0&&s.push(t)})),n&&(console.log("[4/4] parsedLines (".concat(s.length,")")),s.forEach((function(e,t){return console.log("[4/4] [Line ".concat(t+1,"]:\n").concat(JSON.stringify(e)))})),console.log("...............................................\n\n")),s}(e,i,!1),r.push(a)})),t.verbose&&console.log("\n| SLIDE [".concat(c.length,"]: ROW [").concat(n,"]: START..."));for(var u=0,d=0,p=!1;!p;){var h=r[u],f=l[u];if(r.forEach((function(e){e._lineHeight>=d&&(d=e._lineHeight)})),s+d>i){t.verbose&&(console.log("\n|-----------------------------------------------------------------------|"),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ".concat((s/HR).toFixed(2)," + ").concat((h._lineHeight/HR).toFixed(2)," > ").concat(i/HR)),console.log("|-----------------------------------------------------------------------|\n\n")),l.length>0&&l.map((function(e){return e.text.length})).reduce((function(e,t){return e+t}))>0&&v.rows.push(l),c.push(v);v={rows:[]},l=[],e.forEach((function(e){return l.push({_type:_D.tablecell,text:[],options:e.options})})),m(),s+=o+a,t.verbose&&console.log("| SLIDE [".concat(c.length,"]: emuSlideTabH ...... = ").concat((i/HR).toFixed(1)," ")),s=0,(t.addHeaderToEach||t.autoPageRepeatHeader)&&t._arrObjTabHeadRows&&t._arrObjTabHeadRows.forEach((function(e){var t=[],n=0;e.forEach((function(e){t.push(e),e._lineHeight>n&&(n=e._lineHeight)})),v.rows.push(t),s+=n})),f=l[u]}var g=h._lines.shift();Array.isArray(f.text)&&(g?f.text=f.text.concat(g):0===f.text.length&&(f.text=f.text.concat({_type:_D.tablecell,text:""}))),u===r.length-1&&(s+=d),u=u<r.length-1?u+1:0;var A=r.map((function(e){return e._lines.length})).reduce((function(e,t){return e+t}));0===A&&(p=!0)}l.length>0&&v.rows.push(l),t.verbose&&console.log("- SLIDE [".concat(c.length,"]: ROW [").concat(n,"]: ...COMPLETE ...... emuTabCurrH = ").concat((s/HR).toFixed(2)," ( emuSlideTabH = ").concat((i/HR).toFixed(2)," )"))})),c.push(v),t.verbose&&(console.log("\n|================================================|"),console.log("| FINAL: tableRowSlides.length = ".concat(c.length)),c.forEach((function(e){return console.log(e)})),console.log("|================================================|\n\n")),c}var qD=0;function YD(e,t,n,r){var o;function a(e){e&&"none"!==e.style&&(void 0!==e.size&&(isNaN(Number(e.size))||e.size<=0)&&(console.warn("Warning: chart.gridLine.size must be greater than 0."),delete e.size),e.style&&!["solid","dash","dot"].includes(e.style)&&(console.warn("Warning: chart.gridLine.style options: `solid`, `dash`, `dot`."),delete e.style),e.cap&&!["flat","square","round"].includes(e.cap)&&(console.warn("Warning: chart.gridLine.cap options: `flat`, `square`, `round`."),delete e.cap))}var i=++qD,s={_type:null,text:null,options:null,chartRid:null},l=null,c=[];Array.isArray(t)?(t.forEach((function(e){c=c.concat(e.data)})),l=n||r):(c=n,l=r),c.forEach((function(e,t){e._dataIndex=t,void 0===e.labels||Array.isArray(e.labels[0])||(e.labels=[e.labels])}));var u=l&&"object"===typeof l?l:{};return u._type=t,u.x="undefined"===typeof u.x||null==u.x||isNaN(Number(u.x))?1:u.x,u.y="undefined"===typeof u.y||null==u.y||isNaN(Number(u.y))?1:u.y,u.w=u.w||"50%",u.h=u.h||"50%",u.objectName=u.objectName?OD(u.objectName):"Chart ".concat(e._slideObjects.filter((function(e){return e._type===_D.chart})).length),["bar","col"].includes(u.barDir||"")||(u.barDir="col"),u._type===SD.AREA&&(["stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),u._type===SD.BAR&&(["clustered","stacked","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="clustered")),u._type===SD.BAR3D&&(["clustered","stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),(null===(o=u.barGrouping)||void 0===o?void 0:o.includes("tacked"))&&(u.barGapWidthPct||(u.barGapWidthPct=50)),u.dataLabelPosition&&(u._type!==SD.AREA&&u._type!==SD.BAR3D&&u._type!==SD.DOUGHNUT&&u._type!==SD.RADAR||delete u.dataLabelPosition,u._type===SD.PIE&&(["bestFit","ctr","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition),u._type!==SD.BUBBLE&&u._type!==SD.BUBBLE3D&&u._type!==SD.LINE&&u._type!==SD.SCATTER||["b","ctr","l","r","t"].includes(u.dataLabelPosition)||delete u.dataLabelPosition,u._type===SD.BAR&&(["stacked","percentStacked"].includes(u.barGrouping||"")||["ctr","inBase","inEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition,["clustered"].includes(u.barGrouping||"")||["ctr","inBase","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition)),u.dataLabelBkgrdColors=!(!u.dataLabelBkgrdColors&&u.dataLabelBkgrdColors)&&u.dataLabelBkgrdColors,["b","l","r","t","tr"].includes(u.legendPos||"")||(u.legendPos="r"),["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"].includes(u.bar3DShape||"")||(u.bar3DShape="box"),["circle","dash","diamond","dot","none","square","triangle"].includes(u.lineDataSymbol||"")||(u.lineDataSymbol
2="circle"),["gap","span"].includes(u.displayBlanksAs||"")||(u.displayBlanksAs="span"),["standard","marker","filled"].includes(u.radarStyle||"")||(u.radarStyle="standard"),u.lineDataSymbolSize=u.lineDataSymbolSize&&!isNaN(u.lineDataSymbolSize)?u.lineDataSymbolSize:6,u.lineDataSymbolLineSize=u.lineDataSymbolLineSize&&!isNaN(u.lineDataSymbolLineSize)?jD(u.lineDataSymbolLineSize):jD(.75),u.layout&&["x","y","w","h"].forEach((function(e){var t=u.layout[e];(isNaN(Number(t))||t<0||t>1)&&(console.warn("Warning: chart.layout."+e+" can only be 0-1"),delete u.layout[e])})),u.catGridLine=u.catGridLine||(u._type===SD.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),u.valGridLine=u.valGridLine||(u._type===SD.SCATTER?{color:"D9D9D9",size:1}:{}),u.serGridLine=u.serGridLine||(u._type===SD.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),a(u.catGridLine),a(u.valGridLine),a(u.serGridLine),VD(u.shadow),u.showDataTable=!(!u.showDataTable&&u.showDataTable)&&u.showDataTable,u.showDataTableHorzBorder=!(u.showDataTableHorzBorder||!u.showDataTableHorzBorder)||u.showDataTableHorzBorder,u.showDataTableVertBorder=!(u.showDataTableVertBorder||!u.showDataTableVertBorder)||u.showDataTableVertBorder,u.showDataTableOutline=!(u.showDataTableOutline||!u.showDataTableOutline)||u.showDataTableOutline,u.showDataTableKeys=!(u.showDataTableKeys||!u.showDataTableKeys)||u.showDataTableKeys,u.showLabel=!(!u.showLabel&&u.showLabel)&&u.showLabel,u.showLegend=!(!u.showLegend&&u.showLegend
2)&&u.showLegend,u.showPercent=!(u.showPercent||!u.showPercent)||u.showPercent,u.showTitle=!(!u.showTitle&&u.showTitle)&&u.showTitle,u.showValue=!(!u.showValue&&u.showValue)&&u.showValue,u.showLeaderLines=!(!u.showLeaderLines&&u.showLeaderLines)&&u.showLeaderLines,u.catAxisLineShow="undefined"===typeof u.catAxisLineShow||u.catAxisLineShow,u.valAxisLineShow="undefined"===typeof u.valAxisLineShow||u.valAxisLineShow,u.serAxisLineShow="undefined"===typeof u.serAxisLineShow||u.serAxisLineShow,u.v3DRotX=!isNaN(u.v3DRotX)&&u.v3DRotX>=-90&&u.v3DRotX<=90?u.v3DRotX:30,u.v3DRotY=!isNaN(u.v3DRotY)&&u.v3DRotY>=0&&u.v3DRotY<=360?u.v3DRotY:30,u.v3DRAngAx=!(u.v3DRAngAx||!u.v3DRAngAx)||u.v3DRAngAx,u.v3DPerspective=!isNaN(u.v3DPerspective)&&u.v3DPerspective>=0&&u.v3DPerspective<=240?u.v3DPerspective:30,u.barGapWidthPct=!isNaN(u.barGapWidthPct)&&u.barGapWidthPct>=0&&u.barGapWidthPct<=1e3?u.barGapWidthPct:150,u.barGapDepthPct=!isNaN(u.barGapDepthPct)&&u.barGapDepthPct>=0&&u.barGapDepthPct<=1e3?u.barGapDepthPct:150,u.chartColors=Array.isArray(u.chartColors)?u.chartColors:u._type===SD.PIE||u._type===SD.DOUGHNUT?AD:gD,u.chartColorsOpacity=u.chartColorsOpacity&&!isNaN(u.chartColorsOpacity)?u.chartColorsOpacity:null,u.border=u.border&&"object"===typeof u.border?u.border:null,!u.border||u.border.pt&&!isNaN(u.border.pt)||(u.border.pt=ZR.pt),!u.border||u.border.color&&"string"===typeof u.border.color||(u.border.color=ZR.color),u.plotArea=u.plotArea||{},u.plotArea.border=u.plotArea.border&&"object"===typeof u.plotArea.border?u.plotArea.border:null,!u.plotArea.border||u.plotArea.border.pt&&!isNaN(u.plotArea.border.pt)||(u.plotArea.border.pt=ZR.pt),!u.plotArea.border||u.plotArea.border.color&&"string"===typeof u.plotArea.border.color||(u.plotArea.border.color=ZR.color),u.border&&(u.plotArea.border=u.border),u.plotArea.fill=u.plotArea.fill||{color:null,transparency:null},u.fill&&(u.plotArea.fill.color=u.fill),u.chartArea=u.chartArea||{},u.chartArea.border=u.chartArea.border&&"object"===typeof u.chartArea.border?u.chartArea.border:null,u.chartArea.border&&(u.chartArea.border={color:u.chartArea.border.color||ZR.color,pt:u.chartArea.border.pt||ZR.pt}),u.chartArea.roundedCorners="boolean"!==typeof u.chartArea.roundedCorners||u.chartArea.roundedCorners,u.dataBorder=u.dataBorder&&"object"===typeof u.dataBorder?u.dataBorder:null,!u.dataBorder||u.dataBorder.pt&&!isNaN(u.dataBorder.pt)||(u.dataBorder.pt=.75),!u.dataBorder||u.dataBorder.color&&"string"===typeof u.dataBorder.color&&6===u.dataBorder.color.length||(u.dataBorder.color="F9F9F9"),u.dataLabelFormatCode||u._type!==SD.SCATTER||(u.dataLabelFormatCode="General"),u.dataLabelFormatCode||u._type!==SD.PIE&&u._type!==SD.DOUGHNUT||(u.dataLabelFormatCode=u.showPercent?"0%":"General"),u.dataLabelFormatCode=u.dataLabelFormatCode&&"string"===typeof u.dataLabelFormatCode?u.dataLabelFormatCode:"#,##0",u.dataLabelFormatScatter||u._type!==SD.SCATTER||(u.dataLabelFormatScatter="custom"),u.lineSize="number"===typeof u.lineSize?u.lineSize:2,u.valAxisMajorUnit="number"===typeof u.valAxisMajorUnit?u.valAxisMajorUnit:null,u._type===SD.AREA||u._type===SD.BAR||u._type===SD.BAR3D||u._type===SD.LINE?u.catAxisMultiLevelLabels=!!u.catAxisMultiLevelLabels:delete u.catAxisMultiLevelLabels,s._type="chart",s.options=u,s.chartRid=WD(e),e._relsChart.push({rId:WD(e),data:c,opts:u,type:u._type,globalId:i,fileName:"chart".concat(i,".xml"),Target:"/ppt/charts/chart".concat(i,".xml")}),e._slideObjects.push(s),s}function QD(e,t){var n={_type:null,text:null,options:null,image:null,imageRid:null,hyperlink:null},r=t.x||0,o=t.y||0,a=t.w||0,i=t.h||0,s=t.sizing||null,l=t.hyperlink||"",c=t.data||"",u=t.path||"",d=WD(e),p=t.objectName?OD(t.objectName):"Image ".concat(e._slideObjects.filter((function(e){return e._type===_D.image})).length);if(!u&&!c)return console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"),null;if(u&&"string"!==typeof u)return console.error("ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ".concat(String(u))),null;if(c&&"string"!==typeof c)return console.error("ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ".concat(String(c))),null;if(c&&"string"===typeof c&&!c.toLowerCase().includes("base64,"))return console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"),null;var h=(u.substring(u.lastIndexOf("/")+1).split("?")[0].split(".").pop().split("#")[0]||"png").toLowerCase();if(c&&/image\/(\w+);/.exec(c)&&/image\/(\w+);/.exec(c).length>0?h=/image\/(\w+);/.exec(c)[1]:(null===c||void 0===c?void 0:c.toLowerCase().includes("image/svg+xml"))&&(h="svg"),n._type=_D.image,n.image=u||"preencoded.png",n.options={x:r||0,y:o||0,w:a||1,h:i||1,altText:t.altText||"",rounding:"boolean"===typeof t.rounding&&t.rounding,sizing:s,placeholder:t.placeholder,rotate:t.rotate||0,flipV:t.flipV||!1,flipH:t.flipH||!1,transparency:t.transparency||0,objectName:p,shadow:VD(t.shadow)},"svg"===h)e._relsMedia.push({path:u||c+"png",type:"image/png",extn:"png",data:c||"",rId:d,Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".png"),isSvgPng:!0,svgSize:{w:DD(n.options.w,"X",e._presLayout),h:DD(n.options.h,"Y",e._presLayout)}}),n.imageRid=d,e._relsMedia.push({path:u||c,type:"image/svg+xml",extn:h,data:c||"",rId:d+1,Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".").concat(h)}),n.imageRid=d+1;else{var f=e._relsMedia.filter((function(e){return e.path&&e.path===u&&e.type==="image/"+h&&!e.isDupl
2icate}))[0];e._relsMedia.push({path:u||"preencoded."+h,type:"image/"+h,extn:h,data:c||"",rId:d,isDuplicate:!!(null===f||void 0===f?void 0:f.Target),Target:(null===f||void 0===f?void 0:f.Target)?f.Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".").concat(h)}),n.imageRid=d}if("object"===typeof l){if(!l.url&&!l.slide)throw new Error("ERROR: `hyperlink` option requires either: `url` or `slide`");d++,e._rels.push({type:_D.hyperlink,data:l.slide?"slide":"dummy",rId:d,Target:l.url||l.slide.toString()}),l._rId=d,n.hyperlink=l}e._slideObjects.push(n)}function XD(e,t,n){var r="object"===typeof n?n:{};r.line=r.line||{type:"none"};var o={_type:_D.text,shape:t||CD.RECTANGLE,options:r,text:null};if(!t)throw new Error("Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`");var a={type:r.line.type||"solid",color:r.line.color||aD,transparency:r.line.transparency||0,width:r.line.width||1,dashType:r.line.dashType||"solid",beginArrowType:r.line.beginArrowType||null,endArrowType:r.line.endArrowType||null};if("object"===typeof r.line&&"none"!==r.line.type&&(r.line=a),r.x=r.x||(0===r.x?0:1),r.y=r.y||(0===r.y?0:1),r.w=r.w||(0===r.w?0:1),r.h=r.h||(0===r.h?0:1),r.objectName=r.objectName?OD(r.objectName):"Shape ".concat(e._slideObjects.filter((function(e){return e._type===_D.text})).length),"string"===typeof r.line){var i=a;i.color=String(r.line),r.line=i}"number"===typeof r.lineSize&&(r.line.width=r.lineSize),"string"===typeof r.lineDash&&(r.line.dashType=r.lineDash),"string"===typeof r.lineHead&&(r.line.beginArrowType=r.lineHead),"string"===typeof r.lineTail&&(r.line.endArrowType=r.lineTail),ZD(e,o),e._slideObjects.push(o)}function KD(e,t,n,r){var o={_type:r?_D.placeholder:_D.text,shape:(null===n||void 0===n?void 0:n.shape)||CD.RECTANGLE,text:t&&0!==t.length?t:[{text:"",options:null}],options:n||{}};function a(t){if(t.placeholder||(t.color=t.color||o.options.color||e.color||eD),(t.placeholder||r)&&(t.bullet=t.bullet||!1),t.placeholder&&e._slideLayout&&e._slideLayout._slideObjects){var n=e._slideLayout._slideObjects.filter((function(e){return"placeholder"===e._type&&e.options&&e.options.placeholder&&e.options.placeholder===t.placeholder}))[0];(null===n||void 0===n?void 0:n.options)&&(t=MR(MR({},t),n.options))}if(t.objectName=t.objectName?OD(t.objectName):"Text ".concat(e._slideObjects.filter((function(e){return e._type===_D.text})).length),t.shape===CD.LINE){var a={type:t.line.type||"solid",color:t.line.color||aD,transparency:t.line.transparency||0,width:t.line.width||1,dashType:t.line.dashType||"solid",beginArrowType:t.line.beginArrowType||null,endArrowType:t.line.endArrowType||null};if("object"===typeof t.line&&(t.line=a),"string"===typeof t.line){var i=a;"string"===typeof t.line&&(i.color=t.line),t.line=i}"number"===typeof t.lineSize&&(t.line.width=t.lineSize),"string"===typeof t.lineDash&&(t.line.dashType=t.lineDash),"string"===typeof t.lineHead&&(t.line.beginArrowType=t.lineHead),"string"===typeof t.lineTail&&(t.line.endArrowType=t.lineTail)}return t.line=t.line||{},t.lineSpacing=t.lineSpacing&&!isNaN(t.lineSpacing)?t.lineSpacing:null,t.lineSpacingMultiple=t.lineSpacingMultiple&&!isNaN(t.lineSpacingMultiple)?t.lineSpacingMultiple:null,t._bodyProp=t._bodyProp||{},t._bodyProp.autoFit=t.autoFit||!1,t._bodyProp.anchor=t.placeholder?null:zR.ctr,t._bodyProp.vert=t.vert||null,t._bodyProp.wrap="boolean"!==typeof t.wrap||t.wrap,(t.inset&&!isNaN(Number(t.inset))||0===t.inset)&&(t._bodyProp.lIns=MD(t.inset),t._bodyProp.rIns=MD(t.inset),t._bodyProp.tIns=MD(t.inset),t._bodyProp.bIns=MD(t.inset)),"boolean"===typeof t.underline&&!0===t.underline&&(t.underline={style:"sng"}),0===(t.align||"").toLowerCase().indexOf("c")?t._bodyProp.align=UR.center:0===(t.align||"").toLowerCase().indexOf("l")?t._bodyProp.align=UR.left:0===(t.align||"").toLowerCase().indexOf("r")?t._bodyProp.align=UR.right:0===(t.align||"").toLowerCase().indexOf("j")&&(t._bodyProp.align=UR.justify),0===(t.valign||"").toLowerCase().indexOf("b")?t._bodyProp.anchor=zR.b:0===(t.valign||"").toLowerCase().indexOf("m")?t._bodyProp.anchor=zR.ctr:0===(t.valign||"").toLowerCase().indexOf("t")&&(t._bodyProp.anchor=zR.t),VD(t.shadow),t}o.options=a(o.options),o.text.forEach((function(e){return e.options=a(e.options||{})})),ZD(e,o.text||""),e._slideObjects.push(o)}function JD(e,t){var n;if(t.bkgd&&(t.background||(t.background={}),"string"===typeof t.bkgd?t.background.color=t.bkgd:(t.bkgd.data&&(t.background.data=t.bkgd.data),t.bkgd.path&&(t.background.path=t.bkgd.path),t.bkgd.src&&(t.background.path=t.bkgd.src))),(null===(n=t.background)||void 0===n?void 0:n.fill)&&(t.background.color=t.background.fill),e&&(e.path||e.data)){e.path=e.path||"preencoded.png";var r=(e.path.split(".").pop()||"png").split("?")[0];"jpg"===r&&(r="jpeg"),t._relsMedia=t._relsMedia||[];var o=t._relsMedia.length+1;t._relsMedia.push({path:e.path,type:_D.image,extn:r,data:e.data||null,rId:o,Target:"../media/".concat((t._name||"").replace(/\s+/gi,"-"),"-image-").concat(t._relsMedia.length+1,".").concat(r)}),t._bkgdImgRid=o}}function ZD(e,t){var n=[];
2"string"!==typeof t&&"number"!==typeof t&&(Array.isArray(t)?n=t:"object"===typeof t&&(n=[t]),n.forEach((function(t){if(Array.isArray(t))ZD(e,t);else if(Array.isArray(t.text))ZD(e,t.text);else if(t&&"object"===typeof t&&t.options&&t.options.hyperlink&&!t.options.hyperlink._rId)if("object"!==typeof t.options.hyperlink)console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` ");else if(t.options.hyperlink.url||t.options.hyperlink.slide){var n=WD(e);e._rels.push({type:_D.hyperlink,data:t.options.hyperlink.slide?"slide":"dummy",rId:n,Target:OD(t.options.hyperlink.url)||t.options.hyperlink.slide.toString()}),t.options.hyperlink._rId=n}else console.log("ERROR: 'hyperlink requires either: `url` or `slide`'")})))}var $D=function(){function e(e){var t;this.addSlide=e.addSlide,this.getSlide=e.getSlide,this._name="Slide ".concat(e.slideNumber),this._presLayout=e.presLayout,this._rId=e.slideRId,this._rels=[],this._relsChart=[],this._relsMedia=[],this._setSlideNum=e.setSlideNum,this._slideId=e.slideId,this._slideLayout=e.slideLayout||null,this._slideNum=e.slideNumber,this._slideObjects=[],this._slideNumberProps=(null===(t=this._slideLayout)||void 0===t?void 0:t._slideNumberProps)?this._slideLayout._slideNumberProps:null}return Object.defineProperty(e.prototype,"bkgd",{get:function(){return this._bkgd},set:function(e){this._bkgd=e,this._background&&this._background.color||(this._background||(this._background={}),"string"===typeof e&&(this._background.color=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"background",{get:function(){return this._background},set:function(e){this._background=e,e&&JD(e,this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(e){this._hidden=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideNumber",{get:function(){return this._slideNumberProps},set:function(e){this._slideNumberProps=e,this._setSlideNum(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newAutoPagedSlides",{get:function(){return this._newAutoPagedSlides},enumerable:!1,configurable:!0}),e.prototype.addChart=function(e,t,n){return(n||{})._type=e,YD(this,e,t,n),this},e.prototype.addImage=function(e){return QD(this,e),this},e.prototype.addMedia=function(e){return function(e,t){var n,r=t.x||0,o=t.y||0,a=t.w||2,i=t.h||2,s=t.data||"",l=t.link||"",c=t.path||"",u=t.type||"audio",d=t
vendor: 74,413 bytes, line 2
2.cover||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAVnCAYAAACzfHDVAAAAYHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjaVcjJDYAwDEXBu6ughBfH+YnLQSwSHVA+Yrkwx7HtPHabHuEWrQ+lBBAZ6TMweBWoCwUH8quZH6VWFXVT696zxp12ARkVFEqn8wB8AAAACXBIWXMAAC4jAAAuIwF4pT92AADZLklEQVR42uzdd5hV9Z0/8M+dmcsUZmDovYOhKCiKYhR7JJuoSTCWGFI0WUxijBoTTXazVlyza4maYm9rTRSJigVsqCDNQhHBAogKCEgRMjMMU+7vj93sL8kqClLmnPt6PY+PeXZM9vP9vO8jZ+Y955xMfJLjorBrRMuSgmiViyjN1Ee2oSCyucbIBAAAAAAAAADbXaYgcoWNUZcrirpMbdRsysa69wbF+rggGrf439vSF7seF12aFUTnxvoosGIAAAAAAACAXacgoqEgF++/VRgr4r5o+Kh/pvD//F8uiII+LaPrum/EXzqui2b1ddHGKgEAAAAAAAB2rVxEQWMmWrQtjHZlA6N2w2tR84//zP8pgHu3ib6NBdG+zdqorK6KVUXZaB85j3sGAAAAAAAAaAoaG6OwIBdtyneP2PBabPzbr/1dAdx3VHRtyESHiIhcYzQrLo7WmVzkcjmPgAYAAAAAAABoSgpy0eIfS+D/LYD7fy3abC6Inn/7X2hsjELlLwAAAAAAAEDT9D8lcM1fHwddFBFxyAVR9M686PVp/gfqayKiJiLqLBMAAAAAAABgh8hGRGlEUekn/6PFEb3ikNgQk6O+KCJi6dzoksv83/cB/1X9xoiaJdmoWxlRV1dk2QAAAAAAAAA7QTZbH9muERX96v7n9t7/q6Exinq3i86LI94pjOOisHUu+uYykfmof7h+Y8Sa6aVRt74gGhs9DRoAAAAAAABgZ2lsLIi69QWxeUUmSjs0/vedwR8hk4uydSfE+wVd6qOyMfMx7/mtj9jwUtbjngEAAAAAAAB2obrqolg7IxtR/9Ffb4wo7P5GtCwobRaVH/c/UvNmNuqqPfIZAAAAAAAAYFerqy6KmjezH/v1ktpoVZBr/PgCeMN7yl8AAAAAAACApmJLHW5jUVQWNDSP+Q3ZeLco4i9/+8X6teHRzwAAAAAAAABNSd3/dLn/oLAoqqIuVhXFxhhSGB/xqGjlLwAAAAAAAECTU1eTjaK/KXSLIv7SWB+bc5ko9YxnAAAAAAAAgATJFv393bz1EeV//c8F1gMAAAAAAACQDgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKREkRUAAACwrUpLSwuGDRvWfMCAAS26du3avKysrLiioqKkZcuWzZs1a1bcvHnz0tLS0rJsNtusuLi4ebNmzUoLCgo+8/eijY2N9Zs3b66pra2tqqur21xTU1NdVVVVs2nTptqNGzdWbdiwoeYvf/nL5hUrVlQtWLBgw6xZs6pqamoaJQYAAEDaKYABAACIiIghQ4aUHnTQQW379u3bql27dq3at2/fpkWLFq2bN29eWVpa2qpZs2bNCwsLm2ez2fLCwsLyoqKi8sLCwtKknK+hoaG6vr6+qqGh4S91dXV/aWhoqNq8eXNVTU3NuqqqqvUbNmxYu2rVqjWrV69e99Zbb6177rnnPpgzZ06NTwYAAABJogAGAADIA8OGDWt+xBFHdBwwYECnLl26dGjdunXHFi1adCgtLe1YUlLSvlmzZq0KCgqK07yDwsLCssLCwrKIaPdp/zuNjY21mzdvXrdp06ZVNTU172/YsGHl2rVr31+2bNnKBQsWrHjyySffnzVrVpVPGAAAAE1Fpuexsd9HfaF+ZcSal0ptCAAAIAE6deqUPf744zvtueeeXbp3796lbdu2XSorKzuXlpZ2KS0t7VBYWFhhSztGQ0PDxpqampU1NTXL169fv+yDDz5Y9s477yybPXv2sj/96U8rVqxYUWdLAAAAbE9t9q6Jog4f/TUFMAAAQEJks9nMt7/97Y4jRozo1bdv397t2rXrXl5e3rWsrKxzcXFx+4gosKUmp7G2tnZVTU3Nso0bNy5btWrV0tdff/2tJ598cvG999672noAAADYFgpgAACAhPne977X6a9Fb/v27Xu1bNmyV1lZWa8kvXOXLauvr9/wl7/8ZdG6desWL1u2bNHChQsX/fGPf1w8derUjbYDAADAliiAAQAAmqhsNps59dRTuxx66KH9+/Tp87n27dv3Ly8v719UVOSRzXlq06ZNKzZu3Pj6+++//8abb775xqOPPvrG3XffvcpmAAAA+CsFMAAAQBNx6qmndvniF784qHfv3v3btWv3uYqKis8VFhaW2wxbUl9fv37Dhg1vfPDBB68vXrz4jccee2z+jTfeuNxmAAAA8pMCGAAAYBc45phjWn/rW9/aq3///kPatGnTv6Kiop9HOLO9NDQ0VG/cuPGtNWvWLFy4cOGcO+6445WHHnporc0AAACknwIYAABgJzjjjDO6f+lLX9qrV69eg1u3bj2orKysR0RkbIadJFddXb103bp18xcvXjz30UcffeXqq69+x1oAAADSRwEMAACwnZWWlhb86le/2u3QQw8d1r17931btmw5qLCwsMxmaEoaGhqqP/zww/nvvPPOzGeeeWbW2LFj36ipqWm0GQAAgGRTAAMAAGwHP/7xj7t+9atf3bdXr15D27Ztu1c2m21jKyRJXV3dmg8++OCVRYsWvfznP/95xh/+8IdltgIAAJA8CmAAAIBtcOKJJ7Y75ZRTDujXr9+w1q1bD81ms61shTSpq6tbt3bt2pfffPPNWbfccsvUe++9d7WtAAAANH0KYAAAgE+hoqKi4IILLhg0YsSI/bp27bpfy5YtB2YymUKbIR/kcrmGDz/8cP6777474/nnn59x4YUXvrZx40aPiwYAAGiCFMAAAAAf4/jjj2/7/e9//8D+/fsf2Lp1630KCgpKbAUiGhsbN61fv37eW2+9NeWGG2545u67715lKwAAAE2DAhgAAOB/ZLPZzAUXXPC5I4888sDu3bsfWFFRsVtEFNgMbFl1dfWSd999d8qsWbNmnnvuuS+vW7euwVYAAAB2DQUwAACQ10pLSwsuvfTSQYcccsjBXbt2HVFWVtbDVmDb1dbWrnr//fdfmDp16uRf/vKXL65evbreVgAAAHYeBTAAAJB3Bg0aVHrBBRd8fs899zywQ4cOBxQVFbWwFdj+Ghsba9euXTtrzpw5T59//vmTX3755WpbAQAA2LEUwAAAQF4YNmxY8/POO+/gIUOGHOZ9vrDz/W0ZfNFFFz07a9asKlsBAADY/hTAAABAarVq1arwyiuv3HfEiBEjO3TocFBhYWGZrcCu19DQUP3+++8/O2XKlIk/+clPZm7cuLHRVgAAALYPBTAAAJAqrVq1Kvztb3+7/3777Xd4x44dRxQWFpbbCjRdDQ0NG99///0pM2bMeOqHP/zhC8pgAACAz0YBDAAApMJZZ53V45vf/OaRvXr1GllaWtrVRiB5ampq3l28ePHEO++8c9LVV1/9jo0AAABsPQUwAACQWMOHDy+/6KKLvjB48OCjW7RoMdBGID0+/PDDV+fNmzfhvPPOe3L69Ol/sREAAIBPRwEMAAAkSqtWrQpvuOGGQ/bbb79/atOmzX6ZTCZrK5BeuVyubs2aNTNmzJjx2JgxYyavW7euwVYAAAA+ngIYAABIhB//+Mddv/e9732lZ8+e/1RcXNzWRiD/1NbWfvD2228/dssttzz029/+9l0bAQAA+L8UwAAAQJNVUVFRcO21137+4IMPPrZ169b7ZTKZAlsBIqJxzZo1M59//vnxp5122hR3BQMAAPx/CmAAAKDJOeWUUzqefvrpx/bu3ftL2Wy2jY0AH6e+vn7j0qVLH/vd7373x+uvv36ZjQAAAPlOAQwAADQJ2Ww2c+uttx5wyCGHnNC6deu9I8LdvsDWaFy7du1L06ZN+/OPfvSjZ1evXl1vJQAAQD5SAAMAALtU//79S6655pp/2nPPPY8tLy/vayPAZ1VTU7NswYIF488999wHp06dutFGAACAfKIABgAAdomf//znPU855ZQTu3btemRhYWGZjQDbW2NjY92KFSuevOWWW+689NJLF9kIAACQDxTAAADATuMxz8Cusn79+rlPP/30f5188slT6+rqcjYCAACklQIYAADY4fr27Vv8hz/84a+Pee5nI8CuUlNT8+68efPu/8EPfvDgwoULN9kIAACQNgpgAABghxkyZEjpNddc89XBgwefWFxc3MFGgKaitrZ21dy5c+/5yU9+8uc5c+bU2AgAAJAWWyqAPYoNAADYJqNHj+4wb968n06ZMuXRYcOGnaH8BZqa4uLi9sOGDTtjypQpj86bN++nJ510UntbAQAA0s4dwAAAwFY599xze33/+9//dufOnY/IZDJZGwGSIpfL1S1fvvzJG2644fbLLrvsbRsBAACSyiOgAQCAz+y8887r+53vfOfbHTt2PDyTyRTaCJBUuVyuYcWKFU/cdNNN//XrX/96sY0AAABJowAGAAC22WWXXTboG9/4xg9at249zDaAtFm7du2su++++9pzzjnnNdsAAACSQgEMAABsNcUvkE8UwQAAQJIogAEAgE9N8Qvks7Vr18665557rvv5z38+3zYAAICmaksFcGHlwOj6UV9orIqoWZG1PQAAyBO/+MUvet9xxx3nHHrooT8pLS3tYiNAPiotLe2y7777HvP973+/X1lZ2ZIpU6assxUAAKCpKetcHwXlH/01BTAAAOS5M844o/u99957zpe//OWflZeX94qIjK0AeS5TXl7e8+CDDx71/e9/v3dEvDVjxowPrQUAAGgqFMAAAMD/ceKJJ7a77777fjJq1Kh/KS8v7xOKX4B/lCkvL+99+OGHj/rWt77VfvXq1Qvnz59fbS0AAMCutqUC2DuAAQAgzwwdOrTs+uuvP6l///4nFRYWltkI20NjY2Ns2rQpqquro6amJurr62PTpk2xefPmqK+vj+rq6qivr4/NmzfHpk2boqGhYZv/fxUWFkZJSUk0a9YsioqKoqysLIqKiqJZs2ZRUlISRUVFUVpa+r9/FRQUCIjtoqGhoeq11167a8yYMffMmTOnxkYAAIBdZUvvAFYAAwBAnujUqVP2nnvuGbXXXnudnM1mK22Ej9PQ0BAbN26MDRs2/J+/Nm7cGBs3boyamprYtGlTbNq0KWpqaqK2trbJnqe4uDhKSkqitLT0f/9eUVERFRUV0aJFi//zV0VFRRQWFvog8LHq6urWvvjii7eceOKJf169enW9jQAAADubAhgAAPLcXXfdddAXv/jF00tLS7vZRn7L5XKxYcOGWLt2baxbty7Wrl37d3+tW7cuNmzYkPd7atGiRbRu3TpatWoVrVu3jjZt2vzvf27dunW0aNHCh4morq5e+sgjj1zzne98Z6ptAAAAO5MCGAAA8tTVV189+MQTTzyzoqJioG3kj8bGxli5cmUsX748Pvjgg1i9evX//n3t2rXR2NhoSZ9RYWFhtGrVKtq1axdt27b937937tw5OnTo4LHTeWbDhg3z77333qvOPPPMebYBAADsDApgAADIM1/72tfaXHrppad27979qIjQRKVUQ0NDrFq1KlasWBHvv//+//595cqVTfqRzGlXXFwcHTp0iI4dO0bnzp2jY8eO0alTp2jXrp1HS6dYLpdrfOeddx76+c9/fv2ECRPW2QgAALAjKYABACBP9OrVq9ldd931jT322OM7hYWFZTaSHh9++GG88847sXTp0njvvfdixYoVsXr16mhoaLCchCgsLIz27dtHp06dolu3btG9e/fo3r27x0mnTENDQ9W8efNu++Y3v/nHJUuWbLYRAABgR1AAAwBAHrjrrrtG/NM//dOZJSUlXWwj2davXx9Lly6Nd955539L3w8//NBiUqqysvJ/y+C//tWqVSuLSbiamppljz322G9Gjx49xTYAAIDtTQEMAAAp9qtf/arPD3/4w5+1atVqL9tIno0bN8aSJUvirbfeikWLFsV7770XmzZtspg8V1JSEl27do0+ffpE3759o3fv3lFeXm4xCbRu3bqXr7322ivGjh27yDYAAIDtRQEMAAApNGjQoNI77rjju7vttttJBQUFWRtJhtWrV8ebb74ZixcvjiVLlsTy5cujsbHRYtiigoKC6Ny5c/Tu3Tt69+4d/fr1i7Zt21pMQjQ2Nta98cYbd33rW9+6ff78+TU2AgAAfFYKYAAASJHS0tKCBx988Jj99tvvn7PZbBsbaboaGhri7bffjrfeeisWLFgQS5YscXcv201FRUX06tUr+vbtG3379o2ePXtGYWGhxTRhdXV1a2bMmHHjV77ylYdqamr85gcAALDNFMAAAJASp59+erdf/vKX51ZWVu5jG03T6tWr47XXXouFCxfGm2++GRs3brQUdooWLVpE3759Y8CAATFw4EB3CDdh69evf/E//uM//vPqq69+xzYAAIBtoQAGAICEGzRoUOm99977w969ex+byWTc4teErF+/PubNmxcLFiyIN954Q+FLk9GiRYvo169fDBgwIPbYY4+orKy0lCYkl8s1LF68eNyJJ554rcdCAwAAW0sBDAAACXbNNdcMOemkk35RVlbWyzZ2vVwuF++++27MnTs3XnvttViyZIl3+NLkFRQURK9evWLQoEExePDg6Natm6U0EdXV1UvuvvvuX//kJz+ZYxsAAMCnpQAGAIAEOuqoo1r99re//VmHDh0Ot41da9OmTTF79uyYO3duLFy4MKqqqiyFRGvevHn0798/Bg8eHHvuuWeUlJRYyi62cuXKp04//fTLJ0yYsM42AACAT6IABgCAhBk3btwRRxxxxFnZbLaNbewaVVVVMXfu3Jg7d27Mnz8/amtrLYVUKi4ujoEDB8bgwYNj8ODBUV5ebim7SF1d3ZqnnnrqqlGjRj1hGwAAwJYogAEAICFOOeWUjhdddNEvW7duvZ9t7HwrV66MWbNmxdy5c+Odd96JXC5nKeSdzp07x9577x3Dhg2LDh06WMgusHbt2hnnnXfepbfccsv7tgEAAHwUBTAAADRxpaWlBU899dQ3Bw8e/L2CggLPYt2JVqxYES+99FK89NJLsXz5cguBv/HXMnjvvfeOTp06WchO1NjYuGnu3Lk3H3744XfV1NR40TgAAPB3FMAAANCEjR49usOll176yzZt2gy3jZ1j/fr18eKLL8bMmTNj6dKlFgKfQs+ePWPfffeNYcOGRYsWLSxkJ1mzZs0L55577q/vvvvuVbYBAAD8lQIYAACaoIqKioKJEyd+c/Dgwd8vKCgotpEda8OGDfHiiy/G9OnTlb7wGfXo0SOGDx8ew4YNi4qKCgvZwdwNDAAA/CMFMAAANDGnnHJKx7Fjx/5rZWXlMNvYcerr6+PVV1+NGTNmxLx586Kurs5SYDvKZrMxZMiQ2HfffWP33XePwsJCS9mB1q5dO+MXv/jFv995550rbQMAAPKbAhgAAJqIbDabeeKJJ47fZ599fuSu3x0jl8vFwoULY/r06TF79uzYtGmTpcBOUFpaGkOGDInhw4fHgAEDLGQHaWhoqJ42bdo1Rx555J9tAwAA8pcCGAAAmoDjjz++7ZVXXvmr1q1be9fvDrBmzZqYNm1azJw5M1audHMc7EodO3aMz3/+87H//vt7X/CO+3fetDPPPPOScePGfWAbAACQfxTAAACwi9100037HXvssf9WXFzc1ja2n1wuF6+99lo8//zzMW/evKivr7cUaEKKiopizz33jBEjRsTnPve5yGQylrId1dbWrvrjH/948Q9+8INZtgEAAPlFAQwAALvIkCFDSu+///5zunTp8k+2sf2sXbs2Jk+eHNOnT48PP/zQQiABKisrY8SIEXHIIYdEeXm5hWxHy5Yte+zrX//6f86ZM6fGNgAAID9sqQAurBwYXT/qC41VETUrsrYHAADb6IILLtjt97///VVt2rQZZhvbx+LFi2P8+PFx9913xxtvvBG1tbWWAgmxadOmeOONN+LZZ5+NtWvXRps2bTweejtp0aJFv5NOOumg0tLSuc8+++xaGwEAgPQr61wfBR/zu7XuAAYAgO0sm81mJk2a9PVhw4b9pKCgwG9VfkZ1dXUxY8aMeOaZZ+K9996zEEiRfv36xSGHHBJDhw6NgoICC/mMGhsbN8+YMeOaL37xi+Pq6upyNgIAAOnlEdAAALCTHH/88W2vuuqqCyorK/exjc9mzZo18dRTT8XUqVNj06ZNFgIpVlFREZ///OfjsMMOi8rKSgv5jNavXz/r9NNPv3DcuHEf2AYAAKSTAhgAAHaC22677fNf+9rXzstms5W2se0WLVoUjz/+eMybNy9yOTewQT4pKiqKIUOGxBFHHBG9e/e2kM+grq5u3QMPPHDRySefPM02AAAgfRTAAACwA1VUVBQ8/fTTpwwcOPCUTCbjGabbIJfLxauvvhpPPvlkLFy40EIgz2UymRgwYEAcccQRMWjQIAvZ9n+3Ns6fP/+Www8//JaNGzc22ggAAKTHlgrgwsqB0fWjvtBYFVGzwuvKAABgS0488cR2EyZMuLx79+5fzmQyGRvZOo2NjTFr1qy49dZb48knn4wPPvC0UuC/rV69OmbMmBFz5syJ0tLS6NSpU/jX7NbJZDKZ9u3bD/3+978/dPny5TNfffXValsBAIB0KOtcHwXlH/O9gDuAAQBg29x66637H3vssRcWFRW1sI2tU1NTE0899VQ8++yzsWHDBgsBPlGLFi3i4IMPjsMPPzxKS/28YmvV19d/OG7cuPNPPvnk6bYBAADJ5xHQAACwHWWz2cyzzz77rSFDhvzAI5+3zqZNm2Ly5Mnx1FNPKX6BbdKiRYs47LDD4pBDDlEEb6VcLtfwyiuvXHfooYfeWVdX5yXrAACQYApgAADYTo455pjW11133cWVlZV728ant2HDhnj88cdjypQpUVtbayHAZ1ZcXBwHHnhgfPGLX4wWLTyIYWusWbNm2re//e3zn3nmGb+JAwAACeUdwAAAsB1cfvnlu1900UW/LS8v72cbn05VVVVMmDAhbrnllnjzzTejoaHBUoDtoqGhIZYsWRLPPfdc1NTURI8ePSKb9XOMT6OsrKzb17/+9SPbtm0774knnlhtIwAAkMDreu8ABgCAz+bhhx/+8qGHHnpOQUFBsW18sk2bNsUzzzwTTzzxRFRVVVkIsMOVl5fHkUceGYccckgUF/tX9afR2Ni46emnn/71Mccc87htAABAsngENAAAbKN27doVTZ48+YxevXodZxufrK6uLp5++umYOHGi4hfYJSoqKuKLX/xiHHzwwe4I/pQWLVr0x4MOOuiadevWeUwDAAAkhEdAAwDANjj22GPbPvzww7/p2LHjobaxZXV1dfHkk0/GddddF3Pnzo26ujpLAXaJzZs3x2uvvRbPPfdcRET06NEjCgsLLWYLWrduvfv3vve9fd9+++1pCxYsqLYRAABo+rb0CGgFMAAAfITLL7989wsuuOB3zZs372UbH6+xsTGmTJkS119/fbzyyiuKX6DJ2Lx5cyxYsCCmT58excXF0a1bt8hkMhbzMUpKSjp8+ctfPrJt27ZzvBcYAACaPu8ABgCArTB+/Pgjv/CFL/xLQUFBiW18vAULFsT48eNj6dKllgE0eT169IivfOUrMWjQIMvYgsbGxpqJEydecuyxxz5pGwAA0HR5BzAAAHwK7dq1K3ruued+1qNHj6/axsdbtGhR3H///bF48WLLABKnV69ecdxxx0WfPn0sYwuWLl3654MOOujy1atX19sGAAA0Pd4BDAAAn2DYsGHNn3766V936tTpC7bx0TZs2BD33Xdf/PGPf4y1a9daCJBI69evj2nTpsW6deuiZ8+eUVLiYQ8fpbKysv+3v/3t/lOmTJmyfPlyz/cHAIAmxjuAAQBgC372s5/1uP76669t0aKF54J+hJqamhg/fnzcfPPN8fbbb0cul7MUINFyuVy888478cwzz0RVVVX07t07slk/A/lHZWVl3U488cTD6+rqZkyfPv1DGwEAgCZ0va4ABgCAj3bFFVfscdZZZ11dXFzcwTb+Xi6XixkzZsR1110XCxYsiMbGRksBUqWxsTGWLFkSM2bMiPLy8ujSpUtkMhmL+RvZbLbFQQcddHibNm1mP/HEE6ttBAAAmoYtFcDeAQwAQN6aNGnSqAMOOODsTCZTaBt/b9GiRXHPPffEu+++axlA3ujWrVucdNJJ0bt3b8v4B7lcrm7y5Mm//vKXv/yIbQAAwK63pXcAK4ABAMg7paWlBTNnzjyzT58+x9vG39uwYUOMGzcuZsyY4VHPQF7KZDKx3377xde//vWoqKiwkH+waNGiP+27775X1dTUeCwEAADsQgpgAAD4H926dctOnjz5V506dRppG/9fLpeLqVOnxp///OfYuHGjhQB5r6KiIkaNGhX777+/x0L/g+XLlz9+6KGHXvLuu+/W2QYAAOwaWyqAvQMYAIC8MXz48PInnnjiynbt2o2wjf/vnXfeiWuvvTaee+652Lx5s4UARMTmzZtjzpw58dprr0XPnj2jRYsWlvI/Kioq+n7rW98aMnXq1Ofee+89f3AAAMAusKV3ACuAAQDIC9/+9rc73n777X9o0aLFANv4b1VVVXHXXXfFvffeG+vXr7cQgI+wbt26eP7552P9+vWx2267RVFRkaVERElJSefjjjvuoA8++GDKK6+88hcbAQCAnUsBDABAXjv//PP7XXzxxX8oKSnpbBv/bfr06XHttdfGokWLLAPgU3jnnXdi2rRp0bp16+jc2R8nERHZbLbyC1/4whElJSUvTp48eY2NAADAzqMABgAgb/3ud7/b60c/+tFVRUVFrWwjYs2aNXHzzTfHpEmTora21kIAtkJtbW289NJL8c4770Tfvn2jtLQ073dSWFhYNnz48C/26dNn4UMPPbTMpwQAAHYOBTAAAHnp1ltv3f+b3/zmfxYWFjbP913kcrl4/vnn4/rrr4/ly5f7cAB8BitXroxp06ZFRUVFdOvWLTKZTF7vo6CgIDto0KBDBw0atOiBBx54xycEAAB2vC0VwJmex8Z+H/WF+pURa17ym6wAACTTww8//KXDDjvsXzKZTN6/rPGDDz6I22+/Pd544w0fDIDtbMCAAfGtb30r2rRpk/e7yOVyjVOmTPn1yJEjH/LJAACAHavN3jVR1OGjv6YABgAgdV555ZXTPve5z30r3/fQ0NAQjz32WDz++ONRV1fngwGwg2Sz2Tj66KPjC1/4QhQUFOT9Pl5//fU79tprr9/7ZAAAwI6jAAYAIC9ks9nMyy+/fFafPn2Oz/ddvPvuu3HbbbfFe++954MBsJN069YtvvOd70S3bt3yfhdLliy5f5999rmypqam0ScDAAC2PwUwAACpV1paWjBr1qyzevfufVw+7yGXy8WTTz4ZDz74oLt+AXaBbDYbxxxzTBxxxBF5fzfw0qVLHxg6dOjlSmAAANj+FMAAAKRar169mk2ePHlsu3btDsrnPaxcuTJuueWWePvtt30oAHaxnj17ximnnBIdOnTI6z2sXr16yiGHHPIvS5Ys2exTAQAA28+WCuDCyoHR9aO+0FgVUbMia3sAADRpQ4cOLXvqqacub9Omzf75uoNcLhfPPPNMXH/99bF27VofCoAmYP369TFlypQoKSmJnj17RiaTycs9NG/evPtJJ500ZPLkyc+sWLHCoykAAGA7KetcHwXlH/01BTAAAIk1ZMiQ0kceeeSKVq1a7Z2vO6iuro7bb789nnjiiWhs9IRNgKaksbEx5s+fH++//34MGDAgstn8/DlLaWlpp6997WuDn3rqqadXrlxZ75MBAACfnQIYAIDUOfTQQ1s8+OCDv2/ZsuUe+bqDOXPmxNVXX+2RzwBN3PLly+OFF16Ijh075u0joUtLSzudcMIJ+7/00ktPv/3227U+FQAA8NkogAEASJVhw4Y1v++++37TsmXLQfl4/vr6+hg/fnz88Y9/jNpaP0MHSILNmzfHiy++GJs3b47ddtstCgoK8m4HxcXFbY866qg9n3vuuaeXL1/ucdAAAPAZKIABAEiNI488snLcuHG/b9GixcB8PP97770XV111VcyZM8eHASCBFi1aFC+//HL069cvWrRokXfnLykp6XDcccftP2fOnGcWLVq0yScCAAC2jQIYAIBUOPLIIyvvvPPO35aXl++Wj+d/+umn48Ybb4wPP/zQhwEgwf7yl7/ECy+8ECUlJdGrV6+8O3+zZs3aHHXUUfspgQEAYNspgAEASLxjjz227W233faH5s2b98m3s1dVVcXNN98cTz31VDQ2NvowAKRAY2NjzJ8/P5YtWxYDBgyIZs2a5dX5mzVr1uaYY4458M0333xm4cKFNT4RAACwdRTAAAAk2qGHHtritttuuzofy9+33347rrnmmli8eLEPAkAKvf/++/HKK69Enz59orKyMq/Ons1mK4888sh9Zs6c+dTSpUs3+zQAAMCnpwAGACCxjjjiiJb33nvvteXl5f3y6dy5XC4mTZoUN998c1RVVfkgAKRYVVVVTJ06NbLZbPTp0ycymUzenL24uLjtV7/61c+/8sorTy1evLjWpwEAAD4dBTAAAIl06KGHtrj33nt/l2/lb3V1ddx0000xefLkyOVyPggAeSCXy8WCBQvi3Xffjd133z2y2fz5mUyzZs1aH3300fvNmDHjSXcCAwDAp6MABgAgcYYOHVo2fvz4qysqKgbk07mXLVsWV111lUc+A+SplStXxiuvvBKf+9znoqKiIm/O3axZszZHH3300GeeeebJFStW1PkkAADAlimAAQBIlCFDhpQ++uij17Rs2XL3fDr31KlT49prr42NGzf6EADksaqqqpg+fXq0bds2unTpkjfnLikpaT9q1KihTz755JMrV66s90kAAICPt6UCuMB6AABoSjp16pSdMGHCv1dWVu6RL2dubGyMcePGxR133BF1dW56AiCitrY2br755hg/fnw0NjbmzbkrKyv3mDBhwr9369bNXQkAALCNFMAAADQZrVq1Kpw+ffolbdq02T9fzlxdXR2/+93vYtKkSd73C8DfyeVy8fjjj8fvf//7qK6uzptzt2nTZv8pU6Zc0qpVq0KfAgAA2HoKYAAAmoSKioqC2bNnX9KuXbuD8uXMS5cujYsuuijmz5/vAwDAx3r11VfjoosuiqVLl+bNmdu1a3fQ7Nmz/72iosLPrgAAYCu5iAYAoEmYOXPmz9q1a3dIvpz35ZdfjiuuuCLWrVsnfAA+0bp16+KKK66Il19+OW/O3K5du4Nnzpz5M+kDAMDWUQADALDLvfjii2N69OgxKh/Omsvl4oEHHogbbrghamtrhQ/Ap1ZbWxs33HBDPPDAA3nz2oAePXqMevHFF8dIHwAAPj0FMAAAu9SkSZO+NnDgwFPy4ax1dXVx8803x8SJE73vF4BtksvlYuLEiXHLLbdEXV1dXpx54MCBJ0+aNOlr0gcAgE9HAQwAwC7z6KOPHnXggQeekw9nXbduXfz617+OWbNmCR6Az2zmzJnx61//Ol9eJZA58MADz3n00UePkjwAAHyywsqB0fWjvtBYFVGzImtDAADsEDfeeOO+Rx999EWZTKYw7Wddvnx5XHXVVbFy5UrBA7DdbNiwIWbPnh0DBw6MioqKtB8307179/179uz56sMPP7xc+gAA5LuyzvVRUP7RX1MAAwCw011xxRV7fPe7372qoKCgWdrPOmfOnPjtb38bGzduFDwA2111dXVMmzYtOnfuHB07dkz1WTOZTOHuu+9+eJs2bV6aNGnSKukDAJDPFMAAADQZZ5xxRvef/exnvy0sLCxP+1knTJgQd999d9TX1wsegB2moaEhXnrppchms9G3b99UnzWTyRTttddeB/3lL395dubMmRukDwBAvlIAAwDQJBx00EEVf/jDH64pLi7ulOZz5nK5eOCBB+Kxxx4TOgA77c+eBQsWRF1dXfTv3z8ymUxqz1pQUFBywAEHDJs+ffqkpUuXbpY+AAD5aEsFcIH1AACwMwwaNKj0vvvuu7qsrKxXms9ZV1cX1113XUyaNEnoAOx0EydOjOuvvz7q6upSfc6ysrJef/rTn67u379/idQBAODvKYABANjhKioqCh577LGLKyoqBqb5nNXV1XHNNdfE7NmzhQ7ALvPKK6/ElVdeGVVVVak+Z4sWLQZOnDhxbEVFhZ9vAQDA33CBDADADjdz5syftW3b9sA0n3HdunVx2WWXxRtvvCFwAHa5xYsXx2WXXRZr165N9TnbtWt34MyZM38mcQAA+P8UwAAA7FBPPvnkqB49eoxK8xlXrVoVV1xxRSxfvlzgADQZK1asiCuuuCJWrlyZ6nP26NFj1KRJk0ZJHAAA/lth5cDo+lFfaKyKqFmRtSEAALbZjTfeuO+XvvSlCzOZTGp/8fDdd9+NK6+8MtatWydwAJqc6urqmDVrVvTv3z8qKytTe85u3boN79mz57yHH37Yb2MBAJAXyjrXR0H5R39NAQwAwA5x3nnn9T311FOvLigoKE7rGV977bW45pprorq6WuAANFmbN2+OGTNmRI8ePaJ9+/apPGMmkykYNGjQIYWFhVOee+45v5UFAEDqKYABANipjjrqqFb/8R//8YdmzZq1SusZX3755bj++uujrq5O4AA0eQ0NDfHSSy9Fp06dolOnTqk8Y0FBQXbYsGGfnz9//qQ33nhjk9QBAEizLRXA3gEMAMB21a1bt+wNN9zwnyUlJR3TesYpU6bEjTfeGPX19QIHIDHq6+vjxhtvjKlTp6b2jCUlJZ1uuOGG/+jWrZu7GgAAyFsKYAAAtqunn376XyorK/dI6/kmTZoUd955ZzQ2NgobgMRpbGyMO+64I5588snUnrGysnLw008//UtpAwCQrxTAAABsN88///w3unTp8k9pPd/EiRNj3LhxkcvlhA1AYuVyubj//vtTXQJ36dLlS88+++yJ0gYAIB95BzAAANvFTTfdNPzII488L5PJZNJ4vsceeyzGjx8vaABS47XXXotmzZpF3759U3m+zp0779urV695Dz/88DJpAwCQNlt6B7ACGACAz+wXv/hF7x/+8IdXFxQUNEvj+R544IF45JFHBA1A6ixYsCDq6upiwIABqTtbJpPJDBo06ODGxsbnpk6dul7aAACkiQIYAIAd5oADDqj43e9+99tmzZq1TeP5xo0bF5MmTRI0AKm1aNGi2Lx5cwwcODB1ZysoKMjut99+w5577rnH33vvvc3SBgAgLbZUAHsHMAAA2yybzWbuvPPOfyktLe2exvNNmDBB+QtAXpg0aVI89NBDqTxbaWlpj3vuuedfstlsRtIAAOQDBTAAANvs+eef/06HDh0OTePZHn744Xj44YeFDEDeeOSRR+LPf/5zKs/WoUOHw5599tlvSxkAgHygAAYAYJvcd999hw8ePPjUNJ7t/vvvjwkTJggZgLzz2GOPxX333ZfKs+25554/+NOf/nSYlAEASDvvAAYAYKudccYZ3ceMGXN5QUFBcdrONnHixHjkkUeEDEDeWrx4cWSz2ejbt2/ajpbp06fPvn/5y18mz5w5c4OkAQBIsi29A1gBDADAVhk2bFjzG2+88Q/NmjVrl7azPfroo6l99CUAbI2FCxdGUVFR9OvXL1XnKigoKD7wwAP3e/LJJx9dsWJFnaQBAEiqLRXAHgENAMBWuffee39ZWlraPW3nevzxx+PBBx8UMAD8jz//+c8xceLE1J2rtLS0x3333fdLCQMAkFYKYAAAPrVJkyaN6tSp0xEpPFeMHz9ewADwD8aPHx+TJ09O3bk6der0hUmTJn1VwgAApJFHQAMA8Kmcd955fU888cR/z2QyRWk618yZM+Puu+8WMAB8jNdeey06duwYnTt3TtW5unbtuk9BQcHzzz333DopAwCQNN4BDADAZ3LEEUe0vOKKK67NZrOVaTrXyy+/HDfffHPkcjkhA8DHyOVyMXv27OjSpUt06tQpNefKZDJF++yzz/CpU6c+9u67726WNAAASeIdwAAAbLNsNpu55ZZb/q2kpKRjms61YMGCuPnmm6OxsVHIAPAJGhsb4+abb44333wzVecqLS3tcvfdd5+fzWYzUgYAIC0UwAAAbNGkSZO+3rZt2wPTdKZly5bFDTfcEPX19QIGgE+prq4urr322li+fHmqztWuXbsDH3/88VESBgAgLTwCGgCAj3XZZZcN+upXvzo2k8mk5hcH33///bjyyiujqqpKwACwlerq6uLll1+OIUOGRHl5eWrO1aVLl31LS0unPvPMM2ukDABAEngENAAAW61///4lJ5988q8ymUxRWs60YcOG+P3vfx8bN24UMABso40bN8bvfve7VP15WlBQkP3hD394ft++fYslDABA4q9vrQAAgI/y4IMPnl1WVtYrLeeprq6O3/zmN7Fq1SrhAsBntGrVqrjyyiujuro6NWcqKyvr8/DDD58lXQAAkk4BDADA/zF+/Pgju3XrdnRazlNfX5/KdxYCwK60fPnyuO6666K+vj41Z+rRo8dXx40bd4R0AQBIMgUwAAB/53vf+16nI4444py0nCeXy8Vtt90Wb7zxhnABYDt7/fXX47bbbotcLpeaMx155JHnfvvb3+4oXQAAkkoBDADA/6qoqCi4+OKLLywsLCxPy5nGjx8fs2bNEi4A7CCzZs2Khx56KDXnKSwsrPj1r399QUVFhZ+bAQCQSC5kAQD4XxMnThxdWVk5OC3nef7552PixImCBYAd7LHHHosXXnghNeeprKzc89FHHz1RsgAAJFFh5cDo+lFfaKyKqFmRtSEAgDxxwQUX7DZq1KgLM5lMYRrO8+qrr8Ytt9ySqkdSAkBT/7O3d+/e0a5du1Scp2PHjkNzudxzU6ZMWSddAACamrLO9VHwMc/wcwcwAADRt2/f4h//+McXZzKZVPwG4HvvvRc33HBDNDY2ChcAdpKGhoa47rrrYtmyZak4T0FBQfbss88e27dv32LpAgCQqGtZKwAAYPz48T8qKyvrkYazbNiwIX7/+99HbW2tYAFgJ9u0aVP8/ve/j40bN6biPGVlZb3GjRs3RrIAACSJAhgAIM/ddNNNw/v06XN8Gs5SX18f1157baxdu1awALCLrFmzJq699tqor69PxXn69ev3jd///vdDJQsAQFIogAEA8thBBx1Uceyxx/5rRGTScJ477rgjFi9eLFgA2MUWLVoUd955Z1qOU/CNb3zj34YNG9ZcsgAAJOIC1goAAPLXzTfffFZxcXG7NJxl4sSJMX36dKECQBMxbdq0mDRpUirOUlJS0unOO+88Q6oAACSBAhgAIE/913/914FdunT5UhrO8tprr8Wf//xnoQJAEzN+/PhYsGBBKs7SrVu3o2+66abhUgUAoKlTAAMA5KEvfelLlV/5yld+lYazrFixIq6//vpobGwULAA0MY2NjXHdddfFihUr0nCczHHHHfergw46qEKyAAA0ZQpgAIA8dPXVV5+ezWYrk36OmpqauPbaa2PTpk1CBYAmatOmTXHttddGTU1N4s+SzWbb3njjjT+RKgAATZkCGAAgz9x6663Du3Tp8uWknyOXy8Utt9wSK1euFCoANHErV66MW2+9NXK5XOLP4lHQAAA0dQpgAIA8MnTo0LKvfvWrv0jDWSZMmBBz584VKgAkxJw5c+Kxxx5LxVlGjRr1i6FDh5ZJFQCApkgBDACQR+64444fFRcXd0z6OV5++eV45JFHBAoACfPQQw+l4he4SkpKOt5xxx0/lCgAAE2RAhgAIE9cfvnlu/fs2XNU0s/xwQcfxB133JGKR0gCQL7J5XJx2223xZo1axJ/lp49ex57+eWX7y5VAACaGgUwAEAe6NatW/a73/3uv2YymURf/9XX18cNN9wQ1dXVQgWAhKqqqoobb7wx6uvrE32OTCZT8N3vfvdX3bp1y0oVAICmRAEMAJAHxo8ff0pZWVmvpJ/jnnvuiaVLlwoUABJuyZIlcd999yX+HGVlZT3Hjx9/ikQBAGhKFMAAACn385//vOeAAQNGJ/0c06dPjylTpggUAFJi8uTJMWPGjMSfY8CAAaN//vOf95QoAABNhQIYACDFstls5qyzzjo3k8kk+tGEK1asiLvvvlugAJAyd911V6xYsSLRZ8hkMtmzzjrr3Gw2m5EoAABNgQIYACDFxo0b98XKysq9knyG2trauOGGG6K2tlagAJAyf/1zfvPmzYk+R2Vl5V7jxo0bKVEAAJoCBTAAQEoNHz68/OCDDz4t6ee4//77Y/ny5QIFgJRavnx5jBs3LvHnGDFixI+HDRvWXKIAAOxqCmAAgJS69dZbT8tms22TfIYZM2bEc889J0wASLnJkyfHzJkzE32G4uLitrfffvtp0gQAYFdTAAMApNBVV121R48ePb6S5DOsXLky7rrrLmECQJ64++6744MPPkj0GXr27PnVK664Yg9pAgCwKymAAQBSprS0tOAb3/jGT5N8rdfY2Bi333679/4CQB6pqamJ2267LRobG5N8jIJvfvObZ5aWlvqZGwAAu+6i1AoAANJlwoQJX6uoqBiQ5DOMHz8+Fi1aJEwAyDNvvvlmPPjgg4k+Q4sWLQY9+OCDx0gTAIBdRQEMAJAiRx55ZOWwYcN+kOQzzJ07N5544glhAkCemjhxYixYsCDRZxg+fPiPjjjiiJbSBABgV1AAAwCkyBVXXHFyUVFRRVLnr6qqijvvvDNyuZwwASBP5XK5uP3226O6ujqxZygqKmrxm9/85mRpAgCwKyiAAQBS4vzzz+/Xu3fv45J8httvvz0+/PBDYQJAnlu3bl3cfvvtiT5D7969jz///PP7SRMAgJ1NAQwAkALZbDZz6qmn/jyTyST2+m769OkxZ84cYQIAERExe/bsmDFjRmLnz2QyBaeeeurPs9lsRpoAAOxMCmAAgBT44x//eERlZeXgpM6/du3auPfeewUJAPyde+65J9atW5fY+SsrKwf/6U9/+oIkAQDYmRTAAAAJ17dv3+JDDjnkR0k+w9133x01NTXCBAD+Tk1NTdx9992JPsPBBx/8o759+xZLEwCAnUUBDACQcHfdddc3S0pKOiV1/smTJ8e8efMECQB8pLlz58azzz6b2PlLSko63nPPPd+SJAAAO4sCGAAgwb70pS9VDhw48KSkzr9mzZoYP368IAGALXrggQdizZo1iZ2/f//+Jx111FGtJAkAwM6gAAYASLArrrji1MLCwvIkzp7L5eK2226LTZs2CRIA2KJNmzbFbbfdFrlcLpHzFxYWll1++eU/kCQAADuDAhgAIKF+8Ytf9O7evftXkjr/s88+G2+88YYgAYBP5Y033ojnn38+sfN369bt6F/96ld9JAkAwI6mAAYASKgf/vCHP8pkMom8nvvggw/igQceECIAsFXGjRsX69atS+TsmUym4NRTT/2xFAEA2NEUwAAACXTdddcNa9eu3YFJnD2Xy8Udd9wRtbW1ggQAtsqmTZvizjvvTOz8bdq02f+mm27aT5IAAOxICmAAgIQpLS0t+NrXvnZ6Uud/4YUXYuHChYIEALbJq6++GjNmzEjs/Mccc8zpFRUVfiYHAMAO42ITACBhbr/99oMrKip2S+LsGzZsiHHjxgkRAPhM7r///qiqqkrk7OXl5X3/67/+6wgpAgCwoyiAAQASpKKiouCwww47Nanz33vvvYn9YS0A0HRs2LAh7r///sTOf9BBB/1zq1atCiUJAMCOoAAGAEiQ+++//+iysrKeSZx9zpw58dJLLwkRANguXnjhhViwYEEiZy8tLe32xz/+8StSBABgR1AAAwAkRN++fYv33Xfff07i7LW1tXHvvfcKEQDYru6+++6oq6tL5Oz77bffKf379y+RIgAA25sCGAAgIW6++eZRxcXFbZM4+yOPPBJr164VIgCwXa1atSoee+yxRM6ezWbb3njjjV+TIgAA25sCGAAgAYYOHVq21157fSeJs7/33nvxxBNPCBEA2CEmTpwYK1asSOTsQ4YM+c7QoUPLpAgAwPakAAYASIBrr732xKKiosqkzZ3L5eKee+6JxsZGIQIAO0R9fX3cddddkcvlEjd7UVFR5bXXXnuCFAEA2J4UwAAATdwBBxxQMWDAgG8kcfYZM2bEW2+9JUQAYId6880348UXX0zk7AMGDPjG8OHDy6UIAMD2ogAGAGjirrrqqhOKiooqkjb3pk2b4oEHHhAgALBT3H///VFbW5u4uYuKilpcffXV7gIGAGC7UQADADRhBx10UEX//v0Teffvww8/HB9++KEQAYCdYv369TFhwoREzj5w4MBvHHDAARVSBABge1AAAwA0Yf/5n/95bGFhYfOkzb1q1aqYPHmyAAGAnerpp5+O1atXJ27uwsLC8ssuu2yUBAEA2B4UwAAATdQBBxxQMWjQoNFJnP3uu++O+vp6IQIAO1V9fX3cddddiZx99913/+bQoUPLpAgAwGelAAYAaKIuv/zyYwsLC8uTNvfcuXNjwYIFAgQAdokFCxbE3LlzEzd3UVFRi9/97ndflyAAAJ+VAhgAoAkaOnRo2aBBgxL37t+6urr405/+JEAAYJf605/+FHV1dYmbe/fdd//mkCFDSiUIAMBnoQAGAGiCfvOb33ylqKioZdLmfu655xL53j0AIF1Wr14dzz33XOLmLioqann11VcfLUEAAD4LBTAAQBPTq1evZoMHD/5m0uaurq6ORx55RIAAQJPwyCOPRHV1deLmHjJkyLe6deuWlSAAANtKAQwA0MTcdNNNxxQXF7dN2twTJkyIqqoqAQIATUJVVVUifzmtuLi43a233uouYAAAtpkCGACgCWnVqlXhXnvtdVLS5l61alU8++yzAgQAmpTJkyfHqlWrEjf30KFDR7dq1apQggAAbAsFMABAE3LLLbccXlJS0jlpcz/44INRX18vQACgSamvr48HH3wwcXOXlJR0vummmw6VIAAA20IBDADQRGSz2cwBBxzw7aTNvWjRonjppZcECAA0SS+99FIsXrw4cXOPGDHiO9lsNiNBAAC2lgIYAKCJuOaaa/YuLy/vm7S5H3roocjlcgIEAJqkXC6XyLuAy8vL+1111VV7SRAAgK2lAAYAaCK+8pWvfDdpM8+bNy8WLlwoPACgSVu4cGG8+uqrrg8BAMgLCmAAgCbgsssuG1RZWblPkmbO5XIxfvx44QEAifDAAw8k7qklrVu33veSSy7pLz0AALaGAhgAoAkYNWrUCUmbefbs2bFs2TLhAQCJsGzZsnjllVcSN/cJJ5xwovQAANgaCmAAgF3sn//5nzt37NjxiCTN3NjYGA888IDwAIBEGT9+fDQ0NCRq5k6dOn1h9OjRHaQHAMCnpQAGANjFfvSjH30tk8kk6rps2rRpsWrVKuEBAImyatWqeOGFFxI1cyaTKfzpT386SnoAAHxaCmAAgF1o0KBBpX369Plqkmaur6+PCRMmCA8ASKQJEyZEXV1dombu27fvV/r27VssPQAAPg0FMADALnTZZZcdXlRUVJGkmadOnRpr164VHgCQSOvXr48pU6YkauaioqLK3/zmN0dIDwCAT0MBDACwi2Sz2cy+++57UpJmrqurc/cvAJB4jz76aOLuAt5///1PymazGekBAPBJFMAAALvI1VdfPbSsrKx3kmaeMmVKbNiwQXgAQKJt2LAhnn/++UTNXFZW1ueqq67aS3oAAHwSBTAAwC7y5S9/+bgkzVtfXx8TJ04UHACQCo8//nji7gL+0pe+dLzkAAD4JApgAIBdYPTo0R3atm07IkkzT5s2LdatWyc8ACAVPvzww5g+fXqiZm7fvv2I0aNHd5AeAABbogAGANgFfvrTn47KZDKFSZm3vr4+HnnkEcEBAKnyyCOPRH19fWLmzWQyhT/96U+/JjkAALZEAQwAsJN16tQp26dPn6OTNLO7fwGANFq3bl1MmzYtUTP36dPnmE6dOmWlBwDAx1EAAwDsZFddddUB2Wy2dVLmbWxsjEmTJgmOVOvYsWN06OCJmgD5aNKkSdHY2JiYebPZbOurrrrqAMkBAPBxFMAAADvZiBEjvp6keV988cVYtWqV4Ei1Ll26xIUXXhinnXZadO3a1UIA8siqVavipZdecj0JAEBqKIABAHaiM844o3tlZeXeSZk3l8vFxIkTBUdeyGQyMXjw4PjVr34VY8aMcUcwQB55/PHHI5fLJWbeysrKvc8444zukgMA4KMogAEAdqJTTjnlqxGRScq8CxYsiPfee09w5JVMJhN77713XHjhhTFmzJho3769pQCk3HvvvRcLFy5M1B9X/3NdCQAA/4cCGABgJ+nVq1ezXr16fTlJM3v3L/nsr0XwBRdcECeffHK0bdvWUgBSLGnXPb169fpyr169mkkOAIB/pAAGANhJrrjiioOLiopaJmXeBN4JAztEYWFhDB8+PC688MIYPXp0VFZWWgpACi1YsCCWLVuWmHmLiopaXnnllYdIDgCAf6QABgDYSYYPH/6VJM2btHfhwY5WVFQUI0aMiEsuuSRGjx4dLVu2tBSAFMnlcvH4448naub99tvvK5IDAOAfKYABAHaC0aNHd6isrByalHnXrl0bL7/8suDgI/y1CL744ovjhBNOiBYtWlgKQEq89NJLsW7dusTMW1lZudfo0aM7SA4AgL+lAAYA2AlOP/30o5J07fXMM89EQ0OD4GALiouL47DDDouxY8fGqFGjoqyszFIAEq6hoSGeeeaZJI1c8D/XmQAA8P8vEq0AAGDHymazmX79+n05KfPW1tbGlClTBAefUnFxcYwcOTIuvfTSGDVqVJSWlloKQII9//zzUVtbm5h5+/Xr9+VsNpuRHAAAf6UABgDYwX7zm9/sWVJS0jkp886YMSOqq6sFB1uppKQkRo4cGZdcckkcffTRUVJSYikACVRdXR0zZ85M0p8/na+44orBkgMA4K8UwAAAO9gXvvCFLyVl1lwuF08//bTQ4DNo3rx5HHXUUXHJJZfEyJEjI5vNWgpAwjz11FORy+USM++RRx75ZakBAPBXCmAAgB1oyJAhpZ07dz4iKfO+/vrrsWLFCsHBdlBeXh6jRo2KSy+9VBEMkDArVqyI119/PTHzdunS5fD+/ft79AQAABGhAAYA2KHGjh17aGFhYWJeCOruX9j+KioqYtSoUXHxxRfH4YcfHkVFRZYC4LpouyosLGz+H//xHwdLDQCACAUwAMAOteeeex6ZlFnXrl0b8+bNExrsIK1atYrjjz8+LrroohgxYkQUFPh2DKApmzdvXqxZsyYx8+61115HSg0AgAgFMADADnPMMce0bt269b5Jmfe5556LxsZGwcEO1qZNmxg9enRcfPHFimCAJqyxsTGee+65JP35MvyYY45pLTkAAPykAQBgBznzzDMPz2Qyibjeqq+vj6lTpwoNdqK2bdvG6NGj47zzzovhw4crggGaoBdeeCHq6+sTMWsmkyk844wzDpUaAAB+wgAAsIP079//C0mZdc6cObFhwwahwS7QqVOnOPnkk+Pf/u3fYu+9945MJmMpAE3Ehg0bYvbs2YmZd8CAAR4DDQCAAhgAYEf43ve+16mysnKPpMybpMcbQlp17tw5xowZE7/61a8UwQBNyPPPP5+YWSsrKwd/73vf6yQ1AID8pgAGANgBTj755CMiIhHtzcqVK+P1118XGjQRXbt2jTFjxsQ555wTgwcPthCAXez111+PlStXJmXczMknn3y41AAA8psCGABgB+jXr19iHv88ZcqUyOVyQoMmpnfv3nHaaafFOeecE/3797cQgF0kl8vFlClTknQd6jHQAAB5TgEMALCdnX766d0qKip2S8Ks9fX1MW3aNKFBE9anT58466yz4pxzzonddtvNQgB2gWnTpkV9fX0iZq2oqNjt9NNP7yY1AID8pQAGANjORo8efURSZp03b15s3LhRaJAAffr0ibPPPjvOPPPM6Nmzp4UA7EQbN26MefPmuR4FACARFMAAANtZr169EvPetSQ9zhD4bwMGDIhf/vKXceaZZ0b37t0tBGAnmTp1apKuRw+TGABA/lIAAwBsR2eccUb38vLyvkmYdf369fHaa68JDRJqwIAB8S//8i9x2mmnRbdunvQJsKPNnz8/Pvzww0TMWl5e3u9HP/pRF6kBAOQnBTAAwHZ03HHHHZSUWWfMmBGNjY1CgwTLZDIxePDg+Nd//dcYM2ZMdOjQwVIAdpDGxsaYMWNGYub9xje+cYjUAADykwIYAGA76tOnz8FJmDOXyyXqMYbAlmUymdh7773jwgsvjDFjxkT79u0tBWAHeOGFF5J0XXqIxAAA8pMCGABgOznppJPat2zZcvckzLpkyZJYuXKl0CBl/loEX3DBBXHyySdH27ZtLQVgO1qxYkW8/fbbiZi1srJy0PHHH+8PAgCAPKQABgDYTr773e8eGBGZJMyapMcXAluvsLAwhg8fHhdeeGGMHj06KisrLQVgO5k+fXpSRi34/ve/f6DEAADyjwIYAGA72X333Q9Nwpz19fUxc+ZMgUEeKCoqihEjRsQll1wSo0ePjpYtW1oKwGc0c+bMqK+vT8SsAwcOPFRiAAD5RwEMALAdHHTQQRUtW7bcKwmzLly4MKqrq4UGeeSvRfDFF18cJ5xwQrRo0cJSALZRVVVVvP7664mYtVWrVkOHDx9eLjUAgPyiAAYA2A7OPvvsz2cymaIkzOrxz5C/iouL47DDDouxY8fGqFGjoqyszFIAtkFSnqaSyWSy55577uclBgCQXxTAAADbwe67735AEuasra2NOXPmCAzyXHFxcYwcOTIuvfRSRTDANpg9e3bU1dUlYtY99tjjAIkBAOQXBTAAwGfUqlWrwnbt2u2fhFnnzZsXtbW1QgMiIqKkpCRGjhwZY8eOjaOPPjpKSkosBeBT2LRpU8ybNy8Rs7Zv337/iooKPwMEAMgjLv4AAD6jCy+8cPeioqKKJMz64osvCgz4P5o3bx5HHXVUXHLJJTFy5MjIZrOWAvAJZs2alYg5i4qKWlx88cWDJAYAkD8UwAAAn9GBBx6YiMfqVVdXJ+ZOFWDXKC8vj1GjRsWll16qCAb4BPPmzYuamppEzHrQQQd5DDQAQB5RAAMAfEZdu3YdnoQ5582bF/X19QIDPlFFRUWMGjUqLr744jj88MOjqKjIUgD+QV1dXbz66quJmLVLly77SwwAIH8ogAEAPoNTTjmlY3l5+W5JmPXll18WGLBVWrVqFccff3xcdNFFMWLEiCgo8C0kwN966aWXEjFnRUXFbieddFJ7iQEA5AffvQMAfAYnnnji55MwZ21tbcyfP19gwDZp06ZNjB49OsaOHasIBvgb8+fPj9ra2iSMmvnud7/7eYkBAOQH37UDAHwGn/vc5/ZLwpwLFy6Muro6gQGfyV+L4PPOOy+GDx+uCAby3ubNm2PhwoWJmLVfv37DJQYAkB98tw4AsI1atWpV2Lp1672TMKvHPwPbU6dOneLkk0+Oc889NwYNGmQhQF6bPXt2IuZs06bN3hUVFX4WCACQB1z0AQBso/PPP39gYWFheVOfs76+PubMmSMwYLvr2bNn/OQnP4nzzjsv9t5778hkMpYC5J3Zs2dHfX19k5+zqKio4vzzzx8oMQCA9FMAAwBso/3333/fJMz5+uuvR01NjcCAHaZLly4xZsyYOOecc2Lw4MEWAuSV6urqeOONNxIx64EHHriPxAAA0k8BDACwjbp27ZqIxz/PnTtXWMBO0bt37zjttNPinHPOif79+1sIkDeScr3VvXv3vaUFAJB+CmAAgG0wZMiQ0srKyj2a+py5XM7jn4Gdrk+fPnHWWWfFOeecE7vttpuFAKk3e/bsyOVyTX7Oli1b7jlo0KBSiQEApJsCGABgG5x55pl7ZjKZbFOfc9myZbFu3TqBAbtEnz594uyzz44zzzwzevbsaSFAaq1bty6WL1/e5OfMZDLZs846a4jEAADSrcgKAAC23tChQ4clYc558+YJC9jlBgwYEAMGDIgFCxbE+PHjY+nSpZYCpM68efOiS5cuTX7OffbZZ5+ImC4xAID0cgcwAMA26Nix4z5JmHP+/PnCApqMAQMGxC9/+cs47bTTolu3bhYCpEpSrrs6deq0j7QAANJNAQwAsJWOOOKIlhUVFf2a+pxVVVWxaNEigQFNSiaTicGDB8e//uu/xpgxY6JDhw6WAqTCW2+9FVVVVU1+zoqKis8deuihLSQGAJBeCmAAgK108sknD46ITFOfc/78+dHY2CgwoEnKZDKx9957x4UXXhhjxoyJ9u3bWwqQaI2NjbFgwYJE/Cv4u9/97h4SAwBILwUwAMBW2n333fdMwpze/wskwV+L4AsuuCBOPvnkaNu2raUAiZWU66/BgwfvKS0AgPQqsgIAgK3Trl27wU19xlwul5Q7UAAiIqKwsDCGDx8e++yzT0ybNi0mTJgQ69evtxggURYsWBC5XC4ymab9sJgOHToMlhYAQHq5AxgAYCsMGjSotGXLlgOa+pzvvfdebNy4UWBA4hQVFcWIESPikksuidGjR0fLli0tBUiMDz/8MJYtW9bk52zZsuXA/v37l0gMACCdFMAAAFvhxz/+8aBMJtPkn6Li7l8g6f5aBI8dOzZOOOGEaNGihaUAibBw4cImP2Mmk8n+5Cc/GSAtAIB0UgADAGyFvffee88kzJmEHzwCfBrNmjWLww47LMaOHRujRo2KsrIySwGatKT8Il5SrmsBANh63gEMALAVunbtOqSpz1hfXx9vvvmmsIBUKS4ujpEjR8bBBx8czz77bDz++ONRXV1tMUCT8+abb0Z9fX0UFTXtH7t16dJlT2kBAKSTO4ABAD6lioqKgoqKikFNfc4lS5bE5s2bBQakUklJSYwcOTLGjh0bRx99dJSUeIUl0LTU1tbG0qVLm/ycLVu2HFRaWupngwAAKeQiDwDgUzr77LP7FhYWNvlnj7722mvCAlKvefPmcdRRR8Ull1wSI0eOjGbNmlkK4HpsKxQWFpafffbZvaQFAJA+CmAAgE9p//3375+EOV9//XVhAXmjvLw8Ro0aFf/+7/8eI0eOjGw2aymA67FP6fOf//xAaQEApI8CGADgU+rRo8fuTX3G2traePvtt4UF5J2KiooYNWpUXHzxxXH44Yc3+XdvAum2ePHiRLySo1evXoOkBQCQPgpgAIBPqXXr1k3+DoklS5ZEQ0ODsIC81apVqzj++OPj4osvjhEjRkRBgW97gZ2voaEhlixZ0uTnbNOmjQIYACCFfCcMAPApDBkypLR58+a9m/qcb775prAAIqJ169YxevToGDt2rCIYcF32MZo3b95n0KBBpdICAEgX3wEDAHwKp556av9MJtPkr53eeustYQH8jTZt2sTo0aPjvPPOi+HDhyuCAddlfyOTyRT84Ac/+Jy0AADSxXe+AACfwuDBg5v84/Hq6+tj0aJFwgL4CJ06dYqTTz45/u3f/i323nvvyGQylgLsUIsXL07Eqzn23HPPgdICAEgXBTAAwKfQpUuXAU19xnfeeSfq6uqEBbAFnTt3jjFjxiiCgR2utrY23n333SRc53oPMABAyiiAAQA+hZYtW/Zv6jN6/DPAp9elS5cYM2ZMnHvuuTF48GALAfL2+iwJ17kAAGwdBTAAwCcYPnx4eUlJSeemPqfHPwNsvV69esVpp50W55xzTvTvrwMB8u/6rLS0tPPw4cPLpQUAkB4KYACAT/Ctb31rt4ho8s8IXbx4sbAAtlGfPn3irLPOinPOOSd22203CwG2i4T8gl7m29/+dj9pAQCkhwIYAOAT7L777k2+CVi7dm1s2LBBWACfUZ8+feLss8+OM888M3r27GkhwGfy4Ycfxrp165r8nAMHDlQAAwCkSJEVAABsWadOnZr8D8TefvttQQFsRwMGDIgBAwbEggULYvz48bF06VJLAbb5Oq1Vq1audwEA2GkUwAAAn6CyslIBDJCnBgwYEP3794958+bFQw89FO+++66lAFtlyZIlsddeezX1613PvgcASBEFMADAFnTq1CnbvHnzXk19ziVLlggLYAfJZDIxePDg2GOPPeLll1+OBx98MFauXGkxQGqu05o3b967Xbt2RatXr66XGABA8nkHMADAFowZM6ZnJpPJNuUZGxsbPZoUYCfIZDKx9957x4UXXhhjxoyJ9u3bWwrwiZYuXRqNjY1NesaCgoLsqaee2kNaAADp4A5gAIAt2Hvvvfs29RlXrlwZtbW1wgLYSf5aBO+5554xa9asmDBhQqxevdpigI9UW1sb77//fnTu3LlJzzls2LC+EbFIYgAAyecOYACALejRo0eTL4DfeecdQQHsAoWFhTF8+PC48MILY/To0VFZWWkpQGKv15Jw3QsAwKejAAYA2ILWrVs3+ff/vvvuu4IC2IUKCwtjxIgRcckll8To0aOjZcuWlgIk7notCde9AAB8Oh4BDQCwBc2bN+/Z1GdUAAM0kW+wi4pixIgRsd9++8WUKVPiscceiw0bNlgMEO+9914SrnsVwAAAKeEOYACAj9G/f/+SkpKSjk19TgUwQNPSrFmzOOyww2Ls2LExatSoKCsrsxTIc0m4XistLe3Ut2/fYmkBACSfAhgA4GOccMIJ3Zr69dK6deuiqqpKWABNUHFxcYwcOTJ+/etfK4Ihz1VVVcX69eub+pgF3/zmN7tLCwAg+RTAAAAfY8iQIT2b+oxJeJwgQL77axE8duzYOProo6OkpMRSIA8l4botCde/AAB8MgUwAMDH6N69e8+mPqPHPwMkR/PmzeOoo46KSy65JEaOHBnNmjWzFMgjSbhuS8L1LwAAn0wBDADwMVq1atWjqc+4bNkyQQEkTHl5eYwaNSr+/d//PUaOHBnZbNZSIA8k4botCde/AAB8MgUwAMDHqKio6NXUZ1y+fLmgAJL750yMGjUqLr744jj88MOjqKjIUiDFknDd1rJly16SAgBIPgUwAMBHyGazmbKysq5NecbGxsZYtWqVsAASrlWrVnH88cfHxRdfHCNGjIiCAt+qQxqtWrUqGhsbm/SMJSUlXbPZbEZaAADJ5rtKAICPcNxxx7UrKCgobsozrl69Ourr64UFkBKtW7eO0aNHx9ixYxXBkEJ1dXXxwQcfNOkZCwoKio877rh20gIASDbfTQIAfITPf/7zXZr6jO+//76gAFKoTZs2MXr06Dj//PNj+PDhimBIkRUrVrgOBgBgh/NdJP+PvTuPr7I888d/nSwEkhD2HUQEUVRAoIiouCtq64Jabd1arVorbqO2tlXbaavTOu38Rqffdmpbu9rWpYogsqgFRXCttAIKArJDgAAJBLKQ5JzfH8WO4+DOcp6T9/v18jWvTv657ut6hNvnk/t+AICd2G+//bL+xVcSXiAC8PF17do1Lr300rj99ttj2LBhkUq5lRWSLgn7tyTsgwEAeH8FWgAA8H917txZAAxAVujevXtceeWVsXr16njiiSdi9uzZkclkNAYSKAn7tyTsgwEAeH8CYACAnWjXrp0roAHIKj169Igrr7wyli5dGpMmTYo5c+ZoCiRMEvZvSdgHAwDw/gTAAAA7UVxc3D3baxQAAzRPffr0ibFjx8aSJUti/PjxsWDBAk2BhEjC/i0J+2AAAN6fbwADAOxESUlJz2yur7q6Ourq6gwKoBnbb7/94l/+5V/ia1/7WhxwwAEaAglQV1cX1dXV9sEAAOxWAmAAgHc5/PDDSwsKCtpmc40VFRUGBUBERPTt2zduvPHGuOGGG2LffffVEMhy2b6PKygoaDt8+PASkwIASC4BMADAu5x44oldsr3GDRs2GBQA/8uAAQPiG9/4Rtxwww3Ru3dvDQH7uE+yH+5qUgAAyeUbwAAA79KvX7+sD4DXr19vUADs1IABA+LAAw+MuXPnxoQJE2LlypWaAlkkCTe5HHDAAV0i4i3TAgBIJgEwAMC7dO/evXO21+gEMADvJ5VKxaBBg2LgwIExe/bsGD9+fKxbt05jwD4uZ/bDAAC8NwEwAMC7tG/fvlO21ygABuDDSKVSMWzYsBg6dGjMnj07HnvsMbdIwF6WhBPASdgPAwDw3gTAAADv0rp166w/8ZCEF4cAZI+3g+BDDz00XnnllZg4caK/S8A+LtH7YQAA3psAGADgXUpKSrL6xENjY2Ns3rzZoAD4yPLz8+Pwww+P4cOHx/PPPx8TJ06MqqoqjYE9aPPmzdHY2BgFBdn7Wi7b98MAALw/ATAAwLu0bNmySzbXV1lZGZlMxqAA+Njy8/Nj1KhRMXLkyHjhhRcEwbAHZTKZqKqqio4dO9oPAwCwWwiAAQDepaioKKuvvKusrDQkAHaJgoKCGDVqVIwYMSJmzpwZkydPji1btmgM7IH9XDYHwNm+HwYA4P3laQEAwP8YPnx4SX5+fkk21ygABmBXa9GiRRx//PFxxx13xNlnnx0lJSWaAs14P5efn18yfPhwfxAAACSUABgA4B2OOOKIDtleo+//ArC7FBUVxejRo+P73/9+nH322VFcXKwpsBsk4cr1JOyLAQDYOQEwAMA79O3bt1221+gEMAC729tB8B133BGnn356tGrVSlOgme3n9ttvv7YmBQCQTAJgAIB36NSpkwAYAHYoKSmJz3zmM3HnnXfG6NGjo0WLFpoCzWQ/l4R9MQAAOycABgB4hw4dOrTN9hqTcGUgALmlpKQkzj777PjOd74To0aNivz8fE2BHN/PJWFfDADAzgmAAQDeoaysrG221ygABmBvad++fVx00UVx5513xgknnBCFhYWaAjm6nysrK3MCGAAgoQTAAADvUFJS0j6b68tkMlFdXW1QAOxV7dq1i/POOy+++93vxqhRoyIvz+sF+CiSsJ8rLS0VAAMAJJT/QgMAeIfi4uK22VxfXV1dNDY2GhQAWeHtE8F33HGHIBg+gsbGxqirq7MvBgBgt/BfZgAA79CqVausPung9C8A2ahDhw5x0UUXxbe//e04/PDDBcGQA/u6oqIiJ4ABABLKf5EBALxDQUGBABgAPqauXbvGpZdeGt/61rdi2LBhkUqlNAUSuq9r0aJFW1MCAEimAi0AAPgfhYWFZdlc39atWw0JgKzXrVu3uPLKK2P16tXxxBNPxOzZsyOTyWgMJGhfl+37YgAA3psAGADgnZujgoLW2VyfE8AAJEmPHj3iyiuvjKVLl8akSZNizpw5mgIJ2ddl+74YAID35gpoAIAdWrdunZefn98ym2sUAAOQRH369ImxY8fGLbfcEgMGDNAQSMC+Lj8/v1WrVq28OwQASCCbOACAHQYNGlQSEVn9scJt27YZFACJtd9++8UNN9wQX/va1+KAAw7QEJq1BOzr8gYPHlxsUgAAySMABgDY4YADDijJ9hpramoMCoDE69u3b9x4441xww03xL777qshNEu1tbVZX2P//v1LTQoAIHl8AxgAYIeePXtm/QuuJLwoBIAPa8CAATFgwICYP39+jBs3LpYvX64pNBtJ2Nf16NGjxKQAAJJHAAwAsEOnTp0EwACwFwwYMCAOPPDAmDt3bkyYMCFWrlypKeS8JOzrunbtKgAGAEggATAAwA5lZWVZ/4Krrq7OoADISalUKgYNGhQDBw6M2bNnx4QJE2Lt2rUaQ85KQgDcpk0bV0ADACSQABgAYIeysjIngAFgL0ulUjFs2LAYOnRozJ49O8aPHx/r1q3TGHKOABgAgN1FAAwAsENJSUlxttfoBDAAzcXbQfCQIUPi5ZdfjokTJ0ZFRYXGkDOSEAAnYX8MAMD/JQAGANihqKioKNtrrKmpMSgAmpW8vLw4/PDDY/jw4fH888/HE088EZWVlRpD4iUhAG7RokWRSQEAJI8AGABgh8LCwhbZXF86nY7t27cbFADNUn5+fowaNSpGjhwZL7zwQkycODGqqqo0hsTavn17ZDKZSKVSWVtjixYtWpgUAEDyCIABAHbI9gC4oaHBkABo9goKCmLUqFExYsSImDlzZkyePDm2bNmiMSROJpOJhoaGyOaMtbCw0AlgAIAk/neTFgAA7NgYFRRk9QuuxsZGQwKAHVq0aBHHH398HHnkkfHMM8/E1KlTY9u2bRpDomR7AJzt+2MAAN5jH6cFAAA7NkZZ/oLL9c8A8H8VFRXF6NGj49hjj41nnnkmpkyZEjU1NRpDImT7DS8FBQWugAYASCABMADA2xujLH/B5QpoAHhvbwfBRx11VEyfPj2efvrpqK2t1RiymgAYAIDdIU8LAAD+QQAMAMlXUlISn/nMZ+LOO++M0aNHZ/X1uiAABgBgdxAAAwDskO1XQAuAAeDDKykpibPPPjv+7d/+LUaPHh2FhYWagv3dR5Sfn9/SlAAAkkcADADw9sYoL88JYADIMa1bt46zzz47vve978UJJ5wgCMb+7iPIz8/3LwwAQAIJgAEAdkilUlm9N2psbDQkAPiY2rVrF+edd15897vfjRNOOCEKCgo0Bfu7D94f55sSAEDyCIABAHbI9gA4nU4bEgB8Qu3bt/9nEDxq1KjIy/NqBPu799kfp0wJACB5/FcOAMAOXnABQPPRoUOHuOiii+J73/ueIJi9JpPJZHuJ/sUAAEggmzgAgP+R1QFwAl4QAkDidOzYMS666KL41re+FYcffnj4fTDs796xOc7yG3IAANg5mzgAgITsjQTAALD7dOvWLS699NL41re+FcOGDRMEs0dk+xXQeXl5/kUAAEigAi0AAPiHbH/BJQAGgN2ve/fuceWVV8ayZcviiSeeiDlz5mgKzXl/5/AIAEACCYABAHbIZDJOAAMAERGx7777xtixY2PJkiUxYcKEmD9/vqZgfwwAQCIIgAEA/ocr7gCA/2W//faLG264Id56660YP358vPnmm5rCLpPtV0Cn3IUOAJBIAmAAgB2y/QVXtr8gBIBc1rdv37jxxhvjrbfeinHjxsWiRYs0hU/MFdAAANjEAQDsXln9Bs4BDADY+/r27Rs333xz3HDDDdG7d28NIdf3d75BAgCQQE4AAwDskO0nMATAAJA9BgwYEAMGDIj58+fHI488EitXrtQUcnF/5woaAIAEcgIYAGCHVCqVzvL6DAkAssyAAQPi1ltvjbFjx0bPnj01hJza32UScEc1AAD/lxPAAAD/QwAMAHysv6MHDRoUBx98cDz//PMxadKk2LRpk8aQ+P1dtv+CJAAAO+cEMADADul0dr/fEgADQHarr6+PioqK2LZtm2aQE/u7dDrtBDAAQAI5AQwA8D+cAAYAPrK6urp4+umnY9q0acJfcm1/5wQwAEACCYABAP6HEw4AwIfW0NAQ06ZNiyeffDK2bt2qIXxkCfgGsAAYACCBBMAAADtkMpmsDoDz8ny9AwCywdvB71NPPRXV1dUaQs7u7wTAAADJJAAGANgh219wCYABYO9qbGyMGTNmxJNPPhmVlZUawieWn5+f9VtkUwIASB4BMADADplMpiGb6yssLDQkANgL0ul0zJo1KyZPnhwbN27UEHaZgoLsfjXX1NTUaEoAAAncZ2oBAMA/NDY2bs/m+gTAALBnpdPpePnll2Py5Mmxdu1aDWGXa9GiRbb/O1BvSgAAySMABgDYoampSQAMAEQmk4nZs2fH448/HuXl5RpCs93fNTY2CoABABJIAAwAsENDQ0NWv+ASAAPA7vV28PvEE0/E6tWrNYTdLtuvgM72G3IAAHiPfaYWAAD8gyugAaD5mjNnTkyaNCmWLl2qGewx2X4FtAAYACCZBMAAADs0NTU5AQwAzcyCBQtiwoQJ8dZbb2kG9nfv0tDQIAAGAEggATAAwA7Z/oJLAAwAu87ChQtj/PjxsXjxYs1gr8n2K6Cz/RckAQB4j32mFgAA/EO2B8AFBQWRl5cX6XTasADgY1q+fHmMGzcu5s+frxnsVXl5eVkfAG/fvt0JYACABBIAAwDs0NDQkPUnHFq1ahXbtm0zLAD4iFauXBmPPPKI4Jes2tclYH8sAAYASCABMADADrW1tXXZXqMAGAA+mnXr1sX48eNj9uzZkclkNISs2tdlu7q6ulqTAgBIHgEwAMAOW7du3ZrtNSbhRSEAZIP169fHY489JvjFvu4TqK6u3mpSAADJIwAGANihqqpKAAwACbdhw4Z4/PHH45VXXommpiYNwb7uE6isrHT1DABAAgmAAQB22LRpU9a/4GrZsqVBAcBOVFVVxcSJE+OFF16IxsZGDSHrJSEA3rRpkxPAAAAJJAAGANhh3bp1WR8AOwEMAP/bli1bYsKECYJfEicJ+7ry8nIBMABAAgmAAQB2WLZsmSugASAhqqurY/LkyTFz5syor6/XEBInCfu6pUuXCoABABJIAAwAsMP8+fOz/gRwcXGxQQHQrNXU1MSUKVPimWeeEfySaEnY173++uu+AQwAkEACYACAHRYsWFCXyWQaUqlUYbbW2Lp1a4MCoFmqq6uLp59+OqZNmxbbtsmkSL5s39el0+mGpUuXbjcpAIDkEQADALxDU1PTtoKCgrbZWp8AGIDmZvv27TF9+vR48sknY+tWt9GSO7J9X9fU1ORfOACAhBIAAwC8Q0NDw9ZsDoBLS0sNCYDm8ndyTJs2LZ566qmorq7WEHJOtu/rGhsb/YsHAJBQAmAAgHeor6+vbNWqVc9src8JYAByXWNjY8yYMSOefPLJqKys1BByVrbv6+rr66tMCQAgmQTAAADv0NDQkNVvmgXAAOSqdDods2bNismTJ8fGjRs1hJyX7fu6bN8XAwDw3gTAAADvUFdXV5XN9ZWWlkYqlYpMJmNYAOSETCYTr732Wjz++OOxatUqDaFZSKVSUVJSktU11tbWVpkUAEAyCYABAN5h27Ztm7K5vvz8/GjVqlXU1NQYFgCJlslkYvbs2fH4449HeXm5htCstGrVKvLz87O6xq1btzoBDACQUAJgAIB3qK6u3pztNZaVlQmAAUist4PfiRMnxpo1azSEZqmsrCzra9y2bVuVSQEAJJMAGADgHaqqqjZle43t2rWLtWvXGhYAiTNnzpyYNGlSLF26VDNo1tq1a5f1NW7atMkJYACALNbQWBgFjQ0REZFKRSavMJre/pkAGADgHSoqKqqyvcYkvDAEgHdasGBBTJgwId566y3NgITs5zZs2CAABgDIYoUFDf9MejMRqab0/+S+AmAAgHdYtWpV1r/oatu2rUEBkAgLFy6M8ePHx+LFizUD3iEJAfDq1aurTAoAIJkEwAAA77BgwYKsD4CdAAYg2y1fvjzGjRsX8+fP1wzYiST8Ql8S9sUAAOycABgA4B2eeOKJjZlMpimVSuVna41OAAOQrVauXBmPPPKI4Bc+QLb/Ql8mk2l64oknNpoUAEAyCYABAN6huro6vX379g1FRUVdsrVGJ4AByDZr166NCRMmxOzZsyOTyWgIJHw/t3379g3V1dVpkwIASCYBMADAu9TV1a0XAAPAB1u/fn089thjgl/Isf1cXV3delMCAEguATAAwLvU1dVVtGnTJmvrKykpiRYtWsT27dsNC4C9oqKiIiZOnBivvPJKNDU1aQh8BEVFRVFcXJz1+2GTAgBILgEwAMC7bN26dV2XLll7ADhSqVR07Ngx1qxZY1gA7FFVVVUxceLEeP755wW/8DF17NgxUqlU1u+HTQoAILkEwAAA71JVVZX1Jx46deokAAZgj9m8eXM8/vjj8cILL0RjY6OGwCfcx9kPAwCwOwmAAQDeZf369Vn/zbMkvDgEIPm2bNkSU6ZMiZkzZ0Z9fb2GwC7QsWNH+2EAAHYrATAAwLusXr066088JOHFIQDJVVNTE1OmTIlnnnlG8Au7WBJ+kW/VqlUCYACABBMAAwC8y9///ves/+aZABiA3aG2tjYmT54czz77bNTV1WkINNN93KuvvioABgBIMAEwAMC7PPzww+t//OMfN6RSqcJsrbFz584GBcAus3379pg+fXpMnTo1tm3bpiGwG2X7CeB0Ot3w8MMPC4ABABJMAAwA8C7V1dXpurq68latWu2TrTV26NAh8vLyIp1OGxgAH1tDQ0NMmzYtnnrqqaiurtYQ2M3y8vKiQ4cOWV1jfX39mtraWptMAIAEEwADAOxEbW3tmmwOgAsKCqJdu3axceNGwwLgI2tsbIwZM2bEk08+GZWVlRoCe0j79u2joCC7X8fV1NSUmxQAQLIJgAEAdmLz5s2r2rdvn9U1duvWTQAMwEeSTqdj1qxZMXnyZH+HwF7av2W7LVu2rDQpAIBkEwADAOzEpk2bVvfp0yera+zWrVvMmzfPsAD4QG8Hv1OmTIkNGzZoCOzF/Vu227BhwxqTAgBINgEwAMBOrFixYvWwYcOyusYkvEAEYO/KZDLx0ksvxZQpU6K83K2usLd17do162tctWrVKpMCAEg2ATAAwE7Mnz9/9ZgxY7K6xiS8QARg78hkMjF79uyYOHFirFnjMB9kiyT8At+8efP8oQEAkHACYACAnRg3btyab37zm5mISGVrjU4AA7Azc+bMiSeeeCKWLVumGZBlEvALfJlx48atNikAgGQTAAMA7MTrr79e29DQsKmwsLBDttZYXFwcZWVlsWXLFgMDIBYsWBDjx4+PJUuWaAZkobKysiguLs7qGhsaGjYuWLCgzrQAAJJNAAwA8B62bt26vF27dh2yucauXbsKgAGauYULF8b48eNj8eLFmgFZLAm3t2zbtm25SQEAJJ8AGADgPVRVVS1t167d0GyusWfPnrFw4ULDAmiGli1bFo899ljMnz9fMyABevbsmfU1VlZWLjUpAIDkEwADALyHdevWLevTp09W15iEF4kA7ForVqyIRx99VPALCZOEfdvatWuXmRQAQPIJgAEA3sPChQuXHX744VldY69evQwKoJlYtWpVjB8/PubOnRuZTEZDIGGSsG9buHDhMpMCAEg+ATAAwHuYNm3a0ksuuSSra+zevXvk5+dHU1OTgQHkqHXr1sX48eNj9uzZgl9IqIKCgkR8A/jpp59eZloAADmw/9QCAICde+ihhzbcd999W/Pz80uzdjNXUBBdunSJNWvWGBhAjqmoqIiJEyfGyy+/HOl0WkMgwbp27RoFBdn9Gq6xsbH6kUce2WBaAADJJwAGAHgf27ZtW15WVnZwNtfYq1cvATBADqmqqoqJEyfG888/74YHyBFJ+P7vtm3blpsUAEBuEAADALyPLVu2LMv2ALhnz57x0ksvGRZAwm3evDkef/zxeOGFF6KxsVFDIIck4fu/W7ZsWWpSAAC5QQAMAPA+1q9fvyzbT2z06NHDoAASbMuWLTFlypSYOXNm1NfXawjkoCTs19avX7/MpAAAcoMAGADgfSxYsGDh0KFDs7rGfffdN1KpVGQyGQMDSJCampqYMmVKPPPMM4JfyGGpVCr23XffrK9z/vz5C00LACA3CIABAN7Ho48++uYFF1yQ1TWWlJRE586dY926dQYGkAC1tbUxefLkePbZZ6Ourk5DIMd17do1WrVqlfV1/vnPf15kWgAAuUEADADwPiZNmlRVX1+/oaioqGM217nvvvsKgAGy3Pbt22P69OkxderU2LZtm4ZAM9GnT5+sr7G+vr7iySefrDItAIDcIAAGAPgAW7duXZTtAXCfPn3ipZdeMiyALNTQ0BDTpk2Lp556KqqrqzUEmpkkXP+8detWp38BAHKIABgA4ANUVFQs7NChw8hsrjEJLxYBmpvGxsaYMWNGPPnkk1FZWakh0EwlYZ9WUVHh+78AADlEAAwA8AGWLl266MADD8zqGnv16hUFBQXR2NhoYAB7WTqdjlmzZsWkSZNi06ZNGgLNWGFhYfTs2TMR+13TAgDIHQJgAIAPMHPmzEWnnnpqdm/qCgqiZ8+esWzZMgMD2EveDn4nT54cGzdu1BAg9tlnn8jPz0/CfnexaQEA5I48LQAAeH+//OUvV6bT6bpsr7NPnz6GBbAXZDKZePHFF+O73/1u3H///cJf4J+ScP1zOp2u++Uvf7nStAAAcocTwAAAH6C6ujpdXV29uE2bNodkc539+vWL6dOnGxjAHpLJZGL27NkxceLEWLNmjYYAO92fJWCvu7i6ujptWgAAuUMADADwIWzYsGFetgfA/fv3NyiAPeTVV1+NSZMmxapVqzQD2KlUKpWI/dmGDRvmmhYAQG4RAAMAfAiLFy9+o2/fvlldY1lZWXTu3DnWr19vYAC7yYIFC2L8+PGxZMkSzQDeV5cuXaK0tDQJ+9z5pgUAkFsEwAAAH8JTTz31+ujRo7O+zv33318ADLAbLFy4MMaPHx+LFy/WDOBD78uSYMqUKa+bFgBAbsnTAgCAD/aLX/xiTWNjY1W215mUF40ASbFs2bK4++674z/+4z+Ev8BHkoTv/zY0NFTee++9q00LACC3OAEMAPAhNDQ0ZDZv3jy/Q4cOI7O5TgEwwK6xYsWKePTRR2P+fDejArm7L9uyZYs/5AAAcpAAGADgQ1q3bl3WB8AdO3aMNm3axObNmw0M4GNYtWpVjB8/PubOnRuZTEZDgI+lbdu20aFDh0Tsb00LACD3CIABAD6kefPmzTvooIOyvs4DDzwwXnrpJQMD+AjWrVsX48ePj9mzZwt+gV2yH0uCuXPnzjMtAIDcIwAGAPiQ/vznP88/77zzsr7OAw44QAAM8CFVVFTEuHHjBL/ALt+PJcHDDz/sBDAAQA4SAAMAfEgTJ06srK2tXdGqVat9srnOgw8+2LAAPkBVVVVMnDgxnn/++WhqatIQYJdKwq0xNTU1yydNmlRlWgAAuUcADADwEWzYsOHvvXr1yuoAuG3bttG1a9dYu3atgQG8y+bNm+Pxxx+PF154IRobGzUE2OW6desWbdu2TcS+1rQAAHKTABgA4CNYuHDha7169Toj2+scMGCAABjgHbZs2RJTpkyJ5557LrZv364hwG6TlO//Lly48O+mBQCQmwTAAAAfwcSJE/9+wgknZH2dBx54YEyfPt3AgGavpqYmpkyZEs8880zU19drCLDbDRgwIBF1jh8//u+mBQCQmwTAAAAfwb333rv6Bz/4wfqioqLO2VznAQccEHl5eZFOpw0NaJZqa2tj8uTJ8eyzz0ZdXZ2GAHtEXl5e9O/fP+vrrK+vX3ffffeVmxgAQG4SAAMAfESVlZVzu3btmtXHgFu1ahX77LNPLFu2zMCAZqWuri6efvrpmDZtWmzbtk1DgD1qn332iVatWmV9nZs2bZpjWgAAuUsADADwES1dunR2tgfAERGDBg0SAAPNRkNDQ0ybNi2eeuqpqK6u1hBgr+2/kuCtt976m2kBAOQuATAAwEc0ffr0v48cOTLr6xw4cGBMmDDBwICc1tDQEM8991w8+eSTUVlZqSHAXt9/JcG0adP+bloAALlLAAwA8BH9x3/8x9JbbrmlOj8/v3U219mrV68oKyuLLVu2GBqQc9LpdMyaNSsmTZoUmzZt0hBgrysrK4tevXplfZ2NjY1b7rnnnmUmBgCQuwTAAAAfUW1tbXrDhg1/7dKly3HZXGcqlYqBAwfGrFmzDA3IGW8Hv5MnT46NGzdqCJA1Bg4cGKlUKuvr3Lhx4yu1tbVpEwMAyF0CYACAj+Gtt956JdsD4IgQAAM5I51Ox8svvxxTpkyJ8vJyDQGyct+VBIsWLXrFtAAAcpsAGADgYxg/fvwrRxxxRNbXedBBB0VBQUE0NjYaGpBImUwmZs+eHRMnTow1a9ZoCJCVCgoK4qCDDkpErY888ogAGAAgx+VpAQDAR/fjH/94ZX19/fpsr7OoqCj69etnYEAivfrqq3HHHXfEz3/+c+EvkNX69esXRUVFWV9nXV1d+b333rvaxAAAcpsTwAAAH9OGDRte6dGjx6ezvc5BgwbFggULDAxIjCVLlsSECRNi/vz5mgEkwuDBgxNR5/r1653+BQBoBgTAAAAf07x5815OQgA8bNiwePjhhyOTyRgakNXefPPNmDBhQixevFgzgMRIpVIxdOjQRNQ6d+7cl0wMACD3CYABAD6m++677+XRo0dnIiKVzXW2bds2evfuHcuWLTM0ICstW7YsHnvsMSd+gUTq06dPtG3bNgmlpu+9996/mhgAQO4TAAMAfEwTJ06s3Lp165LS0tK+2V7rkCFDBMBA1lmxYkU8+uijgl8g0YYMGZKIOqurqxc+/fTTm00MACD3CYABAD6B8vLyl/fff/+sD4AHDx4c48aNMzAgK6xcuTImTJgQc+fOdT09kHhJ+f7vmjVrfP8XAKCZEAADAHwCM2fOfG7//ff/fLbX2a1bt+jWrVuUl5cbGrDXrFu3LsaPHx+zZ88W/AI5oWfPntGlS5dE1DpjxoznTAwAoHkQAAMAfAK33Xbba5dcckl1fn5+62yvdciQIQJgYK9Yv359PPbYY4JfIOck5frnxsbGzbfddts8EwMAaB4EwAAAn0BlZWXThg0b/tqlS5fjsr3WQw89NCZNmmRowJ78MzKeeOKJeP7556OpqUlDgJxz6KGHJqLOioqKV6qrq9MmBgDQPAiAAQA+oXnz5s1MQgDcu3dv10ADe0RVVVVMnDgxXnjhhWhsbNQQICd17949evbsmZT9quufAQCakTwtAAD4ZP77v/97VkQk4kTFpz71KQMDdpstW7bEQw89FLfffns899xzwl8gpw0fPjwRdWYymfTdd9/9gokBADQfTgADAHxCkyZNqtqyZcuCsrKyg7K91uHDh8fjjz9uaMAuVVNTE1OmTIlnnnkm6uvrNQTIealUKg477LBE1Lply5bXp0+fvsXUAACaDwEwAMAusHz58lkDBw7M+gC4S5cu0atXr1i5cqWhAZ9YbW1tTJ48OZ599tmoq6vTEKDZ6N27d3Ts2DEx+1QTAwBoXgTAAAC7wLPPPvvCwIEDr0hCrcOGDRMAA59IXV1dPP300zFt2rTYtm2bhgDNzrBhwxJT61/+8pcXTQwAoHnxDWAAgF3g1ltvnV9fX782CbUefvjhkUqlDA34yBoaGmLq1Klx6623xuOPPy78BZqlJF3/XFdXt/rWW29dYGoAAM2LE8AAALtAQ0NDZs2aNc/16dPns9lea7t27aJPnz6xZMkSgwM+7J9xMW3atHjqqaeiurpaQ4Bmbb/99ou2bdsmotbVq1fPNDEAgOZHAAwAsIs8++yz05IQAEdEHHHEEQJg4AOl0+mYNWtWTJo0KTZt2qQhABFx5JFHJqbW6dOnTzMxAIDmxxXQAAC7yC233PJaQ0NDZRJqHT58eLRo0cLQgJ1Kp9Px3HPPxW233Rb333+/8Bdgh6KiovjUpz6ViFobGho23HLLLXNNDQCg+XECGABgF6murk6Xl5c/t88++5yR7bW2bNkyDj300Hj55ZcNDvindDodL7/8ckyZMiXKy8s1BOBdhgwZEkVFRYmodc2aNc/V1tamTQ0AoPkRAAMA7EIvvvjiM0kIgCMiRo4cKQAGIiIik8nE7NmzY+LEibFmzRoNAXif/VNSzJo161kTAwBongTAAAC70O233/7KOeecszU/P78022sdMGBAtG/f3tWu0My9+uqrMWnSpFi1apVmALyPjh07xgEHHJCIWhsbG6u/8Y1v/NXUAACaJwEwAMAutHLlyob169fP6tat2+hsrzWVSsXhhx8ekyZNMjhohubMmROTJ0+OJUuWaAbAh3D44YdHKpVKRK3r16+fVVFR0WhqAADNU54WAADsWq+++mpirts77LDDDAyamTfffDP+/d//PX7yk58IfwE+pFQqFSNGjEhMva+88sozpgYA0Hw5AQwAsIvddNNNz5166qnV+fn5rbO91m7dukX//v1j4cKFBgc5btmyZfHYY4/F/PnzNQPgIzrggAOic+fOiai1sbFxy4033jjL1AAAmi8BMADALrZy5cqG8vLyGT179vx0Euo9+uijBcCQw5YvXx7jxo0T/AJ8wv1SUpSXlz9TXl7eYGoAAM2XABgAYDeYMWPGUxdccEEiAuAhQ4ZE69ato7q62uAgh6xcuTImTJgQc+fOjUwmoyEAH1ObNm3i0EMPTUy9zz777FOmBgDQvPkGMADAbvDVr371lYaGhk1JqLWgoCCOOOIIQ4McsW7duvj5z38ed955Z8yZM0f4C/AJjRw5MvLz8xNRa0NDw8abbrrpVVMDAGjenAAGANgNKisrm1atWjW9T58+5ySh3qOPPjqefPJJQREk2Pr16+Oxxx6L2bNn+3cZYBdJpVIxatSoxNS7cuXKadXV1WmTAwBo3pwABgDYTaZNm5aY6/c6duwYAwYMMDRIoA0bNsSvf/3r+Nd//dd49dVXhb8Au9CAAQOiY8eOian36aefftLUAAAQAAMA7CZf+9rX5tTX11ckpd6jjjrK0CBBqqqq4v77749vf/vb8eKLL0ZTU5OmAOxiRx55ZGJqra+vX/eNb3zjdVMDAMAV0AAAu0ltbW16xYoVT++///6fT0K9hx56aLRt2zaqqqoMD7LYli1bYsqUKfHcc8/F9u3bNQRgN2nbtm0MGTIkMfUuX778qdraWtc/AwDgBDAAwO70xz/+cUJSas3Pz4/jjjvO0CBL1dTUxKOPPhq33XZb/OUvfxH+Auxmxx57bOTn5yel3Myvf/3rCaYGAECEABgAYLe66667llZXV89PSr1HH310tGjRwuAgi7wd/H7jG9+IqVOnRn19vaYA7GYtWrSIo48+OjH1btmy5Y177rlnhckBABDhCmgAgN3u9ddfn3T44YcPSEKtxcXFcdhhh8XMmTMNDvayurq6ePrpp2PatGmxbds2DQHYgw477LAoKSlJTL3z5s17wtQAAHibE8AAALvZ9773vanpdLohKfWecMIJkUqlDA72koaGhpg6dWrceuut8fjjjwt/AfawVCoVJ5xwQmLqTafT27/73e8+ZXIAALzNCWAAgN1s+vTpWyoqKmZ26dIlER/Y7d69e/Tv3z/efPNNw4M9qKGhIaZNmxZPPfVUVFdXawjAXnLAAQdE9+7dE1NvRUXFczNmzPAXBwAA/+QEMADAHjBr1qxEXcuXpFMvkHTpdDqee+65uP322+PRRx8V/gLsZccff3yi6p0xY8YkUwMA4J2cAAYA2AO++tWvvnT66adXFRYWtk1CvQMHDoyOHTvGhg0bDA92k3Q6HbNmzYrJkyfHxo0bNQQgC3Ts2DEGDhyYmHobGhoqb7755pdMDgCAd3ICGABgDygvL29YsWLF1MRsEvPy4sQTTzQ42A3S6XS8+OKL8Z3vfCfuv/9+4S9AFjnppJMiLy85r8tWrFgxpaKiotHkAAB4JwEwAMAe8qtf/erRiMgkpd6jjjoqysrKDA52kUwmE6+++mp873vfi1//+texdu1aTQHIImVlZXHUUUcl6q+W//7v//6zyQEA8G4CYACAPeQ///M/l1dWVv4tKfUWFhbGMcccY3CwC7wd/P785z+PNWvWaAhAFjruuOOioCA5X0urqqqa/dOf/nS1yQEA8G4CYACAPeill14al6R6jzvuuCgqKjI4+JjmzJkTd911V/z85z+P1au9owfIVkVFRYn7xbcXXnhhnMkBALAzBVoAALDnjB079pkFCxZUFhYWtktCvSUlJXHEEUfE9OnTDQ8+gjfffDPGjx8fb731lmYAJMCRRx4ZJSUliam3oaFh0zXXXPOsyQEAsDMCYACAPai8vLxh6dKlE/v3739xUmo+8cQT49lnn410Om2A8AEWLVoUjz32WCxevFgzABIiLy8vTjzxxETVvGTJkifKy8sbTA8AgJ3ucbUAAGDP+u1vfzsxIjJJqbdjx44xdOhQg4P3sXz58rj77rvjRz/6kfAXIGGGDRsWHTp0SFLJmd/85jePmxwAAO9FAAwAsIf953/+5/JNmza9kqSaTz/99EilUoYH77Jy5cr4yU9+Et///vdj/vz5GgKQMHl5eXHGGWckquZNmza9fM8996wwPQAA3osroAEA9oKXXnpp/KmnnnpYUurt2rVrDBkyJGbPnm14EBHr1q2L8ePHx+zZsyOTyWgIQEINHTo0OnfunKiaX3jhhQkmBwDA+xEAAwDsBZdffvkzS5YsWVdUVNQlKTWfccYZ8be//U3YRbO2fv36eOyxxwS/ADkglUrF6aefnqia6+rq1lx22WXTTQ8AgPcjAAYA2AsqKyub5s+f/8ihhx56dVJq7tatm1PANFsbNmyIxx9/PF555ZVoamrSEIAc8KlPfSq6du2aqJrfeOONcdXV1WnTAwDg/fgGMADAXvL1r399XDqdrktSzb4FTHNTVVUV999/f3z729+OF198UfgLkCNSqVR8+tOfTlTN6XS69pvf/OZjpgcAwAdxAhgAYC+ZMWNG9Zo1a/7Ss2fPxLx97N69ewwcODDmzJljgOS0LVu2xIQJE+KFF16IxsZGDQHIMYceemh069YtUTWvXr36qRkzZlSbHgAAH8QJYACAvejXv/71HyMiUR8SPeuss5wCJmdt27YtHn300bjtttviueeeE/4C5KC8vLwYM2ZM0srO/OpXv/qT6QEA8KH2vFoAALD3fP/733+rqqoqUR/V7dGjR3zqU58yPHJKfX19TJ06Nb71rW/F1KlTo76+XlMActSIESOiS5cuiap506ZNf73rrruWmh4AAB+GABgAYC975plnHkpazWeccUbk5dlKkjvmzZsXjz76aGzdulUzAHJYQUFBnH766Ymre9q0aQ+aHgAAH5a3dgAAe9nYsWNn1tfXr01SzZ07d47DDjvM8ACARBk5cmR06NAhUTXX1dWtHjt27POmBwDAhyUABgDYyyorK5tee+21Pyat7jPPPDMKCgoMEABIhBYtWiTy9O/s2bP/UF1dnTZBAAA+LAEwAEAWuOqqqyY0NjZWJanm9u3bx9FHH214AEAiHHfccdGmTZtE1dzQ0LDxiiuumGh6AAB8FAJgAIAssGDBgrqFCxc+lrS6R48eHYWFhQYIAGS1li1bxsknn5y4uhcuXDhu6dKl200QAICPQgAMAJAlvv71r/8pnU7XJqnmtm3bximnnGJ4AEBWO+2006K0tDRRNTc1NdV+7Wtfe8j0AAD4qATAAABZ4umnn968fPnyxF3xN3r06GjXrp0BAgBZqUOHDnH88ccnru5ly5ZNmD59+hYTBADgoxIAAwBkkbvvvvtPmUymKUk1FxYWxumnn254AEBWOvPMMxP3yYpMJtN41113/dH0AAD4OATAAABZ5Be/+MWatWvXTkta3UcccUT06tXLAAGArNK7d+847LDDEld3eXn5X+6///51JggAwMchAAYAyDIPP/zwn5JWcyqVijPPPNPwAICsMmbMmEilUomr+8EHH/yT6QEA8HEJgAEAsszXv/71NzZs2DAraXUPHDgwDj74YAMEALLCoEGDYsCAAYmru6KiYuatt966wAQBAPi4BMAAAFlo3Lhxv01i3WPGjIm8PFtMAGDvysvLizFjxiSy9j//+c+/NUEAAD7RflgLAACyz/XXXz+nqqrqr0mru1evXnHUUUcZIACwVx1zzDHRvXv3xNW9adOmV2666aa5JggAwCchAAYAyFJ/+tOf7k1i3WPGjInS0lIDBAD2ijZt2sRZZ52VyNofeOCBe00QAIBPSgAMAJClbrrpprlJPAVcXFwcZ555pgECAHvFWWedFS1btkxc3Zs2bXrl5ptvnmeCAAB8UgJgAIAsNm7cuF8lse5Ro0ZF7969DRAA2KP69OkTI0eOTGTtjz322K9MEACAXUEADACQxcaOHTu7qqrqb0mrO5VKxfnnnx+pVMoQAYA9tv/4/Oc/n8j9R2Vl5d+uueaav5kiAAC7ggAYACDLTZ069bdJrLtv374xZMgQAwQA9ojDDjsssTeQTJ48+TcmCADAriIABgDIcpdeeumLVVVVryax9s9//vNRXFxsiADAblVaWhrnn39+Imuvqqr66+WXX/6SKQIAsKsIgAEAEuChhx76WRLrLisri9NPP90AAYDd6qyzzoqSkpIklp753e9+91MTBABgVxIAAwAkwA033DB3w4YNs5JY+3HHHRd9+vQxRABgt+jbt28cddRRiay9oqJi1te//vU3TBEAgF1JAAwAkBA///nPfxoR6aTVnUql4vOf/3zk5dl6AgC7Vn5+flx00UWRSqWSWH76F7/4xX+bIgAAu5q3cAAACXHHHXe8tW7duulJrL13795xzDHHGCIAsEudcMIJ0b1790TWXl5e/pc77rjjLVMEAGBXEwADACTI3XfffW8mk2lKYu1nnXVWtG3b1hABgF2iQ4cOcfrppyey9kwm03T33Xf/3BQBANgdBMAAAAlyzz33rCgvL386ibW3bNkyzj33XEMEAHaJc889N1q0aJHI2tesWTP1xz/+8UpTBABgdxAAAwAkzA9/+MOfZzKZhiTWPnz48Bg0aJAhAgCfyKGHHhpDhw5NZO3pdLrhBz/4wS9MEQCA3UUADACQMPfee+/qRYsWPZDU+i+++OIoKSkxSADgY2ndunVcfPHFia1/4cKFf7jvvvvKTRIAgN1FAAwAkECXXXbZrxsaGjYlsfaysjJXQQMAH9u5554bpaWliay9oaFh4+WXX/47UwQAYHcSAAMAJNDs2bNrXn311V8ntf4jjjgiDj74YIMEAD6SwYMHx+GHH57Y+l955ZX7Zs+eXWOSAADsTgJgAICEOueccx6tqalZmtT6L7roomjZsqVBAgAfSsuWLeNzn/tcYuuvqalZMmbMmMdMEgCA3U0ADACQUJWVlU3Tpk37RVLrb9++fZx++ukGCQB8KGeccUa0b98+sfU/+eST91ZXV6dNEgCA3U0ADACQYOedd960qqqqV5Ja/wknnOAqaADgAx188MFx/PHHJ7b+TZs2vXzBBRc8a5IAAOwJAmAAgIT74x//eG9EZJJYeyqVigsuuMBV0ADAe2rZsmVccMEFkUqlkrqEzP333/8zkwQAYE8RAAMAJNzNN988b9WqVU8ktf6OHTsm+nt+AMDudcEFF0THjh0TW/+KFSse//rXv/6GSQIAsKcIgAEAcsCNN974k6ampq1JrX/kyJExdOhQgwQA/pdPfepTMWLEiMTW39TUVH3zzTf/t0kCALAnCYABAHLAxIkTK//+97//KslruPDCC6OsrMwwAYCIiGjTpk18/vOfT/QaZs+efd/EiRMrTRMAgD1JAAwAkCPOPvvsh2pqapYntf7S0tK46KKLDBIAiFQqFV/84hejtLQ0sWuoqal566yzznrYNAEA2NMEwAAAOaKioqJx0qRJP07yGgYPHhwjR440TABo5o444og46KCDEr2GJ5544qeVlZVNpgkAwJ4mAAYAyCGXXHLJzIqKihlJXsMFF1wQ3bp1M0wAaKZ69uyZ+KufKyoqZnzhC1+YZZoAAOwNAmAAgBzzb//2b/ek0+ntSa2/RYsWceWVV0ZhYaFhAkAzU1hYGF/60pcSvQ9Ip9Pb/+3f/u0e0wQAYG8RAAMA5Jh777139aJFix5M8hq6d+8eZ555pmECQDNzxhlnRPfu3RO9hsWLFz947733rjZNAAD2FgEwAEAO+uxnP/vL2traRL94PPHEE2Pw4MGGCQDNxKBBg+Kkk05K9Bpqa2tXn3vuub80TQAA9iYBMABADlq8eHH9uHHj/j3Ja0ilUnHJJZdE27ZtDRQAclybNm3ikksuiVQqleh1jBs37t8XL15cb6IAAOxNAmAAgBx1+eWXv1RRUTEjyWsoLS2NL3zhC4l/GQwAvLe3f+mrdevWiV5HRUXFM5dffvlLJgoAwN4mAAYAyGE33HDDXU1NTVuTvIaDDjrI94ABIId95jOfiUMOOSTRa2hqaqq+4YYbfmiaAABkAwEwAEAOGzdu3MbZs2cn/jt0p5xyiu8BA0AOOuSQQ+LTn/504tfx17/+9efjxo3baKIAAGQDATAAQI77zGc+81B1dfXCJK8hlUrFF7/4xejQoYOBAkCO6NixY3zpS19K/KceNm/ePO+00057xEQBAMgWAmAAgBxXXV2dfuCBB34UEekkr6O4uDguvfTSyMuzhQWApMvPz4/LLrssiouLk76U9P333/+ftbW1aVMFACBbeHsGANAMXH/99XMWLVr0YNLXsf/++8e5555roACQcOedd1707ds38etYuHDhH7/61a++bqIAAGQTATAAQDNxySWX/Lyurq486es4/vjjfQ8YABJs2LBhccwxxyR+HXV1dWsuvPDC+0wUAIBsIwAGAGgmXnvttdoHHnjguxGRSfI6UqlUfOlLX4oePXoYKgAkTO/evePSSy9N/Hd/IyLzwAMPfO/111+vNVUAALKNABgAoBm5+uqr/7Z06dJHk76OoqKiGDt2bJSWlhoqACRE69at46qrrorCwsLEr2X58uXjrr766r+ZKgAA2UgADADQzJx33nn/r66ubnXS19GhQ4e4/PLLIy/PlhYAsl1eXl5cfvnl0b59+8Svpb6+ft0ll1zyE1MFACBr999aAADQvLz++uu1Dz744Pcj4VdBR0QMGDAgzjrrLEMFgCw3ZsyYOPDAA3NiLY899tgPXnnllW2mCgBAthIAAwA0Q1/5ylf+umbNmqm5sJaTTz45Dj30UEMFgCw1ZMiQOOmkk3JiLWvXrv3LpZde+oKpAgCQzQTAAADN1GWXXfYf9fX1FUlfRyqViksvvTS6d+9uqACQZXr06BFf/OIXI5VKJX4tDQ0Nm6655pofmioAANlOAAwA0EzNmDGj+oEHHvhO5MBV0C1btozrr78+2rZta7AAkCXatWsX1113XbRs2TIXlpN56KGH/nXSpElVJgsAQLYTAAMANGNf+cpX/rpkyZI/58Ja2rZtG1dffXW0aNHCYAFgL2vRokVcffXVOfPLWUuXLn30iiuueNlkAQBIAgEwAEAzd+655/6ktrZ2eS6spXfv3jlzzSQAJNXbn2fYZ599cmI9tbW1y88555wfmywAAEkhAAYAaOYWLFhQ97Of/ezbmUymMRfWM2zYsDjllFMMFgD2kk9/+tMxdOjQnFhLJpNp/NnPfvbtBQsW1JksAABJIQAGACBuvfXWBfPnz78/V9Zz5plnxuDBgw0WAPaw4cOHx2c+85mcWc/8+fN/d+utty4wWQAAkkQADABARESMGTPmvpqamrdyYS2pVCouu+yy6Nmzp8ECwB7Su3fvuPjii3PmUwxbt25ddPrpp//aZAEASBoBMAAAERGxcuXKhh/+8Ie3pdPpnLjisGXLlvEv//Iv0aVLF8MFgN2sS5cucf3110dRUVFOrKepqanmu9/97jfKy8sbTBcAgKQRAAMA8E933XXX0ueff/6eXFlPaWlpXHvttVFWVma4ALCblJWVxXXXXRclJSU5s6aZM2fe/f/+3/9bZboAACSRABgAgP/l5JNPHldeXv50rqynU6dOMXbs2Jw5kQQA2aSoqCiuueaa6NixY86sqby8/MlTTz11gukCAJBUAmAAAP6PSy655K66urq1ubKefffdN6644orIy7P9BYBdJS8vL6688sro3bt3zqyprq6u/JJLLvmh6QIAkOi9uhYAAPBus2bNqn7ooYfujIh0rqxp4MCBcd555xkuAOwi559/fhxyyCG5tKT0gw8+eOesWbOqTRcAgCTLb3tQ9NzpjndbRG15oQ4BADRTEydOXDNmzJi8Tp06Dc2VNfXp0yfy8/PjzTffNGAA+ATOOuusOOmkk3JqTa+//vp9Z5555kTTBQAgCYq7N0Ze6c5/5gQwAADv6dRTT/31li1bXs+lNZ122mlx9NFHGy4AfEzHHntsnHrqqTm1pi1btrxx2mmn/cZ0AQDIBQJgAADeU0VFReONN974jcbGxqpcWtcFF1wQRx55pAEDwEd05JFHxuc+97mcWlNjY2PVzTff/I2KiopGEwYAIBcIgAEAeF9//OMf1z/yyCPfiRz6HnAqlYqLLroohgwZYsAA8CENHTo0LrrookilUrm0rPQjjzzynfvvv3+dCQMAkCsEwAAAfKBLL730hQULFvwupzbCeXnxpS99Kfbff38DBoAPcNBBB8WXvvSlyMvLrVdJCxYs+N2ll176ggkDAJBLBMAAAHwoo0eP/mVVVdXcXFpTYWFhfOUrX4kePXoYMAC8h169esUVV1wRBQUFObWuqqqqOaNHj/6lCQMAkGsEwAAAfCgVFRWNV1111S0NDQ0bcmldJSUlcfPNN8c+++xjyADwLr17946bbropiouLc2pdDQ0NG6666qqv++4vAAC5SAAMAMCHNmHChE3333//tzKZTDqX1lVcXBzXXXdddO/e3ZABYIfu3bvHtddeG61atcqpdWUymfT999//rQkTJmwyZQAAcpEAGACAj2Ts2LGz58+f/9tcW1fr1q3juuuuiw4dOhgyAM1ehw4d4rrrrovWrVvn3Nrmz5//m7Fjx842ZQAAcpUAGACAj+y44477xaZNm17MtXW1a9cubrzxxmjXrp0hA9BstW3bNmf/Pty4ceOLxx13nO/+AgCQ0wTAAAB8ZNXV1emLL774W3V1datzbW0dO3aMG2+8Mdq0aWPQADQ7ZWVlceONN0bHjh1zbm21tbWrL7zwwturq6vTJg0AQC7Lb3tQ9NzZD9LbImrLC3UIAICdWrZsWf327dtfOvbYY0/Ny8trkUtrKykpiaFDh8Zrr70WNTU1hg1As9ChQ4f42te+Fp06dcq5tTU1NW39zne+M/bBBx9cb9IAAOSC4u6NkVe6858JgAEA+NhefPHFzYcccsiyAQMGnBgRqZzaRBcXx5AhQ4TAADQLHTt2jJtuuik6dOiQi8tLjx8//ravfvWrc0waAIBc8X4BsCugAQD4RC688MIZb7zxxm9ycW3t27ePm266KSdPQgHA2zp16pTL4W+88cYbv77wwgufM2kAAJoLATAAAJ/YqFGjfrFhw4aZubi2t0Pgzp07GzQAOadz585x0003Rfv27XNyfRs2bJg5atSo+0waAIDmRAAMAMAnVltbm77sssu+V1dXtzoX19euXbu44YYbomPHjoYNQM7o0KFDXH/99dGuXbtc3Z+s/sIXvvDd2tratGkDANCc+AYwAAC7xJIlS+oj4pVRo0admpeX1yLX1ldcXBxDhw6NuXPnxrZt2wwcgETr0qVL3HjjjTl77XNTU1P1nXfeec0f/vCHdaYNAEAuer9vAAuAAQDYZWbNmlXVo0ePuYceeujoVCqVn2vra9WqVYwYMSIWLVoUlZWVBg5AIu23335x0003RVlZWU6uL51ON/z617++4fbbb3/TtAEAyFUCYAAA9phJkyatPeqoozbsu+++R+fi+goLC2P48OGxbNmy2LBhg4EDkCgDBgyIa6+9Nlq1apWza5w2bdq/XXLJJc+ZNgAAuez9AmDfAAYAYJc77bTTHn/rrbcezNX1FRUVxTXXXBNDhgwxbAASY8iQIXHNNddEUVFRzq5xwYIFvzv99NOfMG0AAJozATAAALvFEUcccc+GDRtm5ur6CgoK4sorr4wjjjjCsAFIwt/LceWVV0ZBQUHOrrG8vPypESNG/LdpAwDQ3AmAAQDYLaqrq9MXXXTRd2pra1fk7GY6Ly8uvvjiOPLIIw0cgKw1atSouPjiiyMvL3dfA23dunXxZz/72e83NDRkTBwAgObON4ABANhtli9fvr2mpuaFY4899uT8/PyWubjGVCoVgwYNikwmE4sWLTJ0ALLK6aefHueee26kUqmcXWN9fX3FDTfccM3UqVOrTBwAgObi/b4BLAAGAGC3evnll7cUFBS8cMQRR4zOy8trkYtrTKVSccABB0SnTp1i7ty5kck4fATA3lVYWBhXXHFFHHPMMTm9zsbGxuo777zzKz/72c9WmzoAAM2JABgAgL1qxowZlb169Xp98ODBJ6dSqfxcXWfPnj2jb9++8fe//z0aGxsNHoC9olWrVnH11VfHwIEDc3qd6XS64be//e2Nt9122wJTBwCguREAAwCw1z3xxBPlw4cPX9OvX79jIyJn76Hs2LFjDBw4MObMmRN1dXUGD8Ae1a5du7jxxhujT58+ub7U9JQpU779xS9+8XlTBwCgOXq/ADhPewAA2FPGjBkz9Y033vh1rq+zZ8+eceONN0bHjh0NHYA9pkuXLnHTTTdF9+7dc36tc+fO/eU555zzF1MHAID/SwAMAMAe9alPfernS5cufTjX19mlS5e49dZb48ADDzR0AHa7gQMHxje/+c3o1KlTzq/1rbfeemjEiBG/MnUAANg5ATAAAHvcsccee8/GjRtfyPV1FhcXx7XXXhsjRowwdAB2m8MPPzyuuuqqaNmyZc6vdePGjc8fffTR95g6AAC8NwEwAAB7XEVFReNxxx339crKyr/l+loLCgrisssui/PPPz9SqZThA7DLpFKpOP/88+PSSy+NgoKCnF/vpk2bXj7ssMNuqaysbDJ9AAB4bwJgAAD2isWLF9efddZZN1dXV7/ZHNZ7/PHHx5e//OUoKioyfAA+sRYtWsSXv/zlOP7445vFequrq98cM2bMN8rLyxtMHwAA3l9+24Oi585+kN4WUVteqEMAAOw2a9asaVi1atWs0aNHH1dQUNA619fbrVu3OOCAA2LevHlRX1/vAQDgYykrK4trrrkmDjrooGax3rq6uvKxY8de89RTT202fQAA+Ifi7o2RV7rznwmAAQDYq+bNm1ezevXqZ04++eTjCwoKSnN9ve3atYuRI0fG8uXLY+PGjR4AAD6S/v37x0033RRdu3ZtFuutr69fd9111335T3/6U4XpAwDA/xAAAwCQ1ebMmbMtlUq9fOSRR56Ul5eX83ckt2jRIkaMGBG1tbWxdOlSDwAAH8rxxx8fX/rSl5rN5wQaGxu33HXXXdf99Kc/XWn6AADwvwmAAQDIejNnzqzs2bPn64MHDz4plUrl5/p6U6lUHHLIIdGqVatYsGBBZDIZDwEAO5WXlxef/exn4/TTT49UKtUs1pxOp7f//ve//+o3vvGN1z0BAADwfwmAAQBIhEmTJpXvs88+8wYOHHhCKpUqaA5r3m+//WLAgAExd+5c3wUG4P8oKyuL6667LoYNG9Zs1pxOp7f/8Y9/vOmqq676qycAAAB2TgAMAEBiTJw4cc3BBx+85MADDzwulUrlNYc1t2/fPoYOHRqLFi2KLVu2eAgAiIiIffbZJ66//vro2bNns1lzJpNpnDBhwm1f/OIXn/cEAADAexMAAwCQKI8++ujy/fff/42DDjrohOZwHXRERHFxcRx11FHR2NgYb731locAoJkbPXp0XHHFFVFSUtJs1pxOpxsefvjhr15yySWzPAEAAPD+BMAAACTO+PHjVw0cOHDpAQcccGxzOQmcSqViwIAB0aVLl3jjjTeiqanJgwDQzBQVFcWll14aJ554YrP53m/EP07+Pv7447dffPHFMz0FAADwwQTAAAAk0iOPPLLs0EMPXbb//vs3mxA4IqJHjx4xZMiQePPNN2Pr1q0eBIBmonv37vEv//IvccABBzSrdWcymaYnnnji9s997nPPeAoAAODDEQADAJBYDz/88NJjjjlmY+/evY+KiGZzFKq0tDSGDx8eq1evjvXr13sQAHLcwIED45prrol27do1t6VnZsyY8YOzzjprqqcAAAA+PAEwAACJdv/99795zDHHVO6zzz5HRDMKgVu0aBGHHXZYtGzZMhYuXBjpdNrDAJBjCgoK4pxzzonzzz8/WrRo0dyWn37uuefuOuWUUyZ4EgAA4KMRAAMAkHi///3v5w8bNmxF3759j2lO10GnUqno27dvDB06NBYvXhxbtmzxMADkiJ49e8YNN9wQgwcPblbf+434x7XPU6ZM+fbpp58+2ZMAAAAfnQAYAICc8OCDDy4ZNmzYin79+jWrEDgionXr1nHEEUdEfX19LF261MMAkGCpVCpOOOGEuOKKK6JNmzbNbv07wt9vnXPOOX/xNAAAwMcjAAYAIGc89NBDS4YNG7a8X79+xza3EDg/Pz8OPvjg6NWrV8yfPz8aGho8EAAJU1JSEpdffnmccMIJkZ+f3+zWn8lkGp944olvffazn53maQAAgI9PAAwAQE556KGHlo4cOXJdnz59RqWa252ZEdG1a9cYNmxYLFu2LCorKz0QAAnRt2/fuO6662K//fZrluvPZDLpp59++rvnnHPO054GAAD4ZATAAADknD/96U+LDj300KX7779/s7sOOiKiuLg4jjzyyCgpKYk333wz0um0hwIgSxUUFMRnP/vZuPDCC6OkpKRZ9iCdTjc88sgjt5x//vnTPREAAPDJCYABAMhJDz/88NId3wQelUqlmt09mqlUKvr06RMHH3xwLFy4MLZt2+ahAMgynTt3jrFjx8bQoUOjGV5aERH/CH+feOKJ2y+88MLnPBEAALBrCIABAMhZDz300JIePXq8NmjQoGPz8vJaNMcetG3bNkaNGhVNTU2xZMkSDwVAFkilUjF69Oi48soro0OHDs22D01NTdt++9vf/stll132oqcCAAB2HQEwAAA5bdKkSeXdu3efM3jw4GYbAufn58eAAQOiV69esWDBgti+fbsHA2Avad26dVx66aVx/PHHR35+frPtQ2NjY/WvfvWrf7nuuute81QAAMCuJQAGACDnTZ48eW1jY+OMI4444uiCgoKS5tqHrl27xqhRo2Lbtm2xcuVKDwbAHpRKpWLUqFExduzY6NWrV7PuRX19/fo77rjjK9/61rcWejIAAGDXEwADANAsPP/881UbNmx45rjjjjuqsLCwrLn2obCwMAYNGhT77bdfLF68OGpraz0cALtZ+/bt44orrogTTzwxCgub9/uU2tralTfffPPVP/nJT1Z7MgAAYPcQAAMA0Gz87W9/27p27doZJ5xwwsjCwsK2zbkXnTp1ipEjR0Z1dbXTwAC70ciRI+Pqq6+OHj16NPte1NTULL/hhhuu/e1vf7vOkwEAALuPABgAgGbltdde2zpv3rynTznllKFFRUWdmnMvCgsL49BDD4399tsvFi1a5DQwwC709qnfk08+udmf+o2I2Lx587yLL774unHjxm30dAAAwO71fgFwat9zYsTOftC4LmLjq610DwCAxOrVq1fhs88++69du3Y9QTciGhoaYurUqTF58uRobGzUEICPqaCgIE499dQYPXq04HeH8vLyp4499tjvrly5skE3AABg9+swrDYKuuz8ZwJgAAByWuvWrfNeeumlm/fdd9+zdeMfVq9eHffff38sWbJEMwA+ov322y8uuugi1z2/w8KFC38/fPjwnzY0NGR0AwAA9gwBMAAAzd7zzz9/8aGHHnp1RKR0IyKTycTMmTPjz3/+c9TV1WkIwAcoKSmJ8847L0aMGBGplL9Kdki//PLL9xx77LEPagUAAOxZ7xcA+wYwAADNwn333Tfn+OOP39yrV6/DQwgcqVQqevfuHcOHD49169ZFRUWFhwTgPRxyyCExduzY6N+/v/B3h0wm0/jMM8/828knnzxONwAAYM97v28AC4ABAGg2fve7370xePDgJf369Ts6lUrl60hEcXFxjBgxInr06BFLly6N2tpaTQHYoUOHDvGFL3whzjzzzCguLtaQHZqammoeeOCBWz73uc9N1w0AANg7BMAAALDDww8/vKygoOC54cOHH1FQUFCqI//QrVu3OO6446K0tDQWL14cTU1NmgI0Wy1btoxzzjknLr300ujevbuGvENtbe2K22677arbbrvtDd0AAIC9RwAMAADv8Oyzz25avHjx0yeddNKQoqKiTjryD3l5edGnT58YOXJkbN26NVatWqUpQLNz+OGHx1e+8pUYMGBA5OXlacg7VFVV/e3CCy+8/oEHHvDdAAAA2MsEwAAA8C7z58+vefbZZ58+44wz+hcXF/fSkf/RsmXLGDJkSOyzzz6xdOnSqKmp0RQg53Xs2DG++MUvximnnBItW7bUkHdZt27dMyeffPI3Xn755W26AQAAe9/7BcCpfc+JETv7QeO6iI2vttI9AAByWmFhYer555//0sEHH3y5bvxfTU1N8fzzz8f48eOjurpaQ4Cc07p16zjzzDPjyCOPdOJ35zJ///vff3rMMcfc39DQkNEOAADIDh2G1UZBl53/TAAMAAARMWnSpM8cc8wxt6RSKdfg7ERNTU1MmTIlpk2bFg0NDRoCJF5hYWGccsopcdJJJ0VRUZGG7EQ6na6fOnXqd88555y/6AYAAGSX9wuAXQENAAAR8Yc//GHhfvvt98aAAQOOysvLkwS8S2FhYQwYMCCGDh0amzZtinXr1mkKkFiDBw+Oq666KoYOHRoFBQUashONjY1Vv//972/5whe+MEs3AAAg+/gGMAAAfAgTJkxYXV1dPf3II4/8VGFhYTsd+b9KS0vjsMMOi/79+8eaNWti8+bNmgIkRu/evePyyy+PU045JUpLSzXkPWzdunXxLbfccs33vve9hboBAADZyTeAAQDgI+jTp0+LJ5988us9evQ4TTfe3/z58+ORRx6JlStXagaQtXr16hXnnHNODBgwQDM+wKpVq5444YQTfrBy5Ur3/QMAQBbzDWAAAPgYnnnmmfOHDx9+fSqVytON95bJZGL27Nkxbty4qKio0BAga3Tu3DnOOuusGDp0aKRSKQ15/z/Lm2bNmvXDk08++THdAACA7OcbwAAA8DH85je/eX3//fd//cADDzzSd4HfWyqViu7du8cxxxwT7dq1i2XLlkV9fb3GAHtN27Zt49xzz42LL744evToIfz9AI2NjdUPPvjgLZ/97Gf/ohsAAJAMvgEMAAAf0/jx41dFxPOHHXbYiMLCwjIdeW95eXnRu3fvOOqoo6KgoCBWrlwZjY2NGgPsMcXFxXHKKafEl770pejbt2/k5bnA4YPU1tau+MEPfnD9LbfcMk83AAAgQf/94xvAAADwyQwePLjVo48++s1u3bqdpBsfTn19fTzzzDMxderU2LZtm4YAu01ZWVmceuqpceSRR0ZRkQsbPqyVK1c+/ulPf/pHixcvdm0DAAAkjG8AAwDALvLkk0+edeSRR96USqVcl/MhCYKB3eXtE7/HHnus4PcjyGQyDbNmzfoP3/sFAIDk8g1gAADYRX7/+98v6NGjx2uHHHLIyPz8fL8x+SEUFBREv3794qijjoq8vLxYtWqVq6GBT6Rly5ZxwgknxBVXXBEHHXRQFBQUaMqH1NDQsOG3v/3t1z7/+c8/oxsAAJBcroAGAIBd7Lzzzut4991339m2bdvBuvHR1NTUxLPPPhvTpk2LLVu2aAjwoZWVlcXxxx8fxxxzTBQXF2vIR1RVVfW3a6+99vZHHnlkg24AAECyuQIaAAB2g06dOhVMmzZtbN++fT8XESkd+WgaGhri+eefjyeffDI2bJBFAO/7522cdNJJccQRR0RhodvKPobMokWL/nTsscf+pLKyskk7AAAg+QTAAACwG/3hD38Ydfrpp99WUFDQRjc+unQ6Ha+++mpMnTo1Vq5cqSHAP/Xq1StOOeWUGDp0aOTl5WnIx9DY2Fg1YcKEOy666KKZugEAALlDAAwAALvZaaed1vbee+/9docOHUbqxse3fPnymDZtWrz88suRTqc1BJqhvLy8OOyww+L444+P3r17a8gnsHHjxue//OUvf3fSpElVugEAALlFAAwAAHtAYWFh6qmnnjpv+PDh16RSKXeUfgIbNmyIGTNmxHPPPRc1NTUaAs1AcXFxjBo1Ko4++ujo2LGjhnwCmUym4ZVXXvl/J5100kMNDQ0ZHQEAgNzzfgFwftuDoufOfpDeFlFb7p0VAAB8WOl0On7zm9+8Xlpa+uLgwYM/VVhYWKYrH09xcXEMGDAgjj322GjTpk2sXbs2amtrNQZyUIcOHeKMM86ISy+9NAYOHBjFxcWa8gnU1tau+slPfnLjxRdf/IybFAAAIHcVd2+MvNKd/8wJYAAA2A1OPPHENvfdd9+tnTp1Olo3PrnGxsb429/+Fs8++2wsWrRIQyAH9OvXL44++ugYNmxYFBQUaMguUFFR8cwXv/jFf5s+ffoW3QAAgNzmCmgAANhLHn744RNGjx799YKCgta6sWusX78+Zs6cGc8//3xUV1drCCRIaWlpHHnkkXHUUUdF586dNWQXaWxs3DJ16tS7PvvZz/5FNwAAoHkQAAMAwF50ySWXdP3+97//rXbt2g3VjV2nsbExXnvttXjuuedi/vz5GgJZbMCAATFq1KgYPHiw0767WFVV1atf//rXv/e73/1urW4AAEDzIQAGAIC9rF27dvlTp0699OCDD740lUrl68iutXz58nj++efj5ZdfjpqaGg2BLFBSUhLDhw+PI444Inr37q0hu1gmk2mcN2/efSeeeOJvq6urfewXAACaGQEwAABkia9//ev73Xjjjf9aWlraXzd2vXQ6HW+++WY899xz8dprr0VjY6OmwB5UUFAQgwcPjlGjRsUBBxwQeXl5mrIbVFdXL/zP//zPf/3BD36wRDcAAKB5EgADAEAWOfjgg1v9+c9/vrZ3795jIiKlI7tHZWVlvPjii/HCCy/EunXrNAR2o65du8bIkSPj8MMPj7Zt22rI7pNZunTpn88888z/t3jx4nrtAACA5ksADAAAWejuu+8eePHFF9/WqlUrd6PuZuXl5fHqq6/GSy+9FOvXr9cQ2AU6d+4cI0aMiGHDhkW3bt00ZDerqalZ9tvf/vbOm266aa5uAAAAAmAAAMhS/fr1K3r44Ycv79+//4WpVMpdqXvA8uXL46WXXoqXX345qqurNQQ+grKyshg+fHiMGDHCd333kEwmk164cOEfzj777F8sXbp0u44AAAARAmAAAMh6P/3pT4d97nOf+2bLli176Mae0dDQEHPnzo2//vWvMXfu3Ni+Xa4CO9OyZcsYNGhQDBs2LA455JAoKCjQlD2ktrZ21R//+Mc7rr322r/rBgAA8E4CYAAASIA+ffq0ePTRR69wGnjPS6fTsXTp0nj11VedDIaIaNu2bQwbNiyGDRsWffr0ibw8fyTtSZlMpuG11177+ZlnnvmnioqKRh0BAADeTQAMAAAJ8uMf//jQCy644JutWrXaRzf2vLdPBs+ePTvmzp0bdXV1mkKzUFZWFoMHD45hw4ZF//79Iz8/X1P2gpqammX333//nTfccINv/QIAAO9JAAwAAAnTrl27/HHjxp37qU996qq8vDwb870kk8nEihUrYu7cuTFnzpxYsWJFZDIZjSEnpFKp6Nu3bwwbNiwGDRoUHTt21JS9qKmpqfbVV1/92ZgxY/5cWVnZpCMAAMD7EQADAEBCffnLX+5x++23f7V9+/aH68bet2XLlnjjjTdizpw5MW/evKivr9cUEqVly5Zx8MEHx6BBg+KQQw6J0tJSTckCGzdufPG73/3uv//iF79YoxsAAMCHIQAGAIAEKywsTE2cOPGMkSNHXlNQUNBaR7JDXV1dvPnmm/HGG2/EG2+8EevXr9cUslKXLl3ioIMOioMOOigOOOCAKCoq0pQs0djYuGXmzJk/PvPMMyc2NDS4XgAAAPjQBMAAAJADjjzyyNY/+9nPrujbt++5EZGnI9mluro6Fi5cGPPnz4958+ZFZWWlprBXtGvXLg455JAYMGBA9O/fP1q39nsjWSj91ltv/fmqq676xaxZs6q1AwAA+KgEwAAAkEN++ctfjhgzZsyNrVq16q0b2SmdTsfKlStj0aJFsXDhwli8eHFs27ZNY9gtSkpKol+/ftG/f//Yf//9o1evXpGX53dEslVNTc3yRx999EdXXnnlK7oBAAB8XAJgAADIMd26dSt8+OGHPzd48ODL8vPzbdyzXCaTiTVr1sTChQtj0aJFsWjRotiyZYvG8LGUlZVF//79/xn6du/ePVKplMZkuaampprXXnvtV2PGjHmgoqKiUUcAAIBPQgAMAAA56rjjjiv7r//6r8tdC508mzdvjuXLl8eKFSti+fLlsXjx4qipqdEY/pfi4uLo169f9O7dO/bZZ5/Yd999o6ysTGMSJJPJpJcsWfLn66677pfTp0/3mx8AAMAuIQAGAIAc99Of/nTIueeee3NpaWlf3UimxsbGWLlyZSxdujSWLVsWy5cvj3Xr1kUmk9GcZiKVSkWXLl1in332iT59+kSfPn2iV69eUVBQoDkJtXXr1sUPPvjgj6699tq/6wYAALArCYABAKAZaNeuXf64cePOGTp06BUFBQWtdST56uvrY+XKlf88KbxixYpYu3ZtpNNpzUm4vLy86Nq1a+yzzz7//KdXr17RsmVLzckBjY2NW/7617/+4pxzznm0srKySUcAAIBdTQAMAADNyIknntjmnnvuuXzfffcdk0qlHB3MMdu3b481a9bEmjVrYu3atbF27dooLy+PDRs2CIazUF5eXnTs2DG6desWXbt2jW7dukW3bt2iR48eUVhYqEE5JpPJNC5ZsuRR1z0DAAC7mwAYAACaoa9+9av7Xnfdddd16NDhCN3IfY2Njf8MhNetWxfr1q2LioqKWLduXWzbtk2DdrPS0tLo3LnzP//p0qVLdO3aNbp27eoK52Ziw4YNM//rv/7rxz/60Y+W6wYAALC7CYABAKAZ++UvfznirLPOuq64uNj3gZupmpqaWL9+/T//qaioiMrKyqisrIxNmzZFY2OjJn2AgoKCaN++fbRr1y7at28fHTt2jC5dukSnTp2ic+fOUVxcrEnN1NatW98aP378PVdcccXLugEAAOwpAmAAAGjm2rVrl//ggw+eOWLEiCsLCwvb6gjvtHnz5n+GwZs2bYrKysqorq6OLVu2xJYtW6K6ujqqq6sjk8nk3NpTqVS0bt06WrduHWVlZdGmTZsoLS39X2Fvu3btok2bNh4U/peGhobKl1566efnnHPO+OrqavevAwAAe5QAGAAAiIiIoUOHFt97770XHHjggRfk5+c7ssiHlk6n/xkEV1dXR01Nzfv+k8lkora2NtLpdNTX10dTU1PU1dXt0u8U5+XlRcuWLSM/Pz+KiooiLy8vWrVqFalUKoqLi3f6T0lJSbRq1eqfgW9paWnk5eUZMB9aU1NTzYIFC/745S9/+Y+zZ8+u0REAAGBvEAADAAD/y2mnndb2rrvuurRPnz5n5+XlFeoIe9LbgfDbtm/f/r7XUBcUFESLFi3++b/fDnxhT8pkMg1LliwZd8stt/xq0qRJVToCAADsTQJgAABgp0477bS2d95554X777//5wTBAP9XJpNpWLhw4QO33nrrHwS/AABAtni/ADi/7UHRc2c/SG+LqC33/gcAAHLZokWL6u69995X0un0swcddFCnkpKS3roC8A8VFRUz/7//7/+77aKLLpq6aNGiOh0BAACyRXH3xsgr3fnPBMAAAEDMnDmz8u67736qqalpWr9+/Ypbt27dN5VKpXQGaG4ymUx6zZo1U+65555/Peeccx6cOXNmpa4AAADZRgAMAAB8KDNnzqz88Y9//Gw6nZ4uCAaak7eD37vvvvtfzz///McEvwAAQDYTAAMAAB+JIBhoLgS/AABAEgmAAQCAj+XtILisrOyFvn37diwuLu4VEYJgIBdkKioqnrv33nu/PWbMmEcEvwAAQJK8XwCc2vecGLGzHzSui9j4aivdAwAA/unqq6/u8ZWvfOX8Pn36nJWXl9dCR4CkSafT9UuXLh3/X//1Xw/84he/WKMjAABAEnUYVhsFXXb+MwEwAADwkZ1xxhntb7/99rMPPPDA8/Pz81vrCJDtmpqaqhcsWPDgd77znUcmTpzotC8AAJBoAmAAAGC3GD58eMkPf/jDzwwePPjioqKijjoCZJv6+voNr7322u9vvPHGx2fPnl2jIwAAQC4QAAMAALvV0KFDi++5556zDjnkkPOKioq66giwt9XV1a19/fXXH7z++uvHC34BAIBcIwAGAAD2iFatWuXdc889w0455ZTzO3bseJSOAHtYZsOGDbOmTJny4PXXX/9qbW1tWksAAIBcJAAGAAD2uH/913/tf/7555/dq1ev0/Ly8lroCLC7pNPp+pUrV05+4IEHHvnOd76zSEcAAIBcJwAGAAD2mjPOOKP97bfffvYBBxzw2YKCgjY6AuwqjY2NVW+++eafv/e97z06YcKETToCAAA0FwJgAABgrxs+fHjJ97///dGDBg0aU1paur+OAB9XdXX1wtdee+3Rr371q1Nfe+21Wh0BAACaGwEwAACQVb761a/ue8EFF3y6b9++ZxUUFLTWEeCDNDY2bnnrrbfG/+EPf5j4ox/9aLmOAAAAzZkAGAAAyEpDhw4t/sEPfnDy4MGDz27dunV/HQHerbq6+s2XX375weuuu+7ppUuXbtcRAAAAATAAAJDlCgsLU3ffffeQ0aNHn9G1a9fj8vLyinQFmq90Ol1XXl4+bcqUKROuvfbav+sIAADA/yYABgAAEqNPnz4t/v3f/33UyJEjz2rfvv2nIiKlK9AsZDZt2vTXF1544bGvfe1rzzntCwAA8N4EwAAAQCJddNFFXa6++uqTDzzwwLNbtmzZTUcg99TV1a1ZsGDBuJ/+9KdP3n///et0BAAA4IMJgAEAgETr1q1b4d13333k4YcffmqHDh2OyMvLK9QVSK50Ot2wcePGWbNmzZp8/fXXz6qoqGjUFQAAgA9PAAwAAOSMo48+uvWtt956/CGHHHJKu3btBkdEnq5AIqQrKytfmzdv3uQ777xz+owZM6q1BAAA4OMRAAMAADnpuOOOK/vGN75x/CGHHHJa27ZtB4bvBUO2yVRVVc2dN2/epO9///vTpk+fvkVLAAAAPjkBMAAAkPNuu+22vmedddZJffr0Oa5Vq1a9dQT2ntra2uXLly+f/uijjz51xx13vKUjAAAAu5YAGAAAaFa+9KUvdbv44ouP7t+//wlOBsMekamqqpq7cOHCv/z+97+fcd9995VrCQAAwO4jAAYAAJqtSy65pOtll112jDAYdrl0VVXVvIULF/7lV7/61bO/+93v1moJAADAniEABgAAiIirr766x/nnnz9q//33P7JNmzZDUqlUga7Ah5fJZBoqKyv/vnjx4uf+9Kc/zbr33ntX6woAAMCeJwAGAAB4l379+hV97WtfGzRy5MhRPXv2PLaoqKizrsD/VV9fv37VqlXPvPDCC8/9+7//+5zFixfX6woAAMDeJQAGAAB4H61bt8678847Bx599NFHde/efURpaen+4apomq/M1q1bF69Zs+bF5557btY3v/nNOdXV1WltAQAAyB4CYAAAgI9g8ODBrcaOHXvI8OHDD+vevfvw1q1bHxACYXJXprq6+s01a9a88sorr7z8k5/8ZN5rr71Wqy0AAADZSwAMAADwCVx//fX7nHHGGYf169dvePv27Yfm5+e31hWSrLGxsXrjxo2vvvXWWy+PHz/+lR//+McrdQUAACA5BMAAAAC70Je//OUe55xzzvA+ffoM7tix45CioqKuukI2q6+vX7t27doXFy9ePGfixImv3Xvvvat1BQAAILkEwAAAALvRl7/85R6f+cxnBvfr129Qly5dDm/ZsqVAmL2qrq5u7bp16wS+AAAAOUoADAAAsIe0atUq75prrtnn2GOPPXi//fY7uH379oeUlpb2TaVS+brDbpKuqalZtnHjxnlvvfXW3GeffXbef/3Xfy2vra1Naw0AAEBuEgADAADsRQceeGDLq6+++oAhQ4Yc3LNnz4Pbtm17sGuj+biampqqq6qqXi8vL583Z86ceb/85S/nvfjii1t1BgAAoPkQAAMAAGSZoUOHFn/xi1/cf9CgQQf26NHjwHbt2h3YqlWr3qlUKk932CFdU1OzvLKycsHq1asXzJkzZ8Gf//znJTNmzKjWGgAAgOZNAAwAAJAAxx13XNkFF1xw4MEHH3xA165dDywtLd23pKRkn1QqVag7uS2TyTRs27ZtRXV19dJ169YtfOONNxZOmDBh4YQJEzbpDgAAAO8mAAYAAEiw8847r+OJJ57Yp3///vt16dKlT5s2bfZr3bp1v/z8/GLdSZampqaa6urqxZs3b16ybt26pQsXLlzy9NNPL33ooYc26A4AAAAflgAYAAAgx7Rr1y7/kksu6TFkyJCe++67b89OnTr1Kisr61VcXNyzZcuW3VKpVL4u7R2ZTKaprq6uvKamZtWWLVtWVlRUrFy6dOnK2bNnr7r//vvXVFZWNukSAAAAn4QAGAAAoBnp1KlTwec+97luQ4cO7bnPPvv0aNeuXafWrVt3Li4u7tqyZcvORUVFnfLy8lro1MeTTqe319fXr6+rq6uoqalZW11dvb6ysnL9ihUrVr/66qurHnzwwbUVFRWNOgUAAMDuIgAGAADgfznjjDPaH3bYYZ369OnTuUuXLp3Kysral5SUtC0uLu5YVFTUrqioqG2LFi065OfnlzaXnjQ1NW3dvn37xvr6+qr6+vrKmpqaDdu2bavasmXLpnXr1lUsXbp0/Ysvvrh+4sSJlZ4gAAAA9iYBMAAAAB9Lr169CkeNGtXuoIMOatexY8ey9u3bl7Zp06Z1SUlJWXFxcetWrVq1btGiRVlRUVHrwsLC1hGRX1hYWBoR+QUFBSV5eXkFeXl5u/0/LtPpdG06nW5sbGzcFhFNDQ0NW3f83+r6+vrq7du3b6mtra2uqamp3rZtW/XmzZurN23aVL1hw4YtCxYsqJo1a1bl0qVLt5s4AAAASSAABgAAYK/q169fUffu3Vvss88+xSUlJQVv//8LCwtT3bp1+8BTxuXl5VsbGhoyb//vbdu2Na5YsaJmzZo12xcvXlyvwwAAADQn7xcAF2gPAAAAu9vixYvrdwS11boBAAAAu0+eFgAAAAAAAADkBgEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4o0AIAAAAAAACA5GhoLIyCxoaIiEilIpNXGE1v/0wADAAAAAAAAJAghQUN/0x6MxGppvT/5L6ugAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAIb/v5272ZHiusM4/FZ1NUkz9sQwOF4EyZJtpJCwysa5jSy4n1xPEqRIuQFvvfGSgIwBOzGRQAQERnx0d1UW0cgWGvKxsMGvnmfVdc7/1OJsf+oCAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoMY3JP//9K8My551lzpAk293a7QAAAAAAAAD8iIw3r+SL7TpPxuSt4/ibJJuz20QDBgAAAAAAAHhzrJPp6NvHYcyyjLl7dJTPbl/Jp6sPLufSsM+5ec7q5YOrF0OeP/SVaAAAAAAAAIA3weH7u6zfm79dWDIMSw6225w785vsx3XyzasOby5ssz69c4sAAAAAAAAAr9n69C6bC9sT93a7rKdnORin5Otxynzi1JQcfiwCAwAAAAAAALxO69O7HH68TaaT98cp85R8vbp3Nfszv8q0LHn7xMF1sjk/ZzUPmZ/MmWefhAYAAAAAAAD4oayPdjn7223Gn7x6ZrXPnetX8mBKkpv3cufDd/Pufn5FL56SzcVtNheT3dNt8tQlAwAAAAAAAHyv1sm0ySv/9XtsNWZ3I/lHkgzHi7/4XY7WYz5yiwAAAAAAAAA/Ivtcv/3nPEyS1fHa42t5+vNLyX7JoRsCAAAAAAAAePPt1/nbV3/KvePn1Xc371/NYxEYAAAAAAAA4M0yTHk2rvNo2WdzvHZqzN9v/SF3vju3evng/at5fPDLPDu1yuGyZHSVAAAAAAAAAK/XOGe4ueSvZ4e8M8xZbVe5ceuPufvy3Oqkw4+v5emDX+fuuTlLhhwsEYIBAAAAAAAAXpclGR8OuXP0TR4cPM/9z/+SRyfNDf/1TZezOp/87KdjzizJZkhO7edMy/w/nAUAAAAAAADg/zaMWcZkP8/ZLsmLacr2/MV8+cnvs/tP5/4FmLjAq1ifcioAAAAASUVORK5CYII=",
2p=t.objectName?OD(t.objectName):"Media ".concat(e._slideObjects.filter((function(e){return e._type===_D.media})).length),h={_type:_D.media};if(!c&&!s&&"online"!==u)throw new Error("addMedia() error: either `data` or `path` are required!");if(s&&!s.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')");if(d&&!d.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `cover` value lacks a base64 header! Ex: 'data:image/png;base64,iV[...]')");if("online"===u&&!l)throw new Error("addMedia() error: online videos require `link` value");if(n=t.extn||(s?s.split(";")[0].split("/")[1]:c.split(".").pop())||"mp3",h.mtype=u,h.media=c||"preencoded.mov",h.options={},h.options.x=r,h.options.y=o,h.options.w=a,h.options.h=i,h.options.objectName=p,"online"===u){var f=WD(e);e._relsMedia.push({path:c||"preencoded"+n,data:"dummy",type:"online",extn:n,rId:f,Target:l}),h.mediaRid=f,e._relsMedia.push({path:"preencoded.png",data:d,type:"image/png",extn:"png",rId:WD(e),Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".png")})}else{var m=e._relsMedia.filter((function(e){return e.path&&e.path===c&&e.type===u+"/"+n&&!e.isDuplicate}))[0];f=WD(e),e._relsMedia.push({path:c||"preencoded"+n,type:u+"/"+n,extn:n,data:s||"",rId:f,isDuplicate:!!(null===m||void 0===m?void 0:m.Target),Target:(null===m||void 0===m?void 0:m.Target)?m.Target:"../media/media-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".").concat(n)}),h.mediaRid=f,e._relsMedia.push({path:c||"preencoded"+n,type:u+"/"+n,extn:n,data:s||"",rId:WD(e),isDuplicate:!!(null===m||void 0===m?void 0:m.Target),Target:(null===m||void 0===m?void 0:m.Target)?m.Target:"../media/media-".concat(e._slideNum,"-").concat(e._relsMedia.length+0,".").concat(n)}),e._relsMedia.push({path:"preencoded.png",type:"image/png",extn:"png",data:d,rId:WD(e),Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".png")})}e._slideObjects.push(h)}(this,e),this},e.prototype.addNotes=function(e){return function(e,t){e._slideObjects.push({_type:_D.notes,text:[{text:t}]})}(this,e),this},e.prototype.addShape=function(e,t){return XD(this,e,t),this},e.prototype.addTable=function(e,t){return this._newAutoPagedSlides=function(e,t,n,r,o,a,i){var s=[e],l=n&&"object"===typeof n?n:{};if(l.objectName=l.objectName?OD(l.objectName):"Table ".concat(e._slideObjects.filter((function(e){return e._type===_D.table})).length),null===t||0===t.length||!Array.isArray(t))throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");if(!t[0]||!Array.isArray(t[0]))throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");var c=[];t.forEach((function(e){var t=[];Array.isArray(e)?e.forEach((function(e){var n={_type:_D.tablecell,text:"",options:"object"===typeof e&&e.options?e.options:{}};"string"===typeof e||"number"===typeof e?n.text=e.toString():e.text&&("string"===typeof e.text||"number"===typeof e.text?n.text=e.text.toString():e.text&&(n.text=e.text),e.options&&"object"===typeof e.options&&(n.options=e.options)),n.options.border=n.options.border||l.border||[{type:"none"},{type:"none"},{type:"none"},{type:"none"}];var r=n.options.border;Array.isArray(r)||"object"!==typeof r||(n.options.border=[r,r,r,r]),n.options.border[0]||(n.options.border[0]={type:"none"}),n.options.border[1]||(n.options.border[1]={type:"none"}),n.options.border[2]||(n.options.border[2]={type:"none"}),n.options.border[3]||(n.options.border[3]={type:"none"}),[0,1,2,3].forEach((function(e){n.options.border[e]={type:n.options.border[e].type||QR,color:n.options.border[e].color||XR,pt:"number"===typeof n.options.border[e].pt?n.options.border[e].pt:KR}})),t.push(n)})):(console.log("addTable: tableRows has a bad row. A row should be an array of cells. You provided:"),console.log(e)),c.push(t)})),l.x=DD(l.x||(0===l.x?0:HR/2),"X",o),l.y=DD(l.y||(0===l.y?0:HR/2),"Y",o),l.h&&(l.h=DD(l.h,"Y",o)),l.fontSize=l.fontSize||tD,l.margin=0===l.margin||l.margin?l.margin:JR,"number"===typeof l.margin&&(l.margin=[Number(l.margin),Number(l.margin),Number(l.margin),Number(l.margin)]),l.color||(l.color=l.color||eD),"string"===typeof l.border?(console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"),l.border=null):Array.isArray(l.border)&&[0,1,2,3].forEach((function(e){l.border[e]=l.border[e]?{type:l.border[e].type||QR,color:l.border[e].color||XR,pt:l.border[e].pt||KR}:{type:"none"}})),l.autoPage="boolean"===typeof l.autoPage&&l.autoPage,l.autoPageRepeatHeader="boolean"===typeof l.autoPageRepeatHeader&&l.autoPageRepeatHeader,l.autoPageHeaderRows="undefined"===typeof l.autoPageHeaderRows||isNaN(Number(l.autoPageHeaderRows))?1:Number(l.autoPageHeaderRows),l.autoPageLineWeight="undefined"===typeof l.autoPageLineWeight||isNaN(Number(l.autoPageLineWeight))?0:Number(l.autoPageLineWeight),l.autoPageLineWeight&&(l.autoPageLineWeight>1?l.autoPageLineWeight=1:l.autoPageLineWeight<-1&&(l.autoPageLineWeight=-1));var u=sD;if(r&&"undefined"!==typeof r._margin&&(Array.isArray(r._margin)?u=r._margin:isNaN(Number(r._margin))||(u=[Number(r._margin),Number(r._margin),Number(r._margin),Number(r._margin)])),l.colW){var d=c[0].reduce((function(e,t){var n;return(null===(n=null===t||void 0===t?void 0:t.options)||void 0===n?void 0:n.colspan)&&"number"===typeof t.options.colspan?e+=t.options.colspan:e+=1,e}),0);"string"===typeof l.colW||"number"===typeof l.colW||l.colW&&Array.isArray(l.colW)&&1===l.colW.length&&d>1?(l.w=Math.floor(Number(l.colW)*d),l.colW=null):l.colW&&Array.isArray(l.colW)&&l.colW.length!==d&&(console.warn("addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths."),l.colW=null)}else l.w?l.w=DD(l.w,"X",o):l.w=Math.floor(o._sizeW/HR-u[1]-u[3]);l.x&&l.x<20&&(l.x=MD(l.x)),l.y&&l.y<20&&(l.y=MD(l.y)),l.w&&l.w<20&&(l.w=MD(l.w)),l.h&&l.h<20&&(l.h=MD(l.h)),c.forEac
2h((function(e){e.forEach((function(t,n){"number"===typeof t||"string"===typeof t?e[n]={_type:_D.tablecell,text:String(e[n]),options:l}:"object"===typeof t&&("number"===typeof t.text?e[n].text=e[n].text.toString():"undefined"!==typeof t.text&&null!==t.text||(e[n].text=""),e[n].options=t.options||{},e[n]._type=_D.tablecell)}))}));var p=[];return l&&!l.autoPage?(ZD(e,c),e._slideObjects.push({_type:_D.table,arrTabRows:c,options:Object.assign({},l)})):(l.autoPageRepeatHeader&&(l._arrObjTabHeadRows=c.filter((function(e,t){return t<l.autoPageHeaderRows}))),GD(c,l,o,r).forEach((function(t,n){i(e._slideNum+n)||s.push(a({masterName:(null===r||void 0===r?void 0:r._name)||null})),n>0&&(l.y=MD(l.autoPageSlideStartY||l.newSlideStartY||u[0]));var o=i(e._slideNum+n);l.autoPage=!1,ZD(o,t.rows),o.addTable(t.rows,Object.assign({},l)),n>0&&p.push(o)}))),p}(this,e,t,this._slideLayout,this._presLayout,this.addSlide,this.getSlide),this},e.prototype.addText=function(e,t){return KD(this,"string"===typeof e||"number"===typeof e?[{text:e,options:t}]:e,t,!1),this},e}();function eL(e,t){return jR(this,void 0,void 0,(function(){var n;return FR(this,(function(r){switch(r.label){case 0:return n=e.data,[4,new Promise((function(r,o){var a,i,s=new(OR()),l=2*(n.length-1)+1,c=(null===(i=null===(a=n[0])||void 0===a?void 0:a.labels)||void 0===i?void 0:i.length)>1;s.folder("_rels"),s.folder("docProps"),s.folder("xl/_rels"),s.folder("xl/tables"),s.folder("xl/theme"),s.folder("xl/worksheets"),s.folder("xl/worksheets/_rels"),s.file("[Content_Types].xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/> <Default Extension="xml" ContentType="application/xml"/> <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/> <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/> <Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/> <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/> <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/> <Override PartName="/xl/tables/table1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"/> <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/> <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>\n'),s.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>\n'),s.file("docProps/app.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company>
2</Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>\n'),s.file("docProps/core.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>PptxGenJS</dc:creator><cp:lastModifiedBy>PptxGenJS</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">'+(new Date).toISOString()+'</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">'+(new Date).toISOString()+"</dcterms:modified></cp:coreProperties>"),s.file("xl/_rels/workbook.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>'),s.file("xl/styles.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><numFmts count="1"><numFmt numFmtId="0" formatCode="General"/></numFmts><fonts count="4"><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="10"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="18"/><color indexed="8"/><name val="Arial"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><dxfs count="0"/><tableStyles count="0"/><colors><indexedColors><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ffff0000"/><rgbColor rgb="ff00ff00"/><rgbColor rgb="ff0000ff"/><rgbColor rgb="ffffff00"/><rgbColor rgb="ffff00ff"/><rgbColor rgb="ff00ffff"/><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ff878787"/><rgbColor rgb="fff9f9f9"/></indexedColors></colors></styleSheet>\n'),s.file("xl/theme/theme1.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic Light"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="DengXian Light"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/>
2<a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="DengXian"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>'),s.file("xl/workbook.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><fileVersion appName="xl" lastEdited="7" lowestEdited="6" rupBuild="10507"/><workbookPr/><bookViews><workbookView xWindow="0" yWindow="500" windowWidth="20960" windowHeight="15960"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="0" concurrentCalc="0"/></workbook>\n'),s.file("xl/worksheets/_rels/sheet1.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" Target="../tables/table1.xml"/></Relationships>\n');var u='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(e.opts._type===SD.BUBBLE||e.opts._type===SD.BUBBLE3D)u+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(l,'" uniqueCount="').concat(l,'">');else if(e.opts._type===SD.SCATTER)u+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(n.length,'" uniqueCount="').concat(n.length,'">');else if(c){var d=n.length;
2n[0].labels.forEach((function(e){return d+=e.filter((function(e){return e&&""!==e})).length})),u+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(d,'" uniqueCount="').concat(d,'">'),u+="<si><t/></si>"}else{var p=n.length+n[0].labels.length*n[0].labels[0].length+n[0].labels.length,h=n.length+n[0].labels.length*n[0].labels[0].length+1;u+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(p,'" uniqueCount="').concat(h,'">'),u+='<si><t xml:space="preserve"></t></si>'}e.opts._type===SD.BUBBLE||e.opts._type===SD.BUBBLE3D?n.forEach((function(e,t){0===t?u+="<si><t>X-Axis</t></si>":(u+="<si><t>".concat(OD(e.name||"Y-Axis".concat(t)),"</t></si>"),u+="<si><t>".concat(OD("Size".concat(t)),"</t></si>"))})):n.forEach((function(e){u+="<si><t>".concat(OD((e.name||" ").replace("X-Axis","X-Values")),"</t></si>")})),e.opts._type!==SD.BUBBLE&&e.opts._type!==SD.BUBBLE3D&&e.opts._type!==SD.SCATTER&&n[0].labels.slice().reverse().forEach((function(e){e.filter((function(e){return e&&""!==e})).forEach((function(e){u+="<si><t>".concat(OD(e),"</t></si>")}))})),u+="</sst>\n",s.file("xl/sharedStrings.xml",u);var f='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(e.opts._type===SD.BUBBLE||e.opts._type===SD.BUBBLE3D){f+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(aL(l)).concat(l,'" totalsRowShown="0">'),f+='<tableColumns count="'.concat(l,'">');var m=1;n.forEach((function(e,t){0===t?f+='<tableColumn id="'.concat(t+1,'" name="X-Values"/>'):(f+='<tableColumn id="'.concat(t+m,'" name="').concat(e.name,'"/>'),m++,f+='<tableColumn id="'.concat(t+m,'" name="Size').concat(t,'"/>'))}))}else e.opts._type===SD.SCATTER?(f+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(aL(n.length)).concat(n[0].values.length+1,'" totalsRowShown="0">'),f+='<tableColumns count="'.concat(n.length,'">'),n.forEach((function(e,t){f+='<tableColumn id="'.concat(t+1,'" name="').concat(0===t?"X-Values":"Y-Value ").concat(t,'"/>')}))):(f+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(aL(n.length+n[0].labels.length)).concat(n[0].labels[0].length+1,'\'" totalsRowShown="0">'),f+='<tableColumns count="'.concat(n.length+n[0].labels.length,'">'),n[0].labels.forEach((function(e,t){f+='<tableColumn id="'.concat(t+1,'" name="Column').concat(t+1,'"/>')})),n.forEach((function(e,t){f+='<tableColumn id="'.concat(t+n[0].labels.length+1,'" name="').concat(OD(e.name),'"/>')})));f+="</tableColumns>",f+='<tableStyleInfo showFirstColumn="0" showLastColumn="0" showRowStripes="1" showColumnStripes="0"/>',f+="</table>",s.file("xl/tables/table1.xml",f);var g='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(g+='<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',e.opts._type===SD.BUBBLE||e.opts._type===SD.BUBBLE3D?g+='<dimension ref="A1:'.concat(aL(l)).concat(n[0].values.length+1,'"/>'):e.opts._type===SD.SCATTER?g+='<dimension ref="A1:'.concat(aL(n.length)).concat(n[0].values.length+1,'"/>'):g+='<dimension ref="A1:'.concat(aL(n.length+1)).concat(n[0].values.length+1,'"/>'),g+='<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="B1" sqref="B1"/></sheetView></sheetViews>',g+='<sheetFormatPr baseColWidth="10" defaultRowHeight="16"/>',e.opts._type===SD.BUBBLE||e.opts._type===SD.BUBBLE3D){g+="<sheetData>",g+='<row r="1" spans="1:'.concat(l,'">'),g+='<c r="A1" t="s"><v>0</v></c>';for(var A=1;A<l;A++)g+='<c r="'.concat(aL(A+1),'1" t="s"><v>').concat(A,"</v></c>");g+="</row>",n[0].values.forEach((function(e,t){g+='<row r="'.concat(t+2,'" spans="1:').concat(l,'">'),g+='<c r="A'.concat(t+2,'"><v>').concat(e,"</v></c>");for(var r=2,o=1;o<n.length;o++)g+='<c r="'.concat(aL(r)).concat(t+2,'"><v>').concat(n[o].values[t]||"","</v></c>"),r++,g+='<c r="'.concat(aL(r)).concat(t+2,'"><v>').concat(n[o].sizes[t]||"","</v></c>"),r++;g+="</row>"}))}else if(e.opts._type===SD.SCATTER){g+="<sheetData>",g+='<row r="1" spans="1:'.concat(n.length,'">');for(A=0;A<n.length;A++)g+='<c r="'.concat(aL(A+1),'1" t="s"><v>').concat(A,"</v></c>");g+="</row>
2",n[0].values.forEach((function(e,t){g+='<row r="'.concat(t+2,'" spans="1:').concat(n.length,'">'),g+='<c r="A'.concat(t+2,'"><v>').concat(e,"</v></c>");for(var r=1;r<n.length;r++)g+='<c r="'.concat(aL(r+1)).concat(t+2,'"><v>').concat(n[r].values[t]||0===n[r].values[t]?n[r].values[t]:"","</v></c>");g+="</row>"}))}else if(g+="<sheetData>",c){g+='<row r="1" spans="1:'.concat(n.length+n[0].labels.length,'">');for(A=0;A<n[0].labels.length;A++)g+='<c r="'.concat(aL(A+1),'1" t="s"><v>0</v></c>');for(A=n[0].labels.length-1;A<n.length+n[0].labels.length-1;A++)g+='<c r="'.concat(aL(A+n[0].labels.length),'1" t="s"><v>').concat(A,"</v></c>");g+="</row>";var v=n.length,y=n[0].labels[0].length,b=n[0].labels.length,x=function(e){g+='<row r="'.concat(e+2,'" spans="1:').concat(v+b,'">');var t=v,r=n[0].labels.slice().reverse();r.forEach((function(n,o){if(n[e]){var a=0===o?1:r[o-1].filter((function(e){return e&&""!==e})).length;t+=a,g+='<c r="'.concat(aL(e+1+o)).concat(e+2,'" t="s"><v>').concat(t,"</v></c>")}}));for(var o=0;o<v;o++)g+='<c r="'.concat(aL(b+o+1)).concat(e+2,'"><v>').concat(n[o].values[e]||0,"</v></c>");g+="</row>"};for(A=0;A<y;A++)x(A)}else{g+='<row r="1" spans="1:'.concat(n.length+n[0].labels.length,'">'),n[0].labels.forEach((function(e,t){g+='<c r="'.concat(aL(t+1),'1" t="s"><v>0</v></c>')}));for(var A=0;A<n.length;A++)g+='<c r="'.concat(aL(A+1+n[0].labels.length),'1" t="s"><v>').concat(A+1,"</v></c>");g+="</row>",n[0].labels[0].forEach((function(e,t){g+='<row r="'.concat(t+2,'" spans="1:').concat(n.length+n[0].labels.length,'">');for(var r=n[0].labels.length-1;r>=0;r--)g+='<c r="'.concat(aL(n[0].labels.length-r)).concat(t+2,'" t="s">'),g+="<v>".concat(n.length+t+1,"</v>"),g+="</c>";for(var o=0;o<n.length;o++)g+='<c r="'.concat(aL(n[0].labels.length+o+1)).concat(t+2,'"><v>').concat(n[o].values[t]||"","</v></c>");g+="</row>"}))}g+="</sheetData>",g+='<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>',g+="</worksheet>\n",s.file("xl/worksheets/sheet1.xml",g),s.generateAsync({type:"base64"}).then((function(n){t.file("ppt/embeddings/Microsoft_Excel_Worksheet".concat(e.globalId,".xlsx"),n,{base64:!0}),t.file("ppt/charts/_rels/"+e.fileName+".rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+'<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/package" Target="../embeddings/Microsoft_Excel_Worksheet'.concat(e.globalId,'.xlsx"/>')+"</Relationships>"),t.file("ppt/charts/".concat(e.fileName),function(e){var t,n,r,o,a='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',i=!1;a+='<c:chartSpace xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">',a+='<c:date1904 val="0"/>',a+='<c:roundedCorners val="'.concat(e.opts.chartArea.roundedCorners?"1":"0",'"/>'),a+="<c:chart>",e.opts.showTitle?(a+=oL({title:e.opts.title||"Chart Title",color:e.opts.titleColor,fontFace:e.opts.titleFontFace,fontSize:e.opts.titleFontSize||nD,titleAlign:e.opts.titleAlign,titleBold:e.opts.titleBold,titlePos:e.opts.titlePos,titleRotate:e.opts.titleRotate},e.opts.x,e.opts.y),a+='<c:autoTitleDeleted val="0"/>'):a+='<c:autoTitleDeleted val="1"/>';e.opts._type===SD.BAR3D&&(a+='<c:view3D><c:rotX val="'.concat(e.opts.v3DRotX,'"/><c:rotY val="').concat(e.opts.v3DRotY,'"/><c:rAngAx val="').concat(e.opts.v3DRAngAx?1:0,'"/><c:perspective val="').concat(e.opts.v3DPerspective,'"/></c:view3D>'));a+="<c:plotArea>",e.opts.layout?(a+="<c:layout>",a+=" <c:manualLayout>",a+=' <c:layoutTarget val="inner" />',a+=' <c:xMode val="edge" />',a+=' <c:yMode val="edge" />',a+=' <c:x val="'+(e.opts.layout.x||0)+'" />',a+=' <c:y val="'+(e.opts.layout.y||0)+'" />',a+=' <c:w val="'+(e.opts.layout.w||1)+'" />',a+=' <c:h val="'+(e.opts.layout.h||1)+'" />',a+=" </c:manualLayout>",a+="</c:layout>"):a+="<c:layout/>";Array.isArray(e.opts._type)?e.opts._type.forEach((function(t){var n=MR(MR({},e.opts),t.options),r=n.secondaryValAxis?dD:uD,o=n.secondaryCatAxis?hD:pD;i=i||n.secondaryValAxis,a+=tL(t.type,t.data,n,r,o)})):a+=tL(e.opts._type,e.data,e.opts,uD,pD);if(e.opts._type!==SD.PIE&&e.opts._type!==SD.DOUGHNUT){if(e.opts.valAxes&&e.opts.valAxes.length>1&&!i)throw new Error("Secondary axis must be used by one of the multiple charts");if(e.opts.catAxes){if(!e.opts.valAxes||e.opts.valAxes.length!==e.opts.catAxes.length)throw new Error("There must be the same number of value and category axes.");a+=nL(MR(MR({},e.opts),e.opts.catAxes[0]),pD,uD)}else a+=nL(e.opts,pD,uD);e.opts.valAxes?(a+=rL(MR(MR({},e.opts),e.opts.valAxes[0]),uD),e.opts.valAxes[1]&&(a+=rL(MR(MR({},e.opts),e.opts.valAxes[1]),dD))):(a+=rL(e.opts,uD),e.opts._type===SD.BAR3D&&(a+=function(e,t,n){var r="";r+="<c:serAx>",r+=' <c:axId val="'+t+'"/>',r+=' <c:scaling><c:orientation val="'+(e.serAxisOrientation||(e.barDir,"minMax"))+'"/></c:scaling>',r+=' <c:delete val="'+(e.serAxisHidden?"1":"0")+'"/>',r+=' <c:axPos val="'+("col"===e.barDir?"b":"l")+'"/>',r+="none"!==e.serGridLine.style?sL(e.serGridLine):"",e.showSerAxisTitle&&(r+=oL({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||"Axis Title"}));r+=' <c:numFmt formatCode="'.concat(OD(e.serLabelFormatCode)||"General",'" sourceLinked="0"/>'),r+=' <c:majorTickMark val="out"/>
2',r+=' <c:minorTickMark val="none"/>',r+=' <c:tickLblPos val="'.concat(e.serAxisLabelPos||"col"===e.barDir?"low":"nextTo",'"/>'),r+=" <c:spPr>",r+=' <a:ln w="12700" cap="flat">',r+=e.serAxisLineShow?"<a:solidFill>".concat(zD(e.serAxisLineColor||$R.color),"</a:solidFill>"):"<a:noFill/>",r+=' <a:prstDash val="solid"/>',r+=" <a:round/>",r+=" </a:ln>",r+=" </c:spPr>",r+=" <c:txPr>",r+=" <a:bodyPr/>",r+=" <a:lstStyle/>",r+=" <a:p>",r+=" <a:pPr>",r+=' <a:defRPr sz="'.concat(Math.round(100*(e.serAxisLabelFontSize||tD)),'" b="').concat(e.serAxisLabelFontBold?"1":"0",'" i="').concat(e.serAxisLabelFontItalic?"1":"0",'" u="none" strike="noStrike">'),r+=" <a:solidFill>".concat(zD(e.serAxisLabelColor||eD),"</a:solidFill>"),r+=' <a:latin typeface="'.concat(e.serAxisLabelFontFace||"Arial",'"/>'),r+=" </a:defRPr>",r+=" </a:pPr>",r+=' <a:endParaRPr lang="'+(e.lang||"en-US")+'"/>',r+=" </a:p>",r+=" </c:txPr>",r+=' <c:crossAx val="'+n+'"/>',r+=' <c:crosses val="autoZero"/>',e.serAxisLabelFrequency&&(r+=' <c:tickLblSkip val="'+e.serAxisLabelFrequency+'"/>');e.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach((function(t){!e[t]||"string"===typeof e[t]&&["days","months","years"].includes(t.toLowerCase())||(console.warn('"'.concat(t,"\" must be one of: 'days','months','years' !")),e[t]=null)})),e.serAxisBaseTimeUnit&&(r+=' <c:baseTimeUnit val="'.concat(e.serAxisBaseTimeUnit.toLowerCase(),'"/>')),e.serAxisMajorTimeUnit&&(r+=' <c:majorTimeUnit val="'.concat(e.serAxisMajorTimeUnit.toLowerCase(),'"/>')),e.serAxisMinorTimeUnit&&(r+=' <c:minorTimeUnit val="'.concat(e.serAxisMinorTimeUnit.toLowerCase(),'"/>')),e.serAxisMajorUnit&&(r+=' <c:majorUnit val="'.concat(e.serAxisMajorUnit,'"/>')),e.serAxisMinorUnit&&(r+=' <c:minorUnit val="'.concat(e.serAxisMinorUnit,'"/>')));return r+="</c:serAx>",r}(e.opts,fD,uD))),(null===(t=e.opts)||void 0===t?void 0:t.catAxes)&&(null===(n=e.opts)||void 0===n?void 0:n.catAxes[1])&&(a+=nL(MR(MR({},e.opts),e.opts.catAxes[1]),hD,dD))}e.opts.showDataTable&&(a+="<c:dTable>",a+=' <c:showHorzBorder val="'.concat(e.opts.showDataTableHorzBorder?1:0,'"/>'),a+=' <c:showVertBorder val="'.concat(e.opts.showDataTableVertBorder?1:0,'"/>'),a+=' <c:showOutline val="'.concat(e.opts.showDataTableOutline?1:0,'"/>'),a+=' <c:showKeys val="'.concat(e.opts.showDataTableKeys?1:0,'"/>'),a+=" <c:spPr>",a+=" <a:noFill/>",a+=' <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln>',a+=" <a:effectLst/>",a+=" </c:spPr>",a+=" <c:txPr>",a+=' <a:bodyPr rot="0" spcFirstLastPara="1" vertOverflow="ellipsis" vert="horz" wrap="square" anchor="ctr" anchorCtr="1"/>',a+=" <a:lstStyle/>",a+=" <a:p>",a+=' <a:pPr rtl="0">',a+=' <a:defRPr sz="'.concat(Math.round(100*(e.opts.dataTableFontSize||tD)),'" b="0" i="0" u="none" strike="noStrike" kern="1200" baseline="0">'),a+=' <a:solidFill><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill>',a+=' <a:latin typeface="+mn-lt"/>',a+=' <a:ea typeface="+mn-ea"/>',a+=' <a:cs typeface="+mn-cs"/>',a+=" </a:defRPr>",a+=" </a:pPr>",a+=' <a:endParaRPr lang="en-US"/>',a+=" </a:p>",a+=" </c:txPr>",a+="</c:dTable>");a+=" <c:spPr>",a+=(null===(r=e.opts.plotArea.fill)||void 0===r?void 0:r.color)?HD(e.opts.plotArea.fill):"<a:noFill/>",a+=e.opts.plotArea.border?'<a:ln w="'.concat(jD(e.opts.plotArea.border.pt),'" cap="flat">').concat(HD(e.opts.plotArea.border.color),"</a:ln>"):"<a:ln><a:noFill/></a:ln>",a+=" <a:effectLst/>",a+=" </c:spPr>",a+="</c:plotArea>",e.opts.showLegend&&(a+="<c:legend>",a+='<c:legendPos val="'+e.opts.legendPos+'"/>',a+='<c:overlay val="0"/>',(e.opts.legendFontFace||e.opts.legendFontSize||e.opts.legendColor)&&(a+="<c:txPr>",a+=" <a:bodyPr/>",a+=" <a:lstStyle/>",a+=" <a:p>",a+=" <a:pPr>",a+=e.opts.legendFontSize?'<a:defRPr sz="'.concat(Math.round(100*Number(e.opts.legendFontSize)),'">'):"<a:defRPr>",e.opts.legendColor&&(a+=HD(e.opts.legendColor)),e.opts.legendFontFace&&(a+='<a:latin typeface="'+e.opts.legendFontFace+'"/>'),e.opts.legendFontFace&&(a+='<a:cs typeface="'+e.opts.legendFontFace+'"/>'),a+=" </a:defRPr>",a+=" </a:pPr>",a+=' <a:endParaRPr lang="en-US"/>',a+=" </a:p>",a+="</c:txPr>"),a+="</c:legend>");a+=' <c:plotVisOnly val="1"/>',a+=' <c:dispBlanksAs val="'+e.opts.displayBlanksAs+'"/>',e.opts._type===SD.SCATTER&&(a+='<c:showDLblsOverMax val="1"/>');return a+="</c:chart>",a+="<c:spPr>",a+=(null===(o=e.opts.chartArea.fill)||void 0===o?void 0:o.color)?HD(e.opts.chartArea.fill):"<a:noFill/>",a+=e.opts.chartArea.border?'<a:ln w="'.concat(jD(e.opts.chartArea.border.pt),'" cap="flat">').concat(HD(e.opts.chartArea.border.color),"</a:ln>"):"<a:ln><a:noFill/></a:ln>",a+=" <a:effectLst/>",a+="</c:spPr>",a+='<c:externalData r:id="rId1"><c:autoUpdate val="0"/></c:externalData>',a+="</c:chartSpace>"}(e)),r("")})).catch((function(e){o(e)}))}))];case 1:return[2,r.sent()]}}))}))}function tL(e,t,n,r,o,a){var i=-1,s=1,l=null,c="";switch(e){case SD.AREA:case SD.BAR:case SD.BAR3D:case SD.LINE:case SD.RADAR:c+="<c:".concat(e,"Chart>"),e===SD.AREA&&"stacked"===n.barGrouping&&(c+='<c:grouping val="'+n.barGrouping+'"/>'),e!==SD.BAR&&e!==SD.BAR3D||(c+='<c:barDir val="'+n.barDir+'"/>',c+='<c:grouping val="'+(n.barGrouping||"clustered")+'"/>'),e===SD.RADAR&&(c+='<c:radarStyle val="'+n.radarStyle+'"/>'),c+='<c:varyColors val="0"/>',t.forEach((function(r){var o;i++,c+="<c:ser>",c+=' <c:idx val="'.concat(r._dataIndex,'"/><c:order val="').concat(r._dataIndex,'"/>'),c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$"+aL(r._dataIndex+r.labels.length+1)+"$1</c:f>",c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+OD(r.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>";var a=n.chartColors?n.chartColors[i%n.chartColors.length]:null;c+=" <c:spPr>","transparent"===a?c+="<a:noFill/>":n.chartColorsOpacity?c+="<a:solidFill>"+zD(a,'<a:alpha val="'.concat(Math.round(1e3*n.chartColorsOpacity),'"/>'))+"</a:solidFill>":c+="<a:solidFill>"+zD(a)+"</a:solidFill>",e===SD.LINE||e===SD.RADAR?0===n.lineSize?c+="<a:ln><a:noFill/></a:ln>":(c+='<a:ln w="'.concat(jD(n.lineSize),'" cap="').concat(lL(n.lineCap),'"><a:solidFill>').concat(zD(a),"</a:solidFill>"),c+='<a:prstDash val="'+(n.lineDash||"solid")+'"/><a:round/></a:ln>'):n.dataBorder&&(c+='<a:ln w="'.concat(jD(n.dataBorder.pt),'" cap="').concat(lL(n.lineCap),'"><a:solidFill>').concat(zD(n.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>')),c+=iL(n.shadow,iD),c+=" </c:spPr>",c+=' <c:invertIfNegative val="0"/>',e!==SD.RADAR&&(c+="<c:dLbls>",c+='<c:numFmt formatCode="'.concat(OD(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),n.dataLabelBkgrdColors&&(c+="<c:spPr><a:solidFill>".concat(zD(a),"</a:solidFill></c:spPr>")),c+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",c+='<a:defRPr b="'.concat(n.dataLabelFontBold?1:0,'" i="').concat(n.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(100*(n.dataLabelFontSize||tD)),'" u="none">'),c+="<a:solidFill>".concat(zD(n.dataLabelColor||eD),"</a:solidFill>"),c+='<a:latin typeface="'.concat(n.dataLabelFontFace||"Arial",'"/>'),c+="</a:defRPr></a:pPr></a:p></c:txPr>",n.dataLabelPosition&&(c+='<c:dLblPos val="'.concat(n.dataLabelPosition,'"/>')),c+='<c:showLegendKey val="0"/>',c+='<c:showVal val="'.concat(n.showValue?"1":"0",'"/>'),c+='<c:showCatName val="0"/><c:showSerName val="'.concat(n.showSerName?"1":"0",'"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>'),c+='<c:showLeaderLines val="'.concat(n.showLeaderLines?"1":"0",'"/>'),c+="</c:dLbls>"),e!==SD.LINE&&e!==SD.RADAR||(c+="<c:marker>",c+=' <c:symbol val="'+n.lineDataSymbol+'"/>',n.lineDataSymbolSize&&(c+='<c:size val="'.concat(n.lineDataSymbolSize,'"/>')),c+=" <c:spPr>",c+=" <a:solidFill>".concat(zD(n.chartColors[r._dataIndex+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):r._dataIndex]),"</a:solidFill>"),c+=' <a:ln w="'.concat(n.lineDataSymbolLineSize,'" cap="flat"><a:solidFill>
2').concat(zD(n.lineDataSymbolLineColor||a),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'),c+=" <a:effectLst/>",c+=" </c:spPr>",c+="</c:marker>"),e!==SD.BAR&&e!==SD.BAR3D||1!==t.length||!(n.chartColors&&n.chartColors!==gD&&n.chartColors.length>1||(null===(o=n.invertedColors)||void 0===o?void 0:o.length))||r.values.forEach((function(t,r){var o=t<0?n.invertedColors||n.chartColors||gD:n.chartColors||[];c+=" <c:dPt>",c+=' <c:idx val="'.concat(r,'"/>'),c+=' <c:invertIfNegative val="0"/>',c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",0===n.lineSize?c+="<a:ln><a:noFill/></a:ln>":e===SD.BAR?(c+="<a:solidFill>",c+=' <a:srgbClr val="'+o[r%o.length]+'"/>',c+="</a:solidFill>"):(c+="<a:ln>",c+=" <a:solidFill>",c+=' <a:srgbClr val="'+o[r%o.length]+'"/>',c+=" </a:solidFill>",c+="</a:ln>"),c+=iL(n.shadow,iD),c+=" </c:spPr>",c+=" </c:dPt>"})),c+="<c:cat>",n.catLabelFormatCode?(c+=" <c:numRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(r.labels[0].length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>"+(n.catLabelFormatCode||"General")+"</c:formatCode>",c+=' <c:ptCount val="'.concat(r.labels[0].length,'"/>'),r.labels[0].forEach((function(e,t){return c+='<c:pt idx="'.concat(t,'"><c:v>').concat(OD(e),"</c:v></c:pt>")})),c+=" </c:numCache>",c+=" </c:numRef>"):(c+=" <c:multiLvlStrRef>",c+=" <c:f>Sheet1!$A$2:$".concat(aL(r.labels.length),"$").concat(r.labels[0].length+1,"</c:f>"),c+=" <c:multiLvlStrCache>",c+=' <c:ptCount val="'.concat(r.labels[0].length,'"/>'),r.labels.forEach((function(e){c+="<c:lvl>",e.forEach((function(e,t){return c+='<c:pt idx="'.concat(t,'"><c:v>').concat(OD(e),"</c:v></c:pt>")})),c+="</c:lvl>"})),c+=" </c:multiLvlStrCache>",c+=" </c:multiLvlStrRef>"),c+="</c:cat>",c+="<c:val>",c+=" <c:numRef>",c+="<c:f>Sheet1!$".concat(aL(r._dataIndex+r.labels.length+1),"$2:$").concat(aL(r._dataIndex+r.labels.length+1),"$").concat(r.labels[0].length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>"+(n.valLabelFormatCode||n.dataTableFormatCode||"General")+"</c:formatCode>",c+=' <c:ptCount val="'.concat(r.labels[0].length,'"/>'),r.values.forEach((function(e,t){return c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||0===e?e:"","</c:v></c:pt>")})),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:val>",e===SD.LINE&&(c+='<c:smooth val="'+(n.lineSmooth?"1":"0")+'"/>'),c+="</c:ser>"})),c+=" <c:dLbls>",c+=' <c:numFmt formatCode="'.concat(OD(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p><a:pPr>",c+=' <a:defRPr b="'.concat(n.dataLabelFontBold?1:0,'" i="').concat(n.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(100*(n.dataLabelFontSize||tD)),'" u="none">'),c+=" <a:solidFill>"+zD(n.dataLabelColor||eD)+"</a:solidFill>",c+=' <a:latin typeface="'+(n.dataLabelFontFace||"Arial")+'"/>',c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(n.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="'+(n.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="'.concat(n.showLeaderLines?"1":"0",'"/>'),c+=" </c:dLbls>",e===SD.BAR?(c+=' <c:gapWidth val="'.concat(n.barGapWidthPct,'"/>'),c+=' <c:overlap val="'.concat((n.barGrouping||"").includes("tacked")?100:n.barOverlapPct?n.barOverlapPct:0,'"/>')):e===SD.BAR3D?(c+=' <c:gapWidth val="'.concat(n.barGapWidthPct,'"/>'),c+=' <c:gapDepth val="'.concat(n.barGapDepthPct,'"/>'),c+=' <c:shape val="'+n.bar3DShape+'"/>'):e===SD.LINE&&(c+=' <c:marker val="1"/>'),c+='<c:axId val="'.concat(o,'"/><c:axId val="').concat(r,'"/><c:axId val="').concat(fD,'"/>'),c+="</c:".concat(e,"Chart>");break;case SD.SCATTER:c+="<c:"+e+"Chart>",c+='<c:scatterStyle val="lineMarker"/>',c+='<c:varyColors val="0"/>',i=-1,t.filter((function(e,t){return t>0})).forEach((function(e,r){i++,c+="<c:ser>",c+=' <c:idx val="'.concat(r,'"/>'),c+=' <c:order val="'.concat(r,'"/>'),c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$".concat(aL(r+2),"$1</c:f>"),c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+OD(e.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+=" <c:spPr>";var o=n.chartColors[i%n.chartColors.length];if("transparent"===o?c+="<a:noFill/>":n.chartColorsOpacity?c+="<a:solidFill>"+zD(o,'<a:alpha val="'+Math.round(1e3*n.chartColorsOpacity).toString()+'"/>')+"</a:solidFill>":c+="<a:solidFill>"+zD(o)+"</a:solidFill>",0===n.lineSize?c+="<a:ln><a:noFill/></a:ln>":(c+='<a:ln w="'.concat(jD(n.lineSize),'" cap="').concat(lL(n.lineCap),'"><a:solidFill>').concat(zD(o),"</a:solidFill>"),c+='<a:prstDash val="'.concat(n.lineDash||"solid",'"/><a:round/></a:ln>')),c+=iL(n.shadow,iD),c+=" </c:spPr>",c+="<c:marker>",c+=' <c:symbol val="'+n.lineDataSymbol+'"/>',n.lineDataSymbolSize&&(c+='<c:size val="'.concat(n.lineDataSymbolSize,'"/>')),c+="<c:spPr>
2",c+="<a:solidFill>".concat(zD(n.chartColors[r+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):r]),"</a:solidFill>"),c+='<a:ln w="'.concat(n.lineDataSymbolLineSize,'" cap="flat"><a:solidFill>').concat(zD(n.lineDataSymbolLineColor||n.chartColors[i%n.chartColors.length]),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'),c+="<a:effectLst/>",c+="</c:spPr>",c+="</c:marker>",n.showLabel){var a=LD("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");!e.labels[0]||"custom"!==n.dataLabelFormatScatter&&"customXY"!==n.dataLabelFormatScatter||(c+="<c:dLbls>",e.labels[0].forEach((function(t,r){"custom"!==n.dataLabelFormatScatter&&"customXY"!==n.dataLabelFormatScatter||(c+=" <c:dLbl>",c+=' <c:idx val="'.concat(r,'"/>'),c+=" <c:tx>",c+=" <c:rich>",c+=" <a:bodyPr>",c+=" <a:spAutoFit/>",c+=" </a:bodyPr>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" dirty="0"/>',c+=" <a:t>"+OD(t)+"</a:t>",c+=" </a:r>","customXY"!==n.dataLabelFormatScatter||/^ *$/.test(t)||(c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t> (</a:t>",c+=" </a:r>",c+=' <a:fld id="{'+LD("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="XVALUE">',c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0"/>',c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:t>["+OD(e.name)+"</a:t>",c+=" </a:fld>",c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t>, </a:t>",c+=" </a:r>",c+=' <a:fld id="{'+LD("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="YVALUE">',c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0"/>',c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:t>["+OD(e.name)+"]</a:t>",c+=" </a:fld>",c+=" <a:r>",c+=' <a:rPr lang="'+(n.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t>)</a:t>",c+=" </a:r>",c+=' <a:endParaRPr lang="'+(n.lang||"en-US")+'" dirty="0"/>'),c+=" </a:p>",c+=" </c:rich>",c+=" </c:tx>",c+=" <c:spPr>",c+=" <a:noFill/>",c+=" <a:ln>",c+=" <a:noFill/>",c+=" </a:ln>",c+=" <a:effectLst/>",c+=" </c:spPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="0"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="0"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="1"/>',c+=" <c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart"/>',c+=' <c:ext uri="{C3380CC4-5D6E-409C-BE32-E72D297353CC}" xmlns:c16="http://schemas.microsoft.com/office/drawing/2014/chart">',c+=' <c16:uniqueId val="{'.concat("00000000".substring(0,8-(r+1).toString().length).toString()).concat(r+1).concat(a,'}"/>'),c+=" </c:ext>",c+=" </c:extLst>",c+="</c:dLbl>")})),c+="</c:dLbls>"),"XY"===n.dataLabelFormatScatter&&(c+="<c:dLbls>",c+=" <c:spPr>",c+=" <a:noFill/>",c+=" <a:ln>",c+=" <a:noFill/>",c+=" </a:ln>",c+=" <a:effectLst/>",c+=" </c:spPr>",c+=" <c:txPr>",c+=" <a:bodyPr>",c+=" <a:spAutoFit/>",c+=" </a:bodyPr>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=' <a:endParaRPr lang="en-US"/>',c+=" </a:p>",c+=" </c:txPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'.concat(n.showLabel?"1":"0",'"/>'),c+=' <c:showCatName val="'.concat(n.showLabel?"1":"0",'"/>'),c+=' <c:showSerName val="'.concat(n.showSerName?"1":"0",'"/>'),c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=" <c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',c+=' <c15:showLeaderLines val="1"/>',c+=" </c:ext>",c+=" </c:extLst>",c+="</c:dLbls>")}
21===t.length&&n.chartColors!==gD&&e.values.forEach((function(e,t){var r=e<0?n.invertedColors||n.chartColors||gD:n.chartColors||[];c+=" <c:dPt>",c+=' <c:idx val="'.concat(t,'"/>'),c+=' <c:invertIfNegative val="0"/>',c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",0===n.lineSize?c+="<a:ln><a:noFill/></a:ln>":(c+="<a:solidFill>",c+=' <a:srgbClr val="'+r[t%r.length]+'"/>',c+="</a:solidFill>"),c+=iL(n.shadow,iD),c+=" </c:spPr>",c+=" </c:dPt>"})),c+="<c:xVal>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(t[0].values.length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(t[0].values.length,'"/>'),t[0].values.forEach((function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||0===e?e:"","</c:v></c:pt>")})),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:xVal>",c+="<c:yVal>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$".concat(aL(r+2),"$2:$").concat(aL(r+2),"$").concat(t[0].values.length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(t[0].values.length,'"/>'),t[0].values.forEach((function(t,n){c+='<c:pt idx="'.concat(n,'"><c:v>').concat(e.values[n]||0===e.values[n]?e.values[n]:"","</c:v></c:pt>")})),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:yVal>",c+='<c:smooth val="'+(n.lineSmooth?"1":"0")+'"/>',c+="</c:ser>"})),c+=" <c:dLbls>",c+=' <c:numFmt formatCode="'.concat(OD(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p><a:pPr>",c+=' <a:defRPr b="'.concat(n.dataLabelFontBold?"1":"0",'" i="').concat(n.dataLabelFontItalic?"1":"0",'" strike="noStrike" sz="').concat(Math.round(100*(n.dataLabelFontSize||tD)),'" u="none">'),c+=" <a:solidFill>"+zD(n.dataLabelColor||eD)+"</a:solidFill>",c+=' <a:latin typeface="'+(n.dataLabelFontFace||"Arial")+'"/>',c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",n.dataLabelPosition&&(c+=' <c:dLblPos val="'+n.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(n.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="'+(n.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=" </c:dLbls>",c+='<c:axId val="'.concat(o,'"/><c:axId val="').concat(r,'"/>'),c+="</c:"+e+"Chart>";break;case SD.BUBBLE:case SD.BUBBLE3D:c+="<c:bubbleChart>",c+='<c:varyColors val="0"/>',i=-1,t.filter((function(e,t){return t>0})).forEach((function(r,o){i++,c+="<c:ser>",c+=' <c:idx val="'.concat(o,'"/>'),c+=' <c:order val="'.concat(o,'"/>'),c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$"+aL(s+1)+"$1</c:f>",c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+OD(r.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+="<c:spPr>";var a=n.chartColors[i%n.chartColors.length];"transparent"===a?c+="<a:noFill/>":n.chartColorsOpacity?c+="<a:solidFill>".concat(zD(a,'<a:alpha val="'+Math.round(1e3*n.chartColorsOpacity).toString()+'"/>'),"</a:solidFill>"):c+="<a:solidFill>"+zD(a)+"</a:solidFill>",0===n.lineSize?c+="<a:ln><a:noFill/></a:ln>":n.dataBorder?c+='<a:ln w="'.concat(jD(n.dataBorder.pt),'" cap="flat"><a:solidFill>').concat(zD(n.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'):(c+='<a:ln w="'.concat(jD(n.lineSize),'" cap="flat"><a:solidFill>').concat(zD(a),"</a:solidFill>"),c+='<a:prstDash val="'.concat(n.lineDash||"solid",'"/><a:round/></a:ln>')),c+=iL(n.shadow,iD),c+="</c:spPr>",c+="<c:xVal>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(t[0].values.length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(t[0].values.length,'"/>'),t[0].values.forEach((function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||0===e?e:"","</c:v></c:pt>")})),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:xVal>",c+="<c:yVal>",c+=" <c:numRef>",c+="<c:f>Sheet1!$".concat(aL(s+1),"$2:$").concat(aL(s+1),"$").concat(t[0].values.length+1,"</c:f>"),s++,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(t[0].values.length,'"/>
2'),t[0].values.forEach((function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(r.values[t]||0===r.values[t]?r.values[t]:"","</c:v></c:pt>")})),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:yVal>",c+=" <c:bubbleSize>",c+=" <c:numRef>",c+="<c:f>Sheet1!$".concat(aL(s+1),"$2:$").concat(aL(s+1),"$").concat(r.sizes.length+1,"</c:f>"),s++,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(r.sizes.length,'"/>'),r.sizes.forEach((function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||"","</c:v></c:pt>")})),c+=" </c:numCache>",c+=" </c:numRef>",c+=" </c:bubbleSize>",c+=' <c:bubble3D val="'+(e===SD.BUBBLE3D?"1":"0")+'"/>',c+="</c:ser>"})),c+="<c:dLbls>",c+='<c:numFmt formatCode="'.concat(OD(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",c+='<a:defRPr b="'.concat(n.dataLabelFontBold?1:0,'" i="').concat(n.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(100*Math.round(n.dataLabelFontSize||tD)),'" u="none">'),c+="<a:solidFill>".concat(zD(n.dataLabelColor||eD),"</a:solidFill>"),c+='<a:latin typeface="'.concat(n.dataLabelFontFace||"Arial",'"/>'),c+="</a:defRPr></a:pPr></a:p></c:txPr>",n.dataLabelPosition&&(c+='<c:dLblPos val="'.concat(n.dataLabelPosition,'"/>')),c+='<c:showLegendKey val="0"/>',c+='<c:showVal val="'.concat(n.showValue?"1":"0",'"/>'),c+='<c:showCatName val="0"/><c:showSerName val="'.concat(n.showSerName?"1":"0",'"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>'),c+="<c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',c+=' <c15:showLeaderLines val="'+(n.showLeaderLines?"1":"0")+'"/>',c+=" </c:ext>",c+="</c:extLst>",c+="</c:dLbls>",c+='<c:axId val="'.concat(o,'"/><c:axId val="').concat(r,'"/>'),c+="</c:bubbleChart>";break;case SD.DOUGHNUT:case SD.PIE:l=t[0],c+="<c:"+e+"Chart>",c+=' <c:varyColors val="1"/>',c+="<c:ser>",c+=' <c:idx val="0"/>',c+=' <c:order val="0"/>',c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$B$1</c:f>",c+=" <c:strCache>",c+=' <c:ptCount val="1"/>',c+=' <c:pt idx="0"><c:v>'+OD(l.name)+"</c:v></c:pt>",c+=" </c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+=" <c:spPr>",c+=' <a:solidFill><a:schemeClr val="accent1"/></a:solidFill>',c+=' <a:ln w="9525" cap="flat"><a:solidFill><a:srgbClr val="F9F9F9"/></a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>',n.dataNoEffects?c+="<a:effectLst/>":c+=iL(n.shadow,iD),c+=" </c:spPr>",l.labels[0].forEach((function(e,t){c+="<c:dPt>",c+=' <c:idx val="'.concat(t,'"/>'),c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",c+="<a:solidFill>".concat(zD(n.chartColors[t+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):t]),"</a:solidFill>"),n.dataBorder&&(c+='<a:ln w="'.concat(jD(n.dataBorder.pt),'" cap="flat"><a:solidFill>').concat(zD(n.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>')),c+=iL(n.shadow,iD),c+=" </c:spPr>",c+="</c:dPt>"})),c+="<c:dLbls>",l.labels[0].forEach((function(t,r){c+="<c:dLbl>",c+=' <c:idx val="'.concat(r,'"/>'),c+=' <c:numFmt formatCode="'.concat(OD(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:spPr/><c:txPr>",c+=" <a:bodyPr/><a:lstStyle/>",c+=" <a:p><a:pPr>",c+=' <a:defRPr sz="'.concat(Math.round(100*(n.dataLabelFontSize||tD)),'" b="').concat(n.dataLabelFontBold?1:0,'" i="').concat(n.dataLabelFontItalic?1:0,'" u="none" strike="noStrike">'),c+=" <a:solidFill>"+zD(n.dataLabelColor||eD)+"</a:solidFill>",c+=' <a:latin typeface="'.concat(n.dataLabelFontFace||"Arial",'"/>'),c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",e===SD.PIE&&n.dataLabelPosition&&(c+='<c:dLblPos val="'.concat(n.dataLabelPosition,'"/>')),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(n.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="'+(n.showLabel?"1":"0")+'"/>',c+=' <c:showSerName val="'+(n.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="'+(n.showPercent?"1":"0")+'"/>',c+=' <c:showBubbleSize val="0"/>',c+=" </c:dLbl>"})),c+=' <c:numFmt formatCode="'.concat(OD(n.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=' <a:defRPr sz="1800" b="'.concat(n.dataLabelFontBold?"1":"0",'" i="').concat(n.dataLabelFontItalic?"1":"0",'" u="none" strike="noStrike">'),c+=' <a:solidFill><a:srgbClr val="000000"/></a:solidFill><a:latin typeface="Arial"/>',c+=" </a:defRPr>",c+=" </a:pPr>",c+=" </a:p>",c+=" </c:txPr>",c+=e===SD.PIE?'<c:dLblPos val="ctr"/>':"",c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="0"/>',c+=' <c:showCatName val="1"/>',c+=' <c:showSerName val="0"/>',c+=' <c:showPercent val="1"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="'.concat(n.showLeaderLines?"1":"0",'"/>'),c+="</c:dLbls>",c+="<c:cat>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(l.labels[0].length+1,"</c:f>"),c+=" <c:strCache>",c+=' <c:ptCount val="'.concat(l.labels[0].length,'"/>
2'),l.labels[0].forEach((function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(OD(e),"</c:v></c:pt>")})),c+=" </c:strCache>",c+=" </c:strRef>",c+="</c:cat>",c+=" <c:val>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$B$2:$B$".concat(l.labels[0].length+1,"</c:f>"),c+=" <c:numCache>",c+=' <c:ptCount val="'.concat(l.labels[0].length,'"/>'),l.values.forEach((function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||0===e?e:"","</c:v></c:pt>")})),c+=" </c:numCache>",c+=" </c:numRef>",c+=" </c:val>",c+=" </c:ser>",c+=' <c:firstSliceAng val="'.concat(n.firstSliceAng?Math.round(n.firstSliceAng):0,'"/>'),e===SD.DOUGHNUT&&(c+='<c:holeSize val="'.concat("number"===typeof n.holeSize?n.holeSize:"50",'"/>')),c+="</c:"+e+"Chart>";break;default:c+=""}return c}function nL(e,t,n){var r="";return e._type===SD.SCATTER||e._type===SD.BUBBLE||e._type===SD.BUBBLE3D?r+="<c:valAx>":r+="<c:"+(e.catLabelFormatCode?"dateAx":"catAx")+">",r+=' <c:axId val="'+t+'"/>',r+=" <c:scaling>",r+='<c:orientation val="'+(e.catAxisOrientation||(e.barDir,"minMax"))+'"/>',(e.catAxisMaxVal||0===e.catAxisMaxVal)&&(r+='<c:max val="'.concat(e.catAxisMaxVal,'"/>')),(e.catAxisMinVal||0===e.catAxisMinVal)&&(r+='<c:min val="'.concat(e.catAxisMinVal,'"/>')),r+="</c:scaling>",r+=' <c:delete val="'+(e.catAxisHidden?"1":"0")+'"/>',r+=' <c:axPos val="'+("col"===e.barDir?"b":"l")+'"/>',r+="none"!==e.catGridLine.style?sL(e.catGridLine):"",e.showCatAxisTitle&&(r+=oL({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||"Axis Title"})),e._type===SD.SCATTER||e._type===SD.BUBBLE||e._type===SD.BUBBLE3D?r+=' <c:numFmt formatCode="'+(e.valAxisLabelFormatCode?OD(e.valAxisLabelFormatCode):"General")+'" sourceLinked="1"/>':r+=' <c:numFmt formatCode="'+(OD(e.catLabelFormatCode)||"General")+'" sourceLinked="1"/>',e._type===SD.SCATTER?(r+=' <c:majorTickMark val="none"/>',r+=' <c:minorTickMark val="none"/>',r+=' <c:tickLblPos val="nextTo"/>'):(r+=' <c:majorTickMark val="'+(e.catAxisMajorTickMark||"out")+'"/>',r+=' <c:minorTickMark val="'+(e.catAxisMinorTickMark||"none")+'"/>',r+=' <c:tickLblPos val="'+(e.catAxisLabelPos||("col"===e.barDir?"low":"nextTo"))+'"/>'),r+=" <c:spPr>",r+=' <a:ln w="'.concat(e.catAxisLineSize?jD(e.catAxisLineSize):WR,'" cap="flat">'),r+=e.catAxisLineShow?"<a:solidFill>"+zD(e.catAxisLineColor||$R.color)+"</a:solidFill>":"<a:noFill/>",r+=' <a:prstDash val="'+(e.catAxisLineStyle||"solid")+'"/>',r+=" <a:round/>",r+=" </a:ln>",r+=" </c:spPr>",r+=" <c:txPr>",e.catAxisLabelRotate?r+='<a:bodyPr rot="'.concat(FD(e.catAxisLabelRotate),'"/>'):r+="<a:bodyPr/>",r+=" <a:lstStyle/>",r+=" <a:p>",r+=" <a:pPr>",r+=' <a:defRPr sz="'.concat(Math.round(100*(e.catAxisLabelFontSize||tD)),'" b="').concat(e.catAxisLabelFontBold?1:0,'" i="').concat(e.catAxisLabelFontItalic?1:0,'" u="none" strike="noStrike">'),r+=" <a:solidFill>"+zD(e.catAxisLabelColor||eD)+"</a:solidFill>",r+=' <a:latin typeface="'+(e.catAxisLabelFontFace||"Arial")+'"/>',r+=" </a:defRPr>",r+=" </a:pPr>",r+=' <a:endParaRPr lang="'+(e.lang||"en-US")+'"/>',r+=" </a:p>",r+=" </c:txPr>",r+=' <c:crossAx val="'+n+'"/>',r+=" <c:".concat("number"===typeof e.valAxisCrossesAt?"crossesAt":"crosses",' val="').concat(e.valAxisCrossesAt||"autoZero",'"/>'),r+=' <c:auto val="1"/>',r+=' <c:lblAlgn val="ctr"/>',r+=' <c:noMultiLvlLbl val="'.concat(e.catAxisMultiLevelLabels?0:1,'"/>'),e.catAxisLabelFrequency&&(r+=' <c:tickLblSkip val="'+e.catAxisLabelFrequency+'"/>'),(e.catLabelFormatCode||e._type===SD.SCATTER||e._type===SD.BUBBLE||e._type===SD.BUBBLE3D)&&(e.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach((function(t){!e[t]||"string"===typeof e[t]&&["days","months","years"].includes(e[t].toLowerCase())||(console.warn('"'.concat(t,"\" must be one of: 'days','months','years' !")),e[t]=null)})),e.catAxisBaseTimeUnit&&(r+='<c:baseTimeUnit val="'+e.catAxisBaseTimeUnit.toLowerCase()+'"/>'),e.catAxisMajorTimeUnit&&(r+='<c:majorTimeUnit val="'+e.catAxisMajorTimeUnit.toLowerCase()+'"/>'),e.catAxisMinorTimeUnit&&(r+='<c:minorTimeUnit val="'+e.catAxisMinorTimeUnit.toLowerCase()+'"/>')),e.catAxisMajorUnit&&(r+='<c:majorUnit val="'.concat(e.catAxisMajorUnit,'"/>')),e.catAxisMinorUnit&&(r+='<c:minorUnit val="'.concat(e.catAxisMinorUnit,'"/>'))),e._type===SD.SCATTER||e._type===SD.BUBBLE||e._type===SD.BUBBLE3D?r+="</c:valAx>":r+="</c:"+(e.catLabelFormatCode?"dateAx":"catAx")+">",r}function rL(e,t){var n=t===uD?"col"===e.barDir?"l":"b":"col"!==e.barDir?"r":"t";
2t===dD&&(n="r");var r=t===uD?pD:hD,o="";if(o+="<c:valAx>",o+=' <c:axId val="'+t+'"/>',o+=" <c:scaling>",e.valAxisLogScaleBase&&(o+='<c:logBase val="'.concat(e.valAxisLogScaleBase,'"/>')),o+='<c:orientation val="'+(e.valAxisOrientation||(e.barDir,"minMax"))+'"/>',(e.valAxisMaxVal||0===e.valAxisMaxVal)&&(o+='<c:max val="'.concat(e.valAxisMaxVal,'"/>')),(e.valAxisMinVal||0===e.valAxisMinVal)&&(o+='<c:min val="'.concat(e.valAxisMinVal,'"/>')),o+=" </c:scaling>",o+=' <c:delete val="'.concat(e.valAxisHidden?1:0,'"/>'),o+=' <c:axPos val="'+n+'"/>',"none"!==e.valGridLine.style&&(o+=sL(e.valGridLine)),e.showValAxisTitle&&(o+=oL({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||"Axis Title"})),o+='<c:numFmt formatCode="'.concat(e.valAxisLabelFormatCode?OD(e.valAxisLabelFormatCode):"General",'" sourceLinked="0"/>'),e._type===SD.SCATTER?(o+=' <c:majorTickMark val="none"/>',o+=' <c:minorTickMark val="none"/>',o+=' <c:tickLblPos val="nextTo"/>'):(o+=' <c:majorTickMark val="'+(e.valAxisMajorTickMark||"out")+'"/>',o+=' <c:minorTickMark val="'+(e.valAxisMinorTickMark||"none")+'"/>',o+=' <c:tickLblPos val="'+(e.valAxisLabelPos||("col"===e.barDir?"nextTo":"low"))+'"/>'),o+=" <c:spPr>",o+=' <a:ln w="'.concat(e.valAxisLineSize?jD(e.valAxisLineSize):WR,'" cap="flat">'),o+=e.valAxisLineShow?"<a:solidFill>"+zD(e.valAxisLineColor||$R.color)+"</a:solidFill>":"<a:noFill/>",o+=' <a:prstDash val="'+(e.valAxisLineStyle||"solid")+'"/>',o+=" <a:round/>",o+=" </a:ln>",o+=" </c:spPr>",o+=" <c:txPr>",o+=" <a:bodyPr".concat(e.valAxisLabelRotate?' rot="'+FD(e.valAxisLabelRotate).toString()+'"':"","/>"),o+=" <a:lstStyle/>",o+=" <a:p>",o+=" <a:pPr>",o+=' <a:defRPr sz="'.concat(Math.round(100*(e.valAxisLabelFontSize||tD)),'" b="').concat(e.valAxisLabelFontBold?1:0,'" i="').concat(e.valAxisLabelFontItalic?1:0,'" u="none" strike="noStrike">'),o+=" <a:solidFill>"+zD(e.valAxisLabelColor||eD)+"</a:solidFill>",o+=' <a:latin typeface="'+(e.valAxisLabelFontFace||"Arial")+'"/>',o+=" </a:defRPr>",o+=" </a:pPr>",o+=' <a:endParaRPr lang="'+(e.lang||"en-US")+'"/>',o+=" </a:p>",o+=" </c:txPr>",o+=' <c:crossAx val="'+r+'"/>',"number"===typeof e.catAxisCrossesAt)o+=' <c:crossesAt val="'.concat(e.catAxisCrossesAt,'"/>');else if("string"===typeof e.catAxisCrossesAt)o+=' <c:crosses val="'+e.catAxisCrossesAt+'"/>';else{o+=' <c:crosses val="'+("r"===n||"t"===n?"max":"autoZero")+'"/>'}return o+=' <c:crossBetween val="'+(e._type===SD.SCATTER||Array.isArray(e._type)&&e._type.filter((function(e){return e.type===SD.AREA})).length>0?"midCat":"between")+'"/>',e.valAxisMajorUnit&&(o+=' <c:majorUnit val="'.concat(e.valAxisMajorUnit,'"/>')),e.valAxisDisplayUnit&&(o+='<c:dispUnits><c:builtInUnit val="'.concat(e.valAxisDisplayUnit,'"/>').concat(e.valAxisDisplayUnitLabel?"<c:dispUnitsLbl/>":"","</c:dispUnits>")),o+="</c:valAx>"}function oL(e,t,n){var r="left"===e.titleAlign||"right"===e.titleAlign?'<a:pPr algn="'.concat(e.titleAlign.substring(0,1),'">'):"<a:pPr>",o=e.titleRotate?'<a:bodyPr rot="'.concat(FD(e.titleRotate),'"/>'):"<a:bodyPr/>",a=e.fontSize?'sz="'.concat(Math.round(100*e.fontSize),'"'):"",i=e.titleBold?1:0,s="<c:layout/>";if(e.titlePos&&"number"===typeof e.titlePos.x&&"number"===typeof e.titlePos.y){var l=e.titlePos.x+t,c=e.titlePos.y+n,u=0===l?0:l*(l/5)/10;u>=1&&(u/=10),u>=.1&&(u/=10);var d=0===c?0:c*(c/5)/10;d>=1&&(d/=10),d>=.1&&(d/=10),s='<c:layout><c:manualLayout><c:xMode val="edge"/><c:yMode val="edge"/><c:x val="'.concat(u,'"/><c:y val="').concat(d,'"/></c:manualLayout></c:layout>')}return"<c:title>\n <c:tx>\n <c:rich>\n ".concat(o,"\n <a:lstStyle/>\n <a:p>\n ").concat(r,"\n <a:defRPr ").concat(a,' b="').concat(i,'" i="0" u="none" strike="noStrike">\n <a:solidFill>').concat(zD(e.color||eD),'</a:solidFill>\n <a:latin typeface="').concat(e.fontFace||"Arial",'"/>\n </a:defRPr>\n </a:pPr>\n <a:r>\n <a:rPr ').concat(a,' b="').concat(i,'" i="0" u="none" strike="noStrike">\n <a:solidFill>').concat(zD(e.color||eD),'</a:solidFill>\n <a:latin typeface="').concat(e.fontFace||"Arial",'"/>\n </a:rPr>\n <a:t>').concat(OD(e.title)||"","</a:t>\n </a:r>\n </a:p>\n </c:rich>\n </c:tx>\n ").concat(s,'\n <c:overlay val="0"/>\n </c:title>')}function aL(e){var t=e-1;return t<=25?mD[t]:"".concat(mD[Math.floor(t/mD.length-1)]).concat(mD[t%mD.length])}function iL(e,t){if(!e)return"<a:effectLst/>";if("object"!==typeof e)return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"<a:effectLst/>";var n="<a:effectLst>",r=MR(MR({},t),e),o=r.type||"outer",a=jD(r.blur),i=jD(r.offset),s=Math.round(6e4*r.angle),l=r.color,c=Math.round(1e5*r.opacity),u=r.rotateWithShape?1:0;return n+="<a:".concat(o,'Shdw sx="100000" sy="100000" kx="0" ky="0" algn="bl" blurRad="').concat(a,'" rotWithShape="').concat(u,'" dist="').concat(i,'" dir="').
2concat(s,'">'),n+='<a:srgbClr val="'.concat(l,'">'),n+='<a:alpha val="'.concat(c,'"/></a:srgbClr>'),n+="</a:".concat(o,"Shdw>"),n+="</a:effectLst>"}function sL(e){var t="<c:majorGridlines>";return t+=" <c:spPr>",t+=' <a:ln w="'.concat(jD(e.size||$R.size),'" cap="').concat(lL(e.cap||$R.cap),'">'),t+=' <a:solidFill><a:srgbClr val="'+(e.color||$R.color)+'"/></a:solidFill>',t+=' <a:prstDash val="'+(e.style||$R.style)+'"/><a:round/>',t+=" </a:ln>",t+=" </c:spPr>",t+="</c:majorGridlines>"}function lL(e){if(e&&"flat"!==e){if("square"===e)return"sq";if("round"===e)return"rnd";throw new Error("Invalid chart line cap: ".concat(e))}return"flat"}function cL(e){var t="undefined"===typeof window?n(9912):null,r="undefined"===typeof window?n(908):null,o=[],a=e._relsMedia.filter((function(e){return"online"!==e.type&&!e.data&&(!e.path||e.path&&!e.path.includes("preencoded"))})),i=[];return a.forEach((function(e){i.includes(e.path)?e.isDuplicate=!0:(e.isDuplicate=!1,i.push(e.path))})),a.filter((function(e){return!e.isDuplicate})).forEach((function(e){o.push(new Promise((function(n,o){if(t&&0!==e.path.indexOf("http"))try{var i=t.readFileSync(e.path);e.data=Buffer.from(i).toString("base64"),a.filter((function(t){return t.isDupl
2icate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),n("done")}catch(l){e.data=RD,a.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),o(new Error('ERROR: Unable to read media: "'.concat(e.path,'"\n').concat(String(l))))}else if(t&&r&&0===e.path.indexOf("http"))r.get(e.path,(function(t){var r="";t.setEncoding("binary"),t.on("data",(function(e){return r+=e})),t.on("end",(function(){e.data=Buffer.from(r,"binary").toString("base64"),a.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),n("done")})),t.on("error",(function(t){e.data=RD,a.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),o(new Error("ERROR! Unable to load image (https.get): ".concat(e.path)))}))}));else{var s=new XMLHttpRequest;s.onload=function(){var t=new FileReader;t.onloadend=function(){e.data=t.result,a.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),e.isSvgPng?uL(e).then((function(){n("done")})).catch((function(e){o(e)})):n("done")},t.readAsDataURL(s.response)},s.onerror=function(t){e.data=RD,a.filter((function(t){return t.isDupl
2icate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),o(new Error("ERROR! Unable to load image (xhr.onerror): ".concat(e.path)))},s.open("GET",e.path),s.responseType="blob",s.send()}})))})),e._relsMedia.filter((function(e){return e.isSvgPng&&e.data})).forEach((function(e){t?(e.data=RD,o.push(Promise.resolve().then((function(){return"done"})))):o.push(uL(e))})),o}function uL(e){return jR(this,void 0,void 0,(function(){return FR(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t,n){var r=new Image;r.onload=function(){r.width+r.height===0&&r.onerror("h/w=0");var n=document.createElement("CANVAS"),o=n.getContext("2d");n.width=r.width,n.height=r.height,o.drawImage(r,0,0);try{e.data=n.toDataURL(e.type),t("done")}catch(a){r.onerror(a)}n=null},r.onerror=function(t){e.data=RD,n(new Error("ERROR! Unable to load image (image.onerror): ".concat(e.path)))},r.src="string"===typeof e.data?e.data:RD}))];case 1:return[2,t.sent()]}}))}))}var dL={cover:function(e,t){var n=e.h/e.w,r=t.h/t.w>n,o=r?t.h/n:t.w,a=r?t.h:t.w*n,i=Math.round(5e4*(1-t.w/o)),s=Math.round(5e4*(1-t.h/a));return'<a:srcRect l="'.concat(i,'" r="').concat(i,'" t="').concat(s,'" b="').concat(s,'"/><a:stretch/>')},contain:function(e,t){var n=e.h/e.w,r=t.h/t.w>n,o=r?t.w:t.h/n,a=r?t.w*n:t.h,i=Math.round(5e4*(1-t.w/o)),s=Math.round(5e4*(1-t.h/a));return'<a:srcRect l="'.concat(i,'" r="').concat(i,'" t="').concat(s,'" b="').concat(s,'"/><a:stretch/>')},crop:function(e,t){var n=t.x,r=e.w-(t.x+t.w),o=t.y,a=e.h-(t.y+t.h),i=Math.round(n/e.w*1e5),s=Math.round(r/e.w*1e5),l=Math.round(o/e.h*1e5),c=Math.round(a/e.h*1e5);return'<a:srcRect l="'.concat(i,'" r="').concat(s,'" t="').concat(l,'" b="').concat(c,'"/><a:stretch/>')}};function pL(e){var t,n=e._name?'<p:cSld name="'+e._name+'">':"<p:cSld>",r=1;return e._bkgdImgRid?n+='<p:bg><p:bgPr><a:blipFill dpi="0" rotWithShape="1"><a:blip r:embed="rId'.concat(e._bkgdImgRid,'"><a:lum/></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></a:blipFill><a:effectLst/></p:bgPr></p:bg>'):(null===(t=e.background)||void 0===t?void 0:t.color)?n+="<p:bg><p:bgPr>".concat(HD(e.background),"</p:bgPr></p:bg>"):!e.bkgd&&e._name&&e._name===oD&&(n+='<p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg>'),n+="<p:spTree>",n+='<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>',n+='<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/>',n+='<a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>',e._slideObjects.forEach((function(t,o){var a,i,s,l,c,u,d,p,h,f=0,m=0,g=DD("75%","X",e._presLayout),A=0,v="",y=null,b=null,x=0,w=0,E=null,C=null,S=null===(a=t.options)||void 0===a?void 0:a.sizing,T=null===(i=t.options)||void 0===i?void 0:i.rounding;void 0!==e._slideLayout&&void 0!==e._slideLayout._slideObjects&&t.options&&t.options.placeholder&&(h=e._slideLayout._slideObjects.filter((function(e){return e.options.placeholder===t.options.placeholder}))[0]),t.options=t.options||{},"undefined"!==typeof t.options.x&&(f=DD(t.options.x,"X",e._presLayout)),"undefined"!==typeof t.options.y&&(m=DD(t.options.y,"Y",e._presLayout)),"undefined"!==typeof t.options.w&&(g=DD(t.options.w,"X",e._presLayout)),"undefined"!==typeof t.options.h&&(A=DD(t.options.h,"Y",e._presLayout));var k=g,_=A;switch(h&&((h.options.x||0===h.options.x)&&(f=DD(h.options.x,"X",e._presLayout)),(h.options.y||0===h.options.y)&&(m=DD(h.options.y,"Y",e._presLayout)),(h.options.w||0===h.options.w)&&(g=DD(h.options.w,"X",e._presLayout)),(h.options.h||0===h.options.h)&&(A=DD(h.options.h,"Y",e._presLayout))),t.options.flipH&&(v+=' flipH="1"'),t.options.flipV&&(v+=' flipV="1"'),t.options.rotate&&(v+=' rot="'.concat(FD(t.options.rotate),'"')),t._type){case _D.table:if(y=t.arrTabRows,b=t.options,x=0,w=0,y[0].forEach((function(e){E=e.options||null,x+=(null===E||void 0===E?void 0:E.colspan)?Number(E.colspan):1})),C='<p:graphicFrame><p:nvGraphicFramePr><p:cNvPr id="'.concat(r*e._slideNum+1,'" name="').concat(t.options.objectName,'"/>'),C+='<p:cNvGraphicFramePr><a:graphicFrameLocks noGrp="1"/></p:cNvGraphicFramePr> <p:nvPr><p:extLst><p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}"><p14:modId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1579011935"/></p:ext></p:extLst></p:nvPr></p:nvGraphicFramePr>',C+='<p:xfrm><a:off x="'.concat(f||(0===f?0:HR),'" y="').concat(m||(0===m?0:HR),'"/><a:ext cx="').concat(g||(0===g?0:HR),'" cy="').concat(A||HR,'"/></p:xfrm>'),C+='<a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table"><a:tbl><a:tblPr/>',Array.isArray(b.colW)){C+="<a:tblGrid>";for(var N=0;N<x;N++){var I=MD(b.colW[N]);(null==I||isNaN(I))&&(I=("number"===typeof t.options.w?t.options.w:1)/x),C+='<a:gridCol w="'.concat(Math.round(I),'"/>')}C+="</a:tblGrid>"}else{w=b.colW?b.colW:HR,t.options.w&&!b.colW&&(w=Math.round(("number"===typeof t.options.w?t.options.w:1)/x)),C+="<a:tblGrid>";for(var P=0;P<x;P++)C+='<a:gridCol w="'.concat(w,'"/>');C+="</a:tblGrid>"}y.forEach((function(e){for(var t,n,r,o=function(o){var a=e[o],i=null===(t=a.options)||void 0===t?void 0:t.colspan,s=null===(n=a.options)||void 0===n?void 0:n.rowspan;if(i&&i>1){var l=new Array(i-1).fill(void 0).map((function(e){return{_type:_D.tablecell,options:{rowspan:s},_hmerge:!0}}));e.splice.apply(e,BR([o+1,0],l,!1)),o+=i}else o+=1;r=o},a=0;a<e.length;)o(a),a=r}
2)),y.forEach((function(e,t){var n=y[t+1];n&&e.forEach((function(e,t){var r,o,a=e._rowContinue||(null===(r=e.options)||void 0===r?void 0:r.rowspan),i=null===(o=e.options)||void 0===o?void 0:o.colspan,s=e._hmerge;if(a&&a>1){var l={_type:_D.tablecell,options:{colspan:i},_rowContinue:a-1,_vmerge:!0,_hmerge:s};n.splice(t,0,l)}}))})),y.forEach((function(e,n){var r=0;Array.isArray(b.rowH)&&b.rowH[n]?r=MD(Number(b.rowH[n])):b.rowH&&!isNaN(Number(b.rowH))?r=MD(Number(b.rowH)):(t.options.cy||t.options.h)&&(r=Math.round((t.options.h?MD(t.options.h):"number"===typeof t.options.cy?t.options.cy:1)/y.length)),C+='<a:tr h="'.concat(r,'">'),e.forEach((function(e){var t,n,r,o,a,i=e,s={rowSpan:(null===(t=i.options)||void 0===t?void 0:t.rowspan)>1?i.options.rowspan:void 0,gridSpan:(null===(n=i.options)||void 0===n?void 0:n.colspan)>1?i.options.colspan:void 0,vMerge:i._vmerge?1:void 0,hMerge:i._hmerge?1:void 0},l=Object.keys(s).map((function(e){return[e,s[e]]})).filter((function(e){return e[0],!!e[1]})).map((function(e){var t=e[0],n=e[1];return"".concat(String(t),'="').concat(String(n),'"')})).join(" ");if(l&&(l=" "+l),i._hmerge||i._vmerge)C+="<a:tc".concat(l,"><a:tcPr/></a:tc>");else{var c=i.options||{};i.options=c,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach((function(e){b[e]&&!c[e]&&0!==c[e]&&(c[e]=b[e])}));var u=c.valign?' anchor="'.concat(c.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b"),'"'):"",d=(null===(o=null===(r=i._optImp)||void 0===r?void 0:r.fill)||void 0===o?void 0:o.color)?i._optImp.fill.color:(null===(a=i._optImp)||void 0===a?void 0:a.fill)&&"string"===typeof i._optImp.fill?i._optImp.fill:"",p=(d=d||c.fill?c.fill:"")?HD(d):"",h=0===c.margin||c.margin?c.margin:JR;Array.isArray(h)||"number"!==typeof h||(h=[h,h,h,h]);var f="";f=h[0]>=1?' marL="'.concat(jD(h[3]),'" marR="').concat(jD(h[1]),'" marT="').concat(jD(h[0]),'" marB="').concat(jD(h[2]),'"'):' marL="'.concat(MD(h[3]),'" marR="').concat(MD(h[1]),'" marT="').concat(MD(h[0]),'" marB="').concat(MD(h[2]),'"'),C+="<a:tc".concat(l,">").concat(gL(i),"<a:tcPr").concat(f).concat(u,">"),c.border&&Array.isArray(c.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach((function(e){"none"!==c.border[e.idx].type?(C+="<a:".concat(e.name,' w="').concat(jD(c.border[e.idx].pt),'" cap="flat" cmpd="sng" algn="ctr">'),C+="<a:solidFill>".concat(zD(c.border[e.idx].color),"</a:solidFill>"),C+='<a:prstDash val="'.concat("dash"===c.border[e.idx].type?"sysDash":"solid",'"/><a:round/><a:headEnd type="none" w="med" len="med"/><a:tailEnd type="none" w="med" len="med"/>'),C+="</a:".concat(e.name,">")):C+="<a:".concat(e.name,' w="0" cap="flat" cmpd="sng" algn="ctr"><a:noFill/></a:').concat(e.name,">")})),C+=p,C+=" </a:tcPr>",C+=" </a:tc>"}})),C+="</a:tr>"})),C+=" </a:tbl>",C+=" </a:graphicData>",C+=" </a:graphic>",n+=C+="</p:graphicFrame>",r++;break;case _D.text:case _D.placeholder:if(t.options.line||0!==A||(A=.3*HR),t.options._bodyProp||(t.options._bodyProp={}),t.options.margin&&Array.isArray(t.options.margin)?(t.options._bodyProp.lIns=jD(t.options.margin[0]||0),t.options._bodyProp.rIns=jD(t.options.margin[1]||0),t.options._bodyProp.bIns=jD(t.options.margin[2]||0),t.options._bodyProp.tIns=jD(t.options.margin[3]||0)):"number"===typeof t.options.margin&&(t.options._bodyProp.lIns=jD(t.options.margin),t.options._bodyProp.rIns=jD(t.options.margin),t.options._bodyProp.bIns=jD(t.options.margin),t.options._bodyProp.tIns=jD(t.options.margin)),n+="<p:sp>",n+='<p:nvSpPr><p:cNvPr id="'.concat(o+2,'" name="').concat(t.options.objectName,'">'),(null===(s=t.options.hyperlink)||void 0===s?void 0:s.url)&&(n+='<a:hlinkClick r:id="rId'.concat(t.options.hyperlink._rId,'" tooltip="').concat(t.options.hyperlink.tooltip?OD(t.options.hyperlink.tooltip):"",'"/>')),(null===(l=t.options.hyperlink)||void 0===l?void 0:l.slide)&&(n+='<a:hlinkClick r:id="rId'.concat(t.options.hyperlink._rId,'" tooltip="').concat(t.options.hyperlink.tooltip?OD(t.options.hyperlink.tooltip):"",'" action="ppaction://hlinksldjump"/>')),n+="</p:cNvPr>",n+="<p:cNvSpPr"+((null===(c=t.options)||void 0===c?void 0:c.isTextBox)?' txBox="1"/>':"/>"),n+="<p:nvPr>
2".concat("placeholder"===t._type?AL(t):AL(h),"</p:nvPr>"),n+="</p:nvSpPr><p:spPr>",n+="<a:xfrm".concat(v,">"),n+='<a:off x="'.concat(f,'" y="').concat(m,'"/>'),n+='<a:ext cx="'.concat(g,'" cy="').concat(A,'"/></a:xfrm>'),"custGeom"===t.shape)n+="<a:custGeom><a:avLst />",n+="<a:gdLst>",n+="</a:gdLst>",n+="<a:ahLst />",n+="<a:cxnLst>",n+="</a:cxnLst>",n+='<a:rect l="l" t="t" r="r" b="b" />',n+="<a:pathLst>",n+='<a:path w="'.concat(g,'" h="').concat(A,'">'),null===(u=t.options.points)||void 0===u||u.forEach((function(t,r){if("curve"in t)switch(t.curve.type){case"arc":n+='<a:arcTo hR="'.concat(DD(t.curve.hR,"Y",e._presLayout),'" wR="').concat(DD(t.curve.wR,"X",e._presLayout),'" stAng="').concat(FD(t.curve.stAng),'" swAng="').concat(FD(t.curve.swAng),'" />');break;case"cubic":n+='<a:cubicBezTo>\n\t\t\t\t\t\t\t\t\t<a:pt x="'.concat(DD(t.curve.x1,"X",e._presLayout),'" y="').concat(DD(t.curve.y1,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t<a:pt x="').concat(DD(t.curve.x2,"X",e._presLayout),'" y="').concat(DD(t.curve.y2,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t<a:pt x="').concat(DD(t.x,"X",e._presLayout),'" y="').concat(DD(t.y,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t</a:cubicBezTo>');break;case"quadratic":n+='<a:quadBezTo>\n\t\t\t\t\t\t\t\t\t<a:pt x="'.concat(DD(t.curve.x1,"X",e._presLayout),'" y="').concat(DD(t.curve.y1,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t<a:pt x="').concat(DD(t.x,"X",e._presLayout),'" y="').concat(DD(t.y,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t</a:quadBezTo>')}else"close"in t?n+="<a:close />":t.moveTo||0===r?n+='<a:moveTo><a:pt x="'.concat(DD(t.x,"X",e._presLayout),'" y="').concat(DD(t.y,"Y",e._presLayout),'" /></a:moveTo>'):n+='<a:lnTo><a:pt x="'.concat(DD(t.x,"X",e._presLayout),'" y="').concat(DD(t.y,"Y",e._presLayout),'" /></a:lnTo>')})),n+="</a:path>",n+="</a:pathLst>",n+="</a:custGeom>";else{if(n+='<a:prstGeom prst="'+t.shape+'"><a:avLst>',t.options.rectRadius)n+='<a:gd name="adj" fmla="val '.concat(Math.round(t.options.rectRadius*HR*1e5/Math.min(g,A)),'"/>');else if(t.options.angleRange){for(var R=0;R<2;R++){var D=t.options.angleRange[R];n+='<a:gd name="adj'.concat(R+1,'" fmla="val ').concat(FD(D),'" />')}t.options.arcThicknessRatio&&(n+='<a:gd name="adj3" fmla="val '.concat(Math.round(5e4*t.options.arcThicknessRatio),'" />'))}n+="</a:avLst></a:prstGeom>"}n+=t.options.fill?HD(t.options.fill):"<a:noFill/>",t.options.line&&(n+=t.options.line.width?'<a:ln w="'.concat(jD(t.options.line.width),'">'):"<a:ln>",t.options.line.color&&(n+=HD(t.options.line)),t.options.line.dashType&&(n+='<a:prstDash val="'.concat(t.options.line.dashType,'"/>')),t.options.line.beginArrowType&&(n+='<a:headEnd type="'.concat(t.options.line.beginArrowType,'"/>')),t.options.line.endArrowType&&(n+='<a:tailEnd type="'.concat(t.options.line.endArrowType,'"/>')),n+="</a:ln>"),t.options.shadow&&"none"!==t.options.shadow.type&&(t.options.shadow.type=t.options.shadow.type||"outer",t.options.shadow.blur=jD(t.options.shadow.blur||8),t.options.shadow.offset=jD(t.options.shadow.offset||4),t.options.shadow.angle=Math.round(6e4*(t.options.shadow.angle||270)),t.options.shadow.opacity=Math.round(1e5*(t.options.shadow.opacity||.75)),t.options.shadow.color=t.options.shadow.color||lD.color,n+="<a:effectLst>",n+=" <a:".concat(t.options.shadow.type,"Shdw ").concat("outer"===t.options.shadow.type?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':"",' blurRad="').concat(t.options.shadow.blur,'" dist="').concat(t.options.shadow.offset,'" dir="').concat(t.options.shadow.angle,'">'),n+=' <a:srgbClr val="'.concat(t.options.shadow.color,'">'),n+=' <a:alpha val="'.concat(t.options.shadow.opacity,'"/></a:srgbClr>'),n+=" </a:outerShdw>",n+="</a:effectLst>"),n+="</p:spPr>",n+=gL(t),n+="</p:sp>";break;case _D.image:if(n+="<p:pic>",n+=" <p:nvPicPr>",n+='<p:cNvPr id="'.concat(o+2,'" name="').concat(t.options.objectName,'" descr="').concat(OD(t.options.altText||t.image),'">'),(null===(d=t.hyperlink)||void 0===d?void 0:d.url)&&(n+='<a:hlinkClick r:id="rId'.concat(t.hyperlink._rId,'" tooltip="').concat(t.hyperlink.tooltip?OD(t.hyperlink.tooltip):"",'"/>')),(null===(p=t.hyperlink)||void 0===p?void 0:p.slide)&&(n+='<a:hlinkClick r:id="rId'.concat(t.hyperlink._rId,'" tooltip="').concat(t.hyperlink.tooltip?OD(t.hyperlink.tooltip):"",'" action="ppaction://hlinksldjump"/>')),n+=" </p:cNvPr>",n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>"+AL(h)+"</p:nvPr>",n+=" </p:nvPicPr>",n+="<p:blipFill>",(e._relsMedia||[]).filter((function(e){return e.rId===t.imageRid}))[0]&&"svg"===(e._relsMedia||[]).filter((function(e){return e.rId===t.imageRid}))[0].extn?(n+='<a:blip r:embed="rId'.concat(t.imageRid-1,'">'),n+=t.options.transparency?' <a:alphaModFix amt="'.concat(Math.round(1e3*(100-t.options.transparency)),'"/>'):"",n+=" <a:extLst>
2",n+=' <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">',n+=' <asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" r:embed="rId'.concat(t.imageRid,'"/>'),n+=" </a:ext>",n+=" </a:extLst>",n+="</a:blip>"):(n+='<a:blip r:embed="rId'.concat(t.imageRid,'">'),n+=t.options.transparency?'<a:alphaModFix amt="'.concat(Math.round(1e3*(100-t.options.transparency)),'"/>'):"",n+="</a:blip>"),null===S||void 0===S?void 0:S.type){var L=S.w?DD(S.w,"X",e._presLayout):g,O=S.h?DD(S.h,"Y",e._presLayout):A,M=DD(S.x||0,"X",e._presLayout),j=DD(S.y||0,"Y",e._presLayout);n+=dL[S.type]({w:k,h:_},{w:L,h:O,x:M,y:j}),k=L,_=O}else n+=" <a:stretch><a:fillRect/></a:stretch>";n+="</p:blipFill>",n+="<p:spPr>",n+=" <a:xfrm"+v+">",n+=' <a:off x="'.concat(f,'" y="').concat(m,'"/>'),n+=' <a:ext cx="'.concat(k,'" cy="').concat(_,'"/>'),n+=" </a:xfrm>",n+=' <a:prstGeom prst="'.concat(T?"ellipse":"rect",'"><a:avLst/></a:prstGeom>'),t.options.shadow&&"none"!==t.options.shadow.type&&(t.options.shadow.type=t.options.shadow.type||"outer",t.options.shadow.blur=jD(t.options.shadow.blur||8),t.options.shadow.offset=jD(t.options.shadow.offset||4),t.options.shadow.angle=Math.round(6e4*(t.options.shadow.angle||270)),t.options.shadow.opacity=Math.round(1e5*(t.options.shadow.opacity||.75)),t.options.shadow.color=t.options.shadow.color||lD.color,n+="<a:effectLst>",n+="<a:".concat(t.options.shadow.type,"Shdw ").concat("outer"===t.options.shadow.type?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':"",' blurRad="').concat(t.options.shadow.blur,'" dist="').concat(t.options.shadow.offset,'" dir="').concat(t.options.shadow.angle,'">'),n+='<a:srgbClr val="'.concat(t.options.shadow.color,'">'),n+='<a:alpha val="'.concat(t.options.shadow.opacity,'"/></a:srgbClr>'),n+="</a:".concat(t.options.shadow.type,"Shdw>"),n+="</a:effectLst>"),n+="</p:spPr>",n+="</p:pic>";break;case _D.media:"online"===t.mtype?(n+="<p:pic>",n+=" <p:nvPicPr>",n+='<p:cNvPr id="'.concat(t.mediaRid+2,'" name="').concat(t.options.objectName,'"/>'),n+=" <p:cNvPicPr/>",n+=" <p:nvPr>",n+=' <a:videoFile r:link="rId'.concat(t.mediaRid,'"/>'),n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=' <p:blipFill><a:blip r:embed="rId'.concat(t.mediaRid+1,'"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>'),n+=" <p:spPr>",n+=" <a:xfrm".concat(v,'><a:off x="').concat(f,'" y="').concat(m,'"/><a:ext cx="').concat(g,'" cy="').concat(A,'"/></a:xfrm>'),n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>"):(n+="<p:pic>",n+=" <p:nvPicPr>",n+='<p:cNvPr id="'.concat(t.mediaRid+2,'" name="').concat(t.options.objectName,'"><a:hlinkClick r:id="" action="ppaction://media"/></p:cNvPr>'),n+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',n+=" <p:nvPr>",n+=' <a:videoFile r:link="rId'.concat(t.mediaRid,'"/>'),n+=" <p:extLst>",n+=' <p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">',n+=' <p14:media xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId'.concat(t.mediaRid+1,'"/>'),n+=" </p:ext>",n+=" </p:extLst>",n+=" </p:nvPr>",n+=" </p:nvPicPr>",n+=' <p:blipFill><a:blip r:embed="rId'.concat(t.mediaRid+2,'"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>'),n+=" <p:spPr>",n+=" <a:xfrm".concat(v,'><a:off x="').concat(f,'" y="').concat(m,'"/><a:ext cx="').concat(g,'" cy="').concat(A,'"/></a:xfrm>'),n+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',n+=" </p:spPr>",n+="</p:pic>");break;case _D.chart:n+="<p:graphicFrame>",n+=" <p:nvGraphicFramePr>",n+=' <p:cNvPr id="'.concat(o+2,'" name="').concat(t.options.objectName,'" descr="').concat(OD(t.options.altText||""),'"/>'),n+=" <p:cNvGraphicFramePr/>",n+=" <p:nvPr>".concat(AL(h),"</p:nvPr>"),n+=" </p:nvGraphicFramePr>",n+=' <p:xfrm><a:off x="'.concat(f,'" y="').concat(m,'"/><a:ext cx="').concat(g,'" cy="').concat(A,'"/></p:xfrm>'),n+=' <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',n+=' <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">',n+=' <c:chart r:id="rId'.concat(t.chartRid,'" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"/>'),n+=" </a:graphicData>",n+=" </a:graphic>",n+="</p:graphicFrame>";break;default:n+=""}})),e._slideNumberProps&&(e._slideNumberProps.align||(e._slideNumberProps.align="left"),n+="<p:sp>",n+=" <p:nvSpPr>",n+=' <p:cNvPr id="25" name="Slide Number Placeholder 0"/>
2<p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>',n+=' <p:nvPr><p:ph type="sldNum" sz="quarter" idx="4294967295"/></p:nvPr>',n+=" </p:nvSpPr>",n+=" <p:spPr>",n+="<a:xfrm>"+'<a:off x="'.concat(DD(e._slideNumberProps.x,"X",e._presLayout),'" y="').concat(DD(e._slideNumberProps.y,"Y",e._presLayout),'"/>')+'<a:ext cx="'.concat(e._slideNumberProps.w?DD(e._slideNumberProps.w,"X",e._presLayout):"800000",'" cy="').concat(e._slideNumberProps.h?DD(e._slideNumberProps.h,"Y",e._presLayout):"300000",'"/>')+'</a:xfrm> <a:prstGeom prst="rect"><a:avLst/></a:prstGeom> <a:extLst><a:ext uri="{C572A759-6A51-4108-AA02-DFA0A04FC94B}"><ma14:wrappingTextBoxFlag val="0" xmlns:ma14="http://schemas.microsoft.com/office/mac/drawingml/2011/main"/></a:ext></a:extLst></p:spPr>',n+="<p:txBody>",n+="<a:bodyPr",e._slideNumberProps.margin&&Array.isArray(e._slideNumberProps.margin)?(n+=' lIns="'.concat(jD(e._slideNumberProps.margin[3]||0),'"'),n+=' tIns="'.concat(jD(e._slideNumberProps.margin[0]||0),'"'),n+=' rIns="'.concat(jD(e._slideNumberProps.margin[1]||0),'"'),n+=' bIns="'.concat(jD(e._slideNumberProps.margin[2]||0),'"')):"number"===typeof e._slideNumberProps.margin&&(n+=' lIns="'.concat(jD(e._slideNumberProps.margin||0),'"'),n+=' tIns="'.concat(jD(e._slideNumberProps.margin||0),'"'),n+=' rIns="'.concat(jD(e._slideNumberProps.margin||0),'"'),n+=' bIns="'.concat(jD(e._slideNumberProps.margin||0),'"')),e._slideNumberProps.valign&&(n+=' anchor="'.concat(e._slideNumberProps.valign.replace("top","t").replace("middle","ctr").replace("bottom","b"),'"')),n+="/>",n+=" <a:lstStyle><a:lvl1pPr>",(e._slideNumberProps.fontFace||e._slideNumberProps.fontSize||e._slideNumberProps.color)&&(n+='<a:defRPr sz="'.concat(Math.round(100*(e._slideNumberProps.fontSize||12)),'">'),e._slideNumberProps.color&&(n+=HD(e._slideNumberProps.color)),e._slideNumberProps.fontFace&&(n+='<a:latin typeface="'.concat(e._slideNumberProps.fontFace,'"/><a:ea typeface="').concat(e._slideNumberProps.fontFace,'"/><a:cs typeface="').concat(e._slideNumberProps.fontFace,'"/>')),n+="</a:defRPr>"),n+="</a:lvl1pPr></a:lstStyle>",n+="<a:p>",e._slideNumberProps.align.startsWith("l")?n+='<a:pPr algn="l"/>':e._slideNumberProps.align.startsWith("c")?n+='<a:pPr algn="ctr"/>':e._slideNumberProps.align.startsWith("r")?n+='<a:pPr algn="r"/>':n+='<a:pPr algn="l"/>',n+='<a:fld id="'.concat(PD,'" type="slidenum"><a:rPr b="').concat(e._slideNumberProps.bold?1:0,'" lang="en-US"/>'),n+="<a:t>".concat(e._slideNum,'</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p>'),n+="</p:txBody></p:sp>"),n+="</p:spTree>",n+="</p:cSld>"}function hL(e,t){var n=0,r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+VR+'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';return e._rels.forEach((function(e){n=Math.max(n,e.rId),e.type.toLowerCase().includes("hyperlink")?"slide"===e.data?r+='<Relationship Id="rId'.concat(e.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slide').concat(e.Target,'.xml"/>'):r+='<Relationship Id="rId'.concat(e.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="').concat(e.Target,'" TargetMode="External"/>'):e.type.toLowerCase().includes("notesSlide")&&(r+='<Relationship Id="rId'.concat(e.rId,'" Target="').concat(e.Target,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"/>'))})),(e._relsChart||[]).forEach((function(e){n=Math.max(n,e.rId),r+='<Relationship Id="rId'.concat(e.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="').concat(e.Target,'"/>')})),(e._relsMedia||[]).forEach((function(e){var t=e.rId.toString();n=Math.max(n,e.rId),e.type.toLowerCase().includes("image")?r+='<Relationship Id="rId'+t+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+e.Target+'"/>':e.type.toLowerCase().includes("audio")?r.includes(' Target="'+e.Target+'"')?r+='<Relationship Id="rId'+t+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+e.Target+'"/>':r+='<Relationship Id="rId'+t+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="'+e.Target+'"/>':e.type.toLowerCase().includes("video")?r.includes(' Target="'+e.Target+'"')?r+='<Relationship Id="rId'+t+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+e.Target+'"/>':r+='<Relationship Id="rId'+t+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="'+e.Target+'"/>':e.type.toLowerCase().includes("online")&&(r.includes(' Target="'+e.Target+'"')?r+='<Relationship Id="rId'+t+'" Type="http://schemas.microsoft.com/office/2007/relationships/image" Target="'+e.Target+'"/>':r+='<Relationship Id="rId'+t+'" Target="'+e.Target+'" TargetMode="External" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"/>')})),t.forEach((function(e,t){r+='<Relationship Id="rId'.concat(n+t+1,'" Type="').concat(e.type,'" Target="').concat(e.target,'"/>')})),r+="</Relationships>"}function fL(e,t){var n,r,o="",a="",i="",s="",l=t?"a:lvl1pPr":"a:pPr",c=jD(YR),u="<".concat(l).concat(e.options.rtlMode?' rtl="1" ':"");
2if(e.options.align)switch(e.options.align){case"left":u+=' algn="l"';break;case"right":u+=' algn="r"';break;case"center":u+=' algn="ctr"';break;case"justify":u+=' algn="just"';break;default:u+=""}if(e.options.lineSpacing?a='<a:lnSpc><a:spcPts val="'.concat(Math.round(100*e.options.lineSpacing),'"/></a:lnSpc>'):e.options.lineSpacingMultiple&&(a='<a:lnSpc><a:spcPct val="'.concat(Math.round(1e5*e.options.lineSpacingMultiple),'"/></a:lnSpc>')),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&e.options.indentLevel>0&&(u+=' lvl="'.concat(e.options.indentLevel,'"')),e.options.paraSpaceBefore&&!isNaN(Number(e.options.paraSpaceBefore))&&e.options.paraSpaceBefore>0&&(i+='<a:spcBef><a:spcPts val="'.concat(Math.round(100*e.options.paraSpaceBefore),'"/></a:spcBef>')),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&e.options.paraSpaceAfter>0&&(i+='<a:spcAft><a:spcPts val="'.concat(Math.round(100*e.options.paraSpaceAfter),'"/></a:spcAft>')),"object"===typeof e.options.bullet)if((null===(r=null===(n=null===e||void 0===e?void 0:e.options)||void 0===n?void 0:n.bullet)||void 0===r?void 0:r.indent)&&(c=jD(e.options.bullet.indent)),e.options.bullet.type)"number"===e.options.bullet.type.toString().toLowerCase()&&(u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),o='<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="'.concat(e.options.bullet.style||"arabicPeriod",'" startAt="').concat(e.options.bullet.numberStartAt||e.options.bullet.startAt||"1",'"/>'));else if(e.options.bullet.characterCode){var d="&#x".concat(e.options.bullet.characterCode,";");/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),d=ID.DEFAULT),u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),o='<a:buSzPct val="100000"/><a:buChar char="'+d+'"/>'}else if(e.options.bullet.code){d="&#x".concat(e.options.bullet.code,";");/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),d=ID.DEFAULT),u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),o='<a:buSzPct val="100000"/><a:buChar char="'+d+'"/>'}else u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),o='<a:buSzPct val="100000"/><a:buChar char="'.concat(ID.DEFAULT,'"/>');else e.options.bullet?(u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),o='<a:buSzPct val="100000"/><a:buChar char="'.concat(ID.DEFAULT,'"/>')):e.options.bullet||(u+=' indent="0" marL="0"',o="<a:buNone/>");if(e.options.tabStops&&Array.isArray(e.options.tabStops)){var p=e.options.tabStops.map((function(e){return'<a:tab pos="'.concat(MD(e.position||1),'" algn="').concat(e.alignment||"l",'"/>')})).join("");s="<a:tabLst>".concat(p,"</a:tabLst>")}return u+=">"+a+i+o+s,t&&(u+=mL(e.options,!0)),u+="</"+l+">"}function mL(e,t){var n,r="",o=t?"a:defRPr":"a:rPr";if(r+="<"+o+' lang="'+(e.lang?e.lang:"en-US")+'"'+(e.lang?' altLang="en-US"':""),r+=e.fontSize?' sz="'.concat(Math.round(100*e.fontSize),'"'):"",r+=(null===e||void 0===e?void 0:e.bold)?' b="'.concat(e.bold?"1":"0",'"'):"",r+=(null===e||void 0===e?void 0:e.italic)?' i="'.concat(e.italic?"1":"0",'"'):"",r+=(null===e||void 0===e?void 0:e.strike)?' strike="'.concat("string"===typeof e.strike?e.strike:"sngStrike",'"'):"","object"===typeof e.underline&&(null===(n=e.underline)||void 0===n?void 0:n.style)?r+=' u="'.concat(e.underline.style,'"'):"string"===typeof e.underline?r+=' u="'.concat(String(e.underline),'"'):e.hyperlink&&(r+=' u="sng"'),e.baseline?r+=' baseline="'.concat(Math.round(50*e.baseline),'"'):e.subscript?r+=' baseline="-40000"':e.superscript&&(r+=' baseline="30000"'),r+=e.charSpacing?' spc="'.concat(Math.round(100*e.charSpacing),'" kern="0"'):"",r+=' dirty="0">',(e.color||e.fontFace||e.outline||"object"===typeof e.underline&&e.underline.color)&&(e.outline&&"object"===typeof e.outline&&(r+='<a:ln w="'.concat(jD(e.outline.size||.75),'">').concat(HD(e.outline.color||"FFFFFF"),"</a:ln>")),e.color&&(r+=HD({color:e.color,transparency:e.transparency})),e.highlight&&(r+="<a:highlight>
2".concat(zD(e.highlight),"</a:highlight>")),"object"===typeof e.underline&&e.underline.color&&(r+="<a:uFill>".concat(HD(e.underline.color),"</a:uFill>")),e.glow&&(r+="<a:effectLst>".concat(function(e,t){var n="",r=MR(MR({},t),e),o=Math.round(r.size*WR),a=r.color,i=Math.round(1e5*r.opacity);return n+='<a:glow rad="'.concat(o,'">'),n+=zD(a,'<a:alpha val="'.concat(i,'"/>')),n+"</a:glow>"}(e.glow,cD),"</a:effectLst>")),e.fontFace&&(r+='<a:latin typeface="'.concat(e.fontFace,'" pitchFamily="34" charset="0"/><a:ea typeface="').concat(e.fontFace,'" pitchFamily="34" charset="-122"/><a:cs typeface="').concat(e.fontFace,'" pitchFamily="34" charset="-120"/>'))),e.hyperlink){if("object"!==typeof e.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!e.hyperlink.url&&!e.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");e.hyperlink.url?r+='<a:hlinkClick r:id="rId'.concat(e.hyperlink._rId,'" invalidUrl="" action="" tgtFrame="" tooltip="').concat(e.hyperlink.tooltip?OD(e.hyperlink.tooltip):"",'" history="1" highlightClick="0" endSnd="0"').concat(e.color?">":"/>"):e.hyperlink.slide&&(r+='<a:hlinkClick r:id="rId'.concat(e.hyperlink._rId,'" action="ppaction://hlinksldjump" tooltip="').concat(e.hyperlink.tooltip?OD(e.hyperlink.tooltip):"",'"').concat(e.color?">":"/>")),e.color&&(r+=" <a:extLst>",r+=' <a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">',r+=' <ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>',r+=" </a:ext>",r+=" </a:extLst>",r+="</a:hlinkClick>")}return r+="</".concat(o,">")}function gL(e){var t=e.options||{},n=[],r=[];if(t&&e._type!==_D.tablecell&&("undefined"===typeof e.text||null===e.text))return"";var o=e._type===_D.tablecell?"<a:txBody>":"<p:txBody>";o+=function(e){var t="<a:bodyPr";return e&&e._type===_D.text&&e.options._bodyProp?(t+=e.options._bodyProp.wrap?' wrap="square"':' wrap="none"',(e.options._bodyProp.lIns||0===e.options._bodyProp.lIns)&&(t+=' lIns="'.concat(e.options._bodyProp.lIns,'"')),(e.options._bodyProp.tIns||0===e.options._bodyProp.tIns)&&(t+=' tIns="'.concat(e.options._bodyProp.tIns,'"')),(e.options._bodyProp.rIns||0===e.options._bodyProp.rIns)&&(t+=' rIns="'.concat(e.options._bodyProp.rIns,'"')),(e.options._bodyProp.bIns||0===e.options._bodyProp.bIns)&&(t+=' bIns="'.concat(e.options._bodyProp.bIns,'"')),t+=' rtlCol="0"',e.options._bodyProp.anchor&&(t+=' anchor="'+e.options._bodyProp.anchor+'"'),e.options._bodyProp.vert&&(t+=' vert="'+e.options._bodyProp.vert+'"'),t+=">",e.options.fit&&("none"===e.options.fit?t+="":"shrink"===e.options.fit?t+="<a:normAutofit/>":"resize"===e.options.fit&&(t+="<a:spAutoFit/>")),e.options.shrinkText&&(t+="<a:normAutofit/>"),t+=e.options._bodyProp.autoFit?"<a:spAutoFit/>":"",t+="</a:bodyPr>"):(t+=' wrap="square" rtlCol="0">',t+="</a:bodyPr>"),e._type===_D.tablecell?"<a:bodyPr/>":t}(e),0===t.h&&t.line&&t.align?o+='<a:lstStyle><a:lvl1pPr algn="l"/></a:lstStyle>':"placeholder"===e._type?o+="<a:lstStyle>".concat(fL(e,!0),"</a:lstStyle>"):o+="<a:lstStyle/>","string"===typeof e.text||"number"===typeof e.text?n.push({text:e.text.toString(),options:t||{}}):e.text&&!Array.isArray(e.text)&&"object"===typeof e.text&&Object.keys(e.text).includes("text")?n.push({text:e.text||"",options:e.options||{}}):Array.isArray(e.text)&&(n=e.text.map((function(e){return{text:e.text,options:e.options}}))),n.forEach((function(e,n){e.text||(e.text=""),e.options=e.options||t||{},0===n&&e.options&&!e.options.bullet&&t.bullet&&(e.options.bullet=t.bullet),"string"!==typeof e.text&&"number"!==typeof e.text||(e.text=e.text.toString().replace(/\r*\n/g,VR)),e.text.includes(VR)&&null===e.text.match(/\n$/g)?e.text.split(VR).forEach((function(t){e.options.breakLine=!0,r.push({text:t,options:e.options})})):r.push(e)}));var a=[],i=[];return r.forEach((function(e,n){i.length>0&&(e.options.align||t.align)?e.options.align!==r[n-1].options.align&&(a.push(i),i=[]):i.length>0&&e.options.bullet&&i.length>0&&(a.push(i),i=[],e.options.breakLine=!1),i.push(e),i.length>0&&e.options.breakLine&&n+1<r.length&&(a.push(i),i=[]),n+1===r.length&&a.push(i)})),a.forEach((function(n){var r,a=!1;o+="<a:p>";var i="<a:pPr ".concat((null===(r=n[0].options)||void 0===r?void 0:r.rtlMode)?' rtl="1" ':"");
2n.forEach((function(e,n){e.options._lineIdx=n,n>0&&e.options.softBreakBefore&&(o+="<a:br/>"),e.options.align=e.options.align||t.align,e.options.lineSpacing=e.options.lineSpacing||t.lineSpacing,e.options.lineSpacingMultiple=e.options.lineSpacingMultiple||t.lineSpacingMultiple,e.options.indentLevel=e.options.indentLevel||t.indentLevel,e.options.paraSpaceBefore=e.options.paraSpaceBefore||t.paraSpaceBefore,e.options.paraSpaceAfter=e.options.paraSpaceAfter||t.paraSpaceAfter,i=fL(e,!1),o+=i.replace("<a:pPr></a:pPr>",""),Object.entries(t).filter((function(t){var n=t[0];return t[1],!(e.options.hyperlink&&"color"===n)})).forEach((function(t){var n=t[0],r=t[1];"bullet"===n||e.options[n]||(e.options[n]=r)})),o+=function(e){return e.text?"<a:r>".concat(mL(e.options,!1),"<a:t>").concat(OD(e.text),"</a:t></a:r>"):""}(e),(!e.text&&t.fontSize||e.options.fontSize)&&(a=!0,t.fontSize=t.fontSize||e.options.fontSize)})),e._type===_D.tablecell&&(t.fontSize||t.fontFace)?t.fontFace?(o+='<a:endParaRPr lang="'.concat(t.lang||"en-US",'"')+(t.fontSize?' sz="'.concat(Math.round(100*t.fontSize),'"'):"")+' dirty="0">',o+='<a:latin typeface="'.concat(t.fontFace,'" charset="0"/>'),o+='<a:ea typeface="'.concat(t.fontFace,'" charset="0"/>'),o+='<a:cs typeface="'.concat(t.fontFace,'" charset="0"/>'),o+="</a:endParaRPr>"):o+='<a:endParaRPr lang="'.concat(t.lang||"en-US",'"')+(t.fontSize?' sz="'.concat(Math.round(100*t.fontSize),'"'):"")+' dirty="0"/>':o+=a?'<a:endParaRPr lang="'.concat(t.lang||"en-US",'"')+(t.fontSize?' sz="'.concat(Math.round(100*t.fontSize),'"'):"")+' dirty="0"/>':'<a:endParaRPr lang="'.concat(t.lang||"en-US",'" dirty="0"/>'),o+="</a:p>"})),o+=e._type===_D.tablecell?"</a:txBody>":"</p:txBody>"}function AL(e){var t,n;if(!e)return"";var r=(null===(t=e.options)||void 0===t?void 0:t._placeholderIdx)?e.options._placeholderIdx:"",o=(null===(n=e.options)||void 0===n?void 0:n._placeholderType)?e.options._placeholderType:"",a=o&&ND[o]?ND[o].toString():"";return"<p:ph\n\t\t".concat(r?' idx="'+r.toString()+'"':"","\n\t\t").concat(a&&ND[a]?' type="'.concat(a,'"'):"","\n\t\t").concat(e.text&&e.text.length>0?' hasCustomPrompt="1"':"","\n\t\t/>")}function vL(e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR,'<p:notes xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:r><a:rPr lang="en-US" dirty="0"/><a:t>').concat(OD(function(e){var t="";return e._slideObjects.forEach((function(e){e._type===_D.notes&&(t+=(null===e||void 0===e?void 0:e.text)&&e.text[0]?e.text[0].text:"")})),t.replace(/\r*\n/g,VR)}(e)),'</a:t></a:r><a:endParaRPr lang="en-US" dirty="0"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Number Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="10"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:fld id="').concat(PD,'" type="slidenum"><a:rPr lang="en-US"/><a:t>').concat(e._slideNum,'</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>')}function yL(e,t,n){for(var r=0;r<t.length;r++)if(t[r]._name===e[n-1]._slideLayout._name)return r+1;return 1}var bL=function(){function e(){var e=this;this._version="3.12.0",this._alignH=wD,this._alignV=ED,this._chartType=yD,this._outputType=vD,this._schemeColor=xD,this._shapeType=bD,this._charts=SD,this._colors=TD,this._shapes=CD,this.addNewSlide=function(t){var n=e.sections.length>0&&e.sections[e.sections.length-1]._slides.filter((function(t){return t._slideNum===e.slides[e.slides.length-1]._slideNum})).length>0;return t.sectionTitle=n?e.sections[e.sections.length-1].title:null,e.addSlide(t)}
2,this.getSlide=function(t){return e.slides.filter((function(e){return e._slideNum===t}))[0]},this.setSlideNumber=function(t){e.masterSlide._slideNumberProps=t,e.slideLayouts.filter((function(e){return e._name===oD}))[0]._slideNumberProps=t},this.createChartMediaRels=function(e,t,n){e._relsChart.forEach((function(e){return n.push(eL(e,t))})),e._relsMedia.forEach((function(e){if("online"!==e.type&&"hyperlink"!==e.type){var n=e.data&&"string"===typeof e.data?e.data:"";(n.includes(",")||n.includes(";"))&&n.includes(",")?n.includes(";")||(n="image/png;"+n):n="image/png;base64,"+n,t.file(e.Target.replace("..","ppt"),n.split(",").pop(),{base64:!0})}}))},this.writeFileToBrowser=function(t,n){return jR(e,void 0,void 0,(function(){var e,r;return FR(this,(function(o){switch(o.label){case 0:return(e=document.createElement("a")).setAttribute("style","display:none;"),e.dataset.interception="off",document.body.appendChild(e),window.URL.createObjectURL?(r=window.URL.createObjectURL(new Blob([n],{type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"})),e.href=r,e.download=t,e.click(),setTimeout((function(){window.URL.revokeObjectURL(r),document.body.removeChild(e)}),100),[4,Promise.resolve(t)]):[3,2];case 1:return[2,o.sent()];case 2:return[2]}}
2))}))},this.exportPresentation=function(t){return jR(e,void 0,void 0,(function(){var e,n,r,o=this;return FR(this,(function(a){switch(a.label){case 0:return e=[],n=[],r=new(OR()),this.slides.forEach((function(e){n=n.concat(cL(e))})),this.slideLayouts.forEach((function(e){n=n.concat(cL(e))})),n=n.concat(cL(this.masterSlide)),[4,Promise.all(n).then((function(){return jR(o,void 0,void 0,(function(){var n=this;return FR(this,(function(o){switch(o.label){case 0:return this.slides.forEach((function(e){e._slideLayout&&function(e){(e._slideLayout._slideObjects||[]).forEach((function(t){t._type===_D.placeholder&&0===e._slideObjects.filter((function(e){return e.options&&e.options.placeholder===t.options.placeholder})).length&&KD(e,[{text:""}],t.options,!1)}))}(e)})),r.folder("_rels"),r.folder("docProps"),r.folder("ppt").folder("_rels"),r.folder("ppt/charts").folder("_rels"),r.folder("ppt/embeddings"),r.folder("ppt/media"),r.folder("ppt/slideLayouts").folder("_rels"),r.folder("ppt/slideMasters").folder("_rels"),r.folder("ppt/slides").folder("_rels"),r.folder("ppt/theme"),r.folder("ppt/notesMasters").folder("_rels"),r.folder("ppt/notesSlides").folder("_rels"),r.file("[Content_Types].xml",function(e,t,n){var r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+VR;return r+='<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">',r+='<Default Extension="xml" ContentType="application/xml"/>',r+='<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>',r+='<Default Extension="jpeg" ContentType="image/jpeg"/>',r+='<Default Extension="jpg" ContentType="image/jpg"/>',r+='<Default Extension="svg" ContentType="image/svg+xml"/>',r+='<Default Extension="png" ContentType="image/png"/>',r+='<Default Extension="gif" ContentType="image/gif"/>',r+='<Default Extension="m4v" ContentType="video/mp4"/>',r+='<Default Extension="mp4" ContentType="video/mp4"/>',e.forEach((function(e){(e._relsMedia||[]).forEach((function(e){"image"===e.type||"online"===e.type||"chart"===e.type||"m4v"===e.extn||r.includes(e.type)||(r+='<Default Extension="'+e.extn+'" ContentType="'+e.type+'"/>')}))})),r+='<Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>',r+='<Default Extension="xlsx" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"/>',r+='<Override PartName="/ppt/presentation.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"/>',r+='<Override PartName="/ppt/notesMasters/notesMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml"/>',e.forEach((function(e,t){r+='<Override PartName="/ppt/slideMasters/slideMaster'.concat(t+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>'),r+='<Override PartName="/ppt/slides/slide'.concat(t+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>'),e._relsChart.forEach((function(e){r+='<Override PartName="'.concat(e.Target,'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>')}))})),r+='<Override PartName="/ppt/presProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presProps+xml"/>',r+='<Override PartName="/ppt/viewProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml"/>',r+='<Override PartName="/ppt/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>',r+='<Override PartName="/ppt/tableStyles.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"/>',t.forEach((function(e,t){r+='<Override PartName="/ppt/slideLayouts/slideLayout'.concat(t+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>'),(e._relsChart||[]).forEach((function(e){r+=' <Override PartName="'+e.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'}))})),e.forEach((function(e,t){r+='<Override PartName="/ppt/notesSlides/notesSlide'.concat(t+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml"/>')})),n._relsChart.forEach((function(e){r+=' <Override PartName="'+e.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'}
2)),n._relsMedia.forEach((function(e){"image"===e.type||"online"===e.type||"chart"===e.type||"m4v"===e.extn||r.includes(e.type)||(r+=' <Default Extension="'+e.extn+'" ContentType="'+e.type+'"/>')})),r+=' <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>',r+=' <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>',r+="</Types>"}(this.slides,this.slideLayouts,this.masterSlide)),r.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR,'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n\t\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>\n\t\t<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>\n\t\t<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="ppt/presentation.xml"/>\n\t\t</Relationships>')),r.file("docProps/app.xml",(c=this.slides,u=this.company,'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR,'<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n\t<TotalTime>0</TotalTime>\n\t<Words>0</Words>\n\t<Application>Microsoft Office PowerPoint</Application>\n\t<PresentationFormat>On-screen Show (16:9)</PresentationFormat>\n\t<Paragraphs>0</Paragraphs>\n\t<Slides>').concat(c.length,"</Slides>\n\t<Notes>").concat(c.length,'</Notes>\n\t<HiddenSlides>0</HiddenSlides>\n\t<MMClips>0</MMClips>\n\t<ScaleCrop>false</ScaleCrop>\n\t<HeadingPairs>\n\t\t<vt:vector size="6" baseType="variant">\n\t\t\t<vt:variant><vt:lpstr>Fonts Used</vt:lpstr></vt:variant>\n\t\t\t<vt:variant><vt:i4>2</vt:i4></vt:variant>\n\t\t\t<vt:variant><vt:lpstr>Theme</vt:lpstr></vt:variant>\n\t\t\t<vt:variant><vt:i4>1</vt:i4></vt:variant>\n\t\t\t<vt:variant><vt:lpstr>Slide Titles</vt:lpstr></vt:variant>\n\t\t\t<vt:variant><vt:i4>').concat(c.length,'</vt:i4></vt:variant>\n\t\t</vt:vector>\n\t</HeadingPairs>\n\t<TitlesOfParts>\n\t\t<vt:vector size="').concat(c.length+1+2,'" baseType="lpstr">\n\t\t\t<vt:lpstr>Arial</vt:lpstr>\n\t\t\t<vt:lpstr>Calibri</vt:lpstr>\n\t\t\t<vt:lpstr>Office Theme</vt:lpstr>\n\t\t\t').concat(c.map((function(e,t){return"<vt:lpstr>Slide ".concat(t+1,"</vt:lpstr>")})).join(""),"\n\t\t</vt:vector>\n\t</TitlesOfParts>\n\t<Company>").concat(u,"</Company>\n\t<LinksUpToDate>false</LinksUpToDate>\n\t<SharedDoc>false</SharedDoc>\n\t<HyperlinksChanged>false</HyperlinksChanged>\n\t<AppVersion>16.0000</AppVersion>\n\t</Properties>"))),r.file("docProps/core.xml",(a=this.title,i=this.subject,s=this.author,l=this.revision,'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n\t<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n\t\t<dc:title>'.concat(OD(a),"</dc:title>\n\t\t<dc:subject>").concat(OD(i),"</dc:subject>\n\t\t<dc:creator>").concat(OD(s),"</dc:creator>\n\t\t<cp:lastModifiedBy>").concat(OD(s),"</cp:lastModifiedBy>\n\t\t<cp:revision>").concat(l,'</cp:revision>\n\t\t<dcterms:created xsi:type="dcterms:W3CDTF">').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),'</dcterms:created>\n\t\t<dcterms:modified xsi:type="dcterms:W3CDTF">').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),"</dcterms:modified>\n\t</cp:coreProperties>"))),r.file("ppt/_rels/presentation.xml.rels",function(e){var t=1,n='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+VR;n+='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',n+='<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>';for(var r=1;r<=e.length;r++)n+='<Relationship Id="rId'.concat(++t,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide').concat(r,'.xml"/>');return t++,n+('<Relationship Id="rId'.concat(t+0,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notes
2Master" Target="notesMasters/notesMaster1.xml"/>')+'<Relationship Id="rId'.concat(t+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" Target="presProps.xml"/>')+'<Relationship Id="rId'.concat(t+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" Target="viewProps.xml"/>')+'<Relationship Id="rId'.concat(t+3,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>')+'<Relationship Id="rId'.concat(t+4,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" Target="tableStyles.xml"/>')+"</Relationships>")}(this.slides)),r.file("ppt/theme/theme1.xml",function(e){var t,n,r,o,a=(null===(t=e.theme)||void 0===t?void 0:t.headFontFace)?'<a:latin typeface="'.concat(null===(n=e.theme)||void 0===n?void 0:n.headFontFace,'"/>'):'<a:latin typeface="Calibri Light" panose="020F0302020204030204"/>',i=(null===(r=e.theme)||void 0===r?void 0:r.bodyFontFace)?'<a:latin typeface="'.concat(null===(o=e.theme)||void 0===o?void 0:o.bodyFontFace,'"/>'):'<a:latin typeface="Calibri" panose="020F0502020204030204"/>';return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont>'.concat(a,'<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\u6e38\u30b4\u30b7\u30c3\u30af Light"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u7b49\u7ebf Light"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont>').concat(i,'<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\u6e38\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u7b49\u7ebf"/>
2<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>')}(this)),r.file("ppt/presentation.xml",function(e){var t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR)+'<p:presentation xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" '+'xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" '.concat(e.rtlMode?'rtl="
21"':"",' saveSubsetFonts="1" autoCompressPictures="0">');t+='<p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>',t+="<p:sldIdLst>",e.slides.forEach((function(e){return t+='<p:sldId id="'.concat(e._slideId,'" r:id="rId').concat(e._rId,'"/>')})),t+="</p:sldIdLst>",t+='<p:notesMasterIdLst><p:notesMasterId r:id="rId'.concat(e.slides.length+2,'"/></p:notesMasterIdLst>'),t+='<p:sldSz cx="'.concat(e.presLayout.width,'" cy="').concat(e.presLayout.height,'"/>'),t+='<p:notesSz cx="'.concat(e.presLayout.height,'" cy="').concat(e.presLayout.width,'"/>'),t+="<p:defaultTextStyle>";for(var n=1;n<10;n++)t+="<a:lvl".concat(n,'pPr marL="').concat(457200*(n-1),'" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1">')+'<a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/>'+"</a:defRPr></a:lvl".concat(n,"pPr>");return t+="</p:defaultTextStyle>",e.sections&&e.sections.length>0&&(t+='<p:extLst><p:ext uri="{521415D9-36F7-43E2-AB2F-B90AF26B5E84}">',t+='<p14:sectionLst xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main">',e.sections.forEach((function(e){t+='<p14:section name="'.concat(OD(e.title),'" id="{').concat(LD("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),'}"><p14:sldIdLst>'),e._slides.forEach((function(e){return t+='<p14:sldId id="'.concat(e._slideId,'"/>')})),t+="</p14:sldIdLst></p14:section>"})),t+="</p14:sectionLst></p:ext>",t+='<p:ext uri="{EFAFB233-063F-42B5-8137-9DF3F51BA10A}"><p15:sldGuideLst xmlns:p15="http://schemas.microsoft.com/office/powerpoint/2012/main"/></p:ext>',t+="</p:extLst>"),t+="</p:presentation>"}(this)),r.file("ppt/presProps.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR,'<p:presentationPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"/>')),r.file("ppt/tableStyles.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR,'<a:tblStyleLst xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" def="{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}"/>')),r.file("ppt/viewProps.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR,'<p:viewPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:normalViewPr horzBarState="maximized"><p:restoredLeft sz="15611"/><p:restoredTop sz="94610"/></p:normalViewPr><p:slideViewPr>
2<p:cSldViewPr snapToGrid="0" snapToObjects="1"><p:cViewPr varScale="1"><p:scale><a:sx n="136" d="100"/><a:sy n="136" d="100"/></p:scale><p:origin x="216" y="312"/></p:cViewPr><p:guideLst/></p:cSldViewPr></p:slideViewPr><p:notesTextViewPr><p:cViewPr><p:scale><a:sx n="1" d="1"/><a:sy n="1" d="1"/></p:scale><p:origin x="0" y="0"/></p:cViewPr></p:notesTextViewPr><p:gridSpacing cx="76200" cy="76200"/></p:viewPr>')),this.slideLayouts.forEach((function(e,t){var o;r.file("ppt/slideLayouts/slideLayout".concat(t+1,".xml"),function(e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n\t\t<p:sldLayout xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" preserve="1">\n\t\t'.concat(pL(e),"\n\t\t<p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sldLayout>")}(e)),r.file("ppt/slideLayouts/_rels/slideLayout".concat(t+1,".xml.rels"),(o=t+1,hL(n.slideLayouts[o-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])))})),this.slides.forEach((function(e,t){r.file("ppt/slides/slide".concat(t+1,".xml"),function(e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR)+'<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"'+"".concat((null===e||void 0===e?void 0:e.hidden)?' show="0"':"",">")+"".concat(pL(e))+"<p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sld>"}(e)),r.file("ppt/slides/_rels/slide".concat(t+1,".xml.rels"),function(e,t,n){return hL(e[n-1],[{target:"../slideLayouts/slideLayout".concat(yL(e,t,n),".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"},{target:"../notesSlides/notesSlide".concat(n,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"}])}(n.slides,n.slideLayouts,t+1)),r.file("ppt/notesSlides/notesSlide".concat(t+1,".xml"),vL(e)),r.file("ppt/notesSlides/_rels/notesSlide".concat(t+1,".xml.rels"),'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n\t\t<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n\t\t\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notes
2Master" Target="../notesMasters/notesMaster1.xml"/>\n\t\t\t<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="../slides/slide'.concat(t+1,'.xml"/>\n\t\t</Relationships>'))})),r.file("ppt/slideMasters/slideMaster1.xml",function(e,t){var n=t.map((function(t,n){return'<p:sldLayoutId id="'.concat(2147483649+n,'" r:id="rId').concat(e._rels.length+n+1,'"/>')})),r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+VR;return r+='<p:sldMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">',r+=pL(e),r+='<p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>',r+="<p:sldLayoutIdLst>"+n.join("")+"</p:sldLayoutIdLst>",r+='<p:hf sldNum="0" hdr="0" ftr="0" dt="0"/>',r+='<p:txStyles> <p:titleStyle> <a:lvl1pPr algn="ctr" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="0"/></a:spcBef><a:buNone/><a:defRPr sz="4400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mj-lt"/><a:ea typeface="+mj-ea"/><a:cs typeface="+mj-cs"/></a:defRPr></a:lvl1pPr> </p:titleStyle> <p:bodyStyle> <a:lvl1pPr marL="342900" indent="-342900" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="3200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr> <a:lvl2pPr marL="742950" indent="-285750" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2013"/><a:defRPr sz="2800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr> <a:lvl3pPr marL="1143000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr> <a:lvl4pPr marL="1600200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2013"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr> <a:lvl5pPr marL="2057400" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\xbb"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr> <a:lvl6pPr marL="2514600" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr> <a:lvl7pPr marL="2971800" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr> <a:lvl8pPr marL="3429000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr> <a:lvl9pPr marL="3886200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:bodyStyle> <p:otherStyle> <a:defPPr><a:defRPr lang="en-US"/></a:defPPr> <a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr> <a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr> <a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr> <a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr> <a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr> <a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr> <a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr> <a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr> <a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:otherStyle></p:txStyles>',r+"</p:sldMaster>"}(this.masterSlide,this.slideLayouts)),r.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",function(e,t){var n=t.map((function(e,t){return{target:"../slideLayouts/slideLayout".concat(t+1,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}}));return n.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),hL(e,n)}(this.masterSlide,this.slideLayouts)),r.file("ppt/notesMasters/notesMaster1.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR,'<p:notesMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Header Placeholder 1"/>
2<p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="hdr" sz="quarter"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Date Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="dt" idx="1"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{5282F153-3F37-0F45-9E97-73ACFA13230C}" type="datetimeFigureOut"><a:rPr lang="en-US"/><a:t>7/23/19</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Image Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg" idx="2"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="1143000"/><a:ext cx="5486400" cy="3086100"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom><a:noFill/><a:ln w="12700"><a:solidFill><a:prstClr val="black"/></a:solidFill></a:ln></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="ctr"/><a:lstStyle/><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="5" name="Notes Placeholder 4"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" sz="quarter" idx="3"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="4400550"/><a:ext cx="5486400" cy="3600450"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle/><a:p><a:pPr lvl="0"/><a:r><a:rPr lang="en-US"/><a:t>Click to edit Master text styles</a:t></a:r></a:p><a:p><a:pPr lvl="1"/><a:r><a:rPr lang="en-US"/><a:t>Second level</a:t></a:r></a:p><a:p><a:pPr lvl="2"/><a:r><a:rPr lang="en-US"/><a:t>Third level</a:t></a:r></a:p><a:p><a:pPr lvl="3"/><a:r><a:rPr lang="en-US"/><a:t>Fourth level</a:t></a:r></a:p><a:p><a:pPr lvl="4"/><a:r><a:rPr lang="en-US"/><a:t>Fifth level</a:t></a:r></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="6" name="Footer Placeholder 5"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="ftr" sz="quarter" idx="4"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="7" name="Slide Number Placeholder 6"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="5"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{CE5E9CC1-C706-0F49-92D6-E571CC5EEA8F}" type="slidenum"><a:rPr lang="en-US"/><a:t>\u2039#\u203a</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4
2="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/><p:notesStyle><a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr><a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr><a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr><a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr><a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr><a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr><a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr><a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr><a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr></p:notesStyle></p:notesMaster>')),r.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(VR,'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n\t\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="../theme/theme1.xml"/>\n\t\t</Relationships>')),this.slideLayouts.forEach((function(t){n.createChartMediaRels(t,r,e)})),this.slides.forEach((function(t){n.createChartMediaRels(t,r,e)})),this.createChartMediaRels(this.masterSlide,r,e),[4,Promise.all(e).then((function(){return jR(n,void 0,void 0,(function(){return FR(this,(function(e){switch(e.label){case 0:return"STREAM"!==t.outputType?[3,2]:[4,r.generateAsync({type:"nodebuffer",compression:t.compression?"DEFLATE":"STORE"})];case 1:case 3:case 5:return[2,e.sent()];case 2:return t.outputType?[4,r.generateAsync({type:t.outputType})]:[3,4];case 4:return[4,r.generateAsync({type:"blob",compression:t.compression?"DEFLATE":"STORE"})]}}))}))}))];case 1:return[2,o.sent()]}var a,i,s,l,c,u}))}))}))];case 1:return[2,a.sent()]}}))}))};this.LAYOUTS={LAYOUT_4x3:{name:"screen4x3",width:9144e3,height:6858e3},LAYOUT_16x9:{name:"screen16x9",width:9144e3,height:5143500},LAYOUT_16x10:{name:"screen16x10",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:"custom",width:12192e3,height:6858e3}},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[rD].name,_sizeW:this.LAYOUTS[rD].width,_sizeH:this.LAYOUTS[rD].height,width:this.LAYOUTS[rD].width,height:this.LAYOUTS[rD].height},this._rtlMode=!1,this._slideLayouts=[{_margin:sD,_name:oD,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(e){var t=this.LAYOUTS[e];if(!t)throw new Error("UNKNOWN-LAYOUT");this._layout=e,this._presLayout=t}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"author",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subject",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this._theme},set:function(e){this._theme=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),e.prototype.stream=function(e){return jR(this,void 0,void 0,(function(){return FR(this,(function(t){switch(t.label){case 0:return[4,this.exportPresentation({compression:null===e||void 0===e?void 0:e.compression,outputType:"STREAM"})];case 1:return[2,t.sent()]}}))}))},e.prototype.write=function(e){return jR(this,void 0,void 0,(function(){var t,n;return FR(this,(function(r){switch(r.label){case 0:return t="object"===typeof e&&(null===e||void 0===e?void 0:e.outputType)?e.outputType:e||null,n=!("object"!==typeof e||!(null===e||void 0===e?void 0:e.compression))&&e.compression,[4,this.exportPresentation({compression:n,outputType:t})];case 1:return[2,r.sent()]}}))}))},e.prototype.writeFile=function(e){return jR(this,void 0,void 0,(function(){var t,r,o,a,i=this;return FR(this,(function(s){switch(s.label){case 0:return t="undefined"===typeof window?n(9912):null,"string"===typeof e&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)"),r="object"===typeof e&&(null===e||void 0===e?void 0:e.fileName)?e.fileName:"string"===typeof e?e:"",o=!("object"!==typeof e||!(null===e||void 0===e?void 0:e.compression))&&e.compression,a=r?r.toString().toLowerCase().endsWith(".pptx")?r:r+".pptx":"Presentation.pptx",[4,this.exportPresentation({compression:o,outputType:t?"nodebuffer":null}).then((function(e){return jR(i,void 0,void 0,(function(){return FR(this,(function(n){switch(n.label){case 0:return t?[4,new Promise((function(n,r){t.writeFile(a,e,(function(e){e?r(e):n(a)}))}))]:[3,2];case 1:case 3:return[2,n.sent()];case 2:return[4,this.writeFileToBrowser(a,e)]}}))}))}))];case 1:return[2,s.sent()]}}))}))},e.prototype.addSection=function(e){e?e.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var t={_type:"user",_slides:[],title:e.title};e.order?this.sections.splice(e.order,0,t):this._sections.push(t)},e.prototype.addSlide=function(e){var t="string"===typeof e?e:(null===e||void 0===e?void 0:e.masterName)?e.masterName:"",n={_name:this.LAYOUTS[rD].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(t){var r=this.slideLayouts.filter((function(e){return e._name===t}))[0];r&&(n=r)}var o=new $D({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:n});if(this._slides.push(o),null===e||void 0===e?void 0:e.sectionTitle){var a=this.sections.filter((function(t){return t.title===e.sectionTitle}))[0];a?a._slides.push(o):console.warn('addSlide: unable to find section with title: "'.concat(e.sectionTitle,'"'))}else if(this.sections&&this.sections.length>0&&!(null===e||void 0===e?void 0:e.sectionTitle)){var i=this._sections[this.sections.length-1];"default"===i._type?i._slides.push(o):this._sections.push({title:"Default-".concat(this.sections.filter((function(e){return"default"===e._type})).length+1),_type:"default",_slides:[o]})}return o},e.prototype.defineLayout=function(e){e?e.name?e.width?e.height?"number"!==typeof e.height?console.warn("defineLayout `height` should be a number (inches)"):"number"!==typeof e.width&&console.warn("defineLayout `width` should be a number (inches)"):console.warn("defineLayout requires `height`"):console.warn("defineLayout requires `width`"):console.warn("defineLayout requires `name`"):console.warn("defineLayout requires `{name, width, height}`"),this.LAYOUTS[e.name]={name:e.name,_sizeW:Math.round(Number(e.width)*HR),_sizeH:Math.round(Number(e.height)*HR),width:Math.round(Number(e.width)*HR),height:Math.round(Number(e.height)*HR)}},e.prototype.defineSlideMaster=function(e){if(!e.title)throw new Error("defineSlideMaster() object argument requires a `title` value. (https://gitbrent.github.io/PptxGenJS/docs/masters.html)");var t={_margin:e.margin||sD,_name:e.title,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3+this.slideLayouts.length+1,_slideNumberProps:e.slideNumber||null,_slideObjects:[],background:e.background||null,bkgd:e.bkgd||null};!function(e,t){e.bkgd&&(t.bkgd=e.bkgd),e.objects&&Array.isArray(e.objects)&&e.objects.length>
20&&e.objects.forEach((function(e,n){var r=Object.keys(e)[0],o=t;kD[r]&&"chart"===r?YD(o,e[r].type,e[r].data,e[r].opts):kD[r]&&"image"===r?QD(o,e[r]):kD[r]&&"line"===r?XD(o,CD.LINE,e[r]):kD[r]&&"rect"===r?XD(o,CD.RECTANGLE,e[r]):kD[r]&&"text"===r?KD(o,[{text:e[r].text}],e[r].options,!1):kD[r]&&"placeholder"===r&&(e[r].options.placeholder=e[r].options.name,delete e[r].options.name,e[r].options._placeholderType=e[r].options.type,delete e[r].options.type,e[r].options._placeholderIdx=100+n,KD(o,[{text:e[r].text}],e[r].options,!0))})),e.slideNumber&&"object"===typeof e.slideNumber&&(t._slideNumberProps=e.slideNumber)}(e,t),this.slideLayouts.push(t),(e.background||e.bkgd)&&JD(e.background,t),t._slideNumberProps&&!this.masterSlide._slideNumberProps&&(this.masterSlide._slideNumberProps=t._slideNumberProps)},e.prototype.tableToSlides=function(e,t){void 0===t&&(t={}),function(e,t,n,r){void 0===n&&(n={});var o=n||{};o.slideMargin=o.slideMargin||0===o.slideMargin?o.slideMargin:.5;var a=o.w||e.presLayout.width,i=[],s=[],l=[],c=[],u=[],d=[.5,.5,.5,.5],p=0;if(!document.getElementById(t))throw new Error('tableToSlides: Table ID "'+t+'" does not exist!');(null===r||void 0===r?void 0:r._margin)?(Array.isArray(r._margin)?d=r._margin:isNaN(r._margin)||(d=[r._margin,r._margin,r._margin,r._margin]),o.slideMargin=d):(null===o||void 0===o?void 0:o.slideMargin)&&(Array.isArray(o.slideMargin)?d=o.slideMargin:isNaN(o.slideMargin)||(d=[o.slideMargin,o.slideMargin,o.slideMargin,o.slideMargin])),a=(o.w?MD(o.w):e.presLayout.width)-MD(d[1]+d[3]),o.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- `tableToSlides` ----------------------------------------------------|"),console.log("| tableProps.h .................................... = ".concat(o.h)),console.log("| tableProps.w .................................... = ".concat(o.w)),console.log("| pptx.presLayout.width ........................... = ".concat((e.presLayout.width/HR).toFixed(1))),console.log("| pptx.presLayout.height .......................... = ".concat((e.presLayout.height/HR).toFixed(1))),console.log("| emuSlideTabW .................................... = ".concat((a/HR).toFixed(1))));var h=document.querySelectorAll("#".concat(t," tr:first-child th"));0===h.length&&(h=document.querySelectorAll("#".concat(t," tr:first-child td"))),h.forEach((function(e){if(e.getAttribute("colspan"))for(var t=0;t<Number(e.getAttribute("colspan"));t++)u.push(Math.round(e.offsetWidth/Number(e.getAttribute("colspan"))));else u.push(e.offsetWidth)})),u.forEach((function(e){p+=e})),u.forEach((function(e,n){var r=Number((Number(a)*(e/p*100)/100/HR).toFixed(2)),o=0,i=document.querySelector("#".concat(t," thead tr:first-child th:nth-child(").concat(n+1,")"));i&&(o=Number(i.getAttribute("data-pptx-min-width")));var s=document.querySelector("#".concat(t," thead tr:first-child th:nth-child(").concat(n+1,")"));s&&(o=Number(s.getAttribute("data-pptx-width"))),c.push(o>r?o:r)})),o.verbose&&console.log("| arrColW ......................................... = [".concat(c.join(", "),"]")),["thead","tbody","tfoot"].forEach((function(e){document.querySelectorAll("#".concat(t," ").concat(e," tr")).forEach((function(t){var n=[];switch(Array.from(t.cells).forEach((function(e){var t=window.getComputedStyle(e).getPropertyValue("color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(","),r=window.getComputedStyle(e).getPropertyValue("background-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");("rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||window.getComputedStyle(e).getPropertyValue("transparent"))&&(r=["255","255","255"]);var o={align:null,bold:!!("bold"===window.getComputedStyle(e).getPropertyValue("font-weight")||Number(window.getComputedStyle(e).getPropertyValue("font-weight"))>=500),border:null,color:UD(Number(t[0]),Number(t[1]),Number(t[2])),fill:{color:UD(Number(r[0]),Number(r[1]),Number(r[2]))},fontFace:(window.getComputedStyle(e).getPropertyValue("font-family")||"").split(",")[0].replace(/"/g,"").replace("inherit","").replace("initial","")||null,fontSize:Number(window.getComputedStyle(e).getPropertyValue("font-size").replace(/[a-z]/gi,"")),margin:null,colspan:Number(e.getAttribute("colspan"))||null,rowspan:Number(e.getAttribute("rowspan"))||null,valign:null};if(["left","center","right","start","end"].includes(window.getComputedStyle(e).getPropertyValue("text-align"))){var a=window.getComputedStyle(e).getPropertyValue("text-align").replace("start","left").replace("end","right");o.align="center"===a?"center":"left"===a?"left":"right"===a?"right":null}if(["top","middle","bottom"].includes(window.getComputedStyle(e).getPropertyValue("vertical-align"))){var i=window.getComputedStyle(e).getPropertyValue("vertical-align");o.valign="top"===i?"top":"middle"===i?"middle":"bottom"===i?"bottom":null}window.getComputedStyle(e).getPropertyValue("padding-left")&&(o.margin=[0,0,0,0],["padding-top","padding-right","padding-bottom","padding-left"].forEach((function(t,n){o.margin[n]=Math.round(Number(window.getComputedStyle(e).getPropertyValue(t).replace(/\D/gi,"")))}))),(window.getComputedStyle(e).getPropertyValue("border-top-width")||window.getComputedStyle(e).getPropertyValue("border-right-width")||window.getComputedStyle(e).getPropertyValue("border-bottom-width")||window.getComputedStyle(e).getPropertyValue("border-left-width"))&&(o.border=[null,
2null,null,null],["top","right","bottom","left"].forEach((function(t,n){var r,a=Math.round(Number(window.getComputedStyle(e).getPropertyValue("border-"+t+"-width").replace("px","")));r=window.getComputedStyle(e).getPropertyValue("border-"+t+"-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");var i=UD(Number(r[0]),Number(r[1]),Number(r[2]));o.border[n]={pt:a,color:i}}))),n.push({_type:_D.tablecell,text:e.innerText,options:o})})),e){case"thead":i.push(n);break;case"tbody":s.push(n);break;case"tfoot":l.push(n);break;default:console.log("table parsing: unexpected table part: ".concat(e))}}))})),o._arrObjTabHeadRows=i||null,o.colW=c,GD(BR(BR(BR([],i,!0),s,!0),l,!0),o,e.presLayout,r).forEach((function(t,n){var r=e.addSlide({masterName:o.masterSlideName||null});0===n&&(o.y=o.y||d[0]),n>0&&(o.y=o.autoPageSlideStartY||o.newSlideStartY||d[0]),o.verbose&&console.log("| opts.autoPageSlideStartY: ".concat(o.autoPageSlideStartY," / arrInchMargins[0]: ").concat(d[0]," => opts.y = ").concat(o.y)),r.addTable(t.rows,{x:o.x||d[3],y:o.y,w:Number(a)/HR,colW:c,autoPage:!1}),o.addImage&&(o.addImage.options=o.addImage.options||{},o.addImage.image&&(o.addImage.image.path||o.addImage.image.data)?r.addImage({path:o.addImage.image.path,data:o.addImage.image.data,x:o.addImage.options.x,y:o.addImage.options.y,w:o.addImage.options.w,h:o.addImage.options.h}):console.warn("Warning: tableToSlides.addImage requires either `path` or `data`")),o.addShape&&r.addShape(o.addShape.shapeName,o.addShape.options||{}),o.addTable&&r.addTable(o.addTable.rows,o.addTable.options||{}),o.addText&&r.addText(o.addText.text,o.addText.options||{})}))}(this,e,t,(null===t||void 0===t?void 0:t.masterSlideName)?this.slideLayouts.filter((function(e){return e._name===t.masterSlideName}))[0]:null)},e}();const xL="3B7B3F",wL="374151",EL="6B7280",CL="F3F4F6",SL=13.333,TL=.5,kL=SL-2*TL,_L=6,NL=7.05;function IL(e){return e?String(e).replace(/\[(\d+)\]\(#paper-\d+\)/g,"[$1]").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[*_~`>#]/g,"").replace(/\s+/g," ").trim():""}function PL(e){return/^\s*(-{3,}|\*{3,}|_{3,})\s*$/.test(String(e||""))}function RL(e){if(!e)return!1;const t=IL(e);return!(!t||t.length>90)&&(!/\[[0-9]+\]/.test(t)&&!/[.!?]$/.test(t))}function DL(e){const t=String(e).match(/^\*\*(.+?)\*\*\s*:?\s*(.*)$/);if(!t)return null;const n=IL(t[1]),r=IL(t[2]);return n?{leadIn:r?"".concat(n,":"):n,text:r}:null}function LL(e,t){if(!e)return[];const n=String(e).split(/\r?\n/),r=[];let o={title:"",body:[]};for(const a of n){const e=a.match(/^#{1,2}\s+(.+)/);e?((o.title||o.body.length)&&r.push(o),o={title:IL(e[1]),body:[]}):a.trim()&&!PL(a)&&o.body.push(a)}return(o.title||o.body.length)&&r.push(o),r.map((e=>({title:e.title||t,items:OL(e.body)}))).filter((e=>e.items.length>0||e.title))}function OL(e){const t=[];for(const o of e){var n,r;if(PL(o)||PL(o.replace(/^\s*[-*+]\s+/,"")))continue;const e=o.match(/^###\s+(.+)/);if(e){const n=IL(e[1]);n&&t.push({type:"subheading",level:3,text:n});continue}const a=o.match(/^#{4,6}\s+(.+)/);if(a){const e=IL(a[1]);e&&t.push({type:"subheading",level:4,text:e});continue}const i=o.match(/^\*\*(.+)\*\*$/);if(i&&RL(i[1])){t.push({type:"subheading",level:3,text:IL(i[1])});continue}const s=o.match(/^\s*(\d+)\.\s+(.+)/);if(s&&RL(s[2])){t.push({type:"subheading",level:4,text:"".concat(s[1],". ").concat(IL(s[2]))});continue}const l=o.match(/^\s*[-*+]\s+(.+)/),c=null!==(n=null!==(r=null===l||void 0===l?void 0:l[1])&&void 0!==r?r:null===s||void 0===s?void 0:s[2])&&void 0!==n?n:o,u=DL(c);if(u){t.push({type:"bullet",...u});continue}const d=IL(c);d&&t.push({type:"bullet",text:d})}return t}function ML(e){return String(null!==e&&void 0!==e?e:"").replace(/\s+/g," ").trim()||"\u2014"}function jL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;if("subheading"===e.type)return 3===e.level?.4:.34;const n="".concat(e.leadIn||""," ").concat(e.text||"").trim(),r=t>=16?100:115,o=t>=16?.28:.24;return Math.max(1,Math.ceil(n.length/r))*o+.08}function FL(e,t,n){const r=[];let o=[],a=0;const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=(()=>{const e=[];for(;o.length&&"subheading"===o[o.length-1].type;)e.unshift(o.pop());return e})();o.length&&r.push(o),o=[...t,...e],a=o.reduce(((e,t)=>e+jL(t,n)),0)};return e.forEach(((r,s)=>{const l=jL(r,n);if("subheading"!==r.type)o.length&&a+l>t?i([r]):(o.push(r),a+=l);else{const c=function(e,t,n){const r=e[t];let o=jL(r,n);for(let s=t+1;
2s<e.length;s+=1){var a,i;const t=e[s],l=null!==(a=t.level)&&void 0!==a?a:4,c=null!==(i=r.level)&&void 0!==i?i:3;if("subheading"===t.type&&l<=c)break;if(o+=jL(t,n),"subheading"!==t.type)break}return o}(e,s,n);o.length&&a+c>t?i([r]):(o.push(r),a+=l)}})),o.length&&r.push(o),r.length?r:[[]]}function BL(e){e.addText("MedRPT",{x:TL,y:7.18,w:4,h:.22,fontSize:10,color:EL,fontFace:"Calibri"})}function UL(e,t,n){e.addText(t,{x:TL,y:.28,w:kL,h:.45,fontSize:22,bold:!0,color:xL,fontFace:"Calibri"}),n&&e.addText(n,{x:TL,y:.72,w:kL,h:.32,fontSize:13,color:EL,fontFace:"Calibri"})}function zL(e){return"string"===typeof e?{type:"bullet",text:e}:e}function HL(e,t,n){var r;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=n.map(zL),i=null!==(r=o.fontSize)&&void 0!==r?r:15,s=o.subtitle?1.15:.86,l=o.itemsPerSlide?function(e,t){const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n.length?n:[[]]}(a,o.itemsPerSlide):FL(a,NL-s,i);l.forEach(((n,r)=>{const a=e.addSlide();BL(a);const c=l.length>1?" (".concat(r+1,"/").concat(l.length,")"):"";if(UL(a,"".concat(t).concat(c),o.subtitle),0===n.length)return;let u=s;(function(e){const t=[];let n=[];const r=()=>{n.length&&(t.push({type:"bullets",items:n}),n=[])};return e.forEach((e=>{"subheading"===e.type?(r(),t.push(e)):n.push(e)})),r(),t})(n).forEach((e=>{if("subheading"===e.type){const t=3===e.level?{fontSize:18,color:xL,bold:!0,height:.38}:{fontSize:16,color:"1F4D22",bold:!0,height:.32};return a.addText(e.text,{x:TL,y:u,w:kL,h:t.height,fontSize:t.fontSize,bold:t.bold,color:t.color,fontFace:"Calibri",margin:0,valign:"bottom"}),void(u+=t.height+.04)}const t=Math.min(NL-u,e.items.reduce(((e,t)=>e+jL(t,i)),0));a.addText(e.items.map((e=>({text:e.leadIn?"".concat(e.leadIn).concat(e.text?" ".concat(e.text):""):e.text,options:{bullet:!0,breakLine:!0}}))),{x:TL,y:u,w:kL,h:t,fontSize:i,color:wL,valign:"top",fontFace:"Calibri",margin:0}),u+=t+.06}))}))}function WL(e,t,n){LL(t,n).forEach((t=>{HL(e,t.title||n,t.items)}))}function VL(e,t,n,r){const o=[];let a=[],i=.35;return e.forEach((e=>{const s=function(e,t,n){const r=n>=11?.18:.16;let o=1;return e.forEach(((e,r)=>{const a=Math.max(10,Math.floor(t[r]*(n>=11?12:14)));o=Math.max(o,Math.ceil(ML(e).length/a))})),o*r+.14}(e,t,n);a.length>0&&i+s>r?(o.push(a),a=[e],i=.35+s):(a.push(e),i+=s)})),a.length&&o.push(a),o.length?o:[[]]}function GL(e,t,n){if(!t)return;(Array.isArray(t.EvidenceCoverage)?t.EvidenceCoverage:[]).forEac
2h((t=>{const r=[];t.Summary&&r.push(IL(t.Summary)),Array.isArray(t.KeyQuantitativeFindings)&&t.KeyQuantitativeFindings.forEach((e=>{const t=IL(e);t&&r.push(t)})),Array.isArray(t.StudyReferences)&&t.StudyReferences.length>0&&(r.push("Sources analyzed:"),t.StudyReferences.forEach((e=>{const t=null===n||void 0===n?void 0:n[Number(e)-1];r.push(function(e,t){var n,r,o;const a=null===e||void 0===e?void 0:e.authors,i=Array.isArray(a)?a:a?[a]:[],s=null!==(n=i[0])&&void 0!==n?n:"";let l="";if(s.includes(","))l=s.split(",")[0].trim();else{const e=s.trim().split(/\s+/);if(e.length>=2){const t=e[e.length-1];l=1===t.length||2===t.length&&"."===t[1]?e.slice(0,-1).join(" "):t}else l=s}const c=null!==e&&void 0!==e&&e.publicationDate&&null!==(r=null===(o=String(e.publicationDate).match(/\d{4}/))||void 0===o?void 0:o[0])&&void 0!==r?r:"",u=i.length>1?" et al.":"",d=l?"".concat(l).concat(u):"";return d&&c?"".concat(d,", ").concat(c):d||(null!==e&&void 0!==e&&e.title?String(e.title).slice(0,60):"Study ".concat(t))}(t,e))}))),HL(e,t.Label||"Evidence",r,{fontSize:15})})),t.ConflationNote&&HL(e,"Evidence types",[IL(t.ConflationNote)]);const r=t.GapStatement?IL(t.GapStatement):"No significant evidence gap identified \u2014 the retrieved studies collectively provide direct evidence for this question.";HL(e,"The Gap",[r])}async function qL(e){let{title:t,question:n,date:r,overviewMarkdown:o,methods:a,table:i,synthesisMarkdown:s,researchGap:l,articles:c,fileName:u}=e;const d=new bL;d.defineLayout({name:"LAYOUT_WIDE",width:SL,height:7.5}),d.layout="LAYOUT_WIDE",d.author="MedRPT",d.title=t||n||"Literature Review Report";const p=d.addSlide();p.addShape("rect",{x:0,y:0,w:SL,h:7.5,fill:{color:xL},line:{color:xL}}),p.addText("MedRPT Literature Review",{x:TL,y:1.5,w:kL,h:.35,fontSize:16,color:"D1FAE5",fontFace:"Calibri"}),p.addText(t||"Literature Review Report",{x:TL,y:1.95,w:kL,h:1.3,fontSize:32,bold:!0,color:"FFFFFF",fontFace:"Calibri",valign:"top"}),n&&(p.addText("Research question",{x:TL,y:3.4,w:kL,h:.3,fontSize:13,color:"D1FAE5",fontFace:"Calibri"}),p.addText(n,{x:TL,y:3.7,w:kL,h:1.2,fontSize:18,color:"FFFFFF",fontFace:"Calibri",valign:"top"})),r&&p.addText(r,{x:TL,y:5.1,w:kL,h:.35,fontSize:14,color:"D1FAE5",fontFace:"Calibri"}),WL(d,o,"Overview");const h=function(e){if(!e)return[];if(e.translatedMarkdown)return LL(e.translatedMarkdown,"Methods").flatMap((e=>[...e.title?[e.title]:[],...e.items]));const t=[];e.question&&t.push("We ran the following query: \u201c".concat(e.question,"\u201d")),null!=e.totalAbstracts&&t.push("The search returned ".concat(e.totalAbstracts," total results.")),null!=e.qualifiedAbstracts&&t.push("We retrieved ".concat(e.qualifiedAbstracts," papers most relevant to the query for screening."));const n=Array.isArray(e.suggestedColumns)?e.suggestedColumns:[];n.length>0&&(t.push("Abstract screening criteria:"),n.forEach((e=>{var n;const r=null!==(n=e.label)&&void 0!==n?n:e.id;t.push(e.screeningQuestion?"".concat(r,": ").concat(e.screeningQuestion):String(r))})),e.screenedCount>0&&t.push("".concat(e.screenedCount," paper").concat(1!==e.screenedCount?"s":""," passed abstract screening."))),e.isFullTextEvaluated&&n.length>0&&(t.push("Full-text screening used the same criteria."),null!=e.fullTextPassedCount&&t.push("".concat(e.fullTextPassedCount," paper").concat(1!==e.fullTextPassedCount?"s":""," passed full-text screening.")));const r=Array.isArray(e.extractionColumns)?e.extractionColumns:[];return r.length>0&&(t.push("Data extraction columns:"),r.forEach((e=>{var n,r;const o=Array.isArray(e.fields)?e.fields.map((e=>{var t,n;return null!==(t=null!==(n=e.label)&&void 0!==n?n:e.description)&&void 0!==t?t:e.name})).filter(Boolean):[];t.push(o.length?"".concat(null!==(n=e.label)&&void 0!==n?n:e.id,": ").concat(o.join("; ")):String(null!==(r=e.label)&&void 0!==r?r:e.id))}))),t}(a);h.length>0&&(null!==a&&void 0!==a&&a.translatedMarkdown?WL(d,a.translatedMarkdown,"Methods"):HL(d,"Methods",h)),function(e,t){var n,r;if(null===t||void 0===t||null===(n=t.headers)||void 0===n||!n.length||null===(r=t.rows)||void 0===r||!r.length)return;const o=t.headers.length,a=o>5?9:11,i=1===o?[kL]:[Math.min(2.2,.18*kL),...Array(o-1).fill((kL-Math.min(2.2,.18*kL))/(o-1))],s=t.summary?1.15:.9,l=VL(t.rows,i,a,NL-s);l.forEach(((n,r)=>{const o=e.addSlide();BL(o);const c=l.length>1?" (".concat(r+1,"/").concat(l.length,")"):"";UL(o,"".concat(t.heading||"Results").concat(c),t.summary);const u=t.headers.map((e=>({text:ML(e),options:{fill:{color:xL},color:"FFFFFF",bold:!0,align:"center",valign:"middle"}}))),d=n.map(((e,t)=>e.map((e=>({text:ML(e),options:{fill:{color:t%2===0?"FFFFFF":CL},color:wL,valign:"top",align:"left"}})))));o.addTable([u,...d],{x:TL,y:s,w:kL,colW:i,border:[{pt:.5,color:"D1D5DB"}],fontSize:a,fontFace:"Calibri",valign:"top",align:"left"})}))}(d,i),WL(d,s,"Synthesis"),GL(d,l,c),function(e,t){if(!Array.isArray(t)||0===t.length)return;const n=t.map(((e,t)=>{var n,r,o,a;const i=null!==(n=null===e||void 0===e?void 0:e.title)&&void 0!==n?n:"Untitled",s=null===e||void 0===e?void 0:e.authors,l=Array.isArray(s)?s.join(", "):null!==s&&void 0!==s?s:"",c=null!==e&&void 0!==e&&e.publicationDate&&null!==(r=null===(o=String(e.publicationDate).match(/\d{4}/))||void 0===o?void 0:o[0])&&void 0!==r?r:"",u=[l,null!==(a=null===e||void 0===e?void 0:e.journalTitle)&&void 0!==a?a:"",c].filter(
2Boolean).join(". ");return"[".concat(t+1,"] ").concat(i).concat(u?" \u2014 ".concat(u):"")}));HL(e,"References",n,{itemsPerSlide:_L,fontSize:13})}(d,c);const f=String(u||t||n||"Report").replace(/[\\/:*?"<>|]+/g,"-").slice(0,80);await d.writeFile({fileName:"MedRPT-Report-".concat(f,".pptx")})}const YL=e=>{let{questions:t,onQuestionClick:n}=e;const[r,o]=(0,a.useState)(null);if(!Array.isArray(t)||0===t.length)return null;return(0,$e.jsxs)("div",{className:"followups-card",children:[(0,$e.jsx)("div",{className:"followups-header",children:"Suggested follow-ups"}),(0,$e.jsx)("ul",{className:"followups-list",children:t.map(((e,t)=>(0,$e.jsx)("li",{className:"followups-item".concat(r===t?" followups-item-pending":""),onClick:()=>(async(e,t)=>{if(null===r){o(t);try{await n(e)}finally{o(null)}}})(e,t),children:e},t)))})]})};const QL=e=>{let{refNum:t,label:n}=e;return(0,$e.jsx)("a",{href:"#paper-".concat(t),className:"researchgap-citation-link",onClick:e=>{e.preventDefault(),e.stopPropagation(),(e=>{const t=document.getElementById("paper-".concat(e));t&&t.scrollIntoView({behavior:"smooth",block:"start"})})(t)},children:null!==n&&void 0!==n?n:"[".concat(t,"]")})},XL=e=>{if(!e)return e;return String(e).split(/(\[\d+\])/g).map(((e,t)=>{const n=e.match(/^\[(\d+)\]$/);return n?(0,$e.jsx)(QL,{refNum:n[1]},"".concat(n[1],"-").concat(t)):e}))},KL=e=>{let{researchGap:t,isLoading:n,error:r,hasGenerated:o,onGenerate:i,articles:s=[]}=e;const[l,c]=(0,a.useState)(!1),u=Array.isArray(null===t||void 0===t?void 0:t.EvidenceCoverage)?t.EvidenceCoverage:[];return(0,$e.jsxs)("div",{className:"researchgap-section",children:[(0,$e.jsxs)("div",{className:"researchgap-header",onClick:()=>c((e=>!e)),children:[(0,$e.jsx)("span",{className:"researchgap-title",children:"Research Gap Analysis"}),o&&(0,$e.jsx)("span",{className:"researchgap-toggle",children:l?"\u25bc":"\u25b2"})]}),!l&&(0,$e.jsxs)("div",{className:"researchgap-body",children:[!o&&!n&&(0,$e.jsxs)("div",{className:"researchgap-intro",children:[(0,$e.jsx)("p",{children:"Break down the evidence in this review by type, and check whether it's enough to fully answer the research question \u2014 or where a gap remains."}),(0,$e.jsx)("button",{type:"button",className:"researchgap-generate-button",onClick:i,children:"Generate Research Gap Analysis"})]}),n&&(0,$e.jsxs)("div",{className:"researchgap-loading",children:[(0,$e.jsx)(Hd,{sx:{color:"#0d9488"},size:24}),(0,$e.jsx)("span",{children:"Analyzing evidence gaps\u2026"})]}),!n&&r&&(0,$e.jsxs)("div",{className:"researchgap-error",children:[r,(0,$e.jsx)("button",{type:"button",className:"researchgap-generate-button",onClick:i,children:"Try Again"})]}),!n&&!r&&t&&(0,$e.jsxs)("div",{className:"researchgap-results",children:[u.length>0&&(0,$e.jsx)("div",{className:"researchgap-evidence-list",children:u.map(((e,t)=>(0,$e.jsxs)("div",{className:"researchgap-evidence-item",children:[(0,$e.jsx)("div",{className:"researchgap-evidence-label",children:e.Label}),(0,$e.jsx)("p",{className:"researchgap-evidence-summary",children:XL(e.Summary)}),Array.isArray(e.KeyQuantitativeFindings)&&e.KeyQuantitativeFindings.length>0&&(0,$e.jsx)("ul",{className:"researchgap-evidence-findings",children:e.KeyQuantitativeFindings.map(((e,t)=>(0,$e.jsx)("li",{children:XL(e)},t)))}),Array.isArray(e.StudyReferences)&&e.StudyReferences.length>0&&(0,$e.jsxs)("div",{className:"researchgap-sources",children:[(0,$e.jsx)("div",{className:"researchgap-sources-label",children:"Sources analyzed"}),(0,$e.jsx)("ul",{className:"researchgap-sources-list",children:e.StudyReferences.map(((e,t)=>{const n=(e=>{var t;const n=Number(e)-1;return!Number.isFinite(n)||n<0?null:null!==(t=s[n])&&void 0!==t?t:null})(e),r=function(e,t){var n,r,o;const a=null===e||void 0===e?void 0:e.authors,i=Array.isArray(a)?a:a?[a]:[],s=null!==(n=i[0])&&void 0!==n?n:"";let l="";if(s.includes(","))l=s.split(",")[0].trim();else{const e=s.trim().split(/\s+/);if(e.length>=2){const t=e[e.length-1];l=1===t.length||2===t.length&&"."===t[1]?e.slice(0,-1).join(" "):t}else l=s}const c=null!==e&&void 0!==e&&e.publicationDate&&null!==(r=null===(o=String(e.publicationDate).match(/\d{4}/))||void 0===o?void 0:o[0])&&void 0!==r?r:"",u=i.length>1?" et al.":"",d=l?"".concat(l).concat(u):"";return d&&c?"".concat(d,", ").concat(c):d||(c?String(c):null!==e&&void 0!==e&&e.title?String(e.title).slice(0,60):"Study ".concat(t))}(n,e);return(0,$e.jsx)("li",{children:(0,$e.jsx)(QL,{refNum:e,label:r})},"".concat(e,"-").concat(t))}))})]})]},t)))}),t.ConflationNote&&(0,$e.jsx)("div",{className:"researchgap-conflation-note",children:XL(t.ConflationNote)}),t.GapStatement?(0,$e.jsxs)("div",{className:"researchgap-gap-statement",children:[(0,$e.jsx)("div",{className:"researchgap-gap-statement-label",children:"The Gap"}),(0,$e.jsx)("p",{children:XL(t.GapStatement)})]}):(0,$e.jsxs)("div",{className:"researchgap-gap-statement researchgap-no-gap",children:[(0,$e.jsx)("div",{className:"researchgap-gap-statement-label",children:"The Gap"}),(0,$e.jsx)("p",{children:"No significant evidence gap identified \u2014 the retrieved studies collectively provide direct evidence for this question."})]})]})]})]})},JL=()=>{const e=new Date;return"".concat(["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"][e.getMonth()]," ").concat(e.getDate(),", ").concat(e.getFullYear())};function ZL(e){var t,n,r;const o=null===e||void 0===e?void 0:e.authors,a=Array.isArray(o)?o:o?[o]:[],i=null!==(t=a[0])&&void 0!==t?t:"";let s="",l="";if(i.includes(",")){var c;const e=i.split(",");l=e[0].trim();const t=(null!==(c=e[1])&&void 0!==c?c:"").trim();s=t?t[0].toUpperCase()+".":""}else{const e=i.trim().split(/\s+/);if(e.length>=2){const t=e[e.length-1],n=e[0];1===t.length||2===t.length&&"."===t[1]?(l=e.slice(0,-1).join(" "),s=t[0].toUpperCase()+"."):(l=t,s=n[0].toUpperCase()+".")}else l=i}const u=null!==e&&void 0!==e&&e.publicationDate&&null!==(n=null===(r=String(e.publicationDate).match(/\d{4}/))||void 0===r?void 0:r[0])&&void 0!==n?n:"",d=a.length>
21?" et al.":"",p=[s,l].filter(Boolean).join(" ");return p&&u?"".concat(p).concat(d,", ").concat(u):p||u||"Unknown"}const $L={a:e=>{let{href:t,children:n,...r}=e;const o="string"===typeof t&&t.startsWith("#paper-")?t.slice(1):null;if(!o)return(0,$e.jsx)("a",{href:t,...r,children:n});const a=Array.isArray(n)?n.map((e=>"string"===typeof e||"number"===typeof e?e:"")).join(""):String(null!==n&&void 0!==n?n:""),i=/^\[\d+\]$/.test(a.trim())?a.trim():"[".concat(a,"]");return(0,$e.jsx)("a",{href:t,className:"report-citation-link",onClick:e=>{e.preventDefault(),(e=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})(o)},...r,children:i})}};function eO(e){return e?e.replace(/\bReferences?\s+(\[\d+\])/gi,"$1").replace(/\bReferences?\s+(\[\d+\]\(#paper-\d+\))/gi,"$1").replace(/\(\s*References?\s+(\[\d+\])\s*\)/gi,"($1)").replace(/\(\s*References?\s+(\[\d+\]\(#paper-\d+\))\s*\)/gi,"($1)"):e}function tO(e,t){var n;const r=function(e,t){if(!e||!Array.isArray(t)||0===t.length)return eO(e);let n=e;return t.forEach(((e,t)=>{var r,o;const a=String(null!==(r=null!==(o=null===e||void 0===e?void 0:e.uniqueId)&&void 0!==o?o:null===e||void 0===e?void 0:e.pubmed_id)&&void 0!==r?r:"");if(!a)return;const i=t+1,s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp("Article\\s*\\[".concat(s,"\\]"),"gi"),"[".concat(i,"]")),n=n.replace(new RegExp("\\[".concat(s,"\\]"),"g"),"[".concat(i,"]"))})),eO(n)}(e,t);return function(e,t){return e&&t?e.replace(/\[(\d+)\](?!\()/g,((e,n)=>{const r=parseInt(n,10);return r>=1&&r<=t?"[".concat(r,"](#paper-").concat(r,")"):e})):e}(r,null!==(n=null===t||void 0===t?void 0:t.length)&&void 0!==n?n:0)}const nO=()=>{var e,t,n;const{id:r,workflowData:o,navigateToStep:i,getStepsForPage:s,handleNavigateToPaperSources:l,isAdvanced:c}=_P(),u=IP(),[d,p]=(0,a.useState)(!0),[h,f]=(0,a.useState)(""),[m,g]=(0,a.useState)(""),[A,v]=(0,a.useState)(""),[y,b]=(0,a.useState)("original"),[x,w]=(0,a.useState)(null),[E,C]=(0,a.useState)(null),[S,T]=(0,a.useState)(!1),[k,_]=(0,a.useState)(null),[N,I]=(0,a.useState)(!1),[P,R]=(0,a.useState)(null),[D,L]=(0,a.useState)(null),[O,M]=(0,a.useState)(null),[j,F]=(0,a.useState)(null),[B,U]=(0,a.useState)(null),[z,H]=(0,a.useState)(null),[W,V]=(0,a.useState)(null),[G,q]=(0,a.useState)(null),[Y,Q]=(0,a.useState)(null),[X,K]=(0,a.useState)(""),[J,Z]=(0,a.useState)({}),[$,ee]=(0,a.useState)(null),[te,ne]=(0,a.useState)(null),[re,oe]=(0,a.useState)(!1),[ae,ie]=(0,a.useState)(null),[se,le]=(0,a.useState)(null),[ce,ue]=(0,a.useState)(null),[de,pe]=(0,a.useState)(null),[he,fe]=(0,a.useState)(null),[me,ge]=(0,a.useState)(null),[Ae,ve]=(0,a.useState)([]),[ye,be]=(0,a.useState)(null),[xe,we]=(0,a.useState)(!1),[Ee,Ce]=(0,a.useState)(""),[Se,Te]=(0,a.useState)(!1),[ke,_e]=(0,a.useState)(null),[Ne,Ie]=(0,a.useState)(null),[Pe,Re]=(0,a.useState)(null),[De,Le]=(0,a.useState)(!0),{startPolling:Oe}=oR(2e3),Me=(0,a.useRef)(null),je=DR({contentRef:Me,documentTitle:"MedRPT-Report-".concat(o.litreviewtitle||m||"Report"),pageStyle:"\n @page {\n margin: 24mm 20mm;\n @bottom-center {\n content: counter(page);\n font-size: 10pt;\n color: #6b7280;\n font-family: system-ui, -apple-system, sans-serif;\n }\n }\n "}),Fe=null!==(e=null!==(t=o.fullTextArticleIds)&&void 0!==t?t:me)&&void 0!==e?e:null,Be=Array.isArray(Fe)?Fe.length:null,Ue=(0,a.useMemo)((()=>{var e;return null!==ae&&void 0!==ae&&ae.length?ae:null!==(e=o.screenedArticles)&&void 0!==e?e:[]}),[o.screenedArticles,ae]),ze=Array.isArray(o.articleUniqueIds)&&o.articleUniqueIds.length?o.articleUniqueIds:Array.isArray(he)?he:[],He=Array.isArray(se)&&se.length>0?se:null!==(n=o.suggestedColumns)&&void 0!==n?n:[],We=Array.isArray(o.extractionColumns)&&o.extractionColumns.length?o.extractionColumns:Array.isArray(ce)?ce:[],Ve=o.extractionArticleValues&&"object"===typeof o.extractionArticleValues&&Object.keys(o.extractionArticleValues).length?o.extractionArticleValues:de&&"object"===typeof de?de:{},Ge=(0,a.useMemo)((()=>s("research-report")),[s]),qe="research-report"===("undefined"!==typeof window&&window.location.hash||"").replace(/^#/,"").trim();console.log("suggestedColumns",He),(0,a.useEffect)((()=>{(async()=>
2{if(r&&qe){p(!0),f("");try{var e,t,n,o,a;const i=await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/synthesize/").concat(e),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!n.ok){const e=await n.json(),t=e.message||e.error||"Failed to synthesize data";throw new Error(t)}return await n.json()}catch(h){throw console.error("Error synthesizing report ",h),h}})(r);g(null!==(e=null===i||void 0===i?void 0:i.question)&&void 0!==e?e:""),v(null!==(t=null!==(n=null===i||void 0===i?void 0:i.synthesisResult)&&void 0!==n?n:null===i||void 0===i?void 0:i.report)&&void 0!==t?t:""),Array.isArray(null===i||void 0===i?void 0:i.importantColumns)&&i.importantColumns.length>0&&Q(i.importantColumns),null!==i&&void 0!==i&&i.synthesisSection&&K(i.synthesisSection),null!==i&&void 0!==i&&i.extractionCellSummaries&&"object"===typeof i.extractionCellSummaries&&Z(i.extractionCellSummaries),null!=(null===i||void 0===i?void 0:i.totalAbstracts)&&ee(i.totalAbstracts),null!=(null===i||void 0===i?void 0:i.qualifiedAbstracts)&&ne(i.qualifiedAbstracts),null!==i&&void 0!==i&&i.fullTextEvaluated&&oe(!0),Array.isArray(null===i||void 0===i?void 0:i.screenedArticles)&&ie(i.screenedArticles),Array.isArray(null===i||void 0===i?void 0:i.abstractSuggestedColumns)&&le(i.abstractSuggestedColumns),Array.isArray(null===i||void 0===i?void 0:i.extractionColumns)&&ue(i.extractionColumns),null!==i&&void 0!==i&&i.extractionArticleValues&&"object"===typeof i.extractionArticleValues&&pe(i.extractionArticleValues),Array.isArray(null===i||void 0===i?void 0:i.articleUniqueIds)&&fe(i.articleUniqueIds),Array.isArray(null===i||void 0===i?void 0:i.fullTextPassedIds)&&ge(i.fullTextPassedIds),Array.isArray(null===i||void 0===i?void 0:i.followUpQuestions)&&ve(i.followUpQuestions);const s=null!==(o=null!==(a=null===i||void 0===i?void 0:i.synthesisResult)&&void 0!==a?a:null===i||void 0===i?void 0:i.report)&&void 0!==o?o:"";null!==u&&void 0!==u&&u.refreshReportAvailability&&s&&u.refreshReportAvailability()}catch(i){f((null===i||void 0===i?void 0:i.message)||"Failed to generate report")}finally{p(!1)}try{const e=await Yc(r);"completed"===(null===e||void 0===e?void 0:e.status)&&e.researchGap&&(be(e.researchGap),Te(!0))}catch{}}})()}),[r,qe,null===u||void 0===u?void 0:u.refreshReportAvailability]);const Ye=async()=>{try{if("plainLanguage"===y){const e=await Xc(r);null!==e&&void 0!==e&&e.simplifiedResearchGap&&Ie(e.simplifiedResearchGap)}if(k&&"english"!==k.toLowerCase()){const e=await Qc(r,k);null!==e&&void 0!==e&&e.translatedResearchGap&&_e(e.translatedResearchGap),null!==e&&void 0!==e&&e.translatedSimplifiedResearchGap&&Re(e.translatedSimplifiedResearchGap)}}catch(e){console.error("Error refreshing research gap translation/simplification",e)}},Qe=k&&"english"!==k.toLowerCase(),Xe="plainLanguage"===y,Ke=Qe?Xe&&Pe?Pe:ke||ye:Xe&&Ne?Ne:ye,Je=(0,a.useMemo)((()=>{const e=Qe&&B?B:We;return Y?e.filter((e=>Y.includes(e.id))):e}),[Qe,B,We,Y]),Ze=(e,t)=>{var n,r,o;return Qe&&z?null!==(r=null===(o=z[String(e)])||void 0===o?void 0:o[t])&&void 0!==r?r:"\u2014":(null===(n=J[String(e)])||void 0===n?void 0:n[t])||function(e,t,n){var r,o;const a=(null!==(r=null!==(o=n[e])&&void 0!==o?o:n[String(e)])&&void 0!==r?r:{})[t];if(!a||"object"!==typeof a||Array.isArray(a))return"string"===typeof a?a:"\u2014";const i=Object.values(a).filter((e=>e&&"\u2014"!==e&&"null"!==e&&""!==String(e).trim()));return i.length>0?i.join("\n"):"\u2014"}(String(e),t,Ve)},et=Je.length>0&&Ue.length>0,tt=(0,a.useMemo)((()=>function(e,t){const n=1===e?"study":"studies";if(!t||0===t.length)return{sectionLabel:"Results",heading:"Characteristics of Included Studies",summary:"This review included ".concat(e," ").concat(n,"."),studyHeader:"Study"};const r=1===t.length?t[0]:"".concat(t.slice(0,-1).join(", ")," and ").concat(t[t.length-1]);return{sectionLabel:"Results",heading:"Characteristics of Included Studies",summary:"This review included ".concat(e," ").concat(n," with data extracted on ").concat(r,"."),studyHeader:"Study"}}(Ue.length,Je.map((e=>{var t;return null!==(t=e.label)&&void 0!==t?t:e.id}
2)))),[Ue.length,Je]),nt=Qe&&G?G:tt,rt=(0,a.useMemo)((()=>tO(A,Ue)),[A,Ue]),ot=(0,a.useMemo)((()=>tO(X,Ue)),[X,Ue]),at=(0,a.useMemo)((()=>tO(x,Ue)),[x,Ue]),it=(0,a.useMemo)((()=>tO(E,Ue)),[E,Ue]),st=(0,a.useMemo)((()=>tO(P,Ue)),[P,Ue]),lt=(0,a.useMemo)((()=>tO(D,Ue)),[D,Ue]),ct=(0,a.useMemo)((()=>tO(O,Ue)),[O,Ue]),ut=(0,a.useMemo)((()=>tO(j,Ue)),[j,Ue]),dt=(0,a.useMemo)((()=>tO(W,Ue)),[W,Ue]),pt=Qe?Xe&&ct?ct:st||rt:Xe&&at?at:rt,ht=Qe?Xe&&ut?ut:lt||ot:Xe&&it?it:ot,ft=(0,$e.jsx)("div",{className:"report-generation-page",children:d?(0,$e.jsxs)("div",{className:"report-generation-loading",children:[(0,$e.jsx)(Hd,{sx:{color:"#367c7e"},size:40}),(0,$e.jsx)("p",{className:"report-generation-loading-message",children:"Generating report\u2026"})]}):S?(0,$e.jsxs)("div",{className:"report-generation-loading",children:[(0,$e.jsx)(Hd,{sx:{color:"#367c7e"},size:40}),(0,$e.jsx)("p",{className:"report-generation-loading-message",children:"Simplifying report\u2026"})]}):N?(0,$e.jsxs)("div",{className:"report-generation-loading",children:[(0,$e.jsx)(Hd,{sx:{color:"#367c7e"},size:40}),(0,$e.jsx)("p",{className:"report-generation-loading-message",children:"Translating report\u2026"})]}):h?(0,$e.jsx)("div",{className:"report-text-content",children:(0,$e.jsx)("div",{className:"report-generation-status report-generation-status-error",children:h})}):(0,$e.jsxs)("div",{ref:Me,className:"report-printable-area",children:[(0,$e.jsxs)("div",{className:"report-text-content",children:[(0,$e.jsx)("div",{className:"report-generation-date",children:JL()}),m&&(0,$e.jsx)("h1",{className:"report-generation-title",children:m}),pt&&(0,$e.jsx)("div",{className:"report-generation-result",children:(0,$e.jsx)(yg,{components:$L,children:pt})})]}),Qe&&dt?(0,$e.jsx)("section",{className:"report-methods-section",children:(0,$e.jsxs)("div",{className:"report-text-content",children:[(0,$e.jsx)("div",{className:"report-section-label",children:"Methods"}),(0,$e.jsx)(yg,{components:$L,children:dt})]})}):(0,$e.jsxs)($e.Fragment,{children:[(m||Ue.length>0)&&(0,$e.jsx)("section",{className:"report-methods-section",children:(0,$e.jsxs)("div",{className:"report-text-content",children:[(0,$e.jsx)("div",{className:"report-section-label",children:"Methods"}),(0,$e.jsx)("h2",{className:"report-methods-heading",children:"Paper Search"}),m&&(0,$e.jsxs)("p",{className:"report-methods-paragraph",children:["We ran the following query: \u201c",m,"\u201d"]}),null!=$&&(0,$e.jsxs)("p",{className:"report-methods-paragraph",children:["The search returned ",$," total results."]}),null!=te&&(0,$e.jsxs)("p",{className:"report-methods-paragraph",children:["We retrieved ",te," papers most relevant to the query for screening."]})]})}),He.length>0&&(0,$e.jsx)("section",{className:"report-methods-section",children:(0,$e.jsxs)("div",{className:"report-text-content",children:[(0,$e.jsx)("h2",{className:"report-methods-heading",children:"Screening"}),(0,$e.jsx)("h2",{className:"report-methods-subheading",children:"Abstract screening"}),(0,$e.jsx)("p",{className:"report-methods-paragraph",children:"We screened in sources based on their abstracts that met these criteria:"}),(0,$e.jsx)("ul",{className:"report-screening-criteria-list",children:He.map((e=>{var t;return(0,$e.jsxs)("li",{className:"report-screening-criteria-item",children:[(0,$e.jsx)("strong",{children:null!==(t=e.label)&&void 0!==t?t:e.id}),e.screeningQuestion?": ".concat(e.screeningQuestion):""]},e.id)}))}),Ue.length>0&&(0,$e.jsxs)("p",{className:"report-methods-paragraph",children:[Ue.length," paper",1!==Ue.length?"s":""," passed abstract screening. Papers below the screening threshold score were excluded."]})]})}),re&&He.length>0&&(0,$e.jsx)("section",{className:"report-methods-section",children:(0,$e.jsxs)("div",{className:"report-text-content",children:[(0,$e.jsx)("h2",{className:"report-methods-subheading",children:"Full-text screening"}),(0,$e.jsx)("p",{className:"report-methods-paragraph",children:"We then screened papers based on their full texts that met these criteria:"}),(0,$e.jsx)("ul",{className:"report-screening-criteria-list",children:He.map((e=>{var t;return(0,$e.jsxs)("li",{className:"report-screening-criteria-item",children:[(0,$e.jsx)("strong",{children:null!==(t=e.label)&&void 0!==t?t:e.id}),e.screeningQuestion?": ".concat(e.screeningQuestion):""]},e.id)}))}),null!=Be&&(0,$e.jsxs)("p",{className:"report-methods-paragraph",children:[Be," paper",1!==Be?"s":""," passed full-text screening. Papers below the screening threshold score were excluded."]})]})}),We.length>0&&(0,$e.jsx)("section",{className:"report-methods-section",children:(0,$e.jsxs)("div",{className:"report-text-content",children:[(0,$e.jsx)("h2",{className:"report-methods-heading",children:"Data Extraction"}),(0,$e.jsx)("p",{className:"report-methods-paragraph",children:"We asked a large language model to extract the following data columns from each paper, using the detailed instructions provided for each column."}),(0,$e.jsx)("ul",{className:"report-screening-criteria-list",children:We.map((e=>{var t;return(0,$e.jsxs)("li",{className:"report-screening-criteria-item",children:[(0,$e.jsx)("strong",{children:null!==(t=e.label)&&void 0!==t?t:e.id}),":",Array.isArray(e.fields)&&e.fields.length>0&&(0,$e.jsx)("ul",{className:"report-extraction-fields-list",children:e.fields.map(((e,t)=>{var n,r,o;return(0,$e.jsx)("li",{className:"report-extraction-field-item",children:null!==(r=null!==(o=e.label)&&void 0!==o?o:e.description)&&void 0!==r?r:e.name},null!==(n=e.name)&&void 0!==n?n:t)}))})]},e.id)}))})]})})]}),et&&(0,$e.jsxs)("section",{className:"report-characteristics-section",children:[(0,$e.jsxs)("div",{className:"report-text-content",children:[(0,$e.jsx)("div",{className:"report-section-label",children:nt.sectionLabel}),(0,$e.jsx)("h2",{className:"report-characteristics-heading",children:nt.heading}),(0,$e.jsx)("p",{className:"report-characteristics-summary",children:nt.summary})]}),(0,$e.jsx)("div",{className:"report-characteristics-table-wrapper",children:(0,$e.jsxs)("table",{className:"report-characteristics-table",children:[(0,$e.jsx)("thead",{children:(0,$e.jsxs)("tr",{children:[(0,$e.jsx)("th",{className:"report-characteristics-col-study",children:(0,$e.jsx)("div",{className:"report-th-content",children:(0,$e.jsx)("span",{children:nt.studyHeader})})}),Je.map((e=>{var t;return(0,$e.jsx)("th",{children:(0,$e.jsx)("div",{className:"report-th-content",children:(0,$e.jsx)("span",{children:null!==(t=e.label)&&void 0!==t?t:e.id})})},e.id)}))]})}),(0,$e.jsx)("tbody",{children:ze.map(((e,t)=>{var n;const r=ZL(null!==(n=Ue[t])&&void 0!==n?n:{}),o=De&&t>=3;return(0,$e.jsxs)("tr",{className:o?"report-characteristics-row-collapsed":void 0,children:[(0,$e.jsx)("td",{className:"report-characteristics-cell-study",children:r}),Je.map((t=>(0,$e.jsx)("td",{className:"report-characteristics-cell",children:Ze(e,t.id)},t.id)))]},String(e))}))})]})}),ze.length>3&&(0,$e.jsx)("button",{type:"button",className:"report-characteristics-view-more-button",onClick:()=>Le((e=>!e)),children:De?"View More (".concat(ze.length-3," more)"):"View Less"})]}),ht&&(0,$e.jsx)("section",{className:"report-synthesis-section",children:(0,$e.jsxs)("div",{className:"report-text-content",children:[(0,$e.jsx)("div",{className:"report-section-label",children:"Analysis"}),(0,$e.jsx)("h2",{className:"report-synthesis-heading",children:"Synthesis"}),(0,$e.jsx)("div",{className:"report-synthesis-content",children:(0,$e.jsx)(yg,{components:$L,children:ht})})]})}),Object.keys(Ve).length>0&&(0,$e.jsx)("div",{className:"report-text-content",children:(0,$e.jsx)(KL,{researchGap:Ke,isLoading:xe,error:Ee,hasGenerated:Se,onGenerate:async()=>
2{if(r&&!xe){Te(!0),be(null),we(!0),Ce("");try{const e=await(async e=>{try{const t=await Ec(),n=await fetch("".concat("https://api.medrpt.ai","/api/review/researchGap/").concat(e),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(!n.ok){const e=await n.json().catch((()=>({}))),t=e.message||e.error||"Failed to generate research gap analysis";throw new Error(t)}return n.json()}catch(h){throw console.error("Error generating research gap analysis",h),h}})(r);if("completed"===(null===e||void 0===e?void 0:e.status))return be(e.researchGap),we(!1),void Ye();"processing"===(null===e||void 0===e?void 0:e.status)&&Oe((async e=>{try{const t=await Yc(r);"completed"===(null===t||void 0===t?void 0:t.status)?(be(t.researchGap),we(!1),e(),Ye()):"failed"===(null===t||void 0===t?void 0:t.status)&&(Ce(t.error||"Failed to generate research gap analysis"),we(!1),e())}catch(t){Ce((null===t||void 0===t?void 0:t.message)||"Failed to generate research gap analysis"),we(!1),e()}}))}catch(e){Ce((null===e||void 0===e?void 0:e.message)||"Failed to generate research gap analysis"),we(!1)}}},articles:Ue})}),Ae.length>0&&(0,$e.jsx)("div",{className:"report-text-content",children:(0,$e.jsx)(YL,{questions:Ae,onQuestionClick:l})}),Ue.length>0&&(0,$e.jsx)("div",{className:"report-text-content",children:(0,$e.jsxs)("section",{className:"report-generation-references",children:[(0,$e.jsx)("h2",{className:"report-generation-references-title",children:"References"}),(0,$e.jsx)("ol",{className:"report-generation-references-list",children:Ue.map(((e,t)=>{var n,r,o,a,i,s,l,c;const u=null!==(n=null===e||void 0===e?void 0:e.title)&&void 0!==n?n:"",d=null===e||void 0===e?void 0:e.authors,p=Array.isArray(d)?d.join(", "):null!==d&&void 0!==d?d:"",h=null!==(r=null===e||void 0===e?void 0:e.journalTitle)&&void 0!==r?r:"",f=null!==(o=null===e||void 0===e?void 0:e.publicationDate)&&void 0!==o?o:"",m=null!==(a=null===e||void 0===e?void 0:e.citationCount)&&void 0!==a?a:0,g=null!==(i=null!==(s=null===e||void 0===e?void 0:e.uniqueId)&&void 0!==s?s:null===e||void 0===e?void 0:e.pubmed_id)&&void 0!==i?i:ze[t],A=g?"https://pubmed.ncbi.nlm.nih.gov/".concat(g):null;return(0,$e.jsxs)("li",{id:"paper-".concat(t+1),className:"report-generation-ref-item",children:[(0,$e.jsx)("div",{className:"report-generation-ref-title",children:u}),(p||h||f||m>0)&&(0,$e.jsxs)("div",{className:"report-generation-ref-meta",children:[p&&(0,$e.jsx)("span",{className:"report-generation-ref-authors",children:p}),h&&(0,$e.jsx)("span",{className:"report-generation-ref-journal",children:h}),f&&(0,$e.jsx)("span",{className:"report-generation-ref-date",children:f}),m>0&&(0,$e.jsxs)("span",{className:"report-generation-ref-citations",children:[m," citations"]})]}),A&&(0,$e.jsx)("a",{href:A,target:"_blank",rel:"noopener noreferrer",className:"report-generation-ref-link",children:"View full study"})]},(null!==(l=null!==(c=null===e||void 0===e?void 0:e.uniqueId)&&void 0!==c?c:null===e||void 0===e?void 0:e.pubmed_id)&&void 0!==l?l:t)||t)}))})]})})]})}),mt=d||h?null:(0,$e.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,$e.jsx)(Xy,{selectedReportType:y,onReportTypeChange:async e=>{if(b(e),"plainLanguage"===e&&!x)try{T(!0);const e=await Xc(r);e.simplifiedSynthesis&&w(e.simplifiedSynthesis),e.simplifiedSection&&C(e.simplifiedSection),e.simplifiedResearchGap&&Ie(e.simplifiedResearchGap)}catch(t){console.error("Error simplifying report",t),b("original")}finally{T(!1)}}}),(0,$e.jsx)(Qy,{selectedLanguage:k,onLanguageChange:async e=>{if(e!==k){if(_(e),!e||"english"===e.toLowerCase())return R(null),L(null),M(null),F(null),U(null),H(null),V(null),q(null),_e(null),void Re(null);try{I(!0);const t=await Qc(r,e);t.translatedSynthesis&&R(t.translatedSynthesis),t.translatedSection&&L(t.translatedSection),t.translatedSimplifiedSynthesis&&M(t.translatedSimplifiedSynthesis),t.translatedSimplifiedSection&&F(t.translatedSimplifiedSection),t.translatedColumns&&U(t.translatedColumns),t.translatedCellContent&&H(t.translatedCellContent),t.translatedMethods&&V(t.translatedMethods),t.translatedResultsLabels&&q(t.translatedResultsLabels),t.translatedResearchGap&&_e(t.translatedResearchGap),t.translatedSimplifiedResearchGap&&Re(t.translatedSimplifiedResearchGap)}catch(t){console.error("Error translating report",t),_(null)}finally{I(!1)}}}}),(0,$e.jsx)("button",{className:"report-save-pdf-button",onClick:je,children:"Save as PDF"}),!c&&(0,$e.jsx)("button",{className:"report-save-pdf-button",onClick:async()=>{try{const e=et?[nt.studyHeader,...Je.map((e=>{var t;return null!==(t=e.label)&&void 0!==t?t:e.id}
2))]:[],t=et?ze.map(((e,t)=>{var n;return[ZL(null!==(n=Ue[t])&&void 0!==n?n:{}),...Je.map((t=>Ze(e,t.id)))]})):[];await qL({title:o.litreviewtitle||m,question:m,date:JL(),overviewMarkdown:pt,methods:{translatedMarkdown:Qe?dt:null,question:m,totalAbstracts:$,qualifiedAbstracts:te,suggestedColumns:He,screenedCount:Ue.length,isFullTextEvaluated:re,fullTextPassedCount:Be,extractionColumns:Qe&&B?B:We},table:et?{heading:nt.heading,summary:nt.summary,headers:e,rows:t}:null,synthesisMarkdown:ht,researchGap:Se&&Ke&&!Ee?Ke:null,articles:Ue,fileName:o.litreviewtitle||m||"Report"})}catch(e){console.error("Failed to export PowerPoint",e)}},children:"Save as PPT"})]});return(0,$e.jsx)(RP,{projectTitle:o.litreviewtitle||"Report generation",editableTitle:!!r,steps:Ge,mainContent:ft,headerActions:mt,onBack:()=>{i("data-extraction-results")},backLabel:"Back to extraction results",showBack:!0,showNext:!1})},rO=e=>{let{user:t,hasEnterprise:n,isEnterpriseActive:r,onLogin:o,onExplore:a}=e;return(0,$e.jsx)("div",{className:"screening-container",children:(0,$e.jsxs)("div",{className:"premium-feature-card",children:[(0,$e.jsx)("div",{className:"premium-icon",children:(0,$e.jsx)("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M9 12L11 14L15 10M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"#FFD700",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,$e.jsx)("h2",{children:"\ud83d\udcda MedRPT Systematic Review Protocol"}),(0,$e.jsx)("p",{className:"premium-description",children:"Accelerate your systematic literature review with MedRPT's advanced AI-powered platform. Perform abstract screening, full-text screening, structured data extraction, and critical appraisal using evidence-based methodologies and customizable inclusion/exclusion criteria for rigorous academic research."}),(0,$e.jsxs)("div",{className:"feature-highlights",children:[(0,$e.jsxs)("div",{className:"feature-item",children:[(0,$e.jsx)("span",{className:"feature-icon",children:"\ud83d\udd2c"}),(0,$e.jsx)("span",{children:"Evidence-based workflow aligned with PRISMA guidelines"})]}),(0,$e.jsxs)("div",{className:"feature-item",children:[(0,$e.jsx)("span",{className:"feature-icon",children:"\u26a1"}),(0,$e.jsx)("span",{children:"High-throughput processing of thousands of research articles"})]}),(0,$e.jsxs)("div",{className:"feature-item",children:[(0,$e.jsx)("span",{className:"feature-icon",children:"\ud83c\udfaf"}),(0,$e.jsx)("span",{children:"Precision AI algorithms trained on medical literature databases"})]}),(0,$e.jsxs)("div",{className:"feature-item",children:[(0,$e.jsx)("span",{className:"feature-icon",children:"\ud83d\udcca"}),(0,$e.jsx)("span",{children:"Comprehensive reporting with PRISMA flow diagram data"})]}),(0,$e.jsxs)("div",{className:"feature-item",children:[(0,$e.jsx)("span",{className:"feature-icon",children:"\ud83d\udd04"}),(0,$e.jsx)("span",{children:"Real-time progress tracking with detailed screening statistics"})]}),(0,$e.jsxs)("div",{className:"feature-item",children:[(0,$e.jsx)("span",{className:"feature-icon",children:"\ud83d\udccb"}),(0,$e.jsx)("span",{children:"Exportable results for systematic review documentation"})]})]}),(0,$e.jsxs)("div",{className:"cta-buttons lrt-cta-buttons",children:[t?n&&!r?(0,$e.jsx)("div",{className:"enterprise-expired-message",children:"Enterprise Subscription Expired. Please contact your administrator."}):(0,$e.jsxs)("a",{href:"https://www.medrpt.ai/contact-us",target:"_blank",rel:"noopener noreferrer",className:"lrt-cta-button lrt-contact-us-button",children:[(0,$e.jsx)("span",{className:"lrt-contact-us-button-text",children:"Contact Us"}),(0,$e.jsx)("svg",{className:"lrt-contact-us-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,$e.jsx)("path",{d:"M3 8L10.89 13.26C11.2187 13.4793 11.6049 13.5963 12 13.5963C12.3951 13.5963 12.7813 13.4793 13.11 13.26L21 8M5 19H19C19.5304 19 20.0391 18.7893 20.4142 18.4142C20.7893 18.0391 21 17.5304 21 17V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H5C4.46957 5 3.96086 5.21071 3.58579 5.58579C3.21071 5.96086 3 6.46957 3 7V17C3 17.5304 3.21071 18.0391 3.58579 18.4142C3.96086 18.7893 4.46957 19 5 19Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}):(0,$e.jsx)("button",{type:"button",onClick:o,className:"lrt-cta-button lrt-primary-button",children:"Start Your Systematic Review"}),(0,$e.jsx)("button",{type:"button",onClick:a,className:"lrt-cta-button lrt-explore-button",children:"Explore MedRPT Features"})]})]})})},oO=()=>{const e=te(),{id:t,step:n,user:r,isAdvanced:o,isEnterpriseActive:a,hasEnterprise:i,loading:s,errorMessage:l,handleNavigateToPaperSources:c,closeErrorModal:u}=_P(),d=r&&(a||o);if(s)return(0,$e.jsx)("div",{className:"screening-loading",children:(0,$e.jsx)("p",{children:"Loading..."})});if(!d)return(0,$e.jsx)(rO,{user:r,hasEnterprise:i,isEnterpriseActive:a,onLogin:()=>e("/login"),onExplore:()=>e("/")});if(t){const e=e=>(0,$e.jsx)(PP,{reviewId:t,children:e});return e("abstract-screening"===n?(0,$e.jsx)(iR,{}):"recommended-abstracts"===n?(0,$e.jsx)(mR,{}):"full-text-screening"===n?(0,$e.jsx)(vR,{}):"data-extraction-definition"===n?(0,$e.jsx)(bR,{}):"data-extraction-results"===n?(0,$e.jsx)(wR,{}):"research-report"===n?(0,$e.jsx)(nO,{}):(0,$e.jsx)(eR,{}))}return(0,$e.jsxs)("div",{children:[(0,$e.jsx)(id,{search:c}),(0,$e.jsx)(sd,{search:c}),l&&(0,$e.jsx)(vd,{message:l,onClose:u})]})},aO=()=>(0,$e.jsx)(kP,{children:(0,$e.jsx)(oO,{})}),iO=()=>{const{user:e}=rd((e=>[e.user])),[t,n]=(0,a.useState)([]),[r,o]=(0,a.useState)(!0),[i,s]=(0,a.useState)(null),[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null),[f,m]=(0,a.useState)({question:"",answer:"",isActive:!0}),[g,A]=(0,a.useState)(!1),[v,y]=(0,a.useState)(!1),[b,x]=(0,a.useState)({open:!1,message:"",severity:"success"}),[w,E]=(0,a.useState)(!1),[C,S]=(0,a.useState)(null);(0,a.useEffect)((()=>{(async()=>
2{if(e&&e.userId)try{var t;const e=await Oc();d((null===e||void 0===e||null===(t=e.user)||void 0===t?void 0:t.isMedRPTAdmin)||!1)}catch(i){console.error("Error checking admin status:",i),d(!1)}})()}),[e]),(0,a.useEffect)((()=>{(async()=>{try{o(!0);const e=await Bc("FAQ");e&&Array.isArray(e)?n(e):n([]),s(null)}catch(i){console.error("Failed to fetch FAQs",i),s(null),n([])}finally{o(!1)}})()}),[]);const T=()=>{E(!1),S(null)},k=(e,t)=>{"clickaway"!==t&&x((e=>({...e,open:!1})))};return(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("div",{className:"faq-content-wrapper",children:(0,$e.jsxs)("div",{className:"faq-content",children:[r?(0,$e.jsx)("div",{className:"faq-loading",children:"Loading..."}):i?(0,$e.jsx)("div",{className:"faq-error",children:i}):t.map(((e,r)=>{const o=l===r;return(0,$e.jsx)("div",{className:"faq-item",children:(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)("div",{className:"faq-question",onClick:()=>(e=>{c(l===e?null:e)})(r),children:[(0,$e.jsx)("span",{className:"faq-toggle-icon ".concat(o?"expanded":""),children:o?(0,$e.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M4 10H16",stroke:"#49994C",strokeWidth:"2",strokeLinecap:"round"})}):(0,$e.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.jsx)("path",{d:"M10 4V16M4 10H16",stroke:"#49994C",strokeWidth:"2",strokeLinecap:"round"})})}),(0,$e.jsx)("span",{className:"faq-question-text",dangerouslySetInnerHTML:{__html:e.question}}),u&&(0,$e.jsxs)("div",{className:"faq-admin-actions",children:[(0,$e.jsx)("button",{className:"faq-edit-btn",onClick:e=>{e.stopPropagation(),(e=>{const n=t[e];m({question:n.question,answer:n.answer,isActive:!1!==n.isActive}),h(n.id),A(!0)})(r)},children:"Edit"}),(0,$e.jsxs)("div",{className:"faq-active-toggle",onClick:e=>e.stopPropagation(),children:[(0,$e.jsxs)("label",{className:"faq-toggle-switch",children:[(0,$e.jsx)("input",{type:"checkbox",checked:Boolean(!1!==e.isActive),onChange:e=>{e.stopPropagation(),(async(e,r)=>{r.stopPropagation();const o=t[e],a=!1!==o.isActive,s=!a,l=[...t];l[e]={...l[e],isActive:s},n(l);try{y(!0),await zc(o.question,o.answer,s,o.id,"FAQ"),x({open:!0,message:"FAQ ".concat(s?"activated":"deactivated"," successfully"),severity:"success"})}catch(i){const o=[...t];o[e]={...o[e],isActive:a},n(o),x({open:!0,message:"Failed to update FAQ status: "+i.message,severity:"error"})}finally{y(!1)}})(r,e)},onClick:e=>{e.stopPropagation()},disabled:v},"toggle-".concat(e.id,"-").concat(e.isActive)),(0,$e.jsx)("span",{className:"faq-toggle-slider"})]}),(0,$e.jsx)("span",{className:"faq-toggle-label",children:!1!==e.isActive?"Active":"Inactive"})]}),(0,$e.jsx)("button",{className:"faq-delete-btn",onClick:e=>{e.stopPropagation(),(e=>{S(e),E(!0)})(r)},disabled:v,children:"Delete"})]})]}),o&&(0,$e.jsx)("div",{className:"faq-answer",dangerouslySetInnerHTML:{__html:e.answer}})]})},e.id||r)})),u&&(0,$e.jsx)("button",{className:"faq-add-button",onClick:()=>{m({question:"",answer:"",isActive:!0}),h(null),A(!0)},children:"+ Add FAQ"})]})}),g&&(0,$e.jsxs)(Ik,{open:g,onClose:()=>{A(!1),m({question:"",answer:"",isActive:!0}),h(null)},"aria-labelledby":"add-faq-dialog-title",maxWidth:"md",fullWidth:!0,children:[(0,$e.jsx)(Ok,{id:"add-faq-dialog-title",children:p?"Edit FAQ":"Add New FAQ"}),(0,$e.jsxs)(qk,{sx:{minWidth:"500px",padding:"24px","@media (max-width: 768px)":{minWidth:"auto",padding:"16px"}},children:[(0,$e.jsx)(Is,{value:f.question,onChange:e=>m({...f,question:e.target.value}),placeholder:"Enter question...",fullWidth:!0,sx:{marginBottom:"20px"}}),(0,$e.jsx)(Is,{value:f.answer,onChange:e=>m({...f,answer:e.target.value}),placeholder:"Enter answer...",multiline:!0,rows:8,fullWidth:!0,sx:{marginBottom:"20px"}}),u&&(0,$e.jsxs)("div",{className:"faq-active-toggle",style:{marginTop:"10px"},children:[(0,$e.jsxs)("label",{className:"faq-toggle-switch",children:[(0,$e.jsx)("input",{type:"checkbox",checked:!1!==f.isActive,onChange:e=>m({...f,isActive:e.target.checked}),disabled:v}),(0,$e.jsx)("span",{className:"faq-toggle-slider"})]}),(0,$e.jsx)("span",{className:"faq-toggle-label",children:!1!==f.isActive?"Active":"Inactive"})]})]}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:()=>{A(!1),m({question:"",answer:"",isActive:!0}),h(null)},sx:{color:"#49994C"},disabled:v,children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>
2{if(!f.question.trim()||!f.answer.trim())return void x({open:!0,message:"Please fill in both question and answer",severity:"warning"});const e=null!==p;try{if(y(!0),x({open:!0,message:e?"Updating FAQ...":"Adding new FAQ...",severity:"info"}),e){await zc(f.question,f.answer,f.isActive,p,"FAQ");const e=t.map((e=>e.id===p?{...e,question:f.question,answer:f.answer}:e));n(e)}else{await Uc(f.question,f.answer,f.isActive,"FAQ");const e=await Bc("FAQ");e&&Array.isArray(e)&&n(e)}m({question:"",answer:"",isActive:!0}),h(null),A(!1),x({open:!0,message:e?"FAQ updated successfully!":"FAQ added successfully!",severity:"success"})}catch(i){x({open:!0,message:e?"Failed to update FAQ: "+i.message:"Failed to create FAQ: "+i.message,severity:"error"})}finally{y(!1)}},variant:"contained",sx:{backgroundColor:"#49994C","&:hover":{backgroundColor:"#3d7d40"}},disabled:v,children:v?p?"Updating...":"Adding...":p?"Update FAQ":"Add FAQ"})]})]}),(0,$e.jsxs)(Ik,{open:w,onClose:T,"aria-labelledby":"delete-faq-dialog-title",children:[(0,$e.jsx)(Ok,{id:"delete-faq-dialog-title",children:"Delete FAQ"}),(0,$e.jsx)(qk,{children:(0,$e.jsx)(Jk,{children:"Are you sure you want to delete this FAQ? This action cannot be undone."})}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:T,sx:{color:"#49994C"},disabled:v,children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{if(null===C)return;const e=t[C];try{y(!0),await Hc(e.id),n(t.filter(((e,t)=>t!==C))),E(!1),S(null),x({open:!0,message:"FAQ deleted successfully",severity:"success"})}catch(i){x({open:!0,message:"Failed to delete FAQ: "+i.message,severity:"error"})}finally{y(!1)}},color:"error",variant:"contained",disabled:v,children:v?"Deleting...":"Delete"})]})]}),(0,$e.jsx)(en,{open:b.open,autoHideDuration:4e3,onClose:k,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,$e.jsx)(sr,{onClose:k,severity:b.severity,sx:{width:"100%"},children:b.message})})]})},sO=()=>{const{user:e}=rd((e=>[e.user])),[t,n]=(0,a.useState)([]),[r,o]=(0,a.useState)(!0),[i,s]=(0,a.useState)(null),[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null),[f,m]=(0,a.useState)({open:!1,message:"",severity:"success"}),[g,A]=(0,a.useState)({question:"",answer:"",isActive:!0}),[v,y]=(0,a.useState)(!1),[b,x]=(0,a.useState)(!1),[w,E]=(0,a.useState)(null);(0,a.useEffect)((()=>{(async()=>{if(e&&e.userId)try{var t;const e=await Oc();c((null===e||void 0===e||null===(t=e.user)||void 0===t?void 0:t.isMedRPTAdmin)||!1)}catch(n){console.error("Error checking admin status:",n),c(!1)}})()}),[e]),(0,a.useEffect)((()=>{(async()=>{try{o(!0);const e=await Bc("HELP");e&&Array.isArray(e)?n(e):n([]),s(null)}catch(e){console.error("Failed to fetch Help content",e),s(null),n([])}finally{o(!1)}})()}),[]);const C=()=>{x(!1),E(null)},S=(e,t)=>{"clickaway"!==t&&m((e=>({...e,open:!1})))};return(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("div",{className:"help-card-content-wrapper",children:(0,$e.jsxs)("div",{className:"help-card-content",children:[r?(0,$e.jsx)("div",{className:"help-card-loading",children:"Loading..."}):i?(0,$e.jsx)("div",{className:"help-card-error",children:i}):t.map(((e,r)=>(0,$e.jsxs)("div",{className:"help-card-item",children:[(0,$e.jsx)("div",{className:"help-card-question-row",children:(0,$e.jsx)("span",{className:"help-card-question-text",dangerouslySetInnerHTML:{__html:e.question}})}),(0,$e.jsx)("div",{className:"help-card-answer",dangerouslySetInnerHTML:{__html:e.answer}}),l&&(0,$e.jsxs)("div",{className:"help-card-admin-actions",children:[(0,$e.jsx)("button",{type:"button",className:"help-card-edit-btn",onClick:()=>(e=>{const n=t[e];A({question:n.question,answer:n.answer,isActive:!1!==n.isActive}),h(n.id),y(!0)})(t.findIndex((t=>t.id===e.id))),children:"Edit"}),(0,$e.jsxs)("div",{className:"help-card-active-toggle",onClick:e=>e.stopPropagation(),children:[(0,$e.jsxs)("label",{className:"help-card-toggle-switch",children:[(0,$e.jsx)("input",{type:"checkbox",checked:Boolean(!1!==e.isActive),onChange:r=>(async(e,r)=>{r.stopPropagation();const o=t[e],a=!1!==o.isActive,i=!a,s=[...t];s[e]={...s[e],isActive:i},n(s);try{d(!0),await zc(o.question,o.answer,i,o.id,"HELP"),m({open:!0,message:"Help content ".concat(i?"activated":"deactivated"," successfully"),severity:"success"})}catch(l){const r=[...t];r[e]={...r[e],isActive:a},n(r),m({open:!0,message:"Failed to update Help content status: "+l.message,severity:"error"})}finally{d(!1)}})(t.findIndex((t=>t.id===e.id)),r),disabled:u}),(0,$e.jsx)("span",{className:"help-card-toggle-slider"})]}),(0,$e.jsx)("span",{className:"help-card-toggle-label",children:!1!==e.isActive?"Active":"Inactive"})]}),(0,$e.jsx)("button",{type:"button",className:"help-card-delete-btn",onClick:()=>(e=>{E(e),x(!0)})(t.findIndex((t=>t.id===e.id))),disabled:u,children:"Delete"})]})]},e.id||r))),l&&(0,$e.jsx)("button",{type:"button",className:"help-card-add-button",onClick:()=>{A({question:"",answer:"",isActive:!0}),h(null),y(!0)},children:"+ Add Help"})]})}),v&&(0,$e.jsxs)(Ik,{open:v,onClose:()=>{y(!1),A({question:"",answer:"",isActive:!0}),h(null)},"aria-labelledby":"add-help-dialog-title",maxWidth:"md",fullWidth:!0,children:[(0,$e.jsx)(Ok,{id:"add-help-dialog-title",children:p?"Edit Help":"Add New Help"}),(0,$e.jsxs)(qk,{sx:{minWidth:"500px",padding:"24px","@media (max-width: 768px)":{minWidth:"auto",padding:"16px"}},children:[(0,$e.jsx)(Is,{value:g.question,onChange:e=>A({...g,question:e.target.value}),placeholder:"Enter question...",fullWidth:!0,sx:{marginBottom:"20px"}}),(0,$e.jsx)(Is,{value:g.answer,onChange:e=>A({...g,answer:e.target.value}),placeholder:"Enter answer...",multiline:!0,rows:8,fullWidth:!0,sx:{marginBottom:"20px"}}),l&&(0,$e.jsxs)("div",{className:"help-card-active-toggle",style:{marginTop:"10px"},children:[(0,$e.jsxs)("label",{className:"help-card-toggle-switch",children:[(0,$e.jsx)("input",{type:"checkbox",checked:!1!==g.isActive,onChange:e=>A({...g,isActive:e.target.checked}),disabled:u}),(0,$e.jsx)("span",{className:"help-card-toggle-slider"})]}),(0,$e.jsx)("span",{className:"help-card-toggle-label",children:!1!==g.isActive?"Active":"Inactive"})]})]}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:()=>{y(!1),A({question:"",answer:"",isActive:!0}),h(null)},sx:{color:"#49994C"},disabled:u,children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>
2{if(!g.question.trim()||!g.answer.trim())return void m({open:!0,message:"Please fill in both question and answer",severity:"warning"});const e=null!==p;try{if(d(!0),m({open:!0,message:e?"Updating Help content...":"Adding new Help content...",severity:"info"}),e){await zc(g.question,g.answer,g.isActive,p,"HELP");const e=t.map((e=>e.id===p?{...e,question:g.question,answer:g.answer,isActive:g.isActive}:e));n(e)}else{await Uc(g.question,g.answer,g.isActive,"HELP");const e=await Bc("HELP");e&&Array.isArray(e)&&n(e)}A({question:"",answer:"",isActive:!0}),h(null),y(!1),m({open:!0,message:e?"Help content updated successfully!":"Help content added successfully!",severity:"success"})}catch(r){m({open:!0,message:e?"Failed to update Help content: "+r.message:"Failed to create Help content: "+r.message,severity:"error"})}finally{d(!1)}},variant:"contained",sx:{backgroundColor:"#49994C","&:hover":{backgroundColor:"#3d7d40"}},disabled:u,children:u?p?"Updating...":"Adding...":p?"Update Help":"Add Help"})]})]}),(0,$e.jsxs)(Ik,{open:b,onClose:C,"aria-labelledby":"delete-help-dialog-title",children:[(0,$e.jsx)(Ok,{id:"delete-help-dialog-title",children:"Delete Help"}),(0,$e.jsx)(qk,{children:(0,$e.jsx)(Jk,{children:"Are you sure you want to delete this help item? This action cannot be undone."})}),(0,$e.jsxs)(Bk,{children:[(0,$e.jsx)(Cl,{onClick:C,sx:{color:"#49994C"},disabled:u,children:"Cancel"}),(0,$e.jsx)(Cl,{onClick:async()=>{if(null===w)return;const e=t[w];try{d(!0),await Hc(e.id),n(t.filter(((e,t)=>t!==w))),x(!1),E(null),m({open:!0,message:"Help content deleted successfully",severity:"success"})}catch(r){m({open:!0,message:"Failed to delete Help content: "+r.message,severity:"error"})}finally{d(!1)}},color:"error",variant:"contained",disabled:u,children:u?"Deleting...":"Delete"})]})]}),(0,$e.jsx)(en,{open:f.open,autoHideDuration:4e3,onClose:S,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,$e.jsx)(sr,{onClose:S,severity:f.severity,sx:{width:"100%"},children:f.message})})]})};const lO=function(){const[e,t]=(0,a.useState)("FAQ"),n=(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"92",height:"111",viewBox:"0 0 92 111",fill:"none",children:[(0,$e.jsx)("path",{d:"M65.4449 25.611L75.117 31.0505L50.6292 46.851V58.7662L91.9986 34.7804V27.3284L45.6862 0L0 27.9583V41.6158L45.9926 14.2874L54.946 19.3945L0 53.0676V66.5369L65.4449 25.611Z",fill:"#00151F"}),(0,$e.jsx)("path",{d:"M15.0243 80.8149L41.3708 63.7193L41.3708 51.8042L0.00140662 78.3801L0.00140597 85.8322L46.3138 110.57L92 82.612L92 68.9545L92 47.9188L82.8886 53.2288L82.8886 73.8212L46.0074 96.2829L15.0243 80.8149Z",fill:"#50A854"})]});return(0,$e.jsx)("div",{className:"help-and-faq content-wrapper",children:(0,$e.jsxs)("div",{className:"content-container",children:[(0,$e.jsxs)("div",{className:"help-and-faq-mobile-header","aria-hidden":"true",children:[(0,$e.jsx)("div",{className:"help-and-faq-mobile-header-logo",children:n}),(0,$e.jsx)("h1",{className:"help-and-faq-mobile-title",children:"FAQ"===e?(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("span",{children:"Frequently"}),(0,$e.jsx)("span",{children:"Asked"}),(0,$e.jsx)("span",{children:"Questions"})]}):(0,$e.jsx)("span",{children:"Help"})}),(0,$e.jsx)("div",{className:"content-divider-line"})]}),(0,$e.jsxs)("div",{className:"content-left-section",children:[(0,$e.jsx)("h1",{className:"content-main-heading",children:"FAQ"===e?(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("span",{children:"Frequently"}),(0,$e.jsx)("span",{children:"Asked"}),(0,$e.jsx)("span",{children:"Questions"})]}):(0,$e.jsx)("span",{children:"Help"})}),(0,$e.jsx)("div",{className:"content-divider-line"})]}),(0,$e.jsxs)("div",{className:"content-right-section",children:[(0,$e.jsxs)("div",{className:"content-right-header",children:[(0,$e.jsxs)("div",{className:"content-tabs",children:[(0,$e.jsx)("button",{type:"button",className:"content-tab ".concat("HELP"===e?"active":""),onClick:()=>t("HELP"),children:"HELP"}),(0,$e.jsx)("span",{className:"content-tab-separator"}),(0,$e.jsx)("button",{type:"button",className:"content-tab ".concat("FAQ"===e?"active":""),onClick:()=>t("FAQ"),children:"FAQ"})]}),(0,$e.jsx)("div",{className:"content-logo",children:n})]}),(0,$e.jsx)("div",{className:"content-body",children:"HELP"===e?(0,$e.jsx)("div",{className:"help-content-panel",children:(0,$e.jsx)(sO,{})}):(0,$e.jsx)("div",{className:"faq-content-panel",children:(0,$e.jsx)(iO,{})})})]})]})})};const cO=()=>(0,$e.jsx)("div",{className:"privacy-wrapper",children:(0,$e.jsxs)("div",{className:"privacy-container",children:[(0,$e.jsxs)("div",{className:"privacy-left-section",children:[(0,$e.jsxs)("h1",{className:"privacy-main-heading",children:[(0,$e.jsx)("span",{children:"Privacy"}),(0,$e.jsx)("span",{children:"Policy"})]}),(0,$e.jsx)("div",{className:"privacy-divider-line"})]}),(0,$e.jsxs)("div",{className:"privacy-right-section",children:[(0,$e.jsx)("div",{className:"privacy-logo",children:(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"92",height:"111",viewBox:"0 0 92 111",fill:"none",children:[(0,$e.jsx)("path",{d:"M65.4449 25.611L75.117 31.0505L50.6292 46.851V58.7662L91.9986 34.7804V27.3284L45.6862 0L0 27.9583V41.6158L45.9926 14.2874L54.946 19.3945L0 53.0676V66.5369
2L65.4449 25.611Z",fill:"#00151F"}),(0,$e.jsx)("path",{d:"M15.0243 80.8149L41.3708 63.7193L41.3708 51.8042L0.00140662 78.3801L0.00140597 85.8322L46.3138 110.57L92 82.612L92 68.9545L92 47.9188L82.8886 53.2288L82.8886 73.8212L46.0074 96.2829L15.0243 80.8149Z",fill:"#50A854"})]})}),(0,$e.jsx)("div",{className:"privacy-content-wrapper",children:(0,$e.jsxs)("div",{className:"privacy-content",children:[(0,$e.jsxs)("div",{className:"privacy-item",children:[(0,$e.jsx)("p",{className:"privacy-paragraph",children:"MedRPT LLC is committed to protecting the privacy of its users. Information gathered by MedRPT LLC is used to monitor our effectiveness in providing relevant and credible medical information, in answering your questions and in improving the site."}),(0,$e.jsxs)("p",{className:"privacy-paragraph",children:["The best way to contact us is by e-mail at"," ",(0,$e.jsx)("a",{className:"privacy-email",href:"mailto:[email protected]",children:"[email protected]"}),"."]})]}),(0,$e.jsxs)("div",{className:"privacy-item",children:[(0,$e.jsx)("h2",{className:"privacy-heading",children:"What We Collect"}),(0,$e.jsx)("p",{className:"privacy-paragraph",children:"When you visit MedRPT LLC, our server will recognize and collect, if possible, the domain name of your e-mail address (for example, anywhere.com) but our software will not, automatically, record your complete e-mail address. From the registration data, we will collect your e-mail address and payment information, which is managed and stored by Stripe. If you do not register, the only way we can know your complete e-mail address is if you provide it on a survey or feedback form."})]}),(0,$e.jsxs)("div",{className:"privacy-item",children:[(0,$e.jsx)("h2",{className:"privacy-heading",children:"What We Do With Your Information"}),(0,$e.jsx)("p",{className:"privacy-paragraph",children:"MedRPT LLC will aggregate all domain information so that we can calculate the number of visitors to MedRPT LLC each day. Any other information you have given us will never be sold, traded or rented to any third party without your prior approval. Moreover, no business partners of the Company or third parties will be allowed to have access to your data under any circumstances without your prior approval. In the unlikely event that the Company is ordered by a judicial or law enforcement body to provide such information, we will disclose the requested information. In that instance, unless prohibited by the requesting authorities, we will inform you of the official request."})]}),(0,$e.jsxs)("div",{className:"privacy-item",children:[(0,$e.jsx)("h2",{className:"privacy-heading",children:"How We Will Safeguard Your Information"}),(0,$e.jsx)("p",{className:"privacy-paragraph",children:"Member data are stored on a secure server, cannot be accessed via the website and will never be released without your permission. A restricted number of Company employees will have access to the data for internal data maintenance purposes."})]}),(0,$e.jsxs)("div",{className:"privacy-item",children:[(0,$e.jsx)("h2",{className:"privacy-heading",children:"How Can I Unsubscribe or Change My Information?"}),(0,$e.jsxs)("p",{className:"privacy-paragraph",children:["If you no longer wish to receive e-mail from MedRPT LLC, please visit the"," ",(0,$e.jsx)(Pe,{to:"/settings",className:"privacy-link",children:"Settings page"})," where you can update your registration information and email preferences. To unsubscribe from our emails, click the \u201cStop receiving emails\u201d button. Please note that selecting this option will stop all scheduled email updates related to any questions or concerns you have submitted. If you have more than one account you will need to do this for each."]})]}),(0,$e.jsxs)("div",{className:"privacy-item",children:[(0,$e.jsx)("h2",{className:"privacy-heading",children:'Do We Track "Cookies"?'}),(0,$e.jsx)("p",{className:"privacy-paragraph",children:'"Cookies" are information packets that your browser records and saves on your computer\'s hard drive. MedRPT LLC does not use cookies to track information.'})]}),(0,$e.jsxs)("div",{className:"privacy-item",children:[(0,$e.jsx)("h2",{className:"privacy-heading",children:"Your Agreement"}),(0,$e.jsxs)("p",{className:"privacy-paragraph",children:["By using our website, you consent to the collection and use of the information discussed above by MedRPT LLC. We welcome your questions and comments about privacy. Please send e-mail to"," ",(0,$e.jsx)("a",{className:"privacy-email",href:"mailto:[email protected]",children:"[email protected]"}),"."]})]}),(0,$e.jsx)("div",{className:"privacy-item",children:(0,$e.jsx)("p",{className:"privacy-date",children:"Updated on January 22, 2026"})})]})})]})]})});const uO=function(){return(0,$e.jsx)(cO,{})};const dO=function(){const{user:e,signOut:t}=rd((e=>[e.user,e.signOut])),n=te(),[r,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(!0),[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)(null),[p,h]=(0,a.useState)({text:"",type:""});(0,a.useEffect)((()=>
2{if(!e)return;let t=!1;return s(!0),(async e=>{try{const n=await Oc();var t;e()||null==(null===n||void 0===n?void 0:n.user)||o(Boolean(null===n||void 0===n||null===(t=n.user)||void 0===t?void 0:t.emailUnsubscribed))}catch{e()||h({text:"Could not load email preference.",type:"error"})}finally{e()||s(!1)}})((()=>t)),()=>{t=!0}}),[e]);const f=(0,$e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"92",height:"111",viewBox:"0 0 92 111",fill:"none",children:[(0,$e.jsx)("path",{d:"M65.4449 25.611L75.117 31.0505L50.6292 46.851V58.7662L91.9986 34.7804V27.3284L45.6862 0L0 27.9583V41.6158L45.9926 14.2874L54.946 19.3945L0 53.0676V66.5369L65.4449 25.611Z",fill:"#00151F"}),(0,$e.jsx)("path",{d:"M15.0243 80.8149L41.3708 63.7193L41.3708 51.8042L0.00140662 78.3801L0.00140597 85.8322L46.3138 110.57L92 82.612L92 68.9545L92 47.9188L82.8886 53.2288L82.8886 73.8212L46.0074 96.2829L15.0243 80.8149Z",fill:"#50A854"})]});return(0,$e.jsx)("div",{className:"settings-wrapper",children:(0,$e.jsxs)("div",{className:"settings-container",children:[(0,$e.jsxs)("div",{className:"settings-left-section",children:[(0,$e.jsx)("h1",{className:"settings-main-heading",children:"Settings"}),(0,$e.jsx)("div",{className:"settings-divider-line"})]}),(0,$e.jsxs)("div",{className:"settings-right-section",children:[(0,$e.jsx)("div",{className:"settings-logo",children:f}),(0,$e.jsxs)("div",{className:"settings-content-wrapper",children:[(0,$e.jsxs)("section",{className:"settings-section",children:[(0,$e.jsx)("h2",{className:"settings-section-heading",children:"Email preferences"}),!i&&!r&&(0,$e.jsx)("p",{className:"settings-section-description",children:"You can choose to stop receiving all emails from MedRPT, including notifications and updates."}),p.text&&(0,$e.jsx)("p",{className:"settings-message settings-message--".concat(p.type),children:p.text}),i?(0,$e.jsx)("p",{className:"settings-status",children:"Loading..."}):r?(0,$e.jsx)("button",{type:"button",className:"settings-button settings-button--secondary",onClick:()=>{d("receive"),c(!0)},children:"Receive emails"}):(0,$e.jsx)("button",{type:"button",className:"settings-button settings-button--secondary",onClick:()=>{d("stop"),c(!0)},children:"Stop receiving emails"})]}),(0,$e.jsxs)("section",{className:"settings-section settings-section--danger",children:[(0,$e.jsx)("h2",{className:"settings-section-heading",children:"Account deletion"}),(0,$e.jsx)("p",{className:"settings-section-description",children:"Permanently delete your account and all associated data. This action cannot be undone."}),(0,$e.jsx)("button",{type:"button",className:"settings-button settings-button--danger",onClick:()=>{d("delete"),c(!0)},children:"Delete account"})]}),l&&(0,$e.jsx)("div",{className:"settings-confirm-overlay",role:"dialog","aria-modal":"true","aria-labelledby":"settings-confirm-title",children:(0,$e.jsxs)("div",{className:"settings-confirm-card",children:[(0,$e.jsx)("h3",{id:"settings-confirm-title",className:"settings-confirm-title",children:"delete"===u?"Delete your account?":"stop"===u?"Stop receiving emails?":"Receive emails?"}),(0,$e.jsx)("p",{className:"settings-confirm-text",children:"delete"===u?"Your account and all associated data will be permanently deleted. This action cannot be undone.":"stop"===u?"You will no longer receive any emails from MedRPT. You can change this later from this page.":"You will start receiving emails from MedRPT again. You can change this later from this page."}),"stop"===u&&(0,$e.jsx)("p",{className:"settings-confirm-note",children:'N.B. If you click "Yes, stop emails", you will no longer receive any scheduled emailed updates for any question or concern you have submitted.'}),(0,$e.jsxs)("div",{className:"settings-confirm-actions",children:[(0,$e.jsx)("button",{type:"button",className:"settings-button settings-button--secondary",onClick:()=>{c(!1),d(null)},children:"Cancel"}),(0,$e.jsx)("button",{type:"button",className:"settings-button ".concat("delete"===u?"settings-button--danger-confirm":"settings-button--primary"),onClick:async()=>{try{if("delete"===u)return await(async()=>{try{const e=await Ec(),t=await fetch("".concat("https://api.medrpt.ai","/api/user/account"),{method:"DELETE",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){const e=await t.json(),n=e.message||e.error||"Failed to delete account";throw new Error(n)}}catch(e){throw console.error("Error deleting account",e),e}})(),t(),void n("/");"stop"===u?(await Wc(),o(!0),h({text:"You will no longer receive emails from us.",type:"success"})):(await Wc(),o(!1),h({text:"You will receive emails from us again.",type:"success"})),c(!1),d(null)}catch(e){h({text:"delete"===u?e.message||"Failed to delete account.":e.message||"Failed to update email preference.",type:"error"}),c(!1),d(null)}},children:"delete"===u?"Yes, delete my account":"stop"===u?"Yes, stop emails":"Yes, receive emails"})]})]})})]})]})]})})},pO=()=>{const[e]=Le(),t=te(),{user:n}=rd((e=>[e.user])),r=e.get("plan")||"monthly",[o,i]=(0,a.useState)("");return(0,a.useEffect)((()=>
2{if(!n)return void t("/login?redirect=".concat(encodeURIComponent("/checkout?plan=".concat(r))));(async()=>{try{if("free"===r)return void t("/");const{isActive:e,currentPlan:n}=await Tc();if(e)return n===r?void t("/"):(await _c(r),void t("/thankyou"));await kc(r)}catch(e){console.error("Checkout error:",e),i(e.message||"Something went wrong. Please try again.")}})()}),[n,r,t]),o?(0,$e.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",flexDirection:"column",gap:"16px"},children:[(0,$e.jsx)("p",{style:{color:"#d32f2f"},children:o}),(0,$e.jsx)("button",{onClick:()=>t("/"),style:{cursor:"pointer"},children:"Go to Home"})]}):(0,$e.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,$e.jsx)(Hd,{sx:{color:"#3b7b3f"}})})};const hO=function(){const{user:e}=rd((e=>[e.user])),[t,n]=(0,a.useState)(!0),[r,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(""),l=(0,$e.jsx)("div",{className:"auth-container",children:r?(0,$e.jsx)(mS,{switchToLogin:()=>n(!0),setShowOtpInput:o,showOtpInput:r,email:i,setEmail:s}):t?(0,$e.jsx)(oS,{switchToSignup:()=>n(!1),setShowOtpInput:o,showOtpInput:r,setEmail:s}):(0,$e.jsx)(mS,{switchToLogin:()=>n(!0),setShowOtpInput:o,showOtpInput:r,email:i,setEmail:s})}),c=(0,$e.jsxs)(fb,{children:[(0,$e.jsx)(hb,{}),(0,$e.jsxs)(ye,{children:[(0,$e.jsx)(Ae,{path:"/login",element:l}),(0,$e.jsx)(Ae,{path:"/disclaimer",element:(0,$e.jsx)(tb,{})}),(0,$e.jsx)(Ae,{path:"/about",element:(0,$e.jsx)(rb,{})}),(0,$e.jsx)(Ae,{path:"/help",element:(0,$e.jsx)(lO,{})}),(0,$e.jsx)(Ae,{path:"/privacy",element:(0,$e.jsx)(uO,{})}),(0,$e.jsx)(Ae,{path:"/",element:(0,$e.jsx)(vb,{children:(0,$e.jsx)(yd,{})})}),(0,$e.jsx)(Ae,{path:"/search/:id",element:(0,$e.jsx)(vb,{children:(0,$e.jsx)($y,{})})}),(0,$e.jsx)(Ae,{path:"/thankyou",element:(0,$e.jsxs)(vb,{children:[(0,$e.jsx)(gS,{})," "]})}),(0,$e.jsx)(Ae,{path:"/organization-dataset",element:(0,$e.jsx)(vb,{children:(0,$e.jsx)(zN,{})})}),(0,$e.jsx)(Ae,{path:"/screening",element:(0,$e.jsx)(vb,{children:(0,$e.jsx)(aO,{})})}),(0,$e.jsx)(Ae,{path:"/screening/:id",element:(0,$e.jsx)(vb,{children:(0,$e.jsx)(aO,{})})}),(0,$e.jsx)(Ae,{path:"/scheduled-runs",element:(0,$e.jsx)(vb,{children:(0,$e.jsx)(oP,{})})}),(0,$e.jsx)(Ae,{path:"/enterprise",element:(0,$e.jsx)(vb,{children:(0,$e.jsx)(aP,{})})}),(0,$e.jsx)(Ae,{path:"/enterprise/:enterpriseId",element:(0,$e.jsx)(vb,{children:(0,$e.jsx)(mP,{})})}),(0,$e.jsx)(Ae,{path:"/settings",element:(0,$e.jsx)(vb,{children:(0,$e.jsx)(dO,{})})}),(0,$e.jsx)(Ae,{path:"/invitation",element:(0,$e.jsx)(HN,{})}),(0,$e.jsx)(Ae,{path:"/checkout",element:(0,$e.jsx)(pO,{})})]})]});return(0,$e.jsx)(_e,{children:(0,$e.jsx)(Ab,{children:c})})},fO=e=>{e&&e instanceof Function&&n.e(453).then(n.bind(n,6453)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:a,getTTFB:i}=t;n(e),r(e),o(e),a(e),i(e)}))};function mO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var gO=function e(t,n){function r(e,r,o){if("undefined"!==typeof document){"number"===typeof(o=mO({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var i in o)o[i]&&(a+="; "+i,!0!==o[i]&&(a+="="+o[i].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+a}}return Object.create({set:r,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var a=n[o].split("="),i=a.slice(1).join("=");try{var s=decodeURIComponent(a[0]);if(r[s]=t.read(i,s),e===s)break}catch(DV){}}return e?r[e]:r}},remove:function(e,t){r(e,"",mO({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,mO({},this.attributes,t))},withConverter:function(t){return e(mO({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
2URIComponent)}},{path:"/"});class AO{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{path:t,domain:n,expires:r,sameSite:o,secure:a}=e;if(this.domain=n,this.path=t||"/",this.expires=Object.prototype.hasOwnProperty.call(e,"expires")?r:365,this.secure=!Object.prototype.hasOwnProperty.call(e,"secure")||a,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!o||!["strict","lax","none"].includes(o))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===o&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=o}}async setItem(e,t){gO.set(e,t,this.getData())}async getItem(e){const t=gO.get(e);return null!==t&&void 0!==t?t:null}async removeItem(e){gO.remove(e,this.getData())}async clear(){const e=gO.get(),t=Object.keys(e).map((e=>this.removeItem(e)));await Promise.all(t)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const vO={identityId:"identityId"},yO=new Il("DefaultIdentityIdStore");const bO=(e,t)=>nE(vO)("com.amplify.".concat(e),t),xO=uw(gw,[()=>e=>async function(t){return t.headers["cache-control"]="no-store",e(t)}]),wO={service:"cognito-identity",endpointResolver:e=>{let{region:t}=e;return{url:new rx("https://cognito-identity.".concat(t,".").concat(Ow(t)))}},retryDecider:yw(aw),computeDelay:Tw,userAgentValue:Jx(),cache:"no-store"};Vx((()=>{wO.userAgentValue=Jx()}));const EO=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.".concat(e)}),CO=(e,t,n)=>{let{url:r}=e;return{headers:t,url:r,body:n,method:"POST"}},SO=function(){let{AccessKeyId:e,SecretKey:t,SessionToken:n,Expiration:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{AccessKeyId:e,SecretKey:t,SessionToken:n,Expiration:r&&new Date(1e3*r)}},TO=$x(xO,((e,t)=>{const n=EO("GetCredentialsForIdentity"),r=JSON.stringify(e);return CO(t,n,r)}),(async e=>{if(e.statusCode>=300){throw await aw(e)}{const t=await iw(e);return{IdentityId:t.IdentityId,Credentials:SO(t.Credentials),$metadata:rw(e)}}}),wO),kO=$x(xO,((e,t)=>{const n=EO("GetId"),r=JSON.stringify(e);return CO(t,n,r)}),(async e=>{if(e.statusCode>=300){throw await aw(e)}return{IdentityId:(await iw(e)).IdentityId,$metadata:rw(e)}}),wO);function _O(e){const t=Tb(e).payload.iss,n={};if(!t)throw new kb({name:"InvalidIdTokenException",message:"Invalid Idtoken."});return n[t.replace(/(^\w+:|^)\/\//,"")]=e,n}async function NO(e){let{tokens:t,authConfig:n,identityIdStore:r}=e;r.setAuthConfig({Cognito:n});const o=await r.loadIdentityId();if(o)return o.id;const a=null!==t&&void 0!==t&&t.idToken?_O(t.idToken.toString()):{},i=await async function(e,t){const n=null===t||void 0===t?void 0:t.identityPoolId,r=Fw(n),o=(await kO({region:r},{IdentityPoolId:n,Logins:e})).IdentityId;if(!o)throw new kb({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return o}(a,n);return r.storeIdentityId({id:i,type:t?"primary":"guest"}),i}const IO=new Il("CognitoCredentialsProvider"),PO=3e6;const RO=new class{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){IO.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){IO.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){const t=e.authenticated,{tokens:n}=e,{authConfig:r}=e;try{Sb(null===r||void 0===r?void 0:r.Cognito)}catch{return}if(!t&&!r.Cognito.allowGuestAccess)return;const{forceRefresh:o}=e,a=this.hasTokenChanged(n),i=await NO({tokens:n,authConfig:r.Cognito,identityIdStore:this._identityIdStore});return(o||a)&&this.clearCredentials(),t?(function(e){if(!e||!e.idToken)throw new kb({name:_b,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}(n),this.credsForOIDCTokens(r.Cognito,n,i)):this.getGuestCredentials(i,r.Cognito)}async getGuestCredentials(e,t){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!1===this._credentialsAndIdentityId.isAuthenticatedCreds)return IO.info("returning stored credentials as they neither past TTL n
2or expired."),this._credentialsAndIdentityId;this.clearCredentials();const n=Fw(t.identityPoolId),r=await TO({region:n},{IdentityId:e});if(r.Credentials&&r.Credentials.AccessKeyId&&r.Credentials.SecretKey){this._nextCredentialsRefresh=(new Date).getTime()+PO;const t={credentials:{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration},identityId:e};return r.IdentityId&&(t.identityId=r.IdentityId,this._identityIdStore.storeIdentityId({id:r.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...t,isAuthenticatedCreds:!1},t}throw new kb({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,t,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!0===this._credentialsAndIdentityId.isAuthenticatedCreds)return IO.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=t.idToken?_O(t.idToken.toString()):{},o=Fw(e.identityPoolId),a=await TO({region:o},{IdentityId:n,Logins:r});if(a.Credentials&&a.Credentials.AccessKeyId&&a.Credentials.SecretKey){var i;this._nextCredentialsRefresh=(new Date).getTime()+PO;const e={credentials:{accessKeyId:a.Credentials.AccessKeyId,secretAccessKey:a.Credentials.SecretKey,sessionToken:a.Credentials.SessionToken,expiration:a.Credentials.Expiration},identityId:n};return a.IdentityId&&(e.identityId=a.IdentityId,this._identityIdStore.storeIdentityId({id:a.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...e,isAuthenticatedCreds:!0,associatedIdToken:null===(i=t.idToken)||void 0===i?void 0:i.toString()},e}throw new kb({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return void 0===this._nextCredentialsRefresh||this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(e){var t,n;return!!e&&!(null===(t=this._credentialsAndIdentityId)||void 0===t||!t.associatedIdToken)&&(null===(n=e.idToken)||void 0===n?void 0:n.toString())!==this._credentialsAndIdentityId.associatedIdToken}}(new class{setAuthConfig(e){Sb(e.Cognito),this.authConfig=e,this._authKeys=bO("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=e}async loadIdentityId(){var e;Sb(null===(e=this.authConfig)||void 0===e?void 0:e.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const e=await this.keyValueStorage.getItem(this._authKeys.identityId);return e?(this._hasGuestIdentityId=!0,{id:e,type:"guest"}):null}}catch(t){return yO.log("Error getting stored IdentityId.",t),null}}async storeIdentityId(e){var t;Sb(null===(t=this.authConfig)||void 0===t?void 0:t.Cognito),"guest"===e.type?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=e.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}(Gw)),DO={configure(e,t){const n=Jl(e);if(n.Auth){if(null===t||void 0===t||!t.Auth)return dc.libraryOptions.Auth?t?(void 0!==t.ssr&&hE.setKeyValueStorage(t.ssr?new AO({sameSite:"lax"}):Gw),void dc.configure(n,{Auth:dc.libraryOptions.Auth,...t})):void dc.configure(n):(hE.setAuthConfig(n.Auth),hE.setKeyValueStorage(null!==t&&void 0!==t&&t.ssr?new AO({sameSite:"lax"}):Gw),void dc.configure(n,{...t,Auth:{tokenProvider:hE,credentialsProvider:RO}}));dc.configure(n,t)}else dc.configure(n,t)},getConfig:()=>dc.getConfig()},LO=e=>{let{route:t}=e;return[t]};const OO={category:Vb.AI,apis:[Gb.CreateConversation,Gb.DeleteConversation,Gb.ListConversations,Gb.UpdateConversation,Gb.OnMessage,Gb.SendMessage,Gb.Generation]},MO={apis:[Qb.DeleteUser,Qb.UpdatePassword],category:Vb.Auth},jO={apis:[Qb.SignUp,Qb.ConfirmSignUp,Qb.ResendSignUpCode,Qb.SignIn,Qb.ConfirmSignIn,Qb.FetchUserAttributes,Qb.SignOut,Qb.ResetPassword,Qb.ConfirmResetPassword,Qb.SignInWithRedirect],category:Vb.Auth},FO={apis:[nx.UploadData],category:Vb.Storage},BO={apis:[Jb.NotifyMessageInteraction],category:Vb.InAppMessaging},UO={category:Vb.Geo,apis:[Kb.SearchByText,Kb.SearchForSuggestions,Kb.SearchByPlaceId]},zO={category:Vb.Geo,apis:[]},HO={apis:[nx.UploadData],category:Vb.Storage},WO={apis:[nx.UploadData,nx.Copy,nx.GetUrl,nx.List,nx.Remove,nx.GetDataAccess,nx.ListCallerAccessGrants],category:Vb.Storage},VO=e=>{let{componentName:t,packageName:n,version:r}=e;const o=["ui-".concat(n),r];switch(t){case"AIConversation":Yx({...OO,additionalDetails:[[t],o]});break;case"Authenticator":Yx({...jO,additionalDetails:[[t],o]});break;case"ChangePassword":case"DeleteUser":Yx({...MO,additionalDetails:[["AccountSettings"],o]});break;case"FileUploader":Yx({...FO,additionalDetails:[[t],o]});break;case"InAppMessaging":Yx({...BO,additionalDetails:[[t],o]});break;case"LocationSearch":Yx({...UO,additionalDetails:[[t],o]});break;case"MapView":Yx({...zO,additionalDetails:[[t],o]});break;case"StorageManager":Yx({...HO,additionalDetails:[[t],o]});break;case"StorageBrowser":Yx({...WO,additionalDetails:[[t],o]})}return Su};var GO,qO,YO=function(){return YO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},YO.apply(this,arguments)};function QO(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function XO(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
2if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function KO(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function JO(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(GO||(GO={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(qO||(qO={}));var ZO,$O={},eM="xstate.guard",tM=GO.Start,nM=GO.Stop,rM=GO.Raise,oM=GO.Send,aM=GO.Cancel,iM=GO.NullEvent,sM=GO.Assign,lM=(GO.After,GO.DoneState,GO.Log),cM=GO.Init,uM=GO.Invoke,dM=(GO.ErrorExecution,GO.ErrorPlatform),pM=GO.ErrorCustom,hM=GO.Update,fM=GO.Choose,mM=GO.Pure,gM=!0;function AM(e,t,n){void 0===n&&(n=".");var r=bM(e,n),o=bM(t,n);return MM(o)?!!MM(r)&&o===r:MM(r)?r in o:Object.keys(r).every((function(e){return e in o&&AM(r[e],o[e])}))}function vM(e){try{return MM(e)||"number"===typeof e?"".concat(e):e.type}catch(DV){throw new Error("Events must be strings or objects with a string event.type property.")}}function yM(e,t){try{return LM(e)?e:e.toString().split(t)}catch(DV){throw new Error("'".concat(e,"' is not a valid state path."))}}function bM(e,t){return"object"===typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:LM(e)?xM(e):"string"!==typeof e?e:xM(yM(e,t));var n}function xM(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function wM(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var a=r[o];n[a]=t(e[a],a,e,o)}return n}function EM(e,t,n){var r,o,a={};try{for(var i=XO(Object.keys(e)),s=i.next();!s.done;s=i.next()){var l=s.value,c=e[l];n(c)&&(a[l]=t(c,l,e))}}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}var CM=function(e){return function(t){var n,r,o=t;try{for(var a=XO(e),i=a.next();!i.done;i=a.next()){o=o[i.value]}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}};function SM(e){return e?MM(e)?[[e]]:TM(Object.keys(e).map((function(t){var n=e[t];return"string"===typeof n||n&&Object.keys(n).length?SM(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function TM(e){var t;return(t=[]).concat.apply(t,JO([],KO(e),!1))}function kM(e){return LM(e)?e:[e]}function _M(e){return void 0===e?[]:kM(e)}function NM(e,t,n){var r,o;if(OM(e))return e(t,n.data);var a={};try{for(var i=XO(Object.keys(e)),s=i.next();!s.done;s=i.next()){var l=s.value,c=e[l];OM(c)?a[l]=c(t,n.data):a[l]=c}}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function IM(e){return e instanceof Promise||!(null===e||!OM(e)&&"object"!==typeof e||!OM(e.then))}function PM(e,t){return wM(e.states,(function(e,n){if(e){var r=(MM(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:PM(e,r)}}}))}function RM(e,t,n,r){gM||DM(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,a,i=n.assignment,s={state:r,action:n,_event:t},l={};if(OM(i))l=i(e,t.data,s);else try{for(var c=XO(Object.keys(i)),u=c.next();!u.done;u=c.next()){var d=u.value,p=i[d];l[d]=OM(p)?p(e,t.data,s):p}}catch(h){o={error:h}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}return Object.assign({},e,l)}),e):e;return o}var DM=function(){};function LM(e){return Array.isArray(e)}function OM(e){return"function"===typeof e}function MM(e){return"string"===typeof e}function jM(e,t){if(e)return MM(e)?{type:eM,name:e,predicate:t?t[e]:void 0}:OM(e)?{type:eM,name:e.name,predicate:e}:e}gM||(DM=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var FM=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}();(ZO={})[FM]=function(){return this},ZO[Symbol.observable]=function(){return this};function BM(e){return!!e&&"__xstatenode"in e}var UM=function(){var e=0;return function(){return(++e).toString(16)}}();function zM(e,t){return MM(e)||"number"===typeof e?YO({type:e},t):e}function HM(e,t){if(!MM(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=zM(e);return YO({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function WM(e,t){return kM(t).map((function(t){return"undefined"===typeof t||"string"===typeof t||BM(t)?{target:t,event:e}:YO(YO({},t),{event:e})}))}
2function VM(e,t,n,r,o){var a=e.options.guards,i={state:o,cond:t,_event:r};if(t.type===eM)return((null===a||void 0===a?void 0:a[t.name])||t.predicate)(n,r.data,i);var s=null===a||void 0===a?void 0:a[t.type];if(!s)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(n,r.data,i)}function GM(e){return"string"===typeof e?{type:e}:e}function qM(e,t,n){var r=function(){},o="object"===typeof e,a=o?e:null;return{next:((o?e.next:e)||r).bind(a),error:((o?e.error:t)||r).bind(a),complete:((o?e.complete:n)||r).bind(a)}}function YM(e,t){return"".concat(e,":invocation[").concat(t,"]")}function QM(e){return(e.type===rM||e.type===oM&&e.to===qO.Internal)&&"number"!==typeof e.delay}var XM=function(e){return"atomic"===e.type||"final"===e.type};function KM(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function JM(e){return KM(e).filter((function(e){return"history"!==e.type}))}function ZM(e){var t=[e];return XM(e)?t:t.concat(TM(JM(e).map(ZM)))}function $M(e,t){var n,r,o,a,i,s,l,c,u=tj(new Set(e)),d=new Set(t);try{for(var p=XO(d),h=p.next();!h.done;h=p.next())for(var f=(E=h.value).parent;f&&!d.has(f);)d.add(f),f=f.parent}catch(C){n={error:C}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var m=tj(d);try{for(var g=XO(d),A=g.next();!A.done;A=g.next()){if("compound"!==(E=A.value).type||m.get(E)&&m.get(E).length){if("parallel"===E.type)try{for(var v=(i=void 0,XO(JM(E))),y=v.next();!y.done;y=v.next()){var b=y.value;d.has(b)||(d.add(b),u.get(b)?u.get(b).forEach((function(e){return d.add(e)})):b.initialStateNodes.forEach((function(e){return d.add(e)})))}}catch(S){i={error:S}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}}else u.get(E)?u.get(E).forEach((function(e){return d.add(e)})):E.initialStateNodes.forEach((function(e){return d.add(e)}))}}catch(T){o={error:T}}finally{try{A&&!A.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}try{for(var x=XO(d),w=x.next();!w.done;w=x.next()){var E;for(f=(E=w.value).parent;f&&!d.has(f);)d.add(f),f=f.parent}}catch(k){l={error:k}}finally{try{w&&!w.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}return d}function ej(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(XM(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=ej(e,t)})),o}function tj(e){var t,n,r=new Map;try{for(var o=XO(e),a=o.next();!a.done;a=o.next()){var i=a.value;r.has(i)||r.set(i,[]),i.parent&&(r.has(i.parent)||r.set(i.parent,[]),r.get(i.parent).push(i))}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function nj(e,t){return ej(e,tj($M([e],t)))}function rj(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function oj(e,t){return"compound"===t.type?JM(t).some((function(t){return"final"===t.type&&rj(e,t)})):"parallel"===t.type&&JM(t).every((function(t){return oj(e,t)}))}function aj(e){return new Set(TM(e.map((function(e){return e.tags}))))}var ij=HM({type:cM});function sj(e,t){return t&&t[e]||void 0}function lj(e,t){var n;if(MM(e)||"number"===typeof e)n=OM(r=sj(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(OM(e))n={type:e.name||e.toString(),exec:e};else{var r;if(OM(r=sj(e.type,t)))n=YO(YO({},e),{exec:r});else if(r){var o=r.type||e.type;n=YO(YO(YO({},r),e),{type:o})}else n=e}return n}var cj=function(e,t){return e?(LM(e)?e:[e]).map((function(e){return lj(e,t)})):[]};function uj(e){var t=lj(e);return YO(YO({id:MM(e)?e:t.id},t),{type:t.type})}function dj(e,t){return{type:rM,event:"function"===typeof e?e:zM(e),delay:t?t.delay:void 0,id:null===t||void 0===t?void 0:t.id}}function pj(e,t){return{to:t?t.to:void 0,type:oM,event:OM(e)?e:zM(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:OM(e)?e.name:vM(e)}}function hj(e,t){return pj(e,YO(YO({},t),{to:qO.Parent}))}function fj(){return hj(hM)}var mj=function(e,t,n){return YO(YO({},e),{value:MM(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},gj=function(e){return{type:aM,sendId:e}};function Aj(e){var t=uj(e);return{type:GO.Start,activity:t,exec:void 0}}function vj(e){var t=OM(e)?e:uj(e);return{type:GO.Stop,activity:t,exec:void 0}}var yj=function(e){return{type:sM,assignment:e}};function bj(e,t){var n=t?"#".concat(t):"";return"".concat(GO.After,"(").concat(e,")").concat(n)}function xj(e,t){var n="".concat(GO.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function wj(e,t){var n="".concat(GO.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Ej(e,t){var n="".concat(GO.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Cj(e,t){if(!gM&&(!e||"function"===typeof e)){var n=e;e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="function"===typeof n?n.apply(void 0,JO([],KO(e),!1)):n;if(!r)throw new Error("Attempted to forward event to undefined actor. This risks an infinite loop in the sender.");return r}}return pj((function(e,t){return t}),YO(YO({},t),{to:e}))}function Sj(e){return{type:GO.Choose,conds:e}}var Tj=function(e){var t,n,r=[];try{for(var o=XO(e),a=o.next();!a.done;a=o.next())for(var i=a.value,s=0;s<i.actions.length;)i.actions[s].type!==sM?s++:(r.push(i.actions[s]),i.actions.splice(s,1))}
2catch(l){t={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r};function kj(e,t,n,r,o,a,i){void 0===i&&(i=!1);var s=i?[]:Tj(o),l=s.length?RM(n,r,s,t):n,c=i?[n]:void 0,u=[];function d(o,s){var d;switch(s.type){case rM:var p=function(e,t,n,r){var o,a={_event:n},i=HM(OM(e.event)?e.event(t,n.data,a):e.event);if(MM(e.delay)){var s=r&&r[e.delay];o=OM(s)?s(t,n.data,a):s}else o=OM(e.delay)?e.delay(t,n.data,a):e.delay;return YO(YO({},e),{type:rM,_event:i,delay:o})}(s,l,r,e.options.delays);return a&&"number"===typeof p.delay&&a(p,l,r),p;case oM:var h=function(e,t,n,r){var o,a={_event:n},i=HM(OM(e.event)?e.event(t,n.data,a):e.event);if(MM(e.delay)){var s=r&&r[e.delay];o=OM(s)?s(t,n.data,a):s}else o=OM(e.delay)?e.delay(t,n.data,a):e.delay;var l=OM(e.to)?e.to(t,n.data,a):e.to;return YO(YO({},e),{to:l,_event:i,event:i.data,delay:o})}(s,l,r,e.options.delays);if(!gM){var f=s.delay;DM(!MM(f)||"number"===typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return a&&h.to!==qO.Internal&&("entry"===o?u.push(h):a(h,l,r)),h;case lM:var m=mj(s,l,r);return null===a||void 0===a||a(m,l,r),m;case fM:var g=null===(d=s.conds.find((function(n){var o=jM(n.cond,e.options.guards);return!o||VM(e,o,l,r,a?void 0:t)})))||void 0===d?void 0:d.actions;if(!g)return[];var A=KO(kj(e,t,l,r,[{type:o,actions:cj(_M(g),e.options.actions)}],a,i),2),v=A[0],y=A[1];return l=y,null===c||void 0===c||c.push(l),v;case mM:if(!(g=s.get(l,r.data)))return[];var b=KO(kj(e,t,l,r,[{type:o,actions:cj(_M(g),e.options.actions)}],a,i),2),x=b[0],w=b[1];return l=w,null===c||void 0===c||c.push(l),x;case nM:m=function(e,t,n){var r=OM(e.activity)?e.activity(t,n.data):e.activity,o="string"===typeof r?{id:r}:r;return{type:GO.Stop,activity:o}}(s,l,r);return null===a||void 0===a||a(m,n,r),m;case sM:l=RM(l,r,[s],a?void 0:t),null===c||void 0===c||c.push(l);break;default:var E=lj(s,e.options.actions),C=E.exec;if(a)a(E,l,r);else if(C&&c){var S=c.length-1,T=YO(YO({},E),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];C.apply(void 0,JO([c[S]],KO(t),!1))}});E=T}return E}}var p=TM(o.map((function(e){var t,n,o=[];try{for(var i=XO(e.actions),s=i.next();!s.done;s=i.next()){var c=s.value,p=d(e.type,c);p&&(o=o.concat(p))}}catch(h){t={error:h}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return u.forEach((function(e){a(e,l,r)})),u.length=0,o})));return[p,l]}function _j(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(MM(e)||MM(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return _j(e[n],t[n])}))}function Nj(e){return"object"===typeof e&&null!==e&&("value"in e&&"_event"in e)}var Ij=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=$O,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||$O,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return JO([],KO(new Set(TM(JO([],KO(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:ij,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=ij;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),MM(e))return[e];var r=Object.keys(e);return r.concat.apply(r,JO([],KO(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=QO(e,["configuration","transitions","tags","machine"]);return YO(YO({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return AM(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;gM&&DM(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null===n||void 0===n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),Pj={deferEvents:!1},Rj=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=YO(YO({},Pj),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(DV){throw this.clear(),DV}finally{this.processingEvent=!1}},e}(),Dj=[],Lj=function(e,t){Dj.push(e);var n=t(e);return Dj.pop(),n},Oj=function(e){return e(Dj[Dj.length-1])};function Mj(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[FM]=function(){return this},t}function jj(e,t,n){var r=Mj(t);
2if(r.deferred=!0,BM(e)){var o=r.state=Lj(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var Fj=new Map,Bj=0,Uj=function(){return"x:".concat(Bj++)},zj=function(e,t){return Fj.set(e,t),e},Hj=function(e){return Fj.get(e)},Wj=function(e){Fj.delete(e)};function Vj(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:void(gM||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function Gj(e){if(Vj()){var t=function(){var e=Vj();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function qj(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],a=!1,i=function(e){var t;return YO(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[FM]=function(){return this},t),e)}({id:t.id,send:function(t){o.push(t),function(){if(!a){for(a=!0;o.length>0;){var t=o.shift();n=e.transition(n,t,s),r.forEach((function(e){return e.next(n)}))}a=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var a=qM(e,t,o);return r.add(a),a.next(n),{unsubscribe:function(){r.delete(a)}}}}),s={parent:t.parent,self:i,id:t.id||"anonymous",observers:r};return n=e.start?e.start(s):n,i}var Yj,Qj={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Yj||(Yj={}));var Xj=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Yj.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(LM(e))return r.batch(e),r.state;var n=HM(zM(e,t));if(r.status===Yj.Stopped)return gM||DM(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==Yj.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var o,a=r.parent&&(t===qO.Parent||r.parent.id===t),i=a?r.parent:MM(t)?t===qO.Internal?r:r.children.get(t)||Hj(t):(o=t)&&"function"===typeof o.send?t:void 0;if(i)if("machine"in i){if(r.status!==Yj.Stopped||r.parent!==i||r.state.done){var s=YO(YO({},e),{name:e.name===pM?"".concat(Ej(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([i,s]):i.send(s)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([i,e.data]):i.send(e.data);else{if(!a)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));gM||DM(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,o){void 0===o&&(o=r.machine.options.actions);var a=e.exec||sj(e.type,o),i=OM(a)?a:a?a.exec:e.exec;if(i)try{return i(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(x){throw r.parent&&r.parent.send({type:"xstate.error",data:x}),x}switch(e.type){case rM:var s=e;r.defer(s);break;case oM:var l=e;if("number"===typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===ij):r.send(l._event);break;case aM:r.cancel(e.sendId);break;case tM:if(r.status!==Yj.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===GO.Invoke){var u=GM(c.src),d=r.machine.options.services?r.machine.options.services[u.type]:void 0,p=c.id,h=c.data;gM||DM(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!d)return void(gM||DM(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=h?NM(h,t,n):void 0;if("string"===typeof d)return;var g=OM(d)?d(t,n.data,{data:m,src:u,meta:c.meta}):d;if(!g)return;var A=void 0;
2BM(g)&&(g=m?g.withContext(m):g,A={autoForward:f}),r.spawn(g,p,A)}else r.spawnActivity(c);break;case nM:r.stopChild(e.activity.id);break;case lM:var v=e,y=v.label,b=v.value;y?r.logger(y,b):r.logger(b);break;default:gM||DM(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=YO(YO({},e.defaultOptions),n),a=o.clock,i=o.logger,s=o.parent,l=o.id,c=void 0!==l?l:t.id;this.id=c,this.logger=i,this.clock=a,this.parent=s,this.options=o,this.scheduler=new Rj({deferEvents:this.options.deferEvents}),this.sessionId=Uj()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Lj(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return gM||DM(this.status!==Yj.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var o=XO(e.actions),a=o.next();!a.done;a=o.next()){var i=a.value;this.exec(i,e,t)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,a,i,s,l,c,u=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==ij||!this.options.execute)for(var d=void 0;d=this._outgoingQueue.shift();)d[0].send(d[1]);else this.execute(this.state);if(this.children.forEach((function(e){u.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=XO(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(w){n={error:w}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=XO(this.listeners),m=f.next();!m.done;m=f.next()){(0,m.value)(e,e.event)}}catch(E){o={error:E}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}try{for(var g=XO(this.contextListeners),A=g.next();!A.done;A=g.next()){(0,A.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(C){i={error:C}}finally{try{A&&!A.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}if(this.state.done){var v=e.configuration.find((function(e){return"final"===e.type&&e.parent===u.machine})),y=v&&v.doneData?NM(v.doneData,e.context,t):void 0;this._doneEvent=wj(this.id,y);try{for(var b=XO(this.doneListeners),x=b.next();!x.done;x=b.next()){(0,x.value)(this._doneEvent)}}catch(S){l={error:S}}finally{try{x&&!x.done&&(c=b.return)&&c.call(b)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),Wj(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===Yj.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=qM(e,t,n);this.listeners.add(o.next),this.status!==Yj.NotStarted&&o.next(this.state);var a=function(){r.doneListeners.delete(a),r.stopListeners.delete(a),o.complete()};return this.status===Yj.Stopped?o.complete():(this.onDone(a),this.onStop(a)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(a),r.stopListeners.delete(a)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===Yj.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===Yj.Running)return this;this.machine._init(),zj(this.sessionId,this),this.initialized=!0,this.status=Yj.Running;var n=void 0===e?this.initialState:Lj(this,(function(){return Nj(e)?t.machine.resolveState(e):t.machine.resolveState(Ij.from(e,t.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,ij)})),this}
vendor: 5,317 bytes, line 2
2,e.prototype._stopChildren=function(){this.children.forEach((function(e){OM(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,a,i,s,l,c;try{for(var u=XO(this.listeners),d=u.next();!d.done;d=u.next()){var p=d.value;this.listeners.delete(p)}}catch(w){e={error:w}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}try{for(var h=XO(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(E){n={error:E}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var m=XO(this.contextListeners),g=m.next();!g.done;g=m.next()){p=g.value;this.contextListeners.delete(p)}}catch(C){o={error:C}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}try{for(var A=XO(this.doneListeners),v=A.next();!v.done;v=A.next()){p=v.value;this.doneListeners.delete(p)}}catch(S){i={error:S}}finally{try{v&&!v.done&&(s=A.return)&&s.call(A)}finally{if(i)throw i.error}}if(!this.initialized)return this;this.initialized=!1,this.status=Yj.Stopped,this._initialState=void 0;try{for(var y=XO(Object.keys(this.delayedEventsMap)),b=y.next();!b.done;b=y.next()){var x=b.value;this.clock.clearTimeout(this.delayedEventsMap[x])}}catch(T){l={error:T}}finally{try{b&&!b.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new Rj({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=HM({type:"xstate.stop"}),r=Lj(e,(function(){var t=TM(JO([],KO(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return cj(t.onExit,e.machine.options.actions)}))),r=KO(kj(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),o=r[0],a=r[1],i=new Ij({value:e.state.value,context:a,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!QM(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return i.changed=!0,i}));e.update(r,n),e._stopChildren(),Wj(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===Yj.NotStarted&&this.options.deferEvents)gM||DM(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==Yj.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,o,a=t.state,i=!1,s=[],l=function(e){var r=HM(e);t.forward(r),a=Lj(t,(function(){return t.machine.transition(a,r,void 0,n||void 0)})),s.push.apply(s,JO([],KO(t.machine.config.predictableActionArguments?a.actions:a.actions.map((function(e){return function(e,t){var n=e.exec;return YO(YO({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,a)}))),!1)),i=i||!!a.changed};try{for(var c=XO(e),u=c.next();!u.done;u=c.next()){l(u.value)}}catch(d){r={error:d}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}a.changed=i,a.actions=s,t.update(a,HM(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=HM(e);if(0===r.name.indexOf(dM)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(dM)})))throw r.data.data;return Lj(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=XO(this.forwardTo),o=r.next();!o.done;o=r.next()){var a=o.value,i=this.children.get(a);if(!i)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));i.send(e)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),OM(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==Yj.Running)return jj(e,t);
2if(IM(e))return this.spawnPromise(Promise.resolve(e),t);if(OM(e))return this.spawnCallback(e,t);if(function(e){try{return"function"===typeof e.send}catch(DV){return!1}}(o=e)&&"id"in o)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&OM(e.subscribe)}catch(DV){return!1}}(e))return this.spawnObservable(e,t);if(BM(e))return this.spawnMachine(e,YO(YO({},n),{id:t}));if(null!==(r=e)&&"object"===typeof r&&"transition"in r&&"function"===typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,o},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,YO(YO({},this.options),{parent:this,id:n.id||t.id})),a=YO(YO({},Qj),n);a.sync&&o.onTransition((function(e){r.send(hM,{state:e,id:o.id})}));var i=o;return this.children.set(o.id,i),a.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(HM(e,{origin:o.id}))})).start(),i},e.prototype.spawnBehavior=function(e,t){var n=qj(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,a=!1;e.then((function(e){a||(r=e,o.removeChild(t),o.send(HM(wj(t,e),{origin:t})))}),(function(e){if(!a){o.removeChild(t);var n=Ej(t,e);try{o.send(HM(n,{origin:t}))}catch(r){!function(e,t,n){if(!gM){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var o=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(o))}}}(e,r,t),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var i=(n={id:t,send:function(){},subscribe:function(t,n,r){var o=qM(t,n,r),a=!1;return e.then((function(e){a||(o.next(e),a||o.complete())}),(function(e){a||o.error(e)})),{unsubscribe:function(){return a=!0}}},stop:function(){a=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}},n[FM]=function(){return this},n);return this.children.set(t,i),i},e.prototype.spawnCallback=function(e,t){var n,r,o,a=this,i=!1,s=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),i||a.send(HM(e,{origin:t}))}),(function(e){s.add(e)}))}catch(u){this.send(Ej(t,u))}if(IM(o))return this.spawnPromise(o,t);var c=(n={id:t,send:function(e){return s.forEach((function(t){return t(e)}))},subscribe:function(e){var t=qM(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){i=!0,OM(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}},n[FM]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,o=this,a=e.subscribe((function(e){r=e,o.send(HM(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(HM(Ej(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(HM(wj(t),{origin:t}))})),i=(n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return a.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}},n[FM]=function(){return this},n);return this.children.set(t,i),i},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else gM||DM(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[FM]=function(){return this},n))},e.prototype.attachDev=function(){var e=Vj();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"===typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(YO(YO({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:YO({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}Gj(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[FM]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Yj.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=Zj,e}(),Kj=function(e){return MM(e)?YO(YO({},Qj),{name:e}):YO(YO(YO({},Qj),{name:UM()}),e)};function Jj(e,t){var n=Kj(t);return Oj((function(t){if(!gM){var r=BM(e)||OM(e);
2DM(!!t||r,'Attempted to spawn an Actor (ID: "'.concat(BM(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return t?t.spawn(e,n.name,n):jj(e,n.name)}))}function Zj(e,t){return new Xj(e,t)}function $j(e){var t=a.useRef();return t.current||(t.current={v:e()}),t.current.v}var eF=function(){return eF=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},eF.apply(this,arguments)},tF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},nF=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function rF(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=nF(t,2),o=r[0],i=void 0===o?{}:o,s=r[1],l=function(e,t){var n=$j((function(){return"function"===typeof e?e():e})),r=t.context,o=t.guards,a=t.actions,i=t.activities,s=t.services,l=t.delays,c=(t.state,tF(t,["context","guards","actions","activities","services","delays","state"])),u=$j((function(){var e={context:r,guards:o,actions:a,activities:i,services:s,delays:l};return Zj(n.withConfig(e,(function(){return eF(eF({},n.context),r)})),c)}));return iu((function(){Object.assign(u.machine.options.actions,a),Object.assign(u.machine.options.guards,o),Object.assign(u.machine.options.activities,i),Object.assign(u.machine.options.services,s),Object.assign(u.machine.options.delays,l)}),[a,o,i,s,l]),u}(e,i);return(0,a.useEffect)((function(){if(s){var e=l.subscribe(qM(s));return function(){e.unsubscribe()}}}),[s]),(0,a.useEffect)((function(){var e=i.state;return l.start(e?Ij.create(e):void 0),function(){l.stop(),l.status=Yj.NotStarted}}),[]),l}const oF=(e,t,n)=>{let{payload:r}=e;const{data:o,event:a}=r,{send:i}=t,{onSignIn:s,onSignOut:l}=null!==n&&void 0!==n?n:{};switch(a){case"signedIn":wu(s)&&s(r);break;case"signInWithRedirect":i("SIGN_IN_WITH_REDIRECT");break;case"signedOut":wu(l)&&l(),i("SIGN_OUT");break;case"tokenRefresh_failure":var c;if((null===o||void 0===o||null===(c=o.error)||void 0===c?void 0:c.name)===sw.NetworkError)return;i("SIGN_OUT")}},aF=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oF;return Ol.listen("auth",(n=>t(n,e)),"authenticator-hub-handler")};function iF(e){if("string"===typeof e){var t={type:e,toString:function(){return e}};return t}return e}function sF(e){return YO(YO({type:uM},e),{toJSON:function(){e.onDone,e.onError;var t=QO(e,["onDone","onError"]);return YO(YO({},t),{type:uM,src:iF(e.src)})}})}var lF="",cF="*",uF={},dF=function(e){return"#"===e[0]},pF=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var a,i=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null===o||void 0===o?void 0:o.parent,this.key=this.config.key||(null===o||void 0===o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||JO([this.machine.key],KO(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(a=this.config.schema)&&void 0!==a?a:{},this.description=this.config.description,gM||DM(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.t
vendor: 17,963 bytes, line 2
2ype,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?wM(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:i,key:n});return Object.assign(i.idMap,YO(((r={})[o.id]=o,r),o.idMap)),o})):uF;var s=0;!function e(t){var n,r;t.order=s++;try{for(var o=XO(KM(t)),a=o.next();!a.done;a=o.next()){e(a.value)}}catch(i){n={error:i}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===lF})):lF in this.config.on),this.strict=!!this.config.strict,this.onEntry=_M(this.config.entry||this.config.onEntry).map((function(e){return lj(e)})),this.onExit=_M(this.config.exit||this.config.onExit).map((function(e){return lj(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=_M(this.config.invoke).map((function(e,t){var n,r;if(BM(e)){var o=YM(i.id,t);return i.machine.options.services=YO(((n={})[o]=e,n),i.machine.options.services),sF({src:o,id:o})}if(MM(e.src)){o=e.id||YM(i.id,t);return sF(YO(YO({},e),{id:o,src:e.src}))}if(BM(e.src)||OM(e.src)){o=e.id||YM(i.id,t);return i.machine.options.services=YO(((r={})[o]=e.src,r),i.machine.options.services),sF(YO(YO({id:o},e),{src:o}))}var a=e.src;return sF(YO(YO({id:YM(i.id,t)},e),{src:a}))})),this.activities=_M(this.config.activities).concat(this.invoke).map((function(e){return uj(e)})),this.transition=this.transition.bind(this),this.tags=_M(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||ZM(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,a=r.activities,i=r.guards,s=r.services,l=r.delays;return new e(this.config,{actions:YO(YO({},o),t.actions),activities:YO(YO({},a),t.activities),guards:YO(YO({},i),t.guards),services:YO(YO({},s),t.services),delays:YO(YO({},l),t.delays)},null!==n&&void 0!==n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return OM(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:wM(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===lF,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===cF}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=bj(OM(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(pj(r,{delay:t})),e.onExit.push(gj(r)),r},r=LM(t)?t.map((function(e,t){var r=n(e.delay,t);return YO(YO({},e),{event:r})})):TM(Object.keys(t).map((function(e,r){var o=t[e],a=MM(o)?{target:o}:o,i=isNaN(+e)?e:+e,s=n(i,r);return _M(a).map((function(e){return YO(YO({},e),{event:s,delay:i})}))})));return r.map((function(t){var n=t.delay;return YO(YO({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof Ij?e.value:bM(e,this.delimiter);if(MM(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var a=Object.keys(r),i=[this];return i.push.apply(i,JO([],KO(TM(a.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),i},e.prototype.handles=function(e){var t=vM(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof Ij?e:Ij.create(e),n=Array.from($M([],this.getStateNodes(t.value)));return new Ij(YO(YO({},t),{value:this.resolve(t.value),configuration:n,done:oj(n,this),tags:aj(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,a={};try{for(var i=XO(Object.keys(e)),s=i.next();!s.done;s=i.next()){var l=s.value,c=e[l];if(c){var u=this.getStateNode(l)._transition(c,t,n);u&&(a[l]=u)}}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}var d=Object.keys(a).map((function(e){return a[e]})),p=TM(d.map((function(e){return e.transitions})));if(!d.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=TM(Object.keys(a).map((function(e){return a[e].configuration})));return{transitions:p,exitSet:TM(d.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:TM(Object.keys(a).map((function(e){return a[e].actions})))}},e.prototype._transition=function(e,t,n){return MM(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,HM(t))},e.prototype.next=function(e,t){var n,r,o,a=this,i=t.name,s=[],l=[];try{for(var c=XO(this.getCandidates(i)),u=c.next();!u.done;u=c.next()){var d=u.value,p=d.cond,h=d.in,f=e.context,m=!h||(MM(h)&&dF(h)?e.matches(bM(this.getStateNodeById(h).path,this.delimiter)):AM(bM(h,this.delimiter),CM(this.path.slice(0,-2))(e.value))),g=!1;try{g=!p||VM(this.machine,p,f,t,e)}catch(v){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(i,"' in state node '").concat(this.id,"':\n").concat(v.message))}if(g&&m){void 0!==d.target&&(l=d.target),s.push.apply(s,JO([],KO(d.actions),!1)),o=d;break}}}catch(y){n={error:y}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:s};var A=TM(l.map((function(t){return a.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:TM(l.map((function(e){return a.getPotentiallyReenteringNodes(e)}))),configuration:A,source:e,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,o,a,i){var s,l,c,u,d=this,p=a?$M([],this.getStateNodes(a.value)):[],h=new Set;try{for(var f=XO(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!rj(p,v=m.value)||rj(n.exitSet,v)||v.parent&&h.has(v.parent))&&h.add(v)}}catch(S){s={error:S}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}try{for(var g=XO(p),A=g.next();!A.done;A=g.next()){var v;rj(e,v=A.value)&&!rj(n.exitSet,v.parent)||n.exitSet.push(v)}}catch(T){c={error:T}}finally{try{A&&!A.done&&(u=g.return)&&u.call(g)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var y=Array.from(h).sort((function(e,t){return e.order-t.order})),b=new Set(n.exitSet),x=TM(y.map((function(e){var t=[];if("final"!==e.type)return t;var a=e.parent;if(!a.parent)return t;t.push(xj(e.id,e.doneData),xj(a.id,e.doneData?NM(e.doneData,r,o):void 0));var i=a.parent;return"parallel"===i.type&&JM(i).every((function(e){return oj(n.configuration,e)}))&&t.push(xj(i.id)),t}))),w=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return Aj(e)}));return{type:"entry",actions:cj(i?JO(JO([],KO(t),!1),KO(n),!1):JO(JO([],KO(n),!1),KO(t),!1),d.machine.options.actions)}})).concat({type:"state_done",actions:x.map((function(e){return dj(e)}))}),E=Array.from(b).map((function(e){return{type:"exit",actions:cj(JO(JO([],KO(e.onExit),!1),KO(e.activities.map((function(e){return vj(e)}))),!1),d.machine.options.actions)}})).concat({type:"transition",actions:cj(n.actions,this.machine.options.actions)}).concat(w);if(t){var C=cj(TM(JO([],KO(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!QM(e)}));return E.concat({type:"stop",actions:C})}return E},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,a,i=HM(t);if(e instanceof Ij)o=void 0===n?e:this.resolveState(Ij.from(e,n));else{var s=MM(e)?this.resolve(xM(this.getResolvedPath(e))):this.resolve(e),l=null!==n&&void 0!==n?n:this.machine.context;o=this.resolveState(Ij.from(s,l))}if(!gM&&i.name===cF)throw new Error("An event cannot have the wildcard type ('".concat(cF,"')"));if(this.strict&&!this.events.includes(i.name)&&(a=i.name,!/^(done|error)\./.test(a)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var c=this._transition(o.value,o,i)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},u=$M([],this.getStateNodes(o.value)),d=c.configuration.length?$M(u,c.configuration):u;return c.configuration=JO([],KO(d),!1),this.resolveTransition(c,o,o.context,r,i)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var o,a=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(o=e.actions).unshift.apply(o,JO([],KO(a),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var a,i,s,l,c=this;void 0===o&&(o=ij);var u=e.configuration,d=!t||e.transitions.length>0,p=d?e.configuration:t?t.configuration:[],h=oj(p,this),f=d?nj(this.machine,u):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(p),h,e,n,o,t,r),A=t?YO({},t.activities):{};try{for(var v=XO(g),y=v.next();!y.done;y=v.next()){var b=y.value;try{for(var x=(s=void 0,XO(b.actions)),w=x.next();!w.done;w=x.next()){var E=w.value;E.type===tM?A[E.activity.id||E.activity.type]=E:E.type===nM&&(A[E.activity.id||E.activity.type]=!1)}}catch(z){s={error:z}}finally{try{w&&!w.done&&(l=x.return)&&l.call(x)}finally{if(s)throw s.error}}}}catch(H){a={error:H}}finally{try{y&&!y.done&&(i=v.return)&&i.call(v)}finally{if(a)throw a.error}}var C,S,T=KO(kj(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),k=T[0],_=T[1],N=KO(function(e,t){var n,r,o=KO([[],[]],2),a=o[0],i=o[1];try{for(var s=XO(e),l=s.next();!l.done;l=s.next()){var c=l.value;t(c)?a.push(c):i.push(c)}}catch(H){n={error:H}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[a,i]}(k,QM),2),I=N[0],P=N[1],R=k.filter((function(e){var t;return e.type===tM&&(null===(t=e.activity)||void 0===t?void 0:t.type)===uM})),D=R.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,a=GM(e.src),i=null===(o=null===t||void 0===t?void 0:t.options.services)||void 0===o?void 0:o[a.type],s=e.data?NM(e.data,n,r):void 0,l=i?jj(i,e.id,s):Mj(e.id);return l.meta=e,l}(t.activity,c.machine,_,o),e}),t?YO({},t.children):{}),L=new Ij({value:f||t.value,context:_,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?(C=m,S=f,{current:S,states:PM(C,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?P:[],activities:f?A:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:D,done:h,tags:aj(p),machine:this}),O=n!==_;L.changed=o.name===hM||O;var M=L.history;M&&delete M.history;var j=!h&&(this._transient||u.some((function(e){return e._transient})));if(!d&&(!j||o.name===lF))return L;var F=L;if(!h)for(j&&(F=this.resolveRaisedTransition(F,{type:iM},o,r));I.length;){var B=I.shift();F=this.resolveRaisedTransition(F,B._event,o,r)}var U=F.changed||(M?!!F.actions.length||O||typeof M.value!==typeof F.value||!_j(F.value,M.value):void 0);return F.changed=U,F.history=M,F},e.prototype.getStateNode=function(e){if(dF(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=dF(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"===typeof e&&dF(e))try{return this.getStateNodeById(e.slice(1))}catch(DV){}for(var t=yM(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||uF;switch(this.type){case"parallel":return wM(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):uF}));case"compound":if(MM(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?wM(e,(function(e,t){return e?n.getStateNode(t).resolve(e):uF})):this.initialStateValue||{};default:return e||uF}},e.prototype.getResolvedPath=function(e){if(dF(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return yM(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=EM(this.states,(function(e){return e.initialStateValue||uF}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=XM(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!==t&&void 0!==t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=MM(t.target)&&dF(t.target)?xM(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return XM(this)?[this]:"compound"!==this.type||this.initial?TM(SM(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(gM||DM(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=KO(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:EM(this.states,(function(t,n){if(!e)return t.historyValue();var r=MM(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?TM(SM(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,a,i=(o=n.path,a="states",function(e){var t,n,r=e;try{for(var i=XO(o),s=i.next();!s.done;s=i.next()){var l=s.value;r=r[a][l]}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r})(e).current;return MM(i)?[n.getStateNode(i)]:TM(SM(i).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=TM(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var o=this.states,a=new Set(this.ownEvents);if(o)try{for(var i=XO(Object.keys(o)),s=i.next();!s.done;s=i.next()){var l=o[s.value];if(l.states)try{for(var c=(n=void 0,XO(l.events)),u=c.next();!u.done;u=c.next()){var d=u.value;a.add("".concat(d))}}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(h){e={error:h}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!MM(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(o){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(o.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return _M(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return MM(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,a=this.resolveTarget(n),i=YO(YO({},e),{actions:cj(_M(e.actions)),cond:jM(e.cond,o),target:a,source:this,internal:r,eventType:e.event,toJSON:function(){return YO(YO({},i),{target:i.target?i.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return i},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var o=this.config.on,a=cF,i=o[a],s=void 0===i?[]:i,l=QO(o,["*"]);n=TM(Object.keys(l).map((function(e){gM||e!==lF||DM(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=WM(e,l[e]);return gM||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(MM(e.target)||BM(e.target))})),o=t===lF?"the transient event":"event '".concat(t,"'");DM(!r,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(WM(cF,s)))}else n=[];var c=this.config.always?WM("",this.config.always):[],u=this.config.onDone?WM(String(xj(this.id)),this.config.onDone):[];gM||DM(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=TM(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,JO([],KO(WM(String(wj(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,JO([],KO(WM(String(Ej(e.id)),e.onError)),!1)),t}))),p=this.after,h=TM(JO(JO(JO(JO([],KO(u),!1),KO(d),!1),KO(n),!1),KO(c),!1).map((function(e){return _M(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=XO(p),m=f.next();!m.done;m=f.next()){var g=m.value;h.push(g)}}catch(A){e={error:A}}finally{try{m&&!m.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}(),hF=!1;function fF(e,t){return gM||"predictableActionArguments"in e||hF||(hF=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new pF(e,t)}var mF=yj,gF=fj,AF=Cj;var vF=n(7273);const yF=(e,t)=>"".concat(e).concat(t).replace(/[^A-Z0-9+]/gi,""),bF=(e,t)=>{switch(t){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return t.startsWith("custom:")}},xF=(e,t,n)=>{const{password:r,...o}=t,a=(e=>{const{phone_number:t,...n}=vF(e,bF);if(Au(t)&&""!==t){const{country_code:r}=e;return{...n,phone_number:yF(r,t)}}return n})(o);return{username:e,password:r,options:{autoSignIn:true,userAttributes:{..."phone_number"===n?{...a,phone_number:e}:a}}}},{kp:wF}=r,EF=wF({actorDoneData:void 0}),CF=wF({challengeName:void 0}),SF=wF({missingAttributes:void 0}),TF=wF({remoteError:void 0}),kF=wF({formValues:{}}),_F=wF({touched:{}}),NF=wF({user:void 0}),IF=wF({validationError:{}}),PF=wF({totpSecretCode:(e,t)=>{var n,r;let{data:o}=t;const{sharedSecret:a}=null!==(n=null===(r=o.nextStep)||void 0===r?void 0:r.totpSetupDetails)&&void 0!==n?n:{};return a}}),RF=wF({step:"SIGN_IN"}),DF=wF({step:"SHOULD_CONFIRM_USER_ATTRIBUTE"}),LF=wF({step:"CONFIRM_ATTRIBUTE_COMPLETE"}),OF=wF({challengeName:(e,t)=>
2{let{data:n}=t;const{signInStep:r}=n.nextStep;return"CONFIRM_SIGN_IN_WITH_SMS_CODE"===r?"SMS_MFA":"CONFIRM_SIGN_IN_WITH_TOTP_CODE"===r?"SOFTWARE_TOKEN_MFA":void 0}}),MF=wF({username:e=>{let{formValues:t,loginMechanisms:n}=e;const r=n[0],{username:o,country_code:a}=t;return"phone_number"===r?yF(a,o):o}}),jF=wF({username:e=>{let{formValues:t,loginMechanisms:n}=e;const r=n[0];if("phone_number"===r){const{country_code:e,phone_number:n}=t;return yF(e,n)}return t[r]}}),FF=wF({username:e=>{let{formValues:t,loginMechanisms:n}=e;const r=n[0],{username:o,country_code:a}=t;return"phone_number"===r?yF(a,o):o}}),BF=wF({step:(e,t)=>{let{data:n}=t;return"DONE"===n.nextStep.signInStep?"SIGN_IN_COMPLETE":n.nextStep.signInStep}}),UF=wF({step:(e,t)=>{let{data:n}=t;return"DONE"===n.nextStep.signUpStep?"SIGN_UP_COMPLETE":n.nextStep.signUpStep}}),zF=wF({step:(e,t)=>{let{data:n}=t;return"DONE"===n.nextStep.resetPasswordStep?"RESET_PASSWORD_COMPLETE":n.nextStep.resetPasswordStep}}),HF=wF({missingAttributes:(e,t)=>{var n;let{data:r}=t;return null===(n=r.nextStep)||void 0===n?void 0:n.missingAttributes}}),WF=wF({validationError:(e,t)=>{let{data:n}=t;return n}}),VF=wF({remoteError:(e,t)=>{let{data:n}=t;return"NoUserPoolError"===n.name?"Configuration error (see console) \u2013 please contact the administrator":(null===n||void 0===n?void 0:n.message)||n}}),GF=wF({user:(e,t)=>{let{data:n}=t;return n}}),qF=e=>({Destination:e.destination,DeliveryMedium:e.deliveryMedium,AttributeName:e.attributName}),YF=wF({codeDeliveryDetails:(e,t)=>{var n;let{data:r}=t;return null!==r&&void 0!==r&&null!==(n=r.nextStep)&&void 0!==n&&n.codeDeliveryDetails?qF(r.nextStep.codeDeliveryDetails):qF(r)}}),QF=wF({formValues:(e,t)=>{let{data:n}=t;const{name:r,value:o}=n;return{...e.formValues,[r]:o}}}),XF=wF({formValues:(e,t)=>{let{data:n}=t;return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).reduce(((e,t)=>{let[r,o]=t;return{...e,[r]:n.includes(r)?o:null===o||void 0===o?void 0:o.trim()}}),{})}({...e.formValues,...n},"password")}}),KF=wF({touched:(e,t)=>{let{data:n}=t;return{...e.touched,[n.name]:!0}}}),JF=wF({unverifiedUserAttributes:(e,t)=>{let{data:n}=t;const{email:r,phone_number:o}=n;return{...r&&{email:r},...o&&{phone_number:o}}}}),ZF=wF({selectedUserAttribute:void 0}),$F=wF({selectedUserAttribute:e=>{var t;return null===(t=e.formValues)||void 0===t?void 0:t.unverifiedAttr}}),eB={clearActorDoneData:EF,clearChallengeName:CF,clearError:TF,clearFormValues:kF,clearMissingAttributes:SF,clearSelectedUserAttribute:ZF,clearTouched:_F,clearUser:NF,clearValidationError:IF,handleBlur:KF,handleInput:QF,handleSubmit:XF,setChallengeName:OF,setCodeDeliveryDetails:YF,setFieldErrors:WF,setMissingAttributes:HF,setNextResetPasswordStep:zF,setNextSignInStep:BF,setNextSignUpStep:UF,setRemoteError:VF,setConfirmAttributeCompleteStep:LF,setConfirmSignUpSignUpStep:wF({step:"CONFIRM_SIGN_UP"}),setShouldVerifyUserAttributeStep:DF,setSelectedUserAttribute:$F,setSignInStep:RF,setTotpSecretCode:PF,setUser:GF,setUnverifiedUserAttributes:JF,setUsernameForgotPassword:MF,setUsernameSignIn:FF,setUsernameSignUp:jF},tB=["CONFIRM_SIGN_IN_WITH_SMS_CODE","CONFIRM_SIGN_IN_WITH_TOTP_CODE"],nB={hasCompletedAttributeConfirmation:(e,t)=>{let{data:n}=t;return"CONFIRM_ATTRIBUTE_COMPLETE"===(null===n||void 0===n?void 0:n.step)},hasCompletedResetPassword:(e,t)=>{let{data:n}=t;return"DONE"===(null===n||void 0===n?void 0:n.nextStep.resetPasswordStep)},hasCompletedSignIn:(e,t)=>{let{data:n}=t;return"DONE"===(null===n||void 0===n?void 0:n.nextStep.signInStep)},hasCompletedSignUp:(e,t)=>{let{data:n}=t;return"DONE"===(null===n||void 0===n?void 0:n.nextStep.signUpStep)},isConfirmSignUpStep:(e,t)=>{let{data:n}=t;return"CONFIRM_SIGN_UP"===(null===n||void 0===n?void 0:n.step)},isConfirmUserAttributeStep:(e,t)=>{let{data:n}=t;return"CONFIRM_ATTRIBUTE_WITH_CODE"===(null===n||void 0===n?void 0:n.step)},isResetPasswordStep:(e,t)=>{let{data:n}=t;return"RESET_PASSWORD"===(null===n||void 0===n?void 0:n.step)},isShouldConfirmUserAttributeStep:(e,t)=>{let{data:n}=t;return"SHOULD_CONFIRM_USER_ATTRIBUTE"===(null===n||void 0===n?void 0:n.step)},isUserAlreadyConfirmed:(e,t)=>{let{data:n}=t;return"User is already confirmed."===n.message},shouldAutoSignIn:(e,t)=>{let{data:n}=t;return"COMPLETE_AUTO_SIGN_IN"===(null===n||void 0===n?void 0:n.nextStep.signUpStep)},shouldConfirmResetPassword:e=>{let{step:t}=e;return"CONFIRM_RESET_PASSWORD_WITH_CODE"===t},shouldConfirmSignIn:e=>{let{step:t}=e;return tB.includes(t)},shouldConfirmSignInWithNewPassword:(e,t)=>{let{data:n}=t;return"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED"===(null===n||void 0===n?void 0:n.nextStep.signInStep)},shouldConfirmSignUp:e=>{let{step:t}=e;return"CONFIRM_SIGN_UP"===t},shouldConfirmSignUpFromSignIn:(e,t)=>{let{data:n}=t;return"CONFIRM_SIGN_UP"===(null===n||void 0===n?void 0:n.nextStep.signInStep)},shouldResetPassword:e=>{let{step:t}=e;return"RESET_PASSWORD"===t},shouldResetPasswordFromSignIn:(e,t)=>{var n;let{data:r}=t;return"RESET_PASSWORD"===(null===r||void 0===r||null===(n=r.nextStep)||void 0===n?void 0:n.signInStep)},shouldSetupTotp:e=>{let{step:t}=e;return"CONTINUE_SIGN_IN_WITH_TOTP_SETUP"===t},shouldVerifyAttribute:(e,t)=>
2{let{data:n}=t;const{phone_number_verified:r,email_verified:o}=n;return(void 0===o||"false"===o)&&(void 0===r||"false"===r)}};var rB=n(4677);const oB=async(e,t,n,r)=>{const o=await Promise.all(r.map((r=>r(e,t,n)))),a=rB({},...o);return vu(a)?Promise.resolve():Promise.reject(a)},aB=e=>{if(e)return(e=>Array.isArray(e))(e)?Object.entries(e).map((e=>{let[t,n]=e;return Object.keys(n)[0]})):Object.keys(e)},iB={async getAmplifyConfig(){var e,t,n,r,o;const a=DO.getConfig(),i=null===(e=a.Auth)||void 0===e?void 0:e.Cognito,{loginWith:s,userAttributes:l}=null!==(t=null===(n=a.Auth)||void 0===n?void 0:n.Cognito)&&void 0!==t?t:{};return{...i,loginMechanisms:s?Object.entries(s).filter((e=>{let[t,n]=e;return"oauth"!==t})).filter((e=>{let[t,n]=e;return!!n})).map((e=>"phone"===e[0]?"phone_number":e[0])):void 0,signUpAttributes:aB(l),socialProviders:null!==s&&void 0!==s&&null!==(r=s.oauth)&&void 0!==r&&r.providers?null===(o=s.oauth.providers)||void 0===o?void 0:o.map((e=>e.toString().toLowerCase())):void 0}},getCurrentUser:Hb,handleSignIn:QC,handleSignUp:hS,handleConfirmSignIn:KC,handleConfirmSignUp:fS,handleForgotPasswordSubmit:tS,handleForgotPassword:eS,handleResendSignUpCode:XC,async validateCustomSignUp(e,t){},async validateFormPassword(e,t,n){var r;const{password:o}=e,{password:a}=t;if(!a||!n)return null;const i=[],s=null!==(r=n.minLength)&&void 0!==r?r:8;return o.length<s&&i.push("Password must have at least ".concat(s," characters")),n.requireLowercase&&!/[a-z]/.test(o)&&i.push("Password must have lower case letters"),n.requireUppercase&&!/[A-Z]/.test(o)&&i.push("Password must have upper case letters"),n.requireNumbers&&!/[0-9]/.test(o)&&i.push("Password must have numbers"),n.requireSpecialCharacters&&!(e=>Nu.some((t=>e.includes(t))))(o)&&i.push("Password must have special characters"),0!==i.length?{password:i}:null},async validateConfirmPassword(e,t){const{password:n,confirm_password:r}=e,{confirm_password:o,password:a}=t;return n||r?(n||r)&&n!==r&&(o&&a||(null===n||void 0===n?void 0:n.length)>=6&&(null===r||void 0===r?void 0:r.length)>=6)?{confirm_password:"Your passwords must match"}:void 0:null},async validatePreferredUsername(e,t){}};const sB=async e=>{var t;const n=null===(t=e.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(n);const{userPoolEndpoint:r,userPoolId:o}=n,{tokens:a}=await pc(e,{forceRefresh:!1});Ob(a);const i=(e=>$x(Aw,ew("GetUser"),cw(),{..._w,...e}))({endpointResolver:Mw({endpointOverride:r})}),{UserAttributes:s}=await i({region:jw(o),userAgentValue:Zx(Qb.FetchUserAttributes)},{AccessToken:a.accessToken.toString()});return function(e){const t={};return null===e||void 0===e||e.forEach((e=>{e.Name&&(t[e.Name]=e.Value)})),t}(s)},lB=()=>sB(dc);new Il("AuthError");Error;const cB={oauthSignInError:{message:Ix.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:Ix.DEFAULT_MSG,log:"\n Error: Amplify has not been configured correctly.\n This error is typically caused by one of the following scenarios:\n\n 1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n \n 2. There might be multiple conflicting versions of amplify packages in your node_modules.\n\t\t\t\tRefer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)\n "},missingAuthConfig:{message:Ix.DEFAULT_MSG,log:"\n Error: Amplify has not been configured correctly. \n The configuration object is missing required auth properties.\n This error is typically caused by one of the following scenarios:\n\n 1. Did you run `amplify push` after adding auth via `amplify add auth`?\n See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n\n 2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.\n "}
2,emptyUsername:{message:Ix.EMPTY_USERNAME},invalidUsername:{message:Ix.INVALID_USERNAME},emptyPassword:{message:Ix.EMPTY_PASSWORD},emptyCode:{message:Ix.EMPTY_CODE},signUpError:{message:Ix.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:Ix.NO_MFA},invalidMFA:{message:Ix.INVALID_MFA},emptyChallengeResponse:{message:Ix.EMPTY_CHALLENGE},noUserSession:{message:Ix.NO_USER_SESSION},deviceConfig:{message:Ix.DEVICE_CONFIG},networkError:{message:Ix.NETWORK_ERROR},autoSignInError:{message:Ix.AUTOSIGNIN_ERROR},default:{message:Ix.DEFAULT_MSG}},uB=(e,t)=>new kb({message:null!==e&&void 0!==e?e:"An error has occurred during the oauth process.",name:Px.OAuthSignInError,recoverySuggestion:null!==t&&void 0!==t?t:cB.oauthSignInError.log});var dB;!function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError",e.OAuthSignInError="oauthSignInError"}(dB||(dB={}));const pB=async e=>{const t=await cE.loadOAuthState(),n=e===t?t:void 0;if(!n)throw new kb({name:dB.OAuthSignInError,message:null===e?"`signInWithRedirect` has been canceled.":"An error occurred while validating the state.",recoverySuggestion:null===e?void 0:"Try to initiate an OAuth flow from Amplify"});return n},hB=async e=>{let{currentUrl:t,userAgentValue:n,clientId:r,redirectUri:o,responseType:a,domain:i,preferPrivateSession:s}=e;const l=new rx(t),c=l.searchParams.get("error"),u=l.searchParams.get("error_description");if(c)throw uB(null!==u&&void 0!==u?u:c);return"code"===a?fB({currentUrl:t,userAgentValue:n,clientId:r,redirectUri:o,domain:i,preferPrivateSession:s}):mB({currentUrl:t,redirectUri:o,preferPrivateSession:s})},fB=async e=>{var t;let{currentUrl:n,userAgentValue:r,clientId:o,redirectUri:a,domain:i,preferPrivateSession:s}=e;const l=new rx(n),c=l.searchParams.get("code"),u=l.searchParams.get("state");if(!c||!u)throw uB("User cancelled OAuth flow.");const d=await pB(u),p="https://"+i+"/oauth2/token",h=await cE.loadPKCE(),f={grant_type:"authorization_code",code:c,client_id:o,redirect_uri:a,...h?{code_verifier:h}:{}},m=Object.entries(f).map((e=>{let[t,n]=e;return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n))})).join("&"),{access_token:g,refresh_token:A,id_token:v,error:y,error_message:b,token_type:x,expires_in:w}=await(await fetch(p,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[kl]:r},body:m})).json();if(y)throw uB(null!==b&&void 0!==b?b:y);const E=null!==(t=g&&Tb(g).payload.username)&&void 0!==t?t:"username";return await mE({username:E,AccessToken:g,IdToken:v,RefreshToken:A,TokenType:x,ExpiresIn:w}),gB({redirectUri:a,state:d,preferPrivateSession:s})},mB=async e=>{var t,n;let{currentUrl:r,redirectUri:o,preferPrivateSession:a}=e;const i=new rx(r),{id_token:s,access_token:l,state:c,token_type:u,expires_in:d,error_description:p,error:h}=(null!==(t=i.hash)&&void 0!==t?t:"#").substring(1).split("&").map((e=>e.split("="))).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:r}}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(h)throw uB(null!==p&&void 0!==p?p:h);if(!l)throw uB("No access token returned from OAuth flow.");const f=await pB(c),m=null!==(n=l&&Tb(l).payload.username)&&void 0!==n?n:"username";return await mE({username:m,AccessToken:l,IdToken:s,TokenType:u,ExpiresIn:d}),gB({redirectUri:o,state:f,preferPrivateSession:a})},gB=async e=>{let{redirectUri:t,state:n,preferPrivateSession:r}=e;var o;await fE.setOAuthMetadata({oauthSignIn:!0}),await cE.clearOAuthData(),await cE.storeOAuthSignIn(!0,r),dE(),yB(t),AB(n)&&Ol.dispatch("auth",{event:"customOAuthState",data:(o=vB(n),(o.match(/.{2}/g)||[]).map((e=>String.fromCharCode(parseInt(e,16)))).join(""))},"Auth",Rl),Ol.dispatch("auth",{event:"signInWithRedirect"},"Auth",Rl),await gE()},AB=e=>/-/.test(e),vB=e=>e.split("-").splice(1).join("-"),yB=e=>{"undefined"!==typeof window&&"undefined"!==typeof window.history&&window.history.replaceState(window.history.state,"",e)};function bB(e,t){if(t){const n=null===e||void 0===e?void 0:e.find((e=>e===t));if(!n)throw Db;return n}{var n,r;const t=null!==(n=null===e||void 0===e?void 0:e.find(xB))&&void 0!==n?n:null===e||void 0===e?void 0:e.find(wB),o=null!==(r=null===e||void 0===e?void 0:e.find(CB))&&void 0!==r?r:null===e||void 0===e?void 0:e.find(EB);if(t)return t;if(o)throw Lb;throw Rb}}const xB=e=>{var t;return e.startsWith(String(null!==(t=window.location.origin+window.location.pathname)&&void 0!==t?t:"/"))},wB=e=>e.includes(String(window.location.hostname)),EB=e=>e.startsWith("http://"),CB=e=>e.startsWith("https://"),SB=async e=>{dE(),await cE.clearOAuthInflightData(),Ol.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:e}},"Auth",Rl)},TB=async e=>{try{Eb(e),Cb(e),cE.setAuthConfig(e)}catch(t){return}if(await cE.loadOAuthInFlight())try{const t=window.location.href,{loginWith:n,userPoolClientId:r}=e,{domain:o,redirectSignIn:a,responseType:i}=n.oauth,s=bB(a);await hB({currentUrl:t,clientId:r,domain:o,redirectUri:s,responseType:i,userAgentValue:Zx(Qb.SignInWithRedirect)})}catch(n){await SB(n)}};rE()&&dc[Fl](TB);const kB={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"Sign
2InWithApple"},_B=async e=>{var t;null!==(t=window)&&void 0!==t&&t.location&&(window.location.href=e.replace("http://","https://"))},NB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",IB=e=>{const t=new Uint8Array(e);yb().getRandomValues(t);let n,r="";for(const o of t)r+=NB.charAt(o%62);return{value:r,method:"S256",toCodeChallenge:()=>n||(n=function(e){const t=new sc;t.update(e);const n=(r=LE.convert(t.digestSync(),{urlSafe:!0}),r.replace(/=/g,""));var r;return n}(r),n)}};const PB=()=>(e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=new Uint8Array(e);yb().getRandomValues(r);for(const o of r)n.push(t[o%62]);return n.join("")})(32);async function RB(e){var t,n,r,o,a,i;const s=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(s),Cb(s),cE.setAuthConfig(s),await FC();let l="COGNITO";return"string"===typeof(null===e||void 0===e?void 0:e.provider)?l=kB[e.provider]:null!==e&&void 0!==e&&null!==(n=e.provider)&&void 0!==n&&n.custom&&(l=e.provider.custom),DB({oauthConfig:s.loginWith.oauth,clientId:s.userPoolClientId,provider:l,customState:null===e||void 0===e?void 0:e.customState,preferPrivateSession:null===e||void 0===e||null===(r=e.options)||void 0===r?void 0:r.preferPrivateSession,options:{loginHint:null===e||void 0===e||null===(o=e.options)||void 0===o?void 0:o.loginHint,lang:null===e||void 0===e||null===(a=e.options)||void 0===a?void 0:a.lang,nonce:null===e||void 0===e||null===(i=e.options)||void 0===i?void 0:i.nonce}})}const DB=async e=>{var t;let{oauthConfig:n,provider:r,clientId:o,customState:a,preferPrivateSession:i,options:s}=e;const{domain:l,redirectSignIn:c,responseType:u,scopes:d}=n,{loginHint:p,lang:h,nonce:f}=null!==s&&void 0!==s?s:{},m=PB(),g=a?"".concat(m,"-").concat(a.split("").map((e=>e.charCodeAt(0).toString(16).padStart(2,"0"))).join("")):m;const{value:A,method:v,toCodeChallenge:y}=IB(128),b=bB(n.redirectSignIn);rE()&&cE.storeOAuthInFlight(!0),cE.storeOAuthState(g),cE.storePKCE(A);const x=Object.entries({redirect_uri:b,response_type:u,client_id:o,identity_provider:r,scope:d.join(" "),...p&&{login_hint:p},...h&&{lang:h},...f&&{nonce:f},state:g,..."code"===u&&{code_challenge:y(),code_challenge_method:v}}).map((e=>{let[t,n]=e;return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n))})).join("&"),w="https://".concat(l,"/oauth2/authorize?").concat(x);var E;E=cE,window.addEventListener("pageshow",(async function e(t){if(t.persisted&&await E.loadOAuthInFlight()){const e=uB("User cancelled OAuth flow.");await SB(e)}window.removeEventListener("pageshow",e)}));const{type:C,error:S,url:T}=null!==(t=await _B(w))&&void 0!==t?t:{};try{if("error"===C)throw uB(String(S));"success"===C&&T&&await hB({currentUrl:T,clientId:o,domain:l,redirectUri:b,responseType:u,userAgentValue:Zx(Qb.SignInWithRedirect),preferPrivateSession:i})}catch(k){throw await SB(k),k}},LB=e=>({entry:["sendUpdate","clearError"],invoke:{src:"signInWithRedirect",onDone:{target:e},onError:{actions:"setRemoteError",target:e}}}),OB={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signInActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:["setMissingAttributes","setNextSignInStep"],target:"#signInActor.forceChangePassword"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resendSignUpCode"},{actions:["setChallengeName","setMissingAttributes","setNextSignInStep","setTotpSecretCode"],target:"#signInActor.init"}],onError:{actions:"setRemoteError",target:"edit"}},MB={onDone:[{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signInActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}};const jB={onDone:[{actions:"setCodeDeliveryDetails",target:"#signUpActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}},FB={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signUpActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:"setNextSignInStep",target:"#signUpActor.resolved"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resendSignUpCode"},{actions:["setNextSignInStep","setChallengeName","setMissingAttributes","setTotpSecretCode"],target:"#signUpActor.resolved"}],onError:{actions:"setRemoteError",target:"#signUpActor.resolved"}},BB={onDone:[{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signUpActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}};function UB(){return dc.Auth.clearCredentials()}const zB=async e=>{await e.clearOAuthData(),fE.clearTokens(),await UB(),Ol.dispatch("auth",{event:"signedOut"},"Auth",Rl)},HB=async(e,t,n,r)=>{const{isOAuthSignIn:o}=await t.loadOAuthSignIn(),a=await n.getOAuthMetadata();if(await zB(t),o||null!==a&&void 0!==a&&a.oauthSignIn)return async function(e){let t=arguments.length>2?arguments[2]:void 0;Cb(e);const{loginWith:n,userPoolClientId:r}=e,{domain:o,redirectSignOut:a}=n.oauth,i=bB(a,t),s="https://".concat(o,"/logout?").concat(Object.entries({client_id:r,logout_uri:encodeURIComponent(i)}).map((e=>{let[t,n]=e;return"".concat(t,"=").concat(n)})).join("&"));return _B(s)}(e,!1,r)},WB=e=>$x(Aw,ew("RevokeToken"),cw(),{..._w,...e}),VB=e=>$x(Aw,ew("GlobalSignOut"),cw(),{..._w,...e}),GB=new Il("Auth");async function qB(e){var t;const n=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;let r;Eb(n),null!==e&&void 0!==e&&e.global?await async function(e){try{const{userPoolEndpoint:t,userPoolId:n}=e,r=await fE.getTokenStore().loadTokens();Ob(r);const o=VB({endpointResolver:Mw({endpointOverride:t})});await o({region:jw(n),userAgentValue:Zx(Qb.SignOut)}
2,{AccessToken:r.accessToken.toString()})}catch(t){GB.debug("Global signOut error caught but will proceed with token removal")}}(n):await async function(e){try{const{userPoolEndpoint:t,userPoolId:n,userPoolClientId:r}=e,o=await fE.getTokenStore().loadTokens();if(Fb(o),YB(o.accessToken)){const e=WB({endpointResolver:Mw({endpointOverride:t})});await e({region:jw(n),userAgentValue:Zx(Qb.SignOut)},{ClientId:r,Token:o.refreshToken})}}catch(t){GB.debug("Client signOut error caught but will proceed with token removal")}}(n);try{Cb(n),r=!0}catch(i){r=!1}if(r){var o,a;const t=new sE(Gw);t.setAuthConfig(n);const{type:r}=null!==(o=await HB(n,t,fE,null===e||void 0===e||null===(a=e.oauth)||void 0===a?void 0:a.redirectUrl))&&void 0!==o?o:{};if("error"===r)throw new kb({name:"OAuthSignOutException",message:"An error occurred when attempting to log out from OAuth provider."})}else fE.clearTokens(),await UB(),Ol.dispatch("auth",{event:"signedOut"},"Auth",Rl)}const YB=e=>{var t;return!(null===e||void 0===e||null===(t=e.payload)||void 0===t||!t.origin_jti)},QB=()=>fF({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:"pending",invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>qB()}}),XB=async e=>{var t;const{userAttributeKey:n,options:r}=e,o=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito,a=null===r||void 0===r?void 0:r.clientMetadata;Eb(o);const{userPoolEndpoint:i,userPoolId:s}=o,{tokens:l}=await hc({forceRefresh:!1});Ob(l);const c=(e=>$x(Aw,ew("GetUserAttributeVerificationCode"),cw(),{..._w,...e}))({endpointResolver:Mw({endpointOverride:i})}),{CodeDeliveryDetails:u}=await c({region:jw(s),userAgentValue:Zx(Qb.SendUserAttributeVerificationCode)},{AccessToken:l.accessToken.toString(),ClientMetadata:a,AttributeName:n}),{DeliveryMedium:d,AttributeName:p,Destination:h}={...u};return{destination:h,deliveryMedium:d,attributeName:p}},KB=e=>$x(Aw,ew("VerifyUserAttribute"),cw(),{..._w,...e});function JB(){return fF({id:"verifyUserAttributesActor",initial:"selectUserAttributes",predictableActionArguments:!0,states:{selectUserAttributes:{initial:"edit",exit:["clearError","clearTouched","sendUpdate"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:{target:"#verifyUserAttributesActor.resolved"},CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"sendUserAttributeVerificationCode",onDone:{actions:["setSelectedUserAttribute","setCodeDeliveryDetails"],target:"#verifyUserAttributesActor.confirmVerifyUserAttribute"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUserAttribute:{initial:"edit",exit:["clearError","clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#verifyUserAttributesActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmVerifyUserAttribute",onDone:{actions:["setConfirmAttributeCompleteStep","clearSelectedUserAttribute"],target:"#verifyUserAttributesActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:e=>{let{step:t}=e;return{step:t}}}}},{actions:{...eB,sendUpdate:gF()},services:{sendUserAttributeVerificationCode(e){let{formValues:{unverifiedAttr:t}}=e;return XB({userAttributeKey:t})},async confirmVerifyUserAttribute(e){let{formValues:{confirmation_code:t},selectedUserAttribute:n}=e;return async function(e){var t;const n=null===(t=dc.getConfig().Auth)||void 0===t?void 0:t.Cognito;Eb(n);const{userPoolEndpoint:r,userPoolId:o}=n,{confirmationCode:a,userAttributeKey:i}=e;Rx(!!a,_x.EmptyConfirmUserAttributeCode);const{tokens:s}=await hc({forceRefresh:!1});Ob(s);const l=KB({endpointResolver:Mw({endpointOverride:r})});await l({region:jw(o),userAgentValue:Zx(Qb.ConfirmUserAttribute)},{AccessToken:s.accessToken.toString(),AttributeName:i,Code:a})}({confirmationCode:t,userAttributeKey:n})},validateFields:async e=>oB(e.formValues,e.touched,e.passwordSettings,[iB.validateFormPassword,iB.validateConfirmPassword])}})}const ZB=(e,t)=>{var n,r,o,a,i,s,l;return{...e.actorDoneData,step:null!==(n=null===e||void 0===e||null===(r=e.actorDoneData)||void 0===r?void 0:r.step)&&void 0!==n?n:t,formValues:{},touched:{},validationError:{},formFields:null===(o=e.config)||void 0===o?void 0:o.formFields,loginMechanisms:null===(a=e.config)||void 0===a?void 0:a.loginMechanisms,passwordSettings:null===(i=e.config)||void 0===i?void 0:i.passwordSettings,signUpAttributes:null===(s=e.config)||void 0===s?void 0:s.signUpAttributes,socialProviders:null===(l=e.config)||void 0===l?void 0:l.socialProviders}},{Sw:$B,ds:eU}=r,tU=e=>eU(e),nU={on:{INIT:{actions:"configure",target:"getConfig"},SIGN_OUT:"#authenticator.signOut"}},rU={always:{actions:"configure",target:"getConfig"}}
2;function oU(e){const{useNextWaitConfig:t,...n}=null!==e&&void 0!==e?e:{};return fF({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:iB,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,states:{idle:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"setup"},onError:{target:"setup"}}},setup:{initial:"initConfig",states:{initConfig:t?rU:nU,getConfig:{invoke:{src:"getAmplifyConfig",onDone:[{actions:["applyAmplifyConfig","setHasSetup"],cond:"hasUser",target:"#authenticator.authenticated"},{actions:["applyAmplifyConfig","setHasSetup"],target:"goToInitialState"}]}},goToInitialState:{always:[{cond:"isInitialStateSignUp",target:"#authenticator.signUpActor"},{cond:"isInitialStateResetPassword",target:"#authenticator.forgotPasswordActor"},{target:"#authenticator.signInActor"}]}}},getCurrentUser:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"#authenticator.authenticated"},onError:{target:"#authenticator.setup"}}},signInActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:tU("signInActor")}},on:{FORGOT_PASSWORD:"forgotPasswordActor",SIGN_IN:"signInActor",SIGN_UP:"signUpActor","done.invoke.signInActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isResetPasswordStep",actions:"setActorDoneData",target:"#authenticator.forgotPasswordActor"},{cond:"isConfirmSignUpStep",actions:"setActorDoneData",target:"#authenticator.signUpActor"}]}},signUpActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:tU("signUpActor")}},on:{SIGN_IN:"signInActor","done.invoke.signUpActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isConfirmUserAttributeStep",target:"#authenticator.verifyUserAttributesActor"},{actions:"setActorDoneData",target:"#authenticator.signInActor"}]}},forgotPasswordActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnForgotPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:tU("forgotPasswordActor")}},on:{SIGN_IN:"signInActor","done.invoke.forgotPasswordActor":[{target:"#authenticator.signInActor"}]}},verifyUserAttributesActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnVerifyUserAttributesActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:tU("verifyUserAttributesActor")}},on:{"done.invoke.verifyUserAttributesActor":[{actions:"setActorDoneData",target:"#authenticator.getCurrentUser"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"#authenticator.getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:tU("signOutActor")}},on:{"done.invoke.signOutActor":{actions:"clearUser",target:"setup.getConfig"}}}},on:{SIGN_IN_WITH_REDIRECT:{target:"#authenticator.getCurrentUser"},CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{...eB,forwardToActor:$B([{cond:"hasActor",actions:AF((e=>{let{actorRef:t}=e;return t}))}]),setActorDoneData:mF({actorDoneData:(e,t)=>({challengeName:t.data.challengeName,codeDeliveryDetails:t.data.codeDeliveryDetails,missingAttributes:t.data.missingAttributes,remoteError:t.data.remoteError,username:t.data.username,step:t.data.step,totpSecretCode:t.data.totpSecretCode,unverifiedUserAttributes:t.data.unverifiedUserAttributes})}),applyAmplifyConfig:mF({config(e,t){var n,r,o,a,i;let{data:s}=t;const{loginMechanisms:l=(null!==(n=s.loginMechanisms)&&void 0!==n?n:[]),signUpAttributes:c=(null!==(r=s.signUpAttributes)&&void 0!==r?r:[]),socialProviders:u=(null!==(o=s.socialProviders)&&void 0!==o?o:[]),initialState:d,formFields:p,passwordSettings:h=(null!==(a=s.passwordFormat)&&void 0!==a?a:{})}=e.config;0===l.length&&l.push("username");return{formFields:null!==(i=function(e){e&&Object.keys(e).forEach((t=>
2{Object.keys(e[t]).forEach((n=>{let r=e[t][n];r.required=r.isRequired}))}));return e}(p))&&void 0!==i?i:{},initialState:d,loginMechanisms:l,passwordSettings:h,signUpAttributes:c,socialProviders:u}}}),spawnSignInActor:mF({actorRef:(e,t)=>{const{services:n}=e,r=function(e){let{services:t}=e;return fF({id:"signInActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignIn",target:"confirmSignIn"},{cond:"shouldSetupTotp",target:"setupTotp"},{cond:e=>{let{step:t}=e;return"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED"===t},actions:"setActorDoneData",target:"forceChangePassword"},{target:"signIn"}]},federatedSignIn:LB("signIn"),fetchUserAttributes:{invoke:{src:"fetchUserAttributes",...MB}},resendSignUpCode:{invoke:{src:"handleResendSignUpCode",onDone:{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"#signInActor.signIn"}}},resetPassword:{invoke:{src:"resetPassword",onDone:[{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}}},signIn:{initial:"edit",exit:"clearTouched",states:{edit:{entry:"sendUpdate",on:{CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:{target:"#signInActor.federatedSignIn"},SUBMIT:{actions:"handleSubmit",target:"submit"}}},submit:{tags:"pending",entry:["clearError","sendUpdate","setUsernameSignIn"],exit:"clearFormValues",invoke:{src:"handleSignIn",...OB}}}},confirmSignIn:{initial:"edit",exit:["clearChallengeName","clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",...OB}}}},forceChangePassword:{entry:"sendUpdate",type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:{actions:"setSignInStep",target:"#signInActor.resolved"},CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"edit",entry:"clearError",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{actions:"clearValidationError",target:"pending"},onError:{actions:"setFieldErrors",target:"edit"}}},pending:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"handleForceChangePassword",...OB}}}}}},setupTotp:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"confirmSignIn",...OB}}}},resolved:{type:"final",data:e=>({codeDeliveryDetails:e.codeDeliveryDetails,remoteError:e.remoteError,step:e.step,unverifiedUserAttributes:e.unverifiedUserAttributes,username:e.username})}}},{actions:{...eB,sendUpdate:gF()},guards:nB,services:{fetchUserAttributes:async()=>lB(),resetPassword(e){let{username:t}=e;return eS({username:t})},handleResendSignUpCode(e){let{username:n}=e;return t.handleResendSignUpCode({username:n})},handleSignIn(e){let{formValues:n,username:r}=e;const{password:o}=n;return t.handleSignIn({username:r,password:o})},confirmSignIn(e){let{formValues:n}=e;const{confirmation_code:r}=n;return t.handleConfirmSignIn({challengeResponse:r})},async handleForceChangePassword(e){let t,{formValues:n}=e,{password:r,phone_number:o,country_code:a,confirm_password:i,...s}=n;return o&&(t="".concat(a).concat(o).replace(/[^A-Z0-9+]/gi,""),s={...s,phone_number:t}),KC({challengeResponse:r,options:{userAttributes:s}})},signInWithRedirect(e,t){let{data:n}=t;return RB(n)},validateFields:async e=>oB(e.formValues,e.touched,e.passwordSettings,[iB.validateFormPassword,iB.validateConfirmPassword])}})}({services:n}).withContext(ZB(e,"SIGN_IN"));return Jj(r,{name:"signInActor"})}}),spawnSignUpActor:mF({actorRef:(e,t)=>{const{services:n}=e,r=function(e){let{services:t}=e;return fF({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignUp",target:"confirmSignUp"},{target:"signUp"}]}
2,autoSignIn:{tags:"pending",invoke:{src:"autoSignIn",...FB}},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",...BB}},federatedSignIn:LB("signUp"),resetPassword:{invoke:{src:"resetPassword",...jB}},resendSignUpCode:{tags:"pending",entry:"sendUpdate",exit:"sendUpdate",invoke:{src:"resendSignUpCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"#signUpActor.confirmSignUp"},onError:[{cond:"isUserAlreadyConfirmed",target:"#signUpActor.resolved"},{actions:["setRemoteError","sendUpdate"]}]}},signUp:{type:"parallel",exit:"clearTouched",on:{FEDERATED_SIGN_IN:{target:"federatedSignIn"}},states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{actions:"clearValidationError",target:"valid"},onError:{actions:"setFieldErrors",target:"invalid"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{BLUR:{actions:"handleBlur",target:".pending"},CHANGE:{actions:"handleInput",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:["sendUpdate"],on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"handleSignUp",actions:"clearValidationError"},onError:{actions:"setFieldErrors",target:"idle"}}},handleSignUp:{tags:"pending",entry:["setUsernameSignUp","clearError"],exit:"sendUpdate",invoke:{src:"handleSignUp",onDone:[{cond:"hasCompletedSignUp",actions:"setNextSignUpStep",target:"#signUpActor.resolved"},{cond:"shouldAutoSignIn",actions:"setNextSignUpStep",target:"#signUpActor.autoSignIn"},{actions:["setCodeDeliveryDetails","setNextSignUpStep"],target:"#signUpActor.init"}],onError:{actions:["sendUpdate","setRemoteError"],target:"idle"}}}}}}},confirmSignUp:{initial:"edit",entry:"sendUpdate",states:{edit:{on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"#signUpActor.resendSignUpCode"}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignUp",onDone:[{cond:"shouldAutoSignIn",actions:["setNextSignUpStep","clearFormValues"],target:"#signUpActor.autoSignIn"},{actions:"setNextSignUpStep",target:"#signUpActor.init"}],onError:{actions:["setRemoteError","sendUpdate"],target:"edit"}}}}},resolved:{type:"final",data:e=>({challengeName:e.challengeName,missingAttributes:e.missingAttributes,remoteError:e.remoteError,step:e.step,totpSecretCode:e.totpSecretCode,username:e.username,unverifiedUserAttributes:e.unverifiedUserAttributes})}}},{actions:{...eB,sendUpdate:gF()},guards:nB,services:{autoSignIn:()=>WC(),fetchUserAttributes:async()=>lB(),confirmSignUp(e){let{formValues:n,username:r}=e;const{confirmation_code:o}=n,a={username:r,confirmationCode:o};return t.handleConfirmSignUp(a)},resendSignUpCode(e){let{username:n}=e;return t.handleResendSignUpCode({username:n})},signInWithRedirect(e,t){let{data:n}=t;return RB(n)},handleSignUp(e){const{formValues:n,loginMechanisms:r,username:o}=e,a=r[0],i=xF(o,n,a);return t.handleSignUp(i)},validateSignUp:async e=>oB(e.formValues,e.touched,e.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])}})}({services:n}).withContext(ZB(e,"SIGN_UP"));return Jj(r,{name:"signUpActor"})}}),spawnForgotPasswordActor:mF({actorRef:(e,t)=>{const{services:n}=e,r=function(e){let{services:t}=e;return fF({id:"forgotPasswordActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldResetPassword",target:"confirmResetPassword"},{cond:"shouldConfirmResetPassword",target:"confirmResetPassword"},{target:"forgotPassword"}]},forgotPassword:{initial:"edit",entry:"sendUpdate",exit:["clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:"pending",entry:["sendUpdate","clearError","setUsernameForgotPassword"],invoke:{src:"handleResetPassword",onDone:{actions:["setCodeDeliveryDetails","setNextResetPasswordStep"],target:"#forgotPasswordActor.confirmResetPassword"},onError:{actions:"setRemoteError",target:"edit"}}}}}
2,confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleResetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleConfirmResetPassword",onDone:[{cond:"hasCompletedResetPassword",actions:"setNextResetPasswordStep",target:"#forgotPasswordActor.resolved"},{actions:"setSignInStep",target:"#forgotPasswordActor.resolved"}],onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final",data:e=>{let{step:t}=e;return{step:t}}}}},{actions:{...eB,sendUpdate:gF()},guards:nB,services:{handleResetPassword(e){let{username:n}=e;return t.handleForgotPassword({username:n})},handleConfirmResetPassword(e){let{formValues:n,username:r}=e;const{confirmation_code:o,password:a}=n;return t.handleForgotPasswordSubmit({confirmationCode:o,newPassword:a,username:r})},validateFields:e=>oB(e.formValues,e.touched,e.passwordSettings,[iB.validateFormPassword,iB.validateConfirmPassword])}})}({services:n}).withContext(ZB(e,"FORGOT_PASSWORD"));return Jj(r,{name:"forgotPasswordActor"})}}),spawnVerifyUserAttributesActor:mF({actorRef:e=>Jj(JB().withContext(ZB(e)),{name:"verifyUserAttributesActor"})}),spawnSignOutActor:mF({actorRef:e=>Jj(QB().withContext({user:null===e||void 0===e?void 0:e.user}),{name:"signOutActor"})}),configure:mF(((e,t)=>{var r;const{services:o,...a}=bu(n)?null!==(r=t.data)&&void 0!==r?r:{}:n;return{services:{...iB,...o},config:a}})),setHasSetup:mF({hasSetup:!0})},guards:{...nB,hasActor:e=>{let{actorRef:t}=e;return!!t},isInitialStateSignUp:e=>{let{config:t}=e;return"signUp"===t.initialState},isInitialStateResetPassword:e=>{let{config:t}=e;return"forgotPassword"===t.initialState},shouldSetup:e=>{let{hasSetup:t}=e;return!t},hasUser:e=>{let{user:t}=e;return!!t}},services:{getAmplifyConfig:e=>{let{services:t}=e;return t.getAmplifyConfig()},handleGetCurrentUser:e=>{let{services:t}=e;return t.getCurrentUser()}}})}const aU=e=>(t,n)=>{oF(t,n,e)};function iU(e){let{children:t}=e;const[n,r]=a.useState("configuring");a.useEffect((()=>{Hb().then((()=>{r("authenticated")})).catch((()=>{r("unauthenticated")}))}),[]);const o=(0,a.useContext)(fu),i=rF(oU),s=(0,a.useMemo)((()=>o||{authStatus:n,service:i}),[n,o,i]),{service:l}=s;return(0,a.useEffect)((()=>aF(l,aU({onSignIn:()=>{r("authenticated")},onSignOut:()=>{r("unauthenticated")}}))),[l]),a.createElement(fu.Provider,{value:s},t)}const sU="6.9.3",lU=e=>{let{message:t,shouldWarn:n}=e;(e=>{let{shouldWarn:t,message:n}=e;a.useEffect((()=>{t&&console.warn(n)}),[t,n])})({message:t,shouldWarn:n&&("undefined"===typeof process||process&&!1)})},cU=a.createContext(null),uU=()=>{const e=a.useContext(cU);if(!e)throw new Error("`useCustomComponents` cannot be used outside of a `CustomComponentsContext.Provider`");return e},dU={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},pU={getBackToSignInText:()=>Hu(zu.BACK_SIGN_IN),getChangePasswordText:()=>Hu(zu.CHANGE_PASSWORD),getChangingText:()=>Hu(zu.CHANGING_PASSWORD),getConfirmText:()=>Hu(zu.CONFIRM),getConfirmingText:()=>Hu(zu.CONFIRMING),getCopyText:()=>Hu(zu.UPPERCASE_COPY),getHidePasswordText:()=>Hu(zu.HIDE_PASSWORD),getLoadingText:()=>Hu(zu.LOADING),getOrText:()=>Hu(zu.OR),getResendCodeText:()=>Hu(zu.RESEND_CODE),getSendCodeText:()=>Hu(zu.SEND_CODE),getSendingText:()=>Hu(zu.SENDING),getShowPasswordText:()=>Hu(zu.SHOW_PASSWORD),getSubmitText:()=>Hu(zu.SUBMIT),getSubmittingText:()=>Hu(zu.SUBMITTING),getSignInTabText:()=>Hu(zu.SIGN_IN_TAB),getSignUpTabText:()=>Hu(zu.CREATE_ACCOUNT),getForgotPasswordText:e=>Hu(e?zu.FORGOT_PASSWORD:zu.FORGOT_YOUR_PASSWORD),getSigningInText:()=>Hu(zu.SIGNING_IN_BUTTON),getSignInText:()=>Hu(zu.SIGN_IN_BUTTON),getCreatingAccountText:()=>Hu(zu.CREATING_ACCOUNT),getCreateAccountText:()=>Hu(zu.CREATE_ACCOUNT),getDeliveryMessageText:e=>{const{DeliveryMedium:t,Destination:n}=null!==e&&void 0!==e?e:{},r="EMAIL"===t,o="SMS"===t,a=Hu(zu.CODE_ARRIVAL);if(!r&&!o)return"".concat(Hu(zu.CODE_SENT),". ").concat(a,".");const i=Hu(r?zu.CODE_EMAILED:zu.CODE_TEXTED);return"".concat(i," ").concat(n,". ").concat(a,".")},getDeliveryMethodText:e=>{const{DeliveryMedium:t}=null!==e&&void 0!==e?e:{},n="EMAIL"===t;return Hu(n||"SMS"!==t?n?zu.WE_EMAILED:zu.WE_TEXTED:zu.WE_SENT_CODE)},getChallengeText:e=>{switch(e){case"SMS_MFA":return Hu(zu.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return Hu(zu.CONFIRM_TOTP);default:return Hu(zu.CONFIRM_MFA_DEFAULT)}},getResetYourPasswordText:()=>Hu(zu.RESET_PASSWORD),getSetupTotpText:()=>Hu(zu.SETUP_TOTP),getSetupTotpInstructionsText:()=>Hu("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."),getCopiedText:()=>
2Hu("COPIED"),getSignInWithFederationText:(e,t)=>Hu("Sign ".concat("signIn"===e?"In":"Up"," with ").concat(dU[t])),getSkipText:()=>Hu(zu.SKIP),getVerifyText:()=>Hu(zu.VERIFY),getVerifyContactText:()=>Hu(zu.VERIFY_CONTACT),getAccountRecoveryInfoText:()=>Hu(zu.VERIFY_HEADING),getInvalidEmailText:()=>Hu("Please enter a valid email"),getRequiredFieldText:()=>Hu("This field is required")},hU=function(){const e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const o of n)if(o)if(Au(o))e.push(o);else if("number"!==typeof o){if(Array.isArray(o))e.push(hU(...o));else if(gu(o)){if(o.toString!==Object.prototype.toString&&"[object Object]"!==o.toString()){e.push(o.toString());continue}for(const t in o)xu(o,t)&&o[t]&&e.push(t)}}else e.push(o.toString());return e.join(" ")},fU="amplify-alert",mU="amplify-alert__icon",gU="amplify-alert__heading",AU="amplify-alert__body",vU="amplify-alert__dismiss",yU="amplify-button",bU="amplify-button__loader-wrapper",xU="amplify-countrycodeselect",wU="amplify-dialcodeselect",EU="amplify-divider",CU="amplify-field",SU="amplify-field__description",TU="amplify-field__error-message",kU="amplify-field-group",_U="amplify-field-group__control",NU="amplify-field-group__outer-end",IU="amplify-field-group__outer-start",PU="amplify-field-group__inner-end",RU="amplify-field-group__inner-start",DU="amplify-field-group--has-inner-end",LU="amplify-field-group--has-inner-start",OU="amplify-field__show-password",MU="amplify-field-group__field-wrapper",jU="amplify-fieldset",FU="amplify-fieldset__legend",BU="amplify-flex",UU="amplify-heading",zU="amplify-icon",HU="amplify-input",WU="amplify-label",VU="amplify-loader",GU="amplify-loader__label",qU="amplify-passwordfield",YU="amplify-phonenumberfield",QU="amplify-radio",XU="amplify-radio__button",KU="amplify-radio__input",JU="amplify-radio__label",ZU="amplify-radiogroupfield",$U="amplify-radiogroup",ez="amplify-select",tz="amplify-selectfield",nz="amplify-select__wrapper",rz="amplify-select__icon",oz="amplify-tabs",az="amplify-tabs__list",iz="amplify-tabs__item",sz="amplify-tabs__panel",lz="amplify-text",cz="amplify-textfield",uz="amplify-visually-hidden",dz=e=>a.forwardRef(e),pz=a.createContext({isFieldsetDisabled:!1}),hz=()=>a.useContext(pz);var fz=n(940);const mz=/\{([^}]+)\}/g;function gz(e){const t=new RegExp(mz);if("string"===typeof e)return t.test(e);if("object"===typeof e){let t=!1;for(const n in e)if(xu(e,n)){if(gz(e[n])){t=!0;break}}return t}return!1}const Az="amplify";function vz(e){return Object.entries(e).map((e=>{let[t,n]=e;const r=wz(n)?n.toString():xz({value:n});return"".concat(fz(t),":").concat(r,"; ")})).join(" ")}function yz(e){let{path:t=[]}=e;return"".concat(fz([Az,...t].join(" ")))}const bz=["offsetX","offsetY","blurRadius","spreadRadius","color"];function xz(e){const{value:t}=e;return Au(t)?Cz(t):Ez(t)?bz.map((n=>Cz(Ez(e)?e[n]:t[n]))).join(" "):t}function wz(e){return gu(e)&&xu(e,"value")}function Ez(e){return gu(e)&&xu(e,"offsetX")}function Cz(e){if(!e)return"";if(gz(e)){const t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return"var(--".concat(yz({path:t}),")")}return e}const Sz=e=>{let{token:t,path:n}=e;const r="--".concat(yz({path:n})),{value:o}=t,a=xz(t);return{name:r,original:o,path:n,value:a,toString:()=>"var(".concat(r,")")}};function Tz(e){let{tokens:t,path:n=[],setupToken:r}=e;if(xu(t,"value"))return r({token:t,path:n});const o={};for(const a in t)if(xu(t,a)){const e=t[a],i=gu(e)?e:{value:e};o[a]=Tz({tokens:i,path:n.concat(a),setupToken:r})}return o}function kz(e,t){for(var n in t=t||[],e)xu(e,n)&&(gu(e[n])&&"value"in e[n]?t.push(e[n]):gu(e[n])&&kz(e[n],t));return t}function _z(e,t,n){if(null==e)return{};var r,o,a,i,s,l,c=e[0]||{},u=1,d=e.length;for(n=n||[],"object"!==typeof c&&(c={});u<d;u++)if(null!=(s=e[u]))for(i in s)if(xu(s,i)&&"__proto__"!==i&&(r=c[i],c!==(a=s[i])))if(a&&(gu(a)||(o=Array.isArray(a)))){o?(o=!1,l=r&&Array.isArray(r)?r:[]):l=r&&gu(r)?r:{};var p=n.slice(0);p.push(i),c[i]=_z([l,a],t,p)}else void 0!==a&&(null!=r&&"function"==typeof t&&t({target:c,copy:s,path:n,key:i}),c[i]=a);return c}const Nz={alignContent:"alignContent",alignItems:"alignItems",alignSelf:"alignSelf",area:"gridArea",aspectRatio:"aspectRatio",autoColumns:"gridAutoColumns",autoFlow:"gridAutoFlow",autoRows:"gridAutoRows",backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",basis:"flexBasis",border:"border",borderRadius:"borderRadius",borderColor:"borderColor",borderWidth:"borderWidth",borderStyle:"borderStyle",bottom:"bottom",boxShadow:"boxShadow",color:"color",column:"gridColumn",columnEnd:"gridColumnEnd",columnGap:"columnGap",columnSpan:"gridColumn",columnStart:"gridColumnStart",direction:"flexDirection",display:"display",flex:"flex",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",gap:"gap",grow:"flexGrow",height:"height",justifyContent:"justifyContent",left:"left",letterSpacing:"letterSpacing",lineHeight:"lineHeight",margin:"margin",marginBlock:"marginBlock",marginBlockEnd:"marginBlockEnd",marginBlockStart:"marginBlockStart",marginBottom:"marginBlockEnd",marginInline:"marginInline",marginInlineEnd:"marginInlineEnd",marginInlineStart:"marginInlineStart",marginLeft:"marginInlineStart",marginRight:"marginInlineEnd",marginTop:"marginBlockStart",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",objectFit:"objectFit",objectPosition:"objectPosition",opacity:"opacity",order:"order",overflow:"overflow",padding:"padding",paddingBlock:"paddingBlock",paddingBlockEnd:"paddingBlockEnd",paddingBlockStart:"paddingBlockStart",paddingBottom:"paddingBlockEnd",paddingInline:"paddingInline",paddingInlineEnd:"paddingInlineEnd",paddingInlineStart:"paddingInlineStart",paddingLeft:"paddingInlineStart",paddingRight:"paddingInlineEnd",paddingTop:"paddingBlockStart",position:"position",resize:"resize",right:"right",row:"gridRow",rowEnd:"gridRowEnd",rowGap:"rowGap",rowSpan:"gridRow",rowStart:"gridRowStart",shrink:"flexShrink",templateAreas:"gridTemplateAreas",templateColumns:"gridTemplateColumns",templateRows:"gridTemplateRows",textAlign:"textAlign",textDecoration:"textDecoration",textTransform:"textTransform",top:"top",transform:"transform",transformOrigin:"transformOrigin",width:"width",whiteSpace:"whiteSpace",wrap:"flexWrap"},Iz=(Object.keys(Nz),{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}}),Pz={red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 10%, 58%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.neutral.60.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.primary.80.value}"},hover:{value:"{colors.primary.90.value}"},focus:{value:"{colors.primary.100.value}"},active:{value:"{colors.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},quaternary:{value:"{colors.neutral.60.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.10.value}"},warning:{value:"{colors.orange.10.value}"},error:{value:"{colors.red.10.value}"},success:{value:"{colors.green.10.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},pressed:{value:"{colors.primary.100.value}"},focus:{value:"{colors.primary.100.value}"},error:{value:"{colors.red.80.value}"},info:{value:"{colors.blue.80.value}"},success:{value:"{colors.green.80.value}"},warning:{value:"{colors.orange.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{5:{value:"hsla(0, 0%, 0%, 0.05)"},10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"}
2,60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}},Rz={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"2.5rem"},xxxxl:{value:"3rem"}},Dz={hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}},Lz={0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}},Oz={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}},Mz={zero:{value:"0"},xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375em"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"},full:{value:"100%"}}},jz={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}},Fz={tokens:{components:{accordion:{backgroundColor:{value:"{colors.background.primary.value}"},item:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small.value}"},trigger:{alignItems:{value:"center"},backgroundColor:{value:"{colors.background.primary.value}"},color:{value:"inherit"},gap:{value:"{space.small.value}"},justifyContent:{value:"space-between"},paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},_hover:{color:{value:"inherit"},backgroundColor:{value:"{colors.overlay.5.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},content:{color:{value:"inherit"},paddingInline:{value:"{space.small.value}"},paddingBlockEnd:{value:"{space.small.value}"},paddingBlockStart:{value:"{space.xxxs.value}"}},icon:{color:{value:"{colors.font.tertiary.value}"},transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}},aiConversation:{message:{backgroundColor:{value:"{colors.background.secondary.value}"},borderRadius:{value:"{radii.large.value}"},gap:{value:"{space.small.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.small.value}"},user:{backgroundColor:{value:"{colors.background.secondary.value}"}},assistant:{backgroundColor:{value:"{colors.primary.10.value}"}},sender:{gap:{value:"{space.small.value}"},username:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"inherit"},fontWeight:{value:"{fontWeights.bold.value}"}},timestamp:{color:{value:"{colors.font.tertiary.value}"},fontSize:{value:"inherit"},fontWeight:{value:"inherit"}}},body:{gap:{value:"{space.xs.value}"}},actions:{gap:{value:"{space.xs.value}"}}},form:{gap:{value:"{space.small.value}"},padding:{value:"{space.small.value}"}},attachment:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},fontSize:{value:"{fontSizes.small.value}"},paddingBlock:{value:"{space.xxxs.value}"},paddingInline:{value:"{space.xs.value}"},gap:{value:"{space.xs.value}"},list:{paddingBlockStart:{value:"{space.xs.value}"},gap:{value:"{space.xxs.value}"}},name:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{fontSizes.small.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},size:{color:{value:"{colors.font.tertiary.value}"},fontSize:{value:"{fontSizes.small.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},remove:{padding:{value:"{space.xxs.value}"}},image:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}}}},alert:{alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}},authenticator:{maxWidth:{value:"60rem"},modal:{width:{value:"{space.relative.full}"},height:{value:"{space.relative.full}"},backgroundColor:{value:"{colors.overlay.50.value}"},top:{value:"{space.zero}"},left:{value:"{space.zero}"}},container:{widthMax:{value:"30rem"}},router:{borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"}},footer:{paddingBottom:{value:"{space.medium.value}"}},form:{padding:{value:"{space.xl.value}"}},state:{inactive:{backgroundColor:{value:"{colors.background.secondary.value}"}}},orContainer:{color:{value:"{colors.neutral.80.value}"},orLine:{backgroundColor:{value:"{colors.background.primary.value}"}}}},autocomplete:{menu:{width:{value:"100%"},marginBlockStart:{value:"{space.xxxs}"},backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small}"},options:{display:{value:"flex"},flexDirection:{value:"column"},maxHeight:{value:"300px"}},option:{backgroundColor:{value:"{colors.background.primary}"},color:{value:"currentcolor"},cursor:{value:"pointer"},transitionDuration:{value:"{time.short}"},transitionProperty:{value:"background-color, color"},transitionTimingFunction:{value:"ease"},_active:{backgroundColor:{value:"{colors.primary.80}"},color:{value:"{colors.white}"}}},_empty:{display:{value:"flex"}},_loading:{alignItems:{value:"center"},display:{value:"flex"},gap:{value:"{space.xxxs}"}},spaceShared:{paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"}}}},avatar:{color:{value:"{colors.font.tertiary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},width:{value:"{fontSizes.xxl.value}"},height:{value:"{fontSizes.xxl.value}"},backgroundColor:{value:"{colors.background.tertiary}"},borderRadius:{value:"100%"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"{colors.border.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"{colors.border.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"{colors.border.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"{colors.border.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},width:{value:"{fontSizes.xl.value}"},height:{value:"{fontSizes.xl.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}}},badge:{color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}},breadcrumbs:{flexDirection:{value:"row"},flexWrap:{value:"wrap"}
2,gap:{value:"0"},color:{value:"{colors.font.tertiary}"},item:{flexDirection:{value:"row"},color:{value:"inherit"},fontSize:{value:"inherit"},alignItems:{value:"center"},lineHeight:{value:"1"}},separator:{color:{value:"inherit"},fontSize:{value:"inherit"},paddingInline:{value:"{space.xxs}"}},link:{color:{value:"{components.link.color}"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"},paddingInline:{value:"{space.xs}"},paddingBlock:{value:"{space.xxs}"},current:{color:{value:"inherit"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"}}}},button:{fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.primary.20.value}"},borderColor:{value:"{colors.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},outlined:{info:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"}},_focus:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"}},_focus:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"}},_focus:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"}},_focus:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_hover:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"}},_focus:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.neutral.100.value}"}}}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.100.value}"},color:{value:"{colors.font.inverse.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.100.value}"},color:{value:"{colors.font.inverse.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100.value}"},color:{value:"{colors.font.inverse.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.100.value}"},color:{value:"{colors.font.inverse.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.70}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.neutral.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.80.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.90.value}"}}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcon
2trol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}},card:{backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{components.card.boxShadow.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}},checkbox:{cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.border.error.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},icon:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},_indeterminate:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},checkboxfield:{alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}},collection:{pagination:{current:{color:{value:"{components.pagination.current.color}"},backgroundColor:{value:"{components.pagination.current.backgroundColor}"}},button:{color:{value:"{components.pagination.button.color}"},_hover:{backgroundColor:{value:"{components.pagination.button.hover.backgroundColor}"},color:{value:"{components.pagination.button.hover.color}"}},_disabled:{color:{value:"{components.pagination.button.disabled.color}"}}}},search:{input:{color:{value:"{components.searchfield.color}"}},button:{color:{value:"{components.searchfield.button.color}"},_active:{backgroundColor:{value:"{components.searchfield.button._active.backgroundColor}"},borderColor:{value:"{components.searchfield.button._active.borderColor}"},color:{value:"{components.searchfield.button._active.color}"}},_disabled:{backgroundColor:{value:"{components.searchfield.button._disabled.backgroundColor}"},borderColor:{value:"{components.searchfield.button._disabled.borderColor}"},color:{value:"{components.searchfield.button._disabled.color}"}},_focus:{backgroundColor:{value:"{components.searchfield.button._focus.backgroundColor}"},borderColor:{value:"{components.searchfield.button._focus.borderColor}"},color:{value:"{components.searchfield.button._focus.color}"}},_hover:{backgroundColor:{value:"{components.searchfield.button._hover.backgroundColor}"},borderColor:{value:"{components.searchfield.button._hover.borderColor}"},color:{value:"{components.searchfield.button._hover.color}"}}}}},copy:{fontSize:{value:"{fontSizes.xs}"},gap:{value:"{space.relative.medium}"},svg:{path:{fill:{value:"{colors.font.primary}"}}},toolTip:{bottom:{value:"{space.large}"},color:{value:"{colors.teal.100}"},fontSize:{value:"{fontSizes.xxs}"}}},countrycodeselect:{height:{value:"{space.relative.full.value}"}},divider:{borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},label:{color:{value:"{colors.font.tertiary.value}"},paddingInline:{value:"{space.medium.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.background.primary.value}"}},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}},dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.font.primary}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.primary}"}},_disabled:{backgroundColor:{value:"{colors.background.disabled}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.disabled}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.disabled}"}},accepted:{backgroundColor:{value:"{colors.background.success}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.success}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.success}"}},rejected:{backgroundColor:{value:"{colors.background.error}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.error}"}}},field:{gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},flexDirection:{value:"column"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}},fieldcontrol:{borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}
2,quiet:{borderStyle:{value:"none"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},color:{value:"{colors.font.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}},info:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.blue.100.value}"}}}},warning:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.orange.100.value}"}}}},success:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.green.100.value}"}}}},overlay:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.overlay.90.value}"}}}}},fieldgroup:{gap:{value:"{space.zero.value}"},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}},fieldmessages:{error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}},fieldset:{backgroundColor:{value:"transparent"},borderRadius:{value:"{radii.xs.value}"},flexDirection:{value:"column"},gap:{value:"{components.field.gap.value}"},legend:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{components.field.fontSize.value}"},fontWeight:{value:"{fontWeights.bold.value}"},lineHeight:{value:"{lineHeights.medium.value}"},small:{fontSize:"{components.field.small.fontSize.value}"},large:{fontSize:"{components.field.large.fontSize.value}"}},outlined:{padding:"{space.medium.value}",borderColor:"{colors.neutral.40.value}",borderWidth:"{borderWidths.small.value}",borderStyle:"solid",small:{padding:"{space.small.value}"},large:{padding:"{space.large.value}"}},small:{gap:"{components.field.small.gap.value}"},large:{gap:"{components.field.large.gap.value}"}},fileuploader:{dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.fileuploader.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.fileuploader.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},flex:{gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}},heading:{color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},icon:{lineHeight:{value:1},height:{value:"1em"}},highlightmatch:{highlighted:{fontWeight:{value:"{fontWeights.bold}"}}},image:{maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}},inappmessaging:{banner:{height:{value:"150px "},width:{value:"400px "}},button:{backgroundColor:{value:"#e8e8e8"},borderRadius:{value:"5px"},color:{value:"black"}},dialog:{height:{value:"50vh"},minHeight:{value:"400px"},minWidth:{value:"400px"},width:{value:"30vw"}},header:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},input:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},link:{active:{color:{value:"{colors.font.active.value}"}}
2,color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}},liveness:{cameraModule:{backgroundColor:{value:"{colors.background.primary.value}"}}},loader:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},fontSize:{value:"{fontSizes.xs.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.xxs.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.small.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},fontSize:{value:"{fontSizes.xxs.value}"},strokeWidth:{value:"{fontSizes.xxs.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{strokeWidth:{value:"{fontSizes.xxxs.value}"},fontSize:{value:"{fontSizes.xxxs.value}"}},large:{strokeWidth:{value:"{fontSizes.xs.value}"},fontSize:{value:"{fontSizes.xs.value}"}}},text:{fill:{value:"{colors.font.primary.value}"}}},menu:{backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:"{space.zero.value}"},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}},message:{alignItems:{value:"center"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderColor:{value:"transparent"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.xs.value}"},color:{value:"{colors.font.primary.value}"},justifyContent:{value:"flex-start"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},lineHeight:{value:"{lineHeights.small.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},dismiss:{gap:{value:"{space.xxs.value}"}},plain:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}}},outlined:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.primary.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.error.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.success.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.warning.value}"}}},filled:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.secondary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"transparent"}}}},pagination:{current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}}
2,itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}},passwordfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_error:{color:{value:"{components.button.outlined.error.color.value}"},backgroundColor:{value:"{components.button.outlined.error.backgroundColor.value}"},borderColor:{value:"{components.button.outlined.error.borderColor.value}"},_active:{borderColor:{value:"{components.button.outlined.error._active.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._active.backgroundColor.value}"},color:{value:"{components.button.outlined.error._active.color.value}"}},_focus:{borderColor:{value:"{components.button.outlined.error._focus.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._focus.backgroundColor.value}"},color:{value:"{components.button.outlined.error._focus.color.value}"},boxShadow:{value:"{components.button.outlined.error._focus.boxShadow.value}"}},_hover:{borderColor:{value:"{components.button.outlined.error._hover.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._hover.backgroundColor.value}"},color:{value:"{components.button.outlined.error._hover.color.value}"}}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},phonenumberfield:{color:{value:"{components.fieldcontrol.color}"},borderColor:{value:"{components.fieldcontrol.borderColor}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}}},placeholder:{borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}},radio:{alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.background.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},radiogroup:{radio:{borderWidth:{value:"{components.radio.button.borderWidth}"},borderColor:{value:"{components.radio.button.borderColor}"},backgroundColor:{value:"{components.radio.button.backgroundColor}"},_checked:{color:{value:"{components.radio.button._checked.color}"}},label:{color:{value:"{components.radio.label.color}"}}},legend:{color:{value:"{components.fieldset.legend.color}"},fontWeight:{value:"{fontWeights.normal}"}}},rating:{large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}},searchfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},backgroundColor:{value:"{colors.background.primary.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},select:{color:{value:"{components.fieldcontrol.color}"},backgroundColor:{value:"{colors.background.primary.value}"},paddingInlineEnd:{value:"{space.xxl.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"},small:{right:{value:"{space.xs.value}"}},large:{right:{value:"{space.medium.value}"}}},option:{backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"}}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"},paddingInlineEnd:{value:"{space.xl.value}"}},large:{minWidth:{value:"7.5rem"},paddingInlineEnd:{value:"{space.xxl.value}"}},expanded:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},option:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"}}}},selectfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},color:{value:"{components.fieldcontrol.color}"},flexDirection:{value:"column"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}},label:{color:{value:"{components.field.label.color}"}}},sliderfield:{paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"9999px"}
2,height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.small.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.medium.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}},stepperfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},flexDirection:{value:"column"},input:{color:{value:"{components.fieldcontrol.color}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},textAlign:{value:"center"}},button:{color:{value:"{components.button.color}"},backgroundColor:{value:"{colors.transparent}"},_active:{color:{value:"{components.button._active.color}"},backgroundColor:{value:"{components.button._active.backgroundColor}"}},_focus:{color:{value:"{components.button._focus.color}"},backgroundColor:{value:"{components.button._focus.backgroundColor}"}},_disabled:{color:{value:"{components.button._disabled.color}"},backgroundColor:{value:"{components.fieldcontrol._disabled.backgroundColor}"}},_hover:{color:{value:"{components.button._hover.color}"},backgroundColor:{value:"{components.button._hover.backgroundColor}"}}}},storagemanager:{dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.storagemanager.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.storagemanager.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},switchfield:{_disabled:{opacity:{value:"{opacities.60.value}"}},_focused:{shadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},fontSize:{value:"{fontSizes.medium.value}"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},label:{padding:{value:"{space.xs.value}"}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.primary.80.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"},_error:{backgroundColor:{value:"{colors.background.error.value}"}}}},table:{borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}},tabs:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"}
2,gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.hover.value}"}},_focus:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"{borderWidths.medium}",color:"{colors.border.focus.value}"}},color:{value:"{colors.font.focus.value}"}},_active:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.font.interactive.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.interactive.value}"}},_disabled:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.disabled.value}"}}},panel:{backgroundColor:{value:"transparent"},paddingInline:{value:"0"},paddingBlock:{value:"{space.small.value}"}}},text:{color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}},textareafield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},textfield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},togglebutton:{borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.font.primary.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.font.primary.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{borderColor:{value:"{colors.border.pressed.value}"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.font.primary.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.primary.80.value}"},borderColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.background.primary.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.background.primary.value}"}},_hover:{borderColor:{value:"{colors.primary.60.value}"},backgroundColor:{value:"{colors.primary.60.value}"},boxShadow:{value:"{colors.primary.60.value}"},color:{value:"{colors.background.primary.value}"}}}},link:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"}},_hover:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.transparent.value}"}}}}},togglebuttongroup:{alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}},borderWidths:Iz,colors:Pz,fonts:{default:{variable:{value:"'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,\n 'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',\n sans-serif"},static:{value:"'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',\n 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif"}}},fontSizes:Rz,fontWeights:Dz,lineHeights:{small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}},opacities:Lz,outlineOffsets:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},outlineWidths:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},radii:Oz,shadows:{small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}}
2,space:Mz,time:jz,transforms:{slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}}},breakpoints:{values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},name:"default-theme"},Bz={Alert:{dismissButtonLabel:"Dismiss alert"},Autocomplete:{emptyText:"No options found",loadingText:"Loading options..."},Collection:{searchButtonLabel:"Search",searchNoResultsFound:"No results found"},Fields:{clearButtonLabel:"Clear input"},Message:{dismissLabel:"Dismiss message"},PaginationItem:{currentPageLabel:"Page",nextLabel:"Go to next page",pageLabel:"Go to page",previousLabel:"Go to previous page"},PhoneNumberField:{countryCodeLabel:"Country code"},SearchField:{searchButtonLabel:"Search"},PasswordField:{passwordIsHidden:"Password is hidden",passwordIsShown:"Password is shown",showPassword:"Show password"},StepperField:{increaseButtonLabel:"Increase to",decreaseButtonLabel:"Decrease to"}},Uz={backgroundColor:"colors",borderColor:"colors",borderWidth:"borderWidths",color:"colors",borderRadius:"radii",fontSize:"fontSizes",fontWeight:"fontWeights",fontFamily:"fonts",lineHeight:"lineHeights",opacity:"opacities",boxShadow:"shadows",transform:"transforms",left:"space",right:"space",top:"space",bottom:"space",height:"space",width:"space",letterSpacing:"space",margin:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",marginLeft:"space",marginRight:"space",marginTop:"space",marginBottom:"space",maxHeight:"space",maxWidth:"space",minHeight:"space",minWidth:"space",padding:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",paddingLeft:"space",paddingRight:"space",paddingTop:"space",paddingBottom:"space",gap:"space",columnGap:"space",rowGap:"space"},zz=e=>"string"===typeof e&&0===e.length,Hz=e=>null==e||zz(e),Wz=e=>Object.keys(e),Vz=(e,t,n)=>{if("string"!==typeof t)return t;if(t.includes(" "))return t.split(" ").map((t=>Vz(e,t,n))).join(" ");if(e in Uz){const r=t.split(".");let o=n[Uz[e]];for(let e=0;e<r.length&&o;e++)o=o[r[e]];return wz(o)?"var(--".concat(yz({path:[Uz[e],...r]}),")"):t}return t},Gz=e=>{let{breakpoint:t,breakpoints:n,values:r}=e,o={};const a=Wz(n).sort(((e,t)=>n[e]-n[t]));var i;return Array.isArray(r)?r.forEach(((e,t)=>{o[a[t]]=e})):"object"===typeof r&&(o=Wz(i=r).reduce(((e,t)=>t in Fz.breakpoints.values?{...e,[t]:i[t]}:e),{})),(e=>{let{breakpoint:t,breakpoints:n,values:r}=e;const o=r[t];if(void 0!==o)return o;const a=Wz(n).sort(((e,t)=>n[t]-n[e])),i=a.slice(a.indexOf(t));for(const s of i){const e=r[s];if(void 0!==e)return e}return null})({breakpoint:t,breakpoints:n,values:o})},qz="undefined"===typeof window?a.useEffect:a.useLayoutEffect,Yz=e=>{let{breakpoints:t,defaultBreakpoint:n}=e;const r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia?window.matchMedia:null,o=a.useMemo((()=>(e=>{let{breakpoints:t}=e;const n=Wz(t).sort(((e,n)=>t[n]-t[e]));return n.map(((e,r)=>{let o="";const a=t[e],i=n[r-1],s=i?t[i]-1:null;return a>=0&&(o="(min-width: ".concat(a,"px)")),null!==s&&(o&&(o+=" and "),o+="(max-width: ".concat(s,"px)")),{breakpoint:e,query:o,maxWidth:s,minWidth:a}}))})({breakpoints:t})),[t]),[i,s]=a.useState(n),l=a.useCallback(((e,t)=>{e&&s(t)}),[s]);return qz((()=>{if(!r)return;const e=o.map((e=>{let{query:t,breakpoint:n}=e;const o=r(t);l(o.matches,n);const a=e=>{e.matches&&s(n)};return o.addEventListener("change",a),()=>o.removeEventListener("change",a)}));return()=>{e.forEach((e=>e()))}}),[t,s,r,o]),a.useDebugValue(i,(e=>e)),i};function Qz(e,t){return t?"".concat(e," { ").concat(Object.entries(t).map((e=>{let[t,n]=e;return"--".concat(t,":").concat(n,"; ")})).join(" "),"}\n"):""}function Xz(e,t){let n="";const{_modifiers:r={},_element:o={},_vars:a,...i}=t;if(Object.keys(i).length){const[t,r]=function(e,t){const n={},r={};return Object.entries(e).forEach((e=>{let[o,a]=e;t(o)?n[o]=a:r[o]=a})),[n,r]}(i,(e=>e.startsWith(":")||e.startsWith("[")));Object.entries(t).forEach((t=>{let[r,o]=t;const{_modifiers:a={},_element:i={},_vars:s,...l}=o;n+="".concat(e).concat(r," { ").concat(vz(l)," }\n"),n+=Qz("".concat(e).concat(r),s)})),n+="".concat(e," { ").concat(vz(r)," }\n")}return n+=Qz(e,a),Object.entries(r).forEach((t=>{let[r,o]=t;o&&Object.keys(o).length&&(n+=Xz("".concat(e,"--").concat(r),o))}
2)),Object.entries(o).forEach((t=>{let[r,o]=t;o&&Object.keys(o).length&&(n+=Xz("".concat(e,"__").concat(r),o))})),n}function Kz(e){let{keys:t,value:n}=e;return t.reduce(((e,t)=>({...e,[t]:{value:"{colors.".concat(n,".").concat(t,".value}")}})),{})}function Jz(e){const t=_z([{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fz,{...e,components:{}}]),{primaryColor:n,secondaryColor:r}=t;Au(n)&&(t.tokens.colors.primary=Kz({keys:Object.keys(t.tokens.colors[n]),value:n})),Au(r)&&(t.tokens.colors.secondary=Kz({keys:Object.keys(t.tokens.colors[r]),value:r}));const o=Tz({tokens:t.tokens,setupToken:Sz}),{breakpoints:a,name:i}=t;let s='[data-amplify-theme="'.concat(i,'"] {\n')+kz(o).map((e=>"".concat(e.name,": ").concat(e.value,";"))).join("\n")+"\n}\n";null!==e&&void 0!==e&&e.components&&(s+=function(e){let{theme:t,components:n}=e,r="";const{tokens:o,name:a,breakpoints:i}=t;return n.forEach((e=>{let{name:t,theme:n,overrides:s}=e;const l="amplify-".concat(t),c='[data-amplify-theme="'.concat(a,'"] .').concat(l),u=wu(n)?n(o):n;r+=Xz(c,u),s&&s.forEach((e=>{const t=wu(e.theme)?e.theme(o):e.theme;if("mediaQuery"in e&&(r+="@media (".concat(e.mediaQuery,") {\n ").concat(Xz(c,t)," \n}")),"breakpoint"in e){const n=i.values[e.breakpoint];r+="\n@media (min-width: ".concat(n,"px) {\n ").concat(Xz(c,t)," \n}")}"selector"in e&&(r+=Xz("".concat(e.selector," .").concat(l),t)),"colorMode"in e&&(r+="\n@media (prefers-color-scheme: ".concat(e.colorMode,") {\n").concat(Xz('[data-amplify-theme="'.concat(a,'"][data-amplify-color-mode="system"] .').concat(l),t),"\n}\n"),r+=Xz('[data-amplify-theme="'.concat(a,'"][data-amplify-color-mode="').concat(e.colorMode,'"] .').concat(l),t))}))})),r}({theme:{...t,tokens:o},components:e.components}));let l=[];return t.animations&&(s+=function(e){let{animations:t,tokens:n}=e,r="";return Object.entries(t).forEach((e=>{let[t,o]=e;r+="\n @keyframes ".concat(t," {"),Object.entries(o).forEach((e=>{let[t,o]=e;r+="\n ".concat(t," {\n");const a=wu(o)?o(n):o;r+=vz(a),r+="\n }"})),r+="\n }"})),r}({animations:t.animations,tokens:o})),t.overrides&&(l=t.overrides.map((e=>{const n=Tz({tokens:e.tokens,setupToken:Sz}),r=kz(n).map((e=>"".concat(e.name,": ").concat(e.value,";"))).join("\n");if("selector"in e&&(s+="\n".concat(e.selector," {\n").concat(r,"\n}\n")),"mediaQuery"in e&&(s+="\n@media (".concat(e.mediaQuery,') {\n [data-amplify-theme="').concat(i,'"] {\n ').concat(r,"\n }\n}\n")),"breakpoint"in e){const n=t.breakpoints.values[e.breakpoint];s+="\n@media (min-width: ".concat(n,'px) {\n [data-amplify-theme="').concat(i,'"] {\n ').concat(r,"\n }\n}\n")}return"colorMode"in e&&(s+="\n@media (prefers-color-scheme: ".concat(e.colorMode,') {\n [data-amplify-theme="').concat(i,'"][data-amplify-color-mode="system"] {\n ').concat(r,"\n color-scheme: ").concat(e.colorMode,";\n }\n }\n"),s+='\n[data-amplify-theme="'.concat(i,'"][data-amplify-color-mode="').concat(e.colorMode,'"] {\n ').concat(r,"\n color-scheme: ").concat(e.colorMode,";\n }\n")),{...e,tokens:n}}))),{tokens:o,breakpoints:a,name:i,cssText:s,containerProps:function(){let{colorMode:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-amplify-theme":i,"data-amplify-color-mode":e}},overrides:l}}const Zz=a.createContext({theme:Jz(),colorMode:void 0}),$z=()=>(e=>"undefined"===typeof e||"undefined"===typeof e.theme?Jz():e.theme)(a.useContext(Zz)),eH=e=>"auto"===e?"auto":"span ".concat(e),tH=e=>(e=>"auto"===e||"number"===typeof e&&!isNaN(e)||"string"===typeof e&&!isNaN(parseFloat(e)))(e)?eH(e):Array.isArray(e)?e.map((e=>eH(e))):"object"===typeof e&&null!=e?Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:eH(r)}
2}),{}):null,nH=e=>{let{props:t={},style:n={},breakpoint:r,breakpoints:o,tokens:a}=e;const i={};return Object.keys(t).filter((e=>null!==t[e])).forEach((e=>{if(e in Nz){const i=t[e];if(null===i||void 0===i||zz(i))return;const s=Nz[e];let l="";wz(i)?l=i.toString():"string"===typeof i?l=Vz(e,i,a):"number"===typeof i?l=i:"object"===typeof i&&(l=(e=>{let{value:t,propKey:n,tokens:r}=e;return wz(t)?t.toString():Au(t)?Au(n)?Vz(n,t,r):t:null})({propKey:e,tokens:a,value:Gz({values:i,breakpoint:r,breakpoints:o})})),n={...n,[s]:l}}else"undefined"!==typeof t[e]&&(i[e]=t[e])})),{propStyles:n,nonStyleProps:i}},rH=(e,t)=>{const{breakpoints:{values:n,defaultBreakpoint:r},tokens:o}=$z(),i=Yz({breakpoints:n,defaultBreakpoint:r}),s=(e=>{const{rowSpan:t,columnSpan:n,row:r,column:o,...i}=e,{rowFromSpanValue:s,columnFromSpanValue:l}=a.useMemo((()=>({rowFromSpanValue:tH(t),columnFromSpanValue:tH(n)})),[t,n]);return{row:Hz(r)?s:r,column:Hz(o)?l:o,...i}})(e);return a.useMemo((()=>nH({props:s,style:t,breakpoint:i,breakpoints:n,tokens:o})),[s,t,n,i,o])},oH=dz(((e,t)=>{let{as:n="div",children:r,testId:o,ariaLabel:i,isDisabled:s,style:l,inert:c,...u}=e;const{propStyles:d,nonStyleProps:p}=rH(u,l);return a.createElement(n,{"aria-label":i,"data-testid":o,disabled:s,ref:t,inert:c?"":null,style:d,...p},r)}));oH.displayName="View";const aH=dz(((e,t)=>{let{className:n,children:r,...o}=e;return a.createElement(oH,{className:hU(BU,n),ref:t,...o},r)}));aH.displayName="Flex";const iH=84*Math.PI,sH=dz(((e,t)=>{let{className:n,filledColor:r,emptyColor:o,size:i,variation:s,isDeterminate:l=!1,isPercentageTextHidden:c=!1,percentage:u=0,...d}=e;u=Math.min(u,100),u=Math.max(u,0);const p="".concat(u,"%"),h=hU(VU,Eu(VU,i),Eu(VU,s),Cu(VU,"determinate",l),n),f=a.createElement("g",null,a.createElement("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(o)},"data-testid":"linear-empty"}),a.createElement("line",{x1:"0",x2:l?p:"100%",y1:"50%",y2:"50%",style:{stroke:l&&0===u?"none":r?String(r):void 0},"data-testid":"linear-filled"}),l?a.createElement("text",{"aria-live":"polite",className:hU(GU,c?uz:null),x:"".concat(-1+u,"%"),y:"200%"},p):null),m=a.createElement("g",null,a.createElement("circle",{cx:"50%",cy:"50%",r:"".concat(42,"%"),strokeWidth:"".concat(8,"%"),style:{stroke:String(o)},"data-testid":"circular-empty"}),a.createElement("circle",{cx:"50%",cy:"50%",r:"".concat(42,"%"),strokeWidth:"".concat(8,"%"),style:{stroke:String(r),strokeDasharray:l?"".concat(iH,"% ").concat(iH,"%"):void 0,strokeDashoffset:l?"".concat(iH-iH*u/100,"%"):void 0},"data-testid":"circular-filled"}),l?a.createElement("text",{"aria-live":"polite",className:hU(GU,c?uz:null),x:"130%",y:"80%"},p):null);return a.createElement(oH,{as:"svg",className:h,ref:t,role:"img",...d},"linear"===s?f:m)}));sH.displayName="Loader";const lH=["link","primary",void 0],cH=dz(((e,t)=>{var n;let{className:r,children:o,colorTheme:i,isFullWidth:s=!1,isDisabled:l,isLoading:c,loadingText:u="",size:d,type:p="button",variation:h,...f}=e;const m=lH.includes(h)&&i?"".concat(null!==h&&void 0!==h?h:"outlined","--").concat(i):void 0,{isFieldsetDisabled:g}=hz(),A=g||(null!==(n=null!==l&&void 0!==l?l:c)&&void 0!==n?n:f.disabled),v=hU(yU,_U,Eu(yU,h),Eu(yU,m),Eu(yU,d),Cu(yU,"disabled",A),Cu(yU,"loading",c),Cu(yU,"fullwidth",s),r);return a.createElement(oH,{ref:t,as:"button",className:v,isDisabled:A,type:p,...f},c?a.createElement(aH,{as:"span",className:bU},a.createElement(sH,{size:d}),u||null):o)}));cH.displayName="Button";const uH={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},dH=dz(((e,t)=>{let{className:n,children:r,isTruncated:o,level:i=6,...s}=e;return a.createElement(oH,{as:uH[i],className:hU(UU,Eu(UU,i),Cu(UU,"truncated",o),n),ref:t,...s},r)}));dH.displayName="Heading";const pH=dz(((e,t)=>{let{as:n="p",className:r,children:o,isTruncated:i,variation:s,...l}=e;const c=hU(lz,Eu(lz,s),Cu(lz,"truncated",i),r);return a.createElement(oH,{as:n,className:c,ref:t,...l},o)}));pH.displayName="Text";const hH=e=>{const t=new FormData(e.target);return Object.fromEntries(t)};function fH(){const{submitForm:e,updateBlur:t,updateForm:n}=rd((e=>[e.submitForm,e.updateBlur,e.updateForm]));return{handleBlur:(0,a.useCallback)((e=>{let{target:{name:n}}=e;t({name:n})}),[t]),handleChange:(0,a.useCallback)((e=>{let{target:{checked:t,name:r,type:o,value:a}}=e;n({name:r,value:"checkbox"===o&&!t?void 0:a})}),[n]),handleSubmit:(0,a.useCallback)((t=>{t.preventDefault(),e(hH(t))}),[e])}}const mH=a.createContext({});function gH(e){const t=a.useContext(mH);if(e&&t)return t[e]}
2const AH=e=>{const{className:t,...n}=e;return a.createElement(oH,{as:"span",width:"1em",height:"1em",className:hU(zU,t),...n},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"currentColor"})))},vH=e=>{const{className:t,...n}=e;return a.createElement(oH,{as:"span",width:"1em",height:"1em",className:hU(zU,t),...n},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})))},yH=e=>{const{className:t,...n}=e;return a.createElement(oH,{as:"span",width:"1em",height:"1em",className:hU(zU,t),...n},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})))},bH=e=>{const{className:t,...n}=e;return a.createElement(oH,{as:"span",width:"1em",height:"1em",className:hU(zU,t),...n},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))},xH=e=>{var t,n,r,o;let{variation:i,ariaHidden:s,ariaLabel:l,role:c}=e;const u=gH("alert");let d;switch(i){case"info":d=null!==(t=null===u||void 0===u?void 0:u.info)&&void 0!==t?t:a.createElement(yH,{"aria-hidden":s,"aria-label":l,role:c});break;case"error":d=null!==(n=null===u||void 0===u?void 0:u.error)&&void 0!==n?n:a.createElement(vH,{"aria-hidden":s,"aria-label":l,role:c});break;case"warning":d=null!==(r=null===u||void 0===u?void 0:u.warning)&&void 0!==r?r:a.createElement(bH,{"aria-hidden":s,"aria-label":l,role:c});break;case"success":d=null!==(o=null===u||void 0===u?void 0:u.success)&&void 0!==o?o:a.createElement(AH,{"aria-hidden":s,"aria-label":l,role:c})}return d?a.createElement("span",{className:mU},d):null};xH.displayName="AlertIcon";const wH=e=>{const{className:t,size:n,...r}=e;return a.createElement(oH,{as:"span",width:null!==n&&void 0!==n?n:"1em",height:null!==n&&void 0!==n?n:"1em",className:hU(zU,t),...r},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n?{width:n,height:n}:void 0},a.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})))},EH=dz(((e,t)=>{var n;let{buttonRef:r,children:o,className:i,dismissButtonLabel:s=Bz.Alert.dismissButtonLabel,hasIcon:l=!0,heading:c,isDismissible:u=!1,onDismiss:d,variation:p,...h}=e;const[f,m]=a.useState(!1),g=gH("alert"),A=a.useCallback((()=>{m(!f),wu(d)&&d()}),[m,d,f]);return f?null:a.createElement(aH,{className:hU(fU,i,Eu(fU,p)),ref:t,role:"alert",...h},l&&a.createElement(xH,{variation:p,ariaHidden:!0}),a.createElement(oH,{flex:"1"},c&&a.createElement(oH,{className:gU},c),a.createElement(oH,{className:AU},o)),u&&a.createElement(cH,{ariaLabel:s,variation:"link",className:vU,onClick:A,ref:r},null!==(n=null===g||void 0===g?void 0:g.close)&&void 0!==n?n:a.createElement(wH,{"aria-hidden":"true"})))}));EH.displayName="Alert";const CH=()=>{const{error:e}=rd((e=>[e.error]));return a.createElement(a.Fragment,null,e?a.createElement(EH,{variation:"error",isDismissible:!0},Hu(e)):null)},SH=dz(((e,t)=>{let{as:n="span",children:r,className:o,...i}=e;return a.createElement(oH,{as:n,className:hU(uz,o),ref:t,...i},r)}));SH.displayName="VisuallyHidden";
2const TH=e=>{const{className:t,...n}=e;return a.createElement(oH,{as:"span",width:"1em",height:"1em",className:hU(zU,t),...n},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M12 6.0002C15.79 6.0002 19.17 8.1302 20.82 11.5002C20.23 12.7202 19.4 13.7702 18.41 14.6202L19.82 16.0302C21.21 14.8002 22.31 13.2602 23 11.5002C21.27 7.1102 17 4.0002 12 4.0002C10.73 4.0002 9.51 4.2002 8.36 4.5702L10.01 6.2202C10.66 6.0902 11.32 6.0002 12 6.0002ZM10.93 7.14019L13 9.2102C13.57 9.4602 14.03 9.9202 14.28 10.4902L16.35 12.5602C16.43 12.2202 16.49 11.8602 16.49 11.4902C16.5 9.0102 14.48 7.0002 12 7.0002C11.63 7.0002 11.28 7.05019 10.93 7.14019ZM2.01 3.8702L4.69 6.5502C3.06 7.8302 1.77 9.5302 1 11.5002C2.73 15.8902 7 19.0002 12 19.0002C13.52 19.0002 14.98 18.7102 16.32 18.1802L19.74 21.6002L21.15 20.1902L3.42 2.4502L2.01 3.8702ZM9.51 11.3702L12.12 13.9802C12.08 13.9902 12.04 14.0002 12 14.0002C10.62 14.0002 9.5 12.8802 9.5 11.5002C9.5 11.4502 9.51 11.4202 9.51 11.3702V11.3702ZM6.11 7.97019L7.86 9.7202C7.63 10.2702 7.5 10.8702 7.5 11.5002C7.5 13.9802 9.52 16.0002 12 16.0002C12.63 16.0002 13.23 15.8702 13.77 15.6402L14.75 16.6202C13.87 16.8602 12.95 17.0002 12 17.0002C8.21 17.0002 4.83 14.8702 3.18 11.5002C3.88 10.0702 4.9 8.89019 6.11 7.97019Z",fill:"currentColor"})))},kH=e=>{const{className:t,...n}=e;return a.createElement(oH,{as:"span",width:"1em",height:"1em",className:hU(zU,t),...n},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M12 6C15.79 6 19.17 8.13 20.82 11.5C19.17 14.87 15.79 17 12 17C8.21 17 4.83 14.87 3.18 11.5C4.83 8.13 8.21 6 12 6ZM12 4C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19C17 19 21.27 15.89 23 11.5C21.27 7.11 17 4 12 4ZM12 9C13.38 9 14.5 10.12 14.5 11.5C14.5 12.88 13.38 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 10.12 10.62 9 12 9ZM12 7C9.52 7 7.5 9.02 7.5 11.5C7.5 13.98 9.52 16 12 16C14.48 16 16.5 13.98 16.5 11.5C16.5 9.02 14.48 7 12 7Z",fill:"currentColor"})))},{passwordIsHidden:_H,passwordIsShown:NH,showPassword:IH}=Bz.PasswordField,PH=dz(((e,t)=>{var n,r;let{fieldType:o,passwordIsHiddenLabel:i=_H,passwordIsShownLabel:s=NH,showPasswordButtonLabel:l=IH,size:c,hasError:u,...d}=e;const p=gH("passwordField"),h=hU(OU,Cu(OU,"error",u)),f="password"===o?null!==(n=null===p||void 0===p?void 0:p.visibility)&&void 0!==n?n:a.createElement(kH,{"aria-hidden":"true"}):null!==(r=null===p||void 0===p?void 0:p.visibilityOff)&&void 0!==r?r:a.createElement(TH,{"aria-hidden":"true"});return a.createElement(cH,{"aria-checked":"password"!==o,ariaLabel:l,className:h,colorTheme:u?"error":void 0,ref:t,role:"switch",size:c,...d},a.createElement(SH,{"aria-live":"polite"},"password"===o?i:s),f)}));PH.displayName="ShowPasswordButton";const RH=e=>{let{descriptiveText:t,labelHidden:n,...r}=e;return t?a.createElement(pH,{"data-testid":"qa-field-description",className:hU(SU,{[uz]:n}),...r},t):null};RH.displayName="FieldDescription";const DH=e=>{let{errorMessage:t,hasError:n,...r}=e;return n&&t?a.createElement(pH,{className:TU,...r},t):null};DH.displayName="FieldErrorMessage";const LH=dz(((e,t)=>{let{children:n,className:r,innerEndComponent:o,innerStartComponent:i,orientation:s="horizontal",outerEndComponent:l,outerStartComponent:c,variation:u,...d}=e;const p=hU(kU,null!=i?LU:null,null!=o?DU:null,Eu(kU,s),r);return a.createElement(aH,{className:p,ref:t,...d},c&&a.createElement(oH,{className:hU(IU,Eu(IU,u))},c),a.createElement(oH,{className:hU(MU,Eu(MU,s))},i&&a.createElement(oH,{className:RU},i),n,o&&a.createElement(oH,{className:PU},o)),l&&a.createElement(oH,{className:hU(NU,Eu(NU,u))},l))}));LH.displayName="FieldGroup";const OH=dz(((e,t)=>{let{autoComplete:n,checked:r,className:o,defaultChecked:i,defaultValue:s,id:l,isDisabled:c,isReadOnly:u,isRequired:d,size:p,type:h="text",hasError:f=!1,value:m,variation:g,...A}=e;const v=hU(HU,_U,Eu(HU,g),Cu(HU,"error",f),Eu(HU,p),o),{isFieldsetDisabled:y}=hz();return a.createElement(oH,{"aria-invalid":f,as:"input",autoComplete:n,checked:r,className:v,defaultChecked:i,defaultValue:s,isDisabled:y||c,id:l,readOnly:u,ref:t,required:d,type:h,value:m,...A})}));OH.displayName="Input";const MH=dz(((e,t)=>{let{children:n,className:r,visuallyHidden:o,...i}=e;return a.createElement(oH,{as:"label",className:hU(WU,r,{[uz]:o}),ref:t,...i},n)}));MH.displayName="Label";const jH=e=>{const t={styleProps:{},rest:{}};return Object.keys(e).forEach((n=>{(e=>e in Nz)(n)?t.styleProps={...t.styleProps,[n]:e[n]}:t.rest={...t.rest,[n]:e[n]}})),t},FH=null!==globalThis&&void 0!==globalThis&&globalThis.document?a.useLayoutEffect:()=>{},BH=i["useId".toString()]||(()=>{});let UH=0;const zH=e=>{const[t,n]=a.useState(BH());return FH((()=>{e||n((e=>null!==e&&void 0!==e?e:String(UH++)))}),[e]),null!==e&&void 0!==e?e:t?"".concat("amplify-id","-").concat(t):""},HH=e=>{const t=e.filter((e=>void 0!==e)).join(" ");return t.length>0?t:void 0};"undefined"===typeof Symbol||!wu(Symbol.for)||Symbol.for("amplify_default");const WH="error",VH="description",GH=(e,t)=>e&&t?"".concat(e,"-").concat(t):void 0,qH=dz(((e,t)=>{const{className:n,descriptiveText:r,errorMessage:o,hasError:i=!1,id:s,innerEndComponent:l,innerStartComponent:c,label:u,labelHidden:d=!1,outerEndComponent:p,outerStartComponent:h,size:f,testId:m,variation:g,inputStyles:A,...v}=e,y=zH(s),b=zH(),x=r?GH(b,VH):void 0,w=i?GH(b,WH):void 0,E=HH([w,x]),{styleProps:C,rest:S}=jH(v);return a.createElement(aH,{className:hU(CU,Eu(CU,f),cz,n),testId:m,...C},a.createElement(MH,{htmlFor:y,visuallyHidden:d},u),a.createElement(RH,{id:x,labelHidden:d,descriptiveText:r}),a.createElement(LH,{outerStartComponent:h,outerEndComponent:p,innerStartComponent:c,innerEndComponent:l,variation:g},a.createElement(OH,{"aria-describedby":E,hasError:i,id:y,ref:t,size:f,variation:g,...A,...S})),a.createElement(DH,{id:w,hasError:i,errorMessage:o}))}));qH.displayName="TextField";const YH=dz(((e,t)=>{let{autoComplete:n="current-password",label:r,className:o,hideShowPassword:i=!1,passwordIsHiddenLabel:s,passwordIsShownLabel:l,showPasswordButtonLabel:c,showPasswordButtonRef:u,size:d,hasError:p,...h}=e;
2const[f,m]=a.useState("password"),g=a.useCallback((()=>{m("password"===f?"text":"password")}),[m,f]);return a.createElement(qH,{autoComplete:n,outerEndComponent:i?null:a.createElement(PH,{fieldType:f,onClick:g,passwordIsHiddenLabel:s,passwordIsShownLabel:l,ref:u,size:d,showPasswordButtonLabel:c,hasError:p}),size:d,type:f,label:r,className:hU(qU,o),ref:t,hasError:p,...h})}));YH.displayName="PasswordField";const QH=e=>{const{className:t,...n}=e;return a.createElement(oH,{as:"span",width:"1em",height:"1em",className:hU(zU,t),...n},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})))},XH=dz(((e,t)=>{var n;let{autoComplete:r,className:o,size:i,variation:s,value:l,defaultValue:c,hasError:u,icon:d,iconColor:p,children:h,placeholder:f,isDisabled:m,isRequired:g,isMultiple:A=!1,selectSize:v=1,...y}=e;const b=void 0===l&&void 0===c&&f,x=A||v>1,w=hU(ez,_U,Eu(ez,i),Eu(ez,s),Cu(ez,"error",u),Cu(ez,"expanded",x),o),E=gH("select"),{isFieldsetDisabled:C}=hz();return a.createElement(oH,{className:nz},a.createElement(oH,{"aria-invalid":u,as:"select",autoComplete:r,value:l,defaultValue:b?"":c,isDisabled:C||m,multiple:A,size:v,required:g,className:w,ref:t,...y},f&&a.createElement("option",{value:""},f),h),x?null:a.createElement(aH,{className:hU(rz,Eu(rz,i)),color:p,"aria-hidden":"true"},null!==(n=null!==d&&void 0!==d?d:null===E||void 0===E?void 0:E.expand)&&void 0!==n?n:a.createElement(QH,null)))}));XH.displayName="Select";const KH=dz(((e,t)=>{const{children:n,className:r,descriptiveText:o,errorMessage:i,hasError:s=!1,id:l,label:c,labelHidden:u=!1,options:d,size:p,testId:h,inputStyles:f,...m}=e,g=zH(l),A=zH(),v=o?GH(A,VH):void 0,y=s?GH(A,WH):void 0,b=HH([y,v]),{styleProps:x,rest:w}=jH(m);return a.createElement(aH,{className:hU(CU,Eu(CU,p),tz,r),testId:h,...x},a.createElement(MH,{htmlFor:g,visuallyHidden:u},c),a.createElement(RH,{id:v,labelHidden:u,descriptiveText:o}),a.createElement(XH,{"aria-describedby":b,hasError:s,id:g,ref:t,size:p,...w,...f},(e=>{let{children:t,options:n}=e;return t?(null!==n&&void 0!==n&&n.length&&console.warn("Amplify UI: <SelectField> component defaults to rendering children over `options`. When using the `options` prop, omit children."),t):null===n||void 0===n?void 0:n.map(((e,t)=>a.createElement("option",{label:e,value:e,key:"".concat(e,"-").concat(t)},e)))})({children:n,options:d})),a.createElement(DH,{id:y,hasError:s,errorMessage:i}))}));KH.displayName="SelectField";const JH=dz(((e,t)=>{let{className:n,dialCodeList:r,isReadOnly:o,...i}=e;const s=null!==r&&void 0!==r?r:ku,l=a.useMemo((()=>s.map((e=>a.createElement("option",{key:e,value:e,disabled:o},e)))),[s,o]);return a.createElement(KH,{"aria-disabled":o,autoComplete:"tel-country-code",className:hU(xU,wU,n),labelHidden:!0,ref:t,...i},l)}));JH.displayName="DialCodeSelect";const ZH=dz(((e,t)=>{let{autoComplete:n="tel-national",className:r,defaultDialCode:o,dialCodeLabel:i=Bz.PhoneNumberField.countryCodeLabel,dialCodeList:s,dialCodeName:l,dialCodeRef:c,hasError:u,isDisabled:d,isReadOnly:p,onDialCodeChange:h,onInput:f,size:m,variation:g,...A}=e;return a.createElement(qH,{outerStartComponent:a.createElement(JH,{defaultValue:o,dialCodeList:s,className:r,hasError:u,isDisabled:d,isReadOnly:p,label:i,name:l,onChange:h,ref:c,size:m,variation:g}),autoComplete:n,className:hU(YU,r),hasError:u,isDisabled:d,isReadOnly:p,onInput:f,ref:t,size:m,type:"tel",variation:g,...A})}));ZH.displayName="PhoneNumberField";const $H=e=>{let{errors:t,id:n,dataAttr:r}=e;if(!((null===t||void 0===t?void 0:t.length)>0))return null;const o=r?{[r]:!0}:{};return a.createElement(oH,{...o,id:n},t.map((e=>a.createElement(pH,{key:e,role:"alert",variation:"error"},Hu(e)))))};function eW(e){let{autocomplete:t,dialCode:n,name:r,type:o,...i}=e;const{validationErrors:s}=rd((e=>{let{validationErrors:t}=e;return[t]})),l=a.useMemo((()=>Pu(s[r])),[r,s]),c=(null===l||void 0===l?void 0:l.length)>0,u=zH(),d=c?u:void 0;return"tel"===o?a.createElement(a.Fragment,null,a.createElement(ZH,{...i,name:r,defaultDialCode:n,dialCodeName:"country_code",autoComplete:t,hasError:c,"aria-describedby":d}),a.createElement($H,{dataAttr:"data-amplify-sign-up-errors",errors:l,id:u})):"password"===o?a.createElement(a.Fragment,null,a.createElement(YH,{...i,name:r,autoCapitalize:"off",autoComplete:t,hasError:c,"aria-describedby":d}),a.createElement($H,{dataAttr:"data-amplify-sign-up-errors",errors:l,id:u})):a.createElement(a.Fragment,null,a.createElement(qH,{...i,name:r,autoCapitalize:"off",autoComplete:t,hasError:c,type:o,"aria-describedby":d}),a.createElement($H,{dataAttr:"data-amplify-sign-up-errors",errors:l,id:u}))}function tW(){const{fields:e}=rd((e=>{let{route:t}=e;return[t]})),t=a.useRef(e.map(((e,t)=>a.createElement(eW,{key:t,...e})))).current;return a.createElement(a.Fragment,null,t)}const nW=e=>"signIn"===e||"signUp";function rW(e){let{children:t,className:n,variation:r="default"}=e;const{route:o}=rd((e=>{let{route:t}=e;return[t]})),{components:{Header:i,Footer:s}}=uU();return a.createElement(oH,{className:n,"data-amplify-authenticator":"","data-variation":r},a.createElement(oH,{"data-amplify-container":""},a.createElement(i,null),a.createElement(oH,{"data-amplify-router":"","data-amplify-router-content":nW(o)?void 0:""},t),a.createElement(s,null)))}const{getDeliveryMessageText:oW,getDeliveryMethodText:aW,getConfirmingText:iW,getConfirmText:sW,getResendCodeText:lW}=pU;function cW(e){let{className:t,variation:n}=e;const{isPending:r,resendCode:o,codeDeliveryDetails:i}=rd((e=>[e.isPending,e.resendCode,e.codeDeliveryDetails])),{handleChange:s,handleSubmit:l}=fH(),{components:{ConfirmSignUp:{Header:c=cW.Header,Footer:u=cW.Footer}}}=uU();return a.createElement(rW,{className:t,variation:n},a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignup":"",method:"post",onCh
2ange:s,onSubmit:l},a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:r},a.createElement(c,null),a.createElement(aH,{direction:"column"},a.createElement(pH,{className:"amplify-authenticator__subtitle"},oW(i)),a.createElement(tW,null),a.createElement(CH,null),a.createElement(cH,{variation:"primary",isDisabled:r,type:"submit",loadingText:iW(),isLoading:r},sW()),a.createElement(cH,{onClick:o,type:"button"},lW())),a.createElement(u,null))))}cW.Header=()=>{const{codeDeliveryDetails:e}=rd((e=>[e.codeDeliveryDetails]));return a.createElement(dH,{level:4},aW(e))},cW.Footer=function(){return null};const{getChangePasswordText:uW,getChangingText:dW,getBackToSignInText:pW}=pU,hW=e=>{let{className:t,variation:n}=e;const{isPending:r,toSignIn:o}=rd((e=>[e.isPending,e.toSignIn])),{handleBlur:i,handleChange:s,handleSubmit:l}=fH(),{components:{ForceNewPassword:{FormFields:c=hW.FormFields,Header:u=hW.Header,Footer:d=hW.Footer}}}=uU();return a.createElement(rW,{className:t,variation:n},a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forcenewpassword":"",method:"post",onChange:s,onSubmit:l,onBlur:i},a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:r},a.createElement(u,null),a.createElement(c,null),a.createElement(CH,null),a.createElement(cH,{isDisabled:r,type:"submit",variation:"primary",isLoading:r,loadingText:dW()},uW()),a.createElement(cH,{onClick:o,type:"button",variation:"link",size:"small"},pW()),a.createElement(d,null))))};hW.FormFields=function(){return a.createElement(tW,null)},hW.Header=function(){return a.createElement(dH,{level:4},uW())},hW.Footer=function(){return null};var fW=n(8970);const{getConfirmText:mW,getConfirmingText:gW,getBackToSignInText:AW}=pU,vW=()=>{const{isPending:e,toSignIn:t}=rd((e=>[e.isPending,e.toSignIn]));return a.createElement(aH,{direction:"column"},a.createElement(cH,{isDisabled:e,type:"submit",variation:"primary",isLoading:e,loadingText:gW()},mW()),a.createElement(cH,{onClick:t,type:"button",variation:"link",size:"small"},AW()))},yW=new Il("SetupTotp-logger"),{getSetupTotpText:bW,getCopiedText:xW,getLoadingText:wW}=pU,EW=e=>{let{className:t,variation:n}=e;const{totpSecretCode:r,isPending:o,username:i,QRFields:s}=rd((e=>[e.isPending,e.totpSecretCode,e.username])),{handleChange:l,handleSubmit:c}=fH(),{components:{SetupTotp:{Header:u=EW.Header,Footer:d=EW.Footer}}}=uU(),[p,h]=a.useState(!0),[f,m]=a.useState(),[g,A]=a.useState("COPY"),{totpIssuer:v="AWSCognito",totpUsername:y=i}=null!==s&&void 0!==s?s:{},b=a.useCallback((async()=>{try{const e=((e,t,n)=>encodeURI("otpauth://totp/".concat(e,":").concat(t,"?secret=").concat(n,"&issuer=").concat(e)))(v,y,r),t=await fW.toDataURL(e);m(t)}catch(e){yW.error(e)}finally{h(!1)}}),[v,y,r]);a.useEffect((()=>{f||b()}),[b,f]);return a.createElement(rW,{className:t,variation:n},a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-totp":"",method:"post",onChange:l,onSubmit:c},a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:o},a.createElement(u,null),a.createElement(aH,{direction:"column"},p?a.createElement("p",null,wW(),"\u2026"):a.createElement("img",{"data-amplify-qrcode":!0,src:f,alt:"qr code",width:"228",height:"228"}),a.createElement(aH,{"data-amplify-copy":!0},a.createElement("div",null,r),a.createElement(aH,{"data-amplify-copy-svg":!0,onClick:()=>{navigator.clipboard.writeText(r),A(xW())}},a.createElement("div",{"data-amplify-copy-tooltip":!0},g),a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})))),a.createElement(tW,null),a.createElement(CH,null)),a.createElement(vW,null),a.createElement(d,null))))};EW.Header=function(){return a.createElement(dH,{level:3},bW())},EW.Footer=function(){return null};const CW=a.createContext({groupId:"",activeTab:"",setActiveTab:()=>{}}),SW=dz(((e,t)=>{let{className:n,value:r,children:o,onClick:i,as:s="button",role:l="tab",...c}=e;const{activeTab:u,setActiveTab:d,groupId:p}=a.useContext(CW);let h=r;"string"===typeof h&&(h=h.replace(" ","-"));const f=u===r;return a.createElement(oH,{...c,role:l,as:s,id:"".concat(p,"-tab-").concat(h),"aria-selected":f,"aria-controls":"".concat(p,"-panel-").concat(h),tabIndex:f?void 0:-1,className:hU(iz,Cu(iz,"active",u===r),n),ref:t,onClick:e=>{wu(i)&&(null===i||void 0===i||i(e)),d(r)}},o)}));SW.displayName="Tabs.Item";const TW=dz(((e,t)=>{let{className:n,children:r,indicatorPosition:o,spacing:i,role:s="tablist",...l}=e;const c=a.useRef(null),{activeTab:u,setActiveTab:d}=a.useContext(CW);a.useImperativeHandle(t,(()=>c.current));const p=a.useMemo((()=>a.Children.toArray(r).map((e=>{if(e&&(e=>a.isValidElement(e))(e))return e.props.value})).filter((e=>!!e))),[r]),h=p.indexOf(u),f=a.useCallback((()=>{var e,t;let n=h===p.length-1?0:h+1;const r=null!==(e=null===(t=c.current)||void 0===t?void 0:t.querySelectorAll("button"))&&void 0!==e?e:[];for(;r[n].disabled;)n===p.length-1?n=0:n++;const o=p[n];if(o){d(o);const e=r[n];null===e||void 0===e||e.focus(),null===e||void 0===e||e.click()}}),[h,d,p]),m=a.useCallback((()=>{var e,t;let n=0===h?p.length-1:h-1;const r=null!==(e=null===(t=c.current)||void 0===t?void 0:t.querySelectorAll("button"))&&void 0!==e?e:[];for(;r[n].disabled;)0===n?n=p.length-1:n--;const o=p[n];if(o){d(o);const e=r[n];null===e||void 0===e||e.focus(),null===e||void 0===e||e.click()}}),[h,d,p]),g=a.useCallback((e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),e.stopPropagation(),m();break;case"ArrowUp":case"ArrowRight":e.preventDefault(),e.stopPropagation(),f()}}),[m,f]);return a.createElement(oH,{...l,role:s,onKeyDown:g,className:hU(az,o?Eu(az,o):null,i?Eu(az,i):null,n),ref:c},r)}));TW.displayName="Tabs.List";const kW=dz(((e,t)=>{let{className:n,value:r,children:o,role:i="tabpanel",...s}=e;const{activeTab:l,isLazy:c,groupId:u}=a.useContext(CW);if(c&&l!==r)return null;let d=r;return"string"===typeof d&&(d=d.replace(" ","-")),a.createElement(oH,{...s,role:i,id:"".concat(u,"-panel-").concat(d),"aria-labelledby":"".concat(u,"-tab-").concat(d),className:hU(sz,Cu(sz,"active",l===r),n),ref:t},o)}));kW.displayName="Tabs.Panel";const _W=dz(((e,t)=>{let{children:n,defaultValue:r,className:o,value:i,onValueChange:s,isLazy:l,...c}=e;
2const u=zH(),d=void 0!==i,[p,h]=a.useState((()=>d?i:r)),f=d?i:null!==p&&void 0!==p?p:"",m=a.useCallback((e=>{wu(s)&&s(e),d||h(e)}),[s,d]),g=a.useMemo((()=>({activeTab:f,isLazy:l,setActiveTab:m,groupId:u})),[f,m,l,u]);return a.createElement(CW.Provider,{value:g},a.createElement(oH,{...c,ref:t,className:hU(o,oz)},n))}));_W.displayName="Tabs.Container";const NW=Object.assign(dz(((e,t)=>{let{items:n,indicatorPosition:r,justifyContent:o,spacing:i,...s}=e;return a.createElement(_W,{...s,ref:t},a.createElement(TW,{indicatorPosition:r,justifyContent:o,spacing:i},null===n||void 0===n?void 0:n.map((e=>{let{value:t,label:n,content:r,...o}=e;return a.createElement(SW,{...o,key:t,value:t},n)}))),null===n||void 0===n?void 0:n.map((e=>{let{value:t,content:n,isDisabled:r}=e;return a.createElement(kW,{key:t,value:t,isDisabled:r},n)})))})),{Item:SW,List:TW,Panel:kW,Container:_W});var IW,PW;NW.displayName="Tabs",function(e){e.Apple="Apple",e.Amazon="Amazon",e.Facebook="Facebook",e.Google="Google"}(IW||(IW={})),function(e){e.Email="email",e.PhoneNumber="phone_number"}(PW||(PW={}));const RW=dz(((e,t)=>{let{className:n,orientation:r="horizontal",size:o,label:i,...s}=e;const l=hU(EU,Eu(EU,r),Eu(EU,o),n);return a.createElement(oH,{"aria-orientation":r,as:"hr",className:l,"data-label":i,ref:t,...s})}));RW.displayName="Divider";const DW={minX:0,minY:0,width:24,height:24},LW=dz(((e,t)=>{let{className:n,as:r="svg",fill:o="currentColor",pathData:i,viewBox:s=DW,children:l,paths:c,...u}=e;const d=s.minX?s.minX:DW.minX,p=s.minY?s.minY:DW.minY,h=s.width?s.width:DW.width,f=s.height?s.height:DW.height;let m;return l&&(m=l),c&&(m=c.map(((e,t)=>a.createElement("path",{...e,key:t})))),i&&(m=a.createElement("path",{d:i,fill:o})),a.createElement(oH,{as:r,className:hU(zU,n),ref:t,viewBox:"".concat(d," ").concat(p," ").concat(h," ").concat(f),...u},m)}));LW.displayName="Icon";const OW=()=>a.createElement("svg",{"aria-label":"Apple icon",className:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})),MW=()=>a.createElement("svg",{"aria-label":"Google icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},a.createElement("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),a.createElement("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),a.createElement("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),a.createElement("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})),jW=()=>a.createElement(LW,{className:"federated-sign-in-icon",ariaLabel:"Facebook icon",viewBox:{minX:0,minY:0,width:279,height:538},pathData:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"}),FW=()=>a.createElement("svg",{"aria-label":"Amazon icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 243 264",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},a.createElement("path",{d:"M230.826 208.039C227.468 203.683 208.551 205.982 200.056 206.998C197.471 207.321 197.076 205.042 199.407 203.405C214.475 192.665 239.201 195.766 242.082 199.364C244.966 202.982 241.337 228.071 227.173 240.049C225.001 241.888 222.93 240.904 223.898 238.468C227.077 230.431 234.205 212.419 230.826 208.039ZM123.769 264C71.0234 264 39.0764 241.955 14.7853 217.542C9.97339 212.706 3.71799 206.296 0.311513 200.691C-1.09773 198.372 2.59096 195.022 5.04421 196.844C35.239 219.268 79.1012 239.538 122.53 239.538C151.82 239.538 188.046 227.47 217.669 214.868C222.147 212.966 222.147 219.18 221.512 221.061C221.183 222.032 206.515 236.221 186.247 247.047C167.304 257.166 143.397 264 123.769 264Z",fill:"#F2541B"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.943 111.185C142.943 124.756 143.268 136.054 136.406 148.123C130.856 157.913 122.027 163.95 112.222 163.95C98.8288 163.95 90.9806 153.772 90.9806 138.693C90.9806 109.036 117.677 103.647 142.943 103.647V111.185ZM178.166 196.081C175.858 198.15 171.635 198.22 169.914 196.894C157.974 187.684 149.89 173.688 149.89 173.688C130.706 193.156 117.127 199 92.2879 199C62.8772 199 40 180.905 40 144.729C40 116.461 55.3552 97.2408 77.2563 87.823C96.2094 79.5256 122.684 78.0173 142.943 75.7517C142.943 75.7517 144.633 53.933 138.699 45.9806C134.098 39.8163 126.272 36.9329 119.089 36.9329C106.127 36.8829 93.61 43.9051 91.1262 57.4188C90.4136 61.2829 87.5533 64.5261 84.54 64.206L51.0823 60.5922C48.5156 60.2951 45.0381 57.6639 45.8636 53.3081C53.644 12.3684 90.7373 0 123.989 0C140.983 0 163.21 4.51651 176.608 17.3349C193.597 33.1648 191.969 54.2755 191.969 77.2722V131.51C191.969 147.835 198.768 154.987 205.151 163.775C207.376 166.953 207.886 170.714 205.04 173.032C197.902 178.999 178.166 196.081 178.166 196.081Z",fill:"#F2541B"})),BW=e=>{const{icon:t,provider:n,text:r}=e,{toFederatedSignIn:o}=rd();let i;return"facebook"===t?i=a.createElement(jW,null):"google"===t?i=a.createElement(MW,null):"amazon"===t?i=a.createElement(FW,null):"apple"===t&&(i=a.createElement(OW,null)),a.createElement(cH,{onClick:e=>{e.preventDefault(),o({provider:n})},className:"federated-sign-in-button",gap:"1rem"},i,a.createElement(pH,{as:"span"},r))},{getSignInWithFederationText:UW,getOrText:zW}=pU;function HW(){const{route:e,socialProviders:t}=rd((e=>{let{route:t,socialProviders:n}=e;return[t,n]}));return 0===t.length?null:a.createElement(aH,{direction:"column",padding:"0 0 1rem 0",className:"federated-sign-in-container"},t.map((t=>{switch(t){case"amazon":return a.createElement(BW,{icon:"amazon",key:t,provider:IW.Amazon,text:UW(e,t)});case"apple":return a.createElement(BW,{icon:"apple",key:t,provider:IW.Apple,text:UW(e,t)});case"facebook":return a.createElement(BW,{icon:"facebook",key:t,provider:IW.Facebook,text:UW(e,t)});case"google":return a.createElement(BW,{icon:"google",key:t,provider:IW.Google,text:UW(e,t)});default:console.error("Authenticator does not support ".concat(t,". Please open an issue: https://github.com/aws-amplify/amplify-ui/issues/choose"))}})),a.createElement(RW,{size:"small",label:zW()}))}const{getSignInText:WW,getSigningInText:VW,getForgotPasswordText:GW}=pU;function qW(){const{isPending:e}=rd((e=>[e.isPending])),{handleChange:t,handleSubmit:n}=fH(),{components:{SignIn:{Header:r=qW.Header,Footer:o=qW.Footer}}}=uU();
2return a.createElement(oH,null,a.createElement(r,null),a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signin":"",method:"post",onSubmit:n,onChange:t},a.createElement(HW,null),a.createElement(aH,{direction:"column"},a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:e},a.createElement(SH,null,a.createElement("legend",null,WW())),a.createElement(tW,null)),a.createElement(CH,null),a.createElement(cH,{isDisabled:e,type:"submit",variation:"primary",isLoading:e,loadingText:VW()},WW()),a.createElement(o,null))))}qW.Footer=()=>{const{toForgotPassword:e}=rd((e=>[e.toForgotPassword]));return a.createElement(oH,{"data-amplify-footer":""},a.createElement(cH,{onClick:e,size:"small",variation:"link"},GW()))},qW.Header=function(){return null};const{getCreateAccountText:YW,getCreatingAccountText:QW}=pU;function XW(){const{hasValidationErrors:e,isPending:t}=rd((e=>[e.hasValidationErrors,e.isPending])),{handleChange:n,handleBlur:r,handleSubmit:o}=fH(),{components:{SignUp:{Header:i=XW.Header,FormFields:s=XW.FormFields,Footer:l=XW.Footer}}}=uU();return a.createElement(oH,null,a.createElement(i,null),a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signup":"",method:"post",onChange:n,onSubmit:o,onBlur:r},a.createElement(HW,null),a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:t},a.createElement(aH,{direction:"column"},a.createElement(s,null),a.createElement(CH,null)),a.createElement(cH,{isDisabled:e||t,isFullWidth:!0,type:"submit",variation:"primary",isLoading:t,loadingText:QW()},YW()),a.createElement(l,null))))}XW.Header=function(){return null},XW.FormFields=function(){return a.createElement(tW,null)},XW.Footer=function(){return null};const{getSignInTabText:KW,getSignUpTabText:JW}=pU,ZW=e=>{let{className:t,hideSignUp:n,variation:r}=e;const{route:o,toSignIn:i,toSignUp:s}=rd((e=>[e.route,e.toSignIn,e.toSignUp]));return a.createElement(rW,{className:t,variation:r},n?a.createElement(oH,{"data-amplify-router-content":""},"signIn"===o&&a.createElement(qW,null)):a.createElement(NW.Container,{value:o,isLazy:!0,onValueChange:e=>{e!==o&&("signIn"===e?i():s())}},a.createElement(NW.List,{spacing:"equal",indicatorPosition:"top"},a.createElement(NW.Item,{value:"signIn"},KW()),a.createElement(NW.Item,{value:"signUp"},JW())),a.createElement(NW.Panel,{value:"signIn","data-amplify-router-content":""},a.createElement(qW,null)),a.createElement(NW.Panel,{value:"signUp","data-amplify-router-content":""},a.createElement(XW,null))))},{getSubmitText:$W,getSubmittingText:eV}=pU,tV=e=>{const{cancelButtonSendType:t,cancelButtonText:n,submitButtonText:r}=e,{isPending:o,resendCode:i,skipVerification:s,toSignIn:l}=rd((e=>[e.isPending])),c=o?a.createElement(a.Fragment,null,eV(),"\u2026"):a.createElement(a.Fragment,null,$W()),u=null!==r&&void 0!==r?r:c;return a.createElement(aH,{direction:"column"},a.createElement(cH,{variation:"primary",isDisabled:o,type:"submit"},u),a.createElement(aH,{direction:"column",alignItems:"center"},a.createElement(cH,{onClick:()=>{switch(t){case"SKIP":s();break;case"RESEND":i();break;case"SIGN_IN":l();break;default:return}},type:"button",variation:"link",size:"small"},n)))},{getAccountRecoveryInfoText:nV,getSkipText:rV}=pU,oV=e=>{let{className:t,variation:n}=e;const{isPending:r}=rd((e=>[e.isPending])),{handleChange:o,handleSubmit:i}=fH(),{components:{ConfirmVerifyUser:{Header:s=oV.Header,Footer:l=oV.Footer}}}=uU();return a.createElement(rW,{className:t,variation:n},a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmverifyuser":"",method:"post",onChange:o,onSubmit:i},a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:r},a.createElement(s,null),a.createElement(aH,{direction:"column"},a.createElement(tW,null)),a.createElement(CH,null),a.createElement(tV,{cancelButtonText:rV(),cancelButtonSendType:"SKIP"}),a.createElement(l,null))))};oV.Header=function(){return a.createElement(dH,{level:3},nV())},oV.Footer=function(){return null};const aV=a.createContext({name:"default"}),iV=dz(((e,t)=>{let{children:n,className:r,id:o,isDisabled:i=!1,testId:s,value:l,labelPosition:c,...u}=e;const{currentValue:d,defaultValue:p,name:h,hasError:f,isGroupDisabled:m=!1,isRequired:g,isReadOnly:A,onChange:v,size:y,labelPosition:b}=(0,a.useContext)(aV),{isFieldsetDisabled:x}=hz(),w=x||(m||i||A&&p!==l),E=void 0!==d?l===d:void 0,C=void 0!==p?l===p:void 0,S=c||b;return a.createElement(aH,{as:"label",className:hU(QU,Cu(QU,"disabled",w),S?"amplify-label-".concat(S):null,r)},n&&a.createElement(pH,{as:"span",className:hU(JU,Cu(JU,"disabled",w))},n),a.createElement(OH,{checked:E,className:hU(uz,KU),defaultChecked:C,hasError:f,id:o,isDisabled:w,isReadOnly:A,isRequired:g,onChange:v,ref:t,type:"radio",name:h,value:l,...u}),a.createElement(aH,{"aria-hidden":"true",as:"span",className:hU(XU,Eu(XU,y)),testId:s}))}));iV.displayName="Radio";const sV=dz(((e,t)=>{let{children:n,className:r,isDisabled:o,legend:i,legendHidden:s,size:l,testId:c,variation:u="plain",...d}=e;const{isFieldsetDisabled:p}
2=hz(),h=p||o,f=a.useMemo((()=>({isFieldsetDisabled:h})),[h]),m=hU(jU,Eu(jU,u),Eu(jU,l),r),g=hU(FU,Eu(FU,l),{[uz]:s});return a.createElement(pz.Provider,{value:f},a.createElement(aH,{as:"fieldset",className:m,ref:t,disabled:h,testId:c,...d},a.createElement(SH,{as:"legend"},i),a.createElement(oH,{as:"div","aria-hidden":"true",className:g},i),n))}));sV.displayName="Fieldset";const lV=dz(((e,t)=>{let{children:n,className:r,defaultValue:o,descriptiveText:i,errorMessage:s,hasError:l=!1,id:c,isDisabled:u,isRequired:d,isReadOnly:p,legend:h,legendHidden:f=!1,labelPosition:m,onChange:g,name:A,size:v,testId:y,value:b,variation:x,...w}=e;const E=zH(c),C=zH(),S=i?GH(C,VH):void 0,T=l?GH(C,WH):void 0,k=HH([T,S]),_=GH(y,$U),N=a.useMemo((()=>({currentValue:b,defaultValue:o,hasError:l,isRequired:d,isReadOnly:p,isGroupDisabled:u,onChange:g,size:v,name:A,labelPosition:m})),[o,l,u,d,p,g,v,A,b,m]);return a.createElement(sV,{className:hU(CU,Eu(CU,v),ZU,r),isDisabled:u,legend:h,legendHidden:f,ref:t,role:"radiogroup",size:v,testId:y,variation:x,...w},a.createElement(RH,{id:S,labelHidden:f,descriptiveText:i}),a.createElement(aH,{"aria-describedby":k,className:$U,id:E,testId:_},a.createElement(aV.Provider,{value:N},n)),a.createElement(DH,{id:T,hasError:l,errorMessage:s}))}));lV.displayName="RadioGroupField";const{getSkipText:cV,getVerifyText:uV,getVerifyContactText:dV,getAccountRecoveryInfoText:pV}=pU,hV=e=>{let{className:t,variation:n}=e;const{components:{VerifyUser:{Header:r=hV.Header,Footer:o=hV.Footer}}}=uU(),{isPending:i,unverifiedUserAttributes:s}=rd((e=>{let{isPending:t,unverifiedUserAttributes:n}=e;return[t,n]})),{handleChange:l,handleSubmit:c}=fH(),u=i?a.createElement(a.Fragment,null,"Verifying\u2026"):a.createElement(a.Fragment,null,uV()),d=a.createElement(lV,{legend:dV(),name:"verify_context",isDisabled:i,legendHidden:!0},(p=s,Object.entries(p).map(((e,t)=>{let[n,r]=e;const o=_u[n].label;return a.createElement(iV,{name:"unverifiedAttr",value:n,key:n,defaultChecked:0===t},Hu(o),":"," ",((e,t)=>"Phone Number"===e?(e=>{if(e.length<4)return e;const t=e.split("");for(let n=0;n<t.length-4;n++)t[n]="*";return t.join("")})(t):(e=>{const t=e.split("@"),n=(e=>{const t=e.trim().split("");for(let n=0;n<t.length;n++)n>0&&n<t.length-1&&(t[n]="*");return t.join("")})(t[0]);return"".concat(n,"@").concat(t[1])})(t))(o,r))}))));var p;return a.createElement(rW,{className:t,variation:n},a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-verifyuser":"",method:"post",onChange:l,onSubmit:c},a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:i},a.createElement(r,null),d,a.createElement(CH,null),a.createElement(tV,{cancelButtonText:cV(),cancelButtonSendType:"SKIP",submitButtonText:u}),a.createElement(o,null))))};hV.Header=function(){return a.createElement(dH,{level:3},pV())},hV.Footer=function(){return null};const{getChallengeText:fV}=pU,mV=e=>{let{className:t,variation:n}=e;const{isPending:r}=rd((e=>[e.isPending])),{handleChange:o,handleSubmit:i}=fH(),{components:{ConfirmSignIn:{Header:s=mV.Header,Footer:l=mV.Footer}}}=uU();return a.createElement(rW,{className:t,variation:n},a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignin":"",method:"post",onChange:o,onSubmit:i},a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:r},a.createElement(s,null),a.createElement(aH,{direction:"column"},a.createElement(tW,null),a.createElement(CH,null)),a.createElement(vW,null),a.createElement(l,null))))};mV.Header=function(){const{challengeName:e}=rd((e=>{let{challengeName:t}=e;return[t]}));return a.createElement(dH,{level:3},fV(e))},mV.Footer=function(){return null};const{getResendCodeText:gV,getResetYourPasswordText:AV}=pU,vV=e=>{let{className:t,variation:n}=e;const{isPending:r}=rd((e=>[e.isPending])),{handleBlur:o,handleChange:i,handleSubmit:s}=fH(),{components:{ConfirmResetPassword:{Header:l=vV.Header,Footer:c=vV.Footer}}}=uU();return a.createElement(rW,{className:t,variation:n},a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmresetpassword":"",method:"post",onSubmit:s,onChange:i,onBlur:o},a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:r},a.createElement(l,null),a.createElement(aH,{direction:"column"},a.createElement(tW,null)),a.createElement(CH,null),a.createElement(tV,{cancelButtonSendType:"RESEND",cancelButtonText:gV()}),a.createElement(c,null))))};vV.Header=function(){const e=AV();return a.createElement(dH,{level:3},e)},vV.Footer=function(){return null};
2const{getBackToSignInText:yV,getSendingText:bV,getSendCodeText:xV,getResetYourPasswordText:wV}=pU,EV=e=>{let{className:t,variation:n}=e;const{isPending:r}=rd((e=>[e.isPending])),{handleChange:o,handleSubmit:i}=fH(),{components:{ForgotPassword:{Header:s=EV.Header,Footer:l=EV.Footer}}}=uU();return a.createElement(rW,{className:t,variation:n},a.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forgotpassword":"",method:"post",onChange:o,onSubmit:i},a.createElement(aH,{as:"fieldset",direction:"column",isDisabled:r},a.createElement(s,null),a.createElement(aH,{direction:"column"},a.createElement(tW,null)),a.createElement(CH,null),a.createElement(tV,{cancelButtonText:yV(),cancelButtonSendType:"SIGN_IN",submitButtonText:r?a.createElement(a.Fragment,null,bV(),"\u2026"):a.createElement(a.Fragment,null,xV())}),a.createElement(l,null))))};EV.Header=function(){return a.createElement(dH,{level:3},wV())},EV.Footer=function(){return null};const CV=e=>"signIn"===e||"signUp"===e;function SV(){return null}const TV=e=>{switch(e){case"authenticated":case"idle":case"setup":case"transition":return SV;case"confirmSignUp":return cW;case"confirmSignIn":return mV;case"setupTotp":return EW;case"signIn":case"signUp":return ZW;case"forceNewPassword":return hW;case"forgotPassword":return EV;case"confirmResetPassword":return vV;case"verifyUser":return hV;case"confirmVerifyUser":return oV;default:return console.warn("Unhandled Authenticator route - please open an issue: ".concat(e)),SV}};function kV(e){let{className:t,hideSignUp:n,variation:r}=e;const{route:o}=rd((e=>{let{route:t}=e;return[t]})),i=(0,a.useMemo)((()=>TV(o)),[o]);return a.createElement(i,{className:t,hideSignUp:CV(o)?n:void 0,variation:r})}const _V={Header:()=>null,SignIn:{Header:qW.Header,Footer:qW.Footer},SignUp:{Header:XW.Header,FormFields:XW.FormFields,Footer:XW.Footer},ConfirmSignUp:{Header:cW.Header,Footer:cW.Footer},SetupTotp:{Header:EW.Header,Footer:EW.Footer},ConfirmResetPassword:{Header:vV.Header,Footer:vV.Footer},ConfirmSignIn:{Header:mV.Header,Footer:mV.Footer},VerifyUser:{Header:hV.Header,Footer:hV.Footer},ConfirmVerifyUser:{Header:oV.Header,Footer:oV.Footer},ForceNewPassword:{Header:hW.Header,Footer:hW.Footer,FormFields:hW.FormFields},ForgotPassword:{Header:EV.Header,Footer:EV.Footer},Footer:()=>null};function NV(e){let{children:t,className:n,components:r,formFields:o,hideSignUp:i,initialState:s,loginMechanisms:l,passwordSettings:c,signUpAttributes:u,services:d,socialProviders:p,variation:h}=e;lU({message:"The `passwordSettings` prop has been deprecated and will be removed in a future major version of Amplify UI.",shouldWarn:!1});const{route:f,signOut:m,user:g}=rd((e=>{let{route:t,signOut:n,user:r}=e;return[t,n,r]}));!function(e){const{route:t,initializeMachine:n}=rd(LO),r=a.useRef(!1);a.useEffect((()=>{r.current||"setup"!==t||(n(e),r.current=!0)}),[n,t,e])}({initialState:s,loginMechanisms:l,passwordSettings:c,services:d,signUpAttributes:u,socialProviders:p,formFields:o});const A=a.useMemo((()=>({components:{..._V,...r}})),[r]);return"authenticated"===f||"signOut"===f?t?a.createElement(a.Fragment,null,wu(t)?t({signOut:m,user:g}):t):null:a.createElement(cU.Provider,{value:A},a.createElement(kV,{className:n,hideSignUp:i,variation:h}))}function IV(e){return function(e){let{componentName:t,packageName:n,version:r}=e;(0,a.useEffect)((()=>VO({componentName:t,packageName:n,version:r})),[t,n,r])}({componentName:"Authenticator",packageName:"react",version:sU}),a.createElement(iU,null,a.createElement(NV,{...e}))}IV.Provider=iU,IV.ForgotPassword=EV,IV.SetupTotp=EW,IV.SignIn=qW,IV.SignUp=XW,IV.ForceNewPassword=hW;const PV=JSON.parse('{"auth":{"user_pool_id":"us-east-2_824guOZXR","aws_region":"us-east-2","user_pool_client_id":"5ma1sro5othfojhjpddl8h6qlh","identity_pool_id":"us-east-2:6244c776-547d-44cc-9fb4-7d2d423b6007","mfa_methods":[],"standard_required_attributes":["email"],"username_attributes":["email"],"user_verification_types":["email"],"groups":[],"mfa_configuration":"NONE","password_policy":{"min_length":8,"require_lowercase":true,"require_numbers":true,"require_symbols":true,"require_uppercase":true},"unauthenticated_identities_enabled":true},"version":"1.3"}');DO.configure(PV);function RV(){if(!localStorage.getItem("deviceId")){const e=function(){const e=xc(),t=wc.lib.WordArray.random(16),n=(0,wc.PBKDF2)("5+HOaVTSq1nwvFnWBPToYQ==",t,{keySize:8,iterations:1e3,hasher:wc.algo.SHA256}
2),r=wc.lib.WordArray.random(16),o=wc.AES.encrypt(e,n,{iv:r,mode:wc.mode.CBC,padding:wc.pad.Pkcs7});return wc.enc.Base64.stringify(t.concat(r).concat(o.ciphertext))}();localStorage.setItem("deviceId",e),localStorage.setItem("SearchRemaining","1")}return(0,$e.jsx)(a.StrictMode,{children:(0,$e.jsx)(IV.Provider,{children:(0,$e.jsx)(Zy,{children:(0,$e.jsx)(cr,{children:(0,$e.jsxs)($c,{children:[(0,$e.jsx)(hO,{}),(0,$e.jsx)("footer",{className:"footer",children:"\xa9 2026 MedRPT LLC"})]})})})})})}s.createRoot(document.getElementById("root")).render((0,$e.jsx)(RV,{})),fO()})()})(); 3//# sourceMappingURL=main.9d3552b9.js.map
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.