(self.webpackChunkchatgot_client_deepsider=self.webpackChunkchatgot_client_deepsider||[]).push([[5323],{75795:function(A,e,t){"use strict";var r=t(70453)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(A){r=null}A.exports=r},30592:function(A,e,t){"use strict";var r=t(30655),n=function(){return!!r};n.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(A){return!0}},A.exports=n},80024:function(A){"use strict";var e={__proto__:null,foo:{}},t=Object;A.exports=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof t)}},64039:function(A,e,t){"use strict";var r="undefined"!=typeof Symbol&&Symbol,n=t(41333);A.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},41333:function(A){"use strict";A.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var A={},e=Symbol("test"),t=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;for(e in A[e]=42,A)return!1;if("function"==typeof Object.keys&&0!==Object.keys(A).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(A).length)return!1;var r=Object.getOwnPropertySymbols(A);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(A,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(A,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},49092:function(A,e,t){"use strict";var r=t(41333);A.exports=function(){return r()&&!!Symbol.toStringTag}},9957:function(A,e,t){"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,B=t(66743);A.exports=B.call(r,n)},20354:function(A,e,t){var r=t(96763);
/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */A.exports=function(){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},A(e,t)};function e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n]);return A},t.apply(this,arguments)};function n(A,e,t,r){function n(A){return A instanceof t?A:new t((function(e){e(A)}))}return new(t||(t=Promise))((function(t,B){function s(A){try{i(r.next(A))}catch(A){B(A)}}function o(A){try{i(r.throw(A))}catch(A){B(A)}}function i(A){A.done?t(A.value):n(A.value).then(s,o)}i((r=r.apply(A,e||[])).next())}))}function B(A,e){var t,r,n,B,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return B={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function o(A){return function(e){return i([A,e])}}function i(B){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,r&&(n=2&B[0]?r.return:B[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,B[1])).done)return n;switch(r=0,n&&(B=[2&B[0],n.value]),B[0]){case 0:case 1:n=B;break;case 4:return s.label++,{value:B[1],done:!1};case 5:s.label++,r=B[1],B=[0];continue;case 7:B=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==B[0]&&2!==B[0])){s=0;continue}if(3===B[0]&&(!n||B[1]>n[0]&&B[1]<n[3])){s.label=B[1];break}if(6===B[0]&&s.label<n[1]){s.label=n[1],n=B;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(B);break}n[2]&&s.ops.pop(),s.trys.pop();continue}B=e.call(A,s)}catch(A){B=[6,A],r=0}finally{t=n=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}}function s(A,e,t){if(t||2===arguments.length)for(var r,n=0,B=e.length;n<B;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return A.concat(r||e)}for(var o=function(){function A(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find((function(A){return 0!==A.width}));return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),i=function(A,e){return o.fromClientRect(A,e.getBoundingClientRect())},c=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new o(0,0,r,n)},a=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=0xd800&&n<=0xdbff&&t<r){var B=A.charCodeAt(t++);0xdc00==(0xfc00&B)?e.push(((0x3ff&n)<<10)+(0x3ff&B)+0x10000):(e.push(n),t--)}else e.push(n)}return e},Q=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,B="";++n<t;){var s=A[n];s<=0xffff?r.push(s):(s-=0x10000,r.push(0xd800+(s>>10),s%0x400+0xdc00)),(n+1===t||r.length>0x4000)&&(B+=String.fromCharCode.apply(String,r),r.length=0)}return B},g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w="undefined"==typeof Uint8Array?[]:new Uint8Array(256),u=0;u<g.length;u++)w[g.charCodeAt(u)]=u;for(var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C="undefined"==typeof Uint8Array?[]:new Uint8Array(256),U=0;U<l.length;U++)C[l.charCodeAt(U)]=U;for(var F=function(A){var e,t,r,n,B,s=0.75*A.length,o=A.length,i=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),a=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<o;e+=4)t=C[A.charCodeAt(e)],r=C[A.charCodeAt(e+1)],n=C[A.charCodeAt(e+2)],B=C[A.charCodeAt(e+3)],a[i++]=t<<2|r>>4,a[i++]=(15&r)<<4|n>>2,a[i++]=(3&n)<<6|63&B;return c},h=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},d=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},f=5,p=11,H=2,E=0x10000>>f,I=(1<<f)-1,y=E+(0x400>>f)+32,m=0x10000>>p,K=(1<<p-f)-1,b=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},v=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},L=function(A,e){var t=F(A),r=Array.isArray(t)?d(t):new Uint32Array(t),n=Array.isArray(t)?h(t):new Uint16Array(t),B=24,s=b(n,B/2,r[4]/2),o=2===r[5]?b(n,(B+r[4])/2):v(r,Math.ceil((B+r[4])/4));return new D(r[0],r[1],r[2],r[3],s,o)},D=function(){function A(A,e,t,r,n,B){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=B}return A.prototype.get=function(A){var e;if(A>=0){if(A<0x0d800||A>0x0dbff&&A<=0x0ffff)return e=((e=this.index[A>>f])<<H)+(A&I),this.data[e];if(A<=0xffff)return e=((e=this.index[E+(A-0xd800>>f)])<<H)+(A&I),this.data[e];if(A<this.highStart)return e=y-m+(A>>p),e=this.index[e],e+=A>>f&K,e=((e=this.index[e])<<H)+(A&I),this.data[e];if(A<=0x10ffff)return this.data[this.highValueIndex]}return this.errorValue},A}(),x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M="undefined"==typeof Uint8Array?[]:new Uint8Array(256),S=0;S<x.length;S++)M[x.charCodeAt(S)]=S;var T=50,O=1,G=2,V=3,k=4,R=5,N=7,P=8,X=9,J=10,Y=11,W=12,Z=13,_=14,j=15,q=16,z=17,$=18,AA=19,eA=20,tA=21,rA=22,nA=23,BA=24,sA=25,oA=26,iA=27,cA=28,aA=29,QA=30,gA=31,wA=32,uA=33,lA=34,CA=35,UA=36,FA=37,hA=38,dA=39,fA=40,pA=41,HA=42,EA=43,IA=[0x2329,0xff08],yA="!",mA="\xd7",KA="\xf7",bA=L(" "),vA=[QA,UA],LA=[O,G,V,R],DA=[J,P],xA=[iA,oA],MA=LA.concat(DA),SA=[hA,dA,fA,lA,CA],TA=[j,Z],OA=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach((function(A,B){var s=bA.get(A);if(s>T?(n.push(!0),s-=T):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[0x2010,0x2013,0x301c,0x30a0].indexOf(A))return r.push(B),t.push(q);if(s===k||s===Y){if(0===B)return r.push(B),t.push(QA);var o=t[B-1];return-1===MA.indexOf(o)?(r.push(r[B-1]),t.push(o)):(r.push(B),t.push(QA))}return r.push(B),s===gA?t.push("strict"===e?tA:FA):s===HA||s===aA?t.push(QA):s===EA?A>=0x20000&&A<=0x2fffd||A>=0x30000&&A<=0x3fffd?t.push(FA):t.push(QA):void t.push(s)})),[r,t,n]},GA=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?-1!==A.indexOf(n):A===n)for(var B=t;B<=r.length;){if((i=r[++B])===e)return!0;if(i!==J)break}if(n===J)for(B=t;B>0;){var s=r[--B];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o=t;o<=r.length;){var i;if((i=r[++o])===e)return!0;if(i!==J)break}if(s!==J)break}return!1},VA=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==J)return r;t--}return 0},kA=function(A,e,t,r,n){if(0===t[r])return mA;var B=r-1;if(Array.isArray(n)&&!0===n[B])return mA;var s=B-1,o=B+1,i=e[B],c=s>=0?e[s]:0,a=e[o];if(i===G&&a===V)return mA;if(-1!==LA.indexOf(i))return yA;if(-1!==LA.indexOf(a))return mA;if(-1!==DA.indexOf(a))return mA;if(VA(B,e)===P)return KA;if(bA.get(A[B])===Y)return mA;if((i===wA||i===uA)&&bA.get(A[o])===Y)return mA;if(i===N||a===N)return mA;if(i===X)return mA;if(-1===[J,Z,j].indexOf(i)&&a===X)return mA;if(-1!==[z,$,AA,BA,cA].indexOf(a))return mA;if(VA(B,e)===rA)return mA;if(GA(nA,rA,B,e))return mA;if(GA([z,$],tA,B,e))return mA;if(GA(W,W,B,e))return mA;if(i===J)return KA;if(i===nA||a===nA)return mA;if(a===q||i===q)return KA;if(-1!==[Z,j,tA].indexOf(a)||i===_)return mA;if(c===UA&&-1!==TA.indexOf(i))return mA;if(i===cA&&a===UA)return mA;if(a===eA)return mA;if(-1!==vA.indexOf(a)&&i===sA||-1!==vA.indexOf(i)&&a===sA)return mA;if(i===iA&&-1!==[FA,wA,uA].indexOf(a)||-1!==[FA,wA,uA].indexOf(i)&&a===oA)return mA;if(-1!==vA.indexOf(i)&&-1!==xA.indexOf(a)||-1!==xA.indexOf(i)&&-1!==vA.indexOf(a))return mA;if(-1!==[iA,oA].indexOf(i)&&(a===sA||-1!==[rA,j].indexOf(a)&&e[o+1]===sA)||-1!==[rA,j].indexOf(i)&&a===sA||i===sA&&-1!==[sA,cA,BA].indexOf(a))return mA;if(-1!==[sA,cA,BA,z,$].indexOf(a))for(var Q=B;Q>=0;){if((g=e[Q])===sA)return mA;if(-1===[cA,BA].indexOf(g))break;Q--}if(-1!==[iA,oA].indexOf(a))for(Q=-1!==[z,$].indexOf(i)?s:B;Q>=0;){var g;if((g=e[Q])===sA)return mA;if(-1===[cA,BA].indexOf(g))break;Q--}if(hA===i&&-1!==[hA,dA,lA,CA].indexOf(a)||-1!==[dA,lA].indexOf(i)&&-1!==[dA,fA].indexOf(a)||-1!==[fA,CA].indexOf(i)&&a===fA)return mA;if(-1!==SA.indexOf(i)&&-1!==[eA,oA].indexOf(a)||-1!==SA.indexOf(a)&&i===iA)return mA;if(-1!==vA.indexOf(i)&&-1!==vA.indexOf(a))return mA;if(i===BA&&-1!==vA.indexOf(a))return mA;if(-1!==vA.concat(sA).indexOf(i)&&a===rA&&-1===IA.indexOf(A[o])||-1!==vA.concat(sA).indexOf(a)&&i===$)return mA;if(i===pA&&a===pA){for(var w=t[B],u=1;w>0&&e[--w]===pA;)u++;if(u%2!=0)return mA}return i===wA&&a===uA?mA:KA},RA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=OA(A,e.lineBreak),r=t[0],n=t[1],B=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map((function(A){return-1!==[sA,QA,HA].indexOf(A)?FA:A})));var s="keep-all"===e.wordBreak?B.map((function(e,t){return e&&A[t]>=0x4e00&&A[t]<=0x9fff})):void 0;return[r,n,s]},NA=function(){function A(A,e,t,r){this.codePoints=A,this.required=e===yA,this.start=t,this.end=r}return A.prototype.slice=function(){return Q.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),PA=function(A,e){var t=a(A),r=RA(t,e),n=r[0],B=r[1],s=r[2],o=t.length,i=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var A=mA;c<o&&(A=kA(t,B,n,++c,s))===mA;);if(A!==mA||c===o){var e=new NA(t,A,i,c);return i=c,{value:e,done:!1}}return{done:!0,value:null}}}},XA=1,JA=2,YA=4,WA=8,ZA=0x000a,_A=0x002f,jA=0x005c,qA=0x0009,zA=0x0020,$A=0x0022,Ae=0x003d,ee=0x0023,te=0x0024,re=0x0025,ne=0x0027,Be=0x0028,se=0x0029,oe=0x005f,ie=0x002d,ce=0x0021,ae=0x003c,Qe=0x003e,ge=0x0040,we=0x005b,ue=0x005d,le=0x003d,Ce=0x007b,Ue=0x003f,Fe=0x007d,he=0x007c,de=0x007e,fe=0x0080,pe=0xfffd,He=0x002a,Ee=0x002b,Ie=0x002c,ye=0x003a,me=0x003b,Ke=0x002e,be=0x0000,ve=0x0008,Le=0x000b,De=0x000e,xe=0x001f,Me=0x007f,Se=-1,Te=0x0030,Oe=0x0061,Ge=0x0065,Ve=0x0066,ke=0x0075,Re=0x007a,Ne=0x0041,Pe=0x0045,Xe=0x0046,Je=0x0055,Ye=0x005a,We=function(A){return A>=Te&&A<=0x0039},Ze=function(A){return A>=0xd800&&A<=0xdfff},_e=function(A){return We(A)||A>=Ne&&A<=Xe||A>=Oe&&A<=Ve},je=function(A){return A>=Oe&&A<=Re},qe=function(A){return A>=Ne&&A<=Ye},ze=function(A){return je(A)||qe(A)},$e=function(A){return A>=fe},At=function(A){return A===ZA||A===qA||A===zA},et=function(A){return ze(A)||$e(A)||A===oe},tt=function(A){return et(A)||We(A)||A===ie},rt=function(A){return A>=be&&A<=ve||A===Le||A>=De&&A<=xe||A===Me},nt=function(A,e){return A===jA&&e!==ZA},Bt=function(A,e,t){return A===ie?et(e)||nt(e,t):!!et(A)||!(A!==jA||!nt(A,e))},st=function(A,e,t){return A===Ee||A===ie?!!We(e)||e===Ke&&We(t):We(A===Ke?e:A)},ot=function(A){var e=0,t=1;A[e]!==Ee&&A[e]!==ie||(A[e]===ie&&(t=-1),e++);for(var r=[];We(A[e]);)r.push(A[e++]);var n=r.length?parseInt(Q.apply(void 0,r),10):0;A[e]===Ke&&e++;for(var B=[];We(A[e]);)B.push(A[e++]);var s=B.length,o=s?parseInt(Q.apply(void 0,B),10):0;A[e]!==Pe&&A[e]!==Ge||e++;var i=1;A[e]!==Ee&&A[e]!==ie||(A[e]===ie&&(i=-1),e++);for(var c=[];We(A[e]);)c.push(A[e++]);var a=c.length?parseInt(Q.apply(void 0,c),10):0;return t*(n+o*Math.pow(10,-s))*Math.pow(10,i*a)},it={type:2},ct={type:3},at={type:4},Qt={type:13},gt={type:8},wt={type:21},ut={type:9},lt={type:10},Ct={type:11},Ut={type:12},Ft={type:14},ht={type:23},dt={type:1},ft={type:25},pt={type:24},Ht={type:26},Et={type:27},It={type:28},yt={type:29},mt={type:31},Kt={type:32},bt=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(a(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==Kt;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case $A:return this.consumeStringToken($A);case ee:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(tt(e)||nt(t,r)){var n=Bt(e,t,r)?JA:XA;return{type:5,value:this.consumeName(),flags:n}}break;case te:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),Qt;break;case ne:return this.consumeStringToken(ne);case Be:return it;case se:return ct;case He:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),Ft;break;case Ee:if(st(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ie:return at;case ie:var B=A,s=this.peekCodePoint(0),o=this.peekCodePoint(1);if(st(B,s,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Bt(B,s,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===ie&&o===Qe)return this.consumeCodePoint(),this.consumeCodePoint(),pt;break;case Ke:if(st(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case _A:if(this.peekCodePoint(0)===He)for(this.consumeCodePoint();;){var i=this.consumeCodePoint();if(i===He&&(i=this.consumeCodePoint())===_A)return this.consumeToken();if(i===Se)return this.consumeToken()}break;case ye:return Ht;case me:return Et;case ae:if(this.peekCodePoint(0)===ce&&this.peekCodePoint(1)===ie&&this.peekCodePoint(2)===ie)return this.consumeCodePoint(),this.consumeCodePoint(),ft;break;case ge:var c=this.peekCodePoint(0),a=this.peekCodePoint(1),g=this.peekCodePoint(2);if(Bt(c,a,g))return{type:7,value:this.consumeName()};break;case we:return It;case jA:if(nt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case ue:return yt;case le:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),gt;break;case Ce:return Ct;case Fe:return Ut;case ke:case Je:var w=this.peekCodePoint(0),u=this.peekCodePoint(1);return w!==Ee||!_e(u)&&u!==Ue||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case he:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),ut;if(this.peekCodePoint(0)===he)return this.consumeCodePoint(),wt;break;case de:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),lt;break;case Se:return Kt}return At(A)?(this.consumeWhiteSpace(),mt):We(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):et(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:Q(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();_e(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;e===Ue&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(Q.apply(void 0,A.map((function(A){return A===Ue?Te:A}))),16),end:parseInt(Q.apply(void 0,A.map((function(A){return A===Ue?Xe:A}))),16)};var r=parseInt(Q.apply(void 0,A),16);if(this.peekCodePoint(0)===ie&&_e(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var n=[];_e(e)&&n.length<6;)n.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(Q.apply(void 0,n),16)}}return{type:30,start:r,end:r}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===Be?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Be?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Se)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===ne||e===$A){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Se||this.peekCodePoint(0)===se)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),ht)}for(;;){var r=this.consumeCodePoint();if(r===Se||r===se)return{type:22,value:Q.apply(void 0,A)};if(At(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Se||this.peekCodePoint(0)===se?(this.consumeCodePoint(),{type:22,value:Q.apply(void 0,A)}):(this.consumeBadUrlRemnants(),ht);if(r===$A||r===ne||r===Be||rt(r))return this.consumeBadUrlRemnants(),ht;if(r===jA){if(!nt(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ht;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;At(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===se||A===Se)return;nt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e=50000,t="";A>0;){var r=Math.min(e,A);t+=Q.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),t},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r=this._value[t];if(r===Se||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(r===ZA)return this._value.splice(0,t),dt;if(r===jA){var n=this._value[t+1];n!==Se&&void 0!==n&&(n===ZA?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):nt(r,n)&&(e+=this.consumeStringSlice(t),e+=Q(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=YA,t=this.peekCodePoint(0);for(t!==Ee&&t!==ie||A.push(this.consumeCodePoint());We(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(t===Ke&&We(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=WA;We(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((t===Pe||t===Ge)&&((r===Ee||r===ie)&&We(n)||We(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=WA;We(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[ot(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),B=this.peekCodePoint(2);return Bt(r,n,B)?{type:15,number:e,flags:t,unit:this.consumeName()}:r===re?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(_e(A)){for(var e=Q(A);_e(this.peekCodePoint(0))&&e.length<6;)e+=Q(this.consumeCodePoint());At(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||Ze(t)||t>0x10ffff?pe:t}return A===Se?pe:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(tt(e))A+=Q(e);else{if(!nt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=Q(this.consumeEscapedCodePoint())}}},A}(),vt=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new bt;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||Vt(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?Kt:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),Lt=function(A){return 15===A.type},Dt=function(A){return 17===A.type},xt=function(A){return 20===A.type},Mt=function(A){return 0===A.type},St=function(A,e){return xt(A)&&A.value===e},Tt=function(A){return 31!==A.type},Ot=function(A){return 31!==A.type&&4!==A.type},Gt=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e},Vt=function(A,e){return 11===e&&12===A.type||28===e&&29===A.type||2===e&&3===A.type},kt=function(A){return 17===A.type||15===A.type},Rt=function(A){return 16===A.type||kt(A)},Nt=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},Pt={type:17,number:0,flags:YA},Xt={type:16,number:50,flags:YA},Jt={type:16,number:100,flags:YA},Yt=function(A,e,t){var r=A[0],n=A[1];return[Wt(r,e),Wt(void 0!==n?n:r,t)]},Wt=function(A,e){if(16===A.type)return A.number/100*e;if(Lt(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},Zt="deg",_t="grad",jt="rad",qt="turn",zt={name:"angle",parse:function(A,e){if(15===e.type)switch(e.unit){case Zt:return Math.PI*e.number/180;case _t:return Math.PI/200*e.number;case jt:return e.number;case qt:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},$t=function(A){return 15===A.type&&(A.unit===Zt||A.unit===_t||A.unit===jt||A.unit===qt)},Ar=function(A){switch(A.filter(xt).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Pt,Pt];case"to top":case"bottom":return er(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Pt,Jt];case"to right":case"left":return er(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Jt,Jt];case"to bottom":case"top":return er(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Jt,Pt];case"to left":case"right":return er(270)}return 0},er=function(A){return Math.PI*A/180},tr={name:"color",parse:function(A,e){if(18===e.type){var t=ar[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),n=e.value.substring(1,2),B=e.value.substring(2,3);return Br(parseInt(r+r,16),parseInt(n+n,16),parseInt(B+B,16),1)}if(4===e.value.length){r=e.value.substring(0,1),n=e.value.substring(1,2),B=e.value.substring(2,3);var s=e.value.substring(3,4);return Br(parseInt(r+r,16),parseInt(n+n,16),parseInt(B+B,16),parseInt(s+s,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),B=e.value.substring(4,6),Br(parseInt(r,16),parseInt(n,16),parseInt(B,16),1);if(8===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),B=e.value.substring(4,6),s=e.value.substring(6,8),Br(parseInt(r,16),parseInt(n,16),parseInt(B,16),parseInt(s,16)/255)}if(20===e.type){var o=gr[e.value.toUpperCase()];if(void 0!==o)return o}return gr.TRANSPARENT}},rr=function(A){return!(0xff&A)},nr=function(A){var e=0xff&A,t=0xff&A>>8,r=0xff&A>>16,n=0xff&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},Br=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r))>>>0},sr=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},or=function(A,e){var t=e.filter(Ot);if(3===t.length){var r=t.map(sr),n=r[0],B=r[1],s=r[2];return Br(n,B,s,1)}if(4===t.length){var o=t.map(sr),i=(n=o[0],B=o[1],s=o[2],o[3]);return Br(n,B,s,i)}return 0};function ir(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var cr=function(A,e){var t=e.filter(Ot),r=t[0],n=t[1],B=t[2],s=t[3],o=(17===r.type?er(r.number):zt.parse(A,r))/(2*Math.PI),i=Rt(n)?n.number/100:0,c=Rt(B)?B.number/100:0,a=void 0!==s&&Rt(s)?Wt(s,1):1;if(0===i)return Br(255*c,255*c,255*c,1);var Q=c<=0.5?c*(i+1):c+i-c*i,g=2*c-Q,w=ir(g,Q,o+1/3),u=ir(g,Q,o),l=ir(g,Q,o-1/3);return Br(255*w,255*u,255*l,a)},ar={hsl:cr,hsla:cr,rgb:or,rgba:or},Qr=function(A,e){return tr.parse(A,vt.create(e).parseComponentValue())},gr={ALICEBLUE:0xf0f8ffff,ANTIQUEWHITE:0xfaebd7ff,AQUA:0x00ffffff,AQUAMARINE:0x7fffd4ff,AZURE:0xf0ffffff,BEIGE:0xf5f5dcff,BISQUE:0xffe4c4ff,BLACK:0x000000ff,BLANCHEDALMOND:0xffebcdff,BLUE:0x0000ffff,BLUEVIOLET:0x8a2be2ff,BROWN:0xa52a2aff,BURLYWOOD:0xdeb887ff,CADETBLUE:0x5f9ea0ff,CHARTREUSE:0x7fff00ff,CHOCOLATE:0xd2691eff,CORAL:0xff7f50ff,CORNFLOWERBLUE:0x6495edff,CORNSILK:0xfff8dcff,CRIMSON:0xdc143cff,CYAN:0x00ffffff,DARKBLUE:0x00008bff,DARKCYAN:0x008b8bff,DARKGOLDENROD:0xb886bbff,DARKGRAY:0xa9a9a9ff,DARKGREEN:0x006400ff,DARKGREY:0xa9a9a9ff,DARKKHAKI:0xbdb76bff,DARKMAGENTA:0x8b008bff,DARKOLIVEGREEN:0x556b2fff,DARKORANGE:0xff8c00ff,DARKORCHID:0x9932ccff,DARKRED:0x8b0000ff,DARKSALMON:0xe9967aff,DARKSEAGREEN:0x8fbc8fff,DARKSLATEBLUE:0x483d8bff,DARKSLATEGRAY:0x2f4f4fff,DARKSLATEGREY:0x2f4f4fff,DARKTURQUOISE:0x00ced1ff,DARKVIOLET:0x9400d3ff,DEEPPINK:0xff1493ff,DEEPSKYBLUE:0x00bfffff,DIMGRAY:0x696969ff,DIMGREY:0x696969ff,DODGERBLUE:0x1e90ffff,FIREBRICK:0xb22222ff,FLORALWHITE:0xfffaf0ff,FORESTGREEN:0x228b22ff,FUCHSIA:0xff00ffff,GAINSBORO:0xdcdcdcff,GHOSTWHITE:0xf8f8ffff,GOLD:0xffd700ff,GOLDENROD:0xdaa520ff,GRAY:0x808080ff,GREEN:0x008000ff,GREENYELLOW:0xadff2fff,GREY:0x808080ff,HONEYDEW:0xf0fff0ff,HOTPINK:0xff69b4ff,INDIANRED:0xcd5c5cff,INDIGO:0x4b0082ff,IVORY:0xfffff0ff,KHAKI:0xf0e68cff,LAVENDER:0xe6e6faff,LAVENDERBLUSH:0xfff0f5ff,LAWNGREEN:0x7cfc00ff,LEMONCHIFFON:0xfffacdff,LIGHTBLUE:0xadd8e6ff,LIGHTCORAL:0xf08080ff,LIGHTCYAN:0xe0ffffff,LIGHTGOLDENRODYELLOW:0xfafad2ff,LIGHTGRAY:0xd3d3d3ff,LIGHTGREEN:0x90ee90ff,LIGHTGREY:0xd3d3d3ff,LIGHTPINK:0xffb6c1ff,LIGHTSALMON:0xffa07aff,LIGHTSEAGREEN:0x20b2aaff,LIGHTSKYBLUE:0x87cefaff,LIGHTSLATEGRAY:0x778899ff,LIGHTSLATEGREY:0x778899ff,LIGHTSTEELBLUE:0xb0c4deff,LIGHTYELLOW:0xffffe0ff,LIME:0x00ff00ff,LIMEGREEN:0x32cd32ff,LINEN:0xfaf0e6ff,MAGENTA:0xff00ffff,MAROON:0x800000ff,MEDIUMAQUAMARINE:0x66cdaaff,MEDIUMBLUE:0x0000cdff,MEDIUMORCHID:0xba55d3ff,MEDIUMPURPLE:0x9370dbff,MEDIUMSEAGREEN:0x3cb371ff,MEDIUMSLATEBLUE:0x7b68eeff,MEDIUMSPRINGGREEN:0x00fa9aff,MEDIUMTURQUOISE:0x48d1ccff,MEDIUMVIOLETRED:0xc71585ff,MIDNIGHTBLUE:0x191970ff,MINTCREAM:0xf5fffaff,MISTYROSE:0xffe4e1ff,MOCCASIN:0xffe4b5ff,NAVAJOWHITE:0xffdeadff,NAVY:0x000080ff,OLDLACE:0xfdf5e6ff,OLIVE:0x808000ff,OLIVEDRAB:0x6b8e23ff,ORANGE:0xffa500ff,ORANGERED:0xff4500ff,ORCHID:0xda70d6ff,PALEGOLDENROD:0xeee8aaff,PALEGREEN:0x98fb98ff,PALETURQUOISE:0xafeeeeff,PALEVIOLETRED:0xdb7093ff,PAPAYAWHIP:0xffefd5ff,PEACHPUFF:0xffdab9ff,PERU:0xcd853fff,PINK:0xffc0cbff,PLUM:0xdda0ddff,POWDERBLUE:0xb0e0e6ff,PURPLE:0x800080ff,REBECCAPURPLE:0x663399ff,RED:0xff0000ff,ROSYBROWN:0xbc8f8fff,ROYALBLUE:0x4169e1ff,SADDLEBROWN:0x8b4513ff,SALMON:0xfa8072ff,SANDYBROWN:0xf4a460ff,SEAGREEN:0x2e8b57ff,SEASHELL:0xfff5eeff,SIENNA:0xa0522dff,SILVER:0xc0c0c0ff,SKYBLUE:0x87ceebff,SLATEBLUE:0x6a5acdff,SLATEGRAY:0x708090ff,SLATEGREY:0x708090ff,SNOW:0xfffafaff,SPRINGGREEN:0x00ff7fff,STEELBLUE:0x4682b4ff,TAN:0xd2b48cff,TEAL:0x008080ff,THISTLE:0xd8bfd8ff,TOMATO:0xff6347ff,TRANSPARENT:0x00000000,TURQUOISE:0x40e0d0ff,VIOLET:0xee82eeff,WHEAT:0xf5deb3ff,WHITE:0xffffffff,WHITESMOKE:0xf5f5f5ff,YELLOW:0xffff00ff,YELLOWGREEN:0x9acd32ff},wr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(xt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},ur={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lr=function(A,e){var t=tr.parse(A,e[0]),r=e[1];return r&&Rt(r)?{color:t,stop:r}:{color:t,stop:null}},Cr=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=Pt),null===r.stop&&(r.stop=Jt);for(var n=[],B=0,s=0;s<A.length;s++){var o=A[s].stop;if(null!==o){var i=Wt(o,e);i>B?n.push(i):n.push(B),B=i}else n.push(null)}var c=null;for(s=0;s<n.length;s++){var a=n[s];if(null===a)null===c&&(c=s);else if(null!==c){for(var Q=s-c,g=(a-n[c-1])/(Q+1),w=1;w<=Q;w++)n[c+w-1]=g*w;c=null}}return A.map((function(A,t){return{color:A.color,stop:Math.max(Math.min(1,n[t]/e),0)}}))},Ur=function(A,e,t){var r=e/2,n=t/2,B=Wt(A[0],e)-r,s=n-Wt(A[1],t);return(Math.atan2(s,B)+2*Math.PI)%(2*Math.PI)},Fr=function(A,e,t){var r="number"==typeof A?A:Ur(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),B=e/2,s=t/2,o=n/2,i=Math.sin(r-Math.PI/2)*o,c=Math.cos(r-Math.PI/2)*o;return[n,B-c,B+c,s-i,s+i]},hr=function(A,e){return Math.sqrt(A*A+e*e)},dr=function(A,e,t,r,n){return[[0,0],[0,e],[A,0],[A,e]].reduce((function(A,e){var B=e[0],s=e[1],o=hr(t-B,r-s);return(n?o<A.optimumDistance:o>A.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},fr=function(A,e,t,r,n){var B=0,s=0;switch(A.size){case 0:0===A.shape?B=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(B=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(0===A.shape)B=s=Math.min(hr(e,t),hr(e,t-n),hr(e-r,t),hr(e-r,t-n));else if(1===A.shape){var o=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),i=dr(r,n,e,t,!0),c=i[0],a=i[1];s=o*(B=hr(c-e,(a-t)/o))}break;case 1:0===A.shape?B=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(B=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(0===A.shape)B=s=Math.max(hr(e,t),hr(e,t-n),hr(e-r,t),hr(e-r,t-n));else if(1===A.shape){o=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var Q=dr(r,n,e,t,!1);c=Q[0],a=Q[1],s=o*(B=hr(c-e,(a-t)/o))}}return Array.isArray(A.size)&&(B=Wt(A.size[0],r),s=2===A.size.length?Wt(A.size[1],n):B),[B,s]},pr=function(A,e){var t=er(180),r=[];return Gt(e).forEach((function(e,n){if(0===n){var B=e[0];if(20===B.type&&-1!==["top","left","right","bottom"].indexOf(B.value))return void(t=Ar(e));if($t(B))return void(t=(zt.parse(A,B)+er(270))%er(360))}var s=lr(A,e);r.push(s)})),{angle:t,stops:r,type:1}},Hr="closest-side",Er="farthest-side",Ir="closest-corner",yr="farthest-corner",mr="circle",Kr="ellipse",br="cover",vr="contain",Lr=function(A,e){var t=0,r=3,n=[],B=[];return Gt(e).forEach((function(e,s){var o=!0;if(0===s?o=e.reduce((function(A,e){if(xt(e))switch(e.value){case"center":return B.push(Xt),!1;case"top":case"left":return B.push(Pt),!1;case"right":case"bottom":return B.push(Jt),!1}else if(Rt(e)||kt(e))return B.push(e),!1;return A}),o):1===s&&(o=e.reduce((function(A,e){if(xt(e))switch(e.value){case mr:return t=0,!1;case Kr:return t=1,!1;case vr:case Hr:return r=0,!1;case Er:return r=1,!1;case Ir:return r=2,!1;case br:case yr:return r=3,!1}else if(kt(e)||Rt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)),o){var i=lr(A,e);n.push(i)}})),{size:r,shape:t,stops:n,position:B,type:2}},Dr=function(A){return 1===A.type},xr=function(A){return 2===A.type},Mr={name:"image",parse:function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=Or[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function Sr(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Or[A.name])}var Tr,Or={"linear-gradient":function(A,e){var t=er(180),r=[];return Gt(e).forEach((function(e,n){if(0===n){var B=e[0];if(20===B.type&&"to"===B.value)return void(t=Ar(e));if($t(B))return void(t=zt.parse(A,B))}var s=lr(A,e);r.push(s)})),{angle:t,stops:r,type:1}},"-moz-linear-gradient":pr,"-ms-linear-gradient":pr,"-o-linear-gradient":pr,"-webkit-linear-gradient":pr,"radial-gradient":function(A,e){var t=0,r=3,n=[],B=[];return Gt(e).forEach((function(e,s){var o=!0;if(0===s){var i=!1;o=e.reduce((function(A,e){if(i)if(xt(e))switch(e.value){case"center":return B.push(Xt),A;case"top":case"left":return B.push(Pt),A;case"right":case"bottom":return B.push(Jt),A}else(Rt(e)||kt(e))&&B.push(e);else if(xt(e))switch(e.value){case mr:return t=0,!1;case Kr:return t=1,!1;case"at":return i=!0,!1;case Hr:return r=0,!1;case br:case Er:return r=1,!1;case vr:case Ir:return r=2,!1;case yr:return r=3,!1}else if(kt(e)||Rt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)}if(o){var c=lr(A,e);n.push(c)}})),{size:r,shape:t,stops:n,position:B,type:2}},"-moz-radial-gradient":Lr,"-ms-radial-gradient":Lr,"-o-radial-gradient":Lr,"-webkit-radial-gradient":Lr,"-webkit-gradient":function(A,e){var t=er(180),r=[],n=1,B=0,s=3,o=[];return Gt(e).forEach((function(e,t){var B=e[0];if(0===t){if(xt(B)&&"linear"===B.value)return void(n=1);if(xt(B)&&"radial"===B.value)return void(n=2)}if(18===B.type)if("from"===B.name){var s=tr.parse(A,B.values[0]);r.push({stop:Pt,color:s})}else if("to"===B.name)s=tr.parse(A,B.values[0]),r.push({stop:Jt,color:s});else if("color-stop"===B.name){var o=B.values.filter(Ot);if(2===o.length){s=tr.parse(A,o[1]);var i=o[0];Dt(i)&&r.push({stop:{type:16,number:100*i.number,flags:i.flags},color:s})}}})),1===n?{angle:(t+er(180))%er(360),stops:r,type:n}:{size:s,shape:B,stops:r,position:o,type:n}}},Gr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return Ot(A)&&Sr(A)})).map((function(e){return Mr.parse(A,e)}))}},Vr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(xt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},kr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Gt(e).map((function(A){return A.filter(Rt)})).map(Nt)}},Rr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Gt(e).map((function(A){return A.filter(xt).map((function(A){return A.value})).join(" ")})).map(Nr)}},Nr=function(A){switch(A){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(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(Tr||(Tr={}));var Pr,Xr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return Gt(e).map((function(A){return A.filter(Jr)}))}},Jr=function(A){return xt(A)||Rt(A)},Yr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Wr=Yr("top"),Zr=Yr("right"),_r=Yr("bottom"),jr=Yr("left"),qr=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Nt(e.filter(Rt))}}},zr=qr("top-left"),$r=qr("top-right"),An=qr("bottom-right"),en=qr("bottom-left"),tn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},rn=tn("top"),nn=tn("right"),Bn=tn("bottom"),sn=tn("left"),on=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Lt(e)?e.number:0}}},cn=on("top"),an=on("right"),Qn=on("bottom"),gn=on("left"),wn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},un={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}},ln={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(xt).reduce((function(A,e){return A|Cn(e.value)}),0)}},Cn=function(A){switch(A){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},Un={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Fn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Pr||(Pr={}));var hn,dn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?Pr.STRICT:Pr.NORMAL}},fn={name:"line-height",initialValue:"normal",prefix:!1,type:4},pn=function(A,e){return xt(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:Rt(A)?Wt(A,e):e},Hn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Mr.parse(A,e)}},En={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}},In={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,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}}},yn=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},mn=yn("top"),Kn=yn("right"),bn=yn("bottom"),vn=yn("left"),Ln={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(xt).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Dn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}},xn=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Mn=xn("top"),Sn=xn("right"),Tn=xn("bottom"),On=xn("left"),Gn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Vn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},kn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&St(e[0],"none")?[]:Gt(e).map((function(e){for(var t={color:gr.TRANSPARENT,offsetX:Pt,offsetY:Pt,blur:Pt},r=0,n=0;n<e.length;n++){var B=e[n];kt(B)?(0===r?t.offsetX=B:1===r?t.offsetY=B:t.blur=B,r++):t.color=tr.parse(A,B)}return t}))}},Rn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Nn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var t=Pn[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},Pn={matrix:function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===e.length?e:null},matrix3d:function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number})),t=e[0],r=e[1];e[2],e[3];var n=e[4],B=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],16===e.length?[t,r,n,B,s,o]:null}},Xn={type:16,number:50,flags:YA},Jn=[Xn,Xn],Yn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(Rt);return 2!==t.length?Jn:[t[0],t[1]]}},Wn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"}(hn||(hn={}));for(var Zn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return hn.BREAK_ALL;case"keep-all":return hn.KEEP_ALL;default:return hn.NORMAL}}},_n={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(Dt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},jn={name:"time",parse:function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1000*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},qn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Dt(e)?e.number:1}},zn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$n={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(xt).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},AB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach((function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:r.push(t.join(" ")),t.length=0}})),t.length&&r.push(t.join(" ")),r.map((function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"}))}},eB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},tB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return Dt(e)?e.number:xt(e)&&"bold"===e.value?700:400}},rB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(xt).map((function(A){return A.value}))}},nB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},BB=function(A,e){return!!(A&e)},sB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}},oB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var r=[],n=e.filter(Tt),B=0;B<n.length;B++){var s=n[B],o=n[B+1];if(20===s.type){var i=o&&Dt(o)?o.number:1;r.push({counter:s.value,increment:i})}}return r}},iB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],r=e.filter(Tt),n=0;n<r.length;n++){var B=r[n],s=r[n+1];if(xt(B)&&"none"!==B.value){var o=s&&Dt(s)?s.number:0;t.push({counter:B.value,reset:o})}}return t}},cB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(Lt).map((function(e){return jn.parse(A,e)}))}},aB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var r=[],n=e.filter(Mt);if(n.length%2!=0)return null;for(var B=0;B<n.length;B+=2){var s=n[B].value,o=n[B+1].value;r.push({open:s,close:o})}return r}},QB=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},gB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&St(e[0],"none")?[]:Gt(e).map((function(e){for(var t={color:0x000000ff,offsetX:Pt,offsetY:Pt,blur:Pt,spread:Pt,inset:!1},r=0,n=0;n<e.length;n++){var B=e[n];St(B,"inset")?t.inset=!0:kt(B)?(0===r?t.offsetX=B:1===r?t.offsetY=B:2===r?t.blur=B:t.spread=B,r++):t.color=tr.parse(A,B)}return t}))}},wB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[0,1,2],r=[];return e.filter(xt).forEach((function(A){switch(A.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2)}})),t.forEach((function(A){-1===r.indexOf(A)&&r.push(A)})),r}},uB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},lB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Lt(e)?e.number:0}},CB=function(){function A(A,e){var t,r;this.animationDuration=hB(A,cB,e.animationDuration),this.backgroundClip=hB(A,wr,e.backgroundClip),this.backgroundColor=hB(A,ur,e.backgroundColor),this.backgroundImage=hB(A,Gr,e.backgroundImage),this.backgroundOrigin=hB(A,Vr,e.backgroundOrigin),this.backgroundPosition=hB(A,kr,e.backgroundPosition),this.backgroundRepeat=hB(A,Rr,e.backgroundRepeat),this.backgroundSize=hB(A,Xr,e.backgroundSize),this.borderTopColor=hB(A,Wr,e.borderTopColor),this.borderRightColor=hB(A,Zr,e.borderRightColor),this.borderBottomColor=hB(A,_r,e.borderBottomColor),this.borderLeftColor=hB(A,jr,e.borderLeftColor),this.borderTopLeftRadius=hB(A,zr,e.borderTopLeftRadius),this.borderTopRightRadius=hB(A,$r,e.borderTopRightRadius),this.borderBottomRightRadius=hB(A,An,e.borderBottomRightRadius),this.borderBottomLeftRadius=hB(A,en,e.borderBottomLeftRadius),this.borderTopStyle=hB(A,rn,e.borderTopStyle),this.borderRightStyle=hB(A,nn,e.borderRightStyle),this.borderBottomStyle=hB(A,Bn,e.borderBottomStyle),this.borderLeftStyle=hB(A,sn,e.borderLeftStyle),this.borderTopWidth=hB(A,cn,e.borderTopWidth),this.borderRightWidth=hB(A,an,e.borderRightWidth),this.borderBottomWidth=hB(A,Qn,e.borderBottomWidth),this.borderLeftWidth=hB(A,gn,e.borderLeftWidth),this.boxShadow=hB(A,gB,e.boxShadow),this.color=hB(A,wn,e.color),this.direction=hB(A,un,e.direction),this.display=hB(A,ln,e.display),this.float=hB(A,Un,e.cssFloat),this.fontFamily=hB(A,AB,e.fontFamily),this.fontSize=hB(A,eB,e.fontSize),this.fontStyle=hB(A,nB,e.fontStyle),this.fontVariant=hB(A,rB,e.fontVariant),this.fontWeight=hB(A,tB,e.fontWeight),this.letterSpacing=hB(A,Fn,e.letterSpacing),this.lineBreak=hB(A,dn,e.lineBreak),this.lineHeight=hB(A,fn,e.lineHeight),this.listStyleImage=hB(A,Hn,e.listStyleImage),this.listStylePosition=hB(A,En,e.listStylePosition),this.listStyleType=hB(A,In,e.listStyleType),this.marginTop=hB(A,mn,e.marginTop),this.marginRight=hB(A,Kn,e.marginRight),this.marginBottom=hB(A,bn,e.marginBottom),this.marginLeft=hB(A,vn,e.marginLeft),this.opacity=hB(A,qn,e.opacity);var n=hB(A,Ln,e.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=hB(A,Dn,e.overflowWrap),this.paddingTop=hB(A,Mn,e.paddingTop),this.paddingRight=hB(A,Sn,e.paddingRight),this.paddingBottom=hB(A,Tn,e.paddingBottom),this.paddingLeft=hB(A,On,e.paddingLeft),this.paintOrder=hB(A,wB,e.paintOrder),this.position=hB(A,Vn,e.position),this.textAlign=hB(A,Gn,e.textAlign),this.textDecorationColor=hB(A,zn,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=hB(A,$n,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=hB(A,kn,e.textShadow),this.textTransform=hB(A,Rn,e.textTransform),this.transform=hB(A,Nn,e.transform),this.transformOrigin=hB(A,Yn,e.transformOrigin),this.visibility=hB(A,Wn,e.visibility),this.webkitTextStrokeColor=hB(A,uB,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=hB(A,lB,e.webkitTextStrokeWidth),this.wordBreak=hB(A,Zn,e.wordBreak),this.zIndex=hB(A,_n,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return rr(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return BB(this.display,4)||BB(this.display,33554432)||BB(this.display,268435456)||BB(this.display,536870912)||BB(this.display,67108864)||BB(this.display,134217728)},A}(),UB=function(){function A(A,e){this.content=hB(A,sB,e.content),this.quotes=hB(A,aB,e.quotes)}return A}(),FB=function(){function A(A,e){this.counterIncrement=hB(A,oB,e.counterIncrement),this.counterReset=hB(A,iB,e.counterReset)}return A}(),hB=function(A,e,t){var r=new bt,n=null!=t?t.toString():e.initialValue;r.write(n);var B=new vt(r.read());switch(e.type){case 2:var s=B.parseComponentValue();return e.parse(A,xt(s)?s.value:e.initialValue);case 0:return e.parse(A,B.parseComponentValue());case 1:return e.parse(A,B.parseComponentValues());case 4:return B.parseComponentValue();case 3:switch(e.format){case"angle":return zt.parse(A,B.parseComponentValue());case"color":return tr.parse(A,B.parseComponentValue());case"image":return Mr.parse(A,B.parseComponentValue());case"length":var o=B.parseComponentValue();return kt(o)?o:Pt;case"length-percentage":var i=B.parseComponentValue();return Rt(i)?i:Pt;case"time":return jn.parse(A,B.parseComponentValue())}}},dB="data-html2canvas-debug",fB=function(A){switch(A.getAttribute(dB)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},pB=function(A,e){var t=fB(A);return 1===t||e===t},HB=function(){function A(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,pB(e,3),this.styles=new CB(A,window.getComputedStyle(e,null)),ao(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=i(this.context,e),pB(e,4)&&(this.flags|=16)}return A}(),EB=" ",IB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),mB=0;mB<IB.length;mB++)yB[IB.charCodeAt(mB)]=mB;for(var KB=function(A){var e,t,r,n,B,s=0.75*A.length,o=A.length,i=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),a=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<o;e+=4)t=yB[A.charCodeAt(e)],r=yB[A.charCodeAt(e+1)],n=yB[A.charCodeAt(e+2)],B=yB[A.charCodeAt(e+3)],a[i++]=t<<2|r>>4,a[i++]=(15&r)<<4|n>>2,a[i++]=(3&n)<<6|63&B;return c},bB=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},vB=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},LB=5,DB=11,xB=2,MB=0x10000>>LB,SB=(1<<LB)-1,TB=MB+(0x400>>LB)+32,OB=0x10000>>DB,GB=(1<<DB-LB)-1,VB=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},kB=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},RB=function(A,e){var t=KB(A),r=Array.isArray(t)?vB(t):new Uint32Array(t),n=Array.isArray(t)?bB(t):new Uint16Array(t),B=24,s=VB(n,B/2,r[4]/2),o=2===r[5]?VB(n,(B+r[4])/2):kB(r,Math.ceil((B+r[4])/4));return new NB(r[0],r[1],r[2],r[3],s,o)},NB=function(){function A(A,e,t,r,n,B){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=B}return A.prototype.get=function(A){var e;if(A>=0){if(A<0x0d800||A>0x0dbff&&A<=0x0ffff)return e=((e=this.index[A>>LB])<<xB)+(A&SB),this.data[e];if(A<=0xffff)return e=((e=this.index[MB+(A-0xd800>>LB)])<<xB)+(A&SB),this.data[e];if(A<this.highStart)return e=TB-OB+(A>>DB),e=this.index[e],e+=A>>LB&GB,e=((e=this.index[e])<<xB)+(A&SB),this.data[e];if(A<=0x10ffff)return this.data[this.highValueIndex]}return this.errorValue},A}(),PB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",XB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),JB=0;JB<PB.length;JB++)XB[PB.charCodeAt(JB)]=JB;var YB,WB=1,ZB=2,_B=3,jB=4,qB=5,zB=7,$B=8,As=9,es=10,ts=11,rs=12,ns=13,Bs=14,ss=15,os=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=0xd800&&n<=0xdbff&&t<r){var B=A.charCodeAt(t++);0xdc00==(0xfc00&B)?e.push(((0x3ff&n)<<10)+(0x3ff&B)+0x10000):(e.push(n),t--)}else e.push(n)}return e},is=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,B="";++n<t;){var s=A[n];s<=0xffff?r.push(s):(s-=0x10000,r.push(0xd800+(s>>10),s%0x400+0xdc00)),(n+1===t||r.length>0x4000)&&(B+=String.fromCharCode.apply(String,r),r.length=0)}return B},cs=RB(EB),as="\xd7",Qs="\xf7",gs=function(A){return cs.get(A)},ws=function(A,e,t){var r=t-2,n=e[r],B=e[t-1],s=e[t];if(B===ZB&&s===_B)return as;if(B===ZB||B===_B||B===jB)return Qs;if(s===ZB||s===_B||s===jB)return Qs;if(B===$B&&-1!==[$B,As,ts,rs].indexOf(s))return as;if(!(B!==ts&&B!==As||s!==As&&s!==es))return as;if((B===rs||B===es)&&s===es)return as;if(s===ns||s===qB)return as;if(s===zB)return as;if(B===WB)return as;if(B===ns&&s===Bs){for(;n===qB;)n=e[--r];if(n===Bs)return as}if(B===ss&&s===ss){for(var o=0;n===ss;)o++,n=e[--r];if(o%2==0)return as}return Qs},us=function(A){var e=os(A),t=e.length,r=0,n=0,B=e.map(gs);return{next:function(){if(r>=t)return{done:!0,value:null};for(var A=as;r<t&&(A=ws(e,B,++r))===as;);if(A!==as||r===t){var s=is.apply(null,e.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},ls=function(A){for(var e,t=us(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r},Cs=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),B=Math.round(n.height);if(A.body.removeChild(r),B===e)return!0}}return!1},Us=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,n=a(r.data).map((function(A){return Q(A)})),B=0,s={},o=n.every((function(A,e){t.setStart(r,B),t.setEnd(r,B+A.length);var n=t.getBoundingClientRect();B+=A.length;var o=n.x>s.x||n.y>s.y;return s=n,0===e||o}));return A.body.removeChild(e),o},Fs=function(){return void 0!==(new Image).crossOrigin},hs=function(){return"string"==typeof(new XMLHttpRequest).responseType},ds=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0},fs=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},ps=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,B=e.toDataURL();n.src=B;var s=Hs(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Es(s).then((function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var s=A.createElement("div");return s.style.backgroundImage="url("+B+")",s.style.height=t+"px",fs(n)?Es(Hs(t,t,0,0,s)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),fs(r.getImageData(0,0,t,t).data)})).catch((function(){return!1}))},Hs=function(A,e,t,r,n){var B="http://www.w3.org/2000/svg",s=document.createElementNS(B,"svg"),o=document.createElementNS(B,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},Es=function(A){return new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Is={get SUPPORT_RANGE_BOUNDS(){var A=Cs(document);return Object.defineProperty(Is,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=Is.SUPPORT_RANGE_BOUNDS&&Us(document);return Object.defineProperty(Is,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=ds(document);return Object.defineProperty(Is,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?ps(document):Promise.resolve(!1);return Object.defineProperty(Is,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=Fs();return Object.defineProperty(Is,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=hs();return Object.defineProperty(Is,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Is,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Is,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},ys=function(){function A(A,e){this.text=A,this.bounds=e}return A}(),ms=function(A,e,t,r){var n=Ds(e,t),B=[],s=0;return n.forEach((function(e){if(t.textDecorationLine.length||e.trim().length>0)if(Is.SUPPORT_RANGE_BOUNDS){var n=bs(r,s,e.length).getClientRects();if(n.length>1){var i=vs(e),c=0;i.forEach((function(e){B.push(new ys(e,o.fromDOMRectList(A,bs(r,c+s,e.length).getClientRects()))),c+=e.length}))}else B.push(new ys(e,o.fromDOMRectList(A,n)))}else{var a=r.splitText(e.length);B.push(new ys(e,Ks(A,r))),r=a}else Is.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),B},Ks=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var B=i(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),B}}return o.EMPTY},bs=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},vs=function(A){if(Is.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return ls(A)},Ls=function(A,e){if(Is.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return Ms(A,e)},Ds=function(A,e){return 0!==e.letterSpacing?vs(A):Ls(A,e)},xs=[0x0020,0x00a0,0x1361,0x10100,0x10101,0x1039,0x1091],Ms=function(A,e){for(var t,r=PA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),n=[],B=function(){if(t.value){var A=t.value.slice(),e=a(A),r="";e.forEach((function(A){-1===xs.indexOf(A)?r+=Q(A):(r.length&&n.push(r),n.push(Q(A)),r="")})),r.length&&n.push(r)}};!(t=r.next()).done;)B();return n},Ss=function(){function A(A,e,t){this.text=Ts(e.data,t.textTransform),this.textBounds=ms(A,this.text,t,e)}return A}(),Ts=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(Os,Gs);case 2:return A.toUpperCase();default:return A}},Os=/(^|\s|:|-|\(|\))([a-z])/g,Gs=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Vs=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return e(t,A),t}(HB),ks=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return e(t,A),t}(HB),Rs=function(A){function t(e,t){var r=A.call(this,e,t)||this,n=new XMLSerializer,B=i(e,t);return t.setAttribute("width",B.width+"px"),t.setAttribute("height",B.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(t,A),t}(HB),Ns=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(HB),Ps=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return e(t,A),t}(HB),Xs=[{type:15,flags:0,unit:"px",number:3}],Js=[{type:16,flags:0,number:50}],Ys=function(A){return A.width>A.height?new o(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new o(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},Ws=function(A){var e=A.type===js?new Array(A.value.length+1).join("\u2022"):A.value;return 0===e.length?A.placeholder||"":e},Zs="checkbox",_s="radio",js="password",qs=0x2a2a2aff,zs=function(A){function t(e,t){var r=A.call(this,e,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=Ws(t),r.type!==Zs&&r.type!==_s||(r.styles.backgroundColor=0xdededeff,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=0xa5a5a5ff,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=Ys(r.bounds)),r.type){case Zs:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Xs;break;case _s:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Js}return r}return e(t,A),t}(HB),$s=function(A){function t(e,t){var r=A.call(this,e,t)||this,n=t.options[t.selectedIndex||0];return r.value=n&&n.text||"",r}return e(t,A),t}(HB),Ao=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(HB),eo=function(A){function t(e,t){var r=A.call(this,e,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||0,r.height=parseInt(t.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=Bo(e,t.contentWindow.document.documentElement);var n=t.contentWindow.document.documentElement?Qr(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):gr.TRANSPARENT,B=t.contentWindow.document.body?Qr(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):gr.TRANSPARENT;r.backgroundColor=rr(n)?rr(B)?r.styles.backgroundColor:B:n}}catch(A){}return r}return e(t,A),t}(HB),to=["OL","UL","MENU"],ro=function(A,e,t,r){for(var n=e.firstChild,B=void 0;n;n=B)if(B=n.nextSibling,io(n)&&n.data.trim().length>0)t.textNodes.push(new Ss(A,n,t.styles));else if(co(n))if(mo(n)&&n.assignedNodes)n.assignedNodes().forEach((function(e){return ro(A,e,t,r)}));else{var s=no(A,n);s.styles.isVisible()&&(so(n,s,r)?s.flags|=4:oo(s.styles)&&(s.flags|=2),-1!==to.indexOf(n.tagName)&&(s.flags|=8),t.elements.push(s),n.slot,n.shadowRoot?ro(A,n.shadowRoot,s,r):Io(n)||Co(n)||yo(n)||ro(A,n,s,r))}},no=function(A,e){return fo(e)?new Vs(A,e):Fo(e)?new ks(A,e):Co(e)?new Rs(A,e):go(e)?new Ns(A,e):wo(e)?new Ps(A,e):uo(e)?new zs(A,e):yo(e)?new $s(A,e):Io(e)?new Ao(A,e):po(e)?new eo(A,e):new HB(A,e)},Bo=function(A,e){var t=no(A,e);return t.flags|=4,ro(A,e,t,t),t},so=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Uo(A)&&t.styles.isTransparent()},oo=function(A){return A.isPositioned()||A.isFloating()},io=function(A){return A.nodeType===Node.TEXT_NODE},co=function(A){return A.nodeType===Node.ELEMENT_NODE},ao=function(A){return co(A)&&void 0!==A.style&&!Qo(A)},Qo=function(A){return"object"==typeof A.className},go=function(A){return"LI"===A.tagName},wo=function(A){return"OL"===A.tagName},uo=function(A){return"INPUT"===A.tagName},lo=function(A){return"HTML"===A.tagName},Co=function(A){return"svg"===A.tagName},Uo=function(A){return"BODY"===A.tagName},Fo=function(A){return"CANVAS"===A.tagName},ho=function(A){return"VIDEO"===A.tagName},fo=function(A){return"IMG"===A.tagName},po=function(A){return"IFRAME"===A.tagName},Ho=function(A){return"STYLE"===A.tagName},Eo=function(A){return"SCRIPT"===A.tagName},Io=function(A){return"TEXTAREA"===A.tagName},yo=function(A){return"SELECT"===A.tagName},mo=function(A){return"SLOT"===A.tagName},Ko=function(A){return A.tagName.indexOf("-")>0},bo=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,n=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(n=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var B=[];return n&&r.forEach((function(A){var t=e.counters[A.counter];B.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),B},A}(),vo={integers:[1000,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"]},Lo={integers:[9000,8000,7000,6000,5000,4000,3000,2000,1000,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:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Do={integers:[10000,9000,8000,7000,6000,5000,4000,3000,2000,1000,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:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},xo={integers:[10000,9000,8000,7000,6000,5000,4000,3000,2000,1000,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:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},Mo=function(A,e,t,r,n,B){return A<e||A>t?Wo(A,n,B.length>0):r.integers.reduce((function(e,t,n){for(;A>=t;)A-=t,e+=r.values[n];return e}),"")+B},So=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},To=function(A,e,t,r,n){var B=t-e+1;return(A<0?"-":"")+(So(Math.abs(A),B,r,(function(A){return Q(Math.floor(A%B)+e)}))+n)},Oo=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return So(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},Go=1,Vo=2,ko=4,Ro=8,No=function(A,e,t,r,n,B){if(A<-9999||A>9999)return Wo(A,4,n.length>0);var s=Math.abs(A),o=n;if(0===s)return e[0]+o;for(var i=0;s>0&&i<=4;i++){var c=s%10;0===c&&BB(B,Go)&&""!==o?o=e[c]+o:c>1||1===c&&0===i||1===c&&1===i&&BB(B,Vo)||1===c&&1===i&&BB(B,ko)&&A>100||1===c&&i>1&&BB(B,Ro)?o=e[c]+(i>0?t[i-1]:"")+o:1===c&&i>0&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o},Po="\u5341\u767e\u5343\u842c",Xo="\u62fe\u4f70\u4edf\u842c",Jo="\u30de\u30a4\u30ca\u30b9",Yo="\ub9c8\uc774\ub108\uc2a4",Wo=function(A,e,t){var r=t?". ":"",n=t?"\u3001":"",B=t?", ":"",s=t?" ":"";switch(e){case 0:return"\u2022"+s;case 1:return"\u25e6"+s;case 2:return"\u25fe"+s;case 5:var o=To(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return Oo(A,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",n);case 6:return Mo(A,1,3999,vo,3,r).toLowerCase();case 7:return Mo(A,1,3999,vo,3,r);case 8:return To(A,945,969,!1,r);case 9:return To(A,97,122,!1,r);case 10:return To(A,65,90,!1,r);case 11:return To(A,1632,1641,!0,r);case 12:case 49:return Mo(A,1,9999,Lo,3,r);case 35:return Mo(A,1,9999,Lo,3,r).toLowerCase();case 13:return To(A,2534,2543,!0,r);case 14:case 30:return To(A,6112,6121,!0,r);case 15:return Oo(A,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",n);case 16:return Oo(A,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",n);case 17:case 48:return No(A,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",Po,"\u8ca0",n,Vo|ko|Ro);case 47:return No(A,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396",Xo,"\u8ca0",n,Go|Vo|ko|Ro);case 42:return No(A,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",Po,"\u8d1f",n,Vo|ko|Ro);case 41:return No(A,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396",Xo,"\u8d1f",n,Go|Vo|ko|Ro);case 26:return No(A,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07",Jo,n,0);case 25:return No(A,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07",Jo,n,Go|Vo|ko);case 31:return No(A,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",Yo,B,Go|Vo|ko);case 33:return No(A,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",Yo,B,0);case 32:return No(A,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",Yo,B,Go|Vo|ko);case 18:return To(A,0x966,0x96f,!0,r);case 20:return Mo(A,1,19999,xo,3,r);case 21:return To(A,0xae6,0xaef,!0,r);case 22:return To(A,0xa66,0xa6f,!0,r);case 22:return Mo(A,1,10999,Do,3,r);case 23:return Oo(A,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case 24:return Oo(A,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case 27:return To(A,0xce6,0xcef,!0,r);case 28:return Oo(A,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",n);case 29:return Oo(A,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",n);case 34:return To(A,0xed0,0xed9,!0,r);case 37:return To(A,0x1810,0x1819,!0,r);case 38:return To(A,0x1040,0x1049,!0,r);case 39:return To(A,0xb66,0xb6f,!0,r);case 40:return To(A,0x6f0,0x6f9,!0,r);case 43:return To(A,0xbe6,0xbef,!0,r);case 44:return To(A,0xc66,0xc6f,!0,r);case 45:return To(A,0xe50,0xe59,!0,r);case 46:return To(A,0xf20,0xf29,!0,r);default:return To(A,48,57,!0,r)}},Zo="data-html2canvas-ignore",_o=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new bo,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 A.prototype.toIFrame=function(A,e){var t=this,r=qo(A,e);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,o=A.defaultView.pageYOffset,i=r.contentWindow,c=i.document,a=Ai(r).then((function(){return n(t,void 0,void 0,(function(){var A,t;return B(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(Bi),i&&(i.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||i.scrollY===e.top&&i.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-e.left,i.scrollY-e.top,0,0))),A=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,$o(c)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(c,t)})).then((function(){return r}))]:[2,r]}}))}))}));return c.open(),c.write(ri(document.doctype)+"<html></html>"),ni(this.referenceElement.ownerDocument,s,o),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),a},A.prototype.createElementClone=function(A){if(pB(A,2),Fo(A))return this.createCanvasClone(A);if(ho(A))return this.createVideoClone(A);if(Ho(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return fo(e)&&(fo(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Ko(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return ti(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var n=A.getContext("2d"),B=r.getContext("2d");if(B)if(!this.options.allowTaint&&n)B.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var s=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(s){var o=s.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}B.drawImage(A,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){co(e)&&(Eo(e)||e.hasAttribute(Zo)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&co(e)&&Ho(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(co(n)&&mo(n)&&"function"==typeof n.assignedNodes){var B=n.assignedNodes();B.length&&B.forEach((function(A){return r.appendChildNode(e,A,t)}))}else this.appendChildNode(e,n,t)},A.prototype.cloneNode=function(A,e){if(io(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&co(A)&&(ao(A)||Qo(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=t.getComputedStyle(A),B=t.getComputedStyle(A,":before"),s=t.getComputedStyle(A,":after");this.referenceElement===A&&ao(r)&&(this.clonedReferenceElement=r),Uo(r)&&Qi(r);var o=this.counters.parse(new FB(this.context,n)),i=this.resolvePseudoContent(A,r,B,YB.BEFORE);Ko(A)&&(e=!0),ho(A)||this.cloneChildNodes(A,r,e),i&&r.insertBefore(i,r.firstChild);var c=this.resolvePseudoContent(A,r,s,YB.AFTER);return c&&r.appendChild(c),this.counters.pop(o),(n&&(this.options.copyStyles||Qo(A))&&!po(A)||e)&&ti(n,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Io(A)||yo(A))&&(Io(r)||yo(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var B=t.content,s=e.ownerDocument;if(s&&B&&"none"!==B&&"-moz-alt-content"!==B&&"none"!==t.display){this.counters.parse(new FB(this.context,t));var o=new UB(this.context,t),i=s.createElement("html2canvaspseudoelement");ti(t,i),o.content.forEach((function(e){if(0===e.type)i.appendChild(s.createTextNode(e.value));else if(22===e.type){var t=s.createElement("img");t.src=e.value,t.style.opacity="1",i.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(xt);r.length&&i.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var B=e.values.filter(Ot),c=B[0],a=B[1];if(c&&xt(c)){var Q=n.counters.getCounterValue(c.value),g=a&&xt(a)?In.parse(n.context,a.value):3;i.appendChild(s.createTextNode(Wo(Q,g,!1)))}}else if("counters"===e.name){var w=e.values.filter(Ot),u=(c=w[0],w[1]);if(a=w[2],c&&xt(c)){var l=n.counters.getCounterValues(c.value),C=a&&xt(a)?In.parse(n.context,a.value):3,U=u&&0===u.type?u.value:"",F=l.map((function(A){return Wo(A,C,!1)})).join(U);i.appendChild(s.createTextNode(F))}}}else if(20===e.type)switch(e.value){case"open-quote":i.appendChild(s.createTextNode(QB(o.quotes,n.quoteDepth++,!0)));break;case"close-quote":i.appendChild(s.createTextNode(QB(o.quotes,--n.quoteDepth,!1)));break;default:i.appendChild(s.createTextNode(e.value))}})),i.className=ii+" "+ci;var c=r===YB.BEFORE?" "+ii:" "+ci;return Qo(e)?e.className.baseValue+=c:e.className+=c,i}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(YB||(YB={}));var jo,qo=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(Zo,"true"),A.body.appendChild(t),t},zo=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},$o=function(A){return Promise.all([].slice.call(A.images,0).map(zo))},Ai=function(A){return new Promise((function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))}),50)}}))},ei=["all","d","content"],ti=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===ei.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},ri=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},ni=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Bi=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},si=":before",oi=":after",ii="___html2canvas___pseudoelement_before",ci="___html2canvas___pseudoelement_after",ai='{\n    content: "" !important;\n    display: none !important;\n}',Qi=function(A){gi(A,"."+ii+si+ai+"\n         ."+ci+oi+ai)},gi=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},wi=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),ui=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:fi(A)||Fi(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return n(this,void 0,void 0,(function(){var e,t,r,n,s=this;return B(this,(function(B){switch(B.label){case 0:return e=wi.isSameOrigin(A),t=!hi(A)&&!0===this._options.useCORS&&Is.SUPPORT_CORS_IMAGES&&!e,r=!hi(A)&&!e&&!fi(A)&&"string"==typeof this._options.proxy&&Is.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||hi(A)||fi(A)||r||t?(n=A,r?[4,this.proxy(n)]:[3,2]):[2];case 1:n=B.sent(),B.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,(di(n)||t)&&(r.crossOrigin="anonymous"),r.src=n,!0===r.complete&&setTimeout((function(){return A(r)}),500),s._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,B.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(n,B){var s=Is.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===s)n(o.response);else{var A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return B(A)}),!1),A.readAsDataURL(o.response)}else B("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=B;var i=t.indexOf("?")>-1?"&":"?";if(o.open("GET",""+t+i+"url="+encodeURIComponent(A)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var c=e._options.imageTimeout;o.timeout=c,o.ontimeout=function(){return B("Timed out ("+c+"ms) proxying "+r)}}o.send()}))},A}(),li=/^data:image\/svg\+xml/i,Ci=/^data:image\/.*;base64,/i,Ui=/^data:image\/.*/i,Fi=function(A){return Is.SUPPORT_SVG_DRAWING||!pi(A)},hi=function(A){return Ui.test(A)},di=function(A){return Ci.test(A)},fi=function(A){return"blob"===A.substr(0,4)},pi=function(A){return"svg"===A.substr(-3).toLowerCase()||li.test(A)},Hi=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Ei=function(A,e,t){return new Hi(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Ii=function(){function A(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=Ei(this.start,this.startControl,e),n=Ei(this.startControl,this.endControl,e),B=Ei(this.endControl,this.end,e),s=Ei(r,n,e),o=Ei(n,B,e),i=Ei(s,o,e);return t?new A(this.start,r,s,i):new A(i,o,B,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),yi=function(A){return 1===A.type},mi=function(){function A(A){var e=A.styles,t=A.bounds,r=Yt(e.borderTopLeftRadius,t.width,t.height),n=r[0],B=r[1],s=Yt(e.borderTopRightRadius,t.width,t.height),o=s[0],i=s[1],c=Yt(e.borderBottomRightRadius,t.width,t.height),a=c[0],Q=c[1],g=Yt(e.borderBottomLeftRadius,t.width,t.height),w=g[0],u=g[1],l=[];l.push((n+o)/t.width),l.push((w+a)/t.width),l.push((B+u)/t.height),l.push((i+Q)/t.height);var C=Math.max.apply(Math,l);C>1&&(n/=C,B/=C,o/=C,i/=C,a/=C,Q/=C,w/=C,u/=C);var U=t.width-o,F=t.height-Q,h=t.width-a,d=t.height-u,f=e.borderTopWidth,p=e.borderRightWidth,H=e.borderBottomWidth,E=e.borderLeftWidth,I=Wt(e.paddingTop,A.bounds.width),y=Wt(e.paddingRight,A.bounds.width),m=Wt(e.paddingBottom,A.bounds.width),K=Wt(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||B>0?Ki(t.left+E/3,t.top+f/3,n-E/3,B-f/3,jo.TOP_LEFT):new Hi(t.left+E/3,t.top+f/3),this.topRightBorderDoubleOuterBox=n>0||B>0?Ki(t.left+U,t.top+f/3,o-p/3,i-f/3,jo.TOP_RIGHT):new Hi(t.left+t.width-p/3,t.top+f/3),this.bottomRightBorderDoubleOuterBox=a>0||Q>0?Ki(t.left+h,t.top+F,a-p/3,Q-H/3,jo.BOTTOM_RIGHT):new Hi(t.left+t.width-p/3,t.top+t.height-H/3),this.bottomLeftBorderDoubleOuterBox=w>0||u>0?Ki(t.left+E/3,t.top+d,w-E/3,u-H/3,jo.BOTTOM_LEFT):new Hi(t.left+E/3,t.top+t.height-H/3),this.topLeftBorderDoubleInnerBox=n>0||B>0?Ki(t.left+2*E/3,t.top+2*f/3,n-2*E/3,B-2*f/3,jo.TOP_LEFT):new Hi(t.left+2*E/3,t.top+2*f/3),this.topRightBorderDoubleInnerBox=n>0||B>0?Ki(t.left+U,t.top+2*f/3,o-2*p/3,i-2*f/3,jo.TOP_RIGHT):new Hi(t.left+t.width-2*p/3,t.top+2*f/3),this.bottomRightBorderDoubleInnerBox=a>0||Q>0?Ki(t.left+h,t.top+F,a-2*p/3,Q-2*H/3,jo.BOTTOM_RIGHT):new Hi(t.left+t.width-2*p/3,t.top+t.height-2*H/3),this.bottomLeftBorderDoubleInnerBox=w>0||u>0?Ki(t.left+2*E/3,t.top+d,w-2*E/3,u-2*H/3,jo.BOTTOM_LEFT):new Hi(t.left+2*E/3,t.top+t.height-2*H/3),this.topLeftBorderStroke=n>0||B>0?Ki(t.left+E/2,t.top+f/2,n-E/2,B-f/2,jo.TOP_LEFT):new Hi(t.left+E/2,t.top+f/2),this.topRightBorderStroke=n>0||B>0?Ki(t.left+U,t.top+f/2,o-p/2,i-f/2,jo.TOP_RIGHT):new Hi(t.left+t.width-p/2,t.top+f/2),this.bottomRightBorderStroke=a>0||Q>0?Ki(t.left+h,t.top+F,a-p/2,Q-H/2,jo.BOTTOM_RIGHT):new Hi(t.left+t.width-p/2,t.top+t.height-H/2),this.bottomLeftBorderStroke=w>0||u>0?Ki(t.left+E/2,t.top+d,w-E/2,u-H/2,jo.BOTTOM_LEFT):new Hi(t.left+E/2,t.top+t.height-H/2),this.topLeftBorderBox=n>0||B>0?Ki(t.left,t.top,n,B,jo.TOP_LEFT):new Hi(t.left,t.top),this.topRightBorderBox=o>0||i>0?Ki(t.left+U,t.top,o,i,jo.TOP_RIGHT):new Hi(t.left+t.width,t.top),this.bottomRightBorderBox=a>0||Q>0?Ki(t.left+h,t.top+F,a,Q,jo.BOTTOM_RIGHT):new Hi(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=w>0||u>0?Ki(t.left,t.top+d,w,u,jo.BOTTOM_LEFT):new Hi(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||B>0?Ki(t.left+E,t.top+f,Math.max(0,n-E),Math.max(0,B-f),jo.TOP_LEFT):new Hi(t.left+E,t.top+f),this.topRightPaddingBox=o>0||i>0?Ki(t.left+Math.min(U,t.width-p),t.top+f,U>t.width+p?0:Math.max(0,o-p),Math.max(0,i-f),jo.TOP_RIGHT):new Hi(t.left+t.width-p,t.top+f),this.bottomRightPaddingBox=a>0||Q>0?Ki(t.left+Math.min(h,t.width-E),t.top+Math.min(F,t.height-H),Math.max(0,a-p),Math.max(0,Q-H),jo.BOTTOM_RIGHT):new Hi(t.left+t.width-p,t.top+t.height-H),this.bottomLeftPaddingBox=w>0||u>0?Ki(t.left+E,t.top+Math.min(d,t.height-H),Math.max(0,w-E),Math.max(0,u-H),jo.BOTTOM_LEFT):new Hi(t.left+E,t.top+t.height-H),this.topLeftContentBox=n>0||B>0?Ki(t.left+E+K,t.top+f+I,Math.max(0,n-(E+K)),Math.max(0,B-(f+I)),jo.TOP_LEFT):new Hi(t.left+E+K,t.top+f+I),this.topRightContentBox=o>0||i>0?Ki(t.left+Math.min(U,t.width+E+K),t.top+f+I,U>t.width+E+K?0:o-E+K,i-(f+I),jo.TOP_RIGHT):new Hi(t.left+t.width-(p+y),t.top+f+I),this.bottomRightContentBox=a>0||Q>0?Ki(t.left+Math.min(h,t.width-(E+K)),t.top+Math.min(F,t.height+f+I),Math.max(0,a-(p+y)),Q-(H+m),jo.BOTTOM_RIGHT):new Hi(t.left+t.width-(p+y),t.top+t.height-(H+m)),this.bottomLeftContentBox=w>0||u>0?Ki(t.left+E+K,t.top+d,Math.max(0,w-(E+K)),u-(H+m),jo.BOTTOM_LEFT):new Hi(t.left+E+K,t.top+t.height-(H+m))}return A}();!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(jo||(jo={}));var Ki=function(A,e,t,r,n){var B=(Math.sqrt(2)-1)/3*4,s=t*B,o=r*B,i=A+t,c=e+r;switch(n){case jo.TOP_LEFT:return new Ii(new Hi(A,c),new Hi(A,c-o),new Hi(i-s,e),new Hi(i,e));case jo.TOP_RIGHT:return new Ii(new Hi(A,e),new Hi(A+s,e),new Hi(i,c-o),new Hi(i,c));case jo.BOTTOM_RIGHT:return new Ii(new Hi(i,e),new Hi(i,e+o),new Hi(A+s,c),new Hi(A,c));case jo.BOTTOM_LEFT:default:return new Ii(new Hi(i,c),new Hi(i-s,c),new Hi(A,e+o),new Hi(A,e))}},bi=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},vi=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Li=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Di=function(){function A(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}return A}(),xi=function(){function A(A,e){this.path=A,this.target=e,this.type=1}return A}(),Mi=function(){function A(A){this.opacity=A,this.type=2,this.target=6}return A}(),Si=function(A){return 0===A.type},Ti=function(A){return 1===A.type},Oi=function(A){return 2===A.type},Gi=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},Vi=function(A,e,t,r,n){return A.map((function(A,B){switch(B){case 0:return A.add(e,t);case 1:return A.add(e+r,t);case 2:return A.add(e+r,t+n);case 3:return A.add(e,t+n)}return A}))},ki=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),Ri=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new mi(this.container),this.container.styles.opacity<1&&this.effects.push(new Mi(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Di(t,r,n))}if(0!==this.container.styles.overflowX){var B=bi(this.curves),s=Li(this.curves);Gi(B,s)?this.effects.push(new xi(B,6)):(this.effects.push(new xi(B,2)),this.effects.push(new xi(s,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);t;){var n=t.effects.filter((function(A){return!Ti(A)}));if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,n),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var B=bi(t.curves),s=Li(t.curves);Gi(B,s)||r.unshift(new xi(s,6))}}else r.unshift.apply(r,n);t=t.parent}return r.filter((function(e){return BB(e.target,A)}))},A}(),Ni=function(A,e,t,r){A.container.elements.forEach((function(n){var B=BB(n.flags,4),s=BB(n.flags,2),o=new Ri(n,A);BB(n.styles.display,2048)&&r.push(o);var i=BB(n.flags,8)?[]:r;if(B||s){var c=B||n.styles.isPositioned()?t:e,a=new ki(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var Q=n.styles.zIndex.order;if(Q<0){var g=0;c.negativeZIndex.some((function(A,e){return Q>A.element.container.styles.zIndex.order?(g=e,!1):g>0})),c.negativeZIndex.splice(g,0,a)}else if(Q>0){var w=0;c.positiveZIndex.some((function(A,e){return Q>=A.element.container.styles.zIndex.order?(w=e+1,!1):w>0})),c.positiveZIndex.splice(w,0,a)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(a)}else n.styles.isFloating()?c.nonPositionedFloats.push(a):c.nonPositionedInlineLevel.push(a);Ni(o,a,B?a:t,i)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),Ni(o,e,t,i);BB(n.flags,8)&&Pi(n,i)}))},Pi=function(A,e){for(var t=A instanceof Ps?A.start:1,r=A instanceof Ps&&A.reversed,n=0;n<e.length;n++){var B=e[n];B.container instanceof Ns&&"number"==typeof B.container.value&&0!==B.container.value&&(t=B.container.value),B.listValue=Wo(t,B.container.styles.listStyleType,!0),t+=r?-1:1}},Xi=function(A){var e=new Ri(A,null),t=new ki(e),r=[];return Ni(e,t,t,r),Pi(e.container,r),t},Ji=function(A,e){switch(e){case 0:return ji(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return ji(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return ji(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return ji(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Yi=function(A,e){switch(e){case 0:return ji(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return ji(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return ji(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return ji(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},Wi=function(A,e){switch(e){case 0:return ji(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return ji(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return ji(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return ji(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},Zi=function(A,e){switch(e){case 0:return _i(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return _i(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return _i(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return _i(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},_i=function(A,e){var t=[];return yi(A)?t.push(A.subdivide(0.5,!1)):t.push(A),yi(e)?t.push(e.subdivide(0.5,!0)):t.push(e),t},ji=function(A,e,t,r){var n=[];return yi(A)?n.push(A.subdivide(0.5,!1)):n.push(A),yi(t)?n.push(t.subdivide(0.5,!0)):n.push(t),yi(r)?n.push(r.subdivide(0.5,!0).reverse()):n.push(r),yi(e)?n.push(e.subdivide(0.5,!1).reverse()):n.push(e),n},qi=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},zi=function(A){var e=A.styles,t=A.bounds,r=Wt(e.paddingLeft,t.width),n=Wt(e.paddingRight,t.width),B=Wt(e.paddingTop,t.width),s=Wt(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,B+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+B+s))},$i=function(A,e){return 0===A?e.bounds:2===A?zi(e):qi(e)},Ac=function(A,e){return 0===A?e.bounds:2===A?zi(e):qi(e)},ec=function(A,e,t){var r=$i(Bc(A.styles.backgroundOrigin,e),A),n=Ac(Bc(A.styles.backgroundClip,e),A),B=nc(Bc(A.styles.backgroundSize,e),t,r),s=B[0],o=B[1],i=Yt(Bc(A.styles.backgroundPosition,e),r.width-s,r.height-o);return[sc(Bc(A.styles.backgroundRepeat,e),i,B,r,n),Math.round(r.left+i[0]),Math.round(r.top+i[1]),s,o]},tc=function(A){return xt(A)&&A.value===Tr.AUTO},rc=function(A){return"number"==typeof A},nc=function(A,e,t){var r=e[0],n=e[1],B=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(Rt(s)&&o&&Rt(o))return[Wt(s,t.width),Wt(o,t.height)];var i=rc(B);if(xt(s)&&(s.value===Tr.CONTAIN||s.value===Tr.COVER))return rc(B)?t.width/t.height<B!=(s.value===Tr.COVER)?[t.width,t.width/B]:[t.height*B,t.height]:[t.width,t.height];var c=rc(r),a=rc(n),Q=c||a;if(tc(s)&&(!o||tc(o)))return c&&a?[r,n]:i||Q?Q&&i?[c?r:n*B,a?n:r/B]:[c?r:t.width,a?n:t.height]:[t.width,t.height];if(i){var g=0,w=0;return Rt(s)?g=Wt(s,t.width):Rt(o)&&(w=Wt(o,t.height)),tc(s)?g=w*B:o&&!tc(o)||(w=g/B),[g,w]}var u=null,l=null;if(Rt(s)?u=Wt(s,t.width):o&&Rt(o)&&(l=Wt(o,t.height)),null===u||o&&!tc(o)||(l=c&&a?u/r*n:t.height),null!==l&&tc(s)&&(u=c&&a?l/n*r:t.width),null!==u&&null!==l)return[u,l];throw new Error("Unable to calculate background-size for element")},Bc=function(A,e){var t=A[e];return void 0===t?A[0]:t},sc=function(A,e,t,r,n){var B=e[0],s=e[1],o=t[0],i=t[1];switch(A){case 2:return[new Hi(Math.round(r.left),Math.round(r.top+s)),new Hi(Math.round(r.left+r.width),Math.round(r.top+s)),new Hi(Math.round(r.left+r.width),Math.round(i+r.top+s)),new Hi(Math.round(r.left),Math.round(i+r.top+s))];case 3:return[new Hi(Math.round(r.left+B),Math.round(r.top)),new Hi(Math.round(r.left+B+o),Math.round(r.top)),new Hi(Math.round(r.left+B+o),Math.round(r.height+r.top)),new Hi(Math.round(r.left+B),Math.round(r.height+r.top))];case 1:return[new Hi(Math.round(r.left+B),Math.round(r.top+s)),new Hi(Math.round(r.left+B+o),Math.round(r.top+s)),new Hi(Math.round(r.left+B+o),Math.round(r.top+s+i)),new Hi(Math.round(r.left+B),Math.round(r.top+s+i))];default:return[new Hi(Math.round(n.left),Math.round(n.top)),new Hi(Math.round(n.left+n.width),Math.round(n.top)),new Hi(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Hi(Math.round(n.left),Math.round(n.height+n.top))]}},oc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ic="Hidden Text",cc=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),B=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",B.appendChild(t),r.src=oc,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(ic)),t.appendChild(n),t.appendChild(r);var s=r.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode(ic)),t.style.lineHeight="normal",r.style.verticalAlign="super";var o=r.offsetTop-t.offsetTop+2;return B.removeChild(t),{baseline:s,middle:o}},A.prototype.getMetrics=function(A,e){var t=A+" "+e;return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}(),ac=function(){function A(A,e){this.context=A,this.options=e}return A}(),Qc=10000,gc=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r._activeEffects=[],r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),t.canvas||(r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px"),r.fontMetrics=new cc(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),r}return e(t,A),t.prototype.applyEffects=function(A){for(var e=this;this._activeEffects.length;)this.popEffect();A.forEach((function(A){return e.applyEffect(A)}))},t.prototype.applyEffect=function(A){this.ctx.save(),Oi(A)&&(this.ctx.globalAlpha=A.opacity),Si(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),Ti(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return n(this,void 0,void 0,(function(){return B(this,(function(e){switch(e.label){case 0:return A.element.container.styles.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},t.prototype.renderNode=function(A){return n(this,void 0,void 0,(function(){return B(this,(function(e){switch(e.label){case 0:return BB(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(A)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},t.prototype.renderTextWithLetterSpacing=function(A,e,t){var r=this;0===e?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):vs(A.text).reduce((function(e,n){return r.ctx.fillText(n,e,A.bounds.top+t),e+r.ctx.measureText(n).width}),A.bounds.left)},t.prototype.createFontStyle=function(A){var e=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),t=Uc(A.fontFamily).join(", "),r=Lt(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]},t.prototype.renderTextNode=function(A,e){return n(this,void 0,void 0,(function(){var t,r,n,s,o,i,c,a,Q=this;return B(this,(function(B){return t=this.createFontStyle(e),r=t[0],n=t[1],s=t[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(n,s),i=o.baseline,c=o.middle,a=e.paintOrder,A.textBounds.forEach((function(A){a.forEach((function(t){switch(t){case 0:Q.ctx.fillStyle=nr(e.color),Q.renderTextWithLetterSpacing(A,e.letterSpacing,i);var r=e.textShadow;r.length&&A.text.trim().length&&(r.slice(0).reverse().forEach((function(t){Q.ctx.shadowColor=nr(t.color),Q.ctx.shadowOffsetX=t.offsetX.number*Q.options.scale,Q.ctx.shadowOffsetY=t.offsetY.number*Q.options.scale,Q.ctx.shadowBlur=t.blur.number,Q.renderTextWithLetterSpacing(A,e.letterSpacing,i)})),Q.ctx.shadowColor="",Q.ctx.shadowOffsetX=0,Q.ctx.shadowOffsetY=0,Q.ctx.shadowBlur=0),e.textDecorationLine.length&&(Q.ctx.fillStyle=nr(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:Q.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+i),A.bounds.width,1);break;case 2:Q.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:Q.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+c),A.bounds.width,1)}})));break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(Q.ctx.strokeStyle=nr(e.webkitTextStrokeColor),Q.ctx.lineWidth=e.webkitTextStrokeWidth,Q.ctx.lineJoin=window.chrome?"miter":"round",Q.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+i)),Q.ctx.strokeStyle="",Q.ctx.lineWidth=0,Q.ctx.lineJoin="miter"}}))})),[2]}))}))},t.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=zi(A),n=Li(e);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return n(this,void 0,void 0,(function(){var e,r,n,s,i,c,a,Q,g,w,u,l,C,U,F,h,d,f;return B(this,(function(B){switch(B.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,r=A.curves,n=e.styles,s=0,i=e.textNodes,B.label=1;case 1:return s<i.length?(c=i[s],[4,this.renderTextNode(c,n)]):[3,4];case 2:B.sent(),B.label=3;case 3:return s++,[3,1];case 4:if(!(e instanceof Vs))return[3,8];B.label=5;case 5:return B.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return F=B.sent(),this.renderReplacedElement(e,r,F),[3,8];case 7:return B.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof ks&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof Rs))return[3,12];B.label=9;case 9:return B.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return F=B.sent(),this.renderReplacedElement(e,r,F),[3,12];case 11:return B.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof eo&&e.tree?[4,new t(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:a=B.sent(),e.width&&e.height&&this.ctx.drawImage(a,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),B.label=14;case 14:if(e instanceof zs&&(Q=Math.min(e.bounds.width,e.bounds.height),e.type===Zs?e.checked&&(this.ctx.save(),this.path([new Hi(e.bounds.left+0.39363*Q,e.bounds.top+0.79*Q),new Hi(e.bounds.left+0.16*Q,e.bounds.top+0.5549*Q),new Hi(e.bounds.left+0.27347*Q,e.bounds.top+0.44071*Q),new Hi(e.bounds.left+0.39694*Q,e.bounds.top+0.5649*Q),new Hi(e.bounds.left+0.72983*Q,e.bounds.top+0.23*Q),new Hi(e.bounds.left+0.84*Q,e.bounds.top+0.34085*Q),new Hi(e.bounds.left+0.39363*Q,e.bounds.top+0.79*Q)]),this.ctx.fillStyle=nr(qs),this.ctx.fill(),this.ctx.restore()):e.type===_s&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+Q/2,e.bounds.top+Q/2,Q/4,0,2*Math.PI,!0),this.ctx.fillStyle=nr(qs),this.ctx.fill(),this.ctx.restore())),wc(e)&&e.value.length){switch(g=this.createFontStyle(n),d=g[0],w=g[1],u=this.fontMetrics.getMetrics(d,w).baseline,this.ctx.font=d,this.ctx.fillStyle=nr(n.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=lc(e.styles.textAlign),f=zi(e),l=0,e.styles.textAlign){case 1:l+=f.width/2;break;case 2:l+=f.width}C=f.add(l,0,0,-f.height/2+1),this.ctx.save(),this.path([new Hi(f.left,f.top),new Hi(f.left+f.width,f.top),new Hi(f.left+f.width,f.top+f.height),new Hi(f.left,f.top+f.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ys(e.value,C),n.letterSpacing,u),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!BB(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(0!==(U=e.styles.listStyleImage).type)return[3,18];F=void 0,h=U.url,B.label=15;case 15:return B.trys.push([15,17,,18]),[4,this.context.cache.match(h)];case 16:return F=B.sent(),this.ctx.drawImage(F,e.bounds.left-(F.width+10),e.bounds.top),[3,18];case 17:return B.sent(),this.context.logger.error("Error loading list-style-image "+h),[3,18];case 18:return[3,20];case 19:A.listValue&&-1!==e.styles.listStyleType&&(d=this.createFontStyle(n)[0],this.ctx.font=d,this.ctx.fillStyle=nr(n.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",f=new o(e.bounds.left,e.bounds.top+Wt(e.styles.paddingTop,e.bounds.width),e.bounds.width,pn(n.lineHeight,n.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ys(A.listValue,f),n.letterSpacing,pn(n.lineHeight,n.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),B.label=20;case 20:return[2]}}))}))},t.prototype.renderStackContent=function(A){return n(this,void 0,void 0,(function(){var e,t,r,n,s,o,i,c,a,Q,g,w,u,l,C;return B(this,(function(B){switch(B.label){case 0:return BB(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:B.sent(),e=0,t=A.negativeZIndex,B.label=2;case 2:return e<t.length?(C=t[e],[4,this.renderStack(C)]):[3,5];case 3:B.sent(),B.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:B.sent(),r=0,n=A.nonInlineLevel,B.label=7;case 7:return r<n.length?(C=n[r],[4,this.renderNode(C)]):[3,10];case 8:B.sent(),B.label=9;case 9:return r++,[3,7];case 10:s=0,o=A.nonPositionedFloats,B.label=11;case 11:return s<o.length?(C=o[s],[4,this.renderStack(C)]):[3,14];case 12:B.sent(),B.label=13;case 13:return s++,[3,11];case 14:i=0,c=A.nonPositionedInlineLevel,B.label=15;case 15:return i<c.length?(C=c[i],[4,this.renderStack(C)]):[3,18];case 16:B.sent(),B.label=17;case 17:return i++,[3,15];case 18:a=0,Q=A.inlineLevel,B.label=19;case 19:return a<Q.length?(C=Q[a],[4,this.renderNode(C)]):[3,22];case 20:B.sent(),B.label=21;case 21:return a++,[3,19];case 22:g=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,B.label=23;case 23:return g<w.length?(C=w[g],[4,this.renderStack(C)]):[3,26];case 24:B.sent(),B.label=25;case 25:return g++,[3,23];case 26:u=0,l=A.positiveZIndex,B.label=27;case 27:return u<l.length?(C=l[u],[4,this.renderStack(C)]):[3,30];case 28:B.sent(),B.label=29;case 29:return u++,[3,27];case 30:return[2]}}))}))},t.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},t.prototype.formatPath=function(A){var e=this;A.forEach((function(A,t){var r=yi(A)?A.start:A;0===t?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),yi(A)&&e.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}))},t.prototype.renderRepeat=function(A,e,t,r){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,r),this.ctx.fill(),this.ctx.translate(-t,-r)},t.prototype.resizeImage=function(A,e,t){var r;if(A.width===e&&A.height===t)return A;var n=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return n.width=Math.max(1,e),n.height=Math.max(1,t),n.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e,t),n},t.prototype.renderBackgroundImage=function(A){return n(this,void 0,void 0,(function(){var e,t,r,n,s,o;return B(this,(function(i){switch(i.label){case 0:e=A.styles.backgroundImage.length-1,t=function(t){var n,s,o,i,c,a,Q,g,w,u,l,C,U,F,h,d,f,p,H,E,I,y,m,K,b,v,L,D,x,M,S;return B(this,(function(B){switch(B.label){case 0:if(0!==t.type)return[3,5];n=void 0,s=t.url,B.label=1;case 1:return B.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return n=B.sent(),[3,4];case 3:return B.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return n&&(o=ec(A,e,[n.width,n.height,n.width/n.height]),d=o[0],y=o[1],m=o[2],H=o[3],E=o[4],F=r.ctx.createPattern(r.resizeImage(n,H,E),"repeat"),r.renderRepeat(d,F,y,m)),[3,6];case 5:Dr(t)?(i=ec(A,e,[null,null,null]),d=i[0],y=i[1],m=i[2],H=i[3],E=i[4],c=Fr(t.angle,H,E),a=c[0],Q=c[1],g=c[2],w=c[3],u=c[4],(l=document.createElement("canvas")).width=H,l.height=E,C=l.getContext("2d"),U=C.createLinearGradient(Q,w,g,u),Cr(t.stops,a).forEach((function(A){return U.addColorStop(A.stop,nr(A.color))})),C.fillStyle=U,C.fillRect(0,0,H,E),H>0&&E>0&&(F=r.ctx.createPattern(l,"repeat"),r.renderRepeat(d,F,y,m))):xr(t)&&(h=ec(A,e,[null,null,null]),d=h[0],f=h[1],p=h[2],H=h[3],E=h[4],I=0===t.position.length?[Xt]:t.position,y=Wt(I[0],H),m=Wt(I[I.length-1],E),K=fr(t,y,m,H,E),b=K[0],v=K[1],b>0&&v>0&&(L=r.ctx.createRadialGradient(f+y,p+m,0,f+y,p+m,b),Cr(t.stops,2*b).forEach((function(A){return L.addColorStop(A.stop,nr(A.color))})),r.path(d),r.ctx.fillStyle=L,b!==v?(D=A.bounds.left+0.5*A.bounds.width,x=A.bounds.top+0.5*A.bounds.height,S=1/(M=v/b),r.ctx.save(),r.ctx.translate(D,x),r.ctx.transform(1,0,0,M,0,0),r.ctx.translate(-D,-x),r.ctx.fillRect(f,S*(p-x)+x,H,E*S),r.ctx.restore()):r.ctx.fill())),B.label=6;case 6:return e--,[2]}}))},r=this,n=0,s=A.styles.backgroundImage.slice(0).reverse(),i.label=1;case 1:return n<s.length?(o=s[n],[5,t(o)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},t.prototype.renderSolidBorder=function(A,e,t){return n(this,void 0,void 0,(function(){return B(this,(function(r){return this.path(Ji(t,e)),this.ctx.fillStyle=nr(A),this.ctx.fill(),[2]}))}))},t.prototype.renderDoubleBorder=function(A,e,t,r){return n(this,void 0,void 0,(function(){var n,s;return B(this,(function(B){switch(B.label){case 0:return e<3?[4,this.renderSolidBorder(A,t,r)]:[3,2];case 1:return B.sent(),[2];case 2:return n=Yi(r,t),this.path(n),this.ctx.fillStyle=nr(A),this.ctx.fill(),s=Wi(r,t),this.path(s),this.ctx.fill(),[2]}}))}))},t.prototype.renderNodeBackgroundAndBorders=function(A){return n(this,void 0,void 0,(function(){var e,t,r,n,s,o,i,c,a=this;return B(this,(function(B){switch(B.label){case 0:return this.applyEffects(A.getEffects(2)),e=A.container.styles,t=!rr(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],n=uc(Bc(e.backgroundClip,0),A.curves),t||e.boxShadow.length?(this.ctx.save(),this.path(n),this.ctx.clip(),rr(e.backgroundColor)||(this.ctx.fillStyle=nr(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:B.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){a.ctx.save();var t=bi(A.curves),r=e.inset?0:Qc,n=Vi(t,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(a.path(t),a.ctx.clip(),a.mask(n)):(a.mask(t),a.ctx.clip(),a.path(n)),a.ctx.shadowOffsetX=e.offsetX.number+r,a.ctx.shadowOffsetY=e.offsetY.number,a.ctx.shadowColor=nr(e.color),a.ctx.shadowBlur=e.blur.number,a.ctx.fillStyle=e.inset?nr(e.color):"rgba(0,0,0,1)",a.ctx.fill(),a.ctx.restore()})),B.label=2;case 2:s=0,o=0,i=r,B.label=3;case 3:return o<i.length?0!==(c=i[o]).style&&!rr(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,A.curves,2)]:[3,11]:[3,13];case 4:return B.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,A.curves,3)];case 6:return B.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,A.curves)];case 8:return B.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,A.curves)];case 10:B.sent(),B.label=11;case 11:s++,B.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},t.prototype.renderDashedDottedBorder=function(A,e,t,r,s){return n(this,void 0,void 0,(function(){var n,o,i,c,a,Q,g,w,u,l,C,U,F,h,d,f;return B(this,(function(B){return this.ctx.save(),n=Zi(r,t),o=Ji(r,t),2===s&&(this.path(o),this.ctx.clip()),yi(o[0])?(i=o[0].start.x,c=o[0].start.y):(i=o[0].x,c=o[0].y),yi(o[1])?(a=o[1].end.x,Q=o[1].end.y):(a=o[1].x,Q=o[1].y),g=0===t||2===t?Math.abs(i-a):Math.abs(c-Q),this.ctx.beginPath(),3===s?this.formatPath(n):this.formatPath(o.slice(0,2)),w=e<3?3*e:2*e,u=e<3?2*e:e,3===s&&(w=e,u=e),l=!0,g<=2*w?l=!1:g<=2*w+u?(w*=C=g/(2*w+u),u*=C):(U=Math.floor((g+u)/(w+u)),F=(g-U*w)/(U-1),u=(h=(g-(U+1)*w)/U)<=0||Math.abs(u-F)<Math.abs(u-h)?F:h),l&&(3===s?this.ctx.setLineDash([0,w+u]):this.ctx.setLineDash([w,u])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=nr(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(yi(o[0])&&(d=o[3],f=o[0],this.ctx.beginPath(),this.formatPath([new Hi(d.end.x,d.end.y),new Hi(f.start.x,f.start.y)]),this.ctx.stroke()),yi(o[1])&&(d=o[1],f=o[2],this.ctx.beginPath(),this.formatPath([new Hi(d.end.x,d.end.y),new Hi(f.start.x,f.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},t.prototype.render=function(A){return n(this,void 0,void 0,(function(){var e;return B(this,(function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=nr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=Xi(A),[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},t}(ac),wc=function(A){return A instanceof Ao||A instanceof $s||A instanceof zs&&A.type!==_s&&A.type!==Zs},uc=function(A,e){switch(A){case 0:return bi(e);case 2:return vi(e);default:return Li(e)}},lc=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},Cc=["-apple-system","system-ui"],Uc=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter((function(A){return-1===Cc.indexOf(A)})):A},Fc=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=t,r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),r}return e(t,A),t.prototype.render=function(A){return n(this,void 0,void 0,(function(){var e,t;return B(this,(function(r){switch(r.label){case 0:return e=Hs(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,hc(e)];case 1:return t=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=nr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(t,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},t}(ac),hc=function(A){return new Promise((function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},dc=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof r.debug?r.debug.apply(r,s([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof r.info&&r.info.apply(r,s([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof r.warn?r.warn.apply(r,s([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof r.error?r.error.apply(r,s([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),fc=function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new dc({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new ui(this,e)}return A.instanceCount=1,A}(),pc=function(A,e){return void 0===e&&(e={}),Hc(A,e)};"undefined"!=typeof window&&wi.setContext(window);var Hc=function(A,e){return n(void 0,void 0,void 0,(function(){var r,n,s,a,Q,g,w,u,l,C,U,F,h,d,f,p,H,E,I,y,m,K,b,v,L,D,x,M,S,T,O,G,V,k,R,N,P,X;return B(this,(function(B){switch(B.label){case 0:if(!A||"object"!=typeof A)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=A.ownerDocument))throw new Error("Element is not attached to a Document");if(!(n=r.defaultView))throw new Error("Document is not attached to a Window");return s={allowTaint:null!==(K=e.allowTaint)&&void 0!==K&&K,imageTimeout:null!==(b=e.imageTimeout)&&void 0!==b?b:15000,proxy:e.proxy,useCORS:null!==(v=e.useCORS)&&void 0!==v&&v},a=t({logging:null===(L=e.logging)||void 0===L||L,cache:e.cache},s),Q={windowWidth:null!==(D=e.windowWidth)&&void 0!==D?D:n.innerWidth,windowHeight:null!==(x=e.windowHeight)&&void 0!==x?x:n.innerHeight,scrollX:null!==(M=e.scrollX)&&void 0!==M?M:n.pageXOffset,scrollY:null!==(S=e.scrollY)&&void 0!==S?S:n.pageYOffset},g=new o(Q.scrollX,Q.scrollY,Q.windowWidth,Q.windowHeight),w=new fc(a,g),u=null!==(T=e.foreignObjectRendering)&&void 0!==T&&T,l={allowTaint:null!==(O=e.allowTaint)&&void 0!==O&&O,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},w.logger.debug("Starting document clone with size "+g.width+"x"+g.height+" scrolled to "+-g.left+","+-g.top),C=new _o(w,A,l),(U=C.clonedReferenceElement)?[4,C.toIFrame(r,g)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return F=B.sent(),h=Uo(U)||lo(U)?c(U.ownerDocument):i(w,U),d=h.width,f=h.height,p=h.left,H=h.top,E=Ec(w,U,e.backgroundColor),I={canvas:e.canvas,backgroundColor:E,scale:null!==(V=null!==(G=e.scale)&&void 0!==G?G:n.devicePixelRatio)&&void 0!==V?V:1,x:(null!==(k=e.x)&&void 0!==k?k:0)+p,y:(null!==(R=e.y)&&void 0!==R?R:0)+H,width:null!==(N=e.width)&&void 0!==N?N:Math.ceil(d),height:null!==(P=e.height)&&void 0!==P?P:Math.ceil(f)},u?(w.logger.debug("Document cloned, using foreign object rendering"),[4,new Fc(w,I).render(U)]):[3,3];case 2:return y=B.sent(),[3,5];case 3:return w.logger.debug("Document cloned, element located at "+p+","+H+" with size "+d+"x"+f+" using computed rendering"),w.logger.debug("Starting DOM parsing"),m=Bo(w,U),E===m.styles.backgroundColor&&(m.styles.backgroundColor=gr.TRANSPARENT),w.logger.debug("Starting renderer for element at "+I.x+","+I.y+" with size "+I.width+"x"+I.height),[4,new gc(w,I).render(m)];case 4:y=B.sent(),B.label=5;case 5:return(null===(X=e.removeContainer)||void 0===X||X)&&(_o.destroy(F)||w.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),w.logger.debug("Finished rendering"),[2,y]}}))}))},Ec=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?Qr(A,getComputedStyle(r.documentElement).backgroundColor):gr.TRANSPARENT,B=r.body?Qr(A,getComputedStyle(r.body).backgroundColor):gr.TRANSPARENT,s="string"==typeof t?Qr(A,t):null===t?gr.TRANSPARENT:0xffffffff;return e===r.documentElement?rr(n)?rr(B)?s:B:n:s};return pc}()},251:function(A,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(A,e,t,r,n){var B,s,o=8*n-r-1,i=(1<<o)-1,c=i>>1,a=-7,Q=t?n-1:0,g=t?-1:1,w=A[e+Q];for(Q+=g,B=w&(1<<-a)-1,w>>=-a,a+=o;a>0;B=256*B+A[e+Q],Q+=g,a-=8);for(s=B&(1<<-a)-1,B>>=-a,a+=r;a>0;s=256*s+A[e+Q],Q+=g,a-=8);if(0===B)B=1-c;else{if(B===i)return s?NaN:1/0*(w?-1:1);s+=Math.pow(2,r),B-=c}return(w?-1:1)*s*Math.pow(2,B-r)},e.write=function(A,e,t,r,n,B){var s,o,i,c=8*B-n-1,a=(1<<c)-1,Q=a>>1,g=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,w=r?0:B-1,u=r?1:-1,l=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=a):(s=Math.floor(Math.log(e)/Math.LN2),e*(i=Math.pow(2,-s))<1&&(s--,i*=2),(e+=s+Q>=1?g/i:g*Math.pow(2,1-Q))*i>=2&&(s++,i/=2),s+Q>=a?(o=0,s=a):s+Q>=1?(o=(e*i-1)*Math.pow(2,n),s+=Q):(o=e*Math.pow(2,Q-1)*Math.pow(2,n),s=0));n>=8;A[t+w]=0xff&o,w+=u,o/=256,n-=8);for(s=s<<n|o,c+=n;c>0;A[t+w]=0xff&s,w+=u,s/=256,c-=8);A[t+w-u]|=128*l}},72321:function(A,e,t){"use strict";t.d(e,{CQ:function(){return E},In:function(){return FA}});var r=t(20641),n=t(96763);const B=/^[a-z0-9]+(-[a-z0-9]+)*$/,s=(A,e,t,r="")=>{const n=A.split(":");if("@"===A.slice(0,1)){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const A=n.pop(),t=n.pop(),B={provider:n.length>0?n[0]:r,prefix:t,name:A};return e&&!o(B)?null:B}const B=n[0],s=B.split("-");if(s.length>1){const A={provider:r,prefix:s.shift(),name:s.join("-")};return e&&!o(A)?null:A}if(t&&""===r){const A={provider:r,prefix:"",name:B};return e&&!o(A,t)?null:A}return null},o=(A,e)=>!!A&&!(!(e&&""===A.prefix||A.prefix)||!A.name),i=Object.freeze({left:0,top:0,width:16,height:16}),c=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),a=Object.freeze({...i,...c}),Q=Object.freeze({...a,body:"",hidden:!1});function g(A,e){const t=function(A,e){const t={};!A.hFlip!=!e.hFlip&&(t.hFlip=!0),!A.vFlip!=!e.vFlip&&(t.vFlip=!0);const r=((A.rotate||0)+(e.rotate||0))%4;return r&&(t.rotate=r),t}(A,e);for(const r in Q)r in c?r in A&&!(r in t)&&(t[r]=c[r]):r in e?t[r]=e[r]:r in A&&(t[r]=A[r]);return t}function w(A,e,t){const r=A.icons,n=A.aliases||Object.create(null);let B={};function s(A){B=g(r[A]||n[A],B)}return s(e),t.forEach(s),g(A,B)}function u(A,e){const t=[];if("object"!=typeof A||"object"!=typeof A.icons)return t;A.not_found instanceof Array&&A.not_found.forEach((A=>{e(A,null),t.push(A)}));const r=function(A){const e=A.icons,t=A.aliases||Object.create(null),r=Object.create(null);return Object.keys(e).concat(Object.keys(t)).forEach((function A(n){if(e[n])return r[n]=[];if(!(n in r)){r[n]=null;const e=t[n]&&t[n].parent,B=e&&A(e);B&&(r[n]=[e].concat(B))}return r[n]})),r}(A);for(const n in r){const B=r[n];B&&(e(n,w(A,n,B)),t.push(n))}return t}const l={provider:"",aliases:{},not_found:{},...i};function C(A,e){for(const t in e)if(t in A&&typeof A[t]!=typeof e[t])return!1;return!0}function U(A){if("object"!=typeof A||null===A)return null;const e=A;if("string"!=typeof e.prefix||!A.icons||"object"!=typeof A.icons)return null;if(!C(A,l))return null;const t=e.icons;for(const A in t){const e=t[A];if(!A||"string"!=typeof e.body||!C(e,Q))return null}const r=e.aliases||Object.create(null);for(const A in r){const e=r[A],n=e.parent;if(!A||"string"!=typeof n||!t[n]&&!r[n]||!C(e,Q))return null}return e}const F=Object.create(null);function h(A,e){const t=F[A]||(F[A]=Object.create(null));return t[e]||(t[e]=function(A,e){return{provider:A,prefix:e,icons:Object.create(null),missing:new Set}}(A,e))}function d(A,e){return U(e)?u(e,((e,t)=>{t?A.icons[e]=t:A.missing.add(e)})):[]}let f=!1;function p(A){return"boolean"==typeof A&&(f=A),f}function H(A){const e="string"==typeof A?s(A,!0,f):A;if(e){const A=h(e.provider,e.prefix),t=e.name;return A.icons[t]||(A.missing.has(t)?null:void 0)}}function E(A,e){if("object"!=typeof A)return!1;if("string"!=typeof e&&(e=A.provider||""),f&&!e&&!A.prefix){let e=!1;return U(A)&&(A.prefix="",u(A,((A,t)=>{(function(A,e){const t=s(A,!0,f);if(!t)return!1;const r=h(t.provider,t.prefix);return e?function(A,e,t){try{if("string"==typeof t.body)return A.icons[e]={...t},!0}catch(A){}return!1}(r,t.name,e):(r.missing.add(t.name),!0)})(A,t)&&(e=!0)}))),e}const t=A.prefix;if(!o({provider:e,prefix:t,name:"a"}))return!1;return!!d(h(e,t),A)}const I=Object.freeze({width:null,height:null}),y=Object.freeze({...I,...c}),m=/(-?[0-9.]*[0-9]+[0-9.]*)/g,K=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function b(A,e,t){if(1===e)return A;if(t=t||100,"number"==typeof A)return Math.ceil(A*e*t)/t;if("string"!=typeof A)return A;const r=A.split(m);if(null===r||!r.length)return A;const n=[];let B=r.shift(),s=K.test(B);for(;;){if(s){const A=parseFloat(B);isNaN(A)?n.push(B):n.push(Math.ceil(A*e*t)/t)}else n.push(B);if(B=r.shift(),void 0===B)return n.join("");s=!s}}const v=/\sid="(\S+)"/g,L="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let D=0;const x=Object.create(null);function M(A,e){x[A]=e}function S(A){return x[A]||x[""]}function T(A){let e;if("string"==typeof A.resources)e=[A.resources];else if(e=A.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:A.path||"/",maxURL:A.maxURL||500,rotate:A.rotate||750,timeout:A.timeout||5e3,random:!0===A.random,index:A.index||0,dataAfterTimeout:!1!==A.dataAfterTimeout}}const O=Object.create(null),G=["https://api.simplesvg.com","https://api.unisvg.com"],V=[];for(;G.length>0;)1===G.length||Math.random()>0.5?V.push(G.shift()):V.push(G.pop());function k(A,e){const t=T(e);return null!==t&&(O[A]=t,!0)}function R(A){return O[A]}O[""]=T({resources:["https://api.iconify.design"].concat(V)});let N=(()=>{let A;try{if(A=fetch,"function"==typeof A)return A}catch(A){}})();const P={prepare:(A,e,t)=>{const r=[],n=function(A,e){const t=R(A);if(!t)return 0;let r;if(t.maxURL){let A=0;t.resources.forEach((e=>{const t=e;A=Math.max(A,t.length)}));const n=e+".json?icons=";r=t.maxURL-A-t.path.length-n.length}else r=0;return r}(A,e),B="icons";let s={type:B,provider:A,prefix:e,icons:[]},o=0;return t.forEach(((t,i)=>{o+=t.length+1,o>=n&&i>0&&(r.push(s),s={type:B,provider:A,prefix:e,icons:[]},o=t.length),s.icons.push(t)})),r.push(s),r},send:(A,e,t)=>{if(!N)return void t("abort",424);let r=function(A){if("string"==typeof A){const e=R(A);if(e)return e.path}return"/"}(e.provider);switch(e.type){case"icons":{const A=e.prefix,t=e.icons.join(",");r+=A+".json?"+new URLSearchParams({icons:t}).toString();break}case"custom":{const A=e.uri;r+="/"===A.slice(0,1)?A.slice(1):A;break}default:return void t("abort",400)}let n=503;N(A+r).then((A=>{const e=A.status;if(200===e)return n=501,A.json();setTimeout((()=>{t(function(A){return 404===A}(e)?"abort":"next",e)}))})).then((A=>{"object"==typeof A&&null!==A?setTimeout((()=>{t("success",A)})):setTimeout((()=>{404===A?t("abort",A):t("next",n)}))})).catch((()=>{t("next",n)}))}};function X(A,e){A.forEach((A=>{const t=A.loaderCallbacks;t&&(A.loaderCallbacks=t.filter((A=>A.id!==e)))}))}let J=0;var Y={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function W(A,e,t,r){const n=A.resources.length,B=A.random?Math.floor(Math.random()*n):A.index;let s;if(A.random){let e=A.resources.slice(0);for(s=[];e.length>1;){const A=Math.floor(Math.random()*e.length);s.push(e[A]),e=e.slice(0,A).concat(e.slice(A+1))}s=s.concat(e)}else s=A.resources.slice(B).concat(A.resources.slice(0,B));const o=Date.now();let i,c="pending",a=0,Q=null,g=[],w=[];function u(){Q&&(clearTimeout(Q),Q=null)}function l(){"pending"===c&&(c="aborted"),u(),g.forEach((A=>{"pending"===A.status&&(A.status="aborted")})),g=[]}function C(A,e){e&&(w=[]),"function"==typeof A&&w.push(A)}function U(){c="failed",w.forEach((A=>{A(void 0,i)}))}function F(){g.forEach((A=>{"pending"===A.status&&(A.status="aborted")})),g=[]}function h(){if("pending"!==c)return;u();const r=s.shift();if(void 0===r)return g.length?void(Q=setTimeout((()=>{u(),"pending"===c&&(F(),U())}),A.timeout)):void U();const n={status:"pending",resource:r,callback:(e,t)=>{!function(e,t,r){const n="success"!==t;switch(g=g.filter((A=>A!==e)),c){case"pending":break;case"failed":if(n||!A.dataAfterTimeout)return;break;default:return}if("abort"===t)return i=r,void U();if(n)return i=r,void(g.length||(s.length?h():U()));if(u(),F(),!A.random){const t=A.resources.indexOf(e.resource);-1!==t&&t!==A.index&&(A.index=t)}c="completed",w.forEach((A=>{A(r)}))}(n,e,t)}};g.push(n),a++,Q=setTimeout(h,A.rotate),t(r,e,n.callback)}return"function"==typeof r&&w.push(r),setTimeout(h),function(){return{startTime:o,payload:e,status:c,queriesSent:a,queriesPending:g.length,subscribe:C,abort:l}}}function Z(A){const e={...Y,...A};let t=[];function r(){t=t.filter((A=>"pending"===A().status))}return{query:function(A,n,B){const s=W(e,A,n,((A,e)=>{r(),B&&B(A,e)}));return t.push(s),s},find:function(A){return t.find((e=>A(e)))||null},setIndex:A=>{e.index=A},getIndex:()=>e.index,cleanup:r}}function _(){}const j=Object.create(null);function q(A,e,t){let r,n;if("string"==typeof A){const e=S(A);if(!e)return t(void 0,424),_;n=e.send;const B=function(A){if(!j[A]){const e=R(A);if(!e)return;const t={config:e,redundancy:Z(e)};j[A]=t}return j[A]}(A);B&&(r=B.redundancy)}else{const e=T(A);if(e){r=Z(e);const t=S(A.resources?A.resources[0]:"");t&&(n=t.send)}}return r&&n?r.query(e,n,t)().abort:(t(void 0,424),_)}function z(){}function $(A){A.iconsLoaderFlag||(A.iconsLoaderFlag=!0,setTimeout((()=>{A.iconsLoaderFlag=!1,function(A){A.pendingCallbacksFlag||(A.pendingCallbacksFlag=!0,setTimeout((()=>{A.pendingCallbacksFlag=!1;const e=A.loaderCallbacks?A.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const r=A.provider,n=A.prefix;e.forEach((e=>{const B=e.icons,s=B.pending.length;B.pending=B.pending.filter((e=>{if(e.prefix!==n)return!0;const s=e.name;if(A.icons[s])B.loaded.push({provider:r,prefix:n,name:s});else{if(!A.missing.has(s))return t=!0,!0;B.missing.push({provider:r,prefix:n,name:s})}return!1})),B.pending.length!==s&&(t||X([A],e.id),e.callback(B.loaded.slice(0),B.missing.slice(0),B.pending.slice(0),e.abort))}))})))}(A)})))}function AA(A,e,t){function r(){const t=A.pendingIcons;e.forEach((e=>{t&&t.delete(e),A.icons[e]||A.missing.add(e)}))}if(t&&"object"==typeof t)try{if(!d(A,t).length)return void r()}catch(A){n.error(A)}r(),$(A)}function eA(A,e){A instanceof Promise?A.then((A=>{e(A)})).catch((()=>{e(null)})):e(A)}function tA(A,e){A.iconsToLoad?A.iconsToLoad=A.iconsToLoad.concat(e).sort():A.iconsToLoad=e,A.iconsQueueFlag||(A.iconsQueueFlag=!0,setTimeout((()=>{A.iconsQueueFlag=!1;const{provider:e,prefix:t}=A,r=A.iconsToLoad;if(delete A.iconsToLoad,!r||!r.length)return;const n=A.loadIcon;if(A.loadIcons&&(r.length>1||!n))return void eA(A.loadIcons(r,t,e),(e=>{AA(A,r,e)}));if(n)return void r.forEach((r=>{eA(n(r,t,e),(e=>{AA(A,[r],e?{prefix:t,icons:{[r]:e}}:null)}))}));const{valid:s,invalid:o}=function(A){const e=[],t=[];return A.forEach((A=>{(A.match(B)?e:t).push(A)})),{valid:e,invalid:t}}(r);if(o.length&&AA(A,o,null),!s.length)return;const i=t.match(B)?S(e):null;if(!i)return void AA(A,s,null);i.prepare(e,t,s).forEach((t=>{q(e,t,(e=>{AA(A,t.icons,e)}))}))})))}const rA=(A,e)=>{const t=function(A,e=!0,t=!1){const r=[];return A.forEach((A=>{const n="string"==typeof A?s(A,e,t):A;n&&r.push(n)})),r}(A,!0,p()),r=function(A){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);A.sort(((A,e)=>A.provider!==e.provider?A.provider.localeCompare(e.provider):A.prefix!==e.prefix?A.prefix.localeCompare(e.prefix):A.name.localeCompare(e.name)));let r={provider:"",prefix:"",name:""};return A.forEach((A=>{if(r.name===A.name&&r.prefix===A.prefix&&r.provider===A.provider)return;r=A;const n=A.provider,B=A.prefix,s=A.name,o=t[n]||(t[n]=Object.create(null)),i=o[B]||(o[B]=h(n,B));let c;c=s in i.icons?e.loaded:""===B||i.missing.has(s)?e.missing:e.pending;const a={provider:n,prefix:B,name:s};c.push(a)})),e}(t);if(!r.pending.length){let A=!0;return e&&setTimeout((()=>{A&&e(r.loaded,r.missing,r.pending,z)})),()=>{A=!1}}const n=Object.create(null),B=[];let o,i;return r.pending.forEach((A=>{const{provider:e,prefix:t}=A;if(t===i&&e===o)return;o=e,i=t,B.push(h(e,t));const r=n[e]||(n[e]=Object.create(null));r[t]||(r[t]=[])})),r.pending.forEach((A=>{const{provider:e,prefix:t,name:r}=A,B=h(e,t),s=B.pendingIcons||(B.pendingIcons=new Set);s.has(r)||(s.add(r),n[e][t].push(r))})),B.forEach((A=>{const e=n[A.provider][A.prefix];e.length&&tA(A,e)})),e?function(A,e,t){const r=J++,n=X.bind(null,t,r);if(!e.pending.length)return n;const B={id:r,icons:e,callback:A,abort:n};return t.forEach((A=>{(A.loaderCallbacks||(A.loaderCallbacks=[])).push(B)})),n}(e,r,B):z};const nA=/[\s,]+/;function BA(A,e){e.split(nA).forEach((e=>{switch(e.trim()){case"horizontal":A.hFlip=!0;break;case"vertical":A.vFlip=!0}}))}function sA(A,e=0){const t=A.replace(/^-?[0-9.]*/,"");function r(A){for(;A<0;)A+=4;return A%4}if(""===t){const e=parseInt(A);return isNaN(e)?0:r(e)}if(t!==A){let e=0;switch(t){case"%":e=25;break;case"deg":e=90}if(e){let n=parseFloat(A.slice(0,A.length-t.length));return isNaN(n)?0:(n/=e,n%1==0?r(n):0)}}return e}const oA={...y,inline:!1},iA={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},cA={display:"inline-block"},aA={backgroundColor:"currentColor"},QA={backgroundColor:"transparent"},gA={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},wA={webkitMask:aA,mask:aA,background:QA};for(const A in wA){const e=wA[A];for(const t in gA)e[A+t]=gA[t]}const uA={};function lA(A){return A+(A.match(/^[-0-9.]+$/)?"px":"")}["horizontal","vertical"].forEach((A=>{const e=A.slice(0,1)+"Flip";uA[A+"-flip"]=e,uA[A.slice(0,1)+"-flip"]=e,uA[A+"Flip"]=e}));const CA=(A,e)=>{const t=function(A,e){const t={...A};for(const A in e){const r=e[A],n=typeof r;A in I?(null===r||r&&("string"===n||"number"===n))&&(t[A]=r):n===typeof t[A]&&(t[A]="rotate"===A?r%4:r)}return t}(oA,e),n={...iA},B=e.mode||"svg",s={},o=e.style,i="object"!=typeof o||o instanceof Array?{}:o;for(let A in e){const r=e[A];if(void 0!==r)switch(A){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":t[A]=!0===r||"true"===r||1===r;break;case"flip":"string"==typeof r&&BA(t,r);break;case"color":s.color=r;break;case"rotate":"string"==typeof r?t[A]=sA(r):"number"==typeof r&&(t[A]=r);break;case"ariaHidden":case"aria-hidden":!0!==r&&"true"!==r&&delete n["aria-hidden"];break;default:{const e=uA[A];e?!0!==r&&"true"!==r&&1!==r||(t[e]=!0):void 0===oA[A]&&(n[A]=r)}}}const c=function(A,e){const t={...a,...A},r={...y,...e},n={left:t.left,top:t.top,width:t.width,height:t.height};let B=t.body;[t,r].forEach((A=>{const e=[],t=A.hFlip,r=A.vFlip;let s,o=A.rotate;switch(t?r?o+=2:(e.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),e.push("scale(-1 1)"),n.top=n.left=0):r&&(e.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),e.push("scale(1 -1)"),n.top=n.left=0),o<0&&(o-=4*Math.floor(o/4)),o%=4,o){case 1:s=n.height/2+n.top,e.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:e.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:s=n.width/2+n.left,e.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")")}o%2==1&&(n.left!==n.top&&(s=n.left,n.left=n.top,n.top=s),n.width!==n.height&&(s=n.width,n.width=n.height,n.height=s)),e.length&&(B=function(A,e,t){const r=function(A,e="defs"){let t="";const r=A.indexOf("<"+e);for(;r>=0;){const n=A.indexOf(">",r),B=A.indexOf("</"+e);if(-1===n||-1===B)break;const s=A.indexOf(">",B);if(-1===s)break;t+=A.slice(n+1,B).trim(),A=A.slice(0,r).trim()+A.slice(s+1)}return{defs:t,content:A}}(A);return n=r.defs,B=e+r.content+t,n?"<defs>"+n+"</defs>"+B:B;var n,B}(B,'<g transform="'+e.join(" ")+'">',"</g>"))}));const s=r.width,o=r.height,i=n.width,c=n.height;let Q,g;null===s?(g=null===o?"1em":"auto"===o?c:o,Q=b(g,i/c)):(Q="auto"===s?i:s,g=null===o?b(Q,c/i):"auto"===o?c:o);const w={},u=(A,e)=>{(A=>"unset"===A||"undefined"===A||"none"===A)(e)||(w[A]=e.toString())};u("width",Q),u("height",g);const l=[n.left,n.top,i,c];return w.viewBox=l.join(" "),{attributes:w,viewBox:l,body:B}}(A,t),Q=c.attributes;if(t.inline&&(s.verticalAlign="-0.125em"),"svg"===B){n.style={...s,...i},Object.assign(n,Q);let A=0,t=e.id;return"string"==typeof t&&(t=t.replace(/-/g,"_")),n.innerHTML=function(A,e=L){const t=[];let r;for(;r=v.exec(A);)t.push(r[1]);if(!t.length)return A;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return t.forEach((t=>{const r="function"==typeof e?e(t):e+(D++).toString(),B=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");A=A.replace(new RegExp('([#;"])('+B+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")})),A=A.replace(new RegExp(n,"g"),"")}(c.body,t?()=>t+"ID"+A++:"iconifyVue"),(0,r.h)("svg",n)}const{body:g,width:w,height:u}=A,l="mask"===B||"bg"!==B&&-1!==g.indexOf("currentColor"),C=function(A,e){let t=-1===A.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const A in e)t+=" "+A+'="'+e[A]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+A+"</svg>"}(g,{...Q,width:w+"",height:u+""});var U;return n.style={...s,"--svg":(U=C,'url("'+function(A){return"data:image/svg+xml,"+function(A){return A.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(A)}(U)+'")'),width:lA(Q.width),height:lA(Q.height),...cA,...l?aA:QA,...i},(0,r.h)("span",n)};if(p(!0),M("",P),"undefined"!=typeof document&&"undefined"!=typeof window){const A=window;if(void 0!==A.IconifyPreload){const e=A.IconifyPreload,t="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach((A=>{try{("object"!=typeof A||null===A||A instanceof Array||"object"!=typeof A.icons||"string"!=typeof A.prefix||!E(A))&&n.error(t)}catch(A){n.error(t)}}))}if(void 0!==A.IconifyProviders){const e=A.IconifyProviders;if("object"==typeof e&&null!==e)for(let A in e){const t="IconifyProviders["+A+"] is invalid.";try{const r=e[A];if("object"!=typeof r||!r||void 0===r.resources)continue;k(A,r)||n.error(t)}catch(A){n.error(t)}}}}const UA={...a,body:""},FA=(0,r.pM)({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(A,e,t){if("object"==typeof A&&null!==A&&"string"==typeof A.body)return this._name="",this.abortLoading(),{data:A};let r;if("string"!=typeof A||null===(r=s(A,!1,!0)))return this.abortLoading(),null;let n=H(r);if(!n)return this._loadingIcon&&this._loadingIcon.name===A||(this.abortLoading(),this._name="",null!==n&&(this._loadingIcon={name:A,abort:rA([r],(()=>{this.counter++}))})),null;if(this.abortLoading(),this._name!==A&&(this._name=A,e&&e(A)),t){n=Object.assign({},n);const A=t(n.body,r.name,r.prefix,r.provider);"string"==typeof A&&(n.body=A)}const B=["iconify"];return""!==r.prefix&&B.push("iconify--"+r.prefix),""!==r.provider&&B.push("iconify--"+r.provider),{data:n,classes:B}}},render(){this.counter;const A=this.$attrs,e=this.iconMounted||A.ssr?this.getIcon(A.icon,A.onLoad,A.customise):null;if(!e)return CA(UA,A);let t=A;return e.classes&&(t={...A,class:("string"==typeof A.class?A.class+" ":"")+e.classes.join(" ")}),CA({...a,...e.data},t)}})}}]);