/*! For license information please see pdf.app.js.LICENSE.txt */ (()=>{var t,e,A,n,r={2:(t,e,A)=>{var n=A(6926),r=A(9310);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.28.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"})},54:(t,e,A)=>{"use strict";var n,r,i=A(2368),o=A(281),a=A(5362),s=A(6844),l=A(2192),c=A(2),u=A(3105),p=A(9206).get,h=A(1036),f=A(8121),d=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,m=g,w=o("".charAt),B=o("".indexOf),v=o("".replace),y=o("".slice),b=(r=/b*/g,i(g,n=/a/,"a"),i(g,r,"a"),0!==n.lastIndex||0!==r.lastIndex),C=l.BROKEN_CARET,F=void 0!==/()??/.exec("")[1];(b||F||C||h||f)&&(m=function(t){var e,A,n,r,o,l,c,h=this,f=p(h),x=a(t),Q=f.raw;if(Q)return Q.lastIndex=h.lastIndex,e=i(m,Q,x),h.lastIndex=Q.lastIndex,e;var U=f.groups,L=C&&h.sticky,E=i(s,h),S=h.source,I=0,T=x;if(L&&(E=v(E,"y",""),-1===B(E,"g")&&(E+="g"),T=y(x,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==w(x,h.lastIndex-1))&&(S="(?: "+S+")",T=" "+T,I++),A=new RegExp("^(?:"+S+")",E)),F&&(A=new RegExp("^"+S+"$(?!\\s)",E)),b&&(n=h.lastIndex),r=i(g,L?A:h,T),L?r?(r.input=y(r.input,I),r[0]=y(r[0],I),r.index=h.lastIndex,h.lastIndex+=r[0].length):h.lastIndex=0:b&&r&&(h.lastIndex=h.global?r.index+r[0].length:n),F&&r&&r.length>1&&i(d,r[0],A,(function(){for(o=1;o{"use strict";var n=A(9070),r=A(2368),i=A(281),o=A(779),a=A(2074),s=A(3938),l=A(8420),c=A(8406),u=A(9328),p=A(3747),h=A(5362),f=A(1229),d=A(7234),g=A(6457),m=A(4433),w=A(6793),B=A(1602)("replace"),v=Math.max,y=Math.min,b=i([].concat),C=i([].push),F=i("".indexOf),x=i("".slice),Q="$0"==="a".replace(/./,"$0"),U=!!/./[B]&&""===/./[B]("a","$0");o("replace",(function(t,e,A){var i=U?"$":"$0";return[function(t,A){var n=f(this),i=c(t)?void 0:g(t,B);return i?r(i,t,n,A):r(e,h(n),t,A)},function(t,r){var o=s(this),a=h(t);if("string"==typeof r&&-1===F(r,i)&&-1===F(r,"$<")){var c=A(e,o,a,r);if(c.done)return c.value}var f=l(r);f||(r=h(r));var g=o.global;if(g){var B=o.unicode;o.lastIndex=0}for(var Q=[];;){var U=w(o,a);if(null===U)break;if(C(Q,U),!g)break;""===h(U[0])&&(o.lastIndex=d(a,p(o.lastIndex),B))}for(var L,E="",S=0,I=0;I=S&&(E+=x(a,S,N)+D,S=N+T.length)}return E+x(a,S)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!Q||U)},200:(t,e,A)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof A.g&&A.g)||function(){return this}()||Function("return this")()},281:(t,e,A)=>{var n=A(8823),r=Function.prototype,i=r.call,o=n&&r.bind.bind(i,i);t.exports=n?o:function(t){return function(){return i.apply(t,arguments)}}},290:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},353:(t,e,A)=>{var n=A(2368),r=A(6490),i=A(7658),o=A(6844),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||r(t,"flags")||!i(a,t)?e:n(o,t)}},354:function(t){t.exports=function(){"use strict";var t=function(e,A){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var A in e)Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A])},t(e,A)};function e(e,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function n(){this.constructor=e}t(e,A),e.prototype=null===A?Object.create(A):(n.prototype=A.prototype,new n)}var A=function(){return A=Object.assign||function(t){for(var e,A=1,n=arguments.length;A0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=55296&&r<=56319&&A>10),o%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<64;p++)u[c.charCodeAt(p)]=p;for(var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<64;d++)f[h.charCodeAt(d)]=d;for(var g=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},m=function(){function t(t,e,A,n,r,i){this.initialValue=t,this.errorValue=e,this.highStart=A,this.highValueIndex=n,this.index=r,this.data=i}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B="undefined"==typeof Uint8Array?[]:new Uint8Array(256),v=0;v<64;v++)B[w.charCodeAt(v)]=v;var y=10,b=13,C=15,F=17,x=18,Q=19,U=20,L=21,E=22,S=24,I=25,T=26,N=27,_=28,H=30,k=32,P=33,D=34,O=35,M=37,R=38,j=39,K=40,G=42,q=[9001,65288],V="×",z="÷",W=function(t){var e,A,n,r=function(t){var e,A,n,r,i,o=.75*t.length,a=t.length,s=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e>4,c[s++]=(15&n)<<4|r>>2,c[s++]=(3&r)<<6|63&i;return l}(t),i=Array.isArray(r)?function(t){for(var e=t.length,A=[],n=0;n0;){var o=n[--i];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var a=A;a<=n.length;){var s;if((s=n[++a])===e)return!0;if(s!==y)break}if(o!==y)break}return!1},nt=function(t,e){for(var A=t;A>=0;){var n=e[A];if(n!==y)return n;A--}return 0},rt=function(t,e,A,n,r){if(0===A[n])return V;var i=n-1;if(Array.isArray(r)&&!0===r[i])return V;var o=i-1,a=i+1,s=e[i],l=o>=0?e[o]:0,c=e[a];if(2===s&&3===c)return V;if(-1!==X.indexOf(s))return"!";if(-1!==X.indexOf(c))return V;if(-1!==Y.indexOf(c))return V;if(8===nt(i,e))return z;if(11===W.get(t[i]))return V;if((s===k||s===P)&&11===W.get(t[a]))return V;if(7===s||7===c)return V;if(9===s)return V;if(-1===[y,b,C].indexOf(s)&&9===c)return V;if(-1!==[F,x,Q,S,_].indexOf(c))return V;if(nt(i,e)===E)return V;if(At(23,E,i,e))return V;if(At([F,x],L,i,e))return V;if(At(12,12,i,e))return V;if(s===y)return z;if(23===s||23===c)return V;if(16===c||16===s)return z;if(-1!==[b,C,L].indexOf(c)||14===s)return V;if(36===l&&-1!==et.indexOf(s))return V;if(s===_&&36===c)return V;if(c===U)return V;if(-1!==J.indexOf(c)&&s===I||-1!==J.indexOf(s)&&c===I)return V;if(s===N&&-1!==[M,k,P].indexOf(c)||-1!==[M,k,P].indexOf(s)&&c===T)return V;if(-1!==J.indexOf(s)&&-1!==$.indexOf(c)||-1!==$.indexOf(s)&&-1!==J.indexOf(c))return V;if(-1!==[N,T].indexOf(s)&&(c===I||-1!==[E,C].indexOf(c)&&e[a+1]===I)||-1!==[E,C].indexOf(s)&&c===I||s===I&&-1!==[I,_,S].indexOf(c))return V;if(-1!==[I,_,S,F,x].indexOf(c))for(var u=i;u>=0;){if((p=e[u])===I)return V;if(-1===[_,S].indexOf(p))break;u--}if(-1!==[N,T].indexOf(c))for(u=-1!==[F,x].indexOf(s)?o:i;u>=0;){var p;if((p=e[u])===I)return V;if(-1===[_,S].indexOf(p))break;u--}if(R===s&&-1!==[R,j,D,O].indexOf(c)||-1!==[j,D].indexOf(s)&&-1!==[j,K].indexOf(c)||-1!==[K,O].indexOf(s)&&c===K)return V;if(-1!==tt.indexOf(s)&&-1!==[U,T].indexOf(c)||-1!==tt.indexOf(c)&&s===N)return V;if(-1!==J.indexOf(s)&&-1!==J.indexOf(c))return V;if(s===S&&-1!==J.indexOf(c))return V;if(-1!==J.concat(I).indexOf(s)&&c===E&&-1===q.indexOf(t[a])||-1!==J.concat(I).indexOf(c)&&s===x)return V;if(41===s&&41===c){for(var h=A[i],f=1;h>0&&41===e[--h];)f++;if(f%2!=0)return V}return s===k&&c===P?V:z},it=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=function(t,e){void 0===e&&(e="strict");var A=[],n=[],r=[];return t.forEach((function(t,i){var o=W.get(t);if(o>50?(r.push(!0),o-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return n.push(i),A.push(16);if(4===o||11===o){if(0===i)return n.push(i),A.push(H);var a=A[i-1];return-1===Z.indexOf(a)?(n.push(n[i-1]),A.push(a)):(n.push(i),A.push(H))}return n.push(i),31===o?A.push("strict"===e?L:M):o===G||29===o?A.push(H):43===o?t>=131072&&t<=196605||t>=196608&&t<=262141?A.push(M):A.push(H):void A.push(o)})),[n,A,r]}(t,e.lineBreak),n=A[0],r=A[1],i=A[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(r=r.map((function(t){return-1!==[I,H,G].indexOf(t)?M:t})));var o="keep-all"===e.wordBreak?i.map((function(e,A){return e&&t[A]>=19968&&t[A]<=40959})):void 0;return[n,r,o]},ot=function(){function t(t,e,A,n){this.codePoints=t,this.required="!"===e,this.start=A,this.end=n}return t.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),at=45,st=43,lt=-1,ct=function(t){return t>=48&&t<=57},ut=function(t){return ct(t)||t>=65&&t<=70||t>=97&&t<=102},pt=function(t){return 10===t||9===t||32===t},ht=function(t){return function(t){return function(t){return t>=97&&t<=122}(t)||function(t){return t>=65&&t<=90}(t)}(t)||function(t){return t>=128}(t)||95===t},ft=function(t){return ht(t)||ct(t)||t===at},dt=function(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t},gt=function(t,e){return 92===t&&10!==e},mt=function(t,e,A){return t===at?ht(e)||gt(e,A):!!ht(t)||!(92!==t||!gt(t,e))},wt=function(t,e,A){return t===st||t===at?!!ct(e)||46===e&&ct(A):ct(46===t?e:t)},Bt=function(t){var e=0,A=1;t[e]!==st&&t[e]!==at||(t[e]===at&&(A=-1),e++);for(var n=[];ct(t[e]);)n.push(t[e++]);var r=n.length?parseInt(l.apply(void 0,n),10):0;46===t[e]&&e++;for(var i=[];ct(t[e]);)i.push(t[e++]);var o=i.length,a=o?parseInt(l.apply(void 0,i),10):0;69!==t[e]&&101!==t[e]||e++;var s=1;t[e]!==st&&t[e]!==at||(t[e]===at&&(s=-1),e++);for(var c=[];ct(t[e]);)c.push(t[e++]);var u=c.length?parseInt(l.apply(void 0,c),10):0;return A*(r+a*Math.pow(10,-o))*Math.pow(10,s*u)},vt={type:2},yt={type:3},bt={type:4},Ct={type:13},Ft={type:8},xt={type:21},Qt={type:9},Ut={type:10},Lt={type:11},Et={type:12},St={type:14},It={type:23},Tt={type:1},Nt={type:25},_t={type:24},Ht={type:26},kt={type:27},Pt={type:28},Dt={type:29},Ot={type:31},Mt={type:32},Rt=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(s(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==Mt;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),A=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ft(e)||gt(A,n)){var r=mt(e,A,n)?2:1;return{type:5,value:this.consumeName(),flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ct;break;case 39:return this.consumeStringToken(39);case 40:return vt;case 41:return yt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),St;break;case st:if(wt(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return bt;case at:var i=t,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(wt(i,o,a))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(mt(i,o,a))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(o===at&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),_t;break;case 46:if(wt(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(s===lt)return this.consumeToken()}break;case 58:return Ht;case 59:return kt;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===at&&this.peekCodePoint(2)===at)return this.consumeCodePoint(),this.consumeCodePoint(),Nt;break;case 64:var c=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(mt(c,u,p))return{type:7,value:this.consumeName()};break;case 91:return Pt;case 92:if(gt(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Dt;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ft;break;case 123:return Lt;case 125:return Et;case 117:case 85:var h=this.peekCodePoint(0),f=this.peekCodePoint(1);return h!==st||!ut(f)&&63!==f||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Qt;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),xt;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ut;break;case lt:return Mt}return pt(t)?(this.consumeWhiteSpace(),Ot):ct(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):ht(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:l(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ut(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var A=!1;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),A=!0;if(A)return{type:30,start:parseInt(l.apply(void 0,t.map((function(t){return 63===t?48:t}))),16),end:parseInt(l.apply(void 0,t.map((function(t){return 63===t?70:t}))),16)};var n=parseInt(l.apply(void 0,t),16);if(this.peekCodePoint(0)===at&&ut(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var r=[];ut(e)&&r.length<6;)r.push(e),e=this.consumeCodePoint();return{type:30,start:n,end:parseInt(l.apply(void 0,r),16)}}return{type:30,start:n,end:n}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===lt)return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var A=this.consumeStringToken(this.consumeCodePoint());return 0===A.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===lt||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:A.value}):(this.consumeBadUrlRemnants(),It)}for(;;){var n=this.consumeCodePoint();if(n===lt||41===n)return{type:22,value:l.apply(void 0,t)};if(pt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===lt||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,t)}):(this.consumeBadUrlRemnants(),It);if(34===n||39===n||40===n||dt(n))return this.consumeBadUrlRemnants(),It;if(92===n){if(!gt(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),It;t.push(this.consumeEscapedCodePoint())}else t.push(n)}},t.prototype.consumeWhiteSpace=function(){for(;pt(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(41===t||t===lt)return;gt(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e="";t>0;){var A=Math.min(5e4,t);e+=l.apply(void 0,this._value.splice(0,A)),t-=A}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){for(var e="",A=0;;){var n=this._value[A];if(n===lt||void 0===n||n===t)return{type:0,value:e+=this.consumeStringSlice(A)};if(10===n)return this._value.splice(0,A),Tt;if(92===n){var r=this._value[A+1];r!==lt&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(A),A=-1,this._value.shift()):gt(n,r)&&(e+=this.consumeStringSlice(A),e+=l(this.consumeEscapedCodePoint()),A=-1))}A++}},t.prototype.consumeNumber=function(){var t=[],e=4,A=this.peekCodePoint(0);for(A!==st&&A!==at||t.push(this.consumeCodePoint());ct(this.peekCodePoint(0));)t.push(this.consumeCodePoint());A=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===A&&ct(n))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ct(this.peekCodePoint(0));)t.push(this.consumeCodePoint());A=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===A||101===A)&&((n===st||n===at)&&ct(r)||ct(n)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ct(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[Bt(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],A=t[1],n=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);return mt(n,r,i)?{type:15,number:e,flags:A,unit:this.consumeName()}:37===n?(this.consumeCodePoint(),{type:16,number:e,flags:A}):{type:17,number:e,flags:A}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ut(t)){for(var e=l(t);ut(this.peekCodePoint(0))&&e.length<6;)e+=l(this.consumeCodePoint());pt(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(e,16);return 0===A||function(t){return t>=55296&&t<=57343}(A)||A>1114111?65533:A}return t===lt?65533:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(ft(e))t+=l(e);else{if(!gt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=l(this.consumeEscapedCodePoint())}}},t}(),jt=function(){function t(t){this._tokens=t}return t.create=function(e){var A=new Rt;return A.write(e),new t(A.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},A=this.consumeToken();;){if(32===A.type||Yt(A,t))return e;this.reconsumeToken(A),e.values.push(this.consumeComponentValue()),A=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var A=this.consumeToken();if(32===A.type||3===A.type)return e;this.reconsumeToken(A),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?Mt:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),Kt=function(t){return 15===t.type},Gt=function(t){return 17===t.type},qt=function(t){return 20===t.type},Vt=function(t){return 0===t.type},zt=function(t,e){return qt(t)&&t.value===e},Wt=function(t){return 31!==t.type},Jt=function(t){return 31!==t.type&&4!==t.type},Xt=function(t){var e=[],A=[];return t.forEach((function(t){if(4===t.type){if(0===A.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(A),void(A=[])}31!==t.type&&A.push(t)})),A.length&&e.push(A),e},Yt=function(t,e){return 11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type},$t=function(t){return 17===t.type||15===t.type},Zt=function(t){return 16===t.type||$t(t)},te=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},ee={type:17,number:0,flags:4},Ae={type:16,number:50,flags:4},ne={type:16,number:100,flags:4},re=function(t,e,A){var n=t[0],r=t[1];return[ie(n,e),ie(void 0!==r?r:n,A)]},ie=function(t,e){if(16===t.type)return t.number/100*e;if(Kt(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},oe="grad",ae="turn",se=function(t,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case oe:return Math.PI/200*e.number;case"rad":return e.number;case ae:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},le=function(t){return 15===t.type&&("deg"===t.unit||t.unit===oe||"rad"===t.unit||t.unit===ae)},ce=function(t){switch(t.filter(qt).map((function(t){return t.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ee,ee];case"to top":case"bottom":return ue(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ee,ne];case"to right":case"left":return ue(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ne,ne];case"to bottom":case"top":return ue(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ne,ee];case"to left":case"right":return ue(270)}return 0},ue=function(t){return Math.PI*t/180},pe=function(t,e){if(18===e.type){var A=ve[e.name];if(void 0===A)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return A(t,e.values)}if(5===e.type){if(3===e.value.length){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return de(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(4===e.value.length){n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);var o=e.value.substring(3,4);return de(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),de(parseInt(n,16),parseInt(r,16),parseInt(i,16),1);if(8===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8),de(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(o,16)/255)}if(20===e.type){var a=be[e.value.toUpperCase()];if(void 0!==a)return a}return be.TRANSPARENT},he=function(t){return!(255&t)},fe=function(t){var e=255&t,A=255&t>>8,n=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+n+","+A+","+e/255+")":"rgb("+r+","+n+","+A+")"},de=function(t,e,A,n){return(t<<24|e<<16|A<<8|Math.round(255*n))>>>0},ge=function(t,e){if(17===t.type)return t.number;if(16===t.type){var A=3===e?1:255;return 3===e?t.number/100*A:Math.round(t.number/100*A)}return 0},me=function(t,e){var A=e.filter(Jt);if(3===A.length){var n=A.map(ge),r=n[0],i=n[1],o=n[2];return de(r,i,o,1)}if(4===A.length){var a=A.map(ge),s=(r=a[0],i=a[1],o=a[2],a[3]);return de(r,i,o,s)}return 0};function we(t,e,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<.5?e:A<2/3?6*(e-t)*(2/3-A)+t:t}var Be=function(t,e){var A=e.filter(Jt),n=A[0],r=A[1],i=A[2],o=A[3],a=(17===n.type?ue(n.number):se(t,n))/(2*Math.PI),s=Zt(r)?r.number/100:0,l=Zt(i)?i.number/100:0,c=void 0!==o&&Zt(o)?ie(o,1):1;if(0===s)return de(255*l,255*l,255*l,1);var u=l<=.5?l*(s+1):l+s-l*s,p=2*l-u,h=we(p,u,a+1/3),f=we(p,u,a),d=we(p,u,a-1/3);return de(255*h,255*f,255*d,c)},ve={hsl:Be,hsla:Be,rgb:me,rgba:me},ye=function(t,e){return pe(t,jt.create(e).parseComponentValue())},be={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},Ce={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(qt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Fe={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xe=function(t,e){var A=pe(t,e[0]),n=e[1];return n&&Zt(n)?{color:A,stop:n}:{color:A,stop:null}},Qe=function(t,e){var A=t[0],n=t[t.length-1];null===A.stop&&(A.stop=ee),null===n.stop&&(n.stop=ne);for(var r=[],i=0,o=0;oi?r.push(s):r.push(i),i=s}else r.push(null)}var l=null;for(o=0;ot.optimumDistance)?{optimumCorner:e,optimumDistance:a}:t}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},Se=function(t,e){var A=ue(180),n=[];return Xt(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(A=ce(e));if(le(i))return void(A=(se(t,i)+ue(270))%ue(360))}var o=xe(t,e);n.push(o)})),{angle:A,stops:n,type:1}},Ie="closest-side",Te="farthest-side",Ne="closest-corner",_e="farthest-corner",He="circle",ke="ellipse",Pe="cover",De="contain",Oe=function(t,e){var A=0,n=3,r=[],i=[];return Xt(e).forEach((function(e,o){var a=!0;if(0===o?a=e.reduce((function(t,e){if(qt(e))switch(e.value){case"center":return i.push(Ae),!1;case"top":case"left":return i.push(ee),!1;case"right":case"bottom":return i.push(ne),!1}else if(Zt(e)||$t(e))return i.push(e),!1;return t}),a):1===o&&(a=e.reduce((function(t,e){if(qt(e))switch(e.value){case He:return A=0,!1;case ke:return A=1,!1;case De:case Ie:return n=0,!1;case Te:return n=1,!1;case Ne:return n=2,!1;case Pe:case _e:return n=3,!1}else if($t(e)||Zt(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return t}),a)),a){var s=xe(t,e);r.push(s)}})),{size:n,shape:A,stops:r,position:i,type:2}},Me=function(t,e){if(22===e.type){var A={url:e.value,type:0};return t.cache.addImage(e.value),A}if(18===e.type){var n=je[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)};var Re,je={"linear-gradient":function(t,e){var A=ue(180),n=[];return Xt(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&"to"===i.value)return void(A=ce(e));if(le(i))return void(A=se(t,i))}var o=xe(t,e);n.push(o)})),{angle:A,stops:n,type:1}},"-moz-linear-gradient":Se,"-ms-linear-gradient":Se,"-o-linear-gradient":Se,"-webkit-linear-gradient":Se,"radial-gradient":function(t,e){var A=0,n=3,r=[],i=[];return Xt(e).forEach((function(e,o){var a=!0;if(0===o){var s=!1;a=e.reduce((function(t,e){if(s)if(qt(e))switch(e.value){case"center":return i.push(Ae),t;case"top":case"left":return i.push(ee),t;case"right":case"bottom":return i.push(ne),t}else(Zt(e)||$t(e))&&i.push(e);else if(qt(e))switch(e.value){case He:return A=0,!1;case ke:return A=1,!1;case"at":return s=!0,!1;case Ie:return n=0,!1;case Pe:case Te:return n=1,!1;case De:case Ne:return n=2,!1;case _e:return n=3,!1}else if($t(e)||Zt(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return t}),a)}if(a){var l=xe(t,e);r.push(l)}})),{size:n,shape:A,stops:r,position:i,type:2}},"-moz-radial-gradient":Oe,"-ms-radial-gradient":Oe,"-o-radial-gradient":Oe,"-webkit-radial-gradient":Oe,"-webkit-gradient":function(t,e){var A=ue(180),n=[],r=1;return Xt(e).forEach((function(e,A){var i=e[0];if(0===A){if(qt(i)&&"linear"===i.value)return void(r=1);if(qt(i)&&"radial"===i.value)return void(r=2)}if(18===i.type)if("from"===i.name){var o=pe(t,i.values[0]);n.push({stop:ee,color:o})}else if("to"===i.name)o=pe(t,i.values[0]),n.push({stop:ne,color:o});else if("color-stop"===i.name){var a=i.values.filter(Jt);if(2===a.length){o=pe(t,a[1]);var s=a[0];Gt(s)&&n.push({stop:{type:16,number:100*s.number,flags:s.flags},color:o})}}})),1===r?{angle:(A+ue(180))%ue(360),stops:n,type:r}:{size:3,shape:0,stops:n,position:[],type:r}}},Ke={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var A=e[0];return 20===A.type&&"none"===A.value?[]:e.filter((function(t){return Jt(t)&&function(t){return!(20===t.type&&"none"===t.value||18===t.type&&!je[t.name])}(t)})).map((function(e){return Me(t,e)}))}},Ge={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(qt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},qe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Xt(e).map((function(t){return t.filter(Zt)})).map(te)}},Ve={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Xt(e).map((function(t){return t.filter(qt).map((function(t){return t.value})).join(" ")})).map(ze)}},ze=function(t){switch(t){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(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(Re||(Re={}));var We,Je={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Xt(e).map((function(t){return t.filter(Xe)}))}},Xe=function(t){return qt(t)||Zt(t)},Ye=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},$e=Ye("top"),Ze=Ye("right"),tA=Ye("bottom"),eA=Ye("left"),AA=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return te(e.filter(Zt))}}},nA=AA("top-left"),rA=AA("top-right"),iA=AA("bottom-right"),oA=AA("bottom-left"),aA=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},sA=aA("top"),lA=aA("right"),cA=aA("bottom"),uA=aA("left"),pA=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Kt(e)?e.number:0}}},hA=pA("top"),fA=pA("right"),dA=pA("bottom"),gA=pA("left"),mA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wA={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return"rtl"===e?1:0}},BA={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(qt).reduce((function(t,e){return t|vA(e.value)}),0)}},vA=function(t){switch(t){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},yA={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},bA={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(We||(We={}));var CA,FA={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"strict"===e?We.STRICT:We.NORMAL}},xA={name:"line-height",initialValue:"normal",prefix:!1,type:4},QA=function(t,e){return qt(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:Zt(t)?ie(t,e):e},UA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Me(t,e)}},LA={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return"inside"===e?0:1}},EA={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){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}}},SA=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},IA=SA("top"),TA=SA("right"),NA=SA("bottom"),_A=SA("left"),HA={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(qt).map((function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},kA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"break-word"===e?"break-word":"normal"}},PA=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},DA=PA("top"),OA=PA("right"),MA=PA("bottom"),RA=PA("left"),jA={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},KA={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},GA={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&zt(e[0],"none")?[]:Xt(e).map((function(e){for(var A={color:be.TRANSPARENT,offsetX:ee,offsetY:ee,blur:ee},n=0,r=0;r1?1:0],this.overflowWrap=Fn(t,kA,e.overflowWrap),this.paddingTop=Fn(t,DA,e.paddingTop),this.paddingRight=Fn(t,OA,e.paddingRight),this.paddingBottom=Fn(t,MA,e.paddingBottom),this.paddingLeft=Fn(t,RA,e.paddingLeft),this.paintOrder=Fn(t,wn,e.paintOrder),this.position=Fn(t,KA,e.position),this.textAlign=Fn(t,jA,e.textAlign),this.textDecorationColor=Fn(t,An,null!==(A=e.textDecorationColor)&&void 0!==A?A:e.color),this.textDecorationLine=Fn(t,nn,null!==(n=e.textDecorationLine)&&void 0!==n?n:e.textDecoration),this.textShadow=Fn(t,GA,e.textShadow),this.textTransform=Fn(t,qA,e.textTransform),this.transform=Fn(t,VA,e.transform),this.transformOrigin=Fn(t,XA,e.transformOrigin),this.visibility=Fn(t,YA,e.visibility),this.webkitTextStrokeColor=Fn(t,Bn,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Fn(t,vn,e.webkitTextStrokeWidth),this.wordBreak=Fn(t,$A,e.wordBreak),this.zIndex=Fn(t,ZA,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return he(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return cn(this.display,4)||cn(this.display,33554432)||cn(this.display,268435456)||cn(this.display,536870912)||cn(this.display,67108864)||cn(this.display,134217728)},t}(),bn=function(t,e){this.content=Fn(t,un,e.content),this.quotes=Fn(t,dn,e.quotes)},Cn=function(t,e){this.counterIncrement=Fn(t,pn,e.counterIncrement),this.counterReset=Fn(t,hn,e.counterReset)},Fn=function(t,e,A){var n=new Rt,r=null!=A?A.toString():e.initialValue;n.write(r);var i=new jt(n.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(t,qt(o)?o.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return se(t,i.parseComponentValue());case"color":return pe(t,i.parseComponentValue());case"image":return Me(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return $t(a)?a:ee;case"length-percentage":var s=i.parseComponentValue();return Zt(s)?s:ee;case"time":return tn.parse(t,i.parseComponentValue())}}},xn=function(t,e){var A=function(t){switch(t.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(t);return 1===A||e===A},Qn=function(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,xn(e,3),this.styles=new yn(t,window.getComputedStyle(e,null)),Sr(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=a(this.context,e),xn(e,4)&&(this.flags|=16)},Un="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ln="undefined"==typeof Uint8Array?[]:new Uint8Array(256),En=0;En<64;En++)Ln[Un.charCodeAt(En)]=En;for(var Sn=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},In=function(){function t(t,e,A,n,r,i){this.initialValue=t,this.errorValue=e,this.highStart=A,this.highValueIndex=n,this.index=r,this.data=i}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Tn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),_n=0;_n<64;_n++)Nn[Tn.charCodeAt(_n)]=_n;var Hn,kn=8,Pn=9,Dn=11,On=12,Mn=function(){for(var t=[],e=0;e>10),o%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},Rn=function(t){var e,A,n,r=function(t){var e,A,n,r,i,o=.75*t.length,a=t.length,s=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e>4,c[s++]=(15&n)<<4|r>>2,c[s++]=(3&r)<<6|63&i;return l}(t),i=Array.isArray(r)?function(t){for(var e=t.length,A=[],n=0;n=55296&&r<=56319&&A=A)return{done:!0,value:null};for(var t=jn;no.x||r.y>o.y;return o=r,0===e||a}));return t.body.removeChild(e),a}(document);return Object.defineProperty(Jn,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,A=t.createElement("canvas"),n=A.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),A.toDataURL()}catch(t){return!1}return!0}(document);return Object.defineProperty(Jn,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var e=t.createElement("canvas"),A=100;e.width=A,e.height=A;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,A,A);var r=new Image,i=e.toDataURL();r.src=i;var o=zn(A,A,0,0,r);return n.fillStyle="red",n.fillRect(0,0,A,A),Wn(o).then((function(e){n.drawImage(e,0,0);var r=n.getImageData(0,0,A,A).data;n.fillStyle="red",n.fillRect(0,0,A,A);var o=t.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height=A+"px",Vn(r)?Wn(zn(A,A,0,0,o)):Promise.reject(!1)})).then((function(t){return n.drawImage(t,0,0),Vn(n.getImageData(0,0,A,A).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Jn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=void 0!==(new Image).crossOrigin;return Object.defineProperty(Jn,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Jn,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Jn,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Jn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Xn=function(t,e){this.text=t,this.bounds=e},Yn=function(t,e){var A=e.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var i=a(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return o.EMPTY},$n=function(t,e,A){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(t,e),r.setEnd(t,e+A),r},Zn=function(t){if(Jn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return function(t){for(var e,A=qn(t),n=[];!(e=A.next()).done;)e.value&&n.push(e.value.slice());return n}(t)},tr=function(t,e){return 0!==e.letterSpacing?Zn(t):function(t,e){if(Jn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(t)).map((function(t){return t.segment}))}return Ar(t,e)}(t,e)},er=[32,160,4961,65792,65793,4153,4241],Ar=function(t,e){for(var A,n=function(t,e){var A=s(t),n=it(A,e),r=n[0],i=n[1],o=n[2],a=A.length,l=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var t=V;c0)if(Jn.SUPPORT_RANGE_BOUNDS){var r=$n(n,a,e.length).getClientRects();if(r.length>1){var s=Zn(e),l=0;s.forEach((function(e){i.push(new Xn(e,o.fromDOMRectList(t,$n(n,l+a,e.length).getClientRects()))),l+=e.length}))}else i.push(new Xn(e,o.fromDOMRectList(t,r)))}else{var c=n.splitText(e.length);i.push(new Xn(e,Yn(t,n))),n=c}else Jn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));a+=e.length})),i}(t,this.text,A,e)},rr=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(ir,or);case 2:return t.toUpperCase();default:return t}},ir=/(^|\s|:|-|\(|\))([a-z])/g,or=function(t,e,A){return t.length>0?e+A.toUpperCase():t},ar=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.src=A.currentSrc||A.src,n.intrinsicWidth=A.naturalWidth,n.intrinsicHeight=A.naturalHeight,n.context.cache.addImage(n.src),n}return e(A,t),A}(Qn),sr=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.canvas=A,n.intrinsicWidth=A.width,n.intrinsicHeight=A.height,n}return e(A,t),A}(Qn),lr=function(t){function A(e,A){var n=t.call(this,e,A)||this,r=new XMLSerializer,i=a(e,A);return A.setAttribute("width",i.width+"px"),A.setAttribute("height",i.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(A)),n.intrinsicWidth=A.width.baseVal.value,n.intrinsicHeight=A.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e(A,t),A}(Qn),cr=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.value=A.value,n}return e(A,t),A}(Qn),ur=function(t){function A(e,A){var n=t.call(this,e,A)||this;return n.start=A.start,n.reversed="boolean"==typeof A.reversed&&!0===A.reversed,n}return e(A,t),A}(Qn),pr=[{type:15,flags:0,unit:"px",number:3}],hr=[{type:16,flags:0,number:50}],fr="checkbox",dr="radio",gr="password",mr=707406591,wr=function(t){function A(e,A){var n,r,i,a=t.call(this,e,A)||this;switch(a.type=A.type.toLowerCase(),a.checked=A.checked,a.value=0===(i=(r=A).type===gr?new Array(r.value.length+1).join("•"):r.value).length?r.placeholder||"":i,a.type!==fr&&a.type!==dr||(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=(n=a.bounds).width>n.height?new o(n.left+(n.width-n.height)/2,n.top,n.height,n.height):n.width0)A.textNodes.push(new nr(t,r,A.styles));else if(Er(r))if(Gr(r)&&r.assignedNodes)r.assignedNodes().forEach((function(e){return Cr(t,e,A,n)}));else{var o=Fr(t,r);o.styles.isVisible()&&(Qr(r,o,n)?o.flags|=4:Ur(o.styles)&&(o.flags|=2),-1!==br.indexOf(r.tagName)&&(o.flags|=8),A.elements.push(o),r.slot,r.shadowRoot?Cr(t,r.shadowRoot,o,n):jr(r)||Hr(r)||Kr(r)||Cr(t,r,o,n))}},Fr=function(t,e){return Or(e)?new ar(t,e):Pr(e)?new sr(t,e):Hr(e)?new lr(t,e):Tr(e)?new cr(t,e):Nr(e)?new ur(t,e):_r(e)?new wr(t,e):Kr(e)?new Br(t,e):jr(e)?new vr(t,e):Mr(e)?new yr(t,e):new Qn(t,e)},xr=function(t,e){var A=Fr(t,e);return A.flags|=4,Cr(t,e,A,A),A},Qr=function(t,e,A){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||kr(t)&&A.styles.isTransparent()},Ur=function(t){return t.isPositioned()||t.isFloating()},Lr=function(t){return t.nodeType===Node.TEXT_NODE},Er=function(t){return t.nodeType===Node.ELEMENT_NODE},Sr=function(t){return Er(t)&&void 0!==t.style&&!Ir(t)},Ir=function(t){return"object"==typeof t.className},Tr=function(t){return"LI"===t.tagName},Nr=function(t){return"OL"===t.tagName},_r=function(t){return"INPUT"===t.tagName},Hr=function(t){return"svg"===t.tagName},kr=function(t){return"BODY"===t.tagName},Pr=function(t){return"CANVAS"===t.tagName},Dr=function(t){return"VIDEO"===t.tagName},Or=function(t){return"IMG"===t.tagName},Mr=function(t){return"IFRAME"===t.tagName},Rr=function(t){return"STYLE"===t.tagName},jr=function(t){return"TEXTAREA"===t.tagName},Kr=function(t){return"SELECT"===t.tagName},Gr=function(t){return"SLOT"===t.tagName},qr=function(t){return t.tagName.indexOf("-")>0},Vr=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){return this.counters[t]||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,A=t.counterIncrement,n=t.counterReset,r=!0;null!==A&&A.forEach((function(t){var A=e.counters[t.counter];A&&0!==t.increment&&(r=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=t.increment)}));var i=[];return r&&n.forEach((function(t){var A=e.counters[t.counter];i.push(t.counter),A||(A=e.counters[t.counter]=[]),A.push(t.reset)})),i},t}(),zr={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"]},Wr={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Jr={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Xr={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Yr=function(t,e,A,n,r,i){return tA?oi(t,r,i.length>0):n.integers.reduce((function(e,A,r){for(;t>=A;)t-=A,e+=n.values[r];return e}),"")+i},$r=function(t,e,A,n){var r="";do{A||t--,r=n(t)+r,t/=e}while(t*e>=e);return r},Zr=function(t,e,A,n,r){var i=A-e+1;return(t<0?"-":"")+($r(Math.abs(t),i,n,(function(t){return l(Math.floor(t%i)+e)}))+r)},ti=function(t,e,A){void 0===A&&(A=". ");var n=e.length;return $r(Math.abs(t),n,!1,(function(t){return e[Math.floor(t%n)]}))+A},ei=function(t,e,A,n,r,i){if(t<-9999||t>9999)return oi(t,4,r.length>0);var o=Math.abs(t),a=r;if(0===o)return e[0]+a;for(var s=0;o>0&&s<=4;s++){var l=o%10;0===l&&cn(i,1)&&""!==a?a=e[l]+a:l>1||1===l&&0===s||1===l&&1===s&&cn(i,2)||1===l&&1===s&&cn(i,4)&&t>100||1===l&&s>1&&cn(i,8)?a=e[l]+(s>0?A[s-1]:"")+a:1===l&&s>0&&(a=A[s-1]+a),o=Math.floor(o/10)}return(t<0?n:"")+a},Ai="十百千萬",ni="拾佰仟萬",ri="マイナス",ii="마이너스",oi=function(t,e,A){var n=A?". ":"",r=A?"、":"",i=A?", ":"",o=A?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var a=Zr(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return ti(t,"〇一二三四五六七八九",r);case 6:return Yr(t,1,3999,zr,3,n).toLowerCase();case 7:return Yr(t,1,3999,zr,3,n);case 8:return Zr(t,945,969,!1,n);case 9:return Zr(t,97,122,!1,n);case 10:return Zr(t,65,90,!1,n);case 11:return Zr(t,1632,1641,!0,n);case 12:case 49:return Yr(t,1,9999,Wr,3,n);case 35:return Yr(t,1,9999,Wr,3,n).toLowerCase();case 13:return Zr(t,2534,2543,!0,n);case 14:case 30:return Zr(t,6112,6121,!0,n);case 15:return ti(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return ti(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return ei(t,"零一二三四五六七八九",Ai,"負",r,14);case 47:return ei(t,"零壹貳參肆伍陸柒捌玖",ni,"負",r,15);case 42:return ei(t,"零一二三四五六七八九",Ai,"负",r,14);case 41:return ei(t,"零壹贰叁肆伍陆柒捌玖",ni,"负",r,15);case 26:return ei(t,"〇一二三四五六七八九","十百千万",ri,r,0);case 25:return ei(t,"零壱弐参四伍六七八九","拾百千万",ri,r,7);case 31:return ei(t,"영일이삼사오육칠팔구","십백천만",ii,i,7);case 33:return ei(t,"零一二三四五六七八九","十百千萬",ii,i,0);case 32:return ei(t,"零壹貳參四五六七八九","拾百千",ii,i,7);case 18:return Zr(t,2406,2415,!0,n);case 20:return Yr(t,1,19999,Xr,3,n);case 21:return Zr(t,2790,2799,!0,n);case 22:return Zr(t,2662,2671,!0,n);case 22:return Yr(t,1,10999,Jr,3,n);case 23:return ti(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ti(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Zr(t,3302,3311,!0,n);case 28:return ti(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return ti(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return Zr(t,3792,3801,!0,n);case 37:return Zr(t,6160,6169,!0,n);case 38:return Zr(t,4160,4169,!0,n);case 39:return Zr(t,2918,2927,!0,n);case 40:return Zr(t,1776,1785,!0,n);case 43:return Zr(t,3046,3055,!0,n);case 44:return Zr(t,3174,3183,!0,n);case 45:return Zr(t,3664,3673,!0,n);case 46:return Zr(t,3872,3881,!0,n);default:return Zr(t,48,57,!0,n)}},ai="data-html2canvas-ignore",si=function(){function t(t,e,A){if(this.context=t,this.options=A,this.scrolledElements=[],this.referenceElement=e,this.counters=new Vr,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var A=this,i=ci(t,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,a=t.defaultView.pageYOffset,s=i.contentWindow,l=s.document,c=hi(i).then((function(){return n(A,void 0,void 0,(function(){var t,A;return r(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(wi),s&&(s.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===e.top&&s.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(A=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,pi(l)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"==typeof t?[2,Promise.resolve().then((function(){return t(l,A)})).then((function(){return i}))]:[2,i]}}))}))}));return l.open(),l.write(gi(document.doctype)+""),mi(this.referenceElement.ownerDocument,o,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},t.prototype.createElementClone=function(t){if(xn(t,2),Pr(t))return this.createCanvasClone(t);if(Dr(t))return this.createVideoClone(t);if(Rr(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Or(e)&&(Or(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),qr(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return di(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var A=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t}),""),n=t.cloneNode(!1);return n.textContent=A,n}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var A=t.ownerDocument.createElement("img");try{return A.src=t.toDataURL(),A}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var r=t.getContext("2d"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(o){var a=o.getContextAttributes();!1===(null==a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}i.drawImage(t,0,0)}return n}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return n},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var A=e.getContext("2d");try{return A&&(A.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||A.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}var n=t.ownerDocument.createElement("canvas");return n.width=t.offsetWidth,n.height=t.offsetHeight,n},t.prototype.appendChildNode=function(t,e,A){Er(e)&&("SCRIPT"===e.tagName||e.hasAttribute(ai)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&Er(e)&&Rr(e)||t.appendChild(this.cloneNode(e,A))},t.prototype.cloneChildNodes=function(t,e,A){for(var n=this,r=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;r;r=r.nextSibling)if(Er(r)&&Gr(r)&&"function"==typeof r.assignedNodes){var i=r.assignedNodes();i.length&&i.forEach((function(t){return n.appendChildNode(e,t,A)}))}else this.appendChildNode(e,r,A)},t.prototype.cloneNode=function(t,e){if(Lr(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var A=t.ownerDocument.defaultView;if(A&&Er(t)&&(Sr(t)||Ir(t))){var n=this.createElementClone(t);n.style.transitionProperty="none";var r=A.getComputedStyle(t),i=A.getComputedStyle(t,":before"),o=A.getComputedStyle(t,":after");this.referenceElement===t&&Sr(n)&&(this.clonedReferenceElement=n),kr(n)&&bi(n);var a=this.counters.parse(new Cn(this.context,r)),s=this.resolvePseudoContent(t,n,i,Hn.BEFORE);qr(t)&&(e=!0),Dr(t)||this.cloneChildNodes(t,n,e),s&&n.insertBefore(s,n.firstChild);var l=this.resolvePseudoContent(t,n,o,Hn.AFTER);return l&&n.appendChild(l),this.counters.pop(a),(r&&(this.options.copyStyles||Ir(t))&&!Mr(t)||e)&&di(r,n),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(jr(t)||Kr(t))&&(jr(n)||Kr(n))&&(n.value=t.value),n}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,A,n){var r=this;if(A){var i=A.content,o=e.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==A.display){this.counters.parse(new Cn(this.context,A));var a=new bn(this.context,A),s=o.createElement("html2canvaspseudoelement");di(A,s),a.content.forEach((function(e){if(0===e.type)s.appendChild(o.createTextNode(e.value));else if(22===e.type){var A=o.createElement("img");A.src=e.value,A.style.opacity="1",s.appendChild(A)}else if(18===e.type){if("attr"===e.name){var n=e.values.filter(qt);n.length&&s.appendChild(o.createTextNode(t.getAttribute(n[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(Jt),l=i[0],c=i[1];if(l&&qt(l)){var u=r.counters.getCounterValue(l.value),p=c&&qt(c)?EA.parse(r.context,c.value):3;s.appendChild(o.createTextNode(oi(u,p,!1)))}}else if("counters"===e.name){var h=e.values.filter(Jt),f=(l=h[0],h[1]);if(c=h[2],l&&qt(l)){var d=r.counters.getCounterValues(l.value),g=c&&qt(c)?EA.parse(r.context,c.value):3,m=f&&0===f.type?f.value:"",w=d.map((function(t){return oi(t,g,!1)})).join(m);s.appendChild(o.createTextNode(w))}}}else if(20===e.type)switch(e.value){case"open-quote":s.appendChild(o.createTextNode(gn(a.quotes,r.quoteDepth++,!0)));break;case"close-quote":s.appendChild(o.createTextNode(gn(a.quotes,--r.quoteDepth,!1)));break;default:s.appendChild(o.createTextNode(e.value))}})),s.className=Bi+" "+vi;var l=n===Hn.BEFORE?" "+Bi:" "+vi;return Ir(e)?e.className.baseValue+=l:e.className+=l,s}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(Hn||(Hn={}));var li,ci=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute(ai,"true"),t.body.appendChild(A),A},ui=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},pi=function(t){return Promise.all([].slice.call(t.images,0).map(ui))},hi=function(t){return new Promise((function(e,A){var n=t.contentWindow;if(!n)return A("No window assigned for iframe");var r=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var A=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(A),e(t))}),50)}}))},fi=["all","d","content"],di=function(t,e){for(var A=t.length-1;A>=0;A--){var n=t.item(A);-1===fi.indexOf(n)&&e.style.setProperty(n,t.getPropertyValue(n))}return e},gi=function(t){var e="";return t&&(e+=""),e},mi=function(t,e,A){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},wi=function(t){var e=t[0],A=t[1],n=t[2];e.scrollLeft=A,e.scrollTop=n},Bi="___html2canvas___pseudoelement_before",vi="___html2canvas___pseudoelement_after",yi='{\n content: "" !important;\n display: none !important;\n}',bi=function(t){Ci(t,"."+Bi+":before"+yi+"\n ."+vi+":after"+yi)},Ci=function(t,e){var A=t.ownerDocument;if(A){var n=A.createElement("style");n.textContent=e,t.appendChild(n)}},Fi=function(){function t(){}return t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),xi=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:Ti(t)||Ei(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return n(this,void 0,void 0,(function(){var e,A,n,i,o=this;return r(this,(function(r){switch(r.label){case 0:return e=Fi.isSameOrigin(t),A=!Si(t)&&!0===this._options.useCORS&&Jn.SUPPORT_CORS_IMAGES&&!e,n=!Si(t)&&!e&&!Ti(t)&&"string"==typeof this._options.proxy&&Jn.SUPPORT_CORS_XHR&&!A,e||!1!==this._options.allowTaint||Si(t)||Ti(t)||n||A?(i=t,n?[4,this.proxy(i)]:[3,2]):[2];case 1:i=r.sent(),r.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,(Ii(i)||A)&&(n.crossOrigin="anonymous"),n.src=i,!0===n.complete&&setTimeout((function(){return t(n)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,r.sent()]}}))}))},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var n=t.substring(0,256);return new Promise((function(r,i){var o=Jn.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===o)r(a.response);else{var t=new FileReader;t.addEventListener("load",(function(){return r(t.result)}),!1),t.addEventListener("error",(function(t){return i(t)}),!1),t.readAsDataURL(a.response)}else i("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=i;var s=A.indexOf("?")>-1?"&":"?";if(a.open("GET",""+A+s+"url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&a instanceof XMLHttpRequest&&(a.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return i("Timed out ("+l+"ms) proxying "+n)}}a.send()}))},t}(),Qi=/^data:image\/svg\+xml/i,Ui=/^data:image\/.*;base64,/i,Li=/^data:image\/.*/i,Ei=function(t){return Jn.SUPPORT_SVG_DRAWING||!Ni(t)},Si=function(t){return Li.test(t)},Ii=function(t){return Ui.test(t)},Ti=function(t){return"blob"===t.substr(0,4)},Ni=function(t){return"svg"===t.substr(-3).toLowerCase()||Qi.test(t)},_i=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),Hi=function(t,e,A){return new _i(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},ki=function(){function t(t,e,A,n){this.type=1,this.start=t,this.startControl=e,this.endControl=A,this.end=n}return t.prototype.subdivide=function(e,A){var n=Hi(this.start,this.startControl,e),r=Hi(this.startControl,this.endControl,e),i=Hi(this.endControl,this.end,e),o=Hi(n,r,e),a=Hi(r,i,e),s=Hi(o,a,e);return A?new t(this.start,n,o,s):new t(s,a,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Pi=function(t){return 1===t.type},Di=function(t){var e=t.styles,A=t.bounds,n=re(e.borderTopLeftRadius,A.width,A.height),r=n[0],i=n[1],o=re(e.borderTopRightRadius,A.width,A.height),a=o[0],s=o[1],l=re(e.borderBottomRightRadius,A.width,A.height),c=l[0],u=l[1],p=re(e.borderBottomLeftRadius,A.width,A.height),h=p[0],f=p[1],d=[];d.push((r+a)/A.width),d.push((h+c)/A.width),d.push((i+f)/A.height),d.push((s+u)/A.height);var g=Math.max.apply(Math,d);g>1&&(r/=g,i/=g,a/=g,s/=g,c/=g,u/=g,h/=g,f/=g);var m=A.width-a,w=A.height-u,B=A.width-c,v=A.height-f,y=e.borderTopWidth,b=e.borderRightWidth,C=e.borderBottomWidth,F=e.borderLeftWidth,x=ie(e.paddingTop,t.bounds.width),Q=ie(e.paddingRight,t.bounds.width),U=ie(e.paddingBottom,t.bounds.width),L=ie(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||i>0?Oi(A.left+F/3,A.top+y/3,r-F/3,i-y/3,li.TOP_LEFT):new _i(A.left+F/3,A.top+y/3),this.topRightBorderDoubleOuterBox=r>0||i>0?Oi(A.left+m,A.top+y/3,a-b/3,s-y/3,li.TOP_RIGHT):new _i(A.left+A.width-b/3,A.top+y/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Oi(A.left+B,A.top+w,c-b/3,u-C/3,li.BOTTOM_RIGHT):new _i(A.left+A.width-b/3,A.top+A.height-C/3),this.bottomLeftBorderDoubleOuterBox=h>0||f>0?Oi(A.left+F/3,A.top+v,h-F/3,f-C/3,li.BOTTOM_LEFT):new _i(A.left+F/3,A.top+A.height-C/3),this.topLeftBorderDoubleInnerBox=r>0||i>0?Oi(A.left+2*F/3,A.top+2*y/3,r-2*F/3,i-2*y/3,li.TOP_LEFT):new _i(A.left+2*F/3,A.top+2*y/3),this.topRightBorderDoubleInnerBox=r>0||i>0?Oi(A.left+m,A.top+2*y/3,a-2*b/3,s-2*y/3,li.TOP_RIGHT):new _i(A.left+A.width-2*b/3,A.top+2*y/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Oi(A.left+B,A.top+w,c-2*b/3,u-2*C/3,li.BOTTOM_RIGHT):new _i(A.left+A.width-2*b/3,A.top+A.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=h>0||f>0?Oi(A.left+2*F/3,A.top+v,h-2*F/3,f-2*C/3,li.BOTTOM_LEFT):new _i(A.left+2*F/3,A.top+A.height-2*C/3),this.topLeftBorderStroke=r>0||i>0?Oi(A.left+F/2,A.top+y/2,r-F/2,i-y/2,li.TOP_LEFT):new _i(A.left+F/2,A.top+y/2),this.topRightBorderStroke=r>0||i>0?Oi(A.left+m,A.top+y/2,a-b/2,s-y/2,li.TOP_RIGHT):new _i(A.left+A.width-b/2,A.top+y/2),this.bottomRightBorderStroke=c>0||u>0?Oi(A.left+B,A.top+w,c-b/2,u-C/2,li.BOTTOM_RIGHT):new _i(A.left+A.width-b/2,A.top+A.height-C/2),this.bottomLeftBorderStroke=h>0||f>0?Oi(A.left+F/2,A.top+v,h-F/2,f-C/2,li.BOTTOM_LEFT):new _i(A.left+F/2,A.top+A.height-C/2),this.topLeftBorderBox=r>0||i>0?Oi(A.left,A.top,r,i,li.TOP_LEFT):new _i(A.left,A.top),this.topRightBorderBox=a>0||s>0?Oi(A.left+m,A.top,a,s,li.TOP_RIGHT):new _i(A.left+A.width,A.top),this.bottomRightBorderBox=c>0||u>0?Oi(A.left+B,A.top+w,c,u,li.BOTTOM_RIGHT):new _i(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=h>0||f>0?Oi(A.left,A.top+v,h,f,li.BOTTOM_LEFT):new _i(A.left,A.top+A.height),this.topLeftPaddingBox=r>0||i>0?Oi(A.left+F,A.top+y,Math.max(0,r-F),Math.max(0,i-y),li.TOP_LEFT):new _i(A.left+F,A.top+y),this.topRightPaddingBox=a>0||s>0?Oi(A.left+Math.min(m,A.width-b),A.top+y,m>A.width+b?0:Math.max(0,a-b),Math.max(0,s-y),li.TOP_RIGHT):new _i(A.left+A.width-b,A.top+y),this.bottomRightPaddingBox=c>0||u>0?Oi(A.left+Math.min(B,A.width-F),A.top+Math.min(w,A.height-C),Math.max(0,c-b),Math.max(0,u-C),li.BOTTOM_RIGHT):new _i(A.left+A.width-b,A.top+A.height-C),this.bottomLeftPaddingBox=h>0||f>0?Oi(A.left+F,A.top+Math.min(v,A.height-C),Math.max(0,h-F),Math.max(0,f-C),li.BOTTOM_LEFT):new _i(A.left+F,A.top+A.height-C),this.topLeftContentBox=r>0||i>0?Oi(A.left+F+L,A.top+y+x,Math.max(0,r-(F+L)),Math.max(0,i-(y+x)),li.TOP_LEFT):new _i(A.left+F+L,A.top+y+x),this.topRightContentBox=a>0||s>0?Oi(A.left+Math.min(m,A.width+F+L),A.top+y+x,m>A.width+F+L?0:a-F+L,s-(y+x),li.TOP_RIGHT):new _i(A.left+A.width-(b+Q),A.top+y+x),this.bottomRightContentBox=c>0||u>0?Oi(A.left+Math.min(B,A.width-(F+L)),A.top+Math.min(w,A.height+y+x),Math.max(0,c-(b+Q)),u-(C+U),li.BOTTOM_RIGHT):new _i(A.left+A.width-(b+Q),A.top+A.height-(C+U)),this.bottomLeftContentBox=h>0||f>0?Oi(A.left+F+L,A.top+v,Math.max(0,h-(F+L)),f-(C+U),li.BOTTOM_LEFT):new _i(A.left+F+L,A.top+A.height-(C+U))};!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(li||(li={}));var Oi=function(t,e,A,n,r){var i=(Math.sqrt(2)-1)/3*4,o=A*i,a=n*i,s=t+A,l=e+n;switch(r){case li.TOP_LEFT:return new ki(new _i(t,l),new _i(t,l-a),new _i(s-o,e),new _i(s,e));case li.TOP_RIGHT:return new ki(new _i(t,e),new _i(t+o,e),new _i(s,l-a),new _i(s,l));case li.BOTTOM_RIGHT:return new ki(new _i(s,e),new _i(s,e+a),new _i(t+o,l),new _i(t,l));case li.BOTTOM_LEFT:default:return new ki(new _i(s,l),new _i(s-o,l),new _i(t,e+a),new _i(t,e))}},Mi=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Ri=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},ji=function(t,e,A){this.offsetX=t,this.offsetY=e,this.matrix=A,this.type=0,this.target=6},Ki=function(t,e){this.path=t,this.target=e,this.type=1},Gi=function(t){this.opacity=t,this.type=2,this.target=6},qi=function(t){return 1===t.type},Vi=function(t,e){return t.length===e.length&&t.some((function(t,A){return t===e[A]}))},zi=function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Wi=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Di(this.container),this.container.styles.opacity<1&&this.effects.push(new Gi(this.container.styles.opacity)),null!==this.container.styles.transform){var A=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new ji(A,n,r))}if(0!==this.container.styles.overflowX){var i=Mi(this.curves),o=Ri(this.curves);Vi(i,o)?this.effects.push(new Ki(i,6)):(this.effects.push(new Ki(i,2)),this.effects.push(new Ki(o,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[2,3].indexOf(this.container.styles.position),A=this.parent,n=this.effects.slice(0);A;){var r=A.effects.filter((function(t){return!qi(t)}));if(e||0!==A.container.styles.position||!A.parent){if(n.unshift.apply(n,r),e=-1===[2,3].indexOf(A.container.styles.position),0!==A.container.styles.overflowX){var i=Mi(A.curves),o=Ri(A.curves);Vi(i,o)||n.unshift(new Ki(o,6))}}else n.unshift.apply(n,r);A=A.parent}return n.filter((function(e){return cn(e.target,t)}))},t}(),Ji=function(t,e,A,n){t.container.elements.forEach((function(r){var i=cn(r.flags,4),o=cn(r.flags,2),a=new Wi(r,t);cn(r.styles.display,2048)&&n.push(a);var s=cn(r.flags,8)?[]:n;if(i||o){var l=i||r.styles.isPositioned()?A:e,c=new zi(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var p=0;l.negativeZIndex.some((function(t,e){return u>t.element.container.styles.zIndex.order?(p=e,!1):p>0})),l.negativeZIndex.splice(p,0,c)}else if(u>0){var h=0;l.positiveZIndex.some((function(t,e){return u>=t.element.container.styles.zIndex.order?(h=e+1,!1):h>0})),l.positiveZIndex.splice(h,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Ji(a,c,i?c:A,s)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Ji(a,e,A,s);cn(r.flags,8)&&Xi(r,s)}))},Xi=function(t,e){for(var A=t instanceof ur?t.start:1,n=t instanceof ur&&t.reversed,r=0;r0&&t.intrinsicHeight>0){var n=eo(t),r=Ri(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,t.intrinsicWidth,t.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return n(this,void 0,void 0,(function(){var e,n,i,a,s,l,c,u,p,h,f,d,g,m,w,B,v,y;return r(this,(function(r){switch(r.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,n=t.curves,i=e.styles,a=0,s=e.textNodes,r.label=1;case 1:return a0&&F>0&&(w=n.ctx.createPattern(d,"repeat"),n.renderRepeat(v,w,Q,U))):function(t){return 2===t.type}(A)&&(B=Ao(t,e,[null,null,null]),v=B[0],y=B[1],b=B[2],C=B[3],F=B[4],x=0===A.position.length?[Ae]:A.position,Q=ie(x[0],C),U=ie(x[x.length-1],F),L=function(t,e,A,n,r){var i=0,o=0;switch(t.size){case 0:0===t.shape?i=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):1===t.shape&&(i=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(A),Math.abs(A-r)));break;case 2:if(0===t.shape)i=o=Math.min(Le(e,A),Le(e,A-r),Le(e-n,A),Le(e-n,A-r));else if(1===t.shape){var a=Math.min(Math.abs(A),Math.abs(A-r))/Math.min(Math.abs(e),Math.abs(e-n)),s=Ee(n,r,e,A,!0),l=s[0],c=s[1];o=a*(i=Le(l-e,(c-A)/a))}break;case 1:0===t.shape?i=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):1===t.shape&&(i=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(A),Math.abs(A-r)));break;case 3:if(0===t.shape)i=o=Math.max(Le(e,A),Le(e,A-r),Le(e-n,A),Le(e-n,A-r));else if(1===t.shape){a=Math.max(Math.abs(A),Math.abs(A-r))/Math.max(Math.abs(e),Math.abs(e-n));var u=Ee(n,r,e,A,!1);l=u[0],c=u[1],o=a*(i=Le(l-e,(c-A)/a))}}return Array.isArray(t.size)&&(i=ie(t.size[0],n),o=2===t.size.length?ie(t.size[1],r):i),[i,o]}(A,Q,U,C,F),E=L[0],S=L[1],E>0&&S>0&&(I=n.ctx.createRadialGradient(y+Q,b+U,0,y+Q,b+U,E),Qe(A.stops,2*E).forEach((function(t){return I.addColorStop(t.stop,fe(t.color))})),n.path(v),n.ctx.fillStyle=I,E!==S?(T=t.bounds.left+.5*t.bounds.width,N=t.bounds.top+.5*t.bounds.height,H=1/(_=S/E),n.ctx.save(),n.ctx.translate(T,N),n.ctx.transform(1,0,0,_,0,0),n.ctx.translate(-T,-N),n.ctx.fillRect(y,H*(b-N)+N,C,F*H),n.ctx.restore()):n.ctx.fill())),r.label=6;case 6:return e--,[2]}}))},n=this,i=0,o=t.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return i0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]:[3,13];case 4:return r.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return r.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return r.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:r.sent(),r.label=11;case 11:o++,r.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},A.prototype.renderDashedDottedBorder=function(t,e,A,i,o){return n(this,void 0,void 0,(function(){var n,a,s,l,c,u,p,h,f,d,g,m,w,B,v,y;return r(this,(function(r){return this.ctx.save(),n=function(t,e){switch(e){case 0:return $i(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return $i(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return $i(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return $i(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}}(i,A),a=Yi(i,A),2===o&&(this.path(a),this.ctx.clip()),Pi(a[0])?(s=a[0].start.x,l=a[0].start.y):(s=a[0].x,l=a[0].y),Pi(a[1])?(c=a[1].end.x,u=a[1].end.y):(c=a[1].x,u=a[1].y),p=0===A||2===A?Math.abs(s-c):Math.abs(l-u),this.ctx.beginPath(),3===o?this.formatPath(n):this.formatPath(a.slice(0,2)),h=e<3?3*e:2*e,f=e<3?2*e:e,3===o&&(h=e,f=e),d=!0,p<=2*h?d=!1:p<=2*h+f?(h*=g=p/(2*h+f),f*=g):(m=Math.floor((p+f)/(h+f)),w=(p-m*h)/(m-1),f=(B=(p-(m+1)*h)/m)<=0||Math.abs(f-w){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},580:t=>{"use strict";var e=/["'&<>]/;t.exports=function(t){var A,n=""+t,r=e.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o{var n=A(281),r=0,i=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++r+i,36)}},779:(t,e,A)=>{"use strict";A(7136);var n=A(3091),r=A(7485),i=A(54),o=A(2074),a=A(1602),s=A(7712),l=a("species"),c=RegExp.prototype;t.exports=function(t,e,A,u){var p=a(t),h=!o((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),f=h&&!o((function(){var e=!1,A=/a/;return"split"===t&&((A={}).constructor={},A.constructor[l]=function(){return A},A.flags="",A[p]=/./[p]),A.exec=function(){return e=!0,null},A[p](""),!e}));if(!h||!f||A){var d=n(/./[p]),g=e(p,""[t],(function(t,e,A,r,o){var a=n(t),s=e.exec;return s===i||s===c.exec?h&&!o?{done:!0,value:d(e,A,r)}:{done:!0,value:a(A,e,r)}:{done:!1}}));r(String.prototype,t,g[0]),r(c,p,g[1])}u&&s(c[p],"sham",!0)}},874:(t,e,A)=>{var n=A(2368),r=A(5335),i=A(2328),o=A(6457),a=A(9751),s=A(1602),l=TypeError,c=s("toPrimitive");t.exports=function(t,e){if(!r(t)||i(t))return t;var A,s=o(t,c);if(s){if(void 0===e&&(e="default"),A=n(s,t,e),!r(A)||i(A))return A;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},1036:(t,e,A)=>{var n=A(2074),r=A(200).RegExp;t.exports=n((function(){var t=r(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},1113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},1229:(t,e,A)=>{var n=A(8406),r=TypeError;t.exports=function(t){if(n(t))throw r("Can't call method on "+t);return t}},1556:(t,e,A)=>{"use strict";A(9498),A(9595),A(2933),A(6664),A(5458),A(4692)},1601:t=>{"use strict";t.exports=function(t){return t[1]}},1602:(t,e,A)=>{var n=A(200),r=A(2),i=A(6490),o=A(665),a=A(2072),s=A(5225),l=n.Symbol,c=r("wks"),u=s?l.for||l:l&&l.withoutSetter||o;t.exports=function(t){return i(c,t)||(c[t]=a&&i(l,t)?l[t]:u("Symbol."+t)),c[t]}},1605:(t,e,A)=>{var n=A(200),r=A(7632).f,i=A(7712),o=A(7485),a=A(9430),s=A(4361),l=A(4977);t.exports=function(t,e){var A,c,u,p,h,f=t.target,d=t.global,g=t.stat;if(A=d?n:g?n[f]||a(f,{}):(n[f]||{}).prototype)for(c in e){if(p=e[c],u=t.dontCallGetSet?(h=r(A,c))&&h.value:A[c],!l(d?c:f+(g?".":"#")+c,t.forced)&&void 0!==u){if(typeof p==typeof u)continue;s(p,u)}(t.sham||u&&u.sham)&&i(p,"sham",!0),o(A,c,p,t)}}},1641:(t,e,A)=>{var n=A(6347),r=A(290);t.exports=Object.keys||function(t){return n(t,r)}},1688:(t,e,A)=>{"use strict";var n=A(5077),r=A(281),i=A(2368),o=A(2074),a=A(1641),s=A(8916),l=A(9304),c=A(2612),u=A(8664),p=Object.assign,h=Object.defineProperty,f=r([].concat);t.exports=!p||o((function(){if(n&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},A=Symbol(),r="abcdefghijklmnopqrst";return t[A]=7,r.split("").forEach((function(t){e[t]=t})),7!=p({},t)[A]||a(p({},e)).join("")!=r}))?function(t,e){for(var A=c(t),r=arguments.length,o=1,p=s.f,h=l.f;r>o;)for(var d,g=u(arguments[o++]),m=p?f(a(g),p(g)):a(g),w=m.length,B=0;w>B;)d=m[B++],n&&!i(h,g,d)||(A[d]=g[d]);return A}:p},2071:(t,e,A)=>{var n=A(5077),r=A(6490),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=r(i,"name"),s=a&&"something"===function(){}.name,l=a&&(!n||n&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:s,CONFIGURABLE:l}},2072:(t,e,A)=>{var n=A(6845),r=A(2074);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2074:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},2192:(t,e,A)=>{var n=A(2074),r=A(200).RegExp,i=n((function(){var t=r("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),o=i||n((function(){return!r("a","y").sticky})),a=i||n((function(){var t=r("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:o,UNSUPPORTED_Y:i}},2284:(t,e,A)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}A.d(e,{A:()=>n})},2328:(t,e,A)=>{var n=A(6492),r=A(8420),i=A(7658),o=A(5225),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&i(e.prototype,a(t))}},2349:(t,e,A)=>{"use strict";var n=A(2074);t.exports=function(t,e){var A=[][t];return!!A&&n((function(){A.call(null,e||function(){return 1},1)}))}},2368:(t,e,A)=>{var n=A(8823),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},2612:(t,e,A)=>{var n=A(1229),r=Object;t.exports=function(t){return r(n(t))}},2838:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,A){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,A)}function A(t,n,r){return A=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,A,n){var r=[null];r.push.apply(r,A);var i=new(Function.bind.apply(t,r));return n&&e(i,n.prototype),i},A.apply(null,arguments)}function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var A=Object.prototype.toString.call(t).slice(8,-1);return"Object"===A&&t.constructor&&(A=t.constructor.name),"Map"===A||"Set"===A?Array.from(t):"Arguments"===A||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var A=0,n=new Array(e);A1?A-1:0),r=1;r/gm),q=u(/\${[\w\W]*}/gm),V=u(/^data-[\-\w.\u00B7-\uFFFF]/),z=u(/^aria-[\-\w]+$/),W=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=u(/^(?:\w+script|data):/i),X=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=u(/^html$/i),$=function(){return"undefined"==typeof window?null:window};return function e(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$(),r=function(t){return e(t)};if(r.version="2.4.4",r.removed=[],!A||!A.document||9!==A.document.nodeType)return r.isSupported=!1,r;var i=A.document,o=A.document,a=A.DocumentFragment,s=A.HTMLTemplateElement,l=A.Node,u=A.Element,p=A.NodeFilter,h=A.NamedNodeMap,f=void 0===h?A.NamedNodeMap||A.MozNamedAttrMap:h,d=A.HTMLFormElement,g=A.DOMParser,L=A.trustedTypes,Z=u.prototype,tt=I(Z,"cloneNode"),et=I(Z,"nextSibling"),At=I(Z,"childNodes"),nt=I(Z,"parentNode");if("function"==typeof s){var rt=o.createElement("template");rt.content&&rt.content.ownerDocument&&(o=rt.content.ownerDocument)}var it=function(e,A){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";A.currentScript&&A.currentScript.hasAttribute(r)&&(n=A.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(L,i),ot=it?it.createHTML(""):"",at=o,st=at.implementation,lt=at.createNodeIterator,ct=at.createDocumentFragment,ut=at.getElementsByTagName,pt=i.importNode,ht={};try{ht=S(o).documentMode?o.documentMode:{}}catch(t){}var ft={};r.isSupported="function"==typeof nt&&st&&void 0!==st.createHTMLDocument&&9!==ht;var dt,gt,mt=K,wt=G,Bt=q,vt=V,yt=z,bt=J,Ct=X,Ft=W,xt=null,Qt=E({},[].concat(n(T),n(N),n(_),n(k),n(D))),Ut=null,Lt=E({},[].concat(n(O),n(M),n(R),n(j))),Et=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),St=null,It=null,Tt=!0,Nt=!0,_t=!1,Ht=!0,kt=!1,Pt=!1,Dt=!1,Ot=!1,Mt=!1,Rt=!1,jt=!1,Kt=!0,Gt=!1,qt=!0,Vt=!1,zt={},Wt=null,Jt=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xt=null,Yt=E({},["audio","video","img","source","image","track"]),$t=null,Zt=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml",ne=Ae,re=!1,ie=null,oe=E({},[te,ee,Ae],y),ae=["application/xhtml+xml","text/html"],se=null,le=o.createElement("form"),ce=function(t){return t instanceof RegExp||t instanceof Function},ue=function(e){se&&se===e||(e&&"object"===t(e)||(e={}),e=S(e),dt=dt=-1===ae.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,gt="application/xhtml+xml"===dt?y:v,xt="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS,gt):Qt,Ut="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR,gt):Lt,ie="ALLOWED_NAMESPACES"in e?E({},e.ALLOWED_NAMESPACES,y):oe,$t="ADD_URI_SAFE_ATTR"in e?E(S(Zt),e.ADD_URI_SAFE_ATTR,gt):Zt,Xt="ADD_DATA_URI_TAGS"in e?E(S(Yt),e.ADD_DATA_URI_TAGS,gt):Yt,Wt="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS,gt):Jt,St="FORBID_TAGS"in e?E({},e.FORBID_TAGS,gt):{},It="FORBID_ATTR"in e?E({},e.FORBID_ATTR,gt):{},zt="USE_PROFILES"in e&&e.USE_PROFILES,Tt=!1!==e.ALLOW_ARIA_ATTR,Nt=!1!==e.ALLOW_DATA_ATTR,_t=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ht=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,kt=e.SAFE_FOR_TEMPLATES||!1,Pt=e.WHOLE_DOCUMENT||!1,Mt=e.RETURN_DOM||!1,Rt=e.RETURN_DOM_FRAGMENT||!1,jt=e.RETURN_TRUSTED_TYPE||!1,Ot=e.FORCE_BODY||!1,Kt=!1!==e.SANITIZE_DOM,Gt=e.SANITIZE_NAMED_PROPS||!1,qt=!1!==e.KEEP_CONTENT,Vt=e.IN_PLACE||!1,Ft=e.ALLOWED_URI_REGEXP||Ft,ne=e.NAMESPACE||Ae,e.CUSTOM_ELEMENT_HANDLING&&ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),kt&&(Nt=!1),Rt&&(Mt=!0),zt&&(xt=E({},n(D)),Ut=[],!0===zt.html&&(E(xt,T),E(Ut,O)),!0===zt.svg&&(E(xt,N),E(Ut,M),E(Ut,j)),!0===zt.svgFilters&&(E(xt,_),E(Ut,M),E(Ut,j)),!0===zt.mathMl&&(E(xt,k),E(Ut,R),E(Ut,j))),e.ADD_TAGS&&(xt===Qt&&(xt=S(xt)),E(xt,e.ADD_TAGS,gt)),e.ADD_ATTR&&(Ut===Lt&&(Ut=S(Ut)),E(Ut,e.ADD_ATTR,gt)),e.ADD_URI_SAFE_ATTR&&E($t,e.ADD_URI_SAFE_ATTR,gt),e.FORBID_CONTENTS&&(Wt===Jt&&(Wt=S(Wt)),E(Wt,e.FORBID_CONTENTS,gt)),qt&&(xt["#text"]=!0),Pt&&E(xt,["html","head","body"]),xt.table&&(E(xt,["tbody"]),delete St.tbody),c&&c(e),se=e)},pe=E({},["mi","mo","mn","ms","mtext"]),he=E({},["foreignobject","desc","title","annotation-xml"]),fe=E({},["title","style","font","a","script"]),de=E({},N);E(de,_),E(de,H);var ge=E({},k);E(ge,P);var me=function(t){B(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=ot}catch(e){t.remove()}}},we=function(t,e){try{B(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){B(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Ut[t])if(Mt||Rt)try{me(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Be=function(t){var e,A;if(Ot)t=""+t;else{var n=b(t,/^[\r\n\t ]+/);A=n&&n[0]}"application/xhtml+xml"===dt&&ne===Ae&&(t=''+t+"");var r=it?it.createHTML(t):t;if(ne===Ae)try{e=(new g).parseFromString(r,dt)}catch(t){}if(!e||!e.documentElement){e=st.createDocument(ne,"template",null);try{e.documentElement.innerHTML=re?ot:r}catch(t){}}var i=e.body||e.documentElement;return t&&A&&i.insertBefore(o.createTextNode(A),i.childNodes[0]||null),ne===Ae?ut.call(e,Pt?"html":"body")[0]:Pt?e.documentElement:i},ve=function(t){return lt.call(t.ownerDocument||t,t,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},ye=function(e){return"object"===t(l)?e instanceof l:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},be=function(t,e,A){ft[t]&&m(ft[t],(function(t){t.call(r,e,A,se)}))},Ce=function(t){var e,A;if(be("beforeSanitizeElements",t,null),(A=t)instanceof d&&("string"!=typeof A.nodeName||"string"!=typeof A.textContent||"function"!=typeof A.removeChild||!(A.attributes instanceof f)||"function"!=typeof A.removeAttribute||"function"!=typeof A.setAttribute||"string"!=typeof A.namespaceURI||"function"!=typeof A.insertBefore||"function"!=typeof A.hasChildNodes))return me(t),!0;if(Q(/[\u0080-\uFFFF]/,t.nodeName))return me(t),!0;var n=gt(t.nodeName);if(be("uponSanitizeElement",t,{tagName:n,allowedTags:xt}),t.hasChildNodes()&&!ye(t.firstElementChild)&&(!ye(t.content)||!ye(t.content.firstElementChild))&&Q(/<[/\w]/g,t.innerHTML)&&Q(/<[/\w]/g,t.textContent))return me(t),!0;if("select"===n&&Q(/