ly-utils-lib 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ly-utils-lib.cjs.js
CHANGED
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
content: "" !important;
|
|
106
106
|
display: none !important;
|
|
107
107
|
}`,Jy=function(A){zy(A,"."+p0+Xy+Po+`
|
|
108
|
-
.`+v0+Yy+Po)},zy=function(A,e){var r=A.ownerDocument;if(r){var t=r.createElement("style");t.textContent=e,A.appendChild(t)}},AB=(function(){function A(){}return A.getOrigin=function(e){var r=A._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A})(),Zy=(function(){function A(e,r){this.context=e,this._options=r,this._cache={}}return A.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(Ns(e)||AT(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return Re(this,void 0,void 0,function(){var r,t,a,n,i=this;return _e(this,function(s){switch(s.label){case 0:return r=AB.isSameOrigin(e),t=!Rs(e)&&this._options.useCORS===!0&&me.SUPPORT_CORS_IMAGES&&!r,a=!Rs(e)&&!r&&!Ns(e)&&typeof this._options.proxy=="string"&&me.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!Rs(e)&&!Ns(e)&&!a&&!t?[2]:(n=e,a?[4,this.proxy(n)]:[3,2]);case 1:n=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(f,c){var o=new Image;o.onload=function(){return f(o)},o.onerror=c,(eT(n)||t)&&(o.crossOrigin="anonymous"),o.src=n,o.complete===!0&&setTimeout(function(){return f(o)},500),i._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(n,i){var s=me.SUPPORT_RESPONSE_TYPE?"blob":"text",f=new XMLHttpRequest;f.onload=function(){if(f.status===200)if(s==="text")n(f.response);else{var l=new FileReader;l.addEventListener("load",function(){return n(l.result)},!1),l.addEventListener("error",function(u){return i(u)},!1),l.readAsDataURL(f.response)}else i("Failed to proxy resource "+a+" with status code "+f.status)},f.onerror=i;var c=t.indexOf("?")>-1?"&":"?";if(f.open("GET",""+t+c+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&f instanceof XMLHttpRequest&&(f.responseType=s),r._options.imageTimeout){var o=r._options.imageTimeout;f.timeout=o,f.ontimeout=function(){return i("Timed out ("+o+"ms) proxying "+a)}}f.send()})},A})(),$y=/^data:image\/svg\+xml/i,jy=/^data:image\/.*;base64,/i,qy=/^data:image\/.*/i,AT=function(A){return me.SUPPORT_SVG_DRAWING||!rT(A)},Rs=function(A){return qy.test(A)},eT=function(A){return jy.test(A)},Ns=function(A){return A.substr(0,4)==="blob"},rT=function(A){return A.substr(-3).toLowerCase()==="svg"||$y.test(A)},lA=(function(){function A(e,r){this.type=0,this.x=e,this.y=r}return A.prototype.add=function(e,r){return new A(this.x+e,this.y+r)},A})(),Zt=function(A,e,r){return new lA(A.x+(e.x-A.x)*r,A.y+(e.y-A.y)*r)},ei=(function(){function A(e,r,t,a){this.type=1,this.start=e,this.startControl=r,this.endControl=t,this.end=a}return A.prototype.subdivide=function(e,r){var t=Zt(this.start,this.startControl,e),a=Zt(this.startControl,this.endControl,e),n=Zt(this.endControl,this.end,e),i=Zt(t,a,e),s=Zt(a,n,e),f=Zt(i,s,e);return r?new A(this.start,t,i,f):new A(f,s,n,this.end)},A.prototype.add=function(e,r){return new A(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),fr=function(A){return A.type===1},tT=(function(){function A(e){var r=e.styles,t=e.bounds,a=Da(r.borderTopLeftRadius,t.width,t.height),n=a[0],i=a[1],s=Da(r.borderTopRightRadius,t.width,t.height),f=s[0],c=s[1],o=Da(r.borderBottomRightRadius,t.width,t.height),l=o[0],u=o[1],B=Da(r.borderBottomLeftRadius,t.width,t.height),g=B[0],h=B[1],d=[];d.push((n+f)/t.width),d.push((g+l)/t.width),d.push((i+h)/t.height),d.push((c+u)/t.height);var p=Math.max.apply(Math,d);p>1&&(n/=p,i/=p,f/=p,c/=p,l/=p,u/=p,g/=p,h/=p);var m=t.width-f,w=t.height-u,S=t.width-l,H=t.height-h,C=r.borderTopWidth,v=r.borderRightWidth,y=r.borderBottomWidth,Q=r.borderLeftWidth,N=KA(r.paddingTop,e.bounds.width),R=KA(r.paddingRight,e.bounds.width),b=KA(r.paddingBottom,e.bounds.width),W=KA(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||i>0?YA(t.left+Q/3,t.top+C/3,n-Q/3,i-C/3,LA.TOP_LEFT):new lA(t.left+Q/3,t.top+C/3),this.topRightBorderDoubleOuterBox=n>0||i>0?YA(t.left+m,t.top+C/3,f-v/3,c-C/3,LA.TOP_RIGHT):new lA(t.left+t.width-v/3,t.top+C/3),this.bottomRightBorderDoubleOuterBox=l>0||u>0?YA(t.left+S,t.top+w,l-v/3,u-y/3,LA.BOTTOM_RIGHT):new lA(t.left+t.width-v/3,t.top+t.height-y/3),this.bottomLeftBorderDoubleOuterBox=g>0||h>0?YA(t.left+Q/3,t.top+H,g-Q/3,h-y/3,LA.BOTTOM_LEFT):new lA(t.left+Q/3,t.top+t.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||i>0?YA(t.left+Q*2/3,t.top+C*2/3,n-Q*2/3,i-C*2/3,LA.TOP_LEFT):new lA(t.left+Q*2/3,t.top+C*2/3),this.topRightBorderDoubleInnerBox=n>0||i>0?YA(t.left+m,t.top+C*2/3,f-v*2/3,c-C*2/3,LA.TOP_RIGHT):new lA(t.left+t.width-v*2/3,t.top+C*2/3),this.bottomRightBorderDoubleInnerBox=l>0||u>0?YA(t.left+S,t.top+w,l-v*2/3,u-y*2/3,LA.BOTTOM_RIGHT):new lA(t.left+t.width-v*2/3,t.top+t.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||h>0?YA(t.left+Q*2/3,t.top+H,g-Q*2/3,h-y*2/3,LA.BOTTOM_LEFT):new lA(t.left+Q*2/3,t.top+t.height-y*2/3),this.topLeftBorderStroke=n>0||i>0?YA(t.left+Q/2,t.top+C/2,n-Q/2,i-C/2,LA.TOP_LEFT):new lA(t.left+Q/2,t.top+C/2),this.topRightBorderStroke=n>0||i>0?YA(t.left+m,t.top+C/2,f-v/2,c-C/2,LA.TOP_RIGHT):new lA(t.left+t.width-v/2,t.top+C/2),this.bottomRightBorderStroke=l>0||u>0?YA(t.left+S,t.top+w,l-v/2,u-y/2,LA.BOTTOM_RIGHT):new lA(t.left+t.width-v/2,t.top+t.height-y/2),this.bottomLeftBorderStroke=g>0||h>0?YA(t.left+Q/2,t.top+H,g-Q/2,h-y/2,LA.BOTTOM_LEFT):new lA(t.left+Q/2,t.top+t.height-y/2),this.topLeftBorderBox=n>0||i>0?YA(t.left,t.top,n,i,LA.TOP_LEFT):new lA(t.left,t.top),this.topRightBorderBox=f>0||c>0?YA(t.left+m,t.top,f,c,LA.TOP_RIGHT):new lA(t.left+t.width,t.top),this.bottomRightBorderBox=l>0||u>0?YA(t.left+S,t.top+w,l,u,LA.BOTTOM_RIGHT):new lA(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=g>0||h>0?YA(t.left,t.top+H,g,h,LA.BOTTOM_LEFT):new lA(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||i>0?YA(t.left+Q,t.top+C,Math.max(0,n-Q),Math.max(0,i-C),LA.TOP_LEFT):new lA(t.left+Q,t.top+C),this.topRightPaddingBox=f>0||c>0?YA(t.left+Math.min(m,t.width-v),t.top+C,m>t.width+v?0:Math.max(0,f-v),Math.max(0,c-C),LA.TOP_RIGHT):new lA(t.left+t.width-v,t.top+C),this.bottomRightPaddingBox=l>0||u>0?YA(t.left+Math.min(S,t.width-Q),t.top+Math.min(w,t.height-y),Math.max(0,l-v),Math.max(0,u-y),LA.BOTTOM_RIGHT):new lA(t.left+t.width-v,t.top+t.height-y),this.bottomLeftPaddingBox=g>0||h>0?YA(t.left+Q,t.top+Math.min(H,t.height-y),Math.max(0,g-Q),Math.max(0,h-y),LA.BOTTOM_LEFT):new lA(t.left+Q,t.top+t.height-y),this.topLeftContentBox=n>0||i>0?YA(t.left+Q+W,t.top+C+N,Math.max(0,n-(Q+W)),Math.max(0,i-(C+N)),LA.TOP_LEFT):new lA(t.left+Q+W,t.top+C+N),this.topRightContentBox=f>0||c>0?YA(t.left+Math.min(m,t.width+Q+W),t.top+C+N,m>t.width+Q+W?0:f-Q+W,c-(C+N),LA.TOP_RIGHT):new lA(t.left+t.width-(v+R),t.top+C+N),this.bottomRightContentBox=l>0||u>0?YA(t.left+Math.min(S,t.width-(Q+W)),t.top+Math.min(w,t.height+C+N),Math.max(0,l-(v+R)),u-(y+b),LA.BOTTOM_RIGHT):new lA(t.left+t.width-(v+R),t.top+t.height-(y+b)),this.bottomLeftContentBox=g>0||h>0?YA(t.left+Q+W,t.top+H,Math.max(0,g-(Q+W)),h-(y+b),LA.BOTTOM_LEFT):new lA(t.left+Q+W,t.top+t.height-(y+b))}return A})(),LA;(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"})(LA||(LA={}));var YA=function(A,e,r,t,a){var n=4*((Math.sqrt(2)-1)/3),i=r*n,s=t*n,f=A+r,c=e+t;switch(a){case LA.TOP_LEFT:return new ei(new lA(A,c),new lA(A,c-s),new lA(f-i,e),new lA(f,e));case LA.TOP_RIGHT:return new ei(new lA(A,e),new lA(A+i,e),new lA(f,c-s),new lA(f,c));case LA.BOTTOM_RIGHT:return new ei(new lA(f,e),new lA(f,e+s),new lA(A+i,c),new lA(A,c));case LA.BOTTOM_LEFT:default:return new ei(new lA(f,c),new lA(f-i,c),new lA(A,e+s),new lA(A,e))}},Li=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},aT=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},bi=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},nT=(function(){function A(e,r,t){this.offsetX=e,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return A})(),ri=(function(){function A(e,r){this.path=e,this.target=r,this.type=1}return A})(),iT=(function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A})(),sT=function(A){return A.type===0},eB=function(A){return A.type===1},fT=function(A){return A.type===2},Ko=function(A,e){return A.length===e.length?A.some(function(r,t){return r===e[t]}):!1},cT=function(A,e,r,t,a){return A.map(function(n,i){switch(i){case 0:return n.add(e,r);case 1:return n.add(e+t,r);case 2:return n.add(e+t,r+a);case 3:return n.add(e,r+a)}return n})},rB=(function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),tB=(function(){function A(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new tT(this.container),this.container.styles.opacity<1&&this.effects.push(new iT(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new nT(t,a,n))}if(this.container.styles.overflowX!==0){var i=Li(this.curves),s=bi(this.curves);Ko(i,s)?this.effects.push(new ri(i,6)):(this.effects.push(new ri(i,2)),this.effects.push(new ri(s,4)))}}return A.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,a=this.effects.slice(0);t;){var n=t.effects.filter(function(f){return!eB(f)});if(r||t.container.styles.position!==0||!t.parent){if(a.unshift.apply(a,n),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var i=Li(t.curves),s=bi(t.curves);Ko(i,s)||a.unshift(new ri(s,6))}}else a.unshift.apply(a,n);t=t.parent}return a.filter(function(f){return he(f.target,e)})},A})(),m0=function(A,e,r,t){A.container.elements.forEach(function(a){var n=he(a.flags,4),i=he(a.flags,2),s=new tB(a,A);he(a.styles.display,2048)&&t.push(s);var f=he(a.flags,8)?[]:t;if(n||i){var c=n||a.styles.isPositioned()?r:e,o=new rB(s);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var l=a.styles.zIndex.order;if(l<0){var u=0;c.negativeZIndex.some(function(g,h){return l>g.element.container.styles.zIndex.order?(u=h,!1):u>0}),c.negativeZIndex.splice(u,0,o)}else if(l>0){var B=0;c.positiveZIndex.some(function(g,h){return l>=g.element.container.styles.zIndex.order?(B=h+1,!1):B>0}),c.positiveZIndex.splice(B,0,o)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(o)}else a.styles.isFloating()?c.nonPositionedFloats.push(o):c.nonPositionedInlineLevel.push(o);m0(s,o,n?o:r,f)}else a.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),m0(s,e,r,f);he(a.flags,8)&&aB(a,f)})},aB=function(A,e){for(var r=A instanceof d0?A.start:1,t=A instanceof d0?A.reversed:!1,a=0;a<e.length;a++){var n=e[a];n.container instanceof Ph&&typeof n.container.value=="number"&&n.container.value!==0&&(r=n.container.value),n.listValue=hn(r,n.container.styles.listStyleType,!0),r+=t?-1:1}},oT=function(A){var e=new tB(A,null),r=new rB(e),t=[];return m0(e,r,r,t),aB(e.container,t),r},Go=function(A,e){switch(e){case 0:return or(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return or(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return or(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return or(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},lT=function(A,e){switch(e){case 0:return or(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return or(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return or(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return or(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},uT=function(A,e){switch(e){case 0:return or(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return or(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return or(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return or(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},hT=function(A,e){switch(e){case 0:return ti(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return ti(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return ti(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return ti(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},ti=function(A,e){var r=[];return fr(A)?r.push(A.subdivide(.5,!1)):r.push(A),fr(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},or=function(A,e,r,t){var a=[];return fr(A)?a.push(A.subdivide(.5,!1)):a.push(A),fr(r)?a.push(r.subdivide(.5,!0)):a.push(r),fr(t)?a.push(t.subdivide(.5,!0).reverse()):a.push(t),fr(e)?a.push(e.subdivide(.5,!1).reverse()):a.push(e),a},nB=function(A){var e=A.bounds,r=A.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Oi=function(A){var e=A.styles,r=A.bounds,t=KA(e.paddingLeft,r.width),a=KA(e.paddingRight,r.width),n=KA(e.paddingTop,r.width),i=KA(e.paddingBottom,r.width);return r.add(t+e.borderLeftWidth,n+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+t+a),-(e.borderTopWidth+e.borderBottomWidth+n+i))},BT=function(A,e){return A===0?e.bounds:A===2?Oi(e):nB(e)},gT=function(A,e){return A===0?e.bounds:A===2?Oi(e):nB(e)},Ms=function(A,e,r){var t=BT(Aa(A.styles.backgroundOrigin,e),A),a=gT(Aa(A.styles.backgroundClip,e),A),n=dT(Aa(A.styles.backgroundSize,e),r,t),i=n[0],s=n[1],f=Da(Aa(A.styles.backgroundPosition,e),t.width-i,t.height-s),c=xT(Aa(A.styles.backgroundRepeat,e),f,n,t,a),o=Math.round(t.left+f[0]),l=Math.round(t.top+f[1]);return[c,o,l,i,s]},$t=function(A){return NA(A)&&A.value===sa.AUTO},ai=function(A){return typeof A=="number"},dT=function(A,e,r){var t=e[0],a=e[1],n=e[2],i=A[0],s=A[1];if(!i)return[0,0];if(le(i)&&s&&le(s))return[KA(i,r.width),KA(s,r.height)];var f=ai(n);if(NA(i)&&(i.value===sa.CONTAIN||i.value===sa.COVER)){if(ai(n)){var c=r.width/r.height;return c<n!=(i.value===sa.COVER)?[r.width,r.width/n]:[r.height*n,r.height]}return[r.width,r.height]}var o=ai(t),l=ai(a),u=o||l;if($t(i)&&(!s||$t(s))){if(o&&l)return[t,a];if(!f&&!u)return[r.width,r.height];if(u&&f){var B=o?t:a*n,g=l?a:t/n;return[B,g]}var h=o?t:r.width,d=l?a:r.height;return[h,d]}if(f){var p=0,m=0;return le(i)?p=KA(i,r.width):le(s)&&(m=KA(s,r.height)),$t(i)?p=m*n:(!s||$t(s))&&(m=p/n),[p,m]}var w=null,S=null;if(le(i)?w=KA(i,r.width):s&&le(s)&&(S=KA(s,r.height)),w!==null&&(!s||$t(s))&&(S=o&&l?w/t*a:r.height),S!==null&&$t(i)&&(w=o&&l?S/a*t:r.width),w!==null&&S!==null)return[w,S];throw new Error("Unable to calculate background-size for element")},Aa=function(A,e){var r=A[e];return typeof r>"u"?A[0]:r},xT=function(A,e,r,t,a){var n=e[0],i=e[1],s=r[0],f=r[1];switch(A){case 2:return[new lA(Math.round(t.left),Math.round(t.top+i)),new lA(Math.round(t.left+t.width),Math.round(t.top+i)),new lA(Math.round(t.left+t.width),Math.round(f+t.top+i)),new lA(Math.round(t.left),Math.round(f+t.top+i))];case 3:return[new lA(Math.round(t.left+n),Math.round(t.top)),new lA(Math.round(t.left+n+s),Math.round(t.top)),new lA(Math.round(t.left+n+s),Math.round(t.height+t.top)),new lA(Math.round(t.left+n),Math.round(t.height+t.top))];case 1:return[new lA(Math.round(t.left+n),Math.round(t.top+i)),new lA(Math.round(t.left+n+s),Math.round(t.top+i)),new lA(Math.round(t.left+n+s),Math.round(t.top+i+f)),new lA(Math.round(t.left+n),Math.round(t.top+i+f))];default:return[new lA(Math.round(a.left),Math.round(a.top)),new lA(Math.round(a.left+a.width),Math.round(a.top)),new lA(Math.round(a.left+a.width),Math.round(a.height+a.top)),new lA(Math.round(a.left),Math.round(a.height+a.top))]}},wT="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Vo="Hidden Text",pT=(function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,r){var t=this._document.createElement("div"),a=this._document.createElement("img"),n=this._document.createElement("span"),i=this._document.body;t.style.visibility="hidden",t.style.fontFamily=e,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",i.appendChild(t),a.src=wT,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",n.style.fontFamily=e,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(Vo)),t.appendChild(n),t.appendChild(a);var s=a.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode(Vo)),t.style.lineHeight="normal",a.style.verticalAlign="super";var f=a.offsetTop-t.offsetTop+2;return i.removeChild(t),{baseline:s,middle:f}},A.prototype.getMetrics=function(e,r){var t=e+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(e,r)),this._data[t]},A})(),iB=(function(){function A(e,r){this.context=e,this.options=r}return A})(),vT=1e4,mT=(function(A){vr(e,A);function e(r,t){var a=A.call(this,r,t)||this;return a._activeEffects=[],a.canvas=t.canvas?t.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),t.canvas||(a.canvas.width=Math.floor(t.width*t.scale),a.canvas.height=Math.floor(t.height*t.scale),a.canvas.style.width=t.width+"px",a.canvas.style.height=t.height+"px"),a.fontMetrics=new pT(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-t.x,-t.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),a}return e.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(a){return t.applyEffect(a)})},e.prototype.applyEffect=function(r){this.ctx.save(),fT(r)&&(this.ctx.globalAlpha=r.opacity),sT(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),eB(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return Re(this,void 0,void 0,function(){var t;return _e(this,function(a){switch(a.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return Re(this,void 0,void 0,function(){return _e(this,function(t){switch(t.label){case 0:if(he(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,t,a){var n=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+a);else{var i=pf(r.text);i.reduce(function(s,f){return n.ctx.fillText(f,s,r.bounds.top+a),s+n.ctx.measureText(f).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),a=UT(r.fontFamily).join(", "),n=Cn(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,n,a].join(" "),a,n]},e.prototype.renderTextNode=function(r,t){return Re(this,void 0,void 0,function(){var a,n,i,s,f,c,o,l,u=this;return _e(this,function(B){return a=this.createFontStyle(t),n=a[0],i=a[1],s=a[2],this.ctx.font=n,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",f=this.fontMetrics.getMetrics(i,s),c=f.baseline,o=f.middle,l=t.paintOrder,r.textBounds.forEach(function(g){l.forEach(function(h){switch(h){case 0:u.ctx.fillStyle=de(t.color),u.renderTextWithLetterSpacing(g,t.letterSpacing,c);var d=t.textShadow;d.length&&g.text.trim().length&&(d.slice(0).reverse().forEach(function(p){u.ctx.shadowColor=de(p.color),u.ctx.shadowOffsetX=p.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=p.offsetY.number*u.options.scale,u.ctx.shadowBlur=p.blur.number,u.renderTextWithLetterSpacing(g,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=de(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(p){switch(p){case 1:u.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+c),g.bounds.width,1);break;case 2:u.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:u.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+o),g.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&g.text.trim().length&&(u.ctx.strokeStyle=de(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,t,a){if(a&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var n=Oi(r),i=bi(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,r.intrinsicWidth,r.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return Re(this,void 0,void 0,function(){var t,a,n,i,s,f,m,m,c,o,l,u,S,B,g,H,h,d,p,m,w,S,H;return _e(this,function(C){switch(C.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,a=r.curves,n=t.styles,i=0,s=t.textNodes,C.label=1;case 1:return i<s.length?(f=s[i],[4,this.renderTextNode(f,n)]):[3,4];case 2:C.sent(),C.label=3;case 3:return i++,[3,1];case 4:if(!(t instanceof Rh))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return m=C.sent(),this.renderReplacedElement(t,a,m),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Nh&&this.renderReplacedElement(t,a,t.canvas),!(t instanceof Mh))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return m=C.sent(),this.renderReplacedElement(t,a,m),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Vh&&t.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:o=C.sent(),t.width&&t.height&&this.ctx.drawImage(o,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),C.label=14;case 14:if(t instanceof vf&&(l=Math.min(t.bounds.width,t.bounds.height),t.type===Ii?t.checked&&(this.ctx.save(),this.path([new lA(t.bounds.left+l*.39363,t.bounds.top+l*.79),new lA(t.bounds.left+l*.16,t.bounds.top+l*.5549),new lA(t.bounds.left+l*.27347,t.bounds.top+l*.44071),new lA(t.bounds.left+l*.39694,t.bounds.top+l*.5649),new lA(t.bounds.left+l*.72983,t.bounds.top+l*.23),new lA(t.bounds.left+l*.84,t.bounds.top+l*.34085),new lA(t.bounds.left+l*.39363,t.bounds.top+l*.79)]),this.ctx.fillStyle=de(Io),this.ctx.fill(),this.ctx.restore()):t.type===ki&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+l/2,t.bounds.top+l/2,l/4,0,Math.PI*2,!0),this.ctx.fillStyle=de(Io),this.ctx.fill(),this.ctx.restore())),FT(t)&&t.value.length){switch(u=this.createFontStyle(n),S=u[0],B=u[1],g=this.fontMetrics.getMetrics(S,B).baseline,this.ctx.font=S,this.ctx.fillStyle=de(n.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ET(t.styles.textAlign),H=Oi(t),h=0,t.styles.textAlign){case 1:h+=H.width/2;break;case 2:h+=H.width;break}d=H.add(h,0,0,-H.height/2+1),this.ctx.save(),this.path([new lA(H.left,H.top),new lA(H.left+H.width,H.top),new lA(H.left+H.width,H.top+H.height),new lA(H.left,H.top+H.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ja(t.value,d),n.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!he(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(p=t.styles.listStyleImage,p.type!==0)return[3,18];m=void 0,w=p.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(w)];case 16:return m=C.sent(),this.ctx.drawImage(m,t.bounds.left-(m.width+10),t.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+w),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(S=this.createFontStyle(n)[0],this.ctx.font=S,this.ctx.fillStyle=de(n.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",H=new Wr(t.bounds.left,t.bounds.top+KA(t.styles.paddingTop,t.bounds.width),t.bounds.width,ho(n.lineHeight,n.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ja(r.listValue,H),n.letterSpacing,ho(n.lineHeight,n.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(r){return Re(this,void 0,void 0,function(){var t,a,p,n,i,p,s,f,p,c,o,p,l,u,p,B,g,p,h,d,p;return _e(this,function(m){switch(m.label){case 0:if(he(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:m.sent(),t=0,a=r.negativeZIndex,m.label=2;case 2:return t<a.length?(p=a[t],[4,this.renderStack(p)]):[3,5];case 3:m.sent(),m.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:m.sent(),n=0,i=r.nonInlineLevel,m.label=7;case 7:return n<i.length?(p=i[n],[4,this.renderNode(p)]):[3,10];case 8:m.sent(),m.label=9;case 9:return n++,[3,7];case 10:s=0,f=r.nonPositionedFloats,m.label=11;case 11:return s<f.length?(p=f[s],[4,this.renderStack(p)]):[3,14];case 12:m.sent(),m.label=13;case 13:return s++,[3,11];case 14:c=0,o=r.nonPositionedInlineLevel,m.label=15;case 15:return c<o.length?(p=o[c],[4,this.renderStack(p)]):[3,18];case 16:m.sent(),m.label=17;case 17:return c++,[3,15];case 18:l=0,u=r.inlineLevel,m.label=19;case 19:return l<u.length?(p=u[l],[4,this.renderNode(p)]):[3,22];case 20:m.sent(),m.label=21;case 21:return l++,[3,19];case 22:B=0,g=r.zeroOrAutoZIndexOrTransformedOrOpacity,m.label=23;case 23:return B<g.length?(p=g[B],[4,this.renderStack(p)]):[3,26];case 24:m.sent(),m.label=25;case 25:return B++,[3,23];case 26:h=0,d=r.positiveZIndex,m.label=27;case 27:return h<d.length?(p=d[h],[4,this.renderStack(p)]):[3,30];case 28:m.sent(),m.label=29;case 29:return h++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},e.prototype.formatPath=function(r){var t=this;r.forEach(function(a,n){var i=fr(a)?a.start:a;n===0?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.y),fr(a)&&t.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},e.prototype.renderRepeat=function(r,t,a,n){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(a,n),this.ctx.fill(),this.ctx.translate(-a,-n)},e.prototype.resizeImage=function(r,t,a){var n;if(r.width===t&&r.height===a)return r;var i=(n=this.canvas.ownerDocument)!==null&&n!==void 0?n:document,s=i.createElement("canvas");s.width=Math.max(1,t),s.height=Math.max(1,a);var f=s.getContext("2d");return f.drawImage(r,0,0,r.width,r.height,0,0,t,a),s},e.prototype.renderBackgroundImage=function(r){return Re(this,void 0,void 0,function(){var t,a,n,i,s,f;return _e(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,a=function(o){var l,u,B,N,fA,tA,W,Z,y,g,N,fA,tA,W,Z,h,d,p,m,w,S,H,C,v,y,Q,N,R,b,W,Z,AA,fA,tA,EA,M,gA,dA,I,O,D,L;return _e(this,function(X){switch(X.label){case 0:if(o.type!==0)return[3,5];l=void 0,u=o.url,X.label=1;case 1:return X.trys.push([1,3,,4]),[4,n.context.cache.match(u)];case 2:return l=X.sent(),[3,4];case 3:return X.sent(),n.context.logger.error("Error loading background-image "+u),[3,4];case 4:return l&&(B=Ms(r,t,[l.width,l.height,l.width/l.height]),N=B[0],fA=B[1],tA=B[2],W=B[3],Z=B[4],y=n.ctx.createPattern(n.resizeImage(l,W,Z),"repeat"),n.renderRepeat(N,y,fA,tA)),[3,6];case 5:sU(o)?(g=Ms(r,t,[null,null,null]),N=g[0],fA=g[1],tA=g[2],W=g[3],Z=g[4],h=rU(o.angle,W,Z),d=h[0],p=h[1],m=h[2],w=h[3],S=h[4],H=document.createElement("canvas"),H.width=W,H.height=Z,C=H.getContext("2d"),v=C.createLinearGradient(p,w,m,S),lo(o.stops,d).forEach(function(eA){return v.addColorStop(eA.stop,de(eA.color))}),C.fillStyle=v,C.fillRect(0,0,W,Z),W>0&&Z>0&&(y=n.ctx.createPattern(H,"repeat"),n.renderRepeat(N,y,fA,tA))):fU(o)&&(Q=Ms(r,t,[null,null,null]),N=Q[0],R=Q[1],b=Q[2],W=Q[3],Z=Q[4],AA=o.position.length===0?[df]:o.position,fA=KA(AA[0],W),tA=KA(AA[AA.length-1],Z),EA=tU(o,fA,tA,W,Z),M=EA[0],gA=EA[1],M>0&&gA>0&&(dA=n.ctx.createRadialGradient(R+fA,b+tA,0,R+fA,b+tA,M),lo(o.stops,M*2).forEach(function(eA){return dA.addColorStop(eA.stop,de(eA.color))}),n.path(N),n.ctx.fillStyle=dA,M!==gA?(I=r.bounds.left+.5*r.bounds.width,O=r.bounds.top+.5*r.bounds.height,D=gA/M,L=1/D,n.ctx.save(),n.ctx.translate(I,O),n.ctx.transform(1,0,0,D,0,0),n.ctx.translate(-I,-O),n.ctx.fillRect(R,L*(b-O)+O,W,Z*L),n.ctx.restore()):n.ctx.fill())),X.label=6;case 6:return t--,[2]}})},n=this,i=0,s=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return i<s.length?(f=s[i],[5,a(f)]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(r,t,a){return Re(this,void 0,void 0,function(){return _e(this,function(n){return this.path(Go(a,t)),this.ctx.fillStyle=de(r),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(r,t,a,n){return Re(this,void 0,void 0,function(){var i,s;return _e(this,function(f){switch(f.label){case 0:return t<3?[4,this.renderSolidBorder(r,a,n)]:[3,2];case 1:return f.sent(),[2];case 2:return i=lT(n,a),this.path(i),this.ctx.fillStyle=de(r),this.ctx.fill(),s=uT(n,a),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(r){return Re(this,void 0,void 0,function(){var t,a,n,i,s,f,c,o,l=this;return _e(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,a=!st(t.backgroundColor)||t.backgroundImage.length,n=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=CT(Aa(t.backgroundClip,0),r.curves),a||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),st(t.backgroundColor)||(this.ctx.fillStyle=de(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(B){l.ctx.save();var g=Li(r.curves),h=B.inset?0:vT,d=cT(g,-h+(B.inset?1:-1)*B.spread.number,(B.inset?1:-1)*B.spread.number,B.spread.number*(B.inset?-2:2),B.spread.number*(B.inset?-2:2));B.inset?(l.path(g),l.ctx.clip(),l.mask(d)):(l.mask(g),l.ctx.clip(),l.path(d)),l.ctx.shadowOffsetX=B.offsetX.number+h,l.ctx.shadowOffsetY=B.offsetY.number,l.ctx.shadowColor=de(B.color),l.ctx.shadowBlur=B.blur.number,l.ctx.fillStyle=B.inset?de(B.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()}),u.label=2;case 2:s=0,f=0,c=n,u.label=3;case 3:return f<c.length?(o=c[f],o.style!==0&&!st(o.color)&&o.width>0?o.style!==2?[3,5]:[4,this.renderDashedDottedBorder(o.color,o.width,s,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return o.style!==3?[3,7]:[4,this.renderDashedDottedBorder(o.color,o.width,s,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return o.style!==4?[3,9]:[4,this.renderDoubleBorder(o.color,o.width,s,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(o.color,s,r.curves)];case 10:u.sent(),u.label=11;case 11:s++,u.label=12;case 12:return f++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,t,a,n,i){return Re(this,void 0,void 0,function(){var s,f,c,o,l,u,B,g,h,d,p,m,w,S,H,C,H,C;return _e(this,function(v){return this.ctx.save(),s=hT(n,a),f=Go(n,a),i===2&&(this.path(f),this.ctx.clip()),fr(f[0])?(c=f[0].start.x,o=f[0].start.y):(c=f[0].x,o=f[0].y),fr(f[1])?(l=f[1].end.x,u=f[1].end.y):(l=f[1].x,u=f[1].y),a===0||a===2?B=Math.abs(c-l):B=Math.abs(o-u),this.ctx.beginPath(),i===3?this.formatPath(s):this.formatPath(f.slice(0,2)),g=t<3?t*3:t*2,h=t<3?t*2:t,i===3&&(g=t,h=t),d=!0,B<=g*2?d=!1:B<=g*2+h?(p=B/(2*g+h),g*=p,h*=p):(m=Math.floor((B+h)/(g+h)),w=(B-m*g)/(m-1),S=(B-(m+1)*g)/m,h=S<=0||Math.abs(h-w)<Math.abs(h-S)?w:S),d&&(i===3?this.ctx.setLineDash([0,g+h]):this.ctx.setLineDash([g,h])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=de(r),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(fr(f[0])&&(H=f[3],C=f[0],this.ctx.beginPath(),this.formatPath([new lA(H.end.x,H.end.y),new lA(C.start.x,C.start.y)]),this.ctx.stroke()),fr(f[1])&&(H=f[1],C=f[2],this.ctx.beginPath(),this.formatPath([new lA(H.end.x,H.end.y),new lA(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(r){return Re(this,void 0,void 0,function(){var t;return _e(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=oT(r),[4,this.renderStack(t)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(iB),FT=function(A){return A instanceof Gh||A instanceof Kh?!0:A instanceof vf&&A.type!==ki&&A.type!==Ii},CT=function(A,e){switch(A){case 0:return Li(e);case 2:return aT(e);default:return bi(e)}},ET=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},QT=["-apple-system","system-ui"],UT=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return QT.indexOf(e)===-1}):A},_T=(function(A){vr(e,A);function e(r,t){var a=A.call(this,r,t)||this;return a.canvas=t.canvas?t.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=t,a.canvas.width=Math.floor(t.width*t.scale),a.canvas.height=Math.floor(t.height*t.scale),a.canvas.style.width=t.width+"px",a.canvas.style.height=t.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-t.x,-t.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),a}return e.prototype.render=function(r){return Re(this,void 0,void 0,function(){var t,a;return _e(this,function(n){switch(n.label){case 0:return t=g0(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,yT(t)];case 1:return a=n.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(iB),yT=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},TT=(function(){function A(e){var r=e.id,t=e.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,bn([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A})(),ST=(function(){function A(e,r){var t;this.windowBounds=r,this.instanceName="#"+A.instanceCount++,this.logger=new TT({id:this.instanceName,enabled:e.logging}),this.cache=(t=e.cache)!==null&&t!==void 0?t:new Zy(this,e)}return A.instanceCount=1,A})(),sB=function(A,e){return e===void 0&&(e={}),IT(A,e)};typeof window<"u"&&AB.setContext(window);var IT=function(A,e){return Re(void 0,void 0,void 0,function(){var r,t,a,n,i,s,f,c,o,l,u,B,g,h,d,p,m,w,S,H,v,C,v,y,Q,N,R,b,W,Z,AA,fA,tA,EA,M,gA,dA,I,O,D;return _e(this,function(L){switch(L.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return a={allowTaint:(y=e.allowTaint)!==null&&y!==void 0?y:!1,imageTimeout:(Q=e.imageTimeout)!==null&&Q!==void 0?Q:15e3,proxy:e.proxy,useCORS:(N=e.useCORS)!==null&&N!==void 0?N:!1},n=A0({logging:(R=e.logging)!==null&&R!==void 0?R:!0,cache:e.cache},a),i={windowWidth:(b=e.windowWidth)!==null&&b!==void 0?b:t.innerWidth,windowHeight:(W=e.windowHeight)!==null&&W!==void 0?W:t.innerHeight,scrollX:(Z=e.scrollX)!==null&&Z!==void 0?Z:t.pageXOffset,scrollY:(AA=e.scrollY)!==null&&AA!==void 0?AA:t.pageYOffset},s=new Wr(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),f=new ST(n,s),c=(fA=e.foreignObjectRendering)!==null&&fA!==void 0?fA:!1,o={allowTaint:(tA=e.allowTaint)!==null&&tA!==void 0?tA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},f.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),l=new Mo(f,A,o),u=l.clonedReferenceElement,u?[4,l.toIFrame(r,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=L.sent(),g=mf(u)||Hy(u)?cQ(u.ownerDocument):Ji(f,u),h=g.width,d=g.height,p=g.left,m=g.top,w=kT(f,u,e.backgroundColor),S={canvas:e.canvas,backgroundColor:w,scale:(M=(EA=e.scale)!==null&&EA!==void 0?EA:t.devicePixelRatio)!==null&&M!==void 0?M:1,x:((gA=e.x)!==null&&gA!==void 0?gA:0)+p,y:((dA=e.y)!==null&&dA!==void 0?dA:0)+m,width:(I=e.width)!==null&&I!==void 0?I:Math.ceil(h),height:(O=e.height)!==null&&O!==void 0?O:Math.ceil(d)},c?(f.logger.debug("Document cloned, using foreign object rendering"),v=new _T(f,S),[4,v.render(u)]):[3,3];case 2:return H=L.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+p+","+m+" with size "+h+"x"+d+" using computed rendering"),f.logger.debug("Starting DOM parsing"),C=Xh(f,u),w===C.styles.backgroundColor&&(C.styles.backgroundColor=Gr.TRANSPARENT),f.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),v=new mT(f,S),[4,v.render(C)];case 4:H=L.sent(),L.label=5;case 5:return(!((D=e.removeContainer)!==null&&D!==void 0)||D)&&(Mo.destroy(B)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,H]}})})},kT=function(A,e,r){var t=e.ownerDocument,a=t.documentElement?Xa(A,getComputedStyle(t.documentElement).backgroundColor):Gr.TRANSPARENT,n=t.body?Xa(A,getComputedStyle(t.body).backgroundColor):Gr.TRANSPARENT,i=typeof r=="string"?Xa(A,r):r===null?Gr.TRANSPARENT:4294967295;return e===t.documentElement?st(a)?st(n)?i:n:a:i};function HT(A){return Number.isSafeInteger(A)&&A>=0}function fB(A){return A!=null&&typeof A!="function"&&HT(A.length)}function Ff(A){return A}function F0(A){return A==="__proto__"}function cB(A){switch(typeof A){case"number":case"symbol":return!1;case"string":return A.includes(".")||A.includes("[")||A.includes("]")}}function Cf(A){return typeof A=="string"||typeof A=="symbol"?A:Object.is(A?.valueOf?.(),-0)?"-0":String(A)}function oB(A){if(A==null)return"";if(typeof A=="string")return A;if(Array.isArray(A))return A.map(oB).join(",");const e=String(A);return e==="0"&&Object.is(Number(A),-0)?"-0":e}function lB(A){if(Array.isArray(A))return A.map(Cf);if(typeof A=="symbol")return[A];A=oB(A);const e=[],r=A.length;if(r===0)return e;let t=0,a="",n="",i=!1;for(A.charCodeAt(0)===46&&(e.push(""),t++);t<r;){const s=A[t];n?s==="\\"&&t+1<r?(t++,a+=A[t]):s===n?n="":a+=s:i?s==='"'||s==="'"?n=s:s==="]"?(i=!1,e.push(a),a=""):a+=s:s==="["?(i=!0,a&&(e.push(a),a="")):s==="."?a&&(e.push(a),a=""):a+=s,t++}return a&&e.push(a),e}function Ef(A,e,r){if(A==null)return r;switch(typeof e){case"string":{if(F0(e))return r;const t=A[e];return t===void 0?cB(e)?Ef(A,lB(e),r):r:t}case"number":case"symbol":{typeof e=="number"&&(e=Cf(e));const t=A[e];return t===void 0?r:t}default:{if(Array.isArray(e))return DT(A,e,r);if(Object.is(e?.valueOf(),-0)?e="-0":e=String(e),F0(e))return r;const t=A[e];return t===void 0?r:t}}}function DT(A,e,r){if(e.length===0)return r;let t=A;for(let a=0;a<e.length;a++){if(t==null||F0(e[a]))return r;t=t[e[a]]}return t===void 0?r:t}function LT(A){return function(e){return Ef(e,A)}}function bT(A){return A!==null&&(typeof A=="object"||typeof A=="function")}function C0(A){return A==null||typeof A!="object"&&typeof A!="function"}function Wo(A,e){return A===e||Number.isNaN(A)&&Number.isNaN(e)}function uB(A,e,r){return typeof r!="function"?uB(A,e,()=>{}):E0(A,e,function t(a,n,i,s,f,c){const o=r(a,n,i,s,f,c);return o!==void 0?!!o:E0(a,n,t,c)},new Map)}function E0(A,e,r,t){if(e===A)return!0;switch(typeof e){case"object":return OT(A,e,r,t);case"function":return Object.keys(e).length>0?E0(A,{...e},r,t):Wo(A,e);default:return bT(A)?typeof e=="string"?e==="":!0:Wo(A,e)}}function OT(A,e,r,t){if(e==null)return!0;if(Array.isArray(e))return hB(A,e,r,t);if(e instanceof Map)return RT(A,e,r,t);if(e instanceof Set)return NT(A,e,r,t);const a=Object.keys(e);if(A==null||C0(A))return a.length===0;if(a.length===0)return!0;if(t?.has(e))return t.get(e)===A;t?.set(e,A);try{for(let n=0;n<a.length;n++){const i=a[n];if(!C0(A)&&!(i in A)||e[i]===void 0&&A[i]!==void 0||e[i]===null&&A[i]!==null||!r(A[i],e[i],i,A,e,t))return!1}return!0}finally{t?.delete(e)}}function RT(A,e,r,t){if(e.size===0)return!0;if(!(A instanceof Map))return!1;for(const[a,n]of e.entries()){const i=A.get(a);if(r(i,n,a,A,e,t)===!1)return!1}return!0}function hB(A,e,r,t){if(e.length===0)return!0;if(!Array.isArray(A))return!1;const a=new Set;for(let n=0;n<e.length;n++){const i=e[n];let s=!1;for(let f=0;f<A.length;f++){if(a.has(f))continue;const c=A[f];let o=!1;if(r(c,i,n,A,e,t)&&(o=!0),o){a.add(f),s=!0;break}}if(!s)return!1}return!0}function NT(A,e,r,t){return e.size===0?!0:A instanceof Set?hB([...A],[...e],r,t):!1}function BB(A,e){return uB(A,e,()=>{})}function MT(A){return Object.getOwnPropertySymbols(A).filter(e=>Object.prototype.propertyIsEnumerable.call(A,e))}function gB(A){return A==null?A===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(A)}const PT="[object RegExp]",dB="[object String]",xB="[object Number]",wB="[object Boolean]",pB="[object Arguments]",KT="[object Symbol]",GT="[object Date]",VT="[object Map]",WT="[object Set]",XT="[object Array]",YT="[object ArrayBuffer]",JT="[object Object]",zT="[object DataView]",ZT="[object Uint8Array]",$T="[object Uint8ClampedArray]",jT="[object Uint16Array]",qT="[object Uint32Array]",AS="[object Int8Array]",eS="[object Int16Array]",rS="[object Int32Array]",tS="[object Float32Array]",aS="[object Float64Array]";function nS(A){return ArrayBuffer.isView(A)&&!(A instanceof DataView)}function iS(A,e){return Et(A,void 0,A,new Map,e)}function Et(A,e,r,t=new Map,a=void 0){const n=a?.(A,e,r,t);if(n!==void 0)return n;if(C0(A))return A;if(t.has(A))return t.get(A);if(Array.isArray(A)){const i=new Array(A.length);t.set(A,i);for(let s=0;s<A.length;s++)i[s]=Et(A[s],s,r,t,a);return Object.hasOwn(A,"index")&&(i.index=A.index),Object.hasOwn(A,"input")&&(i.input=A.input),i}if(A instanceof Date)return new Date(A.getTime());if(A instanceof RegExp){const i=new RegExp(A.source,A.flags);return i.lastIndex=A.lastIndex,i}if(A instanceof Map){const i=new Map;t.set(A,i);for(const[s,f]of A)i.set(s,Et(f,s,r,t,a));return i}if(A instanceof Set){const i=new Set;t.set(A,i);for(const s of A)i.add(Et(s,void 0,r,t,a));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(A))return A.subarray();if(nS(A)){const i=new(Object.getPrototypeOf(A)).constructor(A.length);t.set(A,i);for(let s=0;s<A.length;s++)i[s]=Et(A[s],s,r,t,a);return i}if(A instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&A instanceof SharedArrayBuffer)return A.slice(0);if(A instanceof DataView){const i=new DataView(A.buffer.slice(0),A.byteOffset,A.byteLength);return t.set(A,i),yr(i,A,r,t,a),i}if(typeof File<"u"&&A instanceof File){const i=new File([A],A.name,{type:A.type});return t.set(A,i),yr(i,A,r,t,a),i}if(typeof Blob<"u"&&A instanceof Blob){const i=new Blob([A],{type:A.type});return t.set(A,i),yr(i,A,r,t,a),i}if(A instanceof Error){const i=new A.constructor;return t.set(A,i),i.message=A.message,i.name=A.name,i.stack=A.stack,i.cause=A.cause,yr(i,A,r,t,a),i}if(A instanceof Boolean){const i=new Boolean(A.valueOf());return t.set(A,i),yr(i,A,r,t,a),i}if(A instanceof Number){const i=new Number(A.valueOf());return t.set(A,i),yr(i,A,r,t,a),i}if(A instanceof String){const i=new String(A.valueOf());return t.set(A,i),yr(i,A,r,t,a),i}if(typeof A=="object"&&sS(A)){const i=Object.create(Object.getPrototypeOf(A));return t.set(A,i),yr(i,A,r,t,a),i}return A}function yr(A,e,r=A,t,a){const n=[...Object.keys(e),...MT(e)];for(let i=0;i<n.length;i++){const s=n[i],f=Object.getOwnPropertyDescriptor(A,s);(f==null||f.writable)&&(A[s]=Et(e[s],s,r,t,a))}}function sS(A){switch(gB(A)){case pB:case XT:case YT:case zT:case wB:case GT:case tS:case aS:case AS:case eS:case rS:case VT:case xB:case JT:case PT:case WT:case dB:case KT:case ZT:case $T:case jT:case qT:return!0;default:return!1}}function fS(A){return Et(A,void 0,A,new Map,void 0)}function cS(A){return A=fS(A),e=>BB(e,A)}function oS(A,e){return iS(A,(r,t,a,n)=>{if(typeof A=="object")switch(Object.prototype.toString.call(A)){case xB:case dB:case wB:{const i=new A.constructor(A?.valueOf());return yr(i,A),i}case pB:{const i={};return yr(i,A),i.length=A.length,i[Symbol.iterator]=A[Symbol.iterator],i}default:return}})}function lS(A){return oS(A)}const uS=/^(?:0|[1-9]\d*)$/;function hS(A,e=Number.MAX_SAFE_INTEGER){switch(typeof A){case"number":return Number.isInteger(A)&&A>=0&&A<e;case"symbol":return!1;case"string":return uS.test(A)}}function BS(A){return A!==null&&typeof A=="object"&&gB(A)==="[object Arguments]"}function gS(A,e){let r;if(Array.isArray(e)?r=e:typeof e=="string"&&cB(e)&&A?.[e]==null?r=lB(e):r=[e],r.length===0)return!1;let t=A;for(let a=0;a<r.length;a++){const n=r[a];if((t==null||!Object.hasOwn(t,n))&&!((Array.isArray(t)||BS(t))&&hS(n)&&n<t.length))return!1;t=t[n]}return!0}function dS(A,e){switch(typeof A){case"object":{Object.is(A?.valueOf(),-0)&&(A="-0");break}case"number":{A=Cf(A);break}}return e=lS(e),function(r){const t=Ef(r,A);return t===void 0?gS(r,A):e===void 0?t===void 0:BB(t,e)}}function xS(A){if(A==null)return Ff;switch(typeof A){case"function":return A;case"object":return Array.isArray(A)&&A.length===2?dS(A[0],A[1]):cS(A);case"string":case"symbol":case"number":return LT(A)}}function vB(A,e,r=1){if(e==null&&(e=A,A=0),!Number.isInteger(r)||r===0)throw new Error("The step value must be a non-zero integer.");const t=Math.max(Math.ceil((e-A)/r),0),a=new Array(t);for(let n=0;n<t;n++)a[n]=A+n*r;return a}function wS(A,e=Ff){if(!A)return A;const r=fB(A)||Array.isArray(A)?vB(0,A.length):Object.keys(A);for(let t=0;t<r.length;t++){const a=r[t],n=A[a];if(e(n,a,A)===!1)break}return A}function pS(A,e){if(!A)return[];const r=fB(A)||Array.isArray(A)?vB(0,A.length):Object.keys(A),t=xS(e??Ff),a=new Array(r.length);for(let n=0;n<r.length;n++){const i=r[n],s=A[i];a[n]=t(s,i,A)}return a}function vS(){const A=new Date(1582,10,15,0,0,0,0),r=new Date().getTime()-A.getTime(),t=Qr(r,0,31),a=Qr(r,32,47),n=Qr(r,48,59)+"1",i=Qr(pt(4095),0,7),s=Qr(pt(4095),0,7),f=Qr(pt(8191),0,7)+Qr(pt(8191),8,15)+Qr(pt(8191),0,7)+Qr(pt(8191),8,15)+Qr(pt(8191),0,15);return t+a+n+i+s+f}function Qr(A,e,r){const t=A.toString(16).toUpperCase(),a=new Array;let n="",i=0;for(i=0;i<t.length;i++)a.push(t.substring(i,i+1));for(i=Math.floor(e/4);i<=Math.floor(r/4);i++)!a[i]||a[i]===""?n+="0":n+=a[i];return n}function pt(A){return Math.floor(Math.random()*(A+1))}function mS(A,e,r,t,a={}){return new Promise(n=>{const i=oi.book_new();wS(r,(s,f)=>{const c=pS(s,l=>{const u={};for(const B in e)l[B]&&(u[e[B]]=l[B]);return u}),o=oi.json_to_sheet(c);o["!cols"]=t,oi.book_append_sheet(i,o,a[f]?a[f]:"")}),jE(i,A+".xlsx"),n(!0)})}function FS(A){return new Promise(e=>{const r=new FileReader;r.readAsArrayBuffer(A),r.onload=t=>{const a=t.target.result,n=js(a,{type:"binary",cellDates:!0}),i=n.SheetNames[0],s=oi.sheet_to_json(n.Sheets[i]);e(s)}})}function CS(A,e,r=!0){return new Promise(async t=>{const a=await sB(e),n=a.width,i=a.height,s=n/592.28*841.89;let f=i,c=0;const o=595.28,l=592.28/n*i,u=a.toDataURL("image/jpeg",1),B=new Xo.jsPDF("p","pt","a4");if(f<s)B.addImage(u,"JPEG",0,0,o,l);else for(;f>0;)B.addImage(u,"JPEG",0,c,o,l),f-=s,c-=841.89,f>0&&B.addPage();r?B.save(A+".pdf"):t(B.output("blob")),t(B.output("blob"))})}function ES(A,e="image/jpeg"){return new Promise(r=>{sB(A).then(t=>{const a=t.toDataURL(e);r(a)})})}function Qf(A){let e="";if(!/^#?[0-9A-Fa-f]{6}$/.test(A))return"";A=A.replace("#",""),e=A.match(/../g);for(let t=0;t<3;t++)e[t]=parseInt(e[t],16);return e}function Uf(A,e,r){let t=/^\d{1,3}$/;if(!t.test(A.toString())||!t.test(e.toString())||!t.test(r.toString()))return"";let a=[A.toString(16),e.toString(16),r.toString(16)];for(let n=0;n<3;n++)a[n].length==1&&(a[n]=`0${a[n]}`);return`#${a.join("")}`}function QS(A,e){if(!/^#?[0-9A-Fa-f]{6}$/.test(A))return"";let t=Qf(A);for(let a=0;a<3;a++)t[a]=Math.floor((255-t[a])*e+t[a]);return Uf(t[0],t[1],t[2])}function US(A,e){if(!/^#?[0-9A-Fa-f]{6}$/.test(A))return"";let t=Qf(A);for(let a=0;a<3;a++)t[a]=Math.floor(t[a]*(1-e));return Uf(t[0],t[1],t[2])}function _S(A){return new Promise((e,r)=>{const t=new Image;t.src=A,t.onload=()=>{const a=document.createElement("canvas");a.width=t.naturalWidth,a.height=t.naturalHeight,a.style.width=`${a.width/window.devicePixelRatio}px`,a.style.height=`${a.height/window.devicePixelRatio}px`;const n=a.getContext("2d");if(!n)return null;n.drawImage(t,0,0);const i=a.toDataURL("image/png");return e(i)},t.onerror=a=>r(a)})}function yS(A,e){const r=A.split(","),t=atob(r[1]),a={type:"image/jpeg",endings:"native"},n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return new File([n],`${e}`,a)}function TS(A,e="文件名称"){const r=document.createElement("a");r.style.display="none",r.href=A,r.target="_blank",r.setAttribute("download",e),document.body.appendChild(r),r.click(),document.body.removeChild(r)}function SS(A,e){window.localStorage.setItem(A,JSON.stringify(e))}function IS(A){const e=window.localStorage.getItem(A);if(e&&e!=="undefined")return JSON.parse(e)}function kS(A){window.localStorage.removeItem(A)}function HS(){window.localStorage.clear()}function DS(A,e){window.sessionStorage.setItem(A,JSON.stringify(e))}function LS(A){const e=window.sessionStorage.getItem(A);if(e&&e!=="undefined")return JSON.parse(e)}function bS(A){window.sessionStorage.removeItem(A)}function OS(){window.sessionStorage.clear()}exports.esToolkit=RB;exports.dayjs=De;exports.jsPDF=Xo;exports.base64toFile=yS;exports.clearLocal=HS;exports.clearSession=OS;exports.computeDate=Jo;exports.createUUID=vS;exports.downloadFile=TS;exports.endDate=a1;exports.exportExcel=mS;exports.exportPdf=CS;exports.formatDate=Yo;exports.formatTimeStamp=n1;exports.getDarkColor=US;exports.getDateDiff=U0;exports.getLightColor=QS;exports.getLocal=IS;exports.getRangeDate=i1;exports.getRelativeTime=s1;exports.getSession=LS;exports.getTimeStamp=Q0;exports.hexToRgb=Qf;exports.imgToBase64=_S;exports.importExcel=FS;exports.importImage=ES;exports.removeLocal=kS;exports.removeSession=bS;exports.rgbToHex=Uf;exports.setLocal=SS;exports.setSession=DS;exports.startDate=t1;
|
|
108
|
+
.`+v0+Yy+Po)},zy=function(A,e){var r=A.ownerDocument;if(r){var t=r.createElement("style");t.textContent=e,A.appendChild(t)}},AB=(function(){function A(){}return A.getOrigin=function(e){var r=A._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A})(),Zy=(function(){function A(e,r){this.context=e,this._options=r,this._cache={}}return A.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(Ns(e)||AT(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return Re(this,void 0,void 0,function(){var r,t,a,n,i=this;return _e(this,function(s){switch(s.label){case 0:return r=AB.isSameOrigin(e),t=!Rs(e)&&this._options.useCORS===!0&&me.SUPPORT_CORS_IMAGES&&!r,a=!Rs(e)&&!r&&!Ns(e)&&typeof this._options.proxy=="string"&&me.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!Rs(e)&&!Ns(e)&&!a&&!t?[2]:(n=e,a?[4,this.proxy(n)]:[3,2]);case 1:n=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(f,c){var o=new Image;o.onload=function(){return f(o)},o.onerror=c,(eT(n)||t)&&(o.crossOrigin="anonymous"),o.src=n,o.complete===!0&&setTimeout(function(){return f(o)},500),i._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(n,i){var s=me.SUPPORT_RESPONSE_TYPE?"blob":"text",f=new XMLHttpRequest;f.onload=function(){if(f.status===200)if(s==="text")n(f.response);else{var l=new FileReader;l.addEventListener("load",function(){return n(l.result)},!1),l.addEventListener("error",function(u){return i(u)},!1),l.readAsDataURL(f.response)}else i("Failed to proxy resource "+a+" with status code "+f.status)},f.onerror=i;var c=t.indexOf("?")>-1?"&":"?";if(f.open("GET",""+t+c+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&f instanceof XMLHttpRequest&&(f.responseType=s),r._options.imageTimeout){var o=r._options.imageTimeout;f.timeout=o,f.ontimeout=function(){return i("Timed out ("+o+"ms) proxying "+a)}}f.send()})},A})(),$y=/^data:image\/svg\+xml/i,jy=/^data:image\/.*;base64,/i,qy=/^data:image\/.*/i,AT=function(A){return me.SUPPORT_SVG_DRAWING||!rT(A)},Rs=function(A){return qy.test(A)},eT=function(A){return jy.test(A)},Ns=function(A){return A.substr(0,4)==="blob"},rT=function(A){return A.substr(-3).toLowerCase()==="svg"||$y.test(A)},lA=(function(){function A(e,r){this.type=0,this.x=e,this.y=r}return A.prototype.add=function(e,r){return new A(this.x+e,this.y+r)},A})(),Zt=function(A,e,r){return new lA(A.x+(e.x-A.x)*r,A.y+(e.y-A.y)*r)},ei=(function(){function A(e,r,t,a){this.type=1,this.start=e,this.startControl=r,this.endControl=t,this.end=a}return A.prototype.subdivide=function(e,r){var t=Zt(this.start,this.startControl,e),a=Zt(this.startControl,this.endControl,e),n=Zt(this.endControl,this.end,e),i=Zt(t,a,e),s=Zt(a,n,e),f=Zt(i,s,e);return r?new A(this.start,t,i,f):new A(f,s,n,this.end)},A.prototype.add=function(e,r){return new A(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),fr=function(A){return A.type===1},tT=(function(){function A(e){var r=e.styles,t=e.bounds,a=Da(r.borderTopLeftRadius,t.width,t.height),n=a[0],i=a[1],s=Da(r.borderTopRightRadius,t.width,t.height),f=s[0],c=s[1],o=Da(r.borderBottomRightRadius,t.width,t.height),l=o[0],u=o[1],B=Da(r.borderBottomLeftRadius,t.width,t.height),g=B[0],h=B[1],d=[];d.push((n+f)/t.width),d.push((g+l)/t.width),d.push((i+h)/t.height),d.push((c+u)/t.height);var p=Math.max.apply(Math,d);p>1&&(n/=p,i/=p,f/=p,c/=p,l/=p,u/=p,g/=p,h/=p);var m=t.width-f,w=t.height-u,S=t.width-l,H=t.height-h,C=r.borderTopWidth,v=r.borderRightWidth,y=r.borderBottomWidth,Q=r.borderLeftWidth,N=KA(r.paddingTop,e.bounds.width),R=KA(r.paddingRight,e.bounds.width),b=KA(r.paddingBottom,e.bounds.width),W=KA(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||i>0?YA(t.left+Q/3,t.top+C/3,n-Q/3,i-C/3,LA.TOP_LEFT):new lA(t.left+Q/3,t.top+C/3),this.topRightBorderDoubleOuterBox=n>0||i>0?YA(t.left+m,t.top+C/3,f-v/3,c-C/3,LA.TOP_RIGHT):new lA(t.left+t.width-v/3,t.top+C/3),this.bottomRightBorderDoubleOuterBox=l>0||u>0?YA(t.left+S,t.top+w,l-v/3,u-y/3,LA.BOTTOM_RIGHT):new lA(t.left+t.width-v/3,t.top+t.height-y/3),this.bottomLeftBorderDoubleOuterBox=g>0||h>0?YA(t.left+Q/3,t.top+H,g-Q/3,h-y/3,LA.BOTTOM_LEFT):new lA(t.left+Q/3,t.top+t.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||i>0?YA(t.left+Q*2/3,t.top+C*2/3,n-Q*2/3,i-C*2/3,LA.TOP_LEFT):new lA(t.left+Q*2/3,t.top+C*2/3),this.topRightBorderDoubleInnerBox=n>0||i>0?YA(t.left+m,t.top+C*2/3,f-v*2/3,c-C*2/3,LA.TOP_RIGHT):new lA(t.left+t.width-v*2/3,t.top+C*2/3),this.bottomRightBorderDoubleInnerBox=l>0||u>0?YA(t.left+S,t.top+w,l-v*2/3,u-y*2/3,LA.BOTTOM_RIGHT):new lA(t.left+t.width-v*2/3,t.top+t.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||h>0?YA(t.left+Q*2/3,t.top+H,g-Q*2/3,h-y*2/3,LA.BOTTOM_LEFT):new lA(t.left+Q*2/3,t.top+t.height-y*2/3),this.topLeftBorderStroke=n>0||i>0?YA(t.left+Q/2,t.top+C/2,n-Q/2,i-C/2,LA.TOP_LEFT):new lA(t.left+Q/2,t.top+C/2),this.topRightBorderStroke=n>0||i>0?YA(t.left+m,t.top+C/2,f-v/2,c-C/2,LA.TOP_RIGHT):new lA(t.left+t.width-v/2,t.top+C/2),this.bottomRightBorderStroke=l>0||u>0?YA(t.left+S,t.top+w,l-v/2,u-y/2,LA.BOTTOM_RIGHT):new lA(t.left+t.width-v/2,t.top+t.height-y/2),this.bottomLeftBorderStroke=g>0||h>0?YA(t.left+Q/2,t.top+H,g-Q/2,h-y/2,LA.BOTTOM_LEFT):new lA(t.left+Q/2,t.top+t.height-y/2),this.topLeftBorderBox=n>0||i>0?YA(t.left,t.top,n,i,LA.TOP_LEFT):new lA(t.left,t.top),this.topRightBorderBox=f>0||c>0?YA(t.left+m,t.top,f,c,LA.TOP_RIGHT):new lA(t.left+t.width,t.top),this.bottomRightBorderBox=l>0||u>0?YA(t.left+S,t.top+w,l,u,LA.BOTTOM_RIGHT):new lA(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=g>0||h>0?YA(t.left,t.top+H,g,h,LA.BOTTOM_LEFT):new lA(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||i>0?YA(t.left+Q,t.top+C,Math.max(0,n-Q),Math.max(0,i-C),LA.TOP_LEFT):new lA(t.left+Q,t.top+C),this.topRightPaddingBox=f>0||c>0?YA(t.left+Math.min(m,t.width-v),t.top+C,m>t.width+v?0:Math.max(0,f-v),Math.max(0,c-C),LA.TOP_RIGHT):new lA(t.left+t.width-v,t.top+C),this.bottomRightPaddingBox=l>0||u>0?YA(t.left+Math.min(S,t.width-Q),t.top+Math.min(w,t.height-y),Math.max(0,l-v),Math.max(0,u-y),LA.BOTTOM_RIGHT):new lA(t.left+t.width-v,t.top+t.height-y),this.bottomLeftPaddingBox=g>0||h>0?YA(t.left+Q,t.top+Math.min(H,t.height-y),Math.max(0,g-Q),Math.max(0,h-y),LA.BOTTOM_LEFT):new lA(t.left+Q,t.top+t.height-y),this.topLeftContentBox=n>0||i>0?YA(t.left+Q+W,t.top+C+N,Math.max(0,n-(Q+W)),Math.max(0,i-(C+N)),LA.TOP_LEFT):new lA(t.left+Q+W,t.top+C+N),this.topRightContentBox=f>0||c>0?YA(t.left+Math.min(m,t.width+Q+W),t.top+C+N,m>t.width+Q+W?0:f-Q+W,c-(C+N),LA.TOP_RIGHT):new lA(t.left+t.width-(v+R),t.top+C+N),this.bottomRightContentBox=l>0||u>0?YA(t.left+Math.min(S,t.width-(Q+W)),t.top+Math.min(w,t.height+C+N),Math.max(0,l-(v+R)),u-(y+b),LA.BOTTOM_RIGHT):new lA(t.left+t.width-(v+R),t.top+t.height-(y+b)),this.bottomLeftContentBox=g>0||h>0?YA(t.left+Q+W,t.top+H,Math.max(0,g-(Q+W)),h-(y+b),LA.BOTTOM_LEFT):new lA(t.left+Q+W,t.top+t.height-(y+b))}return A})(),LA;(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"})(LA||(LA={}));var YA=function(A,e,r,t,a){var n=4*((Math.sqrt(2)-1)/3),i=r*n,s=t*n,f=A+r,c=e+t;switch(a){case LA.TOP_LEFT:return new ei(new lA(A,c),new lA(A,c-s),new lA(f-i,e),new lA(f,e));case LA.TOP_RIGHT:return new ei(new lA(A,e),new lA(A+i,e),new lA(f,c-s),new lA(f,c));case LA.BOTTOM_RIGHT:return new ei(new lA(f,e),new lA(f,e+s),new lA(A+i,c),new lA(A,c));case LA.BOTTOM_LEFT:default:return new ei(new lA(f,c),new lA(f-i,c),new lA(A,e+s),new lA(A,e))}},Li=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},aT=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},bi=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},nT=(function(){function A(e,r,t){this.offsetX=e,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return A})(),ri=(function(){function A(e,r){this.path=e,this.target=r,this.type=1}return A})(),iT=(function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A})(),sT=function(A){return A.type===0},eB=function(A){return A.type===1},fT=function(A){return A.type===2},Ko=function(A,e){return A.length===e.length?A.some(function(r,t){return r===e[t]}):!1},cT=function(A,e,r,t,a){return A.map(function(n,i){switch(i){case 0:return n.add(e,r);case 1:return n.add(e+t,r);case 2:return n.add(e+t,r+a);case 3:return n.add(e,r+a)}return n})},rB=(function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),tB=(function(){function A(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new tT(this.container),this.container.styles.opacity<1&&this.effects.push(new iT(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new nT(t,a,n))}if(this.container.styles.overflowX!==0){var i=Li(this.curves),s=bi(this.curves);Ko(i,s)?this.effects.push(new ri(i,6)):(this.effects.push(new ri(i,2)),this.effects.push(new ri(s,4)))}}return A.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,a=this.effects.slice(0);t;){var n=t.effects.filter(function(f){return!eB(f)});if(r||t.container.styles.position!==0||!t.parent){if(a.unshift.apply(a,n),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var i=Li(t.curves),s=bi(t.curves);Ko(i,s)||a.unshift(new ri(s,6))}}else a.unshift.apply(a,n);t=t.parent}return a.filter(function(f){return he(f.target,e)})},A})(),m0=function(A,e,r,t){A.container.elements.forEach(function(a){var n=he(a.flags,4),i=he(a.flags,2),s=new tB(a,A);he(a.styles.display,2048)&&t.push(s);var f=he(a.flags,8)?[]:t;if(n||i){var c=n||a.styles.isPositioned()?r:e,o=new rB(s);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var l=a.styles.zIndex.order;if(l<0){var u=0;c.negativeZIndex.some(function(g,h){return l>g.element.container.styles.zIndex.order?(u=h,!1):u>0}),c.negativeZIndex.splice(u,0,o)}else if(l>0){var B=0;c.positiveZIndex.some(function(g,h){return l>=g.element.container.styles.zIndex.order?(B=h+1,!1):B>0}),c.positiveZIndex.splice(B,0,o)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(o)}else a.styles.isFloating()?c.nonPositionedFloats.push(o):c.nonPositionedInlineLevel.push(o);m0(s,o,n?o:r,f)}else a.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),m0(s,e,r,f);he(a.flags,8)&&aB(a,f)})},aB=function(A,e){for(var r=A instanceof d0?A.start:1,t=A instanceof d0?A.reversed:!1,a=0;a<e.length;a++){var n=e[a];n.container instanceof Ph&&typeof n.container.value=="number"&&n.container.value!==0&&(r=n.container.value),n.listValue=hn(r,n.container.styles.listStyleType,!0),r+=t?-1:1}},oT=function(A){var e=new tB(A,null),r=new rB(e),t=[];return m0(e,r,r,t),aB(e.container,t),r},Go=function(A,e){switch(e){case 0:return or(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return or(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return or(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return or(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},lT=function(A,e){switch(e){case 0:return or(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return or(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return or(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return or(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},uT=function(A,e){switch(e){case 0:return or(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return or(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return or(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return or(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},hT=function(A,e){switch(e){case 0:return ti(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return ti(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return ti(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return ti(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},ti=function(A,e){var r=[];return fr(A)?r.push(A.subdivide(.5,!1)):r.push(A),fr(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},or=function(A,e,r,t){var a=[];return fr(A)?a.push(A.subdivide(.5,!1)):a.push(A),fr(r)?a.push(r.subdivide(.5,!0)):a.push(r),fr(t)?a.push(t.subdivide(.5,!0).reverse()):a.push(t),fr(e)?a.push(e.subdivide(.5,!1).reverse()):a.push(e),a},nB=function(A){var e=A.bounds,r=A.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Oi=function(A){var e=A.styles,r=A.bounds,t=KA(e.paddingLeft,r.width),a=KA(e.paddingRight,r.width),n=KA(e.paddingTop,r.width),i=KA(e.paddingBottom,r.width);return r.add(t+e.borderLeftWidth,n+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+t+a),-(e.borderTopWidth+e.borderBottomWidth+n+i))},BT=function(A,e){return A===0?e.bounds:A===2?Oi(e):nB(e)},gT=function(A,e){return A===0?e.bounds:A===2?Oi(e):nB(e)},Ms=function(A,e,r){var t=BT(Aa(A.styles.backgroundOrigin,e),A),a=gT(Aa(A.styles.backgroundClip,e),A),n=dT(Aa(A.styles.backgroundSize,e),r,t),i=n[0],s=n[1],f=Da(Aa(A.styles.backgroundPosition,e),t.width-i,t.height-s),c=xT(Aa(A.styles.backgroundRepeat,e),f,n,t,a),o=Math.round(t.left+f[0]),l=Math.round(t.top+f[1]);return[c,o,l,i,s]},$t=function(A){return NA(A)&&A.value===sa.AUTO},ai=function(A){return typeof A=="number"},dT=function(A,e,r){var t=e[0],a=e[1],n=e[2],i=A[0],s=A[1];if(!i)return[0,0];if(le(i)&&s&&le(s))return[KA(i,r.width),KA(s,r.height)];var f=ai(n);if(NA(i)&&(i.value===sa.CONTAIN||i.value===sa.COVER)){if(ai(n)){var c=r.width/r.height;return c<n!=(i.value===sa.COVER)?[r.width,r.width/n]:[r.height*n,r.height]}return[r.width,r.height]}var o=ai(t),l=ai(a),u=o||l;if($t(i)&&(!s||$t(s))){if(o&&l)return[t,a];if(!f&&!u)return[r.width,r.height];if(u&&f){var B=o?t:a*n,g=l?a:t/n;return[B,g]}var h=o?t:r.width,d=l?a:r.height;return[h,d]}if(f){var p=0,m=0;return le(i)?p=KA(i,r.width):le(s)&&(m=KA(s,r.height)),$t(i)?p=m*n:(!s||$t(s))&&(m=p/n),[p,m]}var w=null,S=null;if(le(i)?w=KA(i,r.width):s&&le(s)&&(S=KA(s,r.height)),w!==null&&(!s||$t(s))&&(S=o&&l?w/t*a:r.height),S!==null&&$t(i)&&(w=o&&l?S/a*t:r.width),w!==null&&S!==null)return[w,S];throw new Error("Unable to calculate background-size for element")},Aa=function(A,e){var r=A[e];return typeof r>"u"?A[0]:r},xT=function(A,e,r,t,a){var n=e[0],i=e[1],s=r[0],f=r[1];switch(A){case 2:return[new lA(Math.round(t.left),Math.round(t.top+i)),new lA(Math.round(t.left+t.width),Math.round(t.top+i)),new lA(Math.round(t.left+t.width),Math.round(f+t.top+i)),new lA(Math.round(t.left),Math.round(f+t.top+i))];case 3:return[new lA(Math.round(t.left+n),Math.round(t.top)),new lA(Math.round(t.left+n+s),Math.round(t.top)),new lA(Math.round(t.left+n+s),Math.round(t.height+t.top)),new lA(Math.round(t.left+n),Math.round(t.height+t.top))];case 1:return[new lA(Math.round(t.left+n),Math.round(t.top+i)),new lA(Math.round(t.left+n+s),Math.round(t.top+i)),new lA(Math.round(t.left+n+s),Math.round(t.top+i+f)),new lA(Math.round(t.left+n),Math.round(t.top+i+f))];default:return[new lA(Math.round(a.left),Math.round(a.top)),new lA(Math.round(a.left+a.width),Math.round(a.top)),new lA(Math.round(a.left+a.width),Math.round(a.height+a.top)),new lA(Math.round(a.left),Math.round(a.height+a.top))]}},wT="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Vo="Hidden Text",pT=(function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,r){var t=this._document.createElement("div"),a=this._document.createElement("img"),n=this._document.createElement("span"),i=this._document.body;t.style.visibility="hidden",t.style.fontFamily=e,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",i.appendChild(t),a.src=wT,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",n.style.fontFamily=e,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(Vo)),t.appendChild(n),t.appendChild(a);var s=a.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode(Vo)),t.style.lineHeight="normal",a.style.verticalAlign="super";var f=a.offsetTop-t.offsetTop+2;return i.removeChild(t),{baseline:s,middle:f}},A.prototype.getMetrics=function(e,r){var t=e+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(e,r)),this._data[t]},A})(),iB=(function(){function A(e,r){this.context=e,this.options=r}return A})(),vT=1e4,mT=(function(A){vr(e,A);function e(r,t){var a=A.call(this,r,t)||this;return a._activeEffects=[],a.canvas=t.canvas?t.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),t.canvas||(a.canvas.width=Math.floor(t.width*t.scale),a.canvas.height=Math.floor(t.height*t.scale),a.canvas.style.width=t.width+"px",a.canvas.style.height=t.height+"px"),a.fontMetrics=new pT(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-t.x,-t.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),a}return e.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(a){return t.applyEffect(a)})},e.prototype.applyEffect=function(r){this.ctx.save(),fT(r)&&(this.ctx.globalAlpha=r.opacity),sT(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),eB(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return Re(this,void 0,void 0,function(){var t;return _e(this,function(a){switch(a.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return Re(this,void 0,void 0,function(){return _e(this,function(t){switch(t.label){case 0:if(he(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,t,a){var n=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+a);else{var i=pf(r.text);i.reduce(function(s,f){return n.ctx.fillText(f,s,r.bounds.top+a),s+n.ctx.measureText(f).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),a=UT(r.fontFamily).join(", "),n=Cn(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,n,a].join(" "),a,n]},e.prototype.renderTextNode=function(r,t){return Re(this,void 0,void 0,function(){var a,n,i,s,f,c,o,l,u=this;return _e(this,function(B){return a=this.createFontStyle(t),n=a[0],i=a[1],s=a[2],this.ctx.font=n,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",f=this.fontMetrics.getMetrics(i,s),c=f.baseline,o=f.middle,l=t.paintOrder,r.textBounds.forEach(function(g){l.forEach(function(h){switch(h){case 0:u.ctx.fillStyle=de(t.color),u.renderTextWithLetterSpacing(g,t.letterSpacing,c);var d=t.textShadow;d.length&&g.text.trim().length&&(d.slice(0).reverse().forEach(function(p){u.ctx.shadowColor=de(p.color),u.ctx.shadowOffsetX=p.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=p.offsetY.number*u.options.scale,u.ctx.shadowBlur=p.blur.number,u.renderTextWithLetterSpacing(g,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=de(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(p){switch(p){case 1:u.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+c),g.bounds.width,1);break;case 2:u.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:u.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+o),g.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&g.text.trim().length&&(u.ctx.strokeStyle=de(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,t,a){if(a&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var n=Oi(r),i=bi(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,r.intrinsicWidth,r.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return Re(this,void 0,void 0,function(){var t,a,n,i,s,f,m,m,c,o,l,u,S,B,g,H,h,d,p,m,w,S,H;return _e(this,function(C){switch(C.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,a=r.curves,n=t.styles,i=0,s=t.textNodes,C.label=1;case 1:return i<s.length?(f=s[i],[4,this.renderTextNode(f,n)]):[3,4];case 2:C.sent(),C.label=3;case 3:return i++,[3,1];case 4:if(!(t instanceof Rh))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return m=C.sent(),this.renderReplacedElement(t,a,m),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Nh&&this.renderReplacedElement(t,a,t.canvas),!(t instanceof Mh))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return m=C.sent(),this.renderReplacedElement(t,a,m),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Vh&&t.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:o=C.sent(),t.width&&t.height&&this.ctx.drawImage(o,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),C.label=14;case 14:if(t instanceof vf&&(l=Math.min(t.bounds.width,t.bounds.height),t.type===Ii?t.checked&&(this.ctx.save(),this.path([new lA(t.bounds.left+l*.39363,t.bounds.top+l*.79),new lA(t.bounds.left+l*.16,t.bounds.top+l*.5549),new lA(t.bounds.left+l*.27347,t.bounds.top+l*.44071),new lA(t.bounds.left+l*.39694,t.bounds.top+l*.5649),new lA(t.bounds.left+l*.72983,t.bounds.top+l*.23),new lA(t.bounds.left+l*.84,t.bounds.top+l*.34085),new lA(t.bounds.left+l*.39363,t.bounds.top+l*.79)]),this.ctx.fillStyle=de(Io),this.ctx.fill(),this.ctx.restore()):t.type===ki&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+l/2,t.bounds.top+l/2,l/4,0,Math.PI*2,!0),this.ctx.fillStyle=de(Io),this.ctx.fill(),this.ctx.restore())),FT(t)&&t.value.length){switch(u=this.createFontStyle(n),S=u[0],B=u[1],g=this.fontMetrics.getMetrics(S,B).baseline,this.ctx.font=S,this.ctx.fillStyle=de(n.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ET(t.styles.textAlign),H=Oi(t),h=0,t.styles.textAlign){case 1:h+=H.width/2;break;case 2:h+=H.width;break}d=H.add(h,0,0,-H.height/2+1),this.ctx.save(),this.path([new lA(H.left,H.top),new lA(H.left+H.width,H.top),new lA(H.left+H.width,H.top+H.height),new lA(H.left,H.top+H.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ja(t.value,d),n.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!he(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(p=t.styles.listStyleImage,p.type!==0)return[3,18];m=void 0,w=p.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(w)];case 16:return m=C.sent(),this.ctx.drawImage(m,t.bounds.left-(m.width+10),t.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+w),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(S=this.createFontStyle(n)[0],this.ctx.font=S,this.ctx.fillStyle=de(n.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",H=new Wr(t.bounds.left,t.bounds.top+KA(t.styles.paddingTop,t.bounds.width),t.bounds.width,ho(n.lineHeight,n.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ja(r.listValue,H),n.letterSpacing,ho(n.lineHeight,n.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(r){return Re(this,void 0,void 0,function(){var t,a,p,n,i,p,s,f,p,c,o,p,l,u,p,B,g,p,h,d,p;return _e(this,function(m){switch(m.label){case 0:if(he(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:m.sent(),t=0,a=r.negativeZIndex,m.label=2;case 2:return t<a.length?(p=a[t],[4,this.renderStack(p)]):[3,5];case 3:m.sent(),m.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:m.sent(),n=0,i=r.nonInlineLevel,m.label=7;case 7:return n<i.length?(p=i[n],[4,this.renderNode(p)]):[3,10];case 8:m.sent(),m.label=9;case 9:return n++,[3,7];case 10:s=0,f=r.nonPositionedFloats,m.label=11;case 11:return s<f.length?(p=f[s],[4,this.renderStack(p)]):[3,14];case 12:m.sent(),m.label=13;case 13:return s++,[3,11];case 14:c=0,o=r.nonPositionedInlineLevel,m.label=15;case 15:return c<o.length?(p=o[c],[4,this.renderStack(p)]):[3,18];case 16:m.sent(),m.label=17;case 17:return c++,[3,15];case 18:l=0,u=r.inlineLevel,m.label=19;case 19:return l<u.length?(p=u[l],[4,this.renderNode(p)]):[3,22];case 20:m.sent(),m.label=21;case 21:return l++,[3,19];case 22:B=0,g=r.zeroOrAutoZIndexOrTransformedOrOpacity,m.label=23;case 23:return B<g.length?(p=g[B],[4,this.renderStack(p)]):[3,26];case 24:m.sent(),m.label=25;case 25:return B++,[3,23];case 26:h=0,d=r.positiveZIndex,m.label=27;case 27:return h<d.length?(p=d[h],[4,this.renderStack(p)]):[3,30];case 28:m.sent(),m.label=29;case 29:return h++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},e.prototype.formatPath=function(r){var t=this;r.forEach(function(a,n){var i=fr(a)?a.start:a;n===0?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.y),fr(a)&&t.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},e.prototype.renderRepeat=function(r,t,a,n){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(a,n),this.ctx.fill(),this.ctx.translate(-a,-n)},e.prototype.resizeImage=function(r,t,a){var n;if(r.width===t&&r.height===a)return r;var i=(n=this.canvas.ownerDocument)!==null&&n!==void 0?n:document,s=i.createElement("canvas");s.width=Math.max(1,t),s.height=Math.max(1,a);var f=s.getContext("2d");return f.drawImage(r,0,0,r.width,r.height,0,0,t,a),s},e.prototype.renderBackgroundImage=function(r){return Re(this,void 0,void 0,function(){var t,a,n,i,s,f;return _e(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,a=function(o){var l,u,B,N,fA,tA,W,Z,y,g,N,fA,tA,W,Z,h,d,p,m,w,S,H,C,v,y,Q,N,R,b,W,Z,AA,fA,tA,EA,M,gA,dA,I,O,D,L;return _e(this,function(X){switch(X.label){case 0:if(o.type!==0)return[3,5];l=void 0,u=o.url,X.label=1;case 1:return X.trys.push([1,3,,4]),[4,n.context.cache.match(u)];case 2:return l=X.sent(),[3,4];case 3:return X.sent(),n.context.logger.error("Error loading background-image "+u),[3,4];case 4:return l&&(B=Ms(r,t,[l.width,l.height,l.width/l.height]),N=B[0],fA=B[1],tA=B[2],W=B[3],Z=B[4],y=n.ctx.createPattern(n.resizeImage(l,W,Z),"repeat"),n.renderRepeat(N,y,fA,tA)),[3,6];case 5:sU(o)?(g=Ms(r,t,[null,null,null]),N=g[0],fA=g[1],tA=g[2],W=g[3],Z=g[4],h=rU(o.angle,W,Z),d=h[0],p=h[1],m=h[2],w=h[3],S=h[4],H=document.createElement("canvas"),H.width=W,H.height=Z,C=H.getContext("2d"),v=C.createLinearGradient(p,w,m,S),lo(o.stops,d).forEach(function(eA){return v.addColorStop(eA.stop,de(eA.color))}),C.fillStyle=v,C.fillRect(0,0,W,Z),W>0&&Z>0&&(y=n.ctx.createPattern(H,"repeat"),n.renderRepeat(N,y,fA,tA))):fU(o)&&(Q=Ms(r,t,[null,null,null]),N=Q[0],R=Q[1],b=Q[2],W=Q[3],Z=Q[4],AA=o.position.length===0?[df]:o.position,fA=KA(AA[0],W),tA=KA(AA[AA.length-1],Z),EA=tU(o,fA,tA,W,Z),M=EA[0],gA=EA[1],M>0&&gA>0&&(dA=n.ctx.createRadialGradient(R+fA,b+tA,0,R+fA,b+tA,M),lo(o.stops,M*2).forEach(function(eA){return dA.addColorStop(eA.stop,de(eA.color))}),n.path(N),n.ctx.fillStyle=dA,M!==gA?(I=r.bounds.left+.5*r.bounds.width,O=r.bounds.top+.5*r.bounds.height,D=gA/M,L=1/D,n.ctx.save(),n.ctx.translate(I,O),n.ctx.transform(1,0,0,D,0,0),n.ctx.translate(-I,-O),n.ctx.fillRect(R,L*(b-O)+O,W,Z*L),n.ctx.restore()):n.ctx.fill())),X.label=6;case 6:return t--,[2]}})},n=this,i=0,s=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return i<s.length?(f=s[i],[5,a(f)]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(r,t,a){return Re(this,void 0,void 0,function(){return _e(this,function(n){return this.path(Go(a,t)),this.ctx.fillStyle=de(r),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(r,t,a,n){return Re(this,void 0,void 0,function(){var i,s;return _e(this,function(f){switch(f.label){case 0:return t<3?[4,this.renderSolidBorder(r,a,n)]:[3,2];case 1:return f.sent(),[2];case 2:return i=lT(n,a),this.path(i),this.ctx.fillStyle=de(r),this.ctx.fill(),s=uT(n,a),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(r){return Re(this,void 0,void 0,function(){var t,a,n,i,s,f,c,o,l=this;return _e(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,a=!st(t.backgroundColor)||t.backgroundImage.length,n=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=CT(Aa(t.backgroundClip,0),r.curves),a||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),st(t.backgroundColor)||(this.ctx.fillStyle=de(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(B){l.ctx.save();var g=Li(r.curves),h=B.inset?0:vT,d=cT(g,-h+(B.inset?1:-1)*B.spread.number,(B.inset?1:-1)*B.spread.number,B.spread.number*(B.inset?-2:2),B.spread.number*(B.inset?-2:2));B.inset?(l.path(g),l.ctx.clip(),l.mask(d)):(l.mask(g),l.ctx.clip(),l.path(d)),l.ctx.shadowOffsetX=B.offsetX.number+h,l.ctx.shadowOffsetY=B.offsetY.number,l.ctx.shadowColor=de(B.color),l.ctx.shadowBlur=B.blur.number,l.ctx.fillStyle=B.inset?de(B.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()}),u.label=2;case 2:s=0,f=0,c=n,u.label=3;case 3:return f<c.length?(o=c[f],o.style!==0&&!st(o.color)&&o.width>0?o.style!==2?[3,5]:[4,this.renderDashedDottedBorder(o.color,o.width,s,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return o.style!==3?[3,7]:[4,this.renderDashedDottedBorder(o.color,o.width,s,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return o.style!==4?[3,9]:[4,this.renderDoubleBorder(o.color,o.width,s,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(o.color,s,r.curves)];case 10:u.sent(),u.label=11;case 11:s++,u.label=12;case 12:return f++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,t,a,n,i){return Re(this,void 0,void 0,function(){var s,f,c,o,l,u,B,g,h,d,p,m,w,S,H,C,H,C;return _e(this,function(v){return this.ctx.save(),s=hT(n,a),f=Go(n,a),i===2&&(this.path(f),this.ctx.clip()),fr(f[0])?(c=f[0].start.x,o=f[0].start.y):(c=f[0].x,o=f[0].y),fr(f[1])?(l=f[1].end.x,u=f[1].end.y):(l=f[1].x,u=f[1].y),a===0||a===2?B=Math.abs(c-l):B=Math.abs(o-u),this.ctx.beginPath(),i===3?this.formatPath(s):this.formatPath(f.slice(0,2)),g=t<3?t*3:t*2,h=t<3?t*2:t,i===3&&(g=t,h=t),d=!0,B<=g*2?d=!1:B<=g*2+h?(p=B/(2*g+h),g*=p,h*=p):(m=Math.floor((B+h)/(g+h)),w=(B-m*g)/(m-1),S=(B-(m+1)*g)/m,h=S<=0||Math.abs(h-w)<Math.abs(h-S)?w:S),d&&(i===3?this.ctx.setLineDash([0,g+h]):this.ctx.setLineDash([g,h])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=de(r),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(fr(f[0])&&(H=f[3],C=f[0],this.ctx.beginPath(),this.formatPath([new lA(H.end.x,H.end.y),new lA(C.start.x,C.start.y)]),this.ctx.stroke()),fr(f[1])&&(H=f[1],C=f[2],this.ctx.beginPath(),this.formatPath([new lA(H.end.x,H.end.y),new lA(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(r){return Re(this,void 0,void 0,function(){var t;return _e(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=oT(r),[4,this.renderStack(t)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(iB),FT=function(A){return A instanceof Gh||A instanceof Kh?!0:A instanceof vf&&A.type!==ki&&A.type!==Ii},CT=function(A,e){switch(A){case 0:return Li(e);case 2:return aT(e);default:return bi(e)}},ET=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},QT=["-apple-system","system-ui"],UT=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return QT.indexOf(e)===-1}):A},_T=(function(A){vr(e,A);function e(r,t){var a=A.call(this,r,t)||this;return a.canvas=t.canvas?t.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=t,a.canvas.width=Math.floor(t.width*t.scale),a.canvas.height=Math.floor(t.height*t.scale),a.canvas.style.width=t.width+"px",a.canvas.style.height=t.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-t.x,-t.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),a}return e.prototype.render=function(r){return Re(this,void 0,void 0,function(){var t,a;return _e(this,function(n){switch(n.label){case 0:return t=g0(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,yT(t)];case 1:return a=n.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(iB),yT=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},TT=(function(){function A(e){var r=e.id,t=e.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,bn([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,bn([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A})(),ST=(function(){function A(e,r){var t;this.windowBounds=r,this.instanceName="#"+A.instanceCount++,this.logger=new TT({id:this.instanceName,enabled:e.logging}),this.cache=(t=e.cache)!==null&&t!==void 0?t:new Zy(this,e)}return A.instanceCount=1,A})(),sB=function(A,e){return e===void 0&&(e={}),IT(A,e)};typeof window<"u"&&AB.setContext(window);var IT=function(A,e){return Re(void 0,void 0,void 0,function(){var r,t,a,n,i,s,f,c,o,l,u,B,g,h,d,p,m,w,S,H,v,C,v,y,Q,N,R,b,W,Z,AA,fA,tA,EA,M,gA,dA,I,O,D;return _e(this,function(L){switch(L.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return a={allowTaint:(y=e.allowTaint)!==null&&y!==void 0?y:!1,imageTimeout:(Q=e.imageTimeout)!==null&&Q!==void 0?Q:15e3,proxy:e.proxy,useCORS:(N=e.useCORS)!==null&&N!==void 0?N:!1},n=A0({logging:(R=e.logging)!==null&&R!==void 0?R:!0,cache:e.cache},a),i={windowWidth:(b=e.windowWidth)!==null&&b!==void 0?b:t.innerWidth,windowHeight:(W=e.windowHeight)!==null&&W!==void 0?W:t.innerHeight,scrollX:(Z=e.scrollX)!==null&&Z!==void 0?Z:t.pageXOffset,scrollY:(AA=e.scrollY)!==null&&AA!==void 0?AA:t.pageYOffset},s=new Wr(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),f=new ST(n,s),c=(fA=e.foreignObjectRendering)!==null&&fA!==void 0?fA:!1,o={allowTaint:(tA=e.allowTaint)!==null&&tA!==void 0?tA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},f.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),l=new Mo(f,A,o),u=l.clonedReferenceElement,u?[4,l.toIFrame(r,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=L.sent(),g=mf(u)||Hy(u)?cQ(u.ownerDocument):Ji(f,u),h=g.width,d=g.height,p=g.left,m=g.top,w=kT(f,u,e.backgroundColor),S={canvas:e.canvas,backgroundColor:w,scale:(M=(EA=e.scale)!==null&&EA!==void 0?EA:t.devicePixelRatio)!==null&&M!==void 0?M:1,x:((gA=e.x)!==null&&gA!==void 0?gA:0)+p,y:((dA=e.y)!==null&&dA!==void 0?dA:0)+m,width:(I=e.width)!==null&&I!==void 0?I:Math.ceil(h),height:(O=e.height)!==null&&O!==void 0?O:Math.ceil(d)},c?(f.logger.debug("Document cloned, using foreign object rendering"),v=new _T(f,S),[4,v.render(u)]):[3,3];case 2:return H=L.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+p+","+m+" with size "+h+"x"+d+" using computed rendering"),f.logger.debug("Starting DOM parsing"),C=Xh(f,u),w===C.styles.backgroundColor&&(C.styles.backgroundColor=Gr.TRANSPARENT),f.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),v=new mT(f,S),[4,v.render(C)];case 4:H=L.sent(),L.label=5;case 5:return(!((D=e.removeContainer)!==null&&D!==void 0)||D)&&(Mo.destroy(B)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,H]}})})},kT=function(A,e,r){var t=e.ownerDocument,a=t.documentElement?Xa(A,getComputedStyle(t.documentElement).backgroundColor):Gr.TRANSPARENT,n=t.body?Xa(A,getComputedStyle(t.body).backgroundColor):Gr.TRANSPARENT,i=typeof r=="string"?Xa(A,r):r===null?Gr.TRANSPARENT:4294967295;return e===t.documentElement?st(a)?st(n)?i:n:a:i};function HT(A){return Number.isSafeInteger(A)&&A>=0}function fB(A){return A!=null&&typeof A!="function"&&HT(A.length)}function Ff(A){return A}function F0(A){return A==="__proto__"}function cB(A){switch(typeof A){case"number":case"symbol":return!1;case"string":return A.includes(".")||A.includes("[")||A.includes("]")}}function Cf(A){return typeof A=="string"||typeof A=="symbol"?A:Object.is(A?.valueOf?.(),-0)?"-0":String(A)}function oB(A){if(A==null)return"";if(typeof A=="string")return A;if(Array.isArray(A))return A.map(oB).join(",");const e=String(A);return e==="0"&&Object.is(Number(A),-0)?"-0":e}function lB(A){if(Array.isArray(A))return A.map(Cf);if(typeof A=="symbol")return[A];A=oB(A);const e=[],r=A.length;if(r===0)return e;let t=0,a="",n="",i=!1;for(A.charCodeAt(0)===46&&(e.push(""),t++);t<r;){const s=A[t];n?s==="\\"&&t+1<r?(t++,a+=A[t]):s===n?n="":a+=s:i?s==='"'||s==="'"?n=s:s==="]"?(i=!1,e.push(a),a=""):a+=s:s==="["?(i=!0,a&&(e.push(a),a="")):s==="."?a&&(e.push(a),a=""):a+=s,t++}return a&&e.push(a),e}function Ef(A,e,r){if(A==null)return r;switch(typeof e){case"string":{if(F0(e))return r;const t=A[e];return t===void 0?cB(e)?Ef(A,lB(e),r):r:t}case"number":case"symbol":{typeof e=="number"&&(e=Cf(e));const t=A[e];return t===void 0?r:t}default:{if(Array.isArray(e))return DT(A,e,r);if(Object.is(e?.valueOf(),-0)?e="-0":e=String(e),F0(e))return r;const t=A[e];return t===void 0?r:t}}}function DT(A,e,r){if(e.length===0)return r;let t=A;for(let a=0;a<e.length;a++){if(t==null||F0(e[a]))return r;t=t[e[a]]}return t===void 0?r:t}function LT(A){return function(e){return Ef(e,A)}}function bT(A){return A!==null&&(typeof A=="object"||typeof A=="function")}function C0(A){return A==null||typeof A!="object"&&typeof A!="function"}function Wo(A,e){return A===e||Number.isNaN(A)&&Number.isNaN(e)}function uB(A,e,r){return typeof r!="function"?uB(A,e,()=>{}):E0(A,e,function t(a,n,i,s,f,c){const o=r(a,n,i,s,f,c);return o!==void 0?!!o:E0(a,n,t,c)},new Map)}function E0(A,e,r,t){if(e===A)return!0;switch(typeof e){case"object":return OT(A,e,r,t);case"function":return Object.keys(e).length>0?E0(A,{...e},r,t):Wo(A,e);default:return bT(A)?typeof e=="string"?e==="":!0:Wo(A,e)}}function OT(A,e,r,t){if(e==null)return!0;if(Array.isArray(e))return hB(A,e,r,t);if(e instanceof Map)return RT(A,e,r,t);if(e instanceof Set)return NT(A,e,r,t);const a=Object.keys(e);if(A==null||C0(A))return a.length===0;if(a.length===0)return!0;if(t?.has(e))return t.get(e)===A;t?.set(e,A);try{for(let n=0;n<a.length;n++){const i=a[n];if(!C0(A)&&!(i in A)||e[i]===void 0&&A[i]!==void 0||e[i]===null&&A[i]!==null||!r(A[i],e[i],i,A,e,t))return!1}return!0}finally{t?.delete(e)}}function RT(A,e,r,t){if(e.size===0)return!0;if(!(A instanceof Map))return!1;for(const[a,n]of e.entries()){const i=A.get(a);if(r(i,n,a,A,e,t)===!1)return!1}return!0}function hB(A,e,r,t){if(e.length===0)return!0;if(!Array.isArray(A))return!1;const a=new Set;for(let n=0;n<e.length;n++){const i=e[n];let s=!1;for(let f=0;f<A.length;f++){if(a.has(f))continue;const c=A[f];let o=!1;if(r(c,i,n,A,e,t)&&(o=!0),o){a.add(f),s=!0;break}}if(!s)return!1}return!0}function NT(A,e,r,t){return e.size===0?!0:A instanceof Set?hB([...A],[...e],r,t):!1}function BB(A,e){return uB(A,e,()=>{})}function MT(A){return Object.getOwnPropertySymbols(A).filter(e=>Object.prototype.propertyIsEnumerable.call(A,e))}function gB(A){return A==null?A===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(A)}const PT="[object RegExp]",dB="[object String]",xB="[object Number]",wB="[object Boolean]",pB="[object Arguments]",KT="[object Symbol]",GT="[object Date]",VT="[object Map]",WT="[object Set]",XT="[object Array]",YT="[object ArrayBuffer]",JT="[object Object]",zT="[object DataView]",ZT="[object Uint8Array]",$T="[object Uint8ClampedArray]",jT="[object Uint16Array]",qT="[object Uint32Array]",AS="[object Int8Array]",eS="[object Int16Array]",rS="[object Int32Array]",tS="[object Float32Array]",aS="[object Float64Array]";function nS(A){return ArrayBuffer.isView(A)&&!(A instanceof DataView)}function iS(A,e){return Et(A,void 0,A,new Map,e)}function Et(A,e,r,t=new Map,a=void 0){const n=a?.(A,e,r,t);if(n!==void 0)return n;if(C0(A))return A;if(t.has(A))return t.get(A);if(Array.isArray(A)){const i=new Array(A.length);t.set(A,i);for(let s=0;s<A.length;s++)i[s]=Et(A[s],s,r,t,a);return Object.hasOwn(A,"index")&&(i.index=A.index),Object.hasOwn(A,"input")&&(i.input=A.input),i}if(A instanceof Date)return new Date(A.getTime());if(A instanceof RegExp){const i=new RegExp(A.source,A.flags);return i.lastIndex=A.lastIndex,i}if(A instanceof Map){const i=new Map;t.set(A,i);for(const[s,f]of A)i.set(s,Et(f,s,r,t,a));return i}if(A instanceof Set){const i=new Set;t.set(A,i);for(const s of A)i.add(Et(s,void 0,r,t,a));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(A))return A.subarray();if(nS(A)){const i=new(Object.getPrototypeOf(A)).constructor(A.length);t.set(A,i);for(let s=0;s<A.length;s++)i[s]=Et(A[s],s,r,t,a);return i}if(A instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&A instanceof SharedArrayBuffer)return A.slice(0);if(A instanceof DataView){const i=new DataView(A.buffer.slice(0),A.byteOffset,A.byteLength);return t.set(A,i),yr(i,A,r,t,a),i}if(typeof File<"u"&&A instanceof File){const i=new File([A],A.name,{type:A.type});return t.set(A,i),yr(i,A,r,t,a),i}if(typeof Blob<"u"&&A instanceof Blob){const i=new Blob([A],{type:A.type});return t.set(A,i),yr(i,A,r,t,a),i}if(A instanceof Error){const i=new A.constructor;return t.set(A,i),i.message=A.message,i.name=A.name,i.stack=A.stack,i.cause=A.cause,yr(i,A,r,t,a),i}if(A instanceof Boolean){const i=new Boolean(A.valueOf());return t.set(A,i),yr(i,A,r,t,a),i}if(A instanceof Number){const i=new Number(A.valueOf());return t.set(A,i),yr(i,A,r,t,a),i}if(A instanceof String){const i=new String(A.valueOf());return t.set(A,i),yr(i,A,r,t,a),i}if(typeof A=="object"&&sS(A)){const i=Object.create(Object.getPrototypeOf(A));return t.set(A,i),yr(i,A,r,t,a),i}return A}function yr(A,e,r=A,t,a){const n=[...Object.keys(e),...MT(e)];for(let i=0;i<n.length;i++){const s=n[i],f=Object.getOwnPropertyDescriptor(A,s);(f==null||f.writable)&&(A[s]=Et(e[s],s,r,t,a))}}function sS(A){switch(gB(A)){case pB:case XT:case YT:case zT:case wB:case GT:case tS:case aS:case AS:case eS:case rS:case VT:case xB:case JT:case PT:case WT:case dB:case KT:case ZT:case $T:case jT:case qT:return!0;default:return!1}}function fS(A){return Et(A,void 0,A,new Map,void 0)}function cS(A){return A=fS(A),e=>BB(e,A)}function oS(A,e){return iS(A,(r,t,a,n)=>{if(typeof A=="object")switch(Object.prototype.toString.call(A)){case xB:case dB:case wB:{const i=new A.constructor(A?.valueOf());return yr(i,A),i}case pB:{const i={};return yr(i,A),i.length=A.length,i[Symbol.iterator]=A[Symbol.iterator],i}default:return}})}function lS(A){return oS(A)}const uS=/^(?:0|[1-9]\d*)$/;function hS(A,e=Number.MAX_SAFE_INTEGER){switch(typeof A){case"number":return Number.isInteger(A)&&A>=0&&A<e;case"symbol":return!1;case"string":return uS.test(A)}}function BS(A){return A!==null&&typeof A=="object"&&gB(A)==="[object Arguments]"}function gS(A,e){let r;if(Array.isArray(e)?r=e:typeof e=="string"&&cB(e)&&A?.[e]==null?r=lB(e):r=[e],r.length===0)return!1;let t=A;for(let a=0;a<r.length;a++){const n=r[a];if((t==null||!Object.hasOwn(t,n))&&!((Array.isArray(t)||BS(t))&&hS(n)&&n<t.length))return!1;t=t[n]}return!0}function dS(A,e){switch(typeof A){case"object":{Object.is(A?.valueOf(),-0)&&(A="-0");break}case"number":{A=Cf(A);break}}return e=lS(e),function(r){const t=Ef(r,A);return t===void 0?gS(r,A):e===void 0?t===void 0:BB(t,e)}}function xS(A){if(A==null)return Ff;switch(typeof A){case"function":return A;case"object":return Array.isArray(A)&&A.length===2?dS(A[0],A[1]):cS(A);case"string":case"symbol":case"number":return LT(A)}}function vB(A,e,r=1){if(e==null&&(e=A,A=0),!Number.isInteger(r)||r===0)throw new Error("The step value must be a non-zero integer.");const t=Math.max(Math.ceil((e-A)/r),0),a=new Array(t);for(let n=0;n<t;n++)a[n]=A+n*r;return a}function wS(A,e=Ff){if(!A)return A;const r=fB(A)||Array.isArray(A)?vB(0,A.length):Object.keys(A);for(let t=0;t<r.length;t++){const a=r[t],n=A[a];if(e(n,a,A)===!1)break}return A}function pS(A,e){if(!A)return[];const r=fB(A)||Array.isArray(A)?vB(0,A.length):Object.keys(A),t=xS(e??Ff),a=new Array(r.length);for(let n=0;n<r.length;n++){const i=r[n],s=A[i];a[n]=t(s,i,A)}return a}function vS(){const A=new Date(1582,10,15,0,0,0,0),r=new Date().getTime()-A.getTime(),t=Qr(r,0,31),a=Qr(r,32,47),n=Qr(r,48,59)+"1",i=Qr(pt(4095),0,7),s=Qr(pt(4095),0,7),f=Qr(pt(8191),0,7)+Qr(pt(8191),8,15)+Qr(pt(8191),0,7)+Qr(pt(8191),8,15)+Qr(pt(8191),0,15);return t+a+n+i+s+f}function Qr(A,e,r){const t=A.toString(16).toUpperCase(),a=new Array;let n="",i=0;for(i=0;i<t.length;i++)a.push(t.substring(i,i+1));for(i=Math.floor(e/4);i<=Math.floor(r/4);i++)!a[i]||a[i]===""?n+="0":n+=a[i];return n}function pt(A){return Math.floor(Math.random()*(A+1))}function mS(A,e,r,t,a={}){return new Promise(n=>{const i=oi.book_new();wS(r,(s,f)=>{const c=pS(s,l=>{const u={};for(const B in e)l[B]&&(u[e[B]]=l[B]);return u}),o=oi.json_to_sheet(c);o["!cols"]=t,oi.book_append_sheet(i,o,a[f]?a[f]:"")}),jE(i,A+".xlsx"),n(!0)})}function FS(A){return new Promise(e=>{const r=new FileReader;r.readAsArrayBuffer(A),r.onload=t=>{const a=t.target.result,n=js(a,{type:"binary",cellDates:!0}),i=n.SheetNames[0],s=oi.sheet_to_json(n.Sheets[i]);e(s)}})}function CS(A,e,r=!0){return new Promise(async t=>{const a=await sB(e),n=a.width,i=a.height,s=n/592.28*841.89;let f=i,c=0;const o=595.28,l=592.28/n*i,u=a.toDataURL("image/jpeg",1),B=new Xo("p","pt","a4");if(f<s)B.addImage(u,"JPEG",0,0,o,l);else for(;f>0;)B.addImage(u,"JPEG",0,c,o,l),f-=s,c-=841.89,f>0&&B.addPage();r?B.save(A+".pdf"):t(B.output("blob")),t(B.output("blob"))})}function ES(A,e="image/jpeg"){return new Promise(r=>{sB(A).then(t=>{const a=t.toDataURL(e);r(a)})})}function Qf(A){let e="";if(!/^#?[0-9A-Fa-f]{6}$/.test(A))return"";A=A.replace("#",""),e=A.match(/../g);for(let t=0;t<3;t++)e[t]=parseInt(e[t],16);return e}function Uf(A,e,r){let t=/^\d{1,3}$/;if(!t.test(A.toString())||!t.test(e.toString())||!t.test(r.toString()))return"";let a=[A.toString(16),e.toString(16),r.toString(16)];for(let n=0;n<3;n++)a[n].length==1&&(a[n]=`0${a[n]}`);return`#${a.join("")}`}function QS(A,e){if(!/^#?[0-9A-Fa-f]{6}$/.test(A))return"";let t=Qf(A);for(let a=0;a<3;a++)t[a]=Math.floor((255-t[a])*e+t[a]);return Uf(t[0],t[1],t[2])}function US(A,e){if(!/^#?[0-9A-Fa-f]{6}$/.test(A))return"";let t=Qf(A);for(let a=0;a<3;a++)t[a]=Math.floor(t[a]*(1-e));return Uf(t[0],t[1],t[2])}function _S(A){return new Promise((e,r)=>{const t=new Image;t.src=A,t.onload=()=>{const a=document.createElement("canvas");a.width=t.naturalWidth,a.height=t.naturalHeight,a.style.width=`${a.width/window.devicePixelRatio}px`,a.style.height=`${a.height/window.devicePixelRatio}px`;const n=a.getContext("2d");if(!n)return null;n.drawImage(t,0,0);const i=a.toDataURL("image/png");return e(i)},t.onerror=a=>r(a)})}function yS(A,e){const r=A.split(","),t=atob(r[1]),a={type:"image/jpeg",endings:"native"},n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return new File([n],`${e}`,a)}function TS(A,e="文件名称"){const r=document.createElement("a");r.style.display="none",r.href=A,r.target="_blank",r.setAttribute("download",e),document.body.appendChild(r),r.click(),document.body.removeChild(r)}function SS(A,e){window.localStorage.setItem(A,JSON.stringify(e))}function IS(A){const e=window.localStorage.getItem(A);if(e&&e!=="undefined")return JSON.parse(e)}function kS(A){window.localStorage.removeItem(A)}function HS(){window.localStorage.clear()}function DS(A,e){window.sessionStorage.setItem(A,JSON.stringify(e))}function LS(A){const e=window.sessionStorage.getItem(A);if(e&&e!=="undefined")return JSON.parse(e)}function bS(A){window.sessionStorage.removeItem(A)}function OS(){window.sessionStorage.clear()}exports.esToolkit=RB;exports.dayjs=De;exports.jsPDF=Xo;exports.base64toFile=yS;exports.clearLocal=HS;exports.clearSession=OS;exports.computeDate=Jo;exports.createUUID=vS;exports.downloadFile=TS;exports.endDate=a1;exports.exportExcel=mS;exports.exportPdf=CS;exports.formatDate=Yo;exports.formatTimeStamp=n1;exports.getDarkColor=US;exports.getDateDiff=U0;exports.getLightColor=QS;exports.getLocal=IS;exports.getRangeDate=i1;exports.getRelativeTime=s1;exports.getSession=LS;exports.getTimeStamp=Q0;exports.hexToRgb=Qf;exports.imgToBase64=_S;exports.importExcel=FS;exports.importImage=ES;exports.removeLocal=kS;exports.removeSession=bS;exports.rgbToHex=Uf;exports.setLocal=SS;exports.setSession=DS;exports.startDate=t1;
|
|
109
109
|
//# sourceMappingURL=ly-utils-lib.cjs.js.map
|