1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4283],{34283:(e,t,a)=>{a.d(t,{download:()=>n});var i=a(76109),l=a(66996);async function n(e,t){let a=(t?.format||t?.type||"").toLowerCase(),n="jpg"===a?"jpeg":a||"png",r=t?.filename||`snapdom.${n}`,o={...t||{},format:n,type:n};if(o.dpr=1,"svg"===n){let t=await (0,i.a)(e,{...o,type:"svg"}),a=URL.createObjectURL(t),l=document.createElement("a");l.href=a,l.download=r,l.click(),URL.revokeObjectURL(a);return}let s=await (0,l.a)(e,o),c=document.createElement("a");c.href=s.toDataURL(`image/${n}`,t?.quality),c.download=r,c.click()}},66996:(e,t,a)=>{a.d(t,{a:()=>n});var i=a(60686);function l(e){let t=function(e){let t=[],a="",i=0;for(let l=0;l<e.length;l++){let n=e[l];"("===n&&i++,")"===n&&(i=Math.max(0,i-1)),";"===n&&0===i?(t.push(a),a=""):a+=n}return a.trim()&&t.push(a),t.map(e=>e.trim()).filter(Boolean)}(e),a=null,i=null,l=null,n=[];for(let e of t){let t=e.indexOf(":");if(t<0)continue;let r=e.slice(0,t).trim().toLowerCase(),o=e.slice(t+1).trim();"box-shadow"===r?l=o:"filter"===r?a=o:"-webkit-filter"===r?i=o:n.push([r,o])}if(l){let e=function(e){let t=[],a="",i=0;for(let l=0;l<e.length;l++){let n=e[l];"("===n&&i++,")"===n&&(i=Math.max(0,i-1)),","===n&&0===i?(t.push(a.trim()),a=""):a+=n}a.trim()&&t.push(a.trim());let l=[];for(let e of t){if(/\binset\b/i.test(e))continue;let[t="0px",a="0px",i="0px"]=e.match(/-?\d+(?:\.\d+)?px/gi)||[],n=e.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/ig,"").trim().replace(/\s{2,}/g," "),r=!!n&&","!==n;l.push(`drop-shadow(${t} ${a} ${i}${r?` ${n}`:""})`)}return l.join(" ")}(l);e&&(a=a?`${a} ${e}`:e,i=i?`${i} ${e}`:e)}let r=[...n];return a&&r.push(["filter",a]),i&&r.push(["-webkit-filter",i]),r.map(([e,t])=>`${e}:${t}`).join(";")}async function n(e,t){let{width:a,height:n,scale:r=1,dpr:o=1,meta:s={},backgroundColor:c}=t;e=function(e){var t;if(!(0,i.b)()||!("string"==typeof e&&/^data:image\/svg\+xml/i.test(e)))return e;try{let a;return t=((a=e.indexOf(","))>=0?decodeURIComponent(e.slice(a+1)):"").replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(e,t)=>e.replace(t,t.replace(/([^{}]+)\{([^}]*)\}/g,(e,t,a)=>`${t}{${l(a)}}`))).replace(/style=(['"])([\s\S]*?)\1/gi,(e,t,a)=>`style=${t}${l(a)}${t}`),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`}catch{return e}}(e);let u=new Image;u.loading="eager",u.decoding="sync",u.crossOrigin="anonymous",u.src=e,await u.decode();let m=u.naturalWidth,p=u.naturalHeight,d=Number.isFinite(s.w0)?s.w0:m,f=Number.isFinite(s.h0)?s.h0:p,h,g,w=Number.isFinite(a),$=Number.isFinite(n);if(w&&$)h=Math.max(1,a),g=Math.max(1,n);else if(w){let e=a/Math.max(1,d);h=a,g=f*e}else if($){let e=n/Math.max(1,f);g=n,h=d*e}else h=m,g=p;h*=r,g*=r;let y=document.createElement("canvas");y.width=h*o,y.height=g*o,y.style.width=`${h}px`,y.style.height=`${g}px`;let x=y.getContext("2d");return 1!==o&&x.scale(o,o),c&&(x.save(),x.fillStyle=c,x.fillRect(0,0,h,g),x.restore()),x.drawImage(u,0,0,h,g),y}},76109:(e,t,a)=>{a.d(t,{a:()=>l});var i=a(66996);async function l(e,t){let a=t.type;if("svg"===a)return new Blob([decodeURIComponent(e.split(",")[1])],{type:"image/svg+xml"});let l=await (0,i.a)(e,t);return new Promise(e=>l.toBlob(t=>e(t),`image/${a}`,t.quality))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.