(()=>{var M={354(M){M.exports=function(){"use strict";var M=function(N,D){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,N){M.__proto__=N}||function(M,N){for(var D in N)Object.prototype.hasOwnProperty.call(N,D)&&(M[D]=N[D])},M(N,D)};function N(N,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function __(){this.constructor=N}M(N,D),N.prototype=null===D?Object.create(D):(__.prototype=D.prototype,new __)}var D=function(){return D=Object.assign||function(M){for(var N,D=1,j=arguments.length;D0&&I[I.length-1])||6!==A[0]&&2!==A[0])){z=0;continue}if(3===A[0]&&(!I||A[1]>I[0]&&A[1]=55296&&I<=56319&&D>10),z%1024+56320)),(I+1===D||j.length>16384)&&(A+=String.fromCharCode.apply(String,j),j.length=0)}return A},y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c=0;c<64;c++)i[y.charCodeAt(c)]=c;for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L="undefined"==typeof Uint8Array?[]:new Uint8Array(256),e=0;e<64;e++)L[O.charCodeAt(e)]=e;for(var x=function(M,N,D){return M.slice?M.slice(N,D):new Uint16Array(Array.prototype.slice.call(M,N,D))},E=function(){function M(M,N,D,j,I,A){this.initialValue=M,this.errorValue=N,this.highStart=D,this.highValueIndex=j,this.index=I,this.data=A}return M.prototype.get=function(M){var N;if(M>=0){if(M<55296||M>56319&&M<=65535)return N=((N=this.index[M>>5])<<2)+(31&M),this.data[N];if(M<=65535)return N=((N=this.index[2048+(M-55296>>5)])<<2)+(31&M),this.data[N];if(M>11),N=this.index[N],N+=M>>5&63,N=((N=this.index[N])<<2)+(31&M),this.data[N];if(M<=1114111)return this.data[this.highValueIndex]}return this.errorValue},M}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)t[Q.charCodeAt(n)]=n;var S=10,a=13,k=15,o=17,U=18,Y=19,C=20,r=21,l=22,s=24,w=25,d=26,f=27,h=28,p=30,b=32,m=33,Z=34,V=35,W=37,B=38,F=39,R=40,G=42,v=[9001,65288],J="ร—",P="รท",H=function(M){var N,D,j,I=function(M){var N,D,j,I,A,z=.75*M.length,g=M.length,u=0;"="===M[M.length-1]&&(z--,"="===M[M.length-2]&&z--);var T="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(z):new Array(z),y=Array.isArray(T)?T:new Uint8Array(T);for(N=0;N>4,y[u++]=(15&j)<<4|I>>2,y[u++]=(3&I)<<6|63&A;return T}(M),A=Array.isArray(I)?function(M){for(var N=M.length,D=[],j=0;j0;){var z=j[--A];if(Array.isArray(M)?-1!==M.indexOf(z):M===z)for(var g=D;g<=j.length;){var u;if((u=j[++g])===N)return!0;if(u!==S)break}if(z!==S)break}return!1},jM=function(M,N){for(var D=M;D>=0;){var j=N[D];if(j!==S)return j;D--}return 0},IM=function(M,N,D,j,I){if(0===D[j])return J;var A=j-1;if(Array.isArray(I)&&!0===I[A])return J;var z=A-1,g=A+1,u=N[A],T=z>=0?N[z]:0,y=N[g];if(2===u&&3===y)return J;if(-1!==K.indexOf(u))return"!";if(-1!==K.indexOf(y))return J;if(-1!==_.indexOf(y))return J;if(8===jM(A,N))return P;if(11===H.get(M[A]))return J;if((u===b||u===m)&&11===H.get(M[g]))return J;if(7===u||7===y)return J;if(9===u)return J;if(-1===[S,a,k].indexOf(u)&&9===y)return J;if(-1!==[o,U,Y,s,h].indexOf(y))return J;if(jM(A,N)===l)return J;if(DM(23,l,A,N))return J;if(DM([o,U],r,A,N))return J;if(DM(12,12,A,N))return J;if(u===S)return P;if(23===u||23===y)return J;if(16===y||16===u)return P;if(-1!==[a,k,r].indexOf(y)||14===u)return J;if(36===T&&-1!==NM.indexOf(u))return J;if(u===h&&36===y)return J;if(y===C)return J;if(-1!==X.indexOf(y)&&u===w||-1!==X.indexOf(u)&&y===w)return J;if(u===f&&-1!==[W,b,m].indexOf(y)||-1!==[W,b,m].indexOf(u)&&y===d)return J;if(-1!==X.indexOf(u)&&-1!==q.indexOf(y)||-1!==q.indexOf(u)&&-1!==X.indexOf(y))return J;if(-1!==[f,d].indexOf(u)&&(y===w||-1!==[l,k].indexOf(y)&&N[g+1]===w)||-1!==[l,k].indexOf(u)&&y===w||u===w&&-1!==[w,h,s].indexOf(y))return J;if(-1!==[w,h,s,o,U].indexOf(y))for(var i=A;i>=0;){if((c=N[i])===w)return J;if(-1===[h,s].indexOf(c))break;i--}if(-1!==[f,d].indexOf(y))for(i=-1!==[o,U].indexOf(u)?z:A;i>=0;){var c;if((c=N[i])===w)return J;if(-1===[h,s].indexOf(c))break;i--}if(B===u&&-1!==[B,F,Z,V].indexOf(y)||-1!==[F,Z].indexOf(u)&&-1!==[F,R].indexOf(y)||-1!==[R,V].indexOf(u)&&y===R)return J;if(-1!==MM.indexOf(u)&&-1!==[C,d].indexOf(y)||-1!==MM.indexOf(y)&&u===f)return J;if(-1!==X.indexOf(u)&&-1!==X.indexOf(y))return J;if(u===s&&-1!==X.indexOf(y))return J;if(-1!==X.concat(w).indexOf(u)&&y===l&&-1===v.indexOf(M[g])||-1!==X.concat(w).indexOf(y)&&u===U)return J;if(41===u&&41===y){for(var O=D[A],L=1;O>0&&41===N[--O];)L++;if(L%2!=0)return J}return u===b&&y===m?J:P},AM=function(M,N){N||(N={lineBreak:"normal",wordBreak:"normal"});var D=function(M,N){void 0===N&&(N="strict");var D=[],j=[],I=[];return M.forEach(function(M,A){var z=H.get(M);if(z>50?(I.push(!0),z-=50):I.push(!1),-1!==["normal","auto","loose"].indexOf(N)&&-1!==[8208,8211,12316,12448].indexOf(M))return j.push(A),D.push(16);if(4===z||11===z){if(0===A)return j.push(A),D.push(p);var g=D[A-1];return-1===$.indexOf(g)?(j.push(j[A-1]),D.push(g)):(j.push(A),D.push(p))}return j.push(A),31===z?D.push("strict"===N?r:W):z===G||29===z?D.push(p):43===z?M>=131072&&M<=196605||M>=196608&&M<=262141?D.push(W):D.push(p):void D.push(z)}),[j,D,I]}(M,N.lineBreak),j=D[0],I=D[1],A=D[2];"break-all"!==N.wordBreak&&"break-word"!==N.wordBreak||(I=I.map(function(M){return-1!==[w,p,G].indexOf(M)?W:M}));var z="keep-all"===N.wordBreak?A.map(function(N,D){return N&&M[D]>=19968&&M[D]<=40959}):void 0;return[j,I,z]},zM=function(){function M(M,N,D,j){this.codePoints=M,this.required="!"===N,this.start=D,this.end=j}return M.prototype.slice=function(){return T.apply(void 0,this.codePoints.slice(this.start,this.end))},M}(),gM=45,uM=43,TM=-1,yM=function(M){return M>=48&&M<=57},iM=function(M){return yM(M)||M>=65&&M<=70||M>=97&&M<=102},cM=function(M){return 10===M||9===M||32===M},OM=function(M){return function(M){return function(M){return M>=97&&M<=122}(M)||function(M){return M>=65&&M<=90}(M)}(M)||function(M){return M>=128}(M)||95===M},LM=function(M){return OM(M)||yM(M)||M===gM},eM=function(M){return M>=0&&M<=8||11===M||M>=14&&M<=31||127===M},xM=function(M,N){return 92===M&&10!==N},EM=function(M,N,D){return M===gM?OM(N)||xM(N,D):!!OM(M)||!(92!==M||!xM(M,N))},QM=function(M,N,D){return M===uM||M===gM?!!yM(N)||46===N&&yM(D):yM(46===M?N:M)},tM=function(M){var N=0,D=1;M[N]!==uM&&M[N]!==gM||(M[N]===gM&&(D=-1),N++);for(var j=[];yM(M[N]);)j.push(M[N++]);var I=j.length?parseInt(T.apply(void 0,j),10):0;46===M[N]&&N++;for(var A=[];yM(M[N]);)A.push(M[N++]);var z=A.length,g=z?parseInt(T.apply(void 0,A),10):0;69!==M[N]&&101!==M[N]||N++;var u=1;M[N]!==uM&&M[N]!==gM||(M[N]===gM&&(u=-1),N++);for(var y=[];yM(M[N]);)y.push(M[N++]);var i=y.length?parseInt(T.apply(void 0,y),10):0;return D*(I+g*Math.pow(10,-z))*Math.pow(10,u*i)},nM={type:2},SM={type:3},aM={type:4},kM={type:13},oM={type:8},UM={type:21},YM={type:9},CM={type:10},rM={type:11},lM={type:12},sM={type:14},wM={type:23},dM={type:1},fM={type:25},hM={type:24},pM={type:26},bM={type:27},mM={type:28},ZM={type:29},VM={type:31},WM={type:32},BM=function(){function M(){this._value=[]}return M.prototype.write=function(M){this._value=this._value.concat(u(M))},M.prototype.read=function(){for(var M=[],N=this.consumeToken();N!==WM;)M.push(N),N=this.consumeToken();return M},M.prototype.consumeToken=function(){var M=this.consumeCodePoint();switch(M){case 34:return this.consumeStringToken(34);case 35:var N=this.peekCodePoint(0),D=this.peekCodePoint(1),j=this.peekCodePoint(2);if(LM(N)||xM(D,j)){var I=EM(N,D,j)?2:1;return{type:5,value:this.consumeName(),flags:I}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),kM;break;case 39:return this.consumeStringToken(39);case 40:return nM;case 41:return SM;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),sM;break;case uM:if(QM(M,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(M),this.consumeNumericToken();break;case 44:return aM;case gM:var A=M,z=this.peekCodePoint(0),g=this.peekCodePoint(1);if(QM(A,z,g))return this.reconsumeCodePoint(M),this.consumeNumericToken();if(EM(A,z,g))return this.reconsumeCodePoint(M),this.consumeIdentLikeToken();if(z===gM&&62===g)return this.consumeCodePoint(),this.consumeCodePoint(),hM;break;case 46:if(QM(M,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(M),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(42===u&&47===(u=this.consumeCodePoint()))return this.consumeToken();if(u===TM)return this.consumeToken()}break;case 58:return pM;case 59:return bM;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===gM&&this.peekCodePoint(2)===gM)return this.consumeCodePoint(),this.consumeCodePoint(),fM;break;case 64:var y=this.peekCodePoint(0),i=this.peekCodePoint(1),c=this.peekCodePoint(2);if(EM(y,i,c))return{type:7,value:this.consumeName()};break;case 91:return mM;case 92:if(xM(M,this.peekCodePoint(0)))return this.reconsumeCodePoint(M),this.consumeIdentLikeToken();break;case 93:return ZM;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),oM;break;case 123:return rM;case 125:return lM;case 117:case 85:var O=this.peekCodePoint(0),L=this.peekCodePoint(1);return O!==uM||!iM(L)&&63!==L||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(M),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),YM;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),UM;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),CM;break;case TM:return WM}return cM(M)?(this.consumeWhiteSpace(),VM):yM(M)?(this.reconsumeCodePoint(M),this.consumeNumericToken()):OM(M)?(this.reconsumeCodePoint(M),this.consumeIdentLikeToken()):{type:6,value:T(M)}},M.prototype.consumeCodePoint=function(){var M=this._value.shift();return void 0===M?-1:M},M.prototype.reconsumeCodePoint=function(M){this._value.unshift(M)},M.prototype.peekCodePoint=function(M){return M>=this._value.length?-1:this._value[M]},M.prototype.consumeUnicodeRangeToken=function(){for(var M=[],N=this.consumeCodePoint();iM(N)&&M.length<6;)M.push(N),N=this.consumeCodePoint();for(var D=!1;63===N&&M.length<6;)M.push(N),N=this.consumeCodePoint(),D=!0;if(D)return{type:30,start:parseInt(T.apply(void 0,M.map(function(M){return 63===M?48:M})),16),end:parseInt(T.apply(void 0,M.map(function(M){return 63===M?70:M})),16)};var j=parseInt(T.apply(void 0,M),16);if(this.peekCodePoint(0)===gM&&iM(this.peekCodePoint(1))){this.consumeCodePoint(),N=this.consumeCodePoint();for(var I=[];iM(N)&&I.length<6;)I.push(N),N=this.consumeCodePoint();return{type:30,start:j,end:parseInt(T.apply(void 0,I),16)}}return{type:30,start:j,end:j}},M.prototype.consumeIdentLikeToken=function(){var M=this.consumeName();return"url"===M.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:M}):{type:20,value:M}},M.prototype.consumeUrlToken=function(){var M=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===TM)return{type:22,value:""};var N=this.peekCodePoint(0);if(39===N||34===N){var D=this.consumeStringToken(this.consumeCodePoint());return 0===D.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===TM||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:D.value}):(this.consumeBadUrlRemnants(),wM)}for(;;){var j=this.consumeCodePoint();if(j===TM||41===j)return{type:22,value:T.apply(void 0,M)};if(cM(j))return this.consumeWhiteSpace(),this.peekCodePoint(0)===TM||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:T.apply(void 0,M)}):(this.consumeBadUrlRemnants(),wM);if(34===j||39===j||40===j||eM(j))return this.consumeBadUrlRemnants(),wM;if(92===j){if(!xM(j,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),wM;M.push(this.consumeEscapedCodePoint())}else M.push(j)}},M.prototype.consumeWhiteSpace=function(){for(;cM(this.peekCodePoint(0));)this.consumeCodePoint()},M.prototype.consumeBadUrlRemnants=function(){for(;;){var M=this.consumeCodePoint();if(41===M||M===TM)return;xM(M,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},M.prototype.consumeStringSlice=function(M){for(var N="";M>0;){var D=Math.min(5e4,M);N+=T.apply(void 0,this._value.splice(0,D)),M-=D}return this._value.shift(),N},M.prototype.consumeStringToken=function(M){for(var N="",D=0;;){var j=this._value[D];if(j===TM||void 0===j||j===M)return{type:0,value:N+=this.consumeStringSlice(D)};if(10===j)return this._value.splice(0,D),dM;if(92===j){var I=this._value[D+1];I!==TM&&void 0!==I&&(10===I?(N+=this.consumeStringSlice(D),D=-1,this._value.shift()):xM(j,I)&&(N+=this.consumeStringSlice(D),N+=T(this.consumeEscapedCodePoint()),D=-1))}D++}},M.prototype.consumeNumber=function(){var M=[],N=4,D=this.peekCodePoint(0);for(D!==uM&&D!==gM||M.push(this.consumeCodePoint());yM(this.peekCodePoint(0));)M.push(this.consumeCodePoint());D=this.peekCodePoint(0);var j=this.peekCodePoint(1);if(46===D&&yM(j))for(M.push(this.consumeCodePoint(),this.consumeCodePoint()),N=8;yM(this.peekCodePoint(0));)M.push(this.consumeCodePoint());D=this.peekCodePoint(0),j=this.peekCodePoint(1);var I=this.peekCodePoint(2);if((69===D||101===D)&&((j===uM||j===gM)&&yM(I)||yM(j)))for(M.push(this.consumeCodePoint(),this.consumeCodePoint()),N=8;yM(this.peekCodePoint(0));)M.push(this.consumeCodePoint());return[tM(M),N]},M.prototype.consumeNumericToken=function(){var M=this.consumeNumber(),N=M[0],D=M[1],j=this.peekCodePoint(0),I=this.peekCodePoint(1),A=this.peekCodePoint(2);return EM(j,I,A)?{type:15,number:N,flags:D,unit:this.consumeName()}:37===j?(this.consumeCodePoint(),{type:16,number:N,flags:D}):{type:17,number:N,flags:D}},M.prototype.consumeEscapedCodePoint=function(){var M=this.consumeCodePoint();if(iM(M)){for(var N=T(M);iM(this.peekCodePoint(0))&&N.length<6;)N+=T(this.consumeCodePoint());cM(this.peekCodePoint(0))&&this.consumeCodePoint();var D=parseInt(N,16);return 0===D||function(M){return M>=55296&&M<=57343}(D)||D>1114111?65533:D}return M===TM?65533:M},M.prototype.consumeName=function(){for(var M="";;){var N=this.consumeCodePoint();if(LM(N))M+=T(N);else{if(!xM(N,this.peekCodePoint(0)))return this.reconsumeCodePoint(N),M;M+=T(this.consumeEscapedCodePoint())}}},M}(),FM=function(){function M(M){this._tokens=M}return M.create=function(N){var D=new BM;return D.write(N),new M(D.read())},M.parseValue=function(N){return M.create(N).parseComponentValue()},M.parseValues=function(N){return M.create(N).parseComponentValues()},M.prototype.parseComponentValue=function(){for(var M=this.consumeToken();31===M.type;)M=this.consumeToken();if(32===M.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(M);var N=this.consumeComponentValue();do{M=this.consumeToken()}while(31===M.type);if(32===M.type)return N;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},M.prototype.parseComponentValues=function(){for(var M=[];;){var N=this.consumeComponentValue();if(32===N.type)return M;M.push(N),M.push()}},M.prototype.consumeComponentValue=function(){var M=this.consumeToken();switch(M.type){case 11:case 28:case 2:return this.consumeSimpleBlock(M.type);case 19:return this.consumeFunction(M)}return M},M.prototype.consumeSimpleBlock=function(M){for(var N={type:M,values:[]},D=this.consumeToken();;){if(32===D.type||_M(D,M))return N;this.reconsumeToken(D),N.values.push(this.consumeComponentValue()),D=this.consumeToken()}},M.prototype.consumeFunction=function(M){for(var N={name:M.value,values:[],type:18};;){var D=this.consumeToken();if(32===D.type||3===D.type)return N;this.reconsumeToken(D),N.values.push(this.consumeComponentValue())}},M.prototype.consumeToken=function(){var M=this._tokens.shift();return void 0===M?WM:M},M.prototype.reconsumeToken=function(M){this._tokens.unshift(M)},M}(),RM=function(M){return 15===M.type},GM=function(M){return 17===M.type},vM=function(M){return 20===M.type},JM=function(M){return 0===M.type},PM=function(M,N){return vM(M)&&M.value===N},HM=function(M){return 31!==M.type},XM=function(M){return 31!==M.type&&4!==M.type},KM=function(M){var N=[],D=[];return M.forEach(function(M){if(4===M.type){if(0===D.length)throw new Error("Error parsing function args, zero tokens for arg");return N.push(D),void(D=[])}31!==M.type&&D.push(M)}),D.length&&N.push(D),N},_M=function(M,N){return 11===N&&12===M.type||28===N&&29===M.type||2===N&&3===M.type},qM=function(M){return 17===M.type||15===M.type},$M=function(M){return 16===M.type||qM(M)},MN=function(M){return M.length>1?[M[0],M[1]]:[M[0]]},NN={type:17,number:0,flags:4},DN={type:16,number:50,flags:4},jN={type:16,number:100,flags:4},IN=function(M,N,D){var j=M[0],I=M[1];return[AN(j,N),AN(void 0!==I?I:j,D)]},AN=function(M,N){if(16===M.type)return M.number/100*N;if(RM(M))switch(M.unit){case"rem":case"em":return 16*M.number;default:return M.number}return M.number},zN="grad",gN="turn",uN=function(M,N){if(15===N.type)switch(N.unit){case"deg":return Math.PI*N.number/180;case zN:return Math.PI/200*N.number;case"rad":return N.number;case gN:return 2*Math.PI*N.number}throw new Error("Unsupported angle type")},TN=function(M){return 15===M.type&&("deg"===M.unit||M.unit===zN||"rad"===M.unit||M.unit===gN)},yN=function(M){switch(M.filter(vM).map(function(M){return M.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[NN,NN];case"to top":case"bottom":return iN(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[NN,jN];case"to right":case"left":return iN(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[jN,jN];case"to bottom":case"top":return iN(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[jN,NN];case"to left":case"right":return iN(270)}return 0},iN=function(M){return Math.PI*M/180},cN=function(M,N){if(18===N.type){var D=nN[N.name];if(void 0===D)throw new Error('Attempting to parse an unsupported color function "'+N.name+'"');return D(M,N.values)}if(5===N.type){if(3===N.value.length){var j=N.value.substring(0,1),I=N.value.substring(1,2),A=N.value.substring(2,3);return eN(parseInt(j+j,16),parseInt(I+I,16),parseInt(A+A,16),1)}if(4===N.value.length){j=N.value.substring(0,1),I=N.value.substring(1,2),A=N.value.substring(2,3);var z=N.value.substring(3,4);return eN(parseInt(j+j,16),parseInt(I+I,16),parseInt(A+A,16),parseInt(z+z,16)/255)}if(6===N.value.length)return j=N.value.substring(0,2),I=N.value.substring(2,4),A=N.value.substring(4,6),eN(parseInt(j,16),parseInt(I,16),parseInt(A,16),1);if(8===N.value.length)return j=N.value.substring(0,2),I=N.value.substring(2,4),A=N.value.substring(4,6),z=N.value.substring(6,8),eN(parseInt(j,16),parseInt(I,16),parseInt(A,16),parseInt(z,16)/255)}if(20===N.type){var g=aN[N.value.toUpperCase()];if(void 0!==g)return g}return aN.TRANSPARENT},ON=function(M){return!(255&M)},LN=function(M){var N=255&M,D=255&M>>8,j=255&M>>16,I=255&M>>24;return N<255?"rgba("+I+","+j+","+D+","+N/255+")":"rgb("+I+","+j+","+D+")"},eN=function(M,N,D,j){return(M<<24|N<<16|D<<8|Math.round(255*j))>>>0},xN=function(M,N){if(17===M.type)return M.number;if(16===M.type){var D=3===N?1:255;return 3===N?M.number/100*D:Math.round(M.number/100*D)}return 0},EN=function(M,N){var D=N.filter(XM);if(3===D.length){var j=D.map(xN),I=j[0],A=j[1],z=j[2];return eN(I,A,z,1)}if(4===D.length){var g=D.map(xN),u=(I=g[0],A=g[1],z=g[2],g[3]);return eN(I,A,z,u)}return 0};function QN(M,N,D){return D<0&&(D+=1),D>=1&&(D-=1),D<1/6?(N-M)*D*6+M:D<.5?N:D<2/3?6*(N-M)*(2/3-D)+M:M}var tN=function(M,N){var D=N.filter(XM),j=D[0],I=D[1],A=D[2],z=D[3],g=(17===j.type?iN(j.number):uN(M,j))/(2*Math.PI),u=$M(I)?I.number/100:0,T=$M(A)?A.number/100:0,y=void 0!==z&&$M(z)?AN(z,1):1;if(0===u)return eN(255*T,255*T,255*T,1);var i=T<=.5?T*(u+1):T+u-T*u,c=2*T-i,O=QN(c,i,g+1/3),L=QN(c,i,g),e=QN(c,i,g-1/3);return eN(255*O,255*L,255*e,y)},nN={hsl:tN,hsla:tN,rgb:EN,rgba:EN},SN=function(M,N){return cN(M,FM.create(N).parseComponentValue())},aN={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},kN={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(M,N){return N.map(function(M){if(vM(M))switch(M.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},oN={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},UN=function(M,N){var D=cN(M,N[0]),j=N[1];return j&&$M(j)?{color:D,stop:j}:{color:D,stop:null}},YN=function(M,N){var D=M[0],j=M[M.length-1];null===D.stop&&(D.stop=NN),null===j.stop&&(j.stop=jN);for(var I=[],A=0,z=0;zA?I.push(u):I.push(A),A=u}else I.push(null)}var T=null;for(z=0;zM.optimumDistance)?{optimumCorner:N,optimumDistance:g}:M},{optimumDistance:I?1/0:-1/0,optimumCorner:null}).optimumCorner},sN=function(M,N){var D=iN(180),j=[];return KM(N).forEach(function(N,I){if(0===I){var A=N[0];if(20===A.type&&-1!==["top","left","right","bottom"].indexOf(A.value))return void(D=yN(N));if(TN(A))return void(D=(uN(M,A)+iN(270))%iN(360))}var z=UN(M,N);j.push(z)}),{angle:D,stops:j,type:1}},wN="closest-side",dN="farthest-side",fN="closest-corner",hN="farthest-corner",pN="circle",bN="ellipse",mN="cover",ZN="contain",VN=function(M,N){var D=0,j=3,I=[],A=[];return KM(N).forEach(function(N,z){var g=!0;if(0===z?g=N.reduce(function(M,N){if(vM(N))switch(N.value){case"center":return A.push(DN),!1;case"top":case"left":return A.push(NN),!1;case"right":case"bottom":return A.push(jN),!1}else if($M(N)||qM(N))return A.push(N),!1;return M},g):1===z&&(g=N.reduce(function(M,N){if(vM(N))switch(N.value){case pN:return D=0,!1;case bN:return D=1,!1;case ZN:case wN:return j=0,!1;case dN:return j=1,!1;case fN:return j=2,!1;case mN:case hN:return j=3,!1}else if(qM(N)||$M(N))return Array.isArray(j)||(j=[]),j.push(N),!1;return M},g)),g){var u=UN(M,N);I.push(u)}}),{size:j,shape:D,stops:I,position:A,type:2}},WN=function(M,N){if(22===N.type){var D={url:N.value,type:0};return M.cache.addImage(N.value),D}if(18===N.type){var j=FN[N.name];if(void 0===j)throw new Error('Attempting to parse an unsupported image function "'+N.name+'"');return j(M,N.values)}throw new Error("Unsupported image type "+N.type)};var BN,FN={"linear-gradient":function(M,N){var D=iN(180),j=[];return KM(N).forEach(function(N,I){if(0===I){var A=N[0];if(20===A.type&&"to"===A.value)return void(D=yN(N));if(TN(A))return void(D=uN(M,A))}var z=UN(M,N);j.push(z)}),{angle:D,stops:j,type:1}},"-moz-linear-gradient":sN,"-ms-linear-gradient":sN,"-o-linear-gradient":sN,"-webkit-linear-gradient":sN,"radial-gradient":function(M,N){var D=0,j=3,I=[],A=[];return KM(N).forEach(function(N,z){var g=!0;if(0===z){var u=!1;g=N.reduce(function(M,N){if(u)if(vM(N))switch(N.value){case"center":return A.push(DN),M;case"top":case"left":return A.push(NN),M;case"right":case"bottom":return A.push(jN),M}else($M(N)||qM(N))&&A.push(N);else if(vM(N))switch(N.value){case pN:return D=0,!1;case bN:return D=1,!1;case"at":return u=!0,!1;case wN:return j=0,!1;case mN:case dN:return j=1,!1;case ZN:case fN:return j=2,!1;case hN:return j=3,!1}else if(qM(N)||$M(N))return Array.isArray(j)||(j=[]),j.push(N),!1;return M},g)}if(g){var T=UN(M,N);I.push(T)}}),{size:j,shape:D,stops:I,position:A,type:2}},"-moz-radial-gradient":VN,"-ms-radial-gradient":VN,"-o-radial-gradient":VN,"-webkit-radial-gradient":VN,"-webkit-gradient":function(M,N){var D=iN(180),j=[],I=1;return KM(N).forEach(function(N,D){var A=N[0];if(0===D){if(vM(A)&&"linear"===A.value)return void(I=1);if(vM(A)&&"radial"===A.value)return void(I=2)}if(18===A.type)if("from"===A.name){var z=cN(M,A.values[0]);j.push({stop:NN,color:z})}else if("to"===A.name)z=cN(M,A.values[0]),j.push({stop:jN,color:z});else if("color-stop"===A.name){var g=A.values.filter(XM);if(2===g.length){z=cN(M,g[1]);var u=g[0];GM(u)&&j.push({stop:{type:16,number:100*u.number,flags:u.flags},color:z})}}}),1===I?{angle:(D+iN(180))%iN(360),stops:j,type:I}:{size:3,shape:0,stops:j,position:[],type:I}}},RN={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(M,N){if(0===N.length)return[];var D=N[0];return 20===D.type&&"none"===D.value?[]:N.filter(function(M){return XM(M)&&function(M){return!(20===M.type&&"none"===M.value||18===M.type&&!FN[M.name])}(M)}).map(function(N){return WN(M,N)})}},GN={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(M,N){return N.map(function(M){if(vM(M))switch(M.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},vN={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(M,N){return KM(N).map(function(M){return M.filter($M)}).map(MN)}},JN={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(M,N){return KM(N).map(function(M){return M.filter(vM).map(function(M){return M.value}).join(" ")}).map(PN)}},PN=function(M){switch(M){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(M){M.AUTO="auto",M.CONTAIN="contain",M.COVER="cover"}(BN||(BN={}));var HN,XN={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(M,N){return KM(N).map(function(M){return M.filter(KN)})}},KN=function(M){return vM(M)||$M(M)},_N=function(M){return{name:"border-"+M+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},qN=_N("top"),$N=_N("right"),MD=_N("bottom"),ND=_N("left"),DD=function(M){return{name:"border-radius-"+M,initialValue:"0 0",prefix:!1,type:1,parse:function(M,N){return MN(N.filter($M))}}},jD=DD("top-left"),ID=DD("top-right"),AD=DD("bottom-right"),zD=DD("bottom-left"),gD=function(M){return{name:"border-"+M+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(M,N){switch(N){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},uD=gD("top"),TD=gD("right"),yD=gD("bottom"),iD=gD("left"),cD=function(M){return{name:"border-"+M+"-width",initialValue:"0",type:0,prefix:!1,parse:function(M,N){return RM(N)?N.number:0}}},OD=cD("top"),LD=cD("right"),eD=cD("bottom"),xD=cD("left"),ED={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},QD={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(M,N){return"rtl"===N?1:0}},tD={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(M,N){return N.filter(vM).reduce(function(M,N){return M|nD(N.value)},0)}},nD=function(M){switch(M){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},SD={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(M,N){switch(N){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},aD={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(M,N){return 20===N.type&&"normal"===N.value?0:17===N.type||15===N.type?N.number:0}};!function(M){M.NORMAL="normal",M.STRICT="strict"}(HN||(HN={}));var kD,oD={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(M,N){return"strict"===N?HN.STRICT:HN.NORMAL}},UD={name:"line-height",initialValue:"normal",prefix:!1,type:4},YD=function(M,N){return vM(M)&&"normal"===M.value?1.2*N:17===M.type?N*M.number:$M(M)?AN(M,N):N},CD={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(M,N){return 20===N.type&&"none"===N.value?null:WN(M,N)}},rD={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(M,N){return"inside"===N?0:1}},lD={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(M,N){switch(N){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},sD=function(M){return{name:"margin-"+M,initialValue:"0",prefix:!1,type:4}},wD=sD("top"),dD=sD("right"),fD=sD("bottom"),hD=sD("left"),pD={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(M,N){return N.filter(vM).map(function(M){switch(M.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},bD={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(M,N){return"break-word"===N?"break-word":"normal"}},mD=function(M){return{name:"padding-"+M,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ZD=mD("top"),VD=mD("right"),WD=mD("bottom"),BD=mD("left"),FD={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(M,N){switch(N){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},RD={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(M,N){switch(N){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},GD={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(M,N){return 1===N.length&&PM(N[0],"none")?[]:KM(N).map(function(N){for(var D={color:aN.TRANSPARENT,offsetX:NN,offsetY:NN,blur:NN},j=0,I=0;I1?1:0],this.overflowWrap=kj(M,bD,N.overflowWrap),this.paddingTop=kj(M,ZD,N.paddingTop),this.paddingRight=kj(M,VD,N.paddingRight),this.paddingBottom=kj(M,WD,N.paddingBottom),this.paddingLeft=kj(M,BD,N.paddingLeft),this.paintOrder=kj(M,Ej,N.paintOrder),this.position=kj(M,RD,N.position),this.textAlign=kj(M,FD,N.textAlign),this.textDecorationColor=kj(M,Dj,null!==(D=N.textDecorationColor)&&void 0!==D?D:N.color),this.textDecorationLine=kj(M,jj,null!==(j=N.textDecorationLine)&&void 0!==j?j:N.textDecoration),this.textShadow=kj(M,GD,N.textShadow),this.textTransform=kj(M,vD,N.textTransform),this.transform=kj(M,JD,N.transform),this.transformOrigin=kj(M,KD,N.transformOrigin),this.visibility=kj(M,_D,N.visibility),this.webkitTextStrokeColor=kj(M,Qj,N.webkitTextStrokeColor),this.webkitTextStrokeWidth=kj(M,tj,N.webkitTextStrokeWidth),this.wordBreak=kj(M,qD,N.wordBreak),this.zIndex=kj(M,$D,N.zIndex)}return M.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},M.prototype.isTransparent=function(){return ON(this.backgroundColor)},M.prototype.isTransformed=function(){return null!==this.transform},M.prototype.isPositioned=function(){return 0!==this.position},M.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},M.prototype.isFloating=function(){return 0!==this.float},M.prototype.isInlineLevel=function(){return Tj(this.display,4)||Tj(this.display,33554432)||Tj(this.display,268435456)||Tj(this.display,536870912)||Tj(this.display,67108864)||Tj(this.display,134217728)},M}(),Sj=function(M,N){this.content=kj(M,yj,N.content),this.quotes=kj(M,Lj,N.quotes)},aj=function(M,N){this.counterIncrement=kj(M,ij,N.counterIncrement),this.counterReset=kj(M,cj,N.counterReset)},kj=function(M,N,D){var j=new BM,I=null!=D?D.toString():N.initialValue;j.write(I);var A=new FM(j.read());switch(N.type){case 2:var z=A.parseComponentValue();return N.parse(M,vM(z)?z.value:N.initialValue);case 0:return N.parse(M,A.parseComponentValue());case 1:return N.parse(M,A.parseComponentValues());case 4:return A.parseComponentValue();case 3:switch(N.format){case"angle":return uN(M,A.parseComponentValue());case"color":return cN(M,A.parseComponentValue());case"image":return WN(M,A.parseComponentValue());case"length":var g=A.parseComponentValue();return qM(g)?g:NN;case"length-percentage":var u=A.parseComponentValue();return $M(u)?u:NN;case"time":return Mj.parse(M,A.parseComponentValue())}}},oj=function(M,N){var D=function(M){switch(M.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(M);return 1===D||N===D},Uj=function(M,N){this.context=M,this.textNodes=[],this.elements=[],this.flags=0,oj(N,3),this.styles=new nj(M,window.getComputedStyle(N,null)),lI(N)&&(this.styles.animationDuration.some(function(M){return M>0})&&(N.style.animationDuration="0s"),null!==this.styles.transform&&(N.style.transform="none")),this.bounds=g(this.context,N),oj(N,4)&&(this.flags|=16)},Yj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cj="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rj=0;rj<64;rj++)Cj[Yj.charCodeAt(rj)]=rj;for(var lj=function(M,N,D){return M.slice?M.slice(N,D):new Uint16Array(Array.prototype.slice.call(M,N,D))},sj=function(){function M(M,N,D,j,I,A){this.initialValue=M,this.errorValue=N,this.highStart=D,this.highValueIndex=j,this.index=I,this.data=A}return M.prototype.get=function(M){var N;if(M>=0){if(M<55296||M>56319&&M<=65535)return N=((N=this.index[M>>5])<<2)+(31&M),this.data[N];if(M<=65535)return N=((N=this.index[2048+(M-55296>>5)])<<2)+(31&M),this.data[N];if(M>11),N=this.index[N],N+=M>>5&63,N=((N=this.index[N])<<2)+(31&M),this.data[N];if(M<=1114111)return this.data[this.highValueIndex]}return this.errorValue},M}(),wj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dj="undefined"==typeof Uint8Array?[]:new Uint8Array(256),fj=0;fj<64;fj++)dj[wj.charCodeAt(fj)]=fj;var hj,pj=8,bj=9,mj=11,Zj=12,Vj=function(){for(var M=[],N=0;N>10),z%1024+56320)),(I+1===D||j.length>16384)&&(A+=String.fromCharCode.apply(String,j),j.length=0)}return A},Wj=function(M){var N,D,j,I=function(M){var N,D,j,I,A,z=.75*M.length,g=M.length,u=0;"="===M[M.length-1]&&(z--,"="===M[M.length-2]&&z--);var T="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(z):new Array(z),y=Array.isArray(T)?T:new Uint8Array(T);for(N=0;N>4,y[u++]=(15&j)<<4|I>>2,y[u++]=(3&I)<<6|63&A;return T}(M),A=Array.isArray(I)?function(M){for(var N=M.length,D=[],j=0;j=55296&&I<=56319&&D=D)return{done:!0,value:null};for(var M=Bj;jz.x||I.y>z.y;return z=I,0===N||g});return M.body.removeChild(N),g}(document);return Object.defineProperty(Hj,"SUPPORT_WORD_BREAKING",{value:M}),M},get SUPPORT_SVG_DRAWING(){var M=function(M){var N=new Image,D=M.createElement("canvas"),j=D.getContext("2d");if(!j)return!1;N.src="data:image/svg+xml,";try{j.drawImage(N,0,0),D.toDataURL()}catch(M){return!1}return!0}(document);return Object.defineProperty(Hj,"SUPPORT_SVG_DRAWING",{value:M}),M},get SUPPORT_FOREIGNOBJECT_DRAWING(){var M="function"==typeof Array.from&&"function"==typeof window.fetch?function(M){var N=M.createElement("canvas"),D=100;N.width=D,N.height=D;var j=N.getContext("2d");if(!j)return Promise.reject(!1);j.fillStyle="rgb(0, 255, 0)",j.fillRect(0,0,D,D);var I=new Image,A=N.toDataURL();I.src=A;var z=Jj(D,D,0,0,I);return j.fillStyle="red",j.fillRect(0,0,D,D),Pj(z).then(function(N){j.drawImage(N,0,0);var I=j.getImageData(0,0,D,D).data;j.fillStyle="red",j.fillRect(0,0,D,D);var z=M.createElement("div");return z.style.backgroundImage="url("+A+")",z.style.height=D+"px",vj(I)?Pj(Jj(D,D,0,0,z)):Promise.reject(!1)}).then(function(M){return j.drawImage(M,0,0),vj(j.getImageData(0,0,D,D).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Hj,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:M}),M},get SUPPORT_CORS_IMAGES(){var M=void 0!==(new Image).crossOrigin;return Object.defineProperty(Hj,"SUPPORT_CORS_IMAGES",{value:M}),M},get SUPPORT_RESPONSE_TYPE(){var M="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Hj,"SUPPORT_RESPONSE_TYPE",{value:M}),M},get SUPPORT_CORS_XHR(){var M="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Hj,"SUPPORT_CORS_XHR",{value:M}),M},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var M=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Hj,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:M}),M}},Xj=function(M,N){this.text=M,this.bounds=N},Kj=function(M,N){var D=N.ownerDocument;if(D){var j=D.createElement("html2canvaswrapper");j.appendChild(N.cloneNode(!0));var I=N.parentNode;if(I){I.replaceChild(j,N);var A=g(M,j);return j.firstChild&&I.replaceChild(j.firstChild,j),A}}return z.EMPTY},_j=function(M,N,D){var j=M.ownerDocument;if(!j)throw new Error("Node has no owner document");var I=j.createRange();return I.setStart(M,N),I.setEnd(M,N+D),I},qj=function(M){if(Hj.SUPPORT_NATIVE_TEXT_SEGMENTATION){var N=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(N.segment(M)).map(function(M){return M.segment})}return function(M){for(var N,D=Gj(M),j=[];!(N=D.next()).done;)N.value&&j.push(N.value.slice());return j}(M)},$j=function(M,N){return 0!==N.letterSpacing?qj(M):function(M,N){if(Hj.SUPPORT_NATIVE_TEXT_SEGMENTATION){var D=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(D.segment(M)).map(function(M){return M.segment})}return NI(M,N)}(M,N)},MI=[32,160,4961,65792,65793,4153,4241],NI=function(M,N){for(var D,j=function(M,N){var D=u(M),j=AM(D,N),I=j[0],A=j[1],z=j[2],g=D.length,T=0,y=0;return{next:function(){if(y>=g)return{done:!0,value:null};for(var M=J;y0)if(Hj.SUPPORT_RANGE_BOUNDS){var I=_j(j,g,N.length).getClientRects();if(I.length>1){var u=qj(N),T=0;u.forEach(function(N){A.push(new Xj(N,z.fromDOMRectList(M,_j(j,T+g,N.length).getClientRects()))),T+=N.length})}else A.push(new Xj(N,z.fromDOMRectList(M,I)))}else{var y=j.splitText(N.length);A.push(new Xj(N,Kj(M,j))),j=y}else Hj.SUPPORT_RANGE_BOUNDS||(j=j.splitText(N.length));g+=N.length}),A}(M,this.text,D,N)},jI=function(M,N){switch(N){case 1:return M.toLowerCase();case 3:return M.replace(II,AI);case 2:return M.toUpperCase();default:return M}},II=/(^|\s|:|-|\(|\))([a-z])/g,AI=function(M,N,D){return M.length>0?N+D.toUpperCase():M},zI=function(M){function D(N,D){var j=M.call(this,N,D)||this;return j.src=D.currentSrc||D.src,j.intrinsicWidth=D.naturalWidth,j.intrinsicHeight=D.naturalHeight,j.context.cache.addImage(j.src),j}return N(D,M),D}(Uj),gI=function(M){function D(N,D){var j=M.call(this,N,D)||this;return j.canvas=D,j.intrinsicWidth=D.width,j.intrinsicHeight=D.height,j}return N(D,M),D}(Uj),uI=function(M){function D(N,D){var j=M.call(this,N,D)||this,I=new XMLSerializer,A=g(N,D);return D.setAttribute("width",A.width+"px"),D.setAttribute("height",A.height+"px"),j.svg="data:image/svg+xml,"+encodeURIComponent(I.serializeToString(D)),j.intrinsicWidth=D.width.baseVal.value,j.intrinsicHeight=D.height.baseVal.value,j.context.cache.addImage(j.svg),j}return N(D,M),D}(Uj),TI=function(M){function D(N,D){var j=M.call(this,N,D)||this;return j.value=D.value,j}return N(D,M),D}(Uj),yI=function(M){function D(N,D){var j=M.call(this,N,D)||this;return j.start=D.start,j.reversed="boolean"==typeof D.reversed&&!0===D.reversed,j}return N(D,M),D}(Uj),iI=[{type:15,flags:0,unit:"px",number:3}],cI=[{type:16,flags:0,number:50}],OI="checkbox",LI="radio",eI="password",xI=707406591,EI=function(M){function D(N,D){var j,I,A,g=M.call(this,N,D)||this;switch(g.type=D.type.toLowerCase(),g.checked=D.checked,g.value=0===(A=(I=D).type===eI?new Array(I.value.length+1).join("โ€ข"):I.value).length?I.placeholder||"":A,g.type!==OI&&g.type!==LI||(g.styles.backgroundColor=3739148031,g.styles.borderTopColor=g.styles.borderRightColor=g.styles.borderBottomColor=g.styles.borderLeftColor=2779096575,g.styles.borderTopWidth=g.styles.borderRightWidth=g.styles.borderBottomWidth=g.styles.borderLeftWidth=1,g.styles.borderTopStyle=g.styles.borderRightStyle=g.styles.borderBottomStyle=g.styles.borderLeftStyle=1,g.styles.backgroundClip=[0],g.styles.backgroundOrigin=[0],g.bounds=(j=g.bounds).width>j.height?new z(j.left+(j.width-j.height)/2,j.top,j.height,j.height):j.width0)D.textNodes.push(new DI(M,I,D.styles));else if(rI(I))if(RI(I)&&I.assignedNodes)I.assignedNodes().forEach(function(N){return aI(M,N,D,j)});else{var z=kI(M,I);z.styles.isVisible()&&(UI(I,z,j)?z.flags|=4:YI(z.styles)&&(z.flags|=2),-1!==SI.indexOf(I.tagName)&&(z.flags|=8),D.elements.push(z),I.slot,I.shadowRoot?aI(M,I.shadowRoot,z,j):BI(I)||hI(I)||FI(I)||aI(M,I,z,j))}},kI=function(M,N){return ZI(N)?new zI(M,N):bI(N)?new gI(M,N):hI(N)?new uI(M,N):wI(N)?new TI(M,N):dI(N)?new yI(M,N):fI(N)?new EI(M,N):FI(N)?new QI(M,N):BI(N)?new tI(M,N):VI(N)?new nI(M,N):new Uj(M,N)},oI=function(M,N){var D=kI(M,N);return D.flags|=4,aI(M,N,D,D),D},UI=function(M,N,D){return N.styles.isPositionedWithZIndex()||N.styles.opacity<1||N.styles.isTransformed()||pI(M)&&D.styles.isTransparent()},YI=function(M){return M.isPositioned()||M.isFloating()},CI=function(M){return M.nodeType===Node.TEXT_NODE},rI=function(M){return M.nodeType===Node.ELEMENT_NODE},lI=function(M){return rI(M)&&void 0!==M.style&&!sI(M)},sI=function(M){return"object"==typeof M.className},wI=function(M){return"LI"===M.tagName},dI=function(M){return"OL"===M.tagName},fI=function(M){return"INPUT"===M.tagName},hI=function(M){return"svg"===M.tagName},pI=function(M){return"BODY"===M.tagName},bI=function(M){return"CANVAS"===M.tagName},mI=function(M){return"VIDEO"===M.tagName},ZI=function(M){return"IMG"===M.tagName},VI=function(M){return"IFRAME"===M.tagName},WI=function(M){return"STYLE"===M.tagName},BI=function(M){return"TEXTAREA"===M.tagName},FI=function(M){return"SELECT"===M.tagName},RI=function(M){return"SLOT"===M.tagName},GI=function(M){return M.tagName.indexOf("-")>0},vI=function(){function M(){this.counters={}}return M.prototype.getCounterValue=function(M){var N=this.counters[M];return N&&N.length?N[N.length-1]:1},M.prototype.getCounterValues=function(M){return this.counters[M]||[]},M.prototype.pop=function(M){var N=this;M.forEach(function(M){return N.counters[M].pop()})},M.prototype.parse=function(M){var N=this,D=M.counterIncrement,j=M.counterReset,I=!0;null!==D&&D.forEach(function(M){var D=N.counters[M.counter];D&&0!==M.increment&&(I=!1,D.length||D.push(1),D[Math.max(0,D.length-1)]+=M.increment)});var A=[];return I&&j.forEach(function(M){var D=N.counters[M.counter];A.push(M.counter),D||(D=N.counters[M.counter]=[]),D.push(M.reset)}),A},M}(),JI={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},PI={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ี”","ี“","ี’","ี‘","ี","ี","ีŽ","ี","ีŒ","ี‹","ีŠ","ี‰","ีˆ","ี‡","ี†","ี…","ี„","ีƒ","ี‚","ี","ี€","ิฟ","ิพ","ิฝ","ิผ","ิป","ิบ","ิน","ิธ","ิท","ิถ","ิต","ิด","ิณ","ิฒ","ิฑ"]},HI={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["ื™ืณ","ื˜ืณ","ื—ืณ","ื–ืณ","ื•ืณ","ื”ืณ","ื“ืณ","ื’ืณ","ื‘ืณ","ืืณ","ืช","ืฉ","ืจ","ืง","ืฆ","ืค","ืข","ืก","ื ","ืž","ืœ","ื›","ื™ื˜","ื™ื—","ื™ื–","ื˜ื–","ื˜ื•","ื™","ื˜","ื—","ื–","ื•","ื”","ื“","ื’","ื‘","ื"]},XI={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["แƒต","แƒฐ","แƒฏ","แƒด","แƒฎ","แƒญ","แƒฌ","แƒซ","แƒช","แƒฉ","แƒจ","แƒง","แƒฆ","แƒฅ","แƒค","แƒณ","แƒข","แƒก","แƒ ","แƒŸ","แƒž","แƒ","แƒฒ","แƒœ","แƒ›","แƒš","แƒ™","แƒ˜","แƒ—","แƒฑ","แƒ–","แƒ•","แƒ”","แƒ“","แƒ’","แƒ‘","แƒ"]},KI=function(M,N,D,j,I,A){return MD?AA(M,I,A.length>0):j.integers.reduce(function(N,D,I){for(;M>=D;)M-=D,N+=j.values[I];return N},"")+A},_I=function(M,N,D,j){var I="";do{D||M--,I=j(M)+I,M/=N}while(M*N>=N);return I},qI=function(M,N,D,j,I){var A=D-N+1;return(M<0?"-":"")+(_I(Math.abs(M),A,j,function(M){return T(Math.floor(M%A)+N)})+I)},$I=function(M,N,D){void 0===D&&(D=". ");var j=N.length;return _I(Math.abs(M),j,!1,function(M){return N[Math.floor(M%j)]})+D},MA=function(M,N,D,j,I,A){if(M<-9999||M>9999)return AA(M,4,I.length>0);var z=Math.abs(M),g=I;if(0===z)return N[0]+g;for(var u=0;z>0&&u<=4;u++){var T=z%10;0===T&&Tj(A,1)&&""!==g?g=N[T]+g:T>1||1===T&&0===u||1===T&&1===u&&Tj(A,2)||1===T&&1===u&&Tj(A,4)&&M>100||1===T&&u>1&&Tj(A,8)?g=N[T]+(u>0?D[u-1]:"")+g:1===T&&u>0&&(g=D[u-1]+g),z=Math.floor(z/10)}return(M<0?j:"")+g},NA="ๅ็™พๅƒ่ฌ",DA="ๆ‹พไฝฐไปŸ่ฌ",jA="ใƒžใ‚คใƒŠใ‚น",IA="๋งˆ์ด๋„ˆ์Šค",AA=function(M,N,D){var j=D?". ":"",I=D?"ใ€":"",A=D?", ":"",z=D?" ":"";switch(N){case 0:return"โ€ข"+z;case 1:return"โ—ฆ"+z;case 2:return"โ—พ"+z;case 5:var g=qI(M,48,57,!0,j);return g.length<4?"0"+g:g;case 4:return $I(M,"ใ€‡ไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน",I);case 6:return KI(M,1,3999,JI,3,j).toLowerCase();case 7:return KI(M,1,3999,JI,3,j);case 8:return qI(M,945,969,!1,j);case 9:return qI(M,97,122,!1,j);case 10:return qI(M,65,90,!1,j);case 11:return qI(M,1632,1641,!0,j);case 12:case 49:return KI(M,1,9999,PI,3,j);case 35:return KI(M,1,9999,PI,3,j).toLowerCase();case 13:return qI(M,2534,2543,!0,j);case 14:case 30:return qI(M,6112,6121,!0,j);case 15:return $I(M,"ๅญไธ‘ๅฏ…ๅฏ่พฐๅทณๅˆๆœช็”ณ้…‰ๆˆŒไบฅ",I);case 16:return $I(M,"็”ฒไน™ไธ™ไธๆˆŠๅทฑๅบš่พ›ๅฃฌ็™ธ",I);case 17:case 48:return MA(M,"้›ถไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน",NA,"่ฒ ",I,14);case 47:return MA(M,"้›ถๅฃน่ฒณๅƒ่‚†ไผ้™ธๆŸ’ๆŒ็Ž–",DA,"่ฒ ",I,15);case 42:return MA(M,"้›ถไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน",NA,"่ดŸ",I,14);case 41:return MA(M,"้›ถๅฃน่ดฐๅ่‚†ไผ้™†ๆŸ’ๆŒ็Ž–",DA,"่ดŸ",I,15);case 26:return MA(M,"ใ€‡ไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน","ๅ็™พๅƒไธ‡",jA,I,0);case 25:return MA(M,"้›ถๅฃฑๅผๅ‚ๅ››ไผๅ…ญไธƒๅ…ซไน","ๆ‹พ็™พๅƒไธ‡",jA,I,7);case 31:return MA(M,"์˜์ผ์ด์‚ผ์‚ฌ์˜ค์œก์น ํŒ”๊ตฌ","์‹ญ๋ฐฑ์ฒœ๋งŒ",IA,A,7);case 33:return MA(M,"้›ถไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน","ๅ็™พๅƒ่ฌ",IA,A,0);case 32:return MA(M,"้›ถๅฃน่ฒณๅƒๅ››ไบ”ๅ…ญไธƒๅ…ซไน","ๆ‹พ็™พๅƒ",IA,A,7);case 18:return qI(M,2406,2415,!0,j);case 20:return KI(M,1,19999,XI,3,j);case 21:return qI(M,2790,2799,!0,j);case 22:return qI(M,2662,2671,!0,j);case 22:return KI(M,1,10999,HI,3,j);case 23:return $I(M,"ใ‚ใ„ใ†ใˆใŠใ‹ใใใ‘ใ“ใ•ใ—ใ™ใ›ใใŸใกใคใฆใจใชใซใฌใญใฎใฏใฒใตใธใปใพใฟใ‚€ใ‚ใ‚‚ใ‚„ใ‚†ใ‚ˆใ‚‰ใ‚Šใ‚‹ใ‚Œใ‚ใ‚ใ‚ใ‚‘ใ‚’ใ‚“");case 24:return $I(M,"ใ„ใ‚ใฏใซใปใธใจใกใ‚Šใฌใ‚‹ใ‚’ใ‚ใ‹ใ‚ˆใŸใ‚Œใใคใญใชใ‚‰ใ‚€ใ†ใ‚ใฎใŠใใ‚„ใพใ‘ใตใ“ใˆใฆใ‚ใ•ใใ‚†ใ‚ใฟใ—ใ‚‘ใฒใ‚‚ใ›ใ™");case 27:return qI(M,3302,3311,!0,j);case 28:return $I(M,"ใ‚ขใ‚คใ‚ฆใ‚จใ‚ชใ‚ซใ‚ญใ‚ฏใ‚ฑใ‚ณใ‚ตใ‚ทใ‚นใ‚ปใ‚ฝใ‚ฟใƒใƒ„ใƒ†ใƒˆใƒŠใƒ‹ใƒŒใƒใƒŽใƒใƒ’ใƒ•ใƒ˜ใƒ›ใƒžใƒŸใƒ ใƒกใƒขใƒคใƒฆใƒจใƒฉใƒชใƒซใƒฌใƒญใƒฏใƒฐใƒฑใƒฒใƒณ",I);case 29:return $I(M,"ใ‚คใƒญใƒใƒ‹ใƒ›ใƒ˜ใƒˆใƒใƒชใƒŒใƒซใƒฒใƒฏใ‚ซใƒจใ‚ฟใƒฌใ‚ฝใƒ„ใƒใƒŠใƒฉใƒ ใ‚ฆใƒฐใƒŽใ‚ชใ‚ฏใƒคใƒžใ‚ฑใƒ•ใ‚ณใ‚จใƒ†ใ‚ขใ‚ตใ‚ญใƒฆใƒกใƒŸใ‚ทใƒฑใƒ’ใƒขใ‚ปใ‚น",I);case 34:return qI(M,3792,3801,!0,j);case 37:return qI(M,6160,6169,!0,j);case 38:return qI(M,4160,4169,!0,j);case 39:return qI(M,2918,2927,!0,j);case 40:return qI(M,1776,1785,!0,j);case 43:return qI(M,3046,3055,!0,j);case 44:return qI(M,3174,3183,!0,j);case 45:return qI(M,3664,3673,!0,j);case 46:return qI(M,3872,3881,!0,j);default:return qI(M,48,57,!0,j)}},zA="data-html2canvas-ignore",gA=function(){function M(M,N,D){if(this.context=M,this.options=D,this.scrolledElements=[],this.referenceElement=N,this.counters=new vI,this.quoteDepth=0,!N.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(N.ownerDocument.documentElement,!1)}return M.prototype.toIFrame=function(M,N){var D=this,A=TA(M,N);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var z=M.defaultView.pageXOffset,g=M.defaultView.pageYOffset,u=A.contentWindow,T=u.document,y=cA(A).then(function(){return j(D,void 0,void 0,function(){var M,D;return I(this,function(j){switch(j.label){case 0:return this.scrolledElements.forEach(EA),u&&(u.scrollTo(N.left,N.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||u.scrollY===N.top&&u.scrollX===N.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-N.left,u.scrollY-N.top,0,0))),M=this.options.onclone,void 0===(D=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:T.fonts&&T.fonts.ready?[4,T.fonts.ready]:[3,2];case 1:j.sent(),j.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,iA(T)]:[3,4];case 3:j.sent(),j.label=4;case 4:return"function"==typeof M?[2,Promise.resolve().then(function(){return M(T,D)}).then(function(){return A})]:[2,A]}})})});return T.open(),T.write(eA(document.doctype)+""),xA(this.referenceElement.ownerDocument,z,g),T.replaceChild(T.adoptNode(this.documentElement),T.documentElement),T.close(),y},M.prototype.createElementClone=function(M){if(oj(M,2),bI(M))return this.createCanvasClone(M);if(mI(M))return this.createVideoClone(M);if(WI(M))return this.createStyleClone(M);var N=M.cloneNode(!1);return ZI(N)&&(ZI(M)&&M.currentSrc&&M.currentSrc!==M.src&&(N.src=M.currentSrc,N.srcset=""),"lazy"===N.loading&&(N.loading="eager")),GI(N)?this.createCustomElementClone(N):N},M.prototype.createCustomElementClone=function(M){var N=document.createElement("html2canvascustomelement");return LA(M.style,N),N},M.prototype.createStyleClone=function(M){try{var N=M.sheet;if(N&&N.cssRules){var D=[].slice.call(N.cssRules,0).reduce(function(M,N){return N&&"string"==typeof N.cssText?M+N.cssText:M},""),j=M.cloneNode(!1);return j.textContent=D,j}}catch(M){if(this.context.logger.error("Unable to access cssRules property",M),"SecurityError"!==M.name)throw M}return M.cloneNode(!1)},M.prototype.createCanvasClone=function(M){var N;if(this.options.inlineImages&&M.ownerDocument){var D=M.ownerDocument.createElement("img");try{return D.src=M.toDataURL(),D}catch(N){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",M)}}var j=M.cloneNode(!1);try{j.width=M.width,j.height=M.height;var I=M.getContext("2d"),A=j.getContext("2d");if(A)if(!this.options.allowTaint&&I)A.putImageData(I.getImageData(0,0,M.width,M.height),0,0);else{var z=null!==(N=M.getContext("webgl2"))&&void 0!==N?N:M.getContext("webgl");if(z){var g=z.getContextAttributes();!1===(null==g?void 0:g.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",M)}A.drawImage(M,0,0)}return j}catch(N){this.context.logger.info("Unable to clone canvas as it is tainted",M)}return j},M.prototype.createVideoClone=function(M){var N=M.ownerDocument.createElement("canvas");N.width=M.offsetWidth,N.height=M.offsetHeight;var D=N.getContext("2d");try{return D&&(D.drawImage(M,0,0,N.width,N.height),this.options.allowTaint||D.getImageData(0,0,N.width,N.height)),N}catch(N){this.context.logger.info("Unable to clone video as it is tainted",M)}var j=M.ownerDocument.createElement("canvas");return j.width=M.offsetWidth,j.height=M.offsetHeight,j},M.prototype.appendChildNode=function(M,N,D){rI(N)&&("SCRIPT"===N.tagName||N.hasAttribute(zA)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(N))||this.options.copyStyles&&rI(N)&&WI(N)||M.appendChild(this.cloneNode(N,D))},M.prototype.cloneChildNodes=function(M,N,D){for(var j=this,I=M.shadowRoot?M.shadowRoot.firstChild:M.firstChild;I;I=I.nextSibling)if(rI(I)&&RI(I)&&"function"==typeof I.assignedNodes){var A=I.assignedNodes();A.length&&A.forEach(function(M){return j.appendChildNode(N,M,D)})}else this.appendChildNode(N,I,D)},M.prototype.cloneNode=function(M,N){if(CI(M))return document.createTextNode(M.data);if(!M.ownerDocument)return M.cloneNode(!1);var D=M.ownerDocument.defaultView;if(D&&rI(M)&&(lI(M)||sI(M))){var j=this.createElementClone(M);j.style.transitionProperty="none";var I=D.getComputedStyle(M),A=D.getComputedStyle(M,":before"),z=D.getComputedStyle(M,":after");this.referenceElement===M&&lI(j)&&(this.clonedReferenceElement=j),pI(j)&&SA(j);var g=this.counters.parse(new aj(this.context,I)),u=this.resolvePseudoContent(M,j,A,hj.BEFORE);GI(M)&&(N=!0),mI(M)||this.cloneChildNodes(M,j,N),u&&j.insertBefore(u,j.firstChild);var T=this.resolvePseudoContent(M,j,z,hj.AFTER);return T&&j.appendChild(T),this.counters.pop(g),(I&&(this.options.copyStyles||sI(M))&&!VI(M)||N)&&LA(I,j),0===M.scrollTop&&0===M.scrollLeft||this.scrolledElements.push([j,M.scrollLeft,M.scrollTop]),(BI(M)||FI(M))&&(BI(j)||FI(j))&&(j.value=M.value),j}return M.cloneNode(!1)},M.prototype.resolvePseudoContent=function(M,N,D,j){var I=this;if(D){var A=D.content,z=N.ownerDocument;if(z&&A&&"none"!==A&&"-moz-alt-content"!==A&&"none"!==D.display){this.counters.parse(new aj(this.context,D));var g=new Sj(this.context,D),u=z.createElement("html2canvaspseudoelement");LA(D,u),g.content.forEach(function(N){if(0===N.type)u.appendChild(z.createTextNode(N.value));else if(22===N.type){var D=z.createElement("img");D.src=N.value,D.style.opacity="1",u.appendChild(D)}else if(18===N.type){if("attr"===N.name){var j=N.values.filter(vM);j.length&&u.appendChild(z.createTextNode(M.getAttribute(j[0].value)||""))}else if("counter"===N.name){var A=N.values.filter(XM),T=A[0],y=A[1];if(T&&vM(T)){var i=I.counters.getCounterValue(T.value),c=y&&vM(y)?lD.parse(I.context,y.value):3;u.appendChild(z.createTextNode(AA(i,c,!1)))}}else if("counters"===N.name){var O=N.values.filter(XM),L=(T=O[0],O[1]);if(y=O[2],T&&vM(T)){var e=I.counters.getCounterValues(T.value),x=y&&vM(y)?lD.parse(I.context,y.value):3,E=L&&0===L.type?L.value:"",Q=e.map(function(M){return AA(M,x,!1)}).join(E);u.appendChild(z.createTextNode(Q))}}}else if(20===N.type)switch(N.value){case"open-quote":u.appendChild(z.createTextNode(ej(g.quotes,I.quoteDepth++,!0)));break;case"close-quote":u.appendChild(z.createTextNode(ej(g.quotes,--I.quoteDepth,!1)));break;default:u.appendChild(z.createTextNode(N.value))}}),u.className=QA+" "+tA;var T=j===hj.BEFORE?" "+QA:" "+tA;return sI(N)?N.className.baseValue+=T:N.className+=T,u}}},M.destroy=function(M){return!!M.parentNode&&(M.parentNode.removeChild(M),!0)},M}();!function(M){M[M.BEFORE=0]="BEFORE",M[M.AFTER=1]="AFTER"}(hj||(hj={}));var uA,TA=function(M,N){var D=M.createElement("iframe");return D.className="html2canvas-container",D.style.visibility="hidden",D.style.position="fixed",D.style.left="-10000px",D.style.top="0px",D.style.border="0",D.width=N.width.toString(),D.height=N.height.toString(),D.scrolling="no",D.setAttribute(zA,"true"),M.body.appendChild(D),D},yA=function(M){return new Promise(function(N){M.complete?N():M.src?(M.onload=N,M.onerror=N):N()})},iA=function(M){return Promise.all([].slice.call(M.images,0).map(yA))},cA=function(M){return new Promise(function(N,D){var j=M.contentWindow;if(!j)return D("No window assigned for iframe");var I=j.document;j.onload=M.onload=function(){j.onload=M.onload=null;var D=setInterval(function(){I.body.childNodes.length>0&&"complete"===I.readyState&&(clearInterval(D),N(M))},50)}})},OA=["all","d","content"],LA=function(M,N){for(var D=M.length-1;D>=0;D--){var j=M.item(D);-1===OA.indexOf(j)&&N.style.setProperty(j,M.getPropertyValue(j))}return N},eA=function(M){var N="";return M&&(N+=""),N},xA=function(M,N,D){M&&M.defaultView&&(N!==M.defaultView.pageXOffset||D!==M.defaultView.pageYOffset)&&M.defaultView.scrollTo(N,D)},EA=function(M){var N=M[0],D=M[1],j=M[2];N.scrollLeft=D,N.scrollTop=j},QA="___html2canvas___pseudoelement_before",tA="___html2canvas___pseudoelement_after",nA='{\n content: "" !important;\n display: none !important;\n}',SA=function(M){aA(M,"."+QA+":before"+nA+"\n ."+tA+":after"+nA)},aA=function(M,N){var D=M.ownerDocument;if(D){var j=D.createElement("style");j.textContent=N,M.appendChild(j)}},kA=function(){function M(){}return M.getOrigin=function(N){var D=M._link;return D?(D.href=N,D.href=D.href,D.protocol+D.hostname+D.port):"about:blank"},M.isSameOrigin=function(N){return M.getOrigin(N)===M._origin},M.setContext=function(N){M._link=N.document.createElement("a"),M._origin=M.getOrigin(N.location.href)},M._origin="about:blank",M}(),oA=function(){function M(M,N){this.context=M,this._options=N,this._cache={}}return M.prototype.addImage=function(M){var N=Promise.resolve();return this.has(M)?N:wA(M)||rA(M)?((this._cache[M]=this.loadImage(M)).catch(function(){}),N):N},M.prototype.match=function(M){return this._cache[M]},M.prototype.loadImage=function(M){return j(this,void 0,void 0,function(){var N,D,j,A,z=this;return I(this,function(I){switch(I.label){case 0:return N=kA.isSameOrigin(M),D=!lA(M)&&!0===this._options.useCORS&&Hj.SUPPORT_CORS_IMAGES&&!N,j=!lA(M)&&!N&&!wA(M)&&"string"==typeof this._options.proxy&&Hj.SUPPORT_CORS_XHR&&!D,N||!1!==this._options.allowTaint||lA(M)||wA(M)||j||D?(A=M,j?[4,this.proxy(A)]:[3,2]):[2];case 1:A=I.sent(),I.label=2;case 2:return this.context.logger.debug("Added image "+M.substring(0,256)),[4,new Promise(function(M,N){var j=new Image;j.onload=function(){return M(j)},j.onerror=N,(sA(A)||D)&&(j.crossOrigin="anonymous"),j.src=A,!0===j.complete&&setTimeout(function(){return M(j)},500),z._options.imageTimeout>0&&setTimeout(function(){return N("Timed out ("+z._options.imageTimeout+"ms) loading image")},z._options.imageTimeout)})];case 3:return[2,I.sent()]}})})},M.prototype.has=function(M){return void 0!==this._cache[M]},M.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},M.prototype.proxy=function(M){var N=this,D=this._options.proxy;if(!D)throw new Error("No proxy defined");var j=M.substring(0,256);return new Promise(function(I,A){var z=Hj.SUPPORT_RESPONSE_TYPE?"blob":"text",g=new XMLHttpRequest;g.onload=function(){if(200===g.status)if("text"===z)I(g.response);else{var M=new FileReader;M.addEventListener("load",function(){return I(M.result)},!1),M.addEventListener("error",function(M){return A(M)},!1),M.readAsDataURL(g.response)}else A("Failed to proxy resource "+j+" with status code "+g.status)},g.onerror=A;var u=D.indexOf("?")>-1?"&":"?";if(g.open("GET",""+D+u+"url="+encodeURIComponent(M)+"&responseType="+z),"text"!==z&&g instanceof XMLHttpRequest&&(g.responseType=z),N._options.imageTimeout){var T=N._options.imageTimeout;g.timeout=T,g.ontimeout=function(){return A("Timed out ("+T+"ms) proxying "+j)}}g.send()})},M}(),UA=/^data:image\/svg\+xml/i,YA=/^data:image\/.*;base64,/i,CA=/^data:image\/.*/i,rA=function(M){return Hj.SUPPORT_SVG_DRAWING||!dA(M)},lA=function(M){return CA.test(M)},sA=function(M){return YA.test(M)},wA=function(M){return"blob"===M.substr(0,4)},dA=function(M){return"svg"===M.substr(-3).toLowerCase()||UA.test(M)},fA=function(){function M(M,N){this.type=0,this.x=M,this.y=N}return M.prototype.add=function(N,D){return new M(this.x+N,this.y+D)},M}(),hA=function(M,N,D){return new fA(M.x+(N.x-M.x)*D,M.y+(N.y-M.y)*D)},pA=function(){function M(M,N,D,j){this.type=1,this.start=M,this.startControl=N,this.endControl=D,this.end=j}return M.prototype.subdivide=function(N,D){var j=hA(this.start,this.startControl,N),I=hA(this.startControl,this.endControl,N),A=hA(this.endControl,this.end,N),z=hA(j,I,N),g=hA(I,A,N),u=hA(z,g,N);return D?new M(this.start,j,z,u):new M(u,g,A,this.end)},M.prototype.add=function(N,D){return new M(this.start.add(N,D),this.startControl.add(N,D),this.endControl.add(N,D),this.end.add(N,D))},M.prototype.reverse=function(){return new M(this.end,this.endControl,this.startControl,this.start)},M}(),bA=function(M){return 1===M.type},mA=function(M){var N=M.styles,D=M.bounds,j=IN(N.borderTopLeftRadius,D.width,D.height),I=j[0],A=j[1],z=IN(N.borderTopRightRadius,D.width,D.height),g=z[0],u=z[1],T=IN(N.borderBottomRightRadius,D.width,D.height),y=T[0],i=T[1],c=IN(N.borderBottomLeftRadius,D.width,D.height),O=c[0],L=c[1],e=[];e.push((I+g)/D.width),e.push((O+y)/D.width),e.push((A+L)/D.height),e.push((u+i)/D.height);var x=Math.max.apply(Math,e);x>1&&(I/=x,A/=x,g/=x,u/=x,y/=x,i/=x,O/=x,L/=x);var E=D.width-g,Q=D.height-i,t=D.width-y,n=D.height-L,S=N.borderTopWidth,a=N.borderRightWidth,k=N.borderBottomWidth,o=N.borderLeftWidth,U=AN(N.paddingTop,M.bounds.width),Y=AN(N.paddingRight,M.bounds.width),C=AN(N.paddingBottom,M.bounds.width),r=AN(N.paddingLeft,M.bounds.width);this.topLeftBorderDoubleOuterBox=I>0||A>0?ZA(D.left+o/3,D.top+S/3,I-o/3,A-S/3,uA.TOP_LEFT):new fA(D.left+o/3,D.top+S/3),this.topRightBorderDoubleOuterBox=I>0||A>0?ZA(D.left+E,D.top+S/3,g-a/3,u-S/3,uA.TOP_RIGHT):new fA(D.left+D.width-a/3,D.top+S/3),this.bottomRightBorderDoubleOuterBox=y>0||i>0?ZA(D.left+t,D.top+Q,y-a/3,i-k/3,uA.BOTTOM_RIGHT):new fA(D.left+D.width-a/3,D.top+D.height-k/3),this.bottomLeftBorderDoubleOuterBox=O>0||L>0?ZA(D.left+o/3,D.top+n,O-o/3,L-k/3,uA.BOTTOM_LEFT):new fA(D.left+o/3,D.top+D.height-k/3),this.topLeftBorderDoubleInnerBox=I>0||A>0?ZA(D.left+2*o/3,D.top+2*S/3,I-2*o/3,A-2*S/3,uA.TOP_LEFT):new fA(D.left+2*o/3,D.top+2*S/3),this.topRightBorderDoubleInnerBox=I>0||A>0?ZA(D.left+E,D.top+2*S/3,g-2*a/3,u-2*S/3,uA.TOP_RIGHT):new fA(D.left+D.width-2*a/3,D.top+2*S/3),this.bottomRightBorderDoubleInnerBox=y>0||i>0?ZA(D.left+t,D.top+Q,y-2*a/3,i-2*k/3,uA.BOTTOM_RIGHT):new fA(D.left+D.width-2*a/3,D.top+D.height-2*k/3),this.bottomLeftBorderDoubleInnerBox=O>0||L>0?ZA(D.left+2*o/3,D.top+n,O-2*o/3,L-2*k/3,uA.BOTTOM_LEFT):new fA(D.left+2*o/3,D.top+D.height-2*k/3),this.topLeftBorderStroke=I>0||A>0?ZA(D.left+o/2,D.top+S/2,I-o/2,A-S/2,uA.TOP_LEFT):new fA(D.left+o/2,D.top+S/2),this.topRightBorderStroke=I>0||A>0?ZA(D.left+E,D.top+S/2,g-a/2,u-S/2,uA.TOP_RIGHT):new fA(D.left+D.width-a/2,D.top+S/2),this.bottomRightBorderStroke=y>0||i>0?ZA(D.left+t,D.top+Q,y-a/2,i-k/2,uA.BOTTOM_RIGHT):new fA(D.left+D.width-a/2,D.top+D.height-k/2),this.bottomLeftBorderStroke=O>0||L>0?ZA(D.left+o/2,D.top+n,O-o/2,L-k/2,uA.BOTTOM_LEFT):new fA(D.left+o/2,D.top+D.height-k/2),this.topLeftBorderBox=I>0||A>0?ZA(D.left,D.top,I,A,uA.TOP_LEFT):new fA(D.left,D.top),this.topRightBorderBox=g>0||u>0?ZA(D.left+E,D.top,g,u,uA.TOP_RIGHT):new fA(D.left+D.width,D.top),this.bottomRightBorderBox=y>0||i>0?ZA(D.left+t,D.top+Q,y,i,uA.BOTTOM_RIGHT):new fA(D.left+D.width,D.top+D.height),this.bottomLeftBorderBox=O>0||L>0?ZA(D.left,D.top+n,O,L,uA.BOTTOM_LEFT):new fA(D.left,D.top+D.height),this.topLeftPaddingBox=I>0||A>0?ZA(D.left+o,D.top+S,Math.max(0,I-o),Math.max(0,A-S),uA.TOP_LEFT):new fA(D.left+o,D.top+S),this.topRightPaddingBox=g>0||u>0?ZA(D.left+Math.min(E,D.width-a),D.top+S,E>D.width+a?0:Math.max(0,g-a),Math.max(0,u-S),uA.TOP_RIGHT):new fA(D.left+D.width-a,D.top+S),this.bottomRightPaddingBox=y>0||i>0?ZA(D.left+Math.min(t,D.width-o),D.top+Math.min(Q,D.height-k),Math.max(0,y-a),Math.max(0,i-k),uA.BOTTOM_RIGHT):new fA(D.left+D.width-a,D.top+D.height-k),this.bottomLeftPaddingBox=O>0||L>0?ZA(D.left+o,D.top+Math.min(n,D.height-k),Math.max(0,O-o),Math.max(0,L-k),uA.BOTTOM_LEFT):new fA(D.left+o,D.top+D.height-k),this.topLeftContentBox=I>0||A>0?ZA(D.left+o+r,D.top+S+U,Math.max(0,I-(o+r)),Math.max(0,A-(S+U)),uA.TOP_LEFT):new fA(D.left+o+r,D.top+S+U),this.topRightContentBox=g>0||u>0?ZA(D.left+Math.min(E,D.width+o+r),D.top+S+U,E>D.width+o+r?0:g-o+r,u-(S+U),uA.TOP_RIGHT):new fA(D.left+D.width-(a+Y),D.top+S+U),this.bottomRightContentBox=y>0||i>0?ZA(D.left+Math.min(t,D.width-(o+r)),D.top+Math.min(Q,D.height+S+U),Math.max(0,y-(a+Y)),i-(k+C),uA.BOTTOM_RIGHT):new fA(D.left+D.width-(a+Y),D.top+D.height-(k+C)),this.bottomLeftContentBox=O>0||L>0?ZA(D.left+o+r,D.top+n,Math.max(0,O-(o+r)),L-(k+C),uA.BOTTOM_LEFT):new fA(D.left+o+r,D.top+D.height-(k+C))};!function(M){M[M.TOP_LEFT=0]="TOP_LEFT",M[M.TOP_RIGHT=1]="TOP_RIGHT",M[M.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",M[M.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(uA||(uA={}));var ZA=function(M,N,D,j,I){var A=(Math.sqrt(2)-1)/3*4,z=D*A,g=j*A,u=M+D,T=N+j;switch(I){case uA.TOP_LEFT:return new pA(new fA(M,T),new fA(M,T-g),new fA(u-z,N),new fA(u,N));case uA.TOP_RIGHT:return new pA(new fA(M,N),new fA(M+z,N),new fA(u,T-g),new fA(u,T));case uA.BOTTOM_RIGHT:return new pA(new fA(u,N),new fA(u,N+g),new fA(M+z,T),new fA(M,T));case uA.BOTTOM_LEFT:default:return new pA(new fA(u,T),new fA(u-z,T),new fA(M,N+g),new fA(M,N))}},VA=function(M){return[M.topLeftBorderBox,M.topRightBorderBox,M.bottomRightBorderBox,M.bottomLeftBorderBox]},WA=function(M){return[M.topLeftPaddingBox,M.topRightPaddingBox,M.bottomRightPaddingBox,M.bottomLeftPaddingBox]},BA=function(M,N,D){this.offsetX=M,this.offsetY=N,this.matrix=D,this.type=0,this.target=6},FA=function(M,N){this.path=M,this.target=N,this.type=1},RA=function(M){this.opacity=M,this.type=2,this.target=6},GA=function(M){return 1===M.type},vA=function(M,N){return M.length===N.length&&M.some(function(M,D){return M===N[D]})},JA=function(M){this.element=M,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},PA=function(){function M(M,N){if(this.container=M,this.parent=N,this.effects=[],this.curves=new mA(this.container),this.container.styles.opacity<1&&this.effects.push(new RA(this.container.styles.opacity)),null!==this.container.styles.transform){var D=this.container.bounds.left+this.container.styles.transformOrigin[0].number,j=this.container.bounds.top+this.container.styles.transformOrigin[1].number,I=this.container.styles.transform;this.effects.push(new BA(D,j,I))}if(0!==this.container.styles.overflowX){var A=VA(this.curves),z=WA(this.curves);vA(A,z)?this.effects.push(new FA(A,6)):(this.effects.push(new FA(A,2)),this.effects.push(new FA(z,4)))}}return M.prototype.getEffects=function(M){for(var N=-1===[2,3].indexOf(this.container.styles.position),D=this.parent,j=this.effects.slice(0);D;){var I=D.effects.filter(function(M){return!GA(M)});if(N||0!==D.container.styles.position||!D.parent){if(j.unshift.apply(j,I),N=-1===[2,3].indexOf(D.container.styles.position),0!==D.container.styles.overflowX){var A=VA(D.curves),z=WA(D.curves);vA(A,z)||j.unshift(new FA(z,6))}}else j.unshift.apply(j,I);D=D.parent}return j.filter(function(N){return Tj(N.target,M)})},M}(),HA=function(M,N,D,j){M.container.elements.forEach(function(I){var A=Tj(I.flags,4),z=Tj(I.flags,2),g=new PA(I,M);Tj(I.styles.display,2048)&&j.push(g);var u=Tj(I.flags,8)?[]:j;if(A||z){var T=A||I.styles.isPositioned()?D:N,y=new JA(g);if(I.styles.isPositioned()||I.styles.opacity<1||I.styles.isTransformed()){var i=I.styles.zIndex.order;if(i<0){var c=0;T.negativeZIndex.some(function(M,N){return i>M.element.container.styles.zIndex.order?(c=N,!1):c>0}),T.negativeZIndex.splice(c,0,y)}else if(i>0){var O=0;T.positiveZIndex.some(function(M,N){return i>=M.element.container.styles.zIndex.order?(O=N+1,!1):O>0}),T.positiveZIndex.splice(O,0,y)}else T.zeroOrAutoZIndexOrTransformedOrOpacity.push(y)}else I.styles.isFloating()?T.nonPositionedFloats.push(y):T.nonPositionedInlineLevel.push(y);HA(g,y,A?y:D,u)}else I.styles.isInlineLevel()?N.inlineLevel.push(g):N.nonInlineLevel.push(g),HA(g,N,D,u);Tj(I.flags,8)&&XA(I,u)})},XA=function(M,N){for(var D=M instanceof yI?M.start:1,j=M instanceof yI&&M.reversed,I=0;I0&&M.intrinsicHeight>0){var j=Mz(M),I=WA(N);this.path(I),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(D,0,0,M.intrinsicWidth,M.intrinsicHeight,j.left,j.top,j.width,j.height),this.ctx.restore()}},D.prototype.renderNodeContent=function(M){return j(this,void 0,void 0,function(){var N,j,A,g,u,T,y,i,c,O,L,e,x,E,Q,t,n,S;return I(this,function(I){switch(I.label){case 0:this.applyEffects(M.getEffects(4)),N=M.container,j=M.curves,A=N.styles,g=0,u=N.textNodes,I.label=1;case 1:return g0&&o>0&&(Q=j.ctx.createPattern(e,"repeat"),j.renderRepeat(n,Q,Y,C))):function(M){return 2===M.type}(D)&&(t=Nz(M,N,[null,null,null]),n=t[0],S=t[1],a=t[2],k=t[3],o=t[4],U=0===D.position.length?[DN]:D.position,Y=AN(U[0],k),C=AN(U[U.length-1],o),r=function(M,N,D,j,I){var A=0,z=0;switch(M.size){case 0:0===M.shape?A=z=Math.min(Math.abs(N),Math.abs(N-j),Math.abs(D),Math.abs(D-I)):1===M.shape&&(A=Math.min(Math.abs(N),Math.abs(N-j)),z=Math.min(Math.abs(D),Math.abs(D-I)));break;case 2:if(0===M.shape)A=z=Math.min(rN(N,D),rN(N,D-I),rN(N-j,D),rN(N-j,D-I));else if(1===M.shape){var g=Math.min(Math.abs(D),Math.abs(D-I))/Math.min(Math.abs(N),Math.abs(N-j)),u=lN(j,I,N,D,!0),T=u[0],y=u[1];z=g*(A=rN(T-N,(y-D)/g))}break;case 1:0===M.shape?A=z=Math.max(Math.abs(N),Math.abs(N-j),Math.abs(D),Math.abs(D-I)):1===M.shape&&(A=Math.max(Math.abs(N),Math.abs(N-j)),z=Math.max(Math.abs(D),Math.abs(D-I)));break;case 3:if(0===M.shape)A=z=Math.max(rN(N,D),rN(N,D-I),rN(N-j,D),rN(N-j,D-I));else if(1===M.shape){g=Math.max(Math.abs(D),Math.abs(D-I))/Math.max(Math.abs(N),Math.abs(N-j));var i=lN(j,I,N,D,!1);T=i[0],y=i[1],z=g*(A=rN(T-N,(y-D)/g))}}return Array.isArray(M.size)&&(A=AN(M.size[0],j),z=2===M.size.length?AN(M.size[1],I):A),[A,z]}(D,Y,C,k,o),l=r[0],s=r[1],l>0&&s>0&&(w=j.ctx.createRadialGradient(S+Y,a+C,0,S+Y,a+C,l),YN(D.stops,2*l).forEach(function(M){return w.addColorStop(M.stop,LN(M.color))}),j.path(n),j.ctx.fillStyle=w,l!==s?(d=M.bounds.left+.5*M.bounds.width,f=M.bounds.top+.5*M.bounds.height,p=1/(h=s/l),j.ctx.save(),j.ctx.translate(d,f),j.ctx.transform(1,0,0,h,0,0),j.ctx.translate(-d,-f),j.ctx.fillRect(S,p*(a-f)+f,k,o*p),j.ctx.restore()):j.ctx.fill())),I.label=6;case 6:return N--,[2]}})},j=this,A=0,z=M.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return A0?2!==T.style?[3,5]:[4,this.renderDashedDottedBorder(T.color,T.width,z,M.curves,2)]:[3,11]:[3,13];case 4:return I.sent(),[3,11];case 5:return 3!==T.style?[3,7]:[4,this.renderDashedDottedBorder(T.color,T.width,z,M.curves,3)];case 6:return I.sent(),[3,11];case 7:return 4!==T.style?[3,9]:[4,this.renderDoubleBorder(T.color,T.width,z,M.curves)];case 8:return I.sent(),[3,11];case 9:return[4,this.renderSolidBorder(T.color,z,M.curves)];case 10:I.sent(),I.label=11;case 11:z++,I.label=12;case 12:return g++,[3,3];case 13:return[2]}})})},D.prototype.renderDashedDottedBorder=function(M,N,D,A,z){return j(this,void 0,void 0,function(){var j,g,u,T,y,i,c,O,L,e,x,E,Q,t,n,S;return I(this,function(I){return this.ctx.save(),j=function(M,N){switch(N){case 0:return _A(M.topLeftBorderStroke,M.topRightBorderStroke);case 1:return _A(M.topRightBorderStroke,M.bottomRightBorderStroke);case 2:return _A(M.bottomRightBorderStroke,M.bottomLeftBorderStroke);default:return _A(M.bottomLeftBorderStroke,M.topLeftBorderStroke)}}(A,D),g=KA(A,D),2===z&&(this.path(g),this.ctx.clip()),bA(g[0])?(u=g[0].start.x,T=g[0].start.y):(u=g[0].x,T=g[0].y),bA(g[1])?(y=g[1].end.x,i=g[1].end.y):(y=g[1].x,i=g[1].y),c=0===D||2===D?Math.abs(u-y):Math.abs(T-i),this.ctx.beginPath(),3===z?this.formatPath(j):this.formatPath(g.slice(0,2)),O=N<3?3*N:2*N,L=N<3?2*N:N,3===z&&(O=N,L=N),e=!0,c<=2*O?e=!1:c<=2*O+L?(O*=x=c/(2*O+L),L*=x):(E=Math.floor((c+L)/(O+L)),Q=(c-E*O)/(E-1),L=(t=(c-(E+1)*O)/E)<=0||Math.abs(L-Q)=D||N<0||E&&M-y>=z}function S(){var M=O();if(n(M))return a(M);u=setTimeout(S,function(M){var N=D-(M-T);return E?c(N,z-(M-y)):N}(M))}function a(M){return u=void 0,Q&&I?t(M):(I=A=void 0,g)}function k(){var M=O(),N=n(M);if(I=arguments,A=this,T=M,N){if(void 0===u)return function(M){return y=M,u=setTimeout(S,D),x?t(M):g}(T);if(E)return u=setTimeout(S,D),t(T)}return void 0===u&&(u=setTimeout(S,D)),g}return D=e(D)||0,L(j)&&(x=!!j.leading,z=(E="maxWait"in j)?i(e(j.maxWait)||0,D):z,Q="trailing"in j?!!j.trailing:Q),k.cancel=function(){void 0!==u&&clearTimeout(u),y=0,I=T=A=u=void 0},k.flush=function(){return void 0===u?g:a(O())},k}(M,D,{leading:I,maxWait:D,trailing:A})}},819(M,N,D){var j;!function(I){var A=/^\s+/,z=/\s+$/,g=0,u=I.round,T=I.min,y=I.max,i=I.random;function c(M,N){if(N=N||{},(M=M||"")instanceof c)return M;if(!(this instanceof c))return new c(M,N);var D=function(M){var N,D,j,g={r:0,g:0,b:0},u=1,i=null,c=null,O=null,L=!1,e=!1;return"string"==typeof M&&(M=function(M){M=M.replace(A,"").replace(z,"").toLowerCase();var N,D=!1;if(s[M])M=s[M],D=!0;else if("transparent"==M)return{r:0,g:0,b:0,a:0,format:"name"};return(N=R.rgb.exec(M))?{r:N[1],g:N[2],b:N[3]}:(N=R.rgba.exec(M))?{r:N[1],g:N[2],b:N[3],a:N[4]}:(N=R.hsl.exec(M))?{h:N[1],s:N[2],l:N[3]}:(N=R.hsla.exec(M))?{h:N[1],s:N[2],l:N[3],a:N[4]}:(N=R.hsv.exec(M))?{h:N[1],s:N[2],v:N[3]}:(N=R.hsva.exec(M))?{h:N[1],s:N[2],v:N[3],a:N[4]}:(N=R.hex8.exec(M))?{r:p(N[1]),g:p(N[2]),b:p(N[3]),a:V(N[4]),format:D?"name":"hex8"}:(N=R.hex6.exec(M))?{r:p(N[1]),g:p(N[2]),b:p(N[3]),format:D?"name":"hex"}:(N=R.hex4.exec(M))?{r:p(N[1]+""+N[1]),g:p(N[2]+""+N[2]),b:p(N[3]+""+N[3]),a:V(N[4]+""+N[4]),format:D?"name":"hex8"}:!!(N=R.hex3.exec(M))&&{r:p(N[1]+""+N[1]),g:p(N[2]+""+N[2]),b:p(N[3]+""+N[3]),format:D?"name":"hex"}}(M)),"object"==typeof M&&(G(M.r)&&G(M.g)&&G(M.b)?(N=M.r,D=M.g,j=M.b,g={r:255*f(N,255),g:255*f(D,255),b:255*f(j,255)},L=!0,e="%"===String(M.r).substr(-1)?"prgb":"rgb"):G(M.h)&&G(M.s)&&G(M.v)?(i=m(M.s),c=m(M.v),g=function(M,N,D){M=6*f(M,360),N=f(N,100),D=f(D,100);var j=I.floor(M),A=M-j,z=D*(1-N),g=D*(1-A*N),u=D*(1-(1-A)*N),T=j%6;return{r:255*[D,g,z,z,u,D][T],g:255*[u,D,D,g,z,z][T],b:255*[z,z,u,D,D,g][T]}}(M.h,i,c),L=!0,e="hsv"):G(M.h)&&G(M.s)&&G(M.l)&&(i=m(M.s),O=m(M.l),g=function(M,N,D){var j,I,A;function z(M,N,D){return D<0&&(D+=1),D>1&&(D-=1),D<1/6?M+6*(N-M)*D:D<.5?N:D<2/3?M+(N-M)*(2/3-D)*6:M}if(M=f(M,360),N=f(N,100),D=f(D,100),0===N)j=I=A=D;else{var g=D<.5?D*(1+N):D+N-D*N,u=2*D-g;j=z(u,g,M+1/3),I=z(u,g,M),A=z(u,g,M-1/3)}return{r:255*j,g:255*I,b:255*A}}(M.h,i,O),L=!0,e="hsl"),M.hasOwnProperty("a")&&(u=M.a)),u=d(u),{ok:L,format:M.format||e,r:T(255,y(g.r,0)),g:T(255,y(g.g,0)),b:T(255,y(g.b,0)),a:u}}(M);this._originalInput=M,this._r=D.r,this._g=D.g,this._b=D.b,this._a=D.a,this._roundA=u(100*this._a)/100,this._format=N.format||D.format,this._gradientType=N.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=D.ok,this._tc_id=g++}function O(M,N,D){M=f(M,255),N=f(N,255),D=f(D,255);var j,I,A=y(M,N,D),z=T(M,N,D),g=(A+z)/2;if(A==z)j=I=0;else{var u=A-z;switch(I=g>.5?u/(2-A-z):u/(A+z),A){case M:j=(N-D)/u+(N>1)+720)%360;--N;)j.h=(j.h+I)%360,A.push(c(j));return A}function l(M,N){N=N||6;for(var D=c(M).toHsv(),j=D.h,I=D.s,A=D.v,z=[],g=1/N;N--;)z.push(c({h:j,s:I,v:A})),A=(A+g)%1;return z}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var M=this.toRgb();return(299*M.r+587*M.g+114*M.b)/1e3},getLuminance:function(){var M,N,D,j=this.toRgb();return M=j.r/255,N=j.g/255,D=j.b/255,.2126*(M<=.03928?M/12.92:I.pow((M+.055)/1.055,2.4))+.7152*(N<=.03928?N/12.92:I.pow((N+.055)/1.055,2.4))+.0722*(D<=.03928?D/12.92:I.pow((D+.055)/1.055,2.4))},setAlpha:function(M){return this._a=d(M),this._roundA=u(100*this._a)/100,this},toHsv:function(){var M=L(this._r,this._g,this._b);return{h:360*M.h,s:M.s,v:M.v,a:this._a}},toHsvString:function(){var M=L(this._r,this._g,this._b),N=u(360*M.h),D=u(100*M.s),j=u(100*M.v);return 1==this._a?"hsv("+N+", "+D+"%, "+j+"%)":"hsva("+N+", "+D+"%, "+j+"%, "+this._roundA+")"},toHsl:function(){var M=O(this._r,this._g,this._b);return{h:360*M.h,s:M.s,l:M.l,a:this._a}},toHslString:function(){var M=O(this._r,this._g,this._b),N=u(360*M.h),D=u(100*M.s),j=u(100*M.l);return 1==this._a?"hsl("+N+", "+D+"%, "+j+"%)":"hsla("+N+", "+D+"%, "+j+"%, "+this._roundA+")"},toHex:function(M){return e(this._r,this._g,this._b,M)},toHexString:function(M){return"#"+this.toHex(M)},toHex8:function(M){return function(M,N,D,j,I){var A=[b(u(M).toString(16)),b(u(N).toString(16)),b(u(D).toString(16)),b(Z(j))];return I&&A[0].charAt(0)==A[0].charAt(1)&&A[1].charAt(0)==A[1].charAt(1)&&A[2].charAt(0)==A[2].charAt(1)&&A[3].charAt(0)==A[3].charAt(1)?A[0].charAt(0)+A[1].charAt(0)+A[2].charAt(0)+A[3].charAt(0):A.join("")}(this._r,this._g,this._b,this._a,M)},toHex8String:function(M){return"#"+this.toHex8(M)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*f(this._r,255))+"%",g:u(100*f(this._g,255))+"%",b:u(100*f(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*f(this._r,255))+"%, "+u(100*f(this._g,255))+"%, "+u(100*f(this._b,255))+"%)":"rgba("+u(100*f(this._r,255))+"%, "+u(100*f(this._g,255))+"%, "+u(100*f(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(w[e(this._r,this._g,this._b,!0)]||!1)},toFilter:function(M){var N="#"+x(this._r,this._g,this._b,this._a),D=N,j=this._gradientType?"GradientType = 1, ":"";if(M){var I=c(M);D="#"+x(I._r,I._g,I._b,I._a)}return"progid:DXImageTransform.Microsoft.gradient("+j+"startColorstr="+N+",endColorstr="+D+")"},toString:function(M){var N=!!M;M=M||this._format;var D=!1,j=this._a<1&&this._a>=0;return N||!j||"hex"!==M&&"hex6"!==M&&"hex3"!==M&&"hex4"!==M&&"hex8"!==M&&"name"!==M?("rgb"===M&&(D=this.toRgbString()),"prgb"===M&&(D=this.toPercentageRgbString()),"hex"!==M&&"hex6"!==M||(D=this.toHexString()),"hex3"===M&&(D=this.toHexString(!0)),"hex4"===M&&(D=this.toHex8String(!0)),"hex8"===M&&(D=this.toHex8String()),"name"===M&&(D=this.toName()),"hsl"===M&&(D=this.toHslString()),"hsv"===M&&(D=this.toHsvString()),D||this.toHexString()):"name"===M&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(M,N){var D=M.apply(null,[this].concat([].slice.call(N)));return this._r=D._r,this._g=D._g,this._b=D._b,this.setAlpha(D._a),this},lighten:function(){return this._applyModification(n,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(a,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(Q,arguments)},greyscale:function(){return this._applyModification(t,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(M,N){return M.apply(null,[this].concat([].slice.call(N)))},analogous:function(){return this._applyCombination(r,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(l,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(U,arguments)},tetrad:function(){return this._applyCombination(Y,arguments)}},c.fromRatio=function(M,N){if("object"==typeof M){var D={};for(var j in M)M.hasOwnProperty(j)&&(D[j]="a"===j?M[j]:m(M[j]));M=D}return c(M,N)},c.equals=function(M,N){return!(!M||!N)&&c(M).toRgbString()==c(N).toRgbString()},c.random=function(){return c.fromRatio({r:i(),g:i(),b:i()})},c.mix=function(M,N,D){D=0===D?0:D||50;var j=c(M).toRgb(),I=c(N).toRgb(),A=D/100;return c({r:(I.r-j.r)*A+j.r,g:(I.g-j.g)*A+j.g,b:(I.b-j.b)*A+j.b,a:(I.a-j.a)*A+j.a})},c.readability=function(M,N){var D=c(M),j=c(N);return(I.max(D.getLuminance(),j.getLuminance())+.05)/(I.min(D.getLuminance(),j.getLuminance())+.05)},c.isReadable=function(M,N,D){var j,I,A,z,g,u=c.readability(M,N);switch(I=!1,(A=D,"AA"!==(z=((A=A||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==z&&(z="AA"),"small"!==(g=(A.size||"small").toLowerCase())&&"large"!==g&&(g="small"),j={level:z,size:g}).level+j.size){case"AAsmall":case"AAAlarge":I=u>=4.5;break;case"AAlarge":I=u>=3;break;case"AAAsmall":I=u>=7}return I},c.mostReadable=function(M,N,D){var j,I,A,z,g=null,u=0;I=(D=D||{}).includeFallbackColors,A=D.level,z=D.size;for(var T=0;Tu&&(u=j,g=c(N[T]));return c.isReadable(M,g,{level:A,size:z})||!I?g:(D.includeFallbackColors=!1,c.mostReadable(M,["#fff","#000"],D))};var s=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},w=c.hexNames=function(M){var N={};for(var D in M)M.hasOwnProperty(D)&&(N[M[D]]=D);return N}(s);function d(M){return M=parseFloat(M),(isNaN(M)||M<0||M>1)&&(M=1),M}function f(M,N){(function(M){return"string"==typeof M&&-1!=M.indexOf(".")&&1===parseFloat(M)})(M)&&(M="100%");var D=function(M){return"string"==typeof M&&-1!=M.indexOf("%")}(M);return M=T(N,y(0,parseFloat(M))),D&&(M=parseInt(M*N,10)/100),I.abs(M-N)<1e-6?1:M%N/parseFloat(N)}function h(M){return T(1,y(0,M))}function p(M){return parseInt(M,16)}function b(M){return 1==M.length?"0"+M:""+M}function m(M){return M<=1&&(M=100*M+"%"),M}function Z(M){return I.round(255*parseFloat(M)).toString(16)}function V(M){return p(M)/255}var W,B,F,R=(B="[\\s|\\(]+("+(W="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",F="[\\s|\\(]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",{CSS_UNIT:new RegExp(W),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(M){return!!R.CSS_UNIT.exec(M)}M.exports?M.exports=c:void 0===(j=function(){return c}.call(N,D,N,M))||(M.exports=j)}(Math)}};const N={};function D(j){const I=N[j];if(void 0!==I)return I.exports;const A=N[j]={exports:{}};return M[j].call(A.exports,A,A.exports,D),A.exports}D.n=M=>{const N=M&&M.__esModule?()=>M.default:()=>M;return D.d(N,{a:N}),N},D.cw=M=>{var N;return()=>{if(M){var D=M;M=0,N={exports:{}},D.call(N.exports,N,N.exports)}return N.exports}},(()=>{const M=Object.getPrototypeOf;let N;D.t=function(j,I){if(1&I&&(j=this(j)),8&I)return j;if("object"==typeof j&&j){if(4&I&&j.__esModule)return j;if(16&I&&"function"==typeof j.then)return j}const A=Object.create(null);D.r(A);const z={};N||=[null,M({}),M([]),M(M)];for(var g=2&I&&j;("object"==typeof g||"function"==typeof g)&&!~N.indexOf(g);g=M(g))Object.getOwnPropertyNames(g).forEach(M=>z[M]=()=>j[M]);return z.default=()=>j,D.d(A,z),A}})(),D.d=(M,N)=>{for(var j in N)D.o(N,j)&&!D.o(M,j)&&Object.defineProperty(M,j,{enumerable:!0,get:N[j]})},D.o=(M,N)=>Object.hasOwn(M,N),D.r=M=>{Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},(()=>{let M;globalThis.importScripts&&(M=globalThis.location+"");const N=globalThis.document;if(!M&&N&&("SCRIPT"===N.currentScript?.tagName.toUpperCase()&&(M=N.currentScript.src),!M)){const D=N.getElementsByTagName("script");if(D.length){let N=D.length-1;for(;N>-1&&(!M||!/^https?:/.test(M));)M=D[N--].src}}if(!M)throw new Error("Automatic publicPath is not supported in this browser");M=M.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),D.p=M})(),(()=>{"use strict";var M=D.cw(function(M,N){var D=g(),j="function"==typeof Object.is?Object.is:function(M,N){return M===N&&(0!==M||1/M==1/N)||M!=M&&N!=N},I=D.useState,A=D.useEffect,z=D.useLayoutEffect,u=D.useDebugValue;function T(M){var N=M.getSnapshot;M=M.value;try{var D=N();return!j(M,D)}catch(M){return!0}}var y="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(M,N){return N()}:function(M,N){var D=N(),j=I({inst:{value:D,getSnapshot:N}}),g=j[0].inst,y=j[1];return z(function(){g.value=D,g.getSnapshot=N,T(g)&&y({inst:g})},[M,D,N]),A(function(){return T(g)&&y({inst:g}),M(function(){T(g)&&y({inst:g})})},[M]),u(D),D};N.useSyncExternalStore=void 0!==D.useSyncExternalStore?D.useSyncExternalStore:y}),N=D.cw(function(M,N){var D=g(),j=I(),A="function"==typeof Object.is?Object.is:function(M,N){return M===N&&(0!==M||1/M==1/N)||M!=M&&N!=N},z=j.useSyncExternalStore,u=D.useRef,T=D.useEffect,y=D.useMemo,i=D.useDebugValue;N.useSyncExternalStoreWithSelector=function(M,N,D,j,I){var g=u(null);if(null===g.current){var c={hasValue:!1,value:null};g.current=c}else c=g.current;g=y(function(){function M(M){if(!u){if(u=!0,z=M,M=j(M),void 0!==I&&c.hasValue){var N=c.value;if(I(N,M))return g=N}return g=M}if(N=g,A(z,M))return N;var D=j(M);return void 0!==I&&I(N,D)?(z=M,N):(z=M,g=D)}var z,g,u=!1,T=void 0===D?null:D;return[function(){return M(N())},null===T?void 0:function(){return M(T())}]},[N,D,j,I]);var O=z(M,g[0],g[1]);return T(function(){c.hasValue=!0,c.value=O},[O]),i(O),O}}),j=D.cw(function(M,N){var D=g(),j="function"==typeof Object.is?Object.is:function(M,N){return M===N&&(0!==M||1/M==1/N)||M!=M&&N!=N},I=D.useSyncExternalStore,A=D.useRef,z=D.useEffect,u=D.useMemo,T=D.useDebugValue;N.useSyncExternalStoreWithSelector=function(M,N,D,g,y){var i=A(null);if(null===i.current){var c={hasValue:!1,value:null};i.current=c}else c=i.current;i=u(function(){function M(M){if(!z){if(z=!0,I=M,M=g(M),void 0!==y&&c.hasValue){var N=c.value;if(y(N,M))return A=N}return A=M}if(N=A,j(I,M))return N;var D=g(M);return void 0!==y&&y(N,D)?(I=M,N):(I=M,A=D)}var I,A,z=!1,u=void 0===D?null:D;return[function(){return M(N())},null===u?void 0:function(){return M(u())}]},[N,D,g,y]);var O=I(M,i[0],i[1]);return z(function(){c.hasValue=!0,c.value=O},[O]),T(O),O}}),I=D.cw(function(N,D){N.exports=M()}),A=D.cw(function(M,D){M.exports=N()}),z=D.cw(function(M,N){M.exports=j()}),g=D.cw(function(M,N){M.exports=window.React}),u={};D.r(u),D.d(u,{Button:()=>TU,CaptionLabel:()=>yU,Chevron:()=>iU,Day:()=>cU,DayButton:()=>OU,Dropdown:()=>LU,DropdownNav:()=>eU,Footer:()=>xU,Month:()=>EU,MonthCaption:()=>QU,MonthGrid:()=>tU,Months:()=>nU,MonthsDropdown:()=>kU,Nav:()=>oU,NextMonthButton:()=>UU,Option:()=>YU,PreviousMonthButton:()=>CU,Root:()=>rU,Select:()=>lU,Week:()=>sU,WeekNumber:()=>fU,WeekNumberHeader:()=>hU,Weekday:()=>wU,Weekdays:()=>dU,Weeks:()=>pU,YearsDropdown:()=>bU});var T={};D.r(T),D.d(T,{formatCaption:()=>ZU,formatDay:()=>WU,formatMonthCaption:()=>VU,formatMonthDropdown:()=>BU,formatWeekNumber:()=>RU,formatWeekNumberHeader:()=>GU,formatWeekdayName:()=>FU,formatYearCaption:()=>JU,formatYearDropdown:()=>vU});var y={};D.r(y),D.d(y,{labelCaption:()=>KU,labelDay:()=>HU,labelDayButton:()=>PU,labelGrid:()=>XU,labelGridcell:()=>_U,labelMonthDropdown:()=>qU,labelNav:()=>$U,labelNext:()=>NY,labelPrevious:()=>DY,labelWeekNumber:()=>IY,labelWeekNumberHeader:()=>AY,labelWeekday:()=>jY,labelYearDropdown:()=>zY});const i=window.ReactDOM;function c(){return c.c||(c.c=D.t(g(),2))}function O(){return O.c||(O.c=D.n(g()))}function L(M){M()}g(),z();var e={notify(){},get:()=>[]};var x=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),E=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Q=(()=>x||E?g().useLayoutEffect:g().useEffect)();function t(M,N){return M===N?0!==M||0!==N||1/M==1/N:M!=M&&N!=N}function n(M,N){if(t(M,N))return!0;if("object"!=typeof M||null===M||"object"!=typeof N||null===N)return!1;const D=Object.keys(M),j=Object.keys(N);if(D.length!==j.length)return!1;for(let j=0;j{const M=function(M,N){let D,j=e,I=0,A=!1;function z(){T.onStateChange&&T.onStateChange()}function g(){I++,D||(D=N?N.addNestedSub(z):M.subscribe(z),j=function(){let M=null,N=null;return{clear(){M=null,N=null},notify(){L(()=>{let N=M;for(;N;)N.callback(),N=N.next})},get(){const N=[];let D=M;for(;D;)N.push(D),D=D.next;return N},subscribe(D){let j=!0;const I=N={callback:D,next:null,prev:N};return I.prev?I.prev.next=I:M=I,function(){j&&null!==M&&(j=!1,I.next?I.next.prev=I.prev:N=I.prev,I.prev?I.prev.next=I.next:M=I.next)}}}}())}function u(){I--,D&&0===I&&(D(),D=void 0,j.clear(),j=e)}const T={addNestedSub:function(M){g();const N=j.subscribe(M);let D=!1;return()=>{D||(D=!0,N(),u())}},notifyNestedSubs:function(){j.notify()},handleChangeWrapper:z,isSubscribed:function(){return A},trySubscribe:function(){A||(A=!0,g())},tryUnsubscribe:function(){A&&(A=!1,u())},getListeners:()=>j};return T}(I);return{store:I,subscription:M,getServerState:j?()=>j:void 0}},[I,j]),z=g().useMemo(()=>I.getState(),[I]);Q(()=>{const{subscription:M}=A;return M.onStateChange=M.notifyNestedSubs,M.trySubscribe(),z!==I.getState()&&M.notifyNestedSubs(),()=>{M.tryUnsubscribe(),M.onStateChange=void 0}},[A,z]);const u=D||o;return g().createElement(u.Provider,{value:A},N)};function Y(M=o){return function(){return g().useContext(M)}}var C=Y();function r(M=o){const N=M===o?C:Y(M),D=()=>{const{store:M}=N();return M};return Object.assign(D,{withTypes:()=>D}),D}var l=r();function s(M=o){const N=M===o?l:r(M),D=()=>N().dispatch;return Object.assign(D,{withTypes:()=>D}),D}var w=s(),d=(M,N)=>M===N;function f(M=o){const N=M===o?C:Y(M),D=(M,D={})=>{const{equalityFn:I=d}="function"==typeof D?{equalityFn:D}:D,A=N(),{store:z,subscription:u,getServerState:T}=A,y=(g().useRef(!0),g().useCallback({[M.name]:N=>M(N)}[M.name],[M])),i=(0,j().useSyncExternalStoreWithSelector)(u.addNestedSub,z.getState,T||z.getState,y,I);return g().useDebugValue(i),i};return Object.assign(D,{withTypes:()=>D}),D}var h=f(),p=L,b=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,m=/^[\\/]{2}/;var Z="popstate";function V(M){return"object"==typeof M&&null!=M&&"pathname"in M&&"search"in M&&"hash"in M&&"state"in M&&"key"in M}function W(M={}){return function(M,N,D,j={}){let{window:I=document.defaultView,v5Compat:A=!1}=j,z=I.history,g="POP",u=null,T=y();function y(){return(z.state||{idx:null}).idx}function i(){g="POP";let M=y(),N=null==M?null:M-T;T=M,u&&u({action:g,location:O.location,delta:N})}function c(M){return function(M,N,D=!1){let j="http://localhost";M&&(j="null"!==M.location.origin?M.location.origin:M.location.href),B(j,"No window.location.(origin|href) available to create URL");let I="string"==typeof N?N:v(N);return I=I.replace(/ $/,"%20"),!D&&m.test(I)&&(I=j+I),new URL(I,j)}(I,M)}null==T&&(T=0,z.replaceState({...z.state,idx:T},""));let O={get action(){return g},get location(){return M(I,z)},listen(M){if(u)throw new Error("A history only accepts one active listener");return I.addEventListener(Z,i),u=M,()=>{I.removeEventListener(Z,i),u=null}},createHref:M=>N(I,M),createURL:c,encodeLocation(M){let N=c(M);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:function(M,N){g="PUSH";let j=V(M)?M:G(O.location,M,N);D&&D(j,M),T=y()+1;let i=R(j,T),c=O.createHref(j.mask||j);try{z.pushState(i,"",c)}catch(M){if(M instanceof DOMException&&"DataCloneError"===M.name)throw M;I.location.assign(c)}A&&u&&u({action:g,location:O.location,delta:1})},replace:function(M,N){g="REPLACE";let j=V(M)?M:G(O.location,M,N);D&&D(j,M),T=y();let I=R(j,T),i=O.createHref(j.mask||j);z.replaceState(I,"",i),A&&u&&u({action:g,location:O.location,delta:0})},go:M=>z.go(M)};return O}(function(M,N){let{pathname:D="/",search:j="",hash:I=""}=J(M.location.hash.substring(1));return D.startsWith("/")||D.startsWith(".")||(D="/"+D),G("",{pathname:D,search:j,hash:I},N.state&&N.state.usr||null,N.state&&N.state.key||"default")},function(M,N){let D=M.document.querySelector("base"),j="";if(D&&D.getAttribute("href")){let N=M.location.href,D=N.indexOf("#");j=-1===D?N:N.slice(0,D)}return j+"#"+("string"==typeof N?N:v(N))},function(M,N){F("/"===M.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(N)})`)},M)}function B(M,N){if(!1===M||null==M)throw new Error(N)}function F(M,N){if(!M){"undefined"!=typeof console&&console.warn(N);try{throw new Error(N)}catch(M){}}}function R(M,N){return{usr:M.state,key:M.key,idx:N,masked:M.mask?{pathname:M.pathname,search:M.search,hash:M.hash}:void 0}}function G(M,N,D=null,j,I){return{pathname:"string"==typeof M?M:M.pathname,search:"",hash:"",..."string"==typeof N?J(N):N,state:D,key:N&&N.key||j||Math.random().toString(36).substring(2,10),mask:I}}function v({pathname:M="/",search:N="",hash:D=""}){return N&&"?"!==N&&(M+="?"===N.charAt(0)?N:"?"+N),D&&"#"!==D&&(M+="#"===D.charAt(0)?D:"#"+D),M}function J(M){let N={};if(M){let D=M.indexOf("#");D>=0&&(N.hash=M.substring(D),M=M.substring(0,D));let j=M.indexOf("?");j>=0&&(N.search=M.substring(j),M=M.substring(0,j)),M&&(N.pathname=M)}return N}function P(M,N,D="/"){return H(M,N,D,!1)}function H(M,N,D,j,I){let A=TM(("string"==typeof N?J(N):N).pathname||"/",D);if(null==A)return null;let z=I??function(M){let N=X(M);return function(M){M.sort((M,N)=>M.score!==N.score?N.score-M.score:function(M,N){let D=M.length===N.length&&M.slice(0,-1).every((M,D)=>M===N[D]);return D?M[M.length-1]-N[N.length-1]:0}(M.routesMeta.map(M=>M.childrenIndex),N.routesMeta.map(M=>M.childrenIndex)))}(N),N}(M),g=null,u=function(M){try{return M.split("/").map(M=>decodeURIComponent(M).replace(/\//g,"%2F")).join("/")}catch(N){return F(!1,`The URL path "${M}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${N}).`),M}}(A);for(let M=0;null==g&&M{let u={relativePath:void 0===g?M.path||"":g,caseSensitive:!0===M.caseSensitive,childrenIndex:A,route:M};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(j)&&z)return;B(u.relativePath.startsWith(j),`Absolute route path "${u.relativePath}" nested under path "${j}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(j.length)}let T=eM([j,u.relativePath]),y=D.concat(u);M.children&&M.children.length>0&&(B(!0!==M.index,`Index routes must not have child routes. Please remove all child routes from route path "${T}".`),X(M.children,N,y,T,z)),(null!=M.path||M.index)&&N.push({path:T,score:IM(T,M.index),routesMeta:y.map((M,N)=>{let[D,j]=uM(M.relativePath,M.caseSensitive,N===y.length-1);return{...M,matcher:D,compiledParams:j}})})};return M.forEach((M,N)=>{if(""!==M.path&&M.path?.includes("?"))for(let D of K(M.path))A(M,N,!0,D);else A(M,N)}),N}function K(M){let N=M.split("/");if(0===N.length)return[];let[D,...j]=N,I=D.endsWith("?"),A=D.replace(/\?$/,"");if(0===j.length)return I?[A,""]:[A];let z=K(j.join("/")),g=[];return g.push(...z.map(M=>""===M?A:[A,M].join("/"))),I&&g.push(...z),g.map(N=>M.startsWith("/")&&""===N?"/":N)}new WeakMap;var _=/^:[\w-]+$/,q=3,$=2,MM=1,NM=10,DM=-2,jM=M=>"*"===M;function IM(M,N){let D=M.split("/"),j=D.length;return D.some(jM)&&(j+=DM),N&&(j+=$),D.filter(M=>!jM(M)).reduce((M,N)=>M+(_.test(N)?q:""===N?MM:NM),j)}function AM(M,N,D=!1){let{routesMeta:j}=M,I={},A="/",z=[];for(let M=0;M{if("*"===N){let M=g[j]||"";z=xM(A.slice(0,A.length-M.length),1)}const I=g[j];return M[N]=D&&!I?void 0:(I||"").replace(/%2F/g,"/"),M},{});return{params:u,pathname:A,pathnameBase:z,pattern:M}}function uM(M,N=!1,D=!0){F("*"===M||!M.endsWith("*")||M.endsWith("/*"),`Route path "${M}" will be treated as if it were "${M.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${M.replace(/\*$/,"/*")}".`);let j=[],I="^"+M.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(M,N,D,I,A)=>{if(j.push({paramName:N,isOptional:null!=D}),D){let N=A.charAt(I+M.length);return N&&"/"!==N?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return M.endsWith("*")?(j.push({paramName:"*"}),I+="*"===M||"/*"===M?"(.*)$":"(?:\\/(.+)|\\/*)$"):D?I+="\\/*$":""!==M&&"/"!==M&&(I+="(?:(?=\\/|$))"),[new RegExp(I,N?void 0:"i"),j]}function TM(M,N){if("/"===N)return M;if(!M.toLowerCase().startsWith(N.toLowerCase()))return null;let D=N.endsWith("/")?N.length-1:N.length,j=M.charAt(D);return j&&"/"!==j?null:M.slice(D)||"/"}function yM(M,N){let D=xM(N).split("/");return M.split("/").forEach(M=>{".."===M?D.length>1&&D.pop():"."!==M&&D.push(M)}),D.length>1?D.join("/"):"/"}function iM(M,N,D,j){return`Cannot include a '${M}' character in a manually specified \`to.${N}\` field [${JSON.stringify(j)}]. Please separate it out to the \`to.${D}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function cM(M){let N=function(M){return M.filter((M,N)=>0===N||M.route.path&&M.route.path.length>0)}(M);return N.map((M,D)=>D===N.length-1?M.pathname:M.pathnameBase)}function OM(M,N,D,j=!1){let I;"string"==typeof M?I=J(M):(I={...M},B(!I.pathname||!I.pathname.includes("?"),iM("?","pathname","search",I)),B(!I.pathname||!I.pathname.includes("#"),iM("#","pathname","hash",I)),B(!I.search||!I.search.includes("#"),iM("#","search","hash",I)));let A,z=""===M||""===I.pathname,g=z?"/":I.pathname;if(null==g)A=D;else{let M=N.length-1;if(!j&&g.startsWith("..")){let N=g.split("/");for(;".."===N[0];)N.shift(),M-=1;I.pathname=N.join("/")}A=M>=0?N[M]:"/"}let u=function(M,N="/"){let D,{pathname:j,search:I="",hash:A=""}="string"==typeof M?J(M):M;return j?(j=LM(j),D=j.startsWith("/")||j.startsWith("\\")?yM(j.substring(1),"/"):yM(j,N)):D=N,{pathname:D,search:QM(I),hash:tM(A)}}(I,A),T=g&&"/"!==g&&g.endsWith("/"),y=(z||"."===g)&&D.endsWith("/");return u.pathname.endsWith("/")||!T&&!y||(u.pathname+="/"),u}var LM=M=>M.replace(/[\\/]{2,}/g,"/"),eM=M=>LM(M.join("/"));function xM(M,N=0){let D=M.length;for(;D>N&&47===M.charCodeAt(D-1);)D--;return D===M.length?M:M.slice(0,D)}var EM=M=>xM(M).replace(/^\/*/,"/"),QM=M=>M&&"?"!==M?M.startsWith("?")?M:"?"+M:"",tM=M=>M&&"#"!==M?M.startsWith("#")?M:"#"+M:"",nM=class{constructor(M,N,D,j=!1){this.status=M,this.statusText=N||"",this.internal=j,D instanceof Error?(this.data=D.toString(),this.error=D):this.data=D}};function SM(M){return null!=M&&"number"==typeof M.status&&"string"==typeof M.statusText&&"boolean"==typeof M.internal&&"data"in M}function aM(M){let N=M.map(M=>M.route.path).filter(Boolean);return eM(N)||"/"}var kM="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function oM(M,N){let D=M;if("string"!=typeof D||!b.test(D))return{absoluteURL:void 0,isExternal:!1,to:D};let j=D,I=!1;if(kM)try{let M=new URL(window.location.href),j=m.test(D)?new URL((A=D,M.protocol+A.replace(/\\/g,"/"))):new URL(D),z=TM(j.pathname,N);j.origin===M.origin&&null!=z?D=z+j.search+j.hash:I=!0}catch(M){F(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}var A;return{absoluteURL:j,isExternal:I,to:D}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var UM=new URL("http://localhost");function YM(M){if(M.createURL)return M.createURL("/");try{return new URL(M.createHref("/"),UM)}catch{return UM}}function CM(M,N){return M.origin===N.origin&&("null"!==M.origin||M.protocol===N.protocol&&M.host===N.host)}function rM(M,N,D,j){let I=null;try{I=null==M?null:new URL(M,D)}catch{}let A=new URL(N,D),z=null!=I&&!CM(I,D),g=!CM(A,D);if("reject"===j){if(z||g)throw new Error("External navigation is not allowed")}else if(g&&(null==I||!function(M,N){if(M.startsWith("//"))return!0;let D=N.protocol.toLowerCase();return!!M.toLowerCase().startsWith(D)&&(""===N.host||M.slice(D.length).startsWith("//"))}(M,I)||!CM(I,A)))throw new Error("External navigation is not allowed")}var lM=["POST","PUT","PATCH","DELETE"],sM=(new Set(lM),["GET",...lM]);new Set(sM),Symbol("ResetLoaderData"),new WeakMap,new WeakMap,new WeakMap,new WeakMap;var wM=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];var dM=g().createContext(null);dM.displayName="DataRouter";var fM=g().createContext(null);fM.displayName="DataRouterState";var hM=g().createContext(!1);function pM(){return g().useContext(hM)}var bM=g().createContext({isTransitioning:!1});bM.displayName="ViewTransition",g().createContext(new Map).displayName="Fetchers",g().createContext(null).displayName="Await";var mM=g().createContext(null);mM.displayName="Navigation";var ZM=g().createContext(null);ZM.displayName="Location";var VM=g().createContext({outlet:null,matches:[],isDataRoute:!1});VM.displayName="Route";var WM=g().createContext(null);WM.displayName="RouteError";var BM="REACT_ROUTER_ERROR";function FM(){return null!=g().useContext(ZM)}function RM(){return B(FM(),"useLocation() may be used only in the context of a component."),g().useContext(ZM).location}var GM="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vM(M){g().useContext(mM).static||g().useLayoutEffect(M)}function JM(){let{isDataRoute:M}=g().useContext(VM);return M?function(){let{router:M}=function(M){let N=g().useContext(dM);return B(N,NN(M)),N}("useNavigate"),N=DN("useNavigate"),D=g().useRef(!1);return vM(()=>{D.current=!0}),g().useCallback(async(j,I={})=>{F(D.current,GM),D.current&&("number"==typeof j?await M.navigate(j):await M.navigate(j,{fromRouteId:N,...I}))},[M,N])}():function(){B(FM(),"useNavigate() may be used only in the context of a component.");let M=g().useContext(dM),{basename:N,navigator:D}=g().useContext(mM),{matches:j}=g().useContext(VM),{pathname:I}=RM(),A=JSON.stringify(cM(j)),z=g().useRef(!1);return vM(()=>{z.current=!0}),g().useCallback((j,g={})=>{if(F(z.current,GM),!z.current)return;if("number"==typeof j)return void D.go(j);let u=OM(j,JSON.parse(A),I,"path"===g.relative);null==M&&"/"!==N&&(u.pathname="/"===u.pathname?N:eM([N,u.pathname])),rM("string"==typeof j?j:v(j),D.createHref(u),YM(D),"reject"),(g.replace?D.replace:D.push)(u,g.state,g)},[N,D,A,I,M])}()}function PM(M,{relative:N}={}){let{matches:D}=g().useContext(VM),{pathname:j}=RM(),I=JSON.stringify(cM(D));return g().useMemo(()=>OM(M,JSON.parse(I),j,"path"===N),[M,I,j,N])}function HM(M,N,D){B(FM(),"useRoutes() may be used only in the context of a component.");let{navigator:j}=g().useContext(mM),{matches:I}=g().useContext(VM),A=I[I.length-1],z=A?A.params:{},u=A?A.pathname:"/",T=A?A.pathnameBase:"/",y=A&&A.route;{let M=y&&y.path||"";IN(u,!y||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent to .`)}let i,c=RM();if(N){let M="string"==typeof N?J(N):N;B("/"===T||M.pathname?.startsWith(T),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${T}" but pathname "${M.pathname}" was given in the \`location\` prop.`),i=M}else i=c;let O=i.pathname||"/",L=O;if("/"!==T){let M=T.replace(/^\//,"").split("/");L="/"+O.replace(/^\//,"").split("/").slice(M.length).join("/")}let e=D&&D.state.matches.length?D.state.matches.map(M=>Object.assign(M,{route:D.manifest[M.route.id]||M.route})):P(M,{pathname:L});F(y||null!=e,`No routes matched location "${i.pathname}${i.search}${i.hash}" `),F(null==e||void 0!==e[e.length-1].route.element||void 0!==e[e.length-1].route.Component||void 0!==e[e.length-1].route.lazy,`Matched leaf route at location "${i.pathname}${i.search}${i.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let x=function(M,N=[],D){let j=D?.state;if(null==M){if(!j)return null;if(j.errors)M=j.matches;else{if(0!==N.length||j.initialized||!(j.matches.length>0))return null;M=j.matches}}let I=M,A=j?.errors;if(null!=A){let M=I.findIndex(M=>M.route.id&&void 0!==A?.[M.route.id]);B(M>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(A).join(",")}`),I=I.slice(0,Math.min(I.length,M+1))}let z=!1,u=-1;if(D&&j){z=j.renderFallback;for(let M=0;M=0?I.slice(0,u+1):[I[0]];break}}}}let T=D?.onError,y=j&&T?(M,N)=>{T(M,{location:j.location,params:j.matches?.[0]?.params??{},pattern:aM(j.matches),errorInfo:N})}:void 0;return I.reduceRight((M,D,T)=>{let i,c=!1,O=null,L=null;j&&(i=A&&D.route.id?A[D.route.id]:void 0,O=D.route.errorElement||KM,z&&(u<0&&0===T?(IN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),c=!0,L=null):u===T&&(c=!0,L=D.route.hydrateFallbackElement||null)));let e=N.concat(I.slice(0,T+1)),x=()=>{let N;return N=i?O:c?L:D.route.Component?g().createElement(D.route.Component,null):D.route.element?D.route.element:M,g().createElement(MN,{match:D,routeContext:{outlet:M,matches:e,isDataRoute:null!=j},children:N})};return j&&(D.route.ErrorBoundary||D.route.errorElement||0===T)?g().createElement(_M,{location:j.location,revalidation:j.revalidation,component:O,error:i,children:x(),routeContext:{outlet:null,matches:e,isDataRoute:!0},onError:y}):x()},null)}(e&&e.map(M=>Object.assign({},M,{params:Object.assign({},z,M.params),pathname:eM([T,j.encodeLocation?j.encodeLocation(M.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:"/"===M.pathnameBase?T:eM([T,j.encodeLocation?j.encodeLocation(M.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),I,D);return N&&x?g().createElement(ZM.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...i},navigationType:"POP"}},x):x}function XM(){let M=function(){let M=g().useContext(WM),N=function(M){let N=g().useContext(fM);return B(N,NN(M)),N}("useRouteError"),D=DN("useRouteError");return void 0!==M?M:N.errors?.[D]}(),N=SM(M)?`${M.status} ${M.statusText}`:M instanceof Error?M.message:JSON.stringify(M),D=M instanceof Error?M.stack:null,j="rgba(200,200,200, 0.5)",I={padding:"0.5rem",backgroundColor:j},A={padding:"2px 4px",backgroundColor:j},z=null;return console.error("Error handled by React Router default ErrorBoundary:",M),z=g().createElement(g().Fragment,null,g().createElement("p",null,"๐Ÿ’ฟ Hey developer ๐Ÿ‘‹"),g().createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g().createElement("code",{style:A},"ErrorBoundary")," or"," ",g().createElement("code",{style:A},"errorElement")," prop on your route.")),g().createElement(g().Fragment,null,g().createElement("h2",null,"Unexpected Application Error!"),g().createElement("h3",{style:{fontStyle:"italic"}},N),D?g().createElement("pre",{style:I},D):null,z)}g().createContext(null);var KM=g().createElement(XM,null),_M=class extends g().Component{constructor(M){super(M),this.state={location:M.location,revalidation:M.revalidation,error:M.error}}static getDerivedStateFromError(M){return{error:M}}static getDerivedStateFromProps(M,N){return N.location!==M.location||"idle"!==N.revalidation&&"idle"===M.revalidation?{error:M.error,location:M.location,revalidation:M.revalidation}:{error:void 0!==M.error?M.error:N.error,location:N.location,revalidation:M.revalidation||N.revalidation}}componentDidCatch(M,N){this.props.onError?this.props.onError(M,N):console.error("React Router caught the following error during render",M)}render(){let M=this.state.error;if(this.context&&"object"==typeof M&&M&&"digest"in M&&"string"==typeof M.digest){const N=function(M){if(M.startsWith(`${BM}:ROUTE_ERROR_RESPONSE:{`))try{let N=JSON.parse(M.slice(40));if("object"==typeof N&&N&&"number"==typeof N.status&&"string"==typeof N.statusText)return new nM(N.status,N.statusText,N.data)}catch{}}(M.digest);N&&(M=N)}let N=void 0!==M?g().createElement(VM.Provider,{value:this.props.routeContext},g().createElement(WM.Provider,{value:M,children:this.props.component})):this.props.children;return this.context?g().createElement($M,{error:M},N):N}};_M.contextType=hM;var qM=new WeakMap;function $M({children:M,error:N}){let{basename:D,navigator:j}=g().useContext(mM);if("object"==typeof N&&N&&"digest"in N&&"string"==typeof N.digest){let M=function(M){if(M.startsWith(`${BM}:REDIRECT:{`))try{let N=JSON.parse(M.slice(28));if("object"==typeof N&&N&&"number"==typeof N.status&&"string"==typeof N.statusText&&"string"==typeof N.location&&"boolean"==typeof N.reloadDocument&&"boolean"==typeof N.replace)return N}catch{}}(N.digest);if(M){let I=qM.get(N);if(I)throw I;let A=oM(M.location,D),z=A.absoluteURL||A.to;if(rM(M.location,z,YM(j),"allow-explicit"),function(M){try{return wM.includes(new URL(M).protocol)}catch{return!1}}(z))throw new Error("Invalid redirect location");if(kM&&!qM.get(N)){if(!A.isExternal&&!M.reloadDocument){const D=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(A.to,{replace:M.replace}));throw qM.set(N,D),D}window.location.href=z}return g().createElement("meta",{httpEquiv:"refresh",content:`0;url=${z}`})}}return M}function MN({routeContext:M,match:N,children:D}){let j=g().useContext(dM);return j&&j.static&&j.staticContext&&(N.route.errorElement||N.route.ErrorBoundary)&&(j.staticContext._deepestRenderedBoundaryId=N.route.id),g().createElement(VM.Provider,{value:M},D)}function NN(M){return`${M} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function DN(M){let N=function(M){let N=g().useContext(VM);return B(N,NN(M)),N}(M),D=N.matches[N.matches.length-1];return B(D.route.id,`${M} can only be used on routes that contain a unique "id"`),D.route.id}var jN={};function IN(M,N,D){N||jN[M]||(jN[M]=!0,F(!1,D))}function AN(M){B(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function zN({basename:M="/",children:N=null,location:D,navigationType:j="POP",navigator:I,static:A=!1,useTransitions:z}){B(!FM(),"You cannot render a inside another . You should never have more than one in your app.");let u=M.replace(/^\/*/,"/"),T=g().useMemo(()=>({basename:u,navigator:I,static:A,useTransitions:z,future:{}}),[u,I,A,z]);"string"==typeof D&&(D=J(D));let{pathname:y="/",search:i="",hash:c="",state:O=null,key:L="default",mask:e}=D,x=g().useMemo(()=>{let M=TM(y,u);return null==M?null:{location:{pathname:M,search:i,hash:c,state:O,key:L,mask:e},navigationType:j}},[u,y,i,c,O,L,j,e]);return F(null!=x,` is not able to match the URL "${y}${i}${c}" because it does not start with the basename, so the won't render anything.`),null==x?null:g().createElement(mM.Provider,{value:T},g().createElement(ZM.Provider,{children:N,value:x}))}function gN({children:M,location:N}){return HM(uN(M),N)}function uN(M,N=[]){let D=[];return g().Children.forEach(M,(M,j)=>{if(!g().isValidElement(M))return;let I=[...N,j];if(M.type===g().Fragment)return void D.push.apply(D,uN(M.props.children,I));B(M.type===AN,`[${"string"==typeof M.type?M.type:M.type.name}] is not a component. All component children of must be a or `),B(!M.props.index||!M.props.children,"An index route cannot have child routes.");let A={id:M.props.id||I.join("-"),caseSensitive:M.props.caseSensitive,element:M.props.element,Component:M.props.Component,index:M.props.index,path:M.props.path,middleware:M.props.middleware,loader:M.props.loader,action:M.props.action,hydrateFallbackElement:M.props.hydrateFallbackElement,HydrateFallback:M.props.HydrateFallback,errorElement:M.props.errorElement,ErrorBoundary:M.props.ErrorBoundary,hasErrorBoundary:!0===M.props.hasErrorBoundary||null!=M.props.ErrorBoundary||null!=M.props.errorElement,shouldRevalidate:M.props.shouldRevalidate,handle:M.props.handle,lazy:M.props.lazy};M.props.children&&(A.children=uN(M.props.children,I)),D.push(A)}),D}c().useOptimistic,g().memo(function({routes:M,manifest:N,future:D,state:j,isStatic:I,onError:A}){return HM(M,void 0,{manifest:N,state:j,isStatic:I,onError:A,future:D})}),g().Component;var TN="get",yN="application/x-www-form-urlencoded";function iN(M){return"undefined"!=typeof HTMLElement&&M instanceof HTMLElement}function cN(M=""){return new URLSearchParams("string"==typeof M||Array.isArray(M)||M instanceof URLSearchParams?M:Object.keys(M).reduce((N,D)=>{let j=M[D];return N.concat(Array.isArray(j)?j.map(M=>[D,M]):[[D,j]])},[]))}var ON=null,LN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function eN(M){return null==M||LN.has(M)?M:(F(!1,`"${M}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${yN}"`),null)}function xN(M,N){if(!1===M||null==M)throw new Error(N)}function EN(M,N,D,j){let I="string"==typeof M?new URL(M,"undefined"==typeof window?"server://singlefetch/":window.location.origin):M;return D?I.pathname.endsWith("/")?I.pathname=`${I.pathname}_.${j}`:I.pathname=`${I.pathname}.${j}`:"/"===I.pathname?I.pathname=`_root.${j}`:N&&"/"===TM(I.pathname,N)?I.pathname=`${xM(N)}/_root.${j}`:I.pathname=`${xM(I.pathname)}.${j}`,I}function QN(M){return null!=M&&(null==M.href?"preload"===M.rel&&"string"==typeof M.imageSrcSet&&"string"==typeof M.imageSizes:"string"==typeof M.rel&&"string"==typeof M.href)}function tN(M,N,D,j,I,A){let z=(M,N)=>!D[N]||M.route.id!==D[N].route.id,g=(M,N)=>D[N].pathname!==M.pathname||D[N].route.path?.endsWith("*")&&D[N].params["*"]!==M.params["*"];return"assets"===A?N.filter((M,N)=>z(M,N)||g(M,N)):"data"===A?N.filter((N,A)=>{let u=j.routes[N.route.id];if(!u||!u.hasLoader)return!1;if(z(N,A)||g(N,A))return!0;if(N.route.shouldRevalidate){let j=N.route.shouldRevalidate({currentUrl:new URL(I.pathname+I.search+I.hash,window.origin),currentParams:D[0]?.params||{},nextUrl:new URL(M,window.origin),nextParams:N.params,defaultShouldRevalidate:!0});if("boolean"==typeof j)return j}return!0}):[]}function nN(M,N,{includeHydrateFallback:D}={}){return j=M.map(M=>{let j=N.routes[M.route.id];if(!j)return[];let I=[j.module];return j.clientActionModule&&(I=I.concat(j.clientActionModule)),j.clientLoaderModule&&(I=I.concat(j.clientLoaderModule)),D&&j.hydrateFallbackModule&&(I=I.concat(j.hydrateFallbackModule)),j.imports&&(I=I.concat(j.imports)),I}).flat(1),[...new Set(j)];var j}function SN(){let M=g().useContext(dM);return xN(M,"You must render this element inside a element"),M}function aN(){let M=g().useContext(fM);return xN(M,"You must render this element inside a element"),M}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),Symbol("SingleFetchRedirect");var kN=g().createContext(void 0);function oN(){let M=g().useContext(kN);return xN(M,"You must render this element inside a element"),M}function UN(M,N){return D=>{M&&M(D),D.defaultPrevented||N(D)}}function YN({page:M,...N}){let D=pM(),{nonce:j}=oN(),{router:I}=SN(),A=g().useMemo(()=>P(I.routes,M,I.basename),[I.routes,M,I.basename]);return A?(null==N.nonce&&j&&(N={...N,nonce:j}),D?g().createElement(rN,{page:M,matches:A,...N}):g().createElement(lN,{page:M,matches:A,...N})):null}function CN(M){let{manifest:N,routeModules:D}=oN(),[j,I]=g().useState([]);return g().useEffect(()=>{let j=!1;return async function(M,N,D){let j=await Promise.all(M.map(async M=>{let j=N.routes[M.route.id];if(j){let M=await async function(M,N){if(M.id in N)return N[M.id];try{let D=await(import(M.module));return N[M.id]=D,D}catch(N){return console.error(`Error loading route module \`${M.module}\`, reloading page...`),console.error(N),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(j,D);return M.links?M.links():[]}return[]}));return function(M,N){let D=new Set,j=new Set(N);return M.reduce((M,I)=>{if(N&&(null==(A=I)||"string"!=typeof A.page)&&"script"===I.as&&I.href&&j.has(I.href))return M;var A;let z=JSON.stringify(function(M){let N={},D=Object.keys(M).sort();for(let j of D)N[j]=M[j];return N}(I));return D.has(z)||(D.add(z),M.push({key:z,link:I})),M},[])}(j.flat(1).filter(QN).filter(M=>"stylesheet"===M.rel||"preload"===M.rel).map(M=>"stylesheet"===M.rel?{...M,rel:"prefetch",as:"style"}:{...M,rel:"prefetch"}))}(M,N,D).then(M=>{j||I(M)}),()=>{j=!0}},[M,N,D]),j}function rN({page:M,matches:N,...D}){let j=RM(),{future:I}=oN(),{basename:A}=SN(),z=g().useMemo(()=>{if(M===j.pathname+j.search+j.hash)return[];let D=EN(M,A,I.v8_trailingSlashAwareDataRequests,"rsc"),z=!1,g=[];for(let M of N)"function"==typeof M.route.shouldRevalidate?z=!0:g.push(M.route.id);return z&&g.length>0&&D.searchParams.set("_routes",g.join(",")),[D.pathname+D.search]},[A,I.v8_trailingSlashAwareDataRequests,M,j,N]);return g().createElement(g().Fragment,null,z.map(M=>g().createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...D})))}function lN({page:M,matches:N,...D}){let j=RM(),{future:I,manifest:A,routeModules:z}=oN(),{basename:u}=SN(),{loaderData:T,matches:y}=aN(),i=g().useMemo(()=>tN(M,N,y,A,j,"data"),[M,N,y,A,j]),c=g().useMemo(()=>tN(M,N,y,A,j,"assets"),[M,N,y,A,j]),O=g().useMemo(()=>{if(M===j.pathname+j.search+j.hash)return[];let D=new Set,g=!1;if(N.forEach(M=>{let N=A.routes[M.route.id];N&&N.hasLoader&&(!i.some(N=>N.route.id===M.route.id)&&M.route.id in T&&z[M.route.id]?.shouldRevalidate||N.hasClientLoader?g=!0:D.add(M.route.id))}),0===D.size)return[];let y=EN(M,u,I.v8_trailingSlashAwareDataRequests,"data");return g&&D.size>0&&y.searchParams.set("_routes",N.filter(M=>D.has(M.route.id)).map(M=>M.route.id).join(",")),[y.pathname+y.search]},[u,I.v8_trailingSlashAwareDataRequests,T,j,A,i,N,M,z]),L=g().useMemo(()=>nN(c,A),[c,A]),e=CN(c);return g().createElement(g().Fragment,null,O.map(M=>g().createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...D})),L.map(M=>g().createElement("link",{key:M,rel:"modulepreload",href:M,...D})),e.map(({key:M,link:N})=>g().createElement("link",{key:M,nonce:D.nonce,...N,crossOrigin:N.crossOrigin??D.crossOrigin})))}kN.displayName="FrameworkContext";function sN(...M){return N=>{M.forEach(M=>{"function"==typeof M?M(N):null!=M&&(M.current=N)})}}g().Component;var wN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{wN&&(window.__reactRouterVersion="7.18.3")}catch(_c){}function dN({basename:M,children:N,useTransitions:D,window:j}){let I=g().useRef();null==I.current&&(I.current=W({window:j,v5Compat:!0}));let A=I.current,[z,u]=g().useState({action:A.action,location:A.location}),T=g().useCallback(M=>{!1===D?u(M):g().startTransition(()=>u(M))},[D]);return g().useLayoutEffect(()=>A.listen(T),[A,T]),g().createElement(zN,{basename:M,children:N,location:z.location,navigationType:z.action,navigator:A,useTransitions:D})}var fN=g().forwardRef(function({onClick:M,discover:N="render",prefetch:D="none",relative:j,reloadDocument:I,replace:A,mask:z,state:u,target:T,to:y,preventScrollReset:i,viewTransition:c,defaultShouldRevalidate:O,...L},e){let{basename:x,navigator:E,useTransitions:Q}=g().useContext(mM),t="string"==typeof y&&b.test(y),n=oM(y,x),S=function(M,{relative:N}={}){B(FM(),"useHref() may be used only in the context of a component.");let{basename:D,navigator:j}=g().useContext(mM),{hash:I,pathname:A,search:z}=PM(M,{relative:N}),u=A;return"/"!==D&&(u="/"===A?D:eM([D,A])),j.createHref({pathname:u,search:z,hash:I})}(y=n.to,{relative:j}),a=RM(),k=null;if(z){let M=OM(z,[],a.mask?a.mask.pathname:"/",!0);"/"!==x&&(M.pathname="/"===M.pathname?x:eM([x,M.pathname])),k=E.createHref(M)}let[o,U,Y]=function(M,N){let D=g().useContext(kN),[j,I]=g().useState(!1),[A,z]=g().useState(!1),{onFocus:u,onBlur:T,onMouseEnter:y,onMouseLeave:i,onTouchStart:c}=N,O=g().useRef(null);g().useEffect(()=>{if("render"===M&&z(!0),"viewport"===M){let M=new IntersectionObserver(M=>{M.forEach(M=>{z(M.isIntersecting)})},{threshold:.5});return O.current&&M.observe(O.current),()=>{M.disconnect()}}},[M]),g().useEffect(()=>{if(j){let M=setTimeout(()=>{z(!0)},100);return()=>{clearTimeout(M)}}},[j]);let L=()=>{I(!0)},e=()=>{I(!1),z(!1)};return D?"intent"!==M?[A,O,{}]:[A,O,{onFocus:UN(u,L),onBlur:UN(T,e),onMouseEnter:UN(y,L),onMouseLeave:UN(i,e),onTouchStart:UN(c,L)}]:[!1,O,{}]}(D,L),C=function(M,{target:N,replace:D,mask:j,state:I,preventScrollReset:A,relative:z,viewTransition:u,defaultShouldRevalidate:T,useTransitions:y}={}){let i=JM(),c=RM(),O=PM(M,{relative:z});return g().useCallback(L=>{if(function(M,N){return!(0!==M.button||N&&"_self"!==N||function(M){return!!(M.metaKey||M.altKey||M.ctrlKey||M.shiftKey)}(M))}(L,N)){L.preventDefault();let N=void 0!==D?D:v(c)===v(O),e=()=>i(M,{replace:N,mask:j,state:I,preventScrollReset:A,relative:z,viewTransition:u,defaultShouldRevalidate:T});y?g().startTransition(()=>e()):e()}},[c,i,O,D,j,I,N,M,A,z,u,T,y])}(y,{replace:A,mask:z,state:u,target:T,preventScrollReset:i,relative:j,viewTransition:c,defaultShouldRevalidate:O,useTransitions:Q}),r=!(n.isExternal||I),l=g().createElement("a",{...L,...Y,href:(r?k:void 0)||n.absoluteURL||S,onClick:r?function(N){M&&M(N),N.defaultPrevented||C(N)}:M,ref:sN(e,U),target:T,"data-discover":t||"render"!==N?void 0:"true"});return o&&!t?g().createElement(g().Fragment,null,l,g().createElement(YN,{page:S})):l});fN.displayName="Link";var hN=g().forwardRef(function({"aria-current":M="page",caseSensitive:N=!1,className:D="",end:j=!1,style:I,to:A,viewTransition:z,children:u,...T},y){let i=PM(A,{relative:T.relative}),c=RM(),O=g().useContext(fM),{navigator:L,basename:e}=g().useContext(mM),x=null!=O&&function(M,{relative:N}={}){let D=g().useContext(bM);B(null!=D,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:j}=bN("useViewTransitionState"),I=PM(M,{relative:N});if(!D.isTransitioning)return!1;let A=TM(D.currentLocation.pathname,j)||D.currentLocation.pathname,z=TM(D.nextLocation.pathname,j)||D.nextLocation.pathname;return null!=zM(I.pathname,z)||null!=zM(I.pathname,A)}(i)&&!0===z,E=L.encodeLocation?L.encodeLocation(i).pathname:i.pathname,Q=c.pathname,t=O&&O.navigation&&O.navigation.location?O.navigation.location.pathname:null;N||(Q=Q.toLowerCase(),t=t?t.toLowerCase():null,E=E.toLowerCase()),t&&e&&(t=TM(t,e)||t);const n="/"!==E&&E.endsWith("/")?E.length-1:E.length;let S,a=Q===E||!j&&Q.startsWith(E)&&"/"===Q.charAt(n),k=null!=t&&(t===E||!j&&t.startsWith(E)&&"/"===t.charAt(E.length)),o={isActive:a,isPending:k,isTransitioning:x},U=a?M:void 0;S="function"==typeof D?D(o):[D,a?"active":null,k?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let Y="function"==typeof I?I(o):I;return g().createElement(fN,{...T,"aria-current":U,className:S,ref:y,style:Y,to:A,viewTransition:z},"function"==typeof u?u(o):u)});hN.displayName="NavLink";var pN=g().forwardRef(({discover:M="render",fetcherKey:N,navigate:D,reloadDocument:j,replace:I,state:A,method:z=TN,action:u,onSubmit:T,relative:y,preventScrollReset:i,viewTransition:c,defaultShouldRevalidate:O,...L},e)=>{let{useTransitions:x}=g().useContext(mM),E=function(){let{router:M}=bN("useSubmit"),{basename:N}=g().useContext(mM),D=DN("useRouteId"),j=M.fetch,I=M.navigate;return g().useCallback(async(M,A={})=>{let{action:z,method:g,encType:u,formData:T,body:y}=function(M,N){let D,j,I,A,z;if(iN(g=M)&&"form"===g.tagName.toLowerCase()){let z=M.getAttribute("action");j=z?TM(z,N):null,D=M.getAttribute("method")||TN,I=eN(M.getAttribute("enctype"))||yN,A=new FormData(M)}else if(function(M){return iN(M)&&"button"===M.tagName.toLowerCase()}(M)||function(M){return iN(M)&&"input"===M.tagName.toLowerCase()}(M)&&("submit"===M.type||"image"===M.type)){let z=M.form;if(null==z)throw new Error('Cannot submit a