var X=(D,I,R)=>new Promise((H,c)=>{var U=b=>{try{B(R.next(b))}catch(g){c(g)}},M=b=>{try{B(R.throw(b))}catch(g){c(g)}},B=b=>b.done?H(b.value):Promise.resolve(b.value).then(U,M);B((R=R.apply(D,I)).next())});import{bX as ne,__tla as re}from"./index-b5895273.js";let $,oe=Promise.all([(()=>{try{return re}catch(D){}})()]).then(()=>X(void 0,null,function*(){var D={exports:{}};(function(R){(function(H){var c=Y(),U=Z(),M=ee(),B=te(),b={imagePlaceholder:void 0,cacheBust:!1},g={toSvg:N,toPng:O,toJpeg:q,toBlob:z,toPixelData:G,impl:{fontFaces:M,images:B,util:c,inliner:U,options:{}}};R.exports=g;function N(n,t){return t=t||{},J(t),Promise.resolve(n).then(function(i){return F(i,t.filter,!0)}).then(W).then(K).then(r).then(function(i){return Q(i,t.width||c.width(n),t.height||c.height(n))});function r(i){return t.bgcolor&&(i.style.backgroundColor=t.bgcolor),t.width&&(i.style.width=t.width+"px"),t.height&&(i.style.height=t.height+"px"),t.style&&Object.keys(t.style).forEach(function(s){i.style[s]=t.style[s]}),i}}function G(n,t){return V(n,t||{}).then(function(r){return r.getContext("2d").getImageData(0,0,c.width(n),c.height(n)).data})}function O(n,t){return V(n,t||{}).then(function(r){return r.toDataURL()})}function q(n,t){return t=t||{},V(n,t).then(function(r){return r.toDataURL("image/jpeg",t.quality||1)})}function z(n,t){return V(n,t||{}).then(c.canvasToBlob)}function J(n){typeof n.imagePlaceholder>"u"?g.impl.options.imagePlaceholder=b.imagePlaceholder:g.impl.options.imagePlaceholder=n.imagePlaceholder,typeof n.cacheBust>"u"?g.impl.options.cacheBust=b.cacheBust:g.impl.options.cacheBust=n.cacheBust}function V(n,t){return N(n,t).then(c.makeImage).then(c.delay(100)).then(function(i){var s=r(n);return s.getContext("2d").drawImage(i,0,0),s});function r(i){var s=document.createElement("canvas");if(s.width=t.width||c.width(i),s.height=t.height||c.height(i),t.bgcolor){var a=s.getContext("2d");a.fillStyle=t.bgcolor,a.fillRect(0,0,s.width,s.height)}return s}}function F(n,t,r){if(!r&&t&&!t(n))return Promise.resolve();return Promise.resolve(n).then(i).then(function(o){return s(n,o,t)}).then(function(o){return a(n,o)});function i(o){return o instanceof HTMLCanvasElement?c.makeImage(o.toDataURL()):o.cloneNode(!1)}function s(o,l,v){var A=o.childNodes;if(A.length===0)return Promise.resolve(l);return m(l,c.asArray(A),v).then(function(){return l});function m(L,y,p){var w=Promise.resolve();return y.forEach(function(C){w=w.then(function(){return F(C,p)}).then(function(P){P&&L.appendChild(P)})}),w}}function a(o,l){if(!(l instanceof Element))return l;return Promise.resolve().then(v).then(A).then(m).then(L).then(function(){return l});function v(){y(window.getComputedStyle(o),l.style);function y(p,w){p.cssText?w.cssText=p.cssText:C(p,w);function C(P,x){c.asArray(P).forEach(function(e){x.setProperty(e,P.getPropertyValue(e),P.getPropertyPriority(e))})}}}function A(){[":before",":after"].forEach(function(p){y(p)});function y(p){var w=window.getComputedStyle(o,p),C=w.getPropertyValue("content");if(C===""||C==="none")return;var P=c.uid();l.className=l.className+" "+P;var x=document.createElement("style");x.appendChild(e(P,p,w)),l.appendChild(x);function e(u,h,f){var d="."+u+":"+h,E=f.cssText?_(f):k(f);return document.createTextNode(d+"{"+E+"}");function _(T){var S=T.getPropertyValue("content");return T.cssText+" content: "+S+";"}function k(T){return c.asArray(T).map(S).join("; ")+";";function S(j){return j+": "+T.getPropertyValue(j)+(T.getPropertyPriority(j)?" !important":"")}}}}}function m(){o instanceof HTMLTextAreaElement&&(l.innerHTML=o.value),o instanceof HTMLInputElement&&l.setAttribute("value",o.value)}function L(){l instanceof SVGElement&&(l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l instanceof SVGRectElement&&["width","height"].forEach(function(y){var p=l.getAttribute(y);p&&l.style.setProperty(y,p)}))}}}function W(n){return M.resolveAll().then(function(t){var r=document.createElement("style");return n.appendChild(r),r.appendChild(document.createTextNode(t)),n})}function K(n){return B.inlineAll(n).then(function(){return n})}function Q(n,t,r){return Promise.resolve(n).then(function(i){return i.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(i)}).then(c.escapeXhtml).then(function(i){return''+i+""}).then(function(i){return'"}).then(function(i){return"data:image/svg+xml;charset=utf-8,"+i})}function Y(){return{escape:L,parseExtension:t,mimeType:r,dataAsUrl:m,isDataUrl:i,canvasToBlob:a,resolveUrl:o,getAndEncode:A,uid:l(),delay:y,asArray:p,escapeXhtml:w,makeImage:v,width:C,height:P};function n(){var e="application/font-woff",u="image/jpeg";return{woff:e,woff2:e,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:u,jpeg:u,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function t(e){var u=/\.([^\.\/]*?)$/g.exec(e);return u?u[1]:""}function r(e){var u=t(e).toLowerCase();return n()[u]||""}function i(e){return e.search(/^(data:)/)!==-1}function s(e){return new Promise(function(u){for(var h=window.atob(e.toDataURL().split(",")[1]),f=h.length,d=new Uint8Array(f),E=0;E