(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0150":function(A,e,t){"use strict";var r=t("8814"),n=t.n(r);n.a},"1da1":function(A,e,t){"use strict";function r(A,e,t,r,n,o,i){try{var s=A[o](i),a=s.value}catch(B){return void t(B)}s.done?e(a):Promise.resolve(a).then(r,n)}function n(A){return function(){var e=this,t=arguments;return new Promise((function(n,o){var i=A.apply(e,t);function s(A){r(i,n,o,s,a,"next",A)}function a(A){r(i,n,o,s,a,"throw",A)}s(void 0)}))}}t("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},2620:function(A,e,t){t("a4d3"),t("e01a"),t("d28b"),t("99af"),t("cb29"),t("4de4"),t("4160"),t("a630"),t("c975"),t("a15b"),t("d81d"),t("13d5"),t("26e9"),t("fb6a"),t("45fc"),t("a434"),t("c19f"),t("ace4"),t("b64b"),t("131a"),t("d3b7"),t("e25e"),t("ac1f"),t("5377"),t("25f0"),t("f6d6"),t("3ca3"),t("466d"),t("5319"),t("498a"),t("5cc6"),t("84c3"),t("fb2c"),t("9a8c"),t("a975"),t("735e"),t("c1ac"),t("d139"),t("3a7b"),t("d5d6"),t("82f8"),t("e91f"),t("60bd"),t("5f96"),t("3280"),t("3fcc"),t("ca91"),t("25a1"),t("cd26"),t("3c5d"),t("2954"),t("649e"),t("219c"),t("170b"),t("b39a"),t("72f7"),t("159b"),t("ddb0"), /*! * html2canvas 1.0.0-rc.5 * Copyright (c) 2019 Niklas von Hertzen * Released under MIT License */ function(e,t){A.exports=t()}(0,(function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */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)e.hasOwnProperty(t)&&(A[t]=e[t])},A(e,t)};function e(e,t){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;t0&&n[n.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=55296&&n<=56319&&t>10),i%1024+56320)),(n+1===t||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"===typeof Uint8Array?[]:new Uint8Array(256),l=0;l>4,c[a++]=(15&r)<<4|n>>2,c[a++]=(3&n)<<6|63&o;return B},d=function(A){for(var e=A.length,t=[],r=0;r>h,p=1<>h,N=E+H,m=N,K=32,v=m+K,I=65536>>U,b=1<=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>h],e=(e<>h)],e=(e<>U),e=this.index[e],e+=A>>h&T,e=this.index[e],e=(e<D?(n.push(!0),i-=D):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(o),t.push(Z);if(i===P||i===J){if(0===o)return r.push(o),t.push(lA);var s=t[o-1];return-1===LA.indexOf(s)?(r.push(r[o-1]),t.push(s)):(r.push(o),t.push(lA))}return r.push(o),i===QA?t.push("strict"===e?rA:fA):i===HA||i===uA?t.push(lA):i===NA?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(fA):t.push(lA):void t.push(i)})),[r,t,n]},xA=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?-1!==A.indexOf(n):A===n){var o=t;while(o<=r.length){o++;var i=r[o];if(i===e)return!0;if(i!==G)break}}if(n===G){o=t;while(o>0){o--;var s=r[o];if(Array.isArray(A)?-1!==A.indexOf(s):A===s){var a=t;while(a<=r.length){a++;i=r[a];if(i===e)return!0;if(i!==G)break}}if(s!==G)break}}return!1},_A=function(A,e){var t=A;while(t>=0){var r=e[t];if(r!==G)return r;t--}return 0},MA=function(A,e,t,r,n){if(0===t[r])return KA;var o=r-1;if(Array.isArray(n)&&!0===n[o])return KA;var i=o-1,s=o+1,a=e[o],B=i>=0?e[i]:0,c=e[s];if(a===_&&c===M)return KA;if(-1!==TA.indexOf(a))return mA;if(-1!==TA.indexOf(c))return KA;if(-1!==yA.indexOf(c))return KA;if(_A(o,e)===k)return vA;if(IA.get(A[o])===J&&(c===fA||c===wA||c===dA))return KA;if(a===V||c===V)return KA;if(a===X)return KA;if(-1===[G,Y,q].indexOf(a)&&c===X)return KA;if(-1!==[$,AA,eA,iA,cA].indexOf(c))return KA;if(_A(o,e)===nA)return KA;if(xA(oA,nA,o,e))return KA;if(xA([$,AA],rA,o,e))return KA;if(xA(W,W,o,e))return KA;if(a===G)return vA;if(a===oA||c===oA)return KA;if(c===Z||a===Z)return vA;if(-1!==[Y,q,rA].indexOf(c)||a===j)return KA;if(B===UA&&-1!==OA.indexOf(a))return KA;if(a===cA&&c===UA)return KA;if(c===tA&&-1!==bA.concat(tA,eA,sA,fA,wA,dA).indexOf(a))return KA;if(-1!==bA.indexOf(c)&&a===sA||-1!==bA.indexOf(a)&&c===sA)return KA;if(a===BA&&-1!==[fA,wA,dA].indexOf(c)||-1!==[fA,wA,dA].indexOf(a)&&c===aA)return KA;if(-1!==bA.indexOf(a)&&-1!==RA.indexOf(c)||-1!==RA.indexOf(a)&&-1!==bA.indexOf(c))return KA;if(-1!==[BA,aA].indexOf(a)&&(c===sA||-1!==[nA,q].indexOf(c)&&e[s+1]===sA)||-1!==[nA,q].indexOf(a)&&c===sA||a===sA&&-1!==[sA,cA,iA].indexOf(c))return KA;if(-1!==[sA,cA,iA,$,AA].indexOf(c)){var u=o;while(u>=0){var l=e[u];if(l===sA)return KA;if(-1===[cA,iA].indexOf(l))break;u--}}if(-1!==[BA,aA].indexOf(c)){u=-1!==[$,AA].indexOf(a)?i:o;while(u>=0){l=e[u];if(l===sA)return KA;if(-1===[cA,iA].indexOf(l))break;u--}}if(CA===a&&-1!==[CA,EA,gA,hA].indexOf(c)||-1!==[EA,gA].indexOf(a)&&-1!==[EA,pA].indexOf(c)||-1!==[pA,hA].indexOf(a)&&c===pA)return KA;if(-1!==SA.indexOf(a)&&-1!==[tA,aA].indexOf(c)||-1!==SA.indexOf(c)&&a===BA)return KA;if(-1!==bA.indexOf(a)&&-1!==bA.indexOf(c))return KA;if(a===iA&&-1!==bA.indexOf(c))return KA;if(-1!==bA.concat(sA).indexOf(a)&&c===nA||-1!==bA.concat(sA).indexOf(c)&&a===AA)return KA;if(a===FA&&c===FA){var Q=t[o],w=1;while(Q>0){if(Q--,e[Q]!==FA)break;w++}if(w%2!==0)return KA}return a===wA&&c===dA?KA:vA},PA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=DA(A,e.lineBreak),r=t[0],n=t[1],o=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map((function(A){return-1!==[sA,lA,HA].indexOf(A)?fA:A})));var i="keep-all"===e.wordBreak?o.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[r,n,i]},zA=function(){function A(A,e,t,r){this.codePoints=A,this.required=e===mA,this.start=t,this.end=r}return A.prototype.slice=function(){return B.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),VA=function(A,e){var t=a(A),r=PA(t,e),n=r[0],o=r[1],i=r[2],s=t.length,B=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};var A=KA;while(c=Oe&&A<=57},We=function(A){return A>=55296&&A<=57343},Ye=function(A){return Je(A)||A>=ze&&A<=ke||A>=De&&A<=_e},je=function(A){return A>=De&&A<=Pe},qe=function(A){return A>=ze&&A<=Ge},Ze=function(A){return je(A)||qe(A)},$e=function(A){return A>=Ee},At=function(A){return A===WA||A===qA||A===ZA},et=function(A){return Ze(A)||$e(A)||A===se},tt=function(A){return et(A)||Je(A)||A===ae},rt=function(A){return A>=Ie&&A<=be||A===Te||A>=ye&&A<=Re||A===Le},nt=function(A,e){return A===jA&&e!==WA},ot=function(A,e,t){return A===ae?et(e)||nt(e,t):!!et(A)||!(A!==jA||!nt(A,e))},it=function(A,e,t){return A===He||A===ae?!!Je(e)||e===ve&&Je(t):Je(A===ve?e:A)},st=function(A){var e=0,t=1;A[e]!==He&&A[e]!==ae||(A[e]===ae&&(t=-1),e++);var r=[];while(Je(A[e]))r.push(A[e++]);var n=r.length?parseInt(B.apply(void 0,r),10):0;A[e]===ve&&e++;var o=[];while(Je(A[e]))o.push(A[e++]);var i=o.length,s=i?parseInt(B.apply(void 0,o),10):0;A[e]!==Ve&&A[e]!==xe||e++;var a=1;A[e]!==He&&A[e]!==ae||(A[e]===ae&&(a=-1),e++);var c=[];while(Je(A[e]))c.push(A[e++]);var u=c.length?parseInt(B.apply(void 0,c),10):0;return t*(n+s*Math.pow(10,-i))*Math.pow(10,a*u)},at={type:Q.LEFT_PARENTHESIS_TOKEN},Bt={type:Q.RIGHT_PARENTHESIS_TOKEN},ct={type:Q.COMMA_TOKEN},ut={type:Q.SUFFIX_MATCH_TOKEN},lt={type:Q.PREFIX_MATCH_TOKEN},Qt={type:Q.COLUMN_TOKEN},wt={type:Q.DASH_MATCH_TOKEN},dt={type:Q.INCLUDE_MATCH_TOKEN},gt={type:Q.LEFT_CURLY_BRACKET_TOKEN},ht={type:Q.RIGHT_CURLY_BRACKET_TOKEN},Ut={type:Q.SUBSTRING_MATCH_TOKEN},ft={type:Q.BAD_URL_TOKEN},Ct={type:Q.BAD_STRING_TOKEN},Et={type:Q.CDO_TOKEN},pt={type:Q.CDC_TOKEN},Ft={type:Q.COLON_TOKEN},Ht={type:Q.SEMICOLON_TOKEN},Nt={type:Q.LEFT_SQUARE_BRACKET_TOKEN},mt={type:Q.RIGHT_SQUARE_BRACKET_TOKEN},Kt={type:Q.WHITESPACE_TOKEN},vt={type:Q.EOF_TOKEN},It=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(a(A))},A.prototype.read=function(){var A=[],e=this.consumeToken();while(e!==vt)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=ot(e,t,r)?XA:kA,o=this.consumeName();return{type:Q.HASH_TOKEN,value:o,flags:n}}break;case te:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),ut;break;case ne:return this.consumeStringToken(ne);case oe:return at;case ie:return Bt;case Fe:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),Ut;break;case He:if(it(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ne:return ct;case ae:var i=A,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(it(i,s,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(ot(i,s,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===ae&&a===ue)return this.consumeCodePoint(),this.consumeCodePoint(),pt;break;case ve:if(it(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case YA:if(this.peekCodePoint(0)===Fe){this.consumeCodePoint();while(1){var c=this.consumeCodePoint();if(c===Fe&&(c=this.consumeCodePoint(),c===YA))return this.consumeToken();if(c===Se)return this.consumeToken()}}break;case me:return Ft;case Ke:return Ht;case ce:if(this.peekCodePoint(0)===Be&&this.peekCodePoint(1)===ae&&this.peekCodePoint(2)===ae)return this.consumeCodePoint(),this.consumeCodePoint(),Et;break;case le:var u=this.peekCodePoint(0),l=this.peekCodePoint(1),w=this.peekCodePoint(2);if(ot(u,l,w)){o=this.consumeName();return{type:Q.AT_KEYWORD_TOKEN,value:o}}break;case Qe:return Nt;case jA:if(nt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case we:return mt;case de:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),lt;break;case ge:return gt;case Ue:return ht;case Me:case Xe:var d=this.peekCodePoint(0),g=this.peekCodePoint(1);return d!==He||!Ye(g)&&g!==he||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case fe:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),wt;if(this.peekCodePoint(0)===fe)return this.consumeCodePoint(),Qt;break;case Ce:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),dt;break;case Se:return vt}return At(A)?(this.consumeWhiteSpace(),Kt):Je(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):et(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:Q.DELIM_TOKEN,value:B(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return"undefined"===typeof 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(){var A=[],e=this.consumeCodePoint();while(Ye(e)&&A.length<6)A.push(e),e=this.consumeCodePoint();var t=!1;while(e===he&&A.length<6)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var r=parseInt(B.apply(void 0,A.map((function(A){return A===he?Oe:A}))),16),n=parseInt(B.apply(void 0,A.map((function(A){return A===he?ke:A}))),16);return{type:Q.UNICODE_RANGE_TOKEN,start:r,end:n}}var o=parseInt(B.apply(void 0,A),16);if(this.peekCodePoint(0)===ae&&Ye(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var i=[];while(Ye(e)&&i.length<6)i.push(e),e=this.consumeCodePoint();n=parseInt(B.apply(void 0,i),16);return{type:Q.UNICODE_RANGE_TOKEN,start:o,end:n}}return{type:Q.UNICODE_RANGE_TOKEN,start:o,end:o}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===oe?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===oe?(this.consumeCodePoint(),{type:Q.FUNCTION_TOKEN,value:A}):{type:Q.IDENT_TOKEN,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Se)return{type:Q.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(e===ne||e===$A){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===Q.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Se||this.peekCodePoint(0)===ie)?(this.consumeCodePoint(),{type:Q.URL_TOKEN,value:t.value}):(this.consumeBadUrlRemnants(),ft)}while(1){var r=this.consumeCodePoint();if(r===Se||r===ie)return{type:Q.URL_TOKEN,value:B.apply(void 0,A)};if(At(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Se||this.peekCodePoint(0)===ie?(this.consumeCodePoint(),{type:Q.URL_TOKEN,value:B.apply(void 0,A)}):(this.consumeBadUrlRemnants(),ft);if(r===$A||r===ne||r===oe||rt(r))return this.consumeBadUrlRemnants(),ft;if(r===jA){if(!nt(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ft;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){while(At(this.peekCodePoint(0)))this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){while(1){var A=this.consumeCodePoint();if(A===ie||A===Se)return;nt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){var e=6e4,t="";while(A>0){var r=Math.min(e,A);t+=B.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),t},A.prototype.consumeStringToken=function(A){var e="",t=0;do{var r=this._value[t];if(r===Se||void 0===r||r===A)return e+=this.consumeStringSlice(t),{type:Q.STRING_TOKEN,value:e};if(r===WA)return this._value.splice(0,t),Ct;if(r===jA){var n=this._value[t+1];n!==Se&&void 0!==n&&(n===WA?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):nt(r,n)&&(e+=this.consumeStringSlice(t),e+=B(this.consumeEscapedCodePoint()),t=-1))}t++}while(1)},A.prototype.consumeNumber=function(){var A=[],e=GA,t=this.peekCodePoint(0);t!==He&&t!==ae||A.push(this.consumeCodePoint());while(Je(this.peekCodePoint(0)))A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(t===ve&&Je(r)){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=JA;while(Je(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((t===Ve||t===xe)&&((r===He||r===ae)&&Je(n)||Je(r))){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=JA;while(Je(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}return[st(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),o=this.peekCodePoint(2);if(ot(r,n,o)){var i=this.consumeName();return{type:Q.DIMENSION_TOKEN,number:e,flags:t,unit:i}}return r===re?(this.consumeCodePoint(),{type:Q.PERCENTAGE_TOKEN,number:e,flags:t}):{type:Q.NUMBER_TOKEN,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Ye(A)){var e=B(A);while(Ye(this.peekCodePoint(0))&&e.length<6)e+=B(this.consumeCodePoint());At(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||We(t)||t>1114111?pe:t}return A===Se?pe:A},A.prototype.consumeName=function(){var A="";while(1){var e=this.consumeCodePoint();if(tt(e))A+=B(e);else{if(!nt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=B(this.consumeEscapedCodePoint())}}},A}(),bt=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new It;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(){var A=this.consumeToken();while(A.type===Q.WHITESPACE_TOKEN)A=this.consumeToken();if(A.type===Q.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(A.type===Q.WHITESPACE_TOKEN);if(A.type===Q.EOF_TOKEN)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){var A=[];while(1){var e=this.consumeComponentValue();if(e.type===Q.EOF_TOKEN)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case Q.LEFT_CURLY_BRACKET_TOKEN:case Q.LEFT_SQUARE_BRACKET_TOKEN:case Q.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(A.type);case Q.FUNCTION_TOKEN:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){var e={type:A,values:[]},t=this.consumeToken();while(1){if(t.type===Q.EOF_TOKEN||_t(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){var e={name:A.value,values:[],type:Q.FUNCTION};while(1){var t=this.consumeToken();if(t.type===Q.EOF_TOKEN||t.type===Q.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return"undefined"===typeof A?vt:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),Tt=function(A){return A.type===Q.DIMENSION_TOKEN},yt=function(A){return A.type===Q.NUMBER_TOKEN},Rt=function(A){return A.type===Q.IDENT_TOKEN},Lt=function(A){return A.type===Q.STRING_TOKEN},St=function(A,e){return Rt(A)&&A.value===e},Ot=function(A){return A.type!==Q.WHITESPACE_TOKEN},Dt=function(A){return A.type!==Q.WHITESPACE_TOKEN&&A.type!==Q.COMMA_TOKEN},xt=function(A){var e=[],t=[];return A.forEach((function(A){if(A.type===Q.COMMA_TOKEN){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}A.type!==Q.WHITESPACE_TOKEN&&t.push(A)})),t.length&&e.push(t),e},_t=function(A,e){return e===Q.LEFT_CURLY_BRACKET_TOKEN&&A.type===Q.RIGHT_CURLY_BRACKET_TOKEN||(e===Q.LEFT_SQUARE_BRACKET_TOKEN&&A.type===Q.RIGHT_SQUARE_BRACKET_TOKEN||e===Q.LEFT_PARENTHESIS_TOKEN&&A.type===Q.RIGHT_PARENTHESIS_TOKEN)},Mt=function(A){return A.type===Q.NUMBER_TOKEN||A.type===Q.DIMENSION_TOKEN},Pt=function(A){return A.type===Q.PERCENTAGE_TOKEN||Mt(A)},zt=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},Vt={type:Q.NUMBER_TOKEN,number:0,flags:GA},kt={type:Q.PERCENTAGE_TOKEN,number:50,flags:GA},Xt={type:Q.PERCENTAGE_TOKEN,number:100,flags:GA},Gt=function(A,e,t){var r=A[0],n=A[1];return[Jt(r,e),Jt("undefined"!==typeof n?n:r,t)]},Jt=function(A,e){if(A.type===Q.PERCENTAGE_TOKEN)return A.number/100*e;if(Tt(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},Wt="deg",Yt="grad",jt="rad",qt="turn",Zt={name:"angle",parse:function(A){if(A.type===Q.DIMENSION_TOKEN)switch(A.unit){case Wt:return Math.PI*A.number/180;case Yt:return Math.PI/200*A.number;case jt:return A.number;case qt:return 2*Math.PI*A.number}throw new Error("Unsupported angle type")}},$t=function(A){return A.type===Q.DIMENSION_TOKEN&&(A.unit===Wt||A.unit===Yt||A.unit===jt||A.unit===qt)},Ar=function(A){var e=A.filter(Rt).map((function(A){return A.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Vt,Vt];case"to top":case"bottom":return er(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Vt,Xt];case"to right":case"left":return er(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Xt,Xt];case"to bottom":case"top":return er(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Xt,Vt];case"to left":case"right":return er(270)}return 0},er=function(A){return Math.PI*A/180},tr={name:"color",parse:function(A){if(A.type===Q.FUNCTION){var e=lr[A.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(A.values)}if(A.type===Q.HASH_TOKEN){if(3===A.value.length){var t=A.value.substring(0,1),r=A.value.substring(1,2),n=A.value.substring(2,3);return or(parseInt(t+t,16),parseInt(r+r,16),parseInt(n+n,16),1)}if(4===A.value.length){t=A.value.substring(0,1),r=A.value.substring(1,2),n=A.value.substring(2,3);var o=A.value.substring(3,4);return or(parseInt(t+t,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(o+o,16)/255)}if(6===A.value.length){t=A.value.substring(0,2),r=A.value.substring(2,4),n=A.value.substring(4,6);return or(parseInt(t,16),parseInt(r,16),parseInt(n,16),1)}if(8===A.value.length){t=A.value.substring(0,2),r=A.value.substring(2,4),n=A.value.substring(4,6),o=A.value.substring(6,8);return or(parseInt(t,16),parseInt(r,16),parseInt(n,16),parseInt(o,16)/255)}}if(A.type===Q.IDENT_TOKEN){var i=Qr[A.value.toUpperCase()];if("undefined"!==typeof i)return i}return Qr.TRANSPARENT}},rr=function(A){return 0===(255&A)},nr=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},or=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},ir=function(A,e){if(A.type===Q.NUMBER_TOKEN)return A.number;if(A.type===Q.PERCENTAGE_TOKEN){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},sr=function(A){var e=A.filter(Dt);if(3===e.length){var t=e.map(ir),r=t[0],n=t[1],o=t[2];return or(r,n,o,1)}if(4===e.length){var i=e.map(ir),s=(r=i[0],n=i[1],o=i[2],i[3]);return or(r,n,o,s)}return 0};function ar(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 Br,cr,ur=function(A){var e=A.filter(Dt),t=e[0],r=e[1],n=e[2],o=e[3],i=(t.type===Q.NUMBER_TOKEN?er(t.number):Zt.parse(t))/(2*Math.PI),s=Pt(r)?r.number/100:0,a=Pt(n)?n.number/100:0,B="undefined"!==typeof o&&Pt(o)?Jt(o,1):1;if(0===s)return or(255*a,255*a,255*a,1);var c=a<=.5?a*(s+1):a+s-a*s,u=2*a-c,l=ar(u,c,i+1/3),w=ar(u,c,i),d=ar(u,c,i-1/3);return or(255*l,255*w,255*d,B)},lr={hsl:ur,hsla:ur,rgb:sr,rgba:sr},Qr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(A){A[A["VALUE"]=0]="VALUE",A[A["LIST"]=1]="LIST",A[A["IDENT_VALUE"]=2]="IDENT_VALUE",A[A["TYPE_VALUE"]=3]="TYPE_VALUE",A[A["TOKEN_VALUE"]=4]="TOKEN_VALUE"})(Br||(Br={})),function(A){A[A["BORDER_BOX"]=0]="BORDER_BOX",A[A["PADDING_BOX"]=1]="PADDING_BOX",A[A["CONTENT_BOX"]=2]="CONTENT_BOX"}(cr||(cr={}));var wr,dr={name:"background-clip",initialValue:"border-box",prefix:!1,type:Br.LIST,parse:function(A){return A.map((function(A){if(Rt(A))switch(A.value){case"padding-box":return cr.PADDING_BOX;case"content-box":return cr.CONTENT_BOX}return cr.BORDER_BOX}))}},gr={name:"background-color",initialValue:"transparent",prefix:!1,type:Br.TYPE_VALUE,format:"color"},hr=function(A){var e=tr.parse(A[0]),t=A[1];return t&&Pt(t)?{color:e,stop:t}:{color:e,stop:null}},Ur=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=Vt),null===r.stop&&(r.stop=Xt);for(var n=[],o=0,i=0;io?n.push(a):n.push(o),o=a}else n.push(null)}var B=null;for(i=0;iA.optimumDistance)?{optimumCorner:e,optimumDistance:s}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Fr=function(A,e,t,r,n){var o=0,i=0;switch(A.size){case nn.CLOSEST_SIDE:A.shape===rn.CIRCLE?o=i=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===rn.ELLIPSE&&(o=Math.min(Math.abs(e),Math.abs(e-r)),i=Math.min(Math.abs(t),Math.abs(t-n)));break;case nn.CLOSEST_CORNER:if(A.shape===rn.CIRCLE)o=i=Math.min(Er(e,t),Er(e,t-n),Er(e-r,t),Er(e-r,t-n));else if(A.shape===rn.ELLIPSE){var s=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),a=pr(r,n,e,t,!0),B=a[0],c=a[1];o=Er(B-e,(c-t)/s),i=s*o}break;case nn.FARTHEST_SIDE:A.shape===rn.CIRCLE?o=i=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===rn.ELLIPSE&&(o=Math.max(Math.abs(e),Math.abs(e-r)),i=Math.max(Math.abs(t),Math.abs(t-n)));break;case nn.FARTHEST_CORNER:if(A.shape===rn.CIRCLE)o=i=Math.max(Er(e,t),Er(e,t-n),Er(e-r,t),Er(e-r,t-n));else if(A.shape===rn.ELLIPSE){s=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var u=pr(r,n,e,t,!1);B=u[0],c=u[1];o=Er(B-e,(c-t)/s),i=s*o}break}return Array.isArray(A.size)&&(o=Jt(A.size[0],r),i=2===A.size.length?Jt(A.size[1],n):o),[o,i]},Hr=function(A){var e=er(180),t=[];return xt(A).forEach((function(A,r){if(0===r){var n=A[0];if(n.type===Q.IDENT_TOKEN&&"to"===n.value)return void(e=Ar(A));if($t(n))return void(e=Zt.parse(n))}var o=hr(A);t.push(o)})),{angle:e,stops:t,type:wr.LINEAR_GRADIENT}},Nr=function(A){var e=er(180),t=[];return xt(A).forEach((function(A,r){if(0===r){var n=A[0];if(n.type===Q.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(n.value))return void(e=Ar(A));if($t(n))return void(e=(Zt.parse(n)+er(270))%er(360))}var o=hr(A);t.push(o)})),{angle:e,stops:t,type:wr.LINEAR_GRADIENT}},mr=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(),o=Math.round(n.height);if(A.body.removeChild(r),o===e)return!0}}return!1},Kr=function(){return"undefined"!==typeof(new Image).crossOrigin},vr=function(){return"string"===typeof(new XMLHttpRequest).responseType},Ir=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),t.toDataURL()}catch(xe){return!1}return!0},br=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Tr=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,o=e.toDataURL();n.src=o;var i=yr(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Rr(i).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 i=A.createElement("div");return i.style.backgroundImage="url("+o+")",i.style.height=t+"px",br(n)?Rr(yr(t,t,0,0,i)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),br(r.getImageData(0,0,t,t).data)})).catch((function(){return!1}))},yr=function(A,e,t,r,n){var o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return i.setAttributeNS(null,"width",A.toString()),i.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(s),s.appendChild(n),i},Rr=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))}))},Lr={get SUPPORT_RANGE_BOUNDS(){var A=mr(document);return Object.defineProperty(Lr,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=Ir(document);return Object.defineProperty(Lr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?Tr(document):Promise.resolve(!1);return Object.defineProperty(Lr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=Kr();return Object.defineProperty(Lr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=vr();return Object.defineProperty(Lr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Lr,"SUPPORT_CORS_XHR",{value:A}),A}},Sr=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;e0&&setTimeout((function(){return e("Timed out ("+i._options.imageTimeout+"ms) loading image")}),i._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},A.prototype.has=function(A){return"undefined"!==typeof 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,o){var i=Lr.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;if(s.onload=function(){if(200===s.status)if("text"===i)n(s.response);else{var A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return o(A)}),!1),A.readAsDataURL(s.response)}else o("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=o,s.open("GET",t+"?url="+encodeURIComponent(A)+"&responseType="+i),"text"!==i&&s instanceof XMLHttpRequest&&(s.responseType=i),e._options.imageTimeout){var a=e._options.imageTimeout;s.timeout=a,s.ontimeout=function(){return o("Timed out ("+a+"ms) proxying "+r)}}s.send()}))},A}(),xr=/^data:image\/svg\+xml/i,_r=/^data:image\/.*;base64,/i,Mr=/^data:image\/.*/i,Pr=function(A){return Lr.SUPPORT_SVG_DRAWING||!Xr(A)},zr=function(A){return Mr.test(A)},Vr=function(A){return _r.test(A)},kr=function(A){return"blob"===A.substr(0,4)},Xr=function(A){return"svg"===A.substr(-3).toLowerCase()||xr.test(A)},Gr=function(A){var e=er(180),t=[],r=wr.LINEAR_GRADIENT,n=rn.CIRCLE,o=nn.FARTHEST_CORNER,i=[];return xt(A).forEach((function(A,e){var n=A[0];if(0===e){if(Rt(n)&&"linear"===n.value)return void(r=wr.LINEAR_GRADIENT);if(Rt(n)&&"radial"===n.value)return void(r=wr.RADIAL_GRADIENT)}if(n.type===Q.FUNCTION)if("from"===n.name){var o=tr.parse(n.values[0]);t.push({stop:Vt,color:o})}else if("to"===n.name){o=tr.parse(n.values[0]);t.push({stop:Xt,color:o})}else if("color-stop"===n.name){var i=n.values.filter(Dt);if(2===i.length){o=tr.parse(i[1]);var s=i[0];yt(s)&&t.push({stop:{type:Q.PERCENTAGE_TOKEN,number:100*s.number,flags:s.flags},color:o})}}})),r===wr.LINEAR_GRADIENT?{angle:(e+er(180))%er(360),stops:t,type:r}:{size:o,shape:n,stops:t,position:i,type:r}},Jr="closest-side",Wr="farthest-side",Yr="closest-corner",jr="farthest-corner",qr="circle",Zr="ellipse",$r="cover",An="contain",en=function(A){var e=rn.CIRCLE,t=nn.FARTHEST_CORNER,r=[],n=[];return xt(A).forEach((function(A,o){var i=!0;if(0===o){var s=!1;i=A.reduce((function(A,r){if(s)if(Rt(r))switch(r.value){case"center":return n.push(kt),A;case"top":case"left":return n.push(Vt),A;case"right":case"bottom":return n.push(Xt),A}else(Pt(r)||Mt(r))&&n.push(r);else if(Rt(r))switch(r.value){case qr:return e=rn.CIRCLE,!1;case Zr:return e=rn.ELLIPSE,!1;case"at":return s=!0,!1;case Jr:return t=nn.CLOSEST_SIDE,!1;case $r:case Wr:return t=nn.FARTHEST_SIDE,!1;case An:case Yr:return t=nn.CLOSEST_CORNER,!1;case jr:return t=nn.FARTHEST_CORNER,!1}else if(Mt(r)||Pt(r))return Array.isArray(t)||(t=[]),t.push(r),!1;return A}),i)}if(i){var a=hr(A);r.push(a)}})),{size:t,shape:e,stops:r,position:n,type:wr.RADIAL_GRADIENT}},tn=function(A){var e=rn.CIRCLE,t=nn.FARTHEST_CORNER,r=[],n=[];return xt(A).forEach((function(A,o){var i=!0;if(0===o?i=A.reduce((function(A,e){if(Rt(e))switch(e.value){case"center":return n.push(kt),!1;case"top":case"left":return n.push(Vt),!1;case"right":case"bottom":return n.push(Xt),!1}else if(Pt(e)||Mt(e))return n.push(e),!1;return A}),i):1===o&&(i=A.reduce((function(A,r){if(Rt(r))switch(r.value){case qr:return e=rn.CIRCLE,!1;case Zr:return e=rn.ELLIPSE,!1;case An:case Jr:return t=nn.CLOSEST_SIDE,!1;case Wr:return t=nn.FARTHEST_SIDE,!1;case Yr:return t=nn.CLOSEST_CORNER,!1;case $r:case jr:return t=nn.FARTHEST_CORNER,!1}else if(Mt(r)||Pt(r))return Array.isArray(t)||(t=[]),t.push(r),!1;return A}),i)),i){var s=hr(A);r.push(s)}})),{size:t,shape:e,stops:r,position:n,type:wr.RADIAL_GRADIENT}};(function(A){A[A["URL"]=0]="URL",A[A["LINEAR_GRADIENT"]=1]="LINEAR_GRADIENT",A[A["RADIAL_GRADIENT"]=2]="RADIAL_GRADIENT"})(wr||(wr={}));var rn,nn,on=function(A){return A.type===wr.LINEAR_GRADIENT},sn=function(A){return A.type===wr.RADIAL_GRADIENT};(function(A){A[A["CIRCLE"]=0]="CIRCLE",A[A["ELLIPSE"]=1]="ELLIPSE"})(rn||(rn={})),function(A){A[A["CLOSEST_SIDE"]=0]="CLOSEST_SIDE",A[A["FARTHEST_SIDE"]=1]="FARTHEST_SIDE",A[A["CLOSEST_CORNER"]=2]="CLOSEST_CORNER",A[A["FARTHEST_CORNER"]=3]="FARTHEST_CORNER"}(nn||(nn={}));var an={name:"image",parse:function(A){if(A.type===Q.URL_TOKEN){var e={url:A.value,type:wr.URL};return Or.getInstance().addImage(A.value),e}if(A.type===Q.FUNCTION){var t=un[A.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(A.values)}throw new Error("Unsupported image type")}};function Bn(A){return A.type!==Q.FUNCTION||un[A.name]}var cn,un={"linear-gradient":Hr,"-moz-linear-gradient":Nr,"-ms-linear-gradient":Nr,"-o-linear-gradient":Nr,"-webkit-linear-gradient":Nr,"radial-gradient":en,"-moz-radial-gradient":tn,"-ms-radial-gradient":tn,"-o-radial-gradient":tn,"-webkit-radial-gradient":tn,"-webkit-gradient":Gr},ln={name:"background-image",initialValue:"none",type:Br.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var e=A[0];return e.type===Q.IDENT_TOKEN&&"none"===e.value?[]:A.filter((function(A){return Dt(A)&&Bn(A)})).map(an.parse)}},Qn={name:"background-origin",initialValue:"border-box",prefix:!1,type:Br.LIST,parse:function(A){return A.map((function(A){if(Rt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},wn={name:"background-position",initialValue:"0% 0%",type:Br.LIST,prefix:!1,parse:function(A){return xt(A).map((function(A){return A.filter(Pt)})).map(zt)}};(function(A){A[A["REPEAT"]=0]="REPEAT",A[A["NO_REPEAT"]=1]="NO_REPEAT",A[A["REPEAT_X"]=2]="REPEAT_X",A[A["REPEAT_Y"]=3]="REPEAT_Y"})(cn||(cn={}));var dn,gn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:Br.LIST,parse:function(A){return xt(A).map((function(A){return A.filter(Rt).map((function(A){return A.value})).join(" ")})).map(hn)}},hn=function(A){switch(A){case"no-repeat":return cn.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return cn.REPEAT_X;case"repeat-y":case"no-repeat repeat":return cn.REPEAT_Y;case"repeat":default:return cn.REPEAT}};(function(A){A["AUTO"]="auto",A["CONTAIN"]="contain",A["COVER"]="cover"})(dn||(dn={}));var Un,fn={name:"background-size",initialValue:"0",prefix:!1,type:Br.LIST,parse:function(A){return xt(A).map((function(A){return A.filter(Cn)}))}},Cn=function(A){return Rt(A)||Pt(A)},En=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:Br.TYPE_VALUE,format:"color"}},pn=En("top"),Fn=En("right"),Hn=En("bottom"),Nn=En("left"),mn=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:Br.LIST,parse:function(A){return zt(A.filter(Pt))}}},Kn=mn("top-left"),vn=mn("top-right"),In=mn("bottom-right"),bn=mn("bottom-left");(function(A){A[A["NONE"]=0]="NONE",A[A["SOLID"]=1]="SOLID"})(Un||(Un={}));var Tn,yn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:Br.IDENT_VALUE,parse:function(A){switch(A){case"none":return Un.NONE}return Un.SOLID}}},Rn=yn("top"),Ln=yn("right"),Sn=yn("bottom"),On=yn("left"),Dn=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:Br.VALUE,prefix:!1,parse:function(A){return Tt(A)?A.number:0}}},xn=Dn("top"),_n=Dn("right"),Mn=Dn("bottom"),Pn=Dn("left"),zn={name:"color",initialValue:"transparent",prefix:!1,type:Br.TYPE_VALUE,format:"color"},Vn={name:"display",initialValue:"inline-block",prefix:!1,type:Br.LIST,parse:function(A){return A.filter(Rt).reduce((function(A,e){return A|kn(e.value)}),0)}},kn=function(A){switch(A){case"block":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};(function(A){A[A["NONE"]=0]="NONE",A[A["LEFT"]=1]="LEFT",A[A["RIGHT"]=2]="RIGHT",A[A["INLINE_START"]=3]="INLINE_START",A[A["INLINE_END"]=4]="INLINE_END"})(Tn||(Tn={}));var Xn,Gn={name:"float",initialValue:"none",prefix:!1,type:Br.IDENT_VALUE,parse:function(A){switch(A){case"left":return Tn.LEFT;case"right":return Tn.RIGHT;case"inline-start":return Tn.INLINE_START;case"inline-end":return Tn.INLINE_END}return Tn.NONE}},Jn={name:"letter-spacing",initialValue:"0",prefix:!1,type:Br.VALUE,parse:function(A){return A.type===Q.IDENT_TOKEN&&"normal"===A.value?0:A.type===Q.NUMBER_TOKEN||A.type===Q.DIMENSION_TOKEN?A.number:0}};(function(A){A["NORMAL"]="normal",A["STRICT"]="strict"})(Xn||(Xn={}));var Wn,Yn={name:"line-break",initialValue:"normal",prefix:!1,type:Br.IDENT_VALUE,parse:function(A){switch(A){case"strict":return Xn.STRICT;case"normal":default:return Xn.NORMAL}}},jn={name:"line-height",initialValue:"normal",prefix:!1,type:Br.TOKEN_VALUE},qn=function(A,e){return Rt(A)&&"normal"===A.value?1.2*e:A.type===Q.NUMBER_TOKEN?e*A.number:Pt(A)?Jt(A,e):e},Zn={name:"list-style-image",initialValue:"none",type:Br.VALUE,prefix:!1,parse:function(A){return A.type===Q.IDENT_TOKEN&&"none"===A.value?null:an.parse(A)}};(function(A){A[A["INSIDE"]=0]="INSIDE",A[A["OUTSIDE"]=1]="OUTSIDE"})(Wn||(Wn={}));var $n,Ao={name:"list-style-position",initialValue:"outside",prefix:!1,type:Br.IDENT_VALUE,parse:function(A){switch(A){case"inside":return Wn.INSIDE;case"outside":default:return Wn.OUTSIDE}}};(function(A){A[A["NONE"]=-1]="NONE",A[A["DISC"]=0]="DISC",A[A["CIRCLE"]=1]="CIRCLE",A[A["SQUARE"]=2]="SQUARE",A[A["DECIMAL"]=3]="DECIMAL",A[A["CJK_DECIMAL"]=4]="CJK_DECIMAL",A[A["DECIMAL_LEADING_ZERO"]=5]="DECIMAL_LEADING_ZERO",A[A["LOWER_ROMAN"]=6]="LOWER_ROMAN",A[A["UPPER_ROMAN"]=7]="UPPER_ROMAN",A[A["LOWER_GREEK"]=8]="LOWER_GREEK",A[A["LOWER_ALPHA"]=9]="LOWER_ALPHA",A[A["UPPER_ALPHA"]=10]="UPPER_ALPHA",A[A["ARABIC_INDIC"]=11]="ARABIC_INDIC",A[A["ARMENIAN"]=12]="ARMENIAN",A[A["BENGALI"]=13]="BENGALI",A[A["CAMBODIAN"]=14]="CAMBODIAN",A[A["CJK_EARTHLY_BRANCH"]=15]="CJK_EARTHLY_BRANCH",A[A["CJK_HEAVENLY_STEM"]=16]="CJK_HEAVENLY_STEM",A[A["CJK_IDEOGRAPHIC"]=17]="CJK_IDEOGRAPHIC",A[A["DEVANAGARI"]=18]="DEVANAGARI",A[A["ETHIOPIC_NUMERIC"]=19]="ETHIOPIC_NUMERIC",A[A["GEORGIAN"]=20]="GEORGIAN",A[A["GUJARATI"]=21]="GUJARATI",A[A["GURMUKHI"]=22]="GURMUKHI",A[A["HEBREW"]=22]="HEBREW",A[A["HIRAGANA"]=23]="HIRAGANA",A[A["HIRAGANA_IROHA"]=24]="HIRAGANA_IROHA",A[A["JAPANESE_FORMAL"]=25]="JAPANESE_FORMAL",A[A["JAPANESE_INFORMAL"]=26]="JAPANESE_INFORMAL",A[A["KANNADA"]=27]="KANNADA",A[A["KATAKANA"]=28]="KATAKANA",A[A["KATAKANA_IROHA"]=29]="KATAKANA_IROHA",A[A["KHMER"]=30]="KHMER",A[A["KOREAN_HANGUL_FORMAL"]=31]="KOREAN_HANGUL_FORMAL",A[A["KOREAN_HANJA_FORMAL"]=32]="KOREAN_HANJA_FORMAL",A[A["KOREAN_HANJA_INFORMAL"]=33]="KOREAN_HANJA_INFORMAL",A[A["LAO"]=34]="LAO",A[A["LOWER_ARMENIAN"]=35]="LOWER_ARMENIAN",A[A["MALAYALAM"]=36]="MALAYALAM",A[A["MONGOLIAN"]=37]="MONGOLIAN",A[A["MYANMAR"]=38]="MYANMAR",A[A["ORIYA"]=39]="ORIYA",A[A["PERSIAN"]=40]="PERSIAN",A[A["SIMP_CHINESE_FORMAL"]=41]="SIMP_CHINESE_FORMAL",A[A["SIMP_CHINESE_INFORMAL"]=42]="SIMP_CHINESE_INFORMAL",A[A["TAMIL"]=43]="TAMIL",A[A["TELUGU"]=44]="TELUGU",A[A["THAI"]=45]="THAI",A[A["TIBETAN"]=46]="TIBETAN",A[A["TRAD_CHINESE_FORMAL"]=47]="TRAD_CHINESE_FORMAL",A[A["TRAD_CHINESE_INFORMAL"]=48]="TRAD_CHINESE_INFORMAL",A[A["UPPER_ARMENIAN"]=49]="UPPER_ARMENIAN",A[A["DISCLOSURE_OPEN"]=50]="DISCLOSURE_OPEN",A[A["DISCLOSURE_CLOSED"]=51]="DISCLOSURE_CLOSED"})($n||($n={}));var eo,to={name:"list-style-type",initialValue:"none",prefix:!1,type:Br.IDENT_VALUE,parse:function(A){switch(A){case"disc":return $n.DISC;case"circle":return $n.CIRCLE;case"square":return $n.SQUARE;case"decimal":return $n.DECIMAL;case"cjk-decimal":return $n.CJK_DECIMAL;case"decimal-leading-zero":return $n.DECIMAL_LEADING_ZERO;case"lower-roman":return $n.LOWER_ROMAN;case"upper-roman":return $n.UPPER_ROMAN;case"lower-greek":return $n.LOWER_GREEK;case"lower-alpha":return $n.LOWER_ALPHA;case"upper-alpha":return $n.UPPER_ALPHA;case"arabic-indic":return $n.ARABIC_INDIC;case"armenian":return $n.ARMENIAN;case"bengali":return $n.BENGALI;case"cambodian":return $n.CAMBODIAN;case"cjk-earthly-branch":return $n.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return $n.CJK_HEAVENLY_STEM;case"cjk-ideographic":return $n.CJK_IDEOGRAPHIC;case"devanagari":return $n.DEVANAGARI;case"ethiopic-numeric":return $n.ETHIOPIC_NUMERIC;case"georgian":return $n.GEORGIAN;case"gujarati":return $n.GUJARATI;case"gurmukhi":return $n.GURMUKHI;case"hebrew":return $n.HEBREW;case"hiragana":return $n.HIRAGANA;case"hiragana-iroha":return $n.HIRAGANA_IROHA;case"japanese-formal":return $n.JAPANESE_FORMAL;case"japanese-informal":return $n.JAPANESE_INFORMAL;case"kannada":return $n.KANNADA;case"katakana":return $n.KATAKANA;case"katakana-iroha":return $n.KATAKANA_IROHA;case"khmer":return $n.KHMER;case"korean-hangul-formal":return $n.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return $n.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return $n.KOREAN_HANJA_INFORMAL;case"lao":return $n.LAO;case"lower-armenian":return $n.LOWER_ARMENIAN;case"malayalam":return $n.MALAYALAM;case"mongolian":return $n.MONGOLIAN;case"myanmar":return $n.MYANMAR;case"oriya":return $n.ORIYA;case"persian":return $n.PERSIAN;case"simp-chinese-formal":return $n.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return $n.SIMP_CHINESE_INFORMAL;case"tamil":return $n.TAMIL;case"telugu":return $n.TELUGU;case"thai":return $n.THAI;case"tibetan":return $n.TIBETAN;case"trad-chinese-formal":return $n.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return $n.TRAD_CHINESE_INFORMAL;case"upper-armenian":return $n.UPPER_ARMENIAN;case"disclosure-open":return $n.DISCLOSURE_OPEN;case"disclosure-closed":return $n.DISCLOSURE_CLOSED;case"none":default:return $n.NONE}}},ro=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:Br.TOKEN_VALUE}},no=ro("top"),oo=ro("right"),io=ro("bottom"),so=ro("left");(function(A){A[A["VISIBLE"]=0]="VISIBLE",A[A["HIDDEN"]=1]="HIDDEN",A[A["SCROLL"]=2]="SCROLL",A[A["AUTO"]=3]="AUTO"})(eo||(eo={}));var ao,Bo={name:"overflow",initialValue:"visible",prefix:!1,type:Br.LIST,parse:function(A){return A.filter(Rt).map((function(A){switch(A.value){case"hidden":return eo.HIDDEN;case"scroll":return eo.SCROLL;case"auto":return eo.AUTO;case"visible":default:return eo.VISIBLE}}))}};(function(A){A["NORMAL"]="normal",A["BREAK_WORD"]="break-word"})(ao||(ao={}));var co,uo={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:Br.IDENT_VALUE,parse:function(A){switch(A){case"break-word":return ao.BREAK_WORD;case"normal":default:return ao.NORMAL}}},lo=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:Br.TYPE_VALUE,format:"length-percentage"}},Qo=lo("top"),wo=lo("right"),go=lo("bottom"),ho=lo("left");(function(A){A[A["LEFT"]=0]="LEFT",A[A["CENTER"]=1]="CENTER",A[A["RIGHT"]=2]="RIGHT"})(co||(co={}));var Uo,fo={name:"text-align",initialValue:"left",prefix:!1,type:Br.IDENT_VALUE,parse:function(A){switch(A){case"right":return co.RIGHT;case"center":case"justify":return co.CENTER;case"left":default:return co.LEFT}}};(function(A){A[A["STATIC"]=0]="STATIC",A[A["RELATIVE"]=1]="RELATIVE",A[A["ABSOLUTE"]=2]="ABSOLUTE",A[A["FIXED"]=3]="FIXED",A[A["STICKY"]=4]="STICKY"})(Uo||(Uo={}));var Co,Eo={name:"position",initialValue:"static",prefix:!1,type:Br.IDENT_VALUE,parse:function(A){switch(A){case"relative":return Uo.RELATIVE;case"absolute":return Uo.ABSOLUTE;case"fixed":return Uo.FIXED;case"sticky":return Uo.STICKY}return Uo.STATIC}},po={name:"text-shadow",initialValue:"none",type:Br.LIST,prefix:!1,parse:function(A){return 1===A.length&&St(A[0],"none")?[]:xt(A).map((function(A){for(var e={color:Qr.TRANSPARENT,offsetX:Vt,offsetY:Vt,blur:Vt},t=0,r=0;r1?1:0],this.overflowWrap=ri(uo,A.overflowWrap),this.paddingTop=ri(Qo,A.paddingTop),this.paddingRight=ri(wo,A.paddingRight),this.paddingBottom=ri(go,A.paddingBottom),this.paddingLeft=ri(ho,A.paddingLeft),this.position=ri(Eo,A.position),this.textAlign=ri(fo,A.textAlign),this.textDecorationColor=ri(xo,A.textDecorationColor||A.color),this.textDecorationLine=ri(_o,A.textDecorationLine),this.textShadow=ri(po,A.textShadow),this.textTransform=ri(Ho,A.textTransform),this.transform=ri(No,A.transform),this.transformOrigin=ri(To,A.transformOrigin),this.visibility=ri(Ro,A.visibility),this.wordBreak=ri(So,A.wordBreak),this.zIndex=ri(Oo,A.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Fo.VISIBLE},A.prototype.isTransparent=function(){return rr(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return this.position!==Uo.STATIC},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==Tn.NONE},A.prototype.isInlineLevel=function(){return Jo(this.display,4)||Jo(this.display,33554432)||Jo(this.display,268435456)||Jo(this.display,536870912)||Jo(this.display,67108864)||Jo(this.display,134217728)},A}(),ei=function(){function A(A){this.content=ri(Wo,A.content),this.quotes=ri(qo,A.quotes)}return A}(),ti=function(){function A(A){this.counterIncrement=ri(Yo,A.counterIncrement),this.counterReset=ri(jo,A.counterReset)}return A}(),ri=function(A,e){var t=new It,r=null!==e&&"undefined"!==typeof e?e.toString():A.initialValue;t.write(r);var n=new bt(t.read());switch(A.type){case Br.IDENT_VALUE:var o=n.parseComponentValue();return A.parse(Rt(o)?o.value:A.initialValue);case Br.VALUE:return A.parse(n.parseComponentValue());case Br.LIST:return A.parse(n.parseComponentValues());case Br.TOKEN_VALUE:return n.parseComponentValue();case Br.TYPE_VALUE:switch(A.format){case"angle":return Zt.parse(n.parseComponentValue());case"color":return tr.parse(n.parseComponentValue());case"image":return an.parse(n.parseComponentValue());case"length":var i=n.parseComponentValue();return Mt(i)?i:Vt;case"length-percentage":var s=n.parseComponentValue();return Pt(s)?s:Vt}}throw new Error("Attempting to parse unsupported css format type "+A.format)},ni=function(){function A(A){this.styles=new Ai(window.getComputedStyle(A,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&Pi(A)&&(A.style.transform="none"),this.bounds=i(A),this.flags=0}return A}(),oi=function(){function A(A,e){this.text=A,this.bounds=e}return A}(),ii=function(A,e,t){var r=Bi(A,e),n=[],o=0;return r.forEach((function(A){if(e.textDecorationLine.length||A.trim().length>0)if(Lr.SUPPORT_RANGE_BOUNDS)n.push(new oi(A,ai(t,o,A.length)));else{var r=t.splitText(A.length);n.push(new oi(A,si(t))),t=r}else Lr.SUPPORT_RANGE_BOUNDS||(t=t.splitText(A.length));o+=A.length})),n},si=function(A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var r=A.parentNode;if(r){r.replaceChild(t,A);var n=i(t);return t.firstChild&&r.replaceChild(t.firstChild,t),n}}return new o(0,0,0,0)},ai=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),o.fromClientRect(n.getBoundingClientRect())},Bi=function(A,e){return 0!==e.letterSpacing?a(A).map((function(A){return B(A)})):ci(A,e)},ci=function(A,e){var t,r=VA(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap===ao.BREAK_WORD?"break-word":e.wordBreak}),n=[];while(!(t=r.next()).done)t.value&&n.push(t.value.slice());return n},ui=function(){function A(A,e){this.text=li(A.data,e.textTransform),this.textBounds=ii(this.text,e,A)}return A}(),li=function(A,e){switch(e){case Co.LOWERCASE:return A.toLowerCase();case Co.CAPITALIZE:return A.replace(Qi,wi);case Co.UPPERCASE:return A.toUpperCase();default:return A}},Qi=/(^|\s|:|-|\(|\))([a-z])/g,wi=function(A,e,t){return A.length>0?e+t.toUpperCase():A},di=function(A){function t(e){var t=A.call(this,e)||this;return t.src=e.currentSrc||e.src,t.intrinsicWidth=e.naturalWidth,t.intrinsicHeight=e.naturalHeight,Or.getInstance().addImage(t.src),t}return e(t,A),t}(ni),gi=function(A){function t(e){var t=A.call(this,e)||this;return t.canvas=e,t.intrinsicWidth=e.width,t.intrinsicHeight=e.height,t}return e(t,A),t}(ni),hi=function(A){function t(e){var t=A.call(this,e)||this,r=new XMLSerializer;return t.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,Or.getInstance().addImage(t.svg),t}return e(t,A),t}(ni),Ui=function(A){function t(e){var t=A.call(this,e)||this;return t.value=e.value,t}return e(t,A),t}(ni),fi=function(A){function t(e){var t=A.call(this,e)||this;return t.start=e.start,t.reversed="boolean"===typeof e.reversed&&!0===e.reversed,t}return e(t,A),t}(ni),Ci=[{type:Q.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Ei=[{type:Q.PERCENTAGE_TOKEN,flags:0,number:50}],pi=function(A){return A.width>A.height?new o(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width0)t.textNodes.push(new ui(n,t.styles));else if(Mi(n)){var i=Si(n);i.styles.isVisible()&&(Di(n,i,r)?i.flags|=4:xi(i.styles)&&(i.flags|=2),-1!==Ri.indexOf(n.tagName)&&(i.flags|=8),t.elements.push(i),$i(n)||Gi(n)||As(n)||A(n,i,r))}},Si=function(A){return Yi(A)?new di(A):Wi(A)?new gi(A):Gi(A)?new hi(A):zi(A)?new Ui(A):Vi(A)?new fi(A):ki(A)?new vi(A):As(A)?new Ii(A):$i(A)?new bi(A):ji(A)?new yi(A):new ni(A)},Oi=function(A){var e=Si(A);return e.flags|=4,Li(A,e,e),e},Di=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ji(A)&&t.styles.isTransparent()},xi=function(A){return A.isPositioned()||A.isFloating()},_i=function(A){return A.nodeType===Node.TEXT_NODE},Mi=function(A){return A.nodeType===Node.ELEMENT_NODE},Pi=function(A){return"undefined"!==typeof A.style},zi=function(A){return"LI"===A.tagName},Vi=function(A){return"OL"===A.tagName},ki=function(A){return"INPUT"===A.tagName},Xi=function(A){return"HTML"===A.tagName},Gi=function(A){return"svg"===A.tagName},Ji=function(A){return"BODY"===A.tagName},Wi=function(A){return"CANVAS"===A.tagName},Yi=function(A){return"IMG"===A.tagName},ji=function(A){return"IFRAME"===A.tagName},qi=function(A){return"STYLE"===A.tagName},Zi=function(A){return"SCRIPT"===A.tagName},$i=function(A){return"TEXTAREA"===A.tagName},As=function(A){return"SELECT"===A.tagName},es=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[Math.max(0,t.length-1)]+=A.increment)}));var o=[];return n&&r.forEach((function(A){var t=e.counters[A.counter];o.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),o},A}(),ts={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},rs={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ns={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},os={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},is=function(A,e,t,r,n,o){return At?fs(A,n,o.length>0):r.integers.reduce((function(e,t,n){while(A>=t)A-=t,e+=r.values[n];return e}),"")+o},ss=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},as=function(A,e,t,r,n){var o=t-e+1;return(A<0?"-":"")+(ss(Math.abs(A),o,r,(function(A){return B(Math.floor(A%o)+e)}))+n)},Bs=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return ss(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},cs=1,us=2,ls=4,Qs=8,ws=function(A,e,t,r,n,o){if(A<-9999||A>9999)return fs(A,$n.CJK_DECIMAL,n.length>0);var i=Math.abs(A),s=n;if(0===i)return e[0]+s;for(var a=0;i>0&&a<=4;a++){var B=i%10;0===B&&Jo(o,cs)&&""!==s?s=e[B]+s:B>1||1===B&&0===a||1===B&&1===a&&Jo(o,us)||1===B&&1===a&&Jo(o,ls)&&A>100||1===B&&a>1&&Jo(o,Qs)?s=e[B]+(a>0?t[a-1]:"")+s:1===B&&a>0&&(s=t[a-1]+s),i=Math.floor(i/10)}return(A<0?r:"")+s},ds="十百千萬",gs="拾佰仟萬",hs="マイナス",Us="마이너스",fs=function(A,e,t){var r=t?". ":"",n=t?"、":"",o=t?", ":"",i=t?" ":"";switch(e){case $n.DISC:return"•"+i;case $n.CIRCLE:return"◦"+i;case $n.SQUARE:return"◾"+i;case $n.DECIMAL_LEADING_ZERO:var s=as(A,48,57,!0,r);return s.length<4?"0"+s:s;case $n.CJK_DECIMAL:return Bs(A,"〇一二三四五六七八九",n);case $n.LOWER_ROMAN:return is(A,1,3999,ts,$n.DECIMAL,r).toLowerCase();case $n.UPPER_ROMAN:return is(A,1,3999,ts,$n.DECIMAL,r);case $n.LOWER_GREEK:return as(A,945,969,!1,r);case $n.LOWER_ALPHA:return as(A,97,122,!1,r);case $n.UPPER_ALPHA:return as(A,65,90,!1,r);case $n.ARABIC_INDIC:return as(A,1632,1641,!0,r);case $n.ARMENIAN:case $n.UPPER_ARMENIAN:return is(A,1,9999,rs,$n.DECIMAL,r);case $n.LOWER_ARMENIAN:return is(A,1,9999,rs,$n.DECIMAL,r).toLowerCase();case $n.BENGALI:return as(A,2534,2543,!0,r);case $n.CAMBODIAN:case $n.KHMER:return as(A,6112,6121,!0,r);case $n.CJK_EARTHLY_BRANCH:return Bs(A,"子丑寅卯辰巳午未申酉戌亥",n);case $n.CJK_HEAVENLY_STEM:return Bs(A,"甲乙丙丁戊己庚辛壬癸",n);case $n.CJK_IDEOGRAPHIC:case $n.TRAD_CHINESE_INFORMAL:return ws(A,"零一二三四五六七八九",ds,"負",n,us|ls|Qs);case $n.TRAD_CHINESE_FORMAL:return ws(A,"零壹貳參肆伍陸柒捌玖",gs,"負",n,cs|us|ls|Qs);case $n.SIMP_CHINESE_INFORMAL:return ws(A,"零一二三四五六七八九",ds,"负",n,us|ls|Qs);case $n.SIMP_CHINESE_FORMAL:return ws(A,"零壹贰叁肆伍陆柒捌玖",gs,"负",n,cs|us|ls|Qs);case $n.JAPANESE_INFORMAL:return ws(A,"〇一二三四五六七八九","十百千万",hs,n,0);case $n.JAPANESE_FORMAL:return ws(A,"零壱弐参四伍六七八九","拾百千万",hs,n,cs|us|ls);case $n.KOREAN_HANGUL_FORMAL:return ws(A,"영일이삼사오육칠팔구","십백천만",Us,o,cs|us|ls);case $n.KOREAN_HANJA_INFORMAL:return ws(A,"零一二三四五六七八九","十百千萬",Us,o,0);case $n.KOREAN_HANJA_FORMAL:return ws(A,"零壹貳參四五六七八九","拾百千",Us,o,cs|us|ls);case $n.DEVANAGARI:return as(A,2406,2415,!0,r);case $n.GEORGIAN:return is(A,1,19999,os,$n.DECIMAL,r);case $n.GUJARATI:return as(A,2790,2799,!0,r);case $n.GURMUKHI:return as(A,2662,2671,!0,r);case $n.HEBREW:return is(A,1,10999,ns,$n.DECIMAL,r);case $n.HIRAGANA:return Bs(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case $n.HIRAGANA_IROHA:return Bs(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case $n.KANNADA:return as(A,3302,3311,!0,r);case $n.KATAKANA:return Bs(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case $n.KATAKANA_IROHA:return Bs(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case $n.LAO:return as(A,3792,3801,!0,r);case $n.MONGOLIAN:return as(A,6160,6169,!0,r);case $n.MYANMAR:return as(A,4160,4169,!0,r);case $n.ORIYA:return as(A,2918,2927,!0,r);case $n.PERSIAN:return as(A,1776,1785,!0,r);case $n.TAMIL:return as(A,3046,3055,!0,r);case $n.TELUGU:return as(A,3174,3183,!0,r);case $n.THAI:return as(A,3664,3673,!0,r);case $n.TIBETAN:return as(A,3872,3881,!0,r);case $n.DECIMAL:default:return as(A,48,57,!0,r)}},Cs="data-html2canvas-ignore",Es=function(){function A(A,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=A,this.counters=new es,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement)}return A.prototype.toIFrame=function(A,e){var t=this,o=Fs(A,e);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=o.contentWindow,B=a.document,c=Hs(o).then((function(){return r(t,void 0,void 0,(function(){var A;return n(this,(function(t){switch(t.label){case 0:return this.scrolledElements.forEach(vs),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(B.documentElement.style.top=-e.top+"px",B.documentElement.style.left=-e.left+"px",B.documentElement.style.position="absolute")),A=this.options.onclone,"undefined"===typeof this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:B.fonts&&B.fonts.ready?[4,B.fonts.ready]:[3,2];case 1:t.sent(),t.label=2;case 2:return"function"===typeof A?[2,Promise.resolve().then((function(){return A(B)})).then((function(){return o}))]:[2,o]}}))}))}));return B.open(),B.write(ms(document.doctype)+""),Ks(this.referenceElement.ownerDocument,i,s),B.replaceChild(B.adoptNode(this.documentElement),B.documentElement),B.close(),c},A.prototype.createElementClone=function(A){return Wi(A)?this.createCanvasClone(A):qi(A)?this.createStyleClone(A):A.cloneNode(!1)},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(xe){if(Sr.getInstance(this.options.id).error("Unable to access cssRules property",xe),"SecurityError"!==xe.name)throw xe}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){if(this.options.inlineImages&&A.ownerDocument){var e=A.ownerDocument.createElement("img");try{return e.src=A.toDataURL(),e}catch(xe){Sr.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var t=A.cloneNode(!1);try{t.width=A.width,t.height=A.height;var r=A.getContext("2d"),n=t.getContext("2d");return n&&(r?n.putImageData(r.getImageData(0,0,A.width,A.height),0,0):n.drawImage(A,0,0)),t}catch(xe){}return t},A.prototype.cloneNode=function(A){if(_i(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(Pi(A)&&e){var t=this.createElementClone(A),r=e.getComputedStyle(A),n=e.getComputedStyle(A,":before"),o=e.getComputedStyle(A,":after");this.referenceElement===A&&(this.clonedReferenceElement=t),Ji(t)&&Ls(t);for(var i=this.counters.parse(new ti(r)),s=this.resolvePseudoContent(A,t,n,Xo.BEFORE),a=A.firstChild;a;a=a.nextSibling)Mi(a)&&(Zi(a)||a.hasAttribute(Cs)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(a))||this.options.copyStyles&&Mi(a)&&qi(a)||t.appendChild(this.cloneNode(a));s&&t.insertBefore(s,t.firstChild);var B=this.resolvePseudoContent(A,t,o,Xo.AFTER);return B&&t.appendChild(B),this.counters.pop(i),r&&this.options.copyStyles&&!ji(A)&&Ns(r,t),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([t,A.scrollLeft,A.scrollTop]),($i(A)||As(A))&&($i(t)||As(t))&&(t.value=A.value),t}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var o=t.content,i=e.ownerDocument;if(i&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==t.display){this.counters.parse(new ti(t));var s=new ei(t),a=i.createElement("html2canvaspseudoelement");return Ns(t,a),s.content.forEach((function(e){if(e.type===Q.STRING_TOKEN)a.appendChild(i.createTextNode(e.value));else if(e.type===Q.URL_TOKEN){var t=i.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(e.type===Q.FUNCTION){if("attr"===e.name){var r=e.values.filter(Rt);r.length&&a.appendChild(i.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var o=e.values.filter(Dt),B=o[0],c=o[1];if(B&&Rt(B)){var u=n.counters.getCounterValue(B.value),l=c&&Rt(c)?to.parse(c.value):$n.DECIMAL;a.appendChild(i.createTextNode(fs(u,l,!1)))}}else if("counters"===e.name){var w=e.values.filter(Dt),d=(B=w[0],w[1]);c=w[2];if(B&&Rt(B)){var g=n.counters.getCounterValues(B.value),h=c&&Rt(c)?to.parse(c.value):$n.DECIMAL,U=d&&d.type===Q.STRING_TOKEN?d.value:"",f=g.map((function(A){return fs(A,h,!1)})).join(U);a.appendChild(i.createTextNode(f))}}}else if(e.type===Q.IDENT_TOKEN)switch(e.value){case"open-quote":a.appendChild(i.createTextNode(Zo(s.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(i.createTextNode(Zo(s.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(i.createTextNode(e.value))}})),a.className=Ts+" "+ys,e.className+=r===Xo.BEFORE?" "+Ts:" "+ys,a}}},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"})(Xo||(Xo={}));var ps,Fs=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(Cs,"true"),A.body.appendChild(t),t},Hs=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=n.onreadystatechange=function(){r.onload=A.onload=n.onreadystatechange=null;var t=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))}),50)}}))},Ns=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);"content"!==r&&e.style.setProperty(r,A.getPropertyValue(r))}return e},ms=function(A){var e="";return A&&(e+=""),e},Ks=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},vs=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},Is=":before",bs=":after",Ts="___html2canvas___pseudoelement_before",ys="___html2canvas___pseudoelement_after",Rs='{\n content: "" !important;\n display: none !important;\n}',Ls=function(A){Ss(A,"."+Ts+Is+Rs+"\n ."+ys+bs+Rs)},Ss=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}};(function(A){A[A["VECTOR"]=0]="VECTOR",A[A["BEZIER_CURVE"]=1]="BEZIER_CURVE"})(ps||(ps={}));var Os,Ds=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},xs=function(A,e,t,r,n){return A.map((function(A,o){switch(o){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}))},_s=function(){function A(A,e){this.type=ps.VECTOR,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Ms=function(A,e,t){return new _s(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Ps=function(){function A(A,e,t,r){this.type=ps.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=Ms(this.start,this.startControl,e),n=Ms(this.startControl,this.endControl,e),o=Ms(this.endControl,this.end,e),i=Ms(r,n,e),s=Ms(n,o,e),a=Ms(i,s,e);return t?new A(this.start,r,i,a):new A(a,s,o,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}(),zs=function(A){return A.type===ps.BEZIER_CURVE},Vs=function(){function A(A){var e=A.styles,t=A.bounds,r=Gt(e.borderTopLeftRadius,t.width,t.height),n=r[0],o=r[1],i=Gt(e.borderTopRightRadius,t.width,t.height),s=i[0],a=i[1],B=Gt(e.borderBottomRightRadius,t.width,t.height),c=B[0],u=B[1],l=Gt(e.borderBottomLeftRadius,t.width,t.height),Q=l[0],w=l[1],d=[];d.push((n+s)/t.width),d.push((Q+c)/t.width),d.push((o+w)/t.height),d.push((a+u)/t.height);var g=Math.max.apply(Math,d);g>1&&(n/=g,o/=g,s/=g,a/=g,c/=g,u/=g,Q/=g,w/=g);var h=t.width-s,U=t.height-u,f=t.width-c,C=t.height-w,E=e.borderTopWidth,p=e.borderRightWidth,F=e.borderBottomWidth,H=e.borderLeftWidth,N=Jt(e.paddingTop,A.bounds.width),m=Jt(e.paddingRight,A.bounds.width),K=Jt(e.paddingBottom,A.bounds.width),v=Jt(e.paddingLeft,A.bounds.width);this.topLeftBorderBox=n>0||o>0?ks(t.left,t.top,n,o,Os.TOP_LEFT):new _s(t.left,t.top),this.topRightBorderBox=s>0||a>0?ks(t.left+h,t.top,s,a,Os.TOP_RIGHT):new _s(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||u>0?ks(t.left+f,t.top+U,c,u,Os.BOTTOM_RIGHT):new _s(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=Q>0||w>0?ks(t.left,t.top+C,Q,w,Os.BOTTOM_LEFT):new _s(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||o>0?ks(t.left+H,t.top+E,Math.max(0,n-H),Math.max(0,o-E),Os.TOP_LEFT):new _s(t.left+H,t.top+E),this.topRightPaddingBox=s>0||a>0?ks(t.left+Math.min(h,t.width+H),t.top+E,h>t.width+H?0:s-H,a-E,Os.TOP_RIGHT):new _s(t.left+t.width-p,t.top+E),this.bottomRightPaddingBox=c>0||u>0?ks(t.left+Math.min(f,t.width-H),t.top+Math.min(U,t.height+E),Math.max(0,c-p),u-F,Os.BOTTOM_RIGHT):new _s(t.left+t.width-p,t.top+t.height-F),this.bottomLeftPaddingBox=Q>0||w>0?ks(t.left+H,t.top+C,Math.max(0,Q-H),w-F,Os.BOTTOM_LEFT):new _s(t.left+H,t.top+t.height-F),this.topLeftContentBox=n>0||o>0?ks(t.left+H+v,t.top+E+N,Math.max(0,n-(H+v)),Math.max(0,o-(E+N)),Os.TOP_LEFT):new _s(t.left+H+v,t.top+E+N),this.topRightContentBox=s>0||a>0?ks(t.left+Math.min(h,t.width+H+v),t.top+E+N,h>t.width+H+v?0:s-H+v,a-(E+N),Os.TOP_RIGHT):new _s(t.left+t.width-(p+m),t.top+E+N),this.bottomRightContentBox=c>0||u>0?ks(t.left+Math.min(f,t.width-(H+v)),t.top+Math.min(U,t.height+E+N),Math.max(0,c-(p+m)),u-(F+K),Os.BOTTOM_RIGHT):new _s(t.left+t.width-(p+m),t.top+t.height-(F+K)),this.bottomLeftContentBox=Q>0||w>0?ks(t.left+H+v,t.top+C,Math.max(0,Q-(H+v)),w-(F+K),Os.BOTTOM_LEFT):new _s(t.left+H+v,t.top+t.height-(F+K))}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"})(Os||(Os={}));var ks=function(A,e,t,r,n){var o=(Math.sqrt(2)-1)/3*4,i=t*o,s=r*o,a=A+t,B=e+r;switch(n){case Os.TOP_LEFT:return new Ps(new _s(A,B),new _s(A,B-s),new _s(a-i,e),new _s(a,e));case Os.TOP_RIGHT:return new Ps(new _s(A,e),new _s(A+i,e),new _s(a,B-s),new _s(a,B));case Os.BOTTOM_RIGHT:return new Ps(new _s(a,e),new _s(a,e+s),new _s(A+i,B),new _s(A,B));case Os.BOTTOM_LEFT:default:return new Ps(new _s(a,B),new _s(a-i,B),new _s(A,e+s),new _s(A,e))}},Xs=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Gs=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Js=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Ws=function(){function A(A,e,t){this.type=0,this.offsetX=A,this.offsetY=e,this.matrix=t,this.target=6}return A}(),Ys=function(){function A(A,e){this.type=1,this.target=e,this.path=A}return A}(),js=function(A){return 0===A.type},qs=function(A){return 1===A.type},Zs=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),$s=function(){function A(A,e){if(this.container=A,this.effects=e.slice(0),this.curves=new Vs(A),null!==A.styles.transform){var t=A.bounds.left+A.styles.transformOrigin[0].number,r=A.bounds.top+A.styles.transformOrigin[1].number,n=A.styles.transform;this.effects.push(new Ws(t,r,n))}if(A.styles.overflowX!==eo.VISIBLE){var o=Xs(this.curves),i=Js(this.curves);Ds(o,i)?this.effects.push(new Ys(o,6)):(this.effects.push(new Ys(o,2)),this.effects.push(new Ys(i,4)))}}return A.prototype.getParentEffects=function(){var A=this.effects.slice(0);if(this.container.styles.overflowX!==eo.VISIBLE){var e=Xs(this.curves),t=Js(this.curves);Ds(e,t)||A.push(new Ys(t,6))}return A},A}(),Aa=function A(e,t,r,n){e.container.elements.forEach((function(o){var i=Jo(o.flags,4),s=Jo(o.flags,2),a=new $s(o,e.getParentEffects());Jo(o.styles.display,2048)&&n.push(a);var B=Jo(o.flags,8)?[]:n;if(i||s){var c=i||o.styles.isPositioned()?r:t,u=new Zs(a);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var l=o.styles.zIndex.order;if(l<0){var Q=0;c.negativeZIndex.some((function(A,e){return l>A.element.container.styles.zIndex.order?(Q=e,!1):Q>0})),c.negativeZIndex.splice(Q,0,u)}else if(l>0){var w=0;c.positiveZIndex.some((function(A,e){return l>A.element.container.styles.zIndex.order?(w=e+1,!1):w>0})),c.positiveZIndex.splice(w,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else o.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);A(a,u,i?u:r,B)}else o.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),A(a,t,r,B);Jo(o.flags,8)&&ea(o,B)}))},ea=function(A,e){for(var t=A instanceof fi?A.start:1,r=A instanceof fi&&A.reversed,n=0;n0&&A.intrinsicHeight>0){var r=ia(A),n=Js(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()}},A.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var t,r,i,s,a,B,c,u,l,Q,w,d,g,h,U;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(e.effects,4),t=e.container,r=e.curves,i=t.styles,s=0,a=t.textNodes,n.label=1;case 1:return s0&&H>0&&(U=r.ctx.createPattern(d,"repeat"),r.renderRepeat(C,U,m,K))):sn(t)&&(f=Ba(A,e,[null,null,null]),C=f[0],E=f[1],p=f[2],F=f[3],H=f[4],N=0===t.position.length?[kt]:t.position,m=Jt(N[0],F),K=Jt(N[N.length-1],H),v=Fr(t,m,K,F,H),I=v[0],b=v[1],I>0&&I>0&&(T=r.ctx.createRadialGradient(E+m,p+K,0,E+m,p+K,I),Ur(t.stops,2*I).forEach((function(A){return T.addColorStop(A.stop,nr(A.color))})),r.path(C),r.ctx.fillStyle=T,I!==b?(y=A.bounds.left+.5*A.bounds.width,R=A.bounds.top+.5*A.bounds.height,L=b/I,S=1/L,r.ctx.save(),r.ctx.translate(y,R),r.ctx.transform(1,0,0,L,0,0),r.ctx.translate(-y,-R),r.ctx.fillRect(E,S*(p-R)+R,F,H*S),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return e--,[2]}}))},r=this,o=0,i=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return o0;break}}return n}function s(A){return new Promise((function(e,t){if("object"===typeof window&&"document"in window){if("function"===typeof FileReader){var n=new XMLHttpRequest;return n.open("GET",A,!0),n.responseType="blob",n.onload=function(){if(200===this.status){var A=new FileReader;A.onload=function(A){e(A.target.result)},A.onerror=t,A.readAsDataURL(this.response)}},n.onerror=t,void n.send()}var o=document.createElement("canvas"),i=o.getContext("2d"),s=new Image;return s.onload=function(){o.width=s.width,o.height=s.height,i.drawImage(s,0,0),e(o.toDataURL()),o.height=o.width=0},s.onerror=t,void(s.src=A)}"object"!==typeof plus?"object"===typeof wx&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:A,encoding:"base64",success:function(A){e("data:image/png;base64,"+A.data)},fail:function(A){t(A)}}):t(new Error("not support")):plus.io.resolveLocalFileSystemURL(r(A),(function(A){A.file((function(A){var r=new plus.io.FileReader;r.onload=function(A){e(A.target.result)},r.onerror=function(A){t(A)},r.readAsDataURL(A)}),(function(A){t(A)}))}),(function(A){t(A)}))}))}function a(A){return new Promise((function(e,t){if("object"===typeof window&&"document"in window){A=A.split(",");var r=A[0].match(/:(.*?);/)[1],n=atob(A[1]),s=n.length,a=new Uint8Array(s);while(s--)a[s]=n.charCodeAt(s);return e((window.URL||window.webkitURL).createObjectURL(new Blob([a],{type:r})))}var B=A.match(/data\:\S+\/(\S+);/);B?B=B[1]:t(new Error("base64 error"));var c=o()+"."+B;if("object"!==typeof plus)if("object"===typeof wx&&wx.canIUse("getFileSystemManager")){Q=wx.env.USER_DATA_PATH+"/"+c;wx.getFileSystemManager().writeFile({filePath:Q,data:A.replace(/^data:\S+\/\S+;base64,/,""),encoding:"base64",success:function(){e(Q)},fail:function(A){t(A)}})}else t(new Error("not support"));else{var u="_doc",l="uniapp_temp",Q=u+"/"+l+"/"+c;if(!i("Android"===plus.os.name?"1.9.9.80627":"1.9.9.80472",plus.runtime.innerVersion))return void plus.io.resolveLocalFileSystemURL(u,(function(r){r.getDirectory(l,{create:!0,exclusive:!1},(function(r){r.getFile(c,{create:!0,exclusive:!1},(function(r){r.createWriter((function(r){r.onwrite=function(){e(Q)},r.onerror=t,r.seek(0),r.writeAsBinary(A.replace(/^data:\S+\/\S+;base64,/,""))}),t)}),t)}),t)}),t);var w=new plus.nativeObj.Bitmap(c);w.loadBase64Data(A,(function(){w.save(Q,{},(function(){w.clear(),e(Q)}),(function(A){w.clear(),t(A)}))}),(function(A){w.clear(),t(A)}))}}))}},"7eb2":function(A,e,t){"use strict";t("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t("c2eb"),n=t("3662");function o(A){var e=A.url,t=A.payload,o=void 0===t?{}:t,i=A.method,s=void 0===i?"GET":i,a=(A.showToast,(0,n.getGuid)(),(0,n.getTimeStamp)(),{});return"POST"===s?a["content-type"]="application/json":"get"===s&&(a["content-type"]="application/x-www-form-urlencoded"),new Promise((function(A,t){return uni.request({url:e,method:s,data:(0,r.signVal)(o),header:a,success:function(e){A(e.data)},fail:function(A){t(""),uni.showToast({title:"请求失败",icon:"none"})}})})).catch((function(A){}))}},"84c3":function(A,e,t){var r=t("74e8");r("Uint16",(function(A){return function(e,t,r){return A(this,e,t,r)}}))},8814:function(A,e,t){var r=t("b6b4");"string"===typeof r&&(r=[[A.i,r,""]]),r.locals&&(A.exports=r.locals);var n=t("4f06").default;n("ce994694",r,!0,{sourceMap:!1,shadowMode:!1})},"8fc1":function(A,e,t){"use strict";var r=t("4ea4");t("cb29"),t("4de4"),t("4160"),t("d81d"),t("4e82"),t("ace4"),t("b680"),t("d3b7"),t("e25e"),t("ac1f"),t("466d"),t("841c"),t("1276"),t("5cc6"),t("9a8c"),t("a975"),t("735e"),t("c1ac"),t("d139"),t("3a7b"),t("d5d6"),t("82f8"),t("e91f"),t("60bd"),t("5f96"),t("3280"),t("3fcc"),t("ca91"),t("25a1"),t("cd26"),t("3c5d"),t("2954"),t("649e"),t("219c"),t("170b"),t("b39a"),t("72f7"),t("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("96cf");var n=r(t("1da1")),o=(t("59ec"),r(t("2620"))),i=t("b0cd"),s="43fcce2baefbd309a4afe81279946689",a="北京",B={props:["lat","lng","defaultV"],data:function(){return{list:[],address:void 0,index:0,placeSearch:null,dragStatus:!1,AMapUI:null,AMap:null,lineList:[],centerLog:[118.786545,32.057882],zoomNum:17,speedList:[],base64:"",wdwidth:"",wdheight:"",showPhoto:!1,userInfo:"",sportInfo:"",useTimeList:"",cadenceInfo:"",maxCadence:0,averageCadence:0,maxSpeed:0,mapBase:"",minSpeed:9999}},watch:{defaultV:function(){console.log(this.defaultV),void 0!==this.defaultV&&console.log(this.defaultV)}},beforeDestroy:function(){cancelAnimationFrame(this.timeR),cancelAnimationFrame(this.timR),cancelAnimationFrame(this.bollTimeR)},onReady:function(){},created:function(){var A=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var t,r,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=function(A,e){return t(A);function t(A){var t=document.createElement("script");document.body.appendChild(t);var n=new Promise((function(A,n){t.addEventListener("load",(function(n){r(t),e||A(n)}),!1),t.addEventListener("error",(function(A){r(t),n(A)}),!1),e&&(window.____callback____=function(){A(),window.____callback____=null})}));return e&&(A+="&callback=____callback____"),t.src=A,n}function r(A){document.body.removeChild(A)}},r={user_id:A.$route.query.user_id},A.GetUserInfo(r),n={task_id:A.$route.query.task_id},A.GetSportInfo(n),o={steps:1*A.$route.query.steps,task_id:A.$route.query.task_id,user_id:A.$route.query.user_id},uni.request({url:"http://lzyd-front-sport-api.lizhiyuedong.com/api/runData/summary",header:{"content-type":"application/x-www-form-urlencoded"},method:"POST",data:JSON.stringify(o),success:function(e){"运动距离过短"==e.data.message?alert("运动距离过短,暂无数据哦"):"不存在的task_id"==e.data.message?alert("不存在的task_id"):A.sportInfo=e.data.data}}),!window.AMap||!window.AMapUI){e.next=11;break}A.GetMapsInfo({task_id:A.$route.query.task_id}),e.next=16;break;case 11:return e.next=13,t("https://webapi.amap.com/maps?v=1.4.4&key=".concat(s,"&plugin=AMap.Geocoder,AMap.PlaceSearch,AMap.ToolBar"));case 13:return e.next=15,t("https://webapi.amap.com/ui/1.0/main.js");case 15:A.GetMapsInfo({task_id:A.$route.query.task_id});case 16:case"end":return e.stop()}}),e)})))()},methods:{dataURLtoFile:function(A,e){var t=A.split(","),r=t[0].match(/:(.*?);/)[1],n=atob(t[1]),o=n.length,i=new Uint8Array(o);while(o--)i[o]=n.charCodeAt(o);return new File([i],e,{type:r})},closeImg:function(){this.showPhoto=!1},GetUserInfo:function(A){var e=this;(0,i.GetUserInfo)(A).then((function(A){e.userInfo=A.data}))},GetMapsInfo:function(A){var e=this;(0,i.GetMapsInfo)(A).then((function(A){e.list=A.data,e.list.map((function(A){e.lineList.push(A.split(","))})),e.initMap()}))},GetSportSummary:function(A){var e=this;(0,i.GetSportSummary)(A).then((function(A){console.log(A),"运动距离过短"==A.data.message?alert("运动距离过短,暂无数据哦"):"不存在的task_id"==A.data.message?alert("不存在的task_id"):(e.sportInfo=A.data,console.log(e.sportInfo))}))},GetSportInfo:function(A){var e=this;(0,i.GetSportInfo)(A).then((function(A){e.useTimeList=A.data.speed;for(var t=0;te.maxSpeed&&(e.maxSpeed=e.useTimeList[t]),e.useTimeList[t]n&&(n=e.cadenceInfo[i]),o=e.cadenceInfo[i]+o,i==e.cadenceInfo.length-1&&Math.ceil(o/e.cadenceInfo.length);e.maxCadence=n,e.averageCadence=o;var s=e,a=(s.cadenceInfo,uni.createSelectorQuery().in(e));a.select(".chart").boundingClientRect((function(A,t){e.lineDraw("line",A,s.cadenceInfo,r)})).exec()}))},toShare:function(){var A=this;uni.showLoading({title:"加载中"}),uni.pageScrollTo({scrollTop:0,duration:0});var e=document.querySelector("#poster");console.log(e.clientHeight),(0,o.default)(e,{width:e.clientWidth,height:e.clientHeight,scrollY:0,scrollX:0,useCORS:!0}).then((function(e){A.base64=e.toDataURL("image/png");var t=(new Date).getTime();A.dataURLtoFile(A.base64,t);console.log(A.base64);var r=document.querySelector("#js-container");(0,o.default)(r,{width:r.clientWidth,height:r.clientHeight,scrollY:0,scrollX:0,useCORS:!0}).then((function(e){A.mapBase=e.toDataURL("image/png");var t={base64:A.base64,task_id:A.$route.query.task_id,user_id:A.$route.query.user_id,map_base:A.mapBase},r=(new Date).getTime()+"z";A.dataURLtoFile(A.base64,r);(0,i.uploadBase64)(t).then((function(A){console.log(A);var e={type:1,data:{title:"荔枝悦动",content:"荔枝悦动",link:"",imageUrl:A.data.map_url}};uni.hideLoading(),window.location.href="lzyd_web:"+JSON.stringify(e)}))}))}))},toImg:function(){var A=this;uni.showLoading({title:"加载中"}),uni.pageScrollTo({scrollTop:0,duration:0});var e=document.querySelector("#poster");(0,o.default)(e,{width:e.clientWidth,height:e.clientHeight,scrollY:0,scrollX:0,useCORS:!0}).then((function(e){A.base64=e.toDataURL("image/png");var t=(new Date).getTime(),r=(A.dataURLtoFile(A.base64,t),document.querySelector("#js-container"));(0,o.default)(r,{width:r.clientWidth,height:r.clientHeight,scrollY:0,scrollX:0,useCORS:!0}).then((function(e){A.mapBase=e.toDataURL("image/png");var t={base64:A.base64,task_id:A.$route.query.task_id,user_id:A.$route.query.user_id,map_base:A.mapBase},r=(new Date).getTime()+"z";A.dataURLtoFile(A.base64,r);(0,i.uploadBase64)(t).then((function(e){console.log(e);var t={type:0,data:{imageUrl:e.data.map_url}};uni.hideLoading(),window.location.href="lzyd_web:"+JSON.stringify(t),A.showPhoto=!0}))}))}))},getRoom:function(A){for(var e=new Array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14),t=new Array(360,180,90,45,22,11,5,2.5,1.25,.6,.3,.15,.07,.03,0),r=0;r=0)return e[r]+2;return 14},getCenterPoint:function(A,e,t,r){if(A==e&&t==r)return[A,t,17];var n=A-e;nn&&(n=r[B][0]),1*r[B][1]>i&&(i=r[B][1]),1*r[B][0]0&&void 0!==arguments[0]?arguments[0]:2,e=arguments.length>1?arguments[1]:void 0;if("number"==typeof e)return 1*e.toFixed(A)},lineDraw:function(A,e,t,r){var n=uni.createCanvasContext(A),o={top:12*e.height/100,bottom:82*e.height/100,left:12*e.width/100,right:92*e.width/100},i="#999",s="#5B5E67",a={textSize:10,maxNumber:10*Math.ceil(this.maxCadence/10),splitNumber:5,splitLen:5,marginSplit:5},B=1,c={textSize:10,maxNumber:t.length?t.length:60,splitNumber:t.length?Math.ceil(t.length/2):6,splitLen:t.length?Math.ceil(t.length/2):6,marginSplit:t.length?Math.ceil(t.length/2):6},u=[{color:"#fff",arcR:2,dash:0}],l=[{color:"#4caf50",lineDotType:"wave",width:2,dash:3}],Q=[{x:this.sortFn(r),y:t}];n.beginPath(),n.setLineWidth(B),n.setTextAlign("right"),n.setTextBaseline("middle"),n.setStrokeStyle(i),n.setFillStyle(s),n.moveTo(o.left,o.top),n.lineTo(o.left,o.bottom),n.setFontSize(a.textSize);for(var w=1;w<=a.splitNumber;w++)n.moveTo(o.left,o.bottom-(o.bottom-o.top)/a.splitNumber*w+B),n.lineTo(o.left-a.splitLen,o.bottom-(o.bottom-o.top)/a.splitNumber*w+B),n.fillText(this.toFixedNumber(1,a.maxNumber/a.splitNumber*w),o.left-a.splitLen-B-a.marginSplit,o.bottom-(o.bottom-o.top)/a.splitNumber*w+B);n.moveTo(o.left,o.bottom),n.lineTo(o.right,o.bottom),n.setTextAlign("center"),n.setTextBaseline("top"),n.setFontSize(c.textSize);for(var d=1;d<=c.splitNumber;d++)n.moveTo(o.left+(o.right-o.left)/c.splitNumber*d-B,o.bottom),n.lineTo(o.left+(o.right-o.left)/c.splitNumber*d-B,o.bottom+c.splitLen),n.fillText(this.toFixedNumber(1,c.maxNumber/c.splitNumber*d),o.left+(o.right-o.left)/c.splitNumber*d-B,o.bottom+c.splitLen+B+c.marginSplit);n.stroke();var g=function(A,e,t){A.forEach((function(r,i){var s=o.left+(o.right-o.left)*(r/c.maxNumber)-B,Q=o.bottom-(o.bottom-o.top)*(e[i]/a.maxNumber)+B;if(i>=A.length-1);else{var w=o.left+(o.right-o.left)*(A[i+1]/c.maxNumber)-B,d=o.bottom-(o.bottom-o.top)*(e[i+1]/a.maxNumber)+B,g={x:s+(w-s)/3+(w-s)/2,y:d-Q>0?Q+(d-Q)/3-(d-Q)/5:Q+(d-Q)/3+(d-Q)/5};n.beginPath(),n.setStrokeStyle(l[t].color),n.setLineDash([l[t].dash]),n.moveTo(s,Q),"line"==l[t].lineDotType?n.lineTo(w,d):"wave"==l[t].lineDotType&&n.quadraticCurveTo(g.x,g.y,w,d),n.stroke()}n.beginPath(),n.setFillStyle(u[t].color),n.setLineDash([u[t].dash]),n.arc(s,Q,u[t].arcR,0,2*Math.PI),n.fill(),n.stroke()}))};Q.forEach((function(A,e){g(A.x,A.y,e)})),n.draw()}}};e.default=B},"96cf":function(A,e){!function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag",B="object"===typeof A,c=e.regeneratorRuntime;if(c)B&&(A.exports=c);else{c=e.regeneratorRuntime=B?A.exports:{},c.wrap=C;var u="suspendedStart",l="suspendedYield",Q="executing",w="completed",d={},g={};g[i]=function(){return this};var h=Object.getPrototypeOf,U=h&&h(h(y([])));U&&U!==r&&n.call(U,i)&&(g=U);var f=H.prototype=p.prototype=Object.create(g);F.prototype=f.constructor=H,H.constructor=F,H[a]=F.displayName="GeneratorFunction",c.isGeneratorFunction=function(A){var e="function"===typeof A&&A.constructor;return!!e&&(e===F||"GeneratorFunction"===(e.displayName||e.name))},c.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,H):(A.__proto__=H,a in A||(A[a]="GeneratorFunction")),A.prototype=Object.create(f),A},c.awrap=function(A){return{__await:A}},N(m.prototype),m.prototype[s]=function(){return this},c.AsyncIterator=m,c.async=function(A,e,t,r){var n=new m(C(A,e,t,r));return c.isGeneratorFunction(e)?n:n.next().then((function(A){return A.done?A.value:n.next()}))},N(f),f[a]="Generator",f[i]=function(){return this},f.toString=function(){return"[object Generator]"},c.keys=function(A){var e=[];for(var t in A)e.push(t);return e.reverse(),function t(){while(e.length){var r=e.pop();if(r in A)return t.value=r,t.done=!1,t}return t.done=!0,t}},c.values=y,T.prototype={constructor:T,reset:function(A){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(b),!A)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var A=this.tryEntries[0],e=A.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var e=this;function r(r,n){return s.type="throw",s.arg=A,e.next=r,n&&(e.method="next",e.arg=t),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),B=n.call(i,"finallyLoc");if(a&&B){if(this.prev=0;--t){var r=this.tryEntries[t];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),b(t),d}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var r=t.completion;if("throw"===r.type){var n=r.arg;b(t)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(A,e,r){return this.delegate={iterator:y(A),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=t),d}}}function C(A,e,t,r){var n=e&&e.prototype instanceof p?e:p,o=Object.create(n.prototype),i=new T(r||[]);return o._invoke=K(A,t,i),o}function E(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(r){return{type:"throw",arg:r}}}function p(){}function F(){}function H(){}function N(A){["next","throw","return"].forEach((function(e){A[e]=function(A){return this._invoke(e,A)}}))}function m(A){function e(t,r,o,i){var s=E(A[t],A,r);if("throw"!==s.type){var a=s.arg,B=a.value;return B&&"object"===typeof B&&n.call(B,"__await")?Promise.resolve(B.__await).then((function(A){e("next",A,o,i)}),(function(A){e("throw",A,o,i)})):Promise.resolve(B).then((function(A){a.value=A,o(a)}),(function(A){return e("throw",A,o,i)}))}i(s.arg)}var t;function r(A,r){function n(){return new Promise((function(t,n){e(A,r,t,n)}))}return t=t?t.then(n,n):n()}this._invoke=r}function K(A,e,t){var r=u;return function(n,o){if(r===Q)throw new Error("Generator is already running");if(r===w){if("throw"===n)throw o;return R()}t.method=n,t.arg=o;while(1){var i=t.delegate;if(i){var s=v(i,t);if(s){if(s===d)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(r===u)throw r=w,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r=Q;var a=E(A,e,t);if("normal"===a.type){if(r=t.done?w:l,a.arg===d)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(r=w,t.method="throw",t.arg=a.arg)}}}function v(A,e){var r=A.iterator[e.method];if(r===t){if(e.delegate=null,"throw"===e.method){if(A.iterator.return&&(e.method="return",e.arg=t,v(A,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=E(r,A.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[A.resultName]=o.value,e.next=A.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function I(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function b(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function T(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(I,this),this.reset(!0)}function y(A){if(A){var e=A[i];if(e)return e.call(A);if("function"===typeof A.next)return A;if(!isNaN(A.length)){var r=-1,o=function e(){while(++r>>32-e},r=function(A,e){var t,r,n,o,i;return n=2147483648&A,o=2147483648&e,t=1073741824&A,r=1073741824&e,i=(1073741823&A)+(1073741823&e),t&r?2147483648^i^n^o:t|r?1073741824&i?3221225472^i^n^o:1073741824^i^n^o:i^n^o},n=function(A,e,t){return A&e|~A&t},o=function(A,e,t){return A&t|e&~t},i=function(A,e,t){return A^e^t},s=function(A,e,t){return e^(A|~t)},a=function(A,e,o,i,s,a,B){return A=r(A,r(r(n(e,o,i),s),B)),r(t(A,a),e)},B=function(A,e,n,i,s,a,B){return A=r(A,r(r(o(e,n,i),s),B)),r(t(A,a),e)},c=function(A,e,n,o,s,a,B){return A=r(A,r(r(i(e,n,o),s),B)),r(t(A,a),e)},u=function(A,e,n,o,i,a,B){return A=r(A,r(r(s(e,n,o),i),B)),r(t(A,a),e)},l=function(A){var e,t=A.length,r=t+8,n=(r-r%64)/64,o=16*(n+1),i=Array(o-1),s=0,a=0;while(a>>29,i},Q=function(A){var e,t,r="",n="";for(t=0;t<=3;t++)e=A>>>8*t&255,n="0"+e.toString(16),r+=n.substr(n.length-2,2);return r},w=function(A){A=A.toString().replace(/\x0d\x0a/g,"\n");for(var e="",t=0;t127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e};return e(A)}function n(A){var e=[];for(var t in A)e.push(t+"="+A[t]);e.push("secret=lzyd-sign-7c423d19cb2b"),e.sort();var n=r(e.join("&"));return A.sign=n,A}t("a15b"),t("4e82"),t("d3b7"),t("ac1f"),t("25f0"),t("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.md5=r,e.signVal=n},cb29:function(A,e,t){var r=t("23e7"),n=t("81d5"),o=t("44d2");r({target:"Array",proto:!0},{fill:n}),o("fill")},d09d:function(A,e,t){"use strict";var r;t.d(e,"b",(function(){return n})),t.d(e,"c",(function(){return o})),t.d(e,"a",(function(){return r}));var n=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"map-box"},[t("div",{staticClass:"jiluBigBox",attrs:{id:"poster"}},[A._m(0),t("div",{staticClass:"jiluBox1"},[t("div",{staticClass:"userPhoto"},[t("img",{staticClass:"allImage",attrs:{crossorigin:"anonymous",mode:"aspectFill",src:A.userInfo.user_avatar}})]),t("div",{staticClass:"uesrName"},[A._v(A._s(A.userInfo.username))]),t("div",{staticClass:"distance"},[A._v(A._s(A.sportInfo&&A.sportInfo.distance?Math.round(A.sportInfo.distance/10)/100:0)),t("span",{staticClass:"km"},[A._v("公里")])]),t("div",{staticClass:"title"},[A._v("荔枝悦动:户外跑")]),t("div",{staticClass:"creatTime"},[A._v(A._s(A.sportInfo.date_time))]),A._m(1),t("div",{staticClass:"sportData"},[t("div",{staticClass:"dataBox"},[t("div",{staticClass:"dataNum"},[A._v(A._s(A.sportInfo&&A.sportInfo.speed?A.sportInfo.speed:0))]),t("div",{staticClass:"dataName"},[A._v("平均配速")])]),t("div",{staticClass:"dateLine"}),t("div",{staticClass:"dataBox"},[t("div",{staticClass:"dataNum"},[A._v(A._s(A.sportInfo&&A.sportInfo.duration?Math.round(A.sportInfo.duration/60):0))]),t("div",{staticClass:"dataName"},[A._v("总时长(分钟)")])]),t("div",{staticClass:"dateLine"}),t("div",{staticClass:"dataBox"},[t("div",{staticClass:"dataNum"},[A._v(A._s(A.sportInfo&&A.sportInfo.kcal?A.sportInfo.kcal:0))]),t("div",{staticClass:"dataName"},[A._v("消耗千卡")])])]),t("div",{staticClass:"boxLine"}),t("div",{staticClass:"sportData",staticStyle:{top:"430rpx"}},[t("div",{staticClass:"dataBox"},[t("div",{staticClass:"dataNum"},[A._v(A._s(A.sportInfo&&A.sportInfo.steps?A.sportInfo.steps:0))]),t("div",{staticClass:"dataName"},[A._v("总步数")])]),t("div",{staticClass:"dateLine"}),t("div",{staticClass:"dataBox"},[t("div",{staticClass:"dataNum"},[A._v(A._s(A.sportInfo&&A.sportInfo.cadence?A.sportInfo.cadence:0))]),t("div",{staticClass:"dataName"},[A._v("步频(步/分钟)")])]),t("div",{staticClass:"dateLine"}),t("div",{staticClass:"dataBox"},[t("div",{staticClass:"dataNum"},[A._v(A._s(A.sportInfo&&A.sportInfo.stride?A.sportInfo.stride:0))]),t("div",{staticClass:"dataName"},[A._v("步幅(厘米)")])])])]),t("div",{staticClass:"jiluBox2"},[t("div",{staticClass:"title"},[A._v("配速")]),A._m(2),t("div",{staticClass:"allSpeedBox"},A._l(A.useTimeList,(function(e,r){return t("div",{key:r,staticClass:"speedLineBox"},[t("div",{staticClass:"lineNum"},[A._v(A._s(r+1))]),t("div",{staticClass:"speedColor"},[t("div",{staticClass:"speedLine",class:e==A.minSpeed?"speedFast":"speedLow",style:{width:e/A.maxSpeed*100+"%"}})]),t("div",{staticClass:"lineSpeed"},[A._v(A._s(Math.floor(e)+"’"+Math.floor(60*(e-Math.floor(e)))+"”"))])])})),0)]),t("div",{staticClass:"jiluBox3"},[t("div",{staticClass:"title"},[A._v("步频")]),t("div",{staticClass:"bupinDataBox"},[t("div",{staticClass:"bupinData"},[t("div",{staticClass:"bupinDataNum"},[A._v(A._s(A.maxCadence))]),t("div",{staticClass:"bupinDataName"},[A._v("最快步频")])]),t("div",{staticClass:"bupinData"},[t("div",{staticClass:"bupinDataNum"},[A._v(A._s(A.sportInfo&&A.sportInfo.cadence?A.sportInfo.cadence:0))]),t("div",{staticClass:"bupinDataName"},[A._v("平均步频")])])]),t("div",{staticClass:"danwei1"},[A._v("(步/分钟)")]),t("div",{staticClass:"danwei2"},[A._v("(分钟)")]),t("v-uni-view",{staticClass:"line-chart"},[t("v-uni-view",[t("v-uni-view",{staticClass:"mar-bot20"},[t("v-uni-canvas",{staticClass:"chart",attrs:{id:"line","canvas-id":"line"}})],1)],1)],1)],1)]),A._v("//"),t("div",{staticClass:"savePhoto",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.toImg.apply(void 0,arguments)}}},[A._v("保存长图")]),t("div",{staticClass:"sharePhoto",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.toShare.apply(void 0,arguments)}}},[A._v("分享好友")]),t("div",{staticClass:"shareBox"}),A.showPhoto?t("div",{staticClass:"fenxiangImageBox",on:{touchmove:function(e){e.preventDefault(),arguments[0]=e=A.$handleEvent(e)}}},[t("div",{staticClass:"fenxiangImage"},[t("v-uni-image",{staticClass:"allImage",staticStyle:{height:"130%"},attrs:{src:A.base64,mode:""}})],1),t("div",{staticClass:"closePhoto",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.closeImg.apply(void 0,arguments)}}},[A._v("关闭图片")])]):A._e()])},o=[function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"m-map"},[t("div",{staticClass:"map",attrs:{id:"js-container"}})])},function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"lineColor"},[t("div",{staticClass:"lowSpeed"},[A._v("慢")]),t("div",{staticClass:"fastSpeed"},[A._v("快")])])},function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"kmspeed"},[A._v("公里"),t("span",{staticStyle:{"margin-left":"40rpx"}},[A._v("配速")])])}]},f6d6:function(A,e,t){var r=t("23e7"),n=t("23cb"),o=String.fromCharCode,i=String.fromCodePoint,s=!!i&&1!=i.length;r({target:"String",stat:!0,forced:s},{fromCodePoint:function(A){var e,t=[],r=arguments.length,i=0;while(r>i){if(e=+arguments[i++],n(e,1114111)!==e)throw RangeError(e+" is not a valid code point");t.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return t.join("")}})},fb2c:function(A,e,t){var r=t("74e8");r("Uint32",(function(A){return function(e,t,r){return A(this,e,t,r)}}))}}]);