@codesandbox/sandpack-client
Version:
<img style="width:100%" src="https://user-images.githubusercontent.com/4838076/143581035-ebee5ba2-9cb1-4fe8-a05b-2f44bd69bb4b.gif" alt="Component toolkit for live running code editing experiences" />
1 lines • 175 kB
JavaScript
(this.csbJsonP=this.csbJsonP||[]).push([[4],{"../sandbox-hooks/html2canvas-lib/core/bitwise.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.contains=void 0,e.contains=(e,t)=>0!=(e&t)})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/core/cache-storage.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),o("../sandbox-hooks/html2canvas-lib/core/features.js"),o("../sandbox-hooks/html2canvas-lib/core/logger.js")],void 0===(r="function"==typeof(s=function(e,t,s,n){"use strict";var r=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.CacheStorage=e.Cache=void 0,t=r(t);class a{static create(e,t){return a._caches[e]=new i(e,t)}static destroy(e){delete a._caches[e]}static open(e){const t=a._caches[e];if(void 0!==t)return t;throw new Error('Cache with key "'.concat(e,'" not found'))}static getOrigin(e){const t=a._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"}static isSameOrigin(e){return a.getOrigin(e)===a._origin}static setContext(e){a._link=e.document.createElement("a"),a._origin=a.getOrigin(e.location.href)}static getInstance(){const e=a._current;if(null===e)throw new Error("No cache instance attached");return e}static attachInstance(e){a._current=e}static detachInstance(){a._current=null}}e.CacheStorage=a,a._caches={},a._origin="about:blank",a._current=null;class i{constructor(e,t){this.id=e,this._options=t,this._cache={}}addImage(e){const t=Promise.resolve();return this.has(e)?t:f(e)||p(e)?(this._cache[e]=this.loadImage(e),t):t}match(e){return this._cache[e]}loadImage(e){var o=this;return(0,t.default)((function*(){const t=a.isSameOrigin(e),r=!u(e)&&o._options.useCORS(t)&&s.FEATURES.SUPPORT_CORS_IMAGES,i=!u(e)&&!t&&"string"==typeof o._options.proxy&&s.FEATURES.SUPPORT_CORS_XHR&&!r;if(!(t||!1!==o._options.allowTaint||u(e)||i||r))return;let l=e;return i&&(l=yield o.proxy(l)),n.Logger.getInstance(o.id).debug("Added image ".concat(e.substring(0,256))),yield new Promise((e,s)=>{const n=new Image;n.onload=()=>e(n),n.onerror=s,(h(l)||"function"==typeof o._options.useCORS&&o._options.useCORS(t)||r)&&(n.crossOrigin="anonymous"),n.src=l,!0===n.complete&&setTimeout(()=>e(n),500),o._options.imageTimeout>0&&setTimeout(()=>s("Timed out (".concat(o._options.imageTimeout,"ms) loading image")),o._options.imageTimeout)})}))()}has(e){return void 0!==this._cache[e]}keys(){return Promise.resolve(Object.keys(this._cache))}proxy(e){const t=this._options.proxy;if(!t)throw new Error("No proxy defined");const o=e.substring(0,256);return new Promise((n,r)=>{const a=s.FEATURES.SUPPORT_RESPONSE_TYPE?"blob":"text",i=new XMLHttpRequest;if(i.onload=()=>{if(200===i.status)if("text"===a)n(i.response);else{const e=new FileReader;e.addEventListener("load",()=>n(e.result),!1),e.addEventListener("error",e=>r(e),!1),e.readAsDataURL(i.response)}else r("Failed to proxy resource ".concat(o," with status code ").concat(i.status))},i.onerror=r,i.open("GET","".concat(t,"?url=").concat(encodeURIComponent(e),"&responseType=").concat(a)),"text"!==a&&i instanceof XMLHttpRequest&&(i.responseType=a),this._options.imageTimeout){const e=this._options.imageTimeout;i.timeout=e,i.ontimeout=()=>r("Timed out (".concat(e,"ms) proxying ").concat(o))}i.send()})}}e.Cache=i;const l=/^data:image\/svg\+xml/i,c=/^data:image\/.*;base64,/i,d=/^data:image\/.*/i,p=e=>s.FEATURES.SUPPORT_SVG_DRAWING||!b(e),u=e=>d.test(e),h=e=>c.test(e),f=e=>"blob"===e.substr(0,4),b=e=>"svg"===e.substr(-3).toLowerCase()||l.test(e)})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/core/features.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loadSerializedSVG=e.createForeignObjectSVG=e.FEATURES=void 0;const t=e=>0===e[0]&&255===e[1]&&0===e[2]&&255===e[3],o=(e,t,o,s,n)=>{const r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.setAttributeNS(null,"x",o.toString()),i.setAttributeNS(null,"y",s.toString()),i.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(i),i.appendChild(n),a};e.createForeignObjectSVG=o;const s=e=>new Promise((t,o)=>{const s=new Image;s.onload=()=>t(s),s.onerror=o,s.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent((new XMLSerializer).serializeToString(e)))});e.loadSerializedSVG=s;const n=e.FEATURES={get SUPPORT_RANGE_BOUNDS(){const e=(e=>{if(e.createRange){const t=e.createRange();if(t.getBoundingClientRect){const o=e.createElement("boundtest");o.style.height="".concat(123,"px"),o.style.display="block",e.body.appendChild(o),t.selectNode(o);const s=t.getBoundingClientRect(),n=Math.round(s.height);if(e.body.removeChild(o),123===n)return!0}}return!1})(document);return Object.defineProperty(n,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){const e=(e=>{const t=new Image,o=e.createElement("canvas"),s=o.getContext("2d");if(!s)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{s.drawImage(t,0,0),o.toDataURL()}catch(e){return!1}return!0})(document);return Object.defineProperty(n,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){const e="function"==typeof Array.from&&"function"==typeof window.fetch?(e=>{const n=e.createElement("canvas");n.width=100,n.height=100;const r=n.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,100,100);const a=new Image,i=n.toDataURL();a.src=i;const l=o(100,100,0,0,a);return r.fillStyle="red",r.fillRect(0,0,100,100),s(l).then(n=>{r.drawImage(n,0,0);const a=r.getImageData(0,0,100,100).data;r.fillStyle="red",r.fillRect(0,0,100,100);const l=e.createElement("div");return l.style.backgroundImage="url(".concat(i,")"),l.style.height="".concat(100,"px"),t(a)?s(o(100,100,0,0,l)):Promise.reject(!1)}).then(e=>(r.drawImage(e,0,0),t(r.getImageData(0,0,100,100).data))).catch(()=>!1)})(document):Promise.resolve(!1);return Object.defineProperty(n,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){const e=void 0!==(new Image).crossOrigin;return Object.defineProperty(n,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){const e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(n,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){const e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(n,"SUPPORT_CORS_XHR",{value:e}),e}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/core/logger.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=void 0;class t{constructor(e){let t=e.id,o=e.enabled;this.id=t,this.enabled=o,this.start=Date.now()}debug(){if(this.enabled){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];"undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug(this.id,"".concat(this.getTime(),"ms"),...t):this.info(...t)}}getTime(){return Date.now()-this.start}static create(e){t.instances[e.id]=new t(e)}static destroy(e){delete t.instances[e]}static getInstance(e){const o=t.instances[e];if(void 0===o)throw new Error("No logger instance found with id ".concat(e));return o}info(){if(this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];console.info(this.id,"".concat(this.getTime(),"ms"),...t)}}error(){if(this.enabled){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];"undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error(this.id,"".concat(this.getTime(),"ms"),...t):this.info(...t)}}}e.Logger=t,t.instances={}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/core/util.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SMALL_IMAGE=void 0,e.SMALL_IMAGE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.PropertyDescriptorParsingType=void 0,function(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"}(t||(e.PropertyDescriptorParsingType=t={}))})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/index.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-clip.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-color.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-image.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-origin.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-position.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-repeat.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-size.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-color.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-radius.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-style.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-width.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/color.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/display.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/float.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/letter-spacing.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/line-break.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/line-height.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-image.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-position.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-type.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/margin.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/overflow.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/overflow-wrap.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/padding.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-align.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/position.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-shadow.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-transform.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/transform.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/transform-origin.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/visibility.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/word-break.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/z-index.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/css/types/angle.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/opacity.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-decoration-color.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-decoration-line.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-family.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-size.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-weight.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-variant.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-style.js"),o("../sandbox-hooks/html2canvas-lib/core/bitwise.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/content.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/counter-increment.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/counter-reset.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/quotes.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/box-shadow.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r,a,i,l,c,d,p,u,h,f,b,m,T,E,y,g,v,x,_,R,I,S,A,C,N,O,L,P,k,j,w,D,M,B,G,U,K,V,H,F,Y,W,z,X,Z,q,J,Q,$,ee,te){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CSSParsedPseudoDeclaration=e.CSSParsedDeclaration=e.CSSParsedCounterDeclaration=void 0,e.CSSParsedDeclaration=class{constructor(e){this.backgroundClip=oe(o.backgroundClip,e.backgroundClip),this.backgroundColor=oe(s.backgroundColor,e.backgroundColor),this.backgroundImage=oe(n.backgroundImage,e.backgroundImage),this.backgroundOrigin=oe(r.backgroundOrigin,e.backgroundOrigin),this.backgroundPosition=oe(a.backgroundPosition,e.backgroundPosition),this.backgroundRepeat=oe(i.backgroundRepeat,e.backgroundRepeat),this.backgroundSize=oe(l.backgroundSize,e.backgroundSize),this.borderTopColor=oe(c.borderTopColor,e.borderTopColor),this.borderRightColor=oe(c.borderRightColor,e.borderRightColor),this.borderBottomColor=oe(c.borderBottomColor,e.borderBottomColor),this.borderLeftColor=oe(c.borderLeftColor,e.borderLeftColor),this.borderTopLeftRadius=oe(d.borderTopLeftRadius,e.borderTopLeftRadius),this.borderTopRightRadius=oe(d.borderTopRightRadius,e.borderTopRightRadius),this.borderBottomRightRadius=oe(d.borderBottomRightRadius,e.borderBottomRightRadius),this.borderBottomLeftRadius=oe(d.borderBottomLeftRadius,e.borderBottomLeftRadius),this.borderTopStyle=oe(p.borderTopStyle,e.borderTopStyle),this.borderRightStyle=oe(p.borderRightStyle,e.borderRightStyle),this.borderBottomStyle=oe(p.borderBottomStyle,e.borderBottomStyle),this.borderLeftStyle=oe(p.borderLeftStyle,e.borderLeftStyle),this.borderTopWidth=oe(u.borderTopWidth,e.borderTopWidth),this.borderRightWidth=oe(u.borderRightWidth,e.borderRightWidth),this.borderBottomWidth=oe(u.borderBottomWidth,e.borderBottomWidth),this.borderLeftWidth=oe(u.borderLeftWidth,e.borderLeftWidth),this.boxShadow=oe(te.boxShadow,e.boxShadow),this.color=oe(h.color,e.color),this.display=oe(f.display,e.display),this.float=oe(b.float,e.cssFloat),this.fontFamily=oe(F.fontFamily,e.fontFamily),this.fontSize=oe(Y.fontSize,e.fontSize),this.fontStyle=oe(Z.fontStyle,e.fontStyle),this.fontVariant=oe(X.fontVariant,e.fontVariant),this.fontWeight=oe(z.fontWeight,e.fontWeight),this.letterSpacing=oe(m.letterSpacing,e.letterSpacing),this.lineBreak=oe(T.lineBreak,e.lineBreak),this.lineHeight=oe(E.lineHeight,e.lineHeight),this.listStyleImage=oe(y.listStyleImage,e.listStyleImage),this.listStylePosition=oe(g.listStylePosition,e.listStylePosition),this.listStyleType=oe(v.listStyleType,e.listStyleType),this.marginTop=oe(x.marginTop,e.marginTop),this.marginRight=oe(x.marginRight,e.marginRight),this.marginBottom=oe(x.marginBottom,e.marginBottom),this.marginLeft=oe(x.marginLeft,e.marginLeft),this.opacity=oe(U.opacity,e.opacity);const t=oe(_.overflow,e.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=oe(R.overflowWrap,e.overflowWrap),this.paddingTop=oe(I.paddingTop,e.paddingTop),this.paddingRight=oe(I.paddingRight,e.paddingRight),this.paddingBottom=oe(I.paddingBottom,e.paddingBottom),this.paddingLeft=oe(I.paddingLeft,e.paddingLeft),this.position=oe(A.position,e.position),this.textAlign=oe(S.textAlign,e.textAlign),this.textDecorationColor=oe(K.textDecorationColor,e.textDecorationColor||e.color),this.textDecorationLine=oe(V.textDecorationLine,e.textDecorationLine),this.textShadow=oe(C.textShadow,e.textShadow),this.textTransform=oe(N.textTransform,e.textTransform),this.transform=oe(O.transform,e.transform),this.transformOrigin=oe(L.transformOrigin,e.transformOrigin),this.visibility=oe(P.visibility,e.visibility),this.wordBreak=oe(k.wordBreak,e.wordBreak),this.zIndex=oe(j.zIndex,e.zIndex)}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===P.VISIBILITY.VISIBLE}isTransparent(){return(0,M.isTransparent)(this.backgroundColor)}isTransformed(){return null!==this.transform}isPositioned(){return this.position!==A.POSITION.STATIC}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==b.FLOAT.NONE}isInlineLevel(){return(0,q.contains)(this.display,4)||(0,q.contains)(this.display,33554432)||(0,q.contains)(this.display,268435456)||(0,q.contains)(this.display,536870912)||(0,q.contains)(this.display,67108864)||(0,q.contains)(this.display,134217728)}},e.CSSParsedPseudoDeclaration=class{constructor(e){this.content=oe(J.content,e.content),this.quotes=oe(ee.quotes,e.quotes)}},e.CSSParsedCounterDeclaration=class{constructor(e){this.counterIncrement=oe(Q.counterIncrement,e.counterIncrement),this.counterReset=oe($.counterReset,e.counterReset)}};const oe=(e,o)=>{const s=new D.Tokenizer,n=null!=o?o.toString():e.initialValue;s.write(n);const r=new w.Parser(s.read());switch(e.type){case t.PropertyDescriptorParsingType.IDENT_VALUE:const o=r.parseComponentValue();return e.parse((0,w.isIdentToken)(o)?o.value:e.initialValue);case t.PropertyDescriptorParsingType.VALUE:return e.parse(r.parseComponentValue());case t.PropertyDescriptorParsingType.LIST:return e.parse(r.parseComponentValues());case t.PropertyDescriptorParsingType.TOKEN_VALUE:return r.parseComponentValue();case t.PropertyDescriptorParsingType.TYPE_VALUE:switch(e.format){case"angle":return B.angle.parse(r.parseComponentValue());case"color":return M.color.parse(r.parseComponentValue());case"image":return G.image.parse(r.parseComponentValue());case"length":const e=r.parseComponentValue();return(0,W.isLength)(e)?e:H.ZERO_LENGTH;case"length-percentage":const t=r.parseComponentValue();return(0,H.isLengthPercentage)(t)?t:H.ZERO_LENGTH}}throw new Error("Attempting to parse unsupported css format type ".concat(e.format))}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/layout/bounds.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseDocumentSize=e.parseBounds=e.Bounds=void 0;class t{constructor(e,t,o,s){this.left=e,this.top=t,this.width=o,this.height=s}add(e,o,s,n){return new t(this.left+e,this.top+o,this.width+s,this.height+n)}static fromClientRect(e){return new t(e.left,e.top,e.width,e.height)}}e.Bounds=t,e.parseBounds=e=>t.fromClientRect(e.getBoundingClientRect()),e.parseDocumentSize=e=>{const o=e.body,s=e.documentElement;if(!o||!s)throw new Error("Unable to get document size");const n=Math.max(Math.max(o.scrollWidth,s.scrollWidth),Math.max(o.offsetWidth,s.offsetWidth),Math.max(o.clientWidth,s.clientWidth)),r=Math.max(Math.max(o.scrollHeight,s.scrollHeight),Math.max(o.offsetHeight,s.offsetHeight),Math.max(o.clientHeight,s.clientHeight));return new t(0,0,n,r)}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/layout/text.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/overflow-wrap.js"),o("../../node_modules/css-line-break/dist/css-line-break.es5.js"),o("../sandbox-hooks/html2canvas-lib/css/layout/bounds.js"),o("../sandbox-hooks/html2canvas-lib/core/features.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseTextBounds=e.TextBounds=void 0;class r{constructor(e,t){this.text=e,this.bounds=t}}e.TextBounds=r,e.parseTextBounds=(e,t,o)=>{const s=l(e,t),c=[];let d=0;return s.forEach(e=>{if(t.textDecorationLine.length||e.trim().length>0)if(n.FEATURES.SUPPORT_RANGE_BOUNDS)c.push(new r(e,i(o,d,e.length)));else{const t=o.splitText(e.length);c.push(new r(e,a(o))),o=t}else n.FEATURES.SUPPORT_RANGE_BOUNDS||(o=o.splitText(e.length));d+=e.length}),c};const a=e=>{const t=e.ownerDocument;if(t){const o=t.createElement("html2canvaswrapper");o.appendChild(e.cloneNode(!0));const n=e.parentNode;if(n){n.replaceChild(o,e);const t=(0,s.parseBounds)(o);return o.firstChild&&n.replaceChild(o.firstChild,o),t}}return new s.Bounds(0,0,0,0)},i=(e,t,o)=>{const n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");const r=n.createRange();return r.setStart(e,t),r.setEnd(e,t+o),s.Bounds.fromClientRect(r.getBoundingClientRect())},l=(e,t)=>0!==t.letterSpacing?(0,o.toCodePoints)(e).map(e=>(0,o.fromCodePoint)(e)):c(e,t),c=(e,s)=>{const n=(0,o.LineBreaker)(e,{lineBreak:s.lineBreak,wordBreak:s.overflowWrap===t.OVERFLOW_WRAP.BREAK_WORD?"break-word":s.wordBreak}),r=[];let a;for(;!(a=n.next()).done;)a.value&&r.push(a.value.slice());return r}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-clip.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundClip=e.BACKGROUND_CLIP=void 0,function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(s||(e.BACKGROUND_CLIP=s={})),e.backgroundClip={name:"background-clip",initialValue:"border-box",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>e.map(e=>{if((0,o.isIdentToken)(e))switch(e.value){case"padding-box":return s.PADDING_BOX;case"content-box":return s.CONTENT_BOX}return s.BORDER_BOX})}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-color.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundColor=void 0,e.backgroundColor={name:"background-color",initialValue:"transparent",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"color"}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-image.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundImage=void 0,e.backgroundImage={name:"background-image",initialValue:"none",type:s.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>{if(0===e.length)return[];const s=e[0];return s.type===t.TokenType.IDENT_TOKEN&&"none"===s.value?[]:e.filter(e=>(0,n.nonFunctionArgSeparator)(e)&&(0,o.isSupportedImage)(e)).map(o.image.parse)}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-origin.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundOrigin=void 0,e.backgroundOrigin={name:"background-origin",initialValue:"border-box",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>e.map(e=>{if((0,o.isIdentToken)(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-position.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundPosition=void 0,e.backgroundPosition={name:"background-position",initialValue:"0% 0%",type:t.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>(0,o.parseFunctionArgs)(e).map(e=>e.filter(s.isLengthPercentage)).map(s.parseLengthPercentageTuple)}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-repeat.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundRepeat=e.BACKGROUND_REPEAT=void 0,function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}(s||(e.BACKGROUND_REPEAT=s={})),e.backgroundRepeat={name:"background-repeat",initialValue:"repeat",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>(0,o.parseFunctionArgs)(e).map(e=>e.filter(o.isIdentToken).map(e=>e.value).join(" ")).map(n)};const n=e=>{switch(e){case"no-repeat":return s.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return s.REPEAT_X;case"repeat-y":case"no-repeat repeat":return s.REPEAT_Y;case"repeat":default:return s.REPEAT}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-size.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundSize=e.BACKGROUND_SIZE=void 0,function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(n||(e.BACKGROUND_SIZE=n={})),e.backgroundSize={name:"background-size",initialValue:"0",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>(0,o.parseFunctionArgs)(e).map(e=>e.filter(r))};const r=e=>(0,o.isIdentToken)(e)||(0,s.isLengthPercentage)(e)})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-color.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.borderTopColor=e.borderRightColor=e.borderLeftColor=e.borderBottomColor=void 0;const o=e=>({name:"border-".concat(e,"-color"),initialValue:"transparent",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"color"});e.borderTopColor=o("top"),e.borderRightColor=o("right"),e.borderBottomColor=o("bottom"),e.borderLeftColor=o("left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-radius.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.borderTopRightRadius=e.borderTopLeftRadius=e.borderBottomRightRadius=e.borderBottomLeftRadius=void 0;const s=e=>({name:"border-radius-".concat(e),initialValue:"0 0",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>(0,o.parseLengthPercentageTuple)(e.filter(o.isLengthPercentage))});e.borderTopLeftRadius=s("top-left"),e.borderTopRightRadius=s("top-right"),e.borderBottomRightRadius=s("bottom-right"),e.borderBottomLeftRadius=s("bottom-left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-style.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.borderTopStyle=e.borderRightStyle=e.borderLeftStyle=e.borderBottomStyle=e.BORDER_STYLE=void 0,function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID"}(o||(e.BORDER_STYLE=o={}));const s=e=>({name:"border-".concat(e,"-style"),initialValue:"solid",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"none":return o.NONE}return o.SOLID}});e.borderTopStyle=s("top"),e.borderRightStyle=s("right"),e.borderBottomStyle=s("bottom"),e.borderLeftStyle=s("left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-width.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.borderTopWidth=e.borderRightWidth=e.borderLeftWidth=e.borderBottomWidth=void 0;const s=e=>({name:"border-".concat(e,"-width"),initialValue:"0",type:t.PropertyDescriptorParsingType.VALUE,prefix:!1,parse:e=>(0,o.isDimensionToken)(e)?e.number:0});e.borderTopWidth=s("top"),e.borderRightWidth=s("right"),e.borderBottomWidth=s("bottom"),e.borderLeftWidth=s("left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/box-shadow.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.boxShadow=void 0,e.boxShadow={name:"box-shadow",initialValue:"none",type:t.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>1===e.length&&(0,o.isIdentWithValue)(e[0],"none")?[]:(0,o.parseFunctionArgs)(e).map(e=>{const t={color:255,offsetX:s.ZERO_LENGTH,offsetY:s.ZERO_LENGTH,blur:s.ZERO_LENGTH,spread:s.ZERO_LENGTH,inset:!1};let a=0;for(let s=0;s<e.length;s++){const i=e[s];(0,o.isIdentWithValue)(i,"inset")?t.inset=!0:(0,r.isLength)(i)?(0===a?t.offsetX=i:1===a?t.offsetY=i:2===a?t.blur=i:t.spread=i,a++):t.color=n.color.parse(i)}return t})}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/color.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.color=void 0,e.color={name:"color",initialValue:"transparent",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"color"}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/content.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.content=void 0,e.content={name:"content",initialValue:"none",type:o.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>{if(0===e.length)return[];const o=e[0];return o.type===t.TokenType.IDENT_TOKEN&&"none"===o.value?[]:e}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/counter-increment.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.counterIncrement=void 0,e.counterIncrement={name:"counter-increment",initialValue:"none",prefix:!0,type:t.PropertyDescriptorParsingType.LIST,parse:e=>{if(0===e.length)return null;const t=e[0];if(t.type===s.TokenType.IDENT_TOKEN&&"none"===t.value)return null;const n=[],r=e.filter(o.nonWhiteSpace);for(let e=0;e<r.length;e++){const t=r[e],a=r[e+1];if(t.type===s.TokenType.IDENT_TOKEN){const e=a&&(0,o.isNumberToken)(a)?a.number:1;n.push({counter:t.value,increment:e})}}return n}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/counter-reset.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.counterReset=void 0,e.counterReset={name:"counter-reset",initialValue:"none",prefix:!0,type:t.PropertyDescriptorParsingType.LIST,parse:e=>{if(0===e.length)return[];const t=[],s=e.filter(o.nonWhiteSpace);for(let e=0;e<s.length;e++){const n=s[e],r=s[e+1];if((0,o.isIdentToken)(n)&&"none"!==n.value){const e=r&&(0,o.isNumberToken)(r)?r.number:0;t.push({counter:n.value,reset:e})}}return t}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/display.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.display=void 0,e.display={name:"display",initialValue:"inline-block",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>e.filter(o.isIdentToken).reduce((e,t)=>e|s(t.value),0)};const s=e=>{switch(e){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/float.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.float=e.FLOAT=void 0,function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(o||(e.FLOAT=o={})),e.float={name:"float",initialValue:"none",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"left":return o.LEFT;case"right":return o.RIGHT;case"inline-start":return o.INLINE_START;case"inline-end":return o.INLINE_END}return o.NONE}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-family.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontFamily=void 0,e.fontFamily={name:"font-family",initialValue:"",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>{const t=[],s=[];return e.forEach(e=>{switch(e.type){case o.TokenType.IDENT_TOKEN:case o.TokenType.STRING_TOKEN:t.push(e.value);break;case o.TokenType.NUMBER_TOKEN:t.push(e.number.toString());break;case o.TokenType.COMMA_TOKEN:s.push(t.join(" ")),t.length=0}}),t.length&&s.push(t.join(" ")),s.map(e=>-1===e.indexOf(" ")?e:"'".concat(e,"'"))}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-size.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontSize=void 0,e.fontSize={name:"font-size",initialValue:"0",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"length"}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-style.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.fontStyle=e.FONT_STYLE=void 0,function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(o||(e.FONT_STYLE=o={})),e.fontStyle={name:"font-style",initialValue:"normal",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"oblique":return o.OBLIQUE;case"italic":return o.ITALIC;case"normal":default:return o.NORMAL}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-variant.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontVariant=void 0,e.fontVariant={name:"font-variant",initialValue:"none",type:t.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>e.filter(o.isIdentToken).map(e=>e.value)}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-weight.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontWeight=void 0,e.fontWeight={name:"font-weight",initialValue:"normal",type:t.PropertyDescriptorParsingType.VALUE,prefix:!1,parse:e=>{if((0,o.isNumberToken)(e))return e.number;if((0,o.isIdentToken)(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/letter-spacing.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.letterSpacing=void 0,e.letterSpacing={name:"letter-spacing",initialValue:"0",prefix:!1,type:t.PropertyDescriptorParsingType.VALUE,parse:e=>e.type===o.TokenType.IDENT_TOKEN&&"normal"===e.value?0:e.type===o.TokenType.NUMBER_TOKEN||e.type===o.TokenType.DIMENSION_TOKEN?e.number:0}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/line-break.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.lineBreak=e.LINE_BREAK=void 0,function(e){e.NORMAL="normal",e.STRICT="strict"}(o||(e.LINE_BREAK=o={})),e.lineBreak={name:"line-break",initialValue:"normal",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"strict":return o.STRICT;case"normal":default:return o.NORMAL}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/line-height.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lineHeight=e.computeLineHeight=void 0,e.lineHeight={name:"line-height",initialValue:"normal",prefix:!1,type:t.PropertyDescriptorParsingType.TOKEN_VALUE},e.computeLineHeight=(e,t)=>(0,o.isIdentToken)(e)&&"normal"===e.value?1.2*t:e.type===s.TokenType.NUMBER_TOKEN?t*e.number:(0,n.isLengthPercentage)(e)?(0,n.getAbsoluteValue)(e,t):t})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-image.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.listStyleImage=void 0,e.listStyleImage={name:"list-style-image",initialValue:"none",type:s.PropertyDescriptorParsingType.VALUE,prefix:!1,parse:e=>e.type===t.TokenType.IDENT_TOKEN&&"none"===e.value?null:o.image.parse(e)}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-position.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.listStylePosition=e.LIST_STYLE_POSITION=void 0,function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(o||(e.LIST_STYLE_POSITION=o={})),e.listStylePosition={name:"list-style-position",initialValue:"outside",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"inside":return o.INSIDE;case"outside":default:return o.OUTSIDE}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-type.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.listStyleType=e.LIST_STYLE_TYPE=void 0,function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKANA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(o||(e.LIST_STYLE_TYPE=o={})),e.listStyleType={name:"list-style-type",initialValue:"none",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"disc":return o.DISC;case"circle":return o.CIRCLE;case"square":return o.SQUARE;case"decimal":return o.DECIMAL;case"cjk-decimal":return o.CJK_DECIMAL;case"decimal-leading-zero":return o.DECIMAL_LEADING_ZERO;case"lower-roman":return o.LOWER_ROMAN;case"upper-roman":return o.UPPER_ROMAN;case"lower-greek":return o.LOWER_GREEK;case"lower-alpha":return o.LOWER_ALPHA;case"upper-alpha":return o.UPPER_ALPHA;case"arabic-indic":return o.ARABIC_INDIC;case"armenian":return o.ARMENIAN;case"bengali":return o.BENGALI;case"cambodian":return o.CAMBODIAN;case"cjk-earthly-branch":return o.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return o.CJK_HEAVENLY_STEM;case"cjk-ideographic":return o.CJK_IDEOGRAPHIC;case"devanagari":return o.DEVANAGARI;case"ethiopic-numeric":return o.ETHIOPIC_NUMERIC;case"georgian":return o.GEORGIAN;case"gujarati":return o.GUJARATI;case"gurmukhi":return o.GURMUKHI;case"hebrew":return o.HEBREW;case"hiragana":return o.HIRAGANA;case"hiragana-iroha":return o.HIRAGANA_IROHA;case"japanese-formal":return o.JAPANESE_FORMAL;case"japanese-informal":return o.JAPANESE_INFORMAL;case"kannada":return o.KANNADA;case"katakana":return o.KATAKANA;case"katakana-iroha":return o.KATAKANA_IROHA;case"khmer":return o.KHMER;case"korean-hangul-formal":return o.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return o.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return o.KOREAN_HANJA_INFORMAL;case"lao":return o.LAO;case"lower-armenian":return o.LOWER_ARMENIAN;case"malayalam":return o.MALAYALAM;case"mongolian":return o.MONGOLIAN;case"myanmar":return o.MYANMAR;case"oriya":return o.ORIYA;case"persian":return o.PERSIAN;case"simp-chinese-formal":return o.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return o.SIMP_CHINESE_INFORMAL;case"tamil":return o.TAMIL;case"telugu":return o.TELUGU;case"thai":return o.THAI;case"tibetan":return o.TIBETAN;case"trad-chinese-formal":return o.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return o.TRAD_CHINESE_INFORMAL;case"up