1 |
- !function(){function t(t,e,n,r,o,c,i){try{var a=t[c](i),u=a.value}catch(s){return void n(s)}a.done?e(u):Promise.resolve(u).then(r,o)}System.register([],(function(e,n){"use strict";return{execute:function(){const r=""+new URL("logoWatermark-270788fc.png",n.meta.url).href;e("a",function(){var e,n=(e=function*(t){try{const e=document.createElement("img");e.setAttribute("crossOrigin","anonymous"),r&&"string"==typeof r&&r.includes("data:image"),e.src=r,yield new Promise((t=>e.onload=t));const n=document.createElement("canvas");n.width=t.width,n.height=t.height;const o=n.getContext("2d");o.drawImage(t,0,0);const c=document.createElement("canvas");c.width=280,c.height=220,c.getContext("2d").drawImage(e,80,80);const i=o.createPattern(c,"repeat");return o.fillStyle=i,o.fillRect(0,0,n.width,n.height),n}catch(e){console.log(e)}},function(){var n=this,r=arguments;return new Promise((function(o,c){var i=e.apply(n,r);function a(e){t(i,o,c,a,u,"next",e)}function u(e){t(i,o,c,a,u,"throw",e)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}()),e("c",((t,e=1)=>t.toDataURL("image/png",e)))}}}))}();
|