1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8053],{78053:(t,e,n)=>{n.d(e,{snapdom:()=>tT});var r={image:new Map,background:new Map,resource:new Map,defaultStyle:new Map,baseStyle:new Map,computedStyle:new WeakMap,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}};function a(t){let e=t.match(/url\((['"]?)(.*?)(\1)\)/);if(!e)return null;let n=e[2].trim();return n.startsWith("#")?null:n}function o(t){if(/%[0-9A-Fa-f]{2}/.test(t))return t;try{return encodeURI(t)}catch{return t}}var i=function(t="[snapDOM]",{ttlMs:e=5*6e4,maxEntries:n=12}={}){let r=new Map,a=0;function o(o,i,l){if(a>=n)return;let s=Date.now();!((r.get(i)||0)>s)&&(r.set(i,s+e),a++,"warn"===o&&console&&console.warn?console.warn(`${t} ${l}`):console&&console.error&&console.error(`${t} ${l}`))}return{warnOnce(t,e){o("warn",t,e)},errorOnce(t,e){o("error",t,e)},reset(){r.clear(),a=0}}}("[snapDOM]",{ttlMs:3*6e4,maxEntries:10}),l=new Map,s=new Map;function c(t){return new Promise((e,n)=>{let r=new FileReader;r.onload=()=>e(String(r.result||"")),r.onerror=()=>n(Error("read_failed")),r.readAsDataURL(t)})}async function u(t,e={}){var n;let r=e.as??"blob",a=e.timeout??3e3,d=e.useProxy||"",f=e.errorTTL??8e3,h=e.headers||{},m=!!e.silent;if(/^data:/i.test(t))try{if("text"===r)return{ok:!0,data:String(t),status:200,url:t,fromCache:!1};if("dataURL"===r)return{ok:!0,data:String(t),status:200,url:t,fromCache:!1,mime:String(t).slice(5).split(";")[0]||""};let[,e="",n=""]=String(t).match(/^data:([^,]*),(.*)$/)||[],a=/;base64/i.test(e)?atob(n):decodeURIComponent(n),o=new Uint8Array([...a].map(t=>t.charCodeAt(0))),i=new Blob([o],{type:(e||"").split(";")[0]||""});return{ok:!0,data:i,status:200,url:t,fromCache:!1,mime:i.type||""}}catch{return{ok:!1,data:null,status:0,url:t,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(t))try{let e=await fetch(t);if(!e.ok)return{ok:!1,data:null,status:e.status,url:t,fromCache:!1,reason:"http_error"};let n=await e.blob(),a=n.type||e.headers.get("content-type")||"";if("dataURL"===r){let r=await c(n);return{ok:!0,data:r,status:e.status,url:t,fromCache:!1,mime:a}}if("text"===r){let r=await n.text();return{ok:!0,data:r,status:e.status,url:t,fromCache:!1,mime:a}}return{ok:!0,data:n,status:e.status,url:t,fromCache:!1,mime:a}}catch{return{ok:!1,data:null,status:0,url:t,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(t))return"dataURL"===r?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:t,fromCache:!1,mime:"image/png"}:{ok:!0,data:"text"===r?"":new Blob([]),status:200,url:t,fromCache:!1};let p=[(n={as:r,timeout:a,useProxy:d,errorTTL:f}).as||"blob",n.timeout??3e3,n.useProxy||"",n.errorTTL??8e3,t].join("|"),g=s.get(p);if(g&&g.until>Date.now())return{...g.result,fromCache:!0};g&&s.delete(p);let y=l.get(p);if(y)return y;let w=!function(t,e){if(!e||/^data:|^blob:|^about:blank$/i.test(t)||function(t,e){try{let n="undefined"!=typeof location&&location.href?location.href:"http://localhost/",r=e.includes("{url}")?e.split("{url}")[0]:e,a=new URL(r||".",n),o=new URL(t,n);if(o.origin===a.origin)return!0;let i=o.searchParams;if(i&&(i.has("url")||i.has("target")))return!0}catch{}return!1}(t,e))return!1;try{let e="undefined"!=typeof location&&location.href?location.href:"http://localhost/",n=new URL(t,e);return"undefined"==typeof location||n.origin!==location.origin}catch{return!!e}}(t,d)?t:function(t,e){if(!e)return t;if(e.includes("{url}"))return e.replace("{urlRaw}",o(t)).replace("{url}",encodeURIComponent(t));if(/[?&]url=?$/.test(e))return`${e}${encodeURIComponent(t)}`;if(e.endsWith("?"))return`${e}url=${encodeURIComponent(t)}`;if(e.endsWith("/"))return`${e}${o(t)}`;let n=e.includes("?")?"&":"?";return`${e}${n}url=${encodeURIComponent(t)}`}(t,d),b=e.credentials;if(!b)try{let e="undefined"!=typeof location&&location.href?location.href:"http://localhost/",n=new URL(t,e);b="undefined"!=typeof location&&n.origin===location.origin?"include":"omit"}catch{b="omit"}let x=new AbortController,S=setTimeout(()=>x.abort("timeout"),a),M=(async()=>{try{let n=await fetch(w,{signal:x.signal,credentials:b,headers:h});if(!n.ok){let a={ok:!1,data:null,status:n.status,url:w,fromCache:!1,reason:"http_error"};if(f>0&&s.set(p,{until:Date.now()+f,result:a}),!m){let e=`${n.status} ${n.statusText||""}`.trim();i.warnOnce(`http:${n.status}:${r}:${new URL(t,location?.href??"http://localhost/").origin}`,`HTTP error ${e} while fetching ${r} ${t}`)}return e.onError&&e.onError(a),a}if("text"===r){let t=await n.text();return{ok:!0,data:t,status:n.status,url:w,fromCache:!1}}let a=await n.blob(),o=a.type||n.headers.get("content-type")||"";if("dataURL"===r){let t=await c(a);return{ok:!0,data:t,status:n.status,url:w,fromCache:!1,mime:o}}return{ok:!0,data:a,status:n.status,url:w,fromCache:!1,mime:o}}catch(l){let n=l&&"object"==typeof l&&"name"in l&&"AbortError"===l.name?String(l.message||"").includes("timeout")?"timeout":"abort":"network",o={ok:!1,data:null,status:0,url:w,fromCache:!1,reason:n};if(!/^blob:/i.test(t)&&f>0&&s.set(p,{until:Date.now()+f,result:o}),!m){let e=`${n}:${r}:${new URL(t,location?.href??"http://localhost/").origin}`,o="timeout"===n?`Timeout after ${a}ms. Consider increasing timeout or using a proxy for ${t}`:"abort"===n?`Request aborted while fetching ${r} ${t}`:`Network/CORS issue while fetching ${r} ${t}. A proxy may be required`;i.errorOnce(e,o)}return e.onError&&e.onError(o),o}finally{clearTimeout(S),l.delete(p)}})();return l.set(p,M),M}function d(t,e){if(!e||!t.width||!t.height)return t;let n=document.createElement("canvas");n.width=t.width,n.height=t.height;let r=n.getContext("2d");return r.fillStyle=e,r.fillRect(0,0,n.width,n.height),r.drawImage(t,0,0),n}async function f(t,e={}
1){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(t)||"none"===t.trim())return t;let n=a(t);if(!n)return t;let i=o(n);if(r.background.has(i)){let t=r.background.get(i);return t?`url("${t}")`:"none"}try{let t=await u(i,{as:"dataURL",useProxy:e.useProxy});if(t.ok)return r.background.set(i,t.data),`url("${t.data}")`;return r.background.set(i,null),"none"}catch{return r.background.set(i,null),"none"}}var h=new Set(["meta","script","noscript","title","link","template"]),m=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]),p=/(?:^|-)(animation|transition)(?:-|$)/i,g=/^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i,y=new Set(["cursor","pointer-events","touch-action","user-select","print-color-adjust","speak","reading-flow","reading-order","anchor-name","anchor-scope","container-name","container-type","timeline-scope"]);function w(t){let e=String(t).toLowerCase();return!!(y.has(e)||g.test(e)||p.test(e))}function b(t,e){if(e=String(e||"").toLowerCase(),m.has(e))return"";let n=[],a=function(t){if(t=String(t).toLowerCase(),m.has(t)){let e={};return r.defaultStyle.set(t,e),e}if(r.defaultStyle.has(t))return r.defaultStyle.get(t);let e=document.getElementById("snapdom-sandbox");e||((e=document.createElement("div")).id="snapdom-sandbox",e.setAttribute("data-snapdom-sandbox","true"),e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.left="-9999px",e.style.top="-9999px",e.style.width="0px",e.style.height="0px",e.style.overflow="hidden",document.body.appendChild(e));let n=document.createElement(t);n.style.all="initial",e.appendChild(n);let a=getComputedStyle(n),o={};for(let t of a){if(w(t))continue;let e=a.getPropertyValue(t);o[t]=e}return e.removeChild(n),r.defaultStyle.set(t,o),o}(e);for(let[e,r]of Object.entries(t)){if(w(e))continue;let t=a[e];r&&r!==t&&n.push(`${e}:${r}`)}return n.sort(),n.join(";")}function x(t,e=null){if(!(t instanceof Element))return window.getComputedStyle(t,e);let n=r.computedStyle.get(t);if(n||(n=new Map,r.computedStyle.set(t,n)),!n.has(e)){let r=window.getComputedStyle(t,e);n.set(e,r)}return n.get(e)}function S(t){let e={};for(let n of t)e[n]=t.getPropertyValue(n);return e}function M(t){let e=[],n=0,r=0;for(let a=0;a<t.length;a++){let o=t[a];"("===o&&n++,")"===o&&n--,","===o&&0===n&&(e.push(t.slice(r,a).trim()),r=a+1)}return e.push(t.slice(r).trim()),e}function C(t,{fast:e=!1}={}){if(e)return t();"requestIdleCallback"in window?requestIdleCallback(t,{timeout:50}):setTimeout(t,1)}function $(){let t="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent:"",e=/^((?!chrome|android).)*safari/i.test(t),n=/AppleWebKit/i.test(t)&&/Mobile/i.test(t)&&!/Safari/i.test(t),r=/(MicroMessenger|wxwork|WeCom|WindowsWechat|MacWechat)/i.test(t);return e||n||r}var k=new WeakMap,v=new Map,A=0;function E(){A++}var N=!1,L=new WeakMap;async function F(t,e,n,a){let o;if("STYLE"===t.tagName)return;let i=n&&n.session&&n.persist?n:n&&(n.styleMap||n.styleCache||n.nodeMap)?{session:n,persist:{snapshotKeyCache:v,defaultStyle:r.defaultStyle,baseStyle:r.baseStyle,image:r.image,resource:r.resource,background:r.background,font:r.font},options:a||{}}:{session:r.session,persist:{snapshotKeyCache:v,defaultStyle:r.defaultStyle,baseStyle:r.baseStyle,image:r.image,resource:r.resource,background:r.background,font:r.font},options:n||a||{}},l=i.options&&i.options.cache||"auto";if("disabled"!==l&&function(t=document.documentElement){if(!N){N=!0;try{new MutationObserver(()=>E()).observe(t,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(()=>E()).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{let t=document.fonts;t&&(t.addEventListener?.("loadingdone",E),t.ready?.then(()=>E()).catch(()=>{}))}catch{}}}(document.documentElement),"disabled"!==l||i.session.__bumpedForDisabled||(E(),v.clear(),i.session.__bumpedForDisabled=!0),m.has(t.tagName?.toLowerCase())){let n=t.getAttribute?.("style");n&&e.setAttribute("style",n)}let{session:s,persist:c}=i;s.styleCache.has(t)||s.styleCache.set(t,getComputedStyle(t));let u=s.styleCache.get(t),d=function(t,e=null,n={}){let r=k.get(t);if(r&&r.epoch===A)return r.snapshot;let a=e||getComputedStyle(t),o=function(t,e={}){let n={},r=t.getPropertyValue("visibility");for(let e=0;e<t.length;e++){let r=t[e],a=t.getPropertyValue(r);("background-image"===r||"content"===r)&&a.includes("url(")&&!a.includes("data:")&&(a="none"),n[r]=a}if(e.embedFonts){for(let e of["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"])if(!n[e])try{let r=t.getPropertyValue(e);r&&(n[e]=r)}catch{}}return"hidden"===r&&(n.opacity="0"),n}(a,n);return function(t,e,n){if(t instanceof HTMLElement&&t.style&&t.style.height)return;let r=e.display||"";if(r.includes("flex")||r.includes("grid")||t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof HTMLIFrameElement||t instanceof SVGElement||t instanceof HTMLObjectElement||t instanceof HTMLEmbedElement)return;let a=e.position;if("absolute"!==a&&"fixed"!==a&&"sticky"!==a&&"none"===e.transform)!(e.backgroundImage&&"none"!==e.backgroundImage||e.backgroundColor&&"rgba(0, 0, 0, 0)"!==e.backgroundColor&&"transparent"!==e.backgroundColor||(parseFloat(e.borderTopWidth)||0)>0||(parseFloat(e.borderBottomWidth)||0)>0||(parseFloat(e.paddingTop)||0)>
10||(parseFloat(e.paddingBottom)||0)>0||"visible"!==(e.overflowBlock||e.overflowY||"visible")||function(t){let e=t.parentElement;if(!e)return!1;let n=getComputedStyle(e).display||"";return n.includes("flex")||n.includes("grid")}(t))&&function(t,e){if(t.textContent&&/\S/.test(t.textContent))return!0;let n=t.firstElementChild,r=t.lastElementChild;if(n&&"BR"===n.tagName||r&&"BR"===r.tagName)return!0;let a=t.scrollHeight;return 0!==a&&a>(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0)}(t,e)&&(delete n.height,delete n["block-size"])}(t,a,o),k.set(t,{epoch:A,snapshot:o}),o}(t,u,i.options),f=((o=L.get(d))||(o=Object.entries(d).sort((t,e)=>t[0]<e[0]?-1:+(t[0]>e[0])).map(([t,e])=>`${t}:${e}`).join(";"),L.set(d,o)),o),h=c.snapshotKeyCache.get(f);h||(h=b(d,t.tagName?.toLowerCase()||"div"),c.snapshotKeyCache.set(f,h)),s.styleMap.set(e,h)}function R(t,e,n){return Promise.all(t.map(t=>new Promise(r=>{!function a(){C(n=>{!n||"function"!=typeof n.timeRemaining||n.timeRemaining()>0?e(t,r):a()},{fast:n})}()})))}async function T(t,e=3){let n=()=>{try{return t.contentDocument||t.contentWindow?.document||null}catch{return null}},r=n(),a=0;for(;a<e&&(!r||!r.body&&!r.documentElement);)await new Promise(t=>setTimeout(t,0)),r=n(),a++;return r&&(r.body||r.documentElement)?r:null}async function P(t,e,n){let r,a=await T(t,3);if(!a)throw Error("iframe document not accessible/ready");let{contentWidth:o,contentHeight:i,rect:l}=function(t){let e=t.getBoundingClientRect(),n=0,r=0,a=0,o=0;try{let e=getComputedStyle(t);n=parseFloat(e.borderLeftWidth)||0,r=parseFloat(e.borderRightWidth)||0,a=parseFloat(e.borderTopWidth)||0,o=parseFloat(e.borderBottomWidth)||0}catch{}return{contentWidth:Math.max(0,Math.round(e.width-(n+r))),contentHeight:Math.max(0,Math.round(e.height-(a+o))),rect:e}}(t),s=n?.snap;if(!s||"function"!=typeof s.toPng)throw Error("snapdom.toPng not available in iframe or window");let c={...n,scale:1},u=function(t,e,n){let r=t.createElement("style");return r.setAttribute("data-sd-iframe-pin",""),r.textContent=`html, body {margin: 0 !important;padding: 0 !important;width: ${e}px !important;height: ${n}px !important;min-width: ${e}px !important;min-height: ${n}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`,(t.head||t.documentElement).appendChild(r),()=>{try{r.remove()}catch{}}}(a,o,i);try{r=await s.toPng(a.documentElement,c)}finally{u()}r.style.display="block",r.style.width=`${o}px`,r.style.height=`${i}px`;let d=document.createElement("div");return e.nodeMap.set(d,t),F(t,d,e,n),d.style.overflow="hidden",d.style.display="block",d.style.width||(d.style.width=`${Math.round(l.width)}px`),d.style.height||(d.style.height=`${Math.round(l.height)}px`),d.appendChild(r),d}async function W(t,e,n){let r;if(!t)throw Error("Invalid node");let a=new Set,o=null,i=null;if(t.nodeType===Node.ELEMENT_NODE){let e=(t.localName||t.tagName||"").toLowerCase();if("snapdom-sandbox"===t.id||t.hasAttribute("data-snapdom-sandbox")||h.has(e))return null}if(t.nodeType===Node.TEXT_NODE||t.nodeType!==Node.ELEMENT_NODE)return t.cloneNode(!0);if("exclude"===t.getAttribute("data-capture")){if("hide"===n.excludeMode){let e=document.createElement("div"),n=t.getBoundingClientRect();return e.style.cssText=`display:inline-block;width:${n.width}px;height:${n.height}px;visibility:hidden;`,e}else if("remove"===n.excludeMode)return null}if(n.exclude&&Array.isArray(n.exclude))for(let e of n.exclude)try{if(t.matches?.(e)){if("hide"===n.excludeMode){let e=document.createElement("div"),n=t.getBoundingClientRect();return e.style.cssText=`display:inline-block;width:${n.width}px;height:${n.height}px;visibility:hidden;`,e}else if("remove"===n.excludeMode)return null}}catch(t){console.warn(`Invalid selector in exclude option: ${e}`,t)}if("function"==typeof n.filter)try{if(!n.filter(t)){if("hide"===n.filterMode){let e=document.createElement("div"),n=t.getBoundingClientRect();return e.style.cssText=`display:inline-block;width:${n.width}px;height:${n.height}px;visibility:hidden;`,e}else if("remove"===n.filterMode)return null}}catch(t){console.warn("Error in filter function:",t)}if("IFRAME"===t.tagName){let r=!1;try{r=!!(t.contentDocument||t.contentWindow?.document)}catch{r=!1}if(r)try{return await P(t,e,n)}catch(t){console.warn("[SnapDOM] iframe rasterization failed, fallback:",t)}if(n.placeholders){let r=document.createElement("div");return r.style.cssText=`width:${t.offsetWidth}px;height:${t.offsetHeight}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`,F(t,r,e,n),r}{let r=t.getBoundingClientRect(),a=document.createElement("div");return a.style.cssText=`display:inline-block;width:${r.width}px;height:${r.height}px;visibility:hidden;`,F(t,a,e,n),a}}if("placeholder"===t.getAttribute("data-capture")){let r=t.cloneNode(!1);e.nodeMap.set(r,t),F(t,r,e,n);let a=document.createElement("div");return a.textContent=t.getAttribute("data-placeholder-text")||"",a.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",r.appendChild(a),r}if("CANVAS"===t.tagName){let r=t.toDataURL(),a=document.createElement("img");return a.src=r,a.width=t.width,a.height=t.height,e.nodeMap.set(a,t),F(t,a,e,n),a}
1try{if(r=t.cloneNode(!1),!function(t,e){let n;if(!(t instanceof Element)||!(e instanceof Element))return;let r=t.getAttribute?.("style"),a=!!(r&&r.includes("var("));if(!a&&t.attributes?.length){let e=t.attributes;for(let t=0;t<e.length;t++){let n=e[t];if(n&&"string"==typeof n.value&&n.value.includes("var(")){a=!0;break}}}if(!a)return;try{n=getComputedStyle(t)}catch{return}let o=t.style;if(o&&o.length)for(let t=0;t<o.length;t++){let r=o[t],a=o.getPropertyValue(r);if(!a||!a.includes("var("))continue;let i=n.getPropertyValue(r);if(i)try{e.style.setProperty(r,i.trim(),o.getPropertyPriority(r))}catch{}}if(t.attributes?.length){let r=t.attributes;for(let t=0;t<r.length;t++){let a=r[t];if(!a||"string"!=typeof a.value||!a.value.includes("var("))continue;let o=a.name,i="";try{i=n.getPropertyValue(o)}catch{}if(i)try{e.style.setProperty(o,i.trim())}catch{}}}}(t,r),e.nodeMap.set(r,t),"IMG"===t.tagName){!function(t,e){try{let n=t.currentSrc||t.src||"";if(!n)return;e.setAttribute("src",n),e.removeAttribute("srcset"),e.removeAttribute("sizes"),e.loading="eager",e.decoding="sync"}catch{}}(t,r);try{let e=t.getBoundingClientRect(),n=Math.round(e.width||0),a=Math.round(e.height||0);if(!n||!a){let e=window.getComputedStyle(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=parseInt(t.getAttribute("width")||"",10)||0,l=parseInt(t.getAttribute("height")||"",10)||0,s=t.width||t.naturalWidth||0,c=t.height||t.naturalHeight||0;n=Math.round(n||r||i||s||0),a=Math.round(a||o||l||c||0)}n&&(r.dataset.snapdomWidth=String(n)),a&&(r.dataset.snapdomHeight=String(a))}catch{}}}catch(e){throw console.error("[Snapdom] Failed to clone node:",t,e),e}if(t instanceof HTMLTextAreaElement){let e=t.getBoundingClientRect();r.style.width=`${e.width}px`,r.style.height=`${e.height}px`}if(t instanceof HTMLInputElement&&(r.value=t.value,r.setAttribute("value",t.value),void 0!==t.checked&&(r.checked=t.checked,t.checked&&r.setAttribute("checked",""),t.indeterminate&&(r.indeterminate=t.indeterminate))),t instanceof HTMLSelectElement&&(o=t.value),t instanceof HTMLTextAreaElement&&(i=t.value),F(t,r,e,n),t.shadowRoot){var l;try{for(let e of t.shadowRoot.querySelectorAll("slot")){let t=[];try{t=e.assignedNodes?.({flatten:!0})||e.assignedNodes?.()||[]}catch{t=e.assignedNodes?.()||[]}for(let e of t)a.add(e)}}catch{}let o=(e.shadowScopeSeq=(e.shadowScopeSeq||0)+1,`s${e.shadowScopeSeq}`),i=`[data-sd="${o}"]`;try{r.setAttribute("data-sd",o)}catch{}let s=function(t){let e="";try{for(let n of(t.querySelectorAll("style").forEach(t=>{e+=(t.textContent||"")+"\n"}),t.adoptedStyleSheets||[]))try{if(n&&n.cssRules)for(let t of n.cssRules)e+=t.cssText+"\n"}catch{}}catch{}return e}(t.shadowRoot),c=(l=s)?l=(l=(l=(l=(l=l.replace(/:host\(([^)]+)\)/g,(t,e)=>`:where(${i}:is(${e.trim()}))`)).replace(/:host\b/g,`:where(${i})`)).replace(/:host-context\(([^)]+)\)/g,(t,e)=>`:where(:where(${e.trim()}) ${i})`)).replace(/::slotted\(([^)]+)\)/g,(t,e)=>`:where(${i} ${e.trim()})`)).replace(/(^|})(\s*)([^@}{]+){/g,(t,e,n,r)=>{let a=function(t,e,n=!0){return t.split(",").map(t=>t.trim()).filter(Boolean).map(t=>{var r;if(t.startsWith(":where(")||t.startsWith("@"))return t;let a=n?!(r=(r=t).trim())||/:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(r)?r:`${r}:not([data-sd-slotted])`:t;return`:where(${e} ${a})`}).join(", ")}(r,i,!0);return`${e}${n}${a}{`}):"";!function(t,e,n){if(!e)return;let r=document.createElement("style");r.setAttribute("data-sd",n),r.textContent=e,t.insertBefore(r,t.firstChild||null)}(r,function(t,e,n){let r=[];for(let n of e){let e=function(t,e){try{let n=getComputedStyle(t).getPropertyValue(e).trim();if(n)return n}catch{}try{let t=getComputedStyle(document.documentElement).getPropertyValue(e).trim();if(t)return t}catch{}return""}(t,n);e&&r.push(`${n}: ${e};`)}return r.length?`${n}{${r.join("")}} 2`:""}(t,function(t){let e,n=new Set;if(!t)return n;let r=/var\(\s*(--[A-Za-z0-9_-]+)\b/g;for(;e=r.exec(t);)n.add(e[1]);return n}(s),i)+c,o);let u=document.createDocumentFragment(),d=await R(Array.from(t.shadowRoot.childNodes),function(t,r){if(t.nodeType===Node.ELEMENT_NODE&&"STYLE"===t.tagName)return r(null);W(t,e,n).then(t=>{r(t||null)}
2).catch(()=>{r(null)})},n.fast);u.append(...d.filter(t=>!!t)),r.appendChild(u)}if("SLOT"===t.tagName){let r=t.assignedNodes?.({flatten:!0})||[],a=r.length>0?r:Array.from(t.childNodes),o=document.createDocumentFragment(),i=await R(Array.from(a),function(t,r){W(t,e,n).then(t=>{t&&t&&(t.nodeType===Node.ELEMENT_NODE&&t.setAttribute("data-sd-slotted",""),t.querySelectorAll&&t.querySelectorAll("*").forEach(t=>t.setAttribute("data-sd-slotted",""))),r(t||null)}).catch(()=>{r(null)})},n.fast);return o.append(...i.filter(t=>!!t)),o}let s=await R(Array.from(t.childNodes),function(t,r){if(a.has(t))return r(null);W(t,e,n).then(t=>{r(t||null)}).catch(()=>{r(null)})},n.fast);if(r.append(...s.filter(t=>!!t)),null!==o&&r instanceof HTMLSelectElement)for(let t of(r.value=o,r.options))t.value===o?t.setAttribute("selected",""):t.removeAttribute("selected");return null!==i&&r instanceof HTMLTextAreaElement&&(r.textContent=i),r}var I=[/font\s*awesome/i,/material\s*icons/i,/ionicons/i,/glyphicons/i,/feather/i,/bootstrap\s*icons/i,/remix\s*icons/i,/heroicons/i,/layui/i,/lucide/i],O=[];function U(t){let e="string"==typeof t?t:"";for(let t of[...I,...O])if(t instanceof RegExp&&t.test(e))return!0;return!!(/icon/i.test(e)||/glyph/i.test(e)||/symbols/i.test(e)||/feather/i.test(e)||/fontawesome/i.test(e))}async function _(t,e,n,r=32,a="#000"){e=e.replace(/^['"]+|['"]+$/g,"");let o=window.devicePixelRatio||1;try{await document.fonts.ready}catch{}let i=document.createElement("span");i.textContent=t,i.style.position="absolute",i.style.visibility="hidden",i.style.fontFamily=`"${e}"`,i.style.fontWeight=n||"normal",i.style.fontSize=`${r}px`,i.style.lineHeight="1",i.style.whiteSpace="nowrap",i.style.padding="0",i.style.margin="0",document.body.appendChild(i);let l=i.getBoundingClientRect(),s=Math.ceil(l.width),c=Math.ceil(l.height);document.body.removeChild(i);let u=document.createElement("canvas");u.width=Math.max(1,s*o),u.height=Math.max(1,c*o);let d=u.getContext("2d");return d.scale(o,o),d.font=n?`${n} ${r}px "${e}"`:`${r}px "${e}"`,d.textAlign="left",d.textBaseline="top",d.fillStyle=a,d.fillText(t,0,0),{dataUrl:u.toDataURL(),width:s,height:c}}var D=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","emoji","math","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]);function q(t){if(!t)return"";for(let e of t.split(",")){let t=e.trim().replace(/^['"]+|['"]+$/g,"");if(t&&!D.has(t.toLowerCase()))return t}return""}function B(t){let e=String(t??"400").trim().toLowerCase();if("normal"===e)return 400;if("bold"===e)return 700;let n=parseInt(e,10);return Number.isFinite(n)?Math.min(900,Math.max(100,n)):400}function j(t){let e=String(t??"normal").trim().toLowerCase();return e.startsWith("italic")?"italic":e.startsWith("oblique")?"oblique":"normal"}function H(t,e){return t?t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/g,(t,n,r)=>{let a=(r||"").trim();if(!a||/^data:|^blob:|^https?:|^file:|^about:/i.test(a))return t;let o=a;try{o=new URL(a,e||location.href).href}catch{}return`url("${o}")`}):t}var z=/@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g;async function V(t,e,n){if(!t)return t;let r=new Set;async function a(t,e,o=0){let i;if(o>4)return console.warn(`[snapDOM] @import depth exceeded (4) at ${e}`),t;let l="",s=0;for(;i=z.exec(t);){l+=t.slice(s,i.index),s=z.lastIndex;let c=function(t,e){try{return new URL(t,e||location.href).href}catch{return t}}((i[2]||i[4]||"").trim(),e);if(r.has(c)){console.warn(`[snapDOM] Skipping circular @import: ${c}`);continue}r.add(c);let d="";try{let t=await u(c,{as:"text",useProxy:n,silent:!0});t.ok&&"string"==typeof t.data&&(d=t.data)}catch{}d?(d=H(d,c),d=await a(d,c,o+1),l+=` 3/* inlined: ${c} */ 4${d} 5`):l+=i[0]}return l+t.slice(s)}let o=H(t,e||location.href);return await a(o,e||location.href,0)}var X=/url\((["']?)([^"')]+)\1\)/g,Y=/@font-face[^{}]*\{[^}]*\}/g;function G(t){if(!t)return[];let e=[];for(let n of t.split(",").map(t=>t.trim()).filter(Boolean)){let t=n.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!t)continue;let r=t[1],a=t[2],o=t=>t.includes("?")?[parseInt(t.replace(/\?/g,"0"),16),parseInt(t.replace(/\?/g,"F"),16)]:parseInt(t,16);
vendor: 4,553 bytes, line 5
5if(a){let t=o(r),n=o(a),i=Array.isArray(t)?t[0]:t,l=Array.isArray(n)?n[1]:n;e.push([Math.min(i,l),Math.max(i,l)])}else{let t=o(r);Array.isArray(t)?e.push([t[0],t[1]]):e.push([t,t])}}return e}function J(t,e){if(!e.length||!t||0===t.size)return!0;for(let n of t)for(let[t,r]of e)if(n>=t&&n<=r)return!0;return!1}function K(t,e){let n=[];if(!t)return n;for(let r of t.matchAll(X)){let t=(r[2]||"").trim();if(!(!t||t.startsWith("data:"))){if(!/^https?:/i.test(t))try{t=new URL(t,e||location.href).href}catch{}n.push(t)}}return n}async function Q(t,e,n=""){let o=t;for(let i of t.matchAll(X)){let t=a(i[0]);if(!t)continue;let l=t;if(!l.startsWith("http")&&!l.startsWith("data:"))try{l=new URL(l,e||location.href).href}catch{}if(!U(l)){if(r.resource?.has(l)){r.font?.add(l),o=o.replace(i[0],`url(${r.resource.get(l)})`);continue}if(!r.font?.has(l))try{let t=await u(l,{as:"dataURL",useProxy:n,silent:!0});if(t.ok&&"string"==typeof t.data){let e=t.data;r.resource?.set(l,e),r.font?.add(l),o=o.replace(i[0],`url(${e})`)}}catch{console.warn("[snapDOM] Failed to fetch font resource:",l)}}}return o}function Z(t={}){let e=new Set((t.families||[]).map(t=>String(t).toLowerCase())),n=new Set((t.domains||[]).map(t=>String(t).toLowerCase())),r=new Set((t.subsets||[]).map(t=>String(t).toLowerCase()));return(t,a)=>{if(e.size&&e.has(t.family.toLowerCase()))return!0;if(n.size)for(let e of t.srcUrls)try{if(n.has(new URL(e).host.toLowerCase()))return!0}catch{}if(r.size){let t=function(t){if(!t.length)return null;let e=(e,n)=>t.some(([t,r])=>!(r<e||t>n)),n=e(0,255)||e(305,305),r=e(256,591)||e(7680,7935),a=e(880,1023),o=e(1024,1279);return e(7840,7929)||e(258,259)||e(416,417)||e(431,432)?"vietnamese":o?"cyrillic":a?"greek":r?"latin-ext":n?"latin":null}(a);if(t&&r.has(t))return!0}return!1}}async function tt(t,e,n,r){let a;try{a=t.cssRules||[]}catch{return}let o=(t,e)=>{try{return new URL(t,e||location.href).href}catch{return t}};for(let t of a){if(t.type===CSSRule.IMPORT_RULE&&t.styleSheet){let a=t.href?o(t.href,e):e;if(r.depth>=4){console.warn(`[snapDOM] CSSOM import depth exceeded (4) at ${a}`);continue}if(a&&r.visitedSheets.has(a)){console.warn(`[snapDOM] Skipping circular CSSOM import: ${a}`);continue}a&&r.visitedSheets.add(a);let i={...r,depth:(r.depth||0)+1};await tt(t.styleSheet,a,n,i);continue}if(t.type===CSSRule.FONT_FACE_RULE){let a=q((t.style.getPropertyValue("font-family")||"").trim());if(!a||U(a))continue;let o=(t.style.getPropertyValue("font-weight")||"400").trim(),i=(t.style.getPropertyValue("font-style")||"normal").trim(),l=(t.style.getPropertyValue("font-stretch")||"100%").trim(),s=(t.style.getPropertyValue("src")||"").trim(),c=(t.style.getPropertyValue("unicode-range")||"").trim();if(!r.faceMatchesRequired(a,i,o,l))continue;let u=G(c);if(!J(r.usedCodepoints,u))continue;let d={family:a,weightSpec:o,styleSpec:i,stretchSpec:l,unicodeRange:c,srcRaw:s,srcUrls:K(s,e||location.href),href:e||location.href};if(r.simpleExcluder&&r.simpleExcluder(d,u))continue;if(/url\(/i.test(s)){let t=await Q(s,e||location.href,r.useProxy);await n(`@font-face{font-family:${a};src:${t};font-style:${i};font-weight:${o};font-stretch:${l};${c?`unicode-range:${c};`:""}}`)}else await n(`@font-face{font-family:${a};src:${s};font-style:${i};font-weight:${o};font-stretch:${l};${c?`unicode-range:${c};`:""}}`)}}}async function te({required:t,usedCodepoints:e,exclude:n,localFonts:a=[],useProxy:o=""}={}){t instanceof Set||(t=new Set),e instanceof Set||(e=new Set);let i=new Map;for(let e of t){let[t,n,r,a]=String(e).split("__");if(!t)continue;let o=i.get(t)||[];o.push({w:parseInt(n,10),s:r,st:parseInt(a,10)}),i.set(t,o)}function l(t,e,n,r){if(!i.has(t))return!1;let a=i.get(t),o=function(t){let e=String(t||"400").trim(),n=e.match(/^(\d{2,3})\s+(\d{2,3})$/);if(n){let t=B(n[1]),e=B(n[2]);return{min:Math.min(t,e),max:Math.max(t,e)}}let r=B(e);return{min:r,max:r}}(n),l=function(t){let e=String(t||"normal").trim().toLowerCase();return"italic"===e?{kind:"italic"}:e.startsWith("oblique")?{kind:"oblique"}:{kind:"normal"}}(e),s=function(t){let e=String(t||"100%").trim(),n=e.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);if(n){let t=parseFloat(n[1]),e=parseFloat(n[2]);return{min:Math.min(t,e),max:Math.max(t,e)}}let r=e.match(/(\d+(?:\.\d+)?)\s*%/),a=r?parseFloat(r[1]):100;return{min:a,max:a}}(r),c=o.min!==o.max,u=o.min,d=t=>"normal"===l.kind&&"normal"===t||"normal"!==l.kind&&("italic"===t||"oblique"===t),f=!1;for(let t of a){let e=c?t.w>=o.min&&t.w<=o.max:t.w===u,n=d(j(t.s)),r=t.st>=s.min&&t.st<=s.max;if(e&&n&&r){f=!0;break}}if(f)return!0;
5if(!c)for(let t of a){let e=d(j(t.s)),n=t.st>=s.min&&t.st<=s.max;if(300>=Math.abs(u-t.w)&&e&&n)return!0}return!1}let s=Z(n),c=function(t,e,n,r){let a=Array.from(t||[]).sort().join("|"),o=e?JSON.stringify({families:(e.families||[]).map(t=>String(t).toLowerCase()).sort(),domains:(e.domains||[]).map(t=>String(t).toLowerCase()).sort(),subsets:(e.subsets||[]).map(t=>String(t).toLowerCase()).sort()}):"",i=(n||[]).map(t=>`${(t.family||"").toLowerCase()}::${t.weight||"normal"}::${t.style||"normal"}::${t.src||""}`).sort().join("|");return`fonts-embed-css::req=${a}::ex=${o}::lf=${i}::px=${r||""}`}(t,n,a,o);if(r.resource?.has(c))return r.resource.get(c);let d=function(t){let e=new Set;for(let n of t||[]){let t=String(n).split("__")[0]?.trim();t&&e.add(t)}return e}(t),f=[];for(let t of document.querySelectorAll("style"))for(let e of(t.textContent||"").matchAll(z)){let t=(e[2]||e[4]||"").trim();!(!t||U(t))&&(document.querySelector(`link[rel="stylesheet"][href="${t}"]`)||f.push(t))}f.length&&await Promise.all(f.map(t=>new Promise(e=>{if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return e(null);let n=document.createElement("link");n.rel="stylesheet",n.href=t,n.setAttribute("data-snapdom","injected-import"),n.onload=()=>e(n),n.onerror=()=>e(null),document.head.appendChild(n)})));let h="",m=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(t=>!!t.href);for(let t of m)try{if(U(t.href))continue;let r="",a=!1;try{a=new URL(t.href,location.href).origin===location.origin}catch{}if(!a&&!function(t,e){if(!t)return!1;try{let n=new URL(t,location.href);if(n.origin===location.origin)return!0;let r=n.host.toLowerCase();if(["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","p.typekit.net","kit.fontawesome.com","use.fontawesome.com"].some(t=>r.endsWith(t)))return!0;let a=(n.pathname+n.search).toLowerCase();if(/\bfont(s)?\b/.test(a)||/\.woff2?(\b|$)/.test(a))return!0;for(let t of e){let e=t.toLowerCase().replace(/\s+/g,"+"),n=t.toLowerCase().replace(/\s+/g,"-");if(a.includes(e)||a.includes(n))return!0}return!1}catch{return!1}}(t.href,d))continue;if(a){let e=Array.from(document.styleSheets).find(e=>e.href===t.href);if(e)try{let t=e.cssRules||[];r=Array.from(t).map(t=>t.cssText).join("")}catch{}}if(!r&&(r=(await u(t.href,{as:"text",useProxy:o})).data,U(t.href)))continue;r=await V(r,t.href,o);let i="";for(let a of r.match(Y)||[]){let r=(a.match(/font-family:\s*([^;]+);/i)?.[1]||"").trim(),c=q(r);if(!c||U(c))continue;let u=(a.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),d=(a.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),f=(a.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),h=(a.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),m=(a.match(/src\s*:\s*([^;]+);/i)?.[1]||"").trim(),p=K(m,t.href);if(!l(c,d,u,f))continue;let g=G(h);if(!J(e,g))continue;let y={family:c,weightSpec:u,styleSpec:d,stretchSpec:f,unicodeRange:h,srcRaw:m,srcUrls:p,href:t.href};if(n&&s(y,g))continue;let w=/url\(/i.test(m)?await Q(a,t.href,o):a;i+=w}i.trim()&&(h+=i)}catch{console.warn("[snapDOM] Failed to process stylesheet:",t.href)}let p={requiredIndex:i,usedCodepoints:e,faceMatchesRequired:l,simpleExcluder:n?Z(n):null,useProxy:o,visitedSheets:new Set,depth:0};for(let t of document.styleSheets)if(!(t.href&&m.some(e=>e.href===t.href)))try{let e=t.href||location.href;e&&p.visitedSheets.add(e),await tt(t,e,async t=>{h+=t},p)}catch{}try{for(let t of document.fonts||[]){if(!t||!t.family||"loaded"!==t.status||!t._snapdomSrc)continue;let e=String(t.family).replace(/^['"]+|['"]+$/g,"");if(U(e)||!i.has(e)||n?.families&&n.families.some(t=>String(t).toLowerCase()===e.toLowerCase()))continue;let a=t._snapdomSrc;if(!String(a).startsWith("data:")){if(r.resource?.has(t._snapdomSrc))a=r.resource.get(t._snapdomSrc),r.font?.add(t._snapdomSrc);else if(!r.font?.has(t._snapdomSrc))try{let e=await u(t._snapdomSrc,{as:"dataURL",useProxy:o,silent:!0});if(!e.ok||"string"!=typeof e.data)continue;a=e.data,r.resource?.set(t._snapdomSrc,a),r.font?.add(t._snapdomSrc)}catch{console.warn("[snapDOM] Failed to fetch dynamic font src:",t._snapdomSrc);continue}}h+=`@font-face{font-family:'${e}';src:url(${a});font-style:${t.style||"normal"};font-weight:${t.weight||"normal"};}`}}catch{}for(let t of a){if(!t||"object"!=typeof t)continue;let e=String(t.family||"").replace(/^['"]+|['"]+$/g,"");if(!e||U(e)||!i.has(e)||n?.families&&n.families.some(t=>String(t).toLowerCase()===e.toLowerCase()))continue;let a=null!=t.weight?String(t.weight):"normal",l=null!=t.style?String(t.style):"normal",s=null!=t.stretchPct?`${t.stretchPct}%`:"100%",c=String(t.src||""),d=c;if(!d.startsWith("data:")){if(r.resource?.has(c))d=r.resource.get(c),r.font?.add(c);else if(!r.font?.has(c))try{let t=await u(c,{as:"dataURL",useProxy:o,silent:!0});if(!t.ok||"string"!=typeof t.data)continue;d=t.data,r.resource?.set(c,d),r.font?.add(c)}catch{console.warn("[snapDOM] Failed to fetch localFonts src:",c);continue}}h+=`@font-face{font-family:'${e}';src:url(${d});font-style:${l};font-weight:${a};font-stretch:${s};}`}return h&&(h=function(t){if(!t)return t;let e=/@font-face[^{}]*\{[^}]*\}/gi,n=new Set,r=[];for(let a of t.match(e)||[]){let t=q(a.match(/font-family:\s*([^;]+);
5/i)?.[1]||""),e=(a.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),o=(a.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),i=(a.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),l=(a.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),s=(a.match(/src\s*:\s*([^;]+);/i)?.[1]||"").trim(),c=K(s,location.href),u=c.length?c.map(t=>String(t).toLowerCase()).sort().join("|"):s.toLowerCase(),d=[String(t||"").toLowerCase(),e,o,i,l.toLowerCase(),u].join("|");n.has(d)||(n.add(d),r.push(a))}if(0===r.length)return t;let a=0;return t.replace(e,()=>r[a++]||"")}(h),r.resource?.set(c,h)),h}async function tn(t,e=2){try{await document.fonts.ready}catch{}let n=Array.from(t||[]).filter(Boolean);if(0===n.length)return;let r=()=>{let t=document.createElement("div");for(let e of(t.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;",n)){let n=document.createElement("span");n.textContent="AaBbGg1234\xc1\xc9\xcd\xd3\xda\xe7\xf1ââ",n.style.fontFamily=`"${e}"`,n.style.fontWeight="700",n.style.fontStyle="italic",n.style.fontSize="32px",n.style.lineHeight="1",n.style.whiteSpace="nowrap",n.style.margin="0",n.style.padding="0",t.appendChild(n)}document.body.appendChild(t),t.offsetWidth,document.body.removeChild(t)};for(let t=0;t<Math.max(1,e);t++)r(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(t)))}function tr(t,e=!1){let n="",r=Math.max(1,t);for(;r>0;)n=String.fromCharCode(97+--r%26)+n,r=Math.floor(r/26);return e?n.toUpperCase():n}function ta(t,e=!0){let n=Math.max(1,Math.min(3999,t)),r="";for(let[t,e]of[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]])for(;n>=t;)r+=e,n-=t;return e?r:r.toLowerCase()}function to(t,e){switch((e||"decimal").toLowerCase()){case"decimal":default:return String(Math.max(0,t));case"decimal-leading-zero":return(t<10?"0":"")+String(Math.max(0,t));case"lower-alpha":return tr(t,!1);case"upper-alpha":return tr(t,!0);case"lower-roman":return ta(t,!1);case"upper-roman":return ta(t,!0)}}var ti=null,tl=new WeakMap;function ts(t,e){let n=t.parentElement,r=n?tl.get(n):null;return r?{get(t,n){let a=e.get(t,n),o=r.get(n);return"number"==typeof o?Math.max(a,o):a},getStack(t,n){let a=e.getStack(t,n);if(!a.length)return a;let o=r.get(n);if("number"==typeof o){let t=a.slice();return t[t.length-1]=Math.max(t[t.length-1],o),t}return a}}:e}function tc(t,e,n){let r=new Map;function a(t){let e=[];
5if(!t||"none"===t)return e;for(let n of String(t).split(",")){let t=n.trim().split(/\s+/),r=t[0],a=Number.isFinite(Number(t[1]))?Number(t[1]):void 0;r&&e.push({name:r,num:a})}return e}let o=a(e?.counterReset),i=a(e?.counterIncrement);function l(e){if(r.has(e))return r.get(e).slice();let a=n.getStack(t,e);a=a.length?a.slice():[];let l=o.find(t=>t.name===e);if(l){let t=Number.isFinite(l.num)?l.num:0;a=a.length?[...a,t]:[t]}let s=i.find(t=>t.name===e);if(s){let t=Number.isFinite(s.num)?s.num:1;0===a.length&&(a=[0]),a[a.length-1]+=t}return r.set(e,a.slice()),a}return{get(t,e){let n=l(e);return n.length?n[n.length-1]:0},getStack:(t,e)=>l(e),__incs:i}}async function tu(t,e,n,r){if(!(t instanceof Element)||!(e instanceof Element))return;if(!ti)try{ti=function(t){let e=new WeakMap,n=t instanceof Document?t.documentElement:t,r=t=>{let e=0,n=t?.parentElement;if(!n)return 0;for(let r of n.children){if(r===t)break;"LI"===r.tagName&&e++}return e},a=(t,n,o)=>{let i=((t,e,n)=>{let a,o,i=(t=>{let e=new Map;for(let[n,r]of t)e.set(n,r.slice());return e})(t);try{a=n.style?.counterReset||getComputedStyle(n).counterReset}catch{}if(a&&"none"!==a)for(let t of a.split(",")){let n=t.trim().split(/\s+/),r=n[0],a=Number.isFinite(Number(n[1]))?Number(n[1]):0;if(!r)continue;let o=e.get(r);if(o&&o.length){let t=o.slice();t.push(a),i.set(r,t)}else i.set(r,[a])}try{o=n.style?.counterIncrement||getComputedStyle(n).counterIncrement}catch{}if(o&&"none"!==o)for(let t of o.split(",")){let e=t.trim().split(/\s+/),n=e[0],r=Number.isFinite(Number(e[1]))?Number(e[1]):1;if(!n)continue;let a=i.get(n)||[];0===a.length&&a.push(0),a[a.length-1]+=r,i.set(n,a)}try{let t=getComputedStyle(n);if("list-item"===t.display&&n&&"LI"===n.tagName){let t=n.parentElement,e=1;
5if(t&&"OL"===t.tagName){let a=t.getAttribute("start"),o=Number.isFinite(Number(a))?Number(a):1,i=r(n),l=n.getAttribute("value");e=Number.isFinite(Number(l))?Number(l):o+i}else e=1+r(n);let a=i.get("list-item")||[];0===a.length&&a.push(0),a[a.length-1]=e,i.set("list-item",a)}}catch{}return i})(o,n,t);e.set(t,i);let l=i;for(let e of t.children)l=a(e,i,l);return i},o=new Map;return a(n,o,o),{get(t,n){let r=e.get(t)?.get(n);return r&&r.length?r[r.length-1]:0},getStack(t,n){let r=e.get(t)?.get(n);return r?r.slice():[]}}}(t.ownerDocument||document)}catch{}for(let i of["::before","::after","::first-letter"])try{let l=x(t,i);if(!l||"function"!=typeof l[Symbol.iterator]||"none"===l.content&&"none"===l.backgroundImage&&"transparent"===l.backgroundColor&&("none"===l.borderStyle||0===parseFloat(l.borderWidth))&&(!l.transform||"none"===l.transform)&&"inline"===l.display)continue;if("::first-letter"===i){let r=getComputedStyle(t);if(l.color===r.color&&l.fontSize===r.fontSize&&l.fontWeight===r.fontWeight)continue;let a=Array.from(e.childNodes).find(t=>t.nodeType===Node.TEXT_NODE&&t.textContent?.trim().length>0);if(!a)continue;let o=a.textContent,i=o.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['â])?)/u),s=i?.[0],c=o.slice(s?.length||0);if(!s||/[\uD800-\uDFFF]/.test(s))continue;let u=document.createElement("span");u.textContent=s,u.dataset.snapdomPseudo="::first-letter";let d=S(l),f=b(d,"span");n.styleMap.set(u,f);let h=document.createTextNode(c);e.replaceChild(h,a),e.insertBefore(u,h);continue}let s=l.content,{text:c,incs:d}=function(t,e,n){let r;try{r=getComputedStyle(t,e)}catch{}let a=r?.content;if(!a||"none"===a||"normal"===a)return{text:"",incs:[]};let o=ts(t,n),i=tc(t,r,o);return{text:function(t){let e;if(!t)return"";let n=[],r=/"([^"]*)"/g;for(;e=r.exec(t);)n.push(e[1]);return n.length?n.join(""):(t||"").replace(/"([^"]*)"/g,"$1")}(/\bcounter\s*\(|\bcounters\s*\(/.test(a||"")?function(t,e,n){if(!t||"none"===t)return t;try{return(t.replace(/\b(counter|counters)\s*\(([^)]+)\)/g,(t,r,a)=>{let o=String(a).split(",").map(t=>t.trim());if("counter"===r){let t=o[0]?.replace(/^["']|["']$/g,""),r=(o[1]||"decimal").toLowerCase(),a=n.get(e,t);return to(a,r)}
5{let t=o[0]?.replace(/^["']|["']$/g,""),r=o[1]?.replace(/^["']|["']$/g,"")??"",a=(o[2]||"decimal").toLowerCase(),i=n.getStack(e,t);return i.length?i.map(t=>to(t,a)).join(r):""}})||"").replace(/"([^"]*)"/g,"$1")}catch{return"- "}}(a,t,i):a),incs:i.__incs||[]}}(t,i,ti),h=l.backgroundImage,m=l.backgroundColor,p=l.fontFamily,g=parseInt(l.fontSize)||32,y=parseInt(l.fontWeight)||!1,w=l.color||"#000",C=l.borderStyle,$=parseFloat(l.borderWidth),k=l.transform,v=U(p),A="none"!==s&&""!==c,E=h&&"none"!==h,N=m&&"transparent"!==m&&"rgba(0, 0, 0, 0)"!==m,L=C&&"none"!==C&&$>0,F=k&&"none"!==k;if(!(A||E||N||L||F)){if(d&&d.length&&t.parentElement){let e=tl.get(t.parentElement)||new Map;for(let{name:n}of d){if(!n)continue;let r=ts(t,ti),a=tc(t,getComputedStyle(t,i),r).get(t,n);e.set(n,a)}tl.set(t.parentElement,e)}continue}let R=document.createElement("span");R.dataset.snapdomPseudo=i,R.style.verticalAlign="middle",R.style.pointerEvents="none";let T=S(l),P=b(T,"span");if(n.styleMap.set(R,P),v&&c&&1===c.length){let{dataUrl:t,width:n,height:r}=await _(c,p,y,g,w),a=document.createElement("img");a.src=t,a.style=`height:${g}px;width:${n/r*g}px;object-fit:contain;`,R.appendChild(a),e.dataset.snapdomHasIcon="true"}else if(c&&c.startsWith("url(")){let e=a(c);if(e?.trim())try{let t=document.createElement("img");t.src=(await u(o(e),{as:"dataURL",useProxy:r.useProxy})).data,t.style=`width:${g}px;height:auto;object-fit:contain;`,R.appendChild(t)}catch(e){console.error(`[snapdom] Error in pseudo ${i} for`,t,e)}}else!v&&A&&(R.textContent=c);if(R.style.background="none","mask"in R.style&&(R.style.mask="none"),E)try{let t=M(h),e=await Promise.all(t.map(f));R.style.backgroundImage=e.join(", ")}catch(t){console.warn(`[snapdom] Failed to inline background-image for ${i}`,t)}N&&(R.style.backgroundColor=m);let W=R.childNodes.length>0||R.textContent?.trim()!==""||E||N||L||F;if(d&&d.length&&t.parentElement){let e=tl.get(t.parentElement)||new Map,n=ts(t,ti),r=tc(t,getComputedStyle(t,i),n);for(let{name:n}of d){if(!n)continue;let a=r.get(t,n);e.set(n,a)}tl.set(t.parentElement,e)}if(!W)continue;"::before"===i?e.insertBefore(R,e.firstChild):e.appendChild(R)}catch(e){console.warn(`[snapdom] Failed to capture ${i} for`,t,e)}let i=Array.from(t.children),l=Array.from(e.children).filter(t=>!t.dataset.snapdomPseudo);for(let t=0;t<Math.min(i.length,l.length);t++)await tu(i[t],l[t],n,r)}function td(t){if(!t||"auto"===t)return null;let e=Number.parseFloat(t);return Number.isFinite(e)?e:null}async function tf(t,e={}){let n,a={styleMap:r.session.styleMap,styleCache:r.session.styleCache,nodeMap:r.session.nodeMap},o="",i="";!function(t){let e=getComputedStyle(t),n=e.outlineStyle,r=e.outlineWidth,a=e.borderStyle,o=e.borderWidth,i="none"!==n&&parseFloat(r)>0,l="none"===a||0===parseFloat(o);i&&l&&(t.style.border=`${r} solid transparent`)}(t);try{!function(t){if(!t)return;let e=new Set;if(t.querySelectorAll("use").forEach(t=>{let n=t.getAttribute("xlink:href")||t.getAttribute("href");n&&n.startsWith("#")&&e.add(n.slice(1))}),!e.size)return;let n=Array.from(document.querySelectorAll("svg > symbol, svg > defs")),r=n.filter(t=>"symbol"===t.tagName.toLowerCase()),a=n.filter(t=>"defs"===t.tagName.toLowerCase()),o=t.querySelector("svg.inline-defs-container");o||((o=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("aria-hidden","true"),o.setAttribute("style","position: absolute; width: 0; height: 0; overflow: hidden;"),o.classList.add("inline-defs-container"),t.insertBefore(o,t.firstChild));let i=new Set;t.querySelectorAll("symbol[id], defs > *[id]").forEach(t=>{i.add(t.id)}),e.forEach(t=>{if(i.has(t))return;let e=r.find(e=>e.id===t);if(e){o.appendChild(e.cloneNode(!0)),i.add(t);return}for(let e of a){let n=e.querySelector(`#${CSS.escape(t)}`);if(n){let e=o.querySelector("defs");e||(e=document.createElementNS("http://www.w3.org/2000/svg","defs"),o.appendChild(e)),e.appendChild(n.cloneNode(!0)),i.add(t);break}}})}(t)}catch(t){console.warn("inlineExternal defs or symbol failed:",t)}try{n=await W(t,a,e,t)}catch(t){throw console.warn("deepClone failed:",t),t}try{await tu(t,n,a,e)}catch(t){console.warn("inlinePseudoElements failed:",t)}await tw(n);try{for(let t of n.querySelectorAll("style[data-sd]"))i+=t.textContent||"",t.remove()}catch{}
5let l=function(t){let e=Array.from(new Set(t.values())).filter(Boolean).sort(),n=new Map,r=1;for(let t of e)n.set(t,`c${r++}`);return n}(a.styleMap);for(let[t,e]of(o=i+(o=Array.from(l.entries()).map(([t,e])=>`.${e}{${t}}`).join("")),a.styleMap.entries())){if("STYLE"===t.tagName)continue;if(t.getRootNode&&t.getRootNode()instanceof ShadowRoot){t.setAttribute("style",e.replace(/;/g,"; "));continue}let n=l.get(e);n&&t.classList.add(n);let r=t.style?.backgroundImage,a=t.dataset?.snapdomHasIcon;r&&"none"!==r&&(t.style.backgroundImage=r),a&&(t.style.verticalAlign="middle",t.style.display="inline")}for(let[t,e]of a.nodeMap.entries()){let n=e.scrollLeft,r=e.scrollTop;if((n||r)&&t instanceof HTMLElement){t.style.overflow="hidden",t.style.scrollbarWidth="none",t.style.msOverflowStyle="none";let e=document.createElement("div");for(e.style.transform=`translate(${-n}px, ${-r}px)`,e.style.willChange="transform",e.style.display="inline-block",e.style.width="100%";t.firstChild;)e.appendChild(t.firstChild);t.appendChild(e)}}if(!function(t,e){if(!t||!e)return;let n=t.scrollTop||0;if(!n)return;"static"===getComputedStyle(e).position&&(e.style.position="relative");let r=t.getBoundingClientRect(),a=t.clientHeight,o="data-snap-ph",i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;i.nextNode();){let l=i.currentNode,s=getComputedStyle(l),c=s.position;if("sticky"!==c&&"-webkit-sticky"!==c)continue;let u=td(s.top),d=td(s.bottom);if(null==u&&null==d)continue;let f=function(t,e,n){let r=t;for(let t=0;t<e.length;t++)if(!(r=function(t,e){let n=[],r=t.children;for(let t=0;t<r.length;t++){let a=r[t];a.hasAttribute(e)||n.push(a)}return n}(r,n)[e[t]]))return null;return r instanceof HTMLElement?r:null}(e,function(t,e){let n=[];for(let r=t;r&&r!==e;){let t=r.parentElement;if(!t)break;n.push(Array.prototype.indexOf.call(t.children,r)),r=t}return n.reverse()}(l,t),o);if(!f)continue;let h=l.getBoundingClientRect(),m=h.width,p=h.height,g=h.left-r.left;if(!(m>0&&p>0)||!Number.isFinite(g))continue;let y=null!=u?u+n:n+(a-p-d);if(!Number.isFinite(y))continue;let w=Number.parseInt(s.zIndex,10),b=Number.isFinite(w),x=b?Math.max(w,1)+1:2,S=b?w-1:0,M=f.cloneNode(!1);M.setAttribute(o,"1"),M.style.position="sticky",M.style.left=`${g}px`,M.style.top=`${y}px`,M.style.width=`${m}px`,M.style.height=`${p}px`,M.style.visibility="hidden",M.style.zIndex=String(S),M.style.overflow="hidden",M.style.background="transparent",M.style.boxShadow="none",M.style.filter="none",f.parentElement?.insertBefore(M,f),f.style.position="absolute",f.style.left=`${g}px`,f.style.top=`${y}px`,f.style.bottom="auto",f.style.zIndex=String(x),f.style.pointerEvents="none"}}(t,n instanceof HTMLElement&&n.firstElementChild instanceof HTMLElement?n.firstElementChild:n),t===a.nodeMap.get(n)){let e=a.styleCache.get(t)||window.getComputedStyle(t);a.styleCache.set(t,e);let r=function(t){if(!t||"none"===t)return"";let e=t.replace(/translate[XY]?\([^)]*\)/g,"");return(e=(e=e.replace(/matrix\(([^)]+)\)/g,(t,e)=>{let n=e.split(",").map(t=>t.trim());return 6!==n.length?`matrix(${e})`:(n[4]="0",n[5]="0",`matrix(${n.join(", ")})`)})).replace(/matrix3d\(([^)]+)\)/g,(t,e)=>{let n=e.split(",").map(t=>t.trim());return 16!==n.length?`matrix3d(${e})`:(n[12]="0",n[13]="0",`matrix3d(${n.join(", ")})`)})).trim().replace(/\s{2,}/g," ")}(e.transform);n.style.margin="0",n.style.top="auto",n.style.left="auto",n.style.right="auto",n.style.bottom="auto",n.style.animation="none",n.style.transition="none",n.style.willChange="auto",n.style.float="none",n.style.clear="none",n.style.transform=r||""}for(let[t,e]of a.nodeMap.entries())"PRE"===e.tagName&&(t.style.marginTop="0",t.style.marginBlockStart="0");return{clone:n,classCSS:o,styleCache:a.styleCache}}var th=new Map;async function tm(t){if(r.resource?.has(t))return r.resource.get(t);if(th.has(t))return th.get(t);let e=(async()=>{let e=await u(t,{as:"dataURL",silent:!0});if(!e.ok||"string"!=typeof e.data)throw Error(`[snapDOM] Failed to read blob URL: ${t}`);return r.resource?.set(t,e.data),e.data})();th.set(t,e);try{let n=await e;return th.set(t,n),n}catch(e){throw th.delete(t),e}}var tp=/\bblob:[^)"'\s]+/g;async function tg(t){if(!t||-1===t.indexOf("blob:"))return t;let e=Array.from(new Set(t.match(tp)||[]));if(0===e.length)return t;let n=t;for(let t of e)try{let e=await tm(t);n=n.split(t).join(e)}catch{}return n}function ty(t){return"string"==typeof t&&t.startsWith("blob:")}async function tw(t){if(t){for(let e of t.querySelectorAll?t.querySelectorAll("img"):[])try{let t=e.getAttribute("src")||e.currentSrc||"";if(ty(t)){let n=await tm(t);e.setAttribute("src",n)}let n=e.getAttribute("srcset");if(n&&n.includes("blob:")){let t=(n||"").split(",").map(t=>
5t.trim()).filter(Boolean).map(t=>{let e=t.match(/^(\S+)(\s+.+)?$/);return e?{url:e[1],desc:e[2]||""}:null}).filter(Boolean),r=!1;for(let e of t)if(ty(e.url))try{e.url=await tm(e.url),r=!0}catch{}r&&e.setAttribute("srcset",t.map(t=>t.desc?`${t.url} ${t.desc.trim()}`:t.url).join(", "))}}catch{}for(let e of t.querySelectorAll?t.querySelectorAll("image"):[])try{let t="http://www.w3.org/1999/xlink",n=e.getAttribute("href")||e.getAttributeNS?.(t,"href");if(ty(n)){let r=await tm(n);e.setAttribute("href",r),e.removeAttributeNS?.(t,"href")}}catch{}for(let e of t.querySelectorAll?t.querySelectorAll("[style*='blob:']"):[])try{let t=e.getAttribute("style");if(t&&t.includes("blob:")){let n=await tg(t);e.setAttribute("style",n)}}catch{}for(let e of t.querySelectorAll?t.querySelectorAll("style"):[])try{let t=e.textContent||"";t.includes("blob:")&&(e.textContent=await tg(t))}catch{}for(let e of["poster"])for(let n of t.querySelectorAll?t.querySelectorAll(`[${e}^='blob:']`):[])try{let t=n.getAttribute(e);ty(t)&&n.setAttribute(e,await tm(t))}catch{}}}async function tb(t,e={}){let n=Array.from(t.querySelectorAll("img")),r=async t=>{if(!t.getAttribute("src")){let e=t.currentSrc||t.src||"";e&&t.setAttribute("src",e)}t.removeAttribute("srcset"),t.removeAttribute("sizes");let n=t.src||"";if(!n)return;let r=await u(n,{as:"dataURL",useProxy:e.useProxy});if(r.ok&&"string"==typeof r.data&&r.data.startsWith("data:")){t.src=r.data,t.width||(t.width=t.naturalWidth||100),t.height||(t.height=t.naturalHeight||100);return}let{fallbackURL:a}=e||{};if(a)try{let r=parseInt(t.dataset?.snapdomWidth||"",10)||0,o=parseInt(t.dataset?.snapdomHeight||"",10)||0,i=parseInt(t.getAttribute("width")||"",10)||0,l=parseInt(t.getAttribute("height")||"",10)||0,s=parseFloat(t.style?.width||"")||0,c=parseFloat(t.style?.height||"")||0,d=r||s||i||t.width||void 0,f=o||c||l||t.height||void 0,h="function"==typeof a?await a({width:d,height:f,src:n,element:t}):a;if(h){t.src=(await u(h,{as:"dataURL",useProxy:e.useProxy})).data,!t.width&&d&&(t.width=d),!t.height&&f&&(t.height=f),t.width||(t.width=t.naturalWidth||100),t.height||(t.height=t.naturalHeight||100);return}}catch{}let o=t.width||t.naturalWidth||100,i=t.height||t.naturalHeight||100;if(!1!==e.placeholders){let e=document.createElement("div");e.style.cssText=`width:${o}px;height:${i}px;background:#ccc;display:inline-block;text-align:center;line-height:${i}px;color:#666;font-size:12px;overflow:hidden`,e.textContent="img",t.replaceWith(e)}else{let e=document.createElement("div");e.style.cssText=`display:inline-block;width:${o}px;height:${i}px;visibility:hidden;`,t.replaceWith(e)}};for(let t=0;t<n.length;t+=4){let e=n.slice(t,t+4).map(r);await Promise.allSettled(e)}}async function tx(t,e,n,r={}){let a=[[t,e]],o=["background-image","mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"],i=["mask-position","mask-size","mask-repeat","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],l=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;a.length;){let[t,e]=a.shift(),s=n.get(t)||x(t);n.has(t)||n.set(t,s);let c=(()=>{let t=s.getPropertyValue("border-image"),e=s.getPropertyValue("border-image-source");
5return t&&"none"!==t||e&&"none"!==e})();for(let t of o){let n=s.getPropertyValue(t);if(!n||"none"===n)continue;let a=M(n),o=await Promise.all(a.map(t=>f(t,r)));o.some(t=>t&&"none"!==t&&!/^url\(undefined/.test(t))&&e.style.setProperty(t,o.join(", "))}for(let t of i){let n=s.getPropertyValue(t);n&&"initial"!==n&&e.style.setProperty(t,n)}if(c)for(let t of l){let n=s.getPropertyValue(t);n&&"initial"!==n&&e.style.setProperty(t,n)}let u=Array.from(t.children),d=Array.from(e.children);for(let t=0;t<Math.min(u.length,d.length);t++)a.push([u[t],d[t]])}}async function tS(t,e){let n,a,o,i,l;if(!t)throw Error("Element cannot be null or undefined");!function(t="soft"){switch(t){case"auto":r.session.styleMap=new Map,r.session.nodeMap=new Map;return;case"soft":default:r.session.styleMap=new Map,r.session.nodeMap=new Map,r.session.styleCache=new WeakMap;return;case"full":return;case"disabled":r.session.styleMap=new Map,r.session.nodeMap=new Map,r.session.styleCache=new WeakMap,r.computedStyle=new WeakMap,r.baseStyle=new Map,r.defaultStyle=new Map,r.image=new Map,r.background=new Map,r.resource=new Map,r.font=new Set;return}}(e.cache);let s=e.fast,c=!!e.straighten,u=!!e.noShadows,d="",f="",h=null,m=function(t){var e,n;if(!t)return()=>{};let r=function(t){let e=getComputedStyle(t),n=e.getPropertyValue("-webkit-line-clamp")||e.getPropertyValue("line-clamp"),r=parseInt(n=(n||"").trim(),10);return Number.isFinite(r)&&r>0?r:0}(t);if(r<=0||!(!((e=t).childElementCount>0)&&Array.from(e.childNodes).some(t=>t.nodeType===Node.TEXT_NODE)))return()=>{};let a=getComputedStyle(t),o=Math.round(function(t){let e=(t.lineHeight||"").trim(),n=parseFloat(t.fontSize)||16;return e&&"normal"!==e?e.endsWith("px")?parseFloat(e):/^\d+(\.\d+)?$/.test(e)?Math.round(parseFloat(e)*n):e.endsWith("%")?Math.round(parseFloat(e)/100*n):Math.round(1.2*n):Math.round(1.2*n)}(a)*r+((parseFloat((n=a).paddingTop)||0)+(parseFloat(n.paddingBottom)||0))),i=t.textContent??"";if(t.scrollHeight<=o+.5)return()=>{};let l=0,s=i.length,c=-1;for(;l<=s;){let e=l+s>>1;t.textContent=i.slice(0,e)+"â¦",t.scrollHeight<=o+.5?(c=e,l=e+1):s=e-1}return t.textContent=(c>=0?i.slice(0,c):"")+"â¦",()=>{t.textContent=i}}(t);try{({clone:n,classCSS:a,styleCache:o}=await tf(t,e)),c&&n&&(h=function(t,e){if(!t||!e||!e.style)return null;let n=getComputedStyle(t);try{e.style.transformOrigin="0 0"}catch{}try{"translate"in e.style&&(e.style.translate="none"),"rotate"in e.style&&(e.style.rotate="none")}catch{}let r=n.transform||"none";if(!r||"none"===r)try{let n=tC(t);if(1===n.a&&0===n.b&&0===n.c&&1===n.d)return e.style.transform="none",{a:1,b:0,c:0,d:1}}catch{}let a=r.match(/^matrix\(\s*([^)]+)\)$/i);if(a){let t=a[1].split(",").map(t=>parseFloat(t.trim()));if(6===t.length&&t.every(Number.isFinite)){let[n,r,a,o]=t,i=Math.sqrt(n*n+r*r)||0,l=0,s=0,c=0,u=0,d=0,f=0;i>0&&(c=(l=n/i)*a+(s=r/i)*o,(f=Math.sqrt((u=a-l*c)*u+(d=o-s*c)*d)||0)>0?c/=f:c=0);let h=c*f,m=f;try{e.style.transform=`matrix(${i}, 0, ${h}, ${m}, 0, 0)`}catch{}return{a:i,b:0,c:h,d:m}}}try{let t=String(r).trim();return e.style.transform=t+" translate(0px, 0px) rotate(0deg)",null}catch{return null}}(t,n)),u&&n&&function(t,e){if(!t||!e||!e.style)return;let n=getComputedStyle(t);try{e.style.boxShadow="none"}catch{}try{e.style.textShadow="none"}catch{}try{e.style.outline="none"}catch{}let r=(n.filter||"").replace(/\bblur\([^()]*\)\s*/gi,"").replace(/\bdrop-shadow\([^()]*\)\s*/gi,"").trim().replace(/\s+/g," ");try{e.style.filter=r.length?r:"none"}catch{}}(t,n)}finally{m()}await new Promise(t=>{C(async()=>{await tb(n,e),t()},{fast:s})}),await new Promise(r=>{C(async()=>{await tx(t,n,o,e),r()},{fast:s})}),e.embedFonts&&await new Promise(n=>{C(async()=>{let r=function(t){let e=new Set;if(!t)return e;let n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,null),r=t=>{let n,r,a,o=q(t.fontFamily);o&&e.add((n=t.fontWeight,r=t.fontStyle,a=t.fontStretch,`${o}__${B(n)}__${j(r)}__${function(t){let e=String(t??"100%").match(/(\d+(?:\.\d+)?)\s*%/);return e?Math.max(50,Math.min(200,parseFloat(e[1]))):100}(a)}`))};r(getComputedStyle(t));let a=getComputedStyle(t,"::before");a&&a.content&&"none"!==a.content&&r(a);let o=getComputedStyle(t,"::after");for(o&&o.content&&"none"!==o.content&&r(o);n.nextNode();){let t=n.currentNode;r(getComputedStyle(t));let e=getComputedStyle(t,"::before");e&&e.content&&"none"!==e.content&&r(e);let a=getComputedStyle(t,"::after");a&&a.content&&"none"!==a.content&&r(a)}return e}(t),a=function(t){let e=new Set,n=t=>{if(t)for(let n of t)e.add(n.codePointAt(0))},r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;r.nextNode();){let t=r.currentNode;if(t.nodeType===Node.TEXT_NODE)n(t.nodeValue||"");else if(t.nodeType===Node.ELEMENT_NODE)for(let r of["::before","::after"]){let a=getComputedStyle(t,r),o=a?.getPropertyValue("content");
5if(o&&"none"!==o)if(/^"/.test(o)||/^'/.test(o))n(o.slice(1,-1));else{let t=o.match(/\\[0-9A-Fa-f]{1,6}/g);if(t)for(let n of t)try{e.add(parseInt(n.slice(1),16))}catch{}}}}return e}(t);if($()){let t=new Set(Array.from(r).map(t=>String(t).split("__")[0]).filter(Boolean));await tn(t,1)}d=await te({required:r,usedCodepoints:a,preCached:!1,exclude:e.excludeFonts,useProxy:e.useProxy}),n()},{fast:s})});let p=(function(t){let e=new Set;return t.nodeType!==Node.ELEMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(t.tagName&&e.add(t.tagName.toLowerCase()),"function"==typeof t.querySelectorAll&&t.querySelectorAll("*").forEach(t=>e.add(t.tagName.toLowerCase())),Array.from(e))})(n).sort(),g=p.join(",");r.baseStyle.has(g)?f=r.baseStyle.get(g):await new Promise(t=>{C(()=>{f=function(t){let e=new Map;for(let n of t){let t=r.defaultStyle.get(n);if(!t)continue;let a=Object.entries(t).map(([t,e])=>`${t}:${e};`).sort().join("");a&&(e.has(a)||e.set(a,[]),e.get(a).push(n))}let n="";for(let[t,r]of e.entries())n+=`${r.join(",")} { ${t} } 6`;return n}(p),r.baseStyle.set(g,f),t()},{fast:s})}),await new Promise(r=>{C(()=>{let o=getComputedStyle(t),s=t.getBoundingClientRect(),m=Math.max(1,Math.ceil(t.offsetWidth||parseFloat(o.width)||s.width||1)),p=Math.max(1,Math.ceil(t.offsetHeight||parseFloat(o.height)||s.height||1)),g=(t,e=NaN)=>{let n="string"==typeof t?parseFloat(t):t;return Number.isFinite(n)?n:e},y=g(e.width),w=g(e.height),b=m,x=p,S=Number.isFinite(y),M=Number.isFinite(w),C=p>0?m/p:1;S&&M?(b=Math.max(1,Math.ceil(y)),x=Math.max(1,Math.ceil(w))):S?x=Math.max(1,Math.ceil((b=Math.max(1,Math.ceil(y)))/(C||1))):M?b=Math.max(1,Math.ceil((x=Math.max(1,Math.ceil(w)))*(C||1))):(b=m,x=p);let k=0,v=0,A=m,E=p;if(c&&h&&Number.isFinite(h.a)){let t=tM(m,p,{a:h.a,b:h.b||0,c:h.c||0,d:h.d||1,e:0,f:0},0,0);k=t.minX,v=t.minY,A=t.maxX,E=t.maxY}else if(!c&&function(t){let e=getComputedStyle(t),n=e.transform||"none";if("none"!==n&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(n))return!0;let r=e.rotate&&"none"!==e.rotate&&"0deg"!==e.rotate,a=e.scale&&"none"!==e.scale&&"1"!==e.scale,o=e.translate&&"none"!==e.translate&&"0px 0px"!==e.translate;return!!(r||a||o)}(t)){let e=o.transform&&"none"!==o.transform?o.transform:"",n=function(t){let e={rotate:"0deg",scale:null,translate:null},n="function"==typeof t.computedStyleMap?t.computedStyleMap():null;if(n){let r=t=>{try{if("function"==typeof n.has&&!n.has(t)||"function"!=typeof n.get)return null;return n.get(t)}catch{return null}},a=r("rotate");if(a)if(a.angle){let t=a.angle;e.rotate="rad"===t.unit?180*t.value/Math.PI+"deg":t.value+t.unit}else a.unit?e.rotate="rad"===a.unit?180*a.value/Math.PI+"deg":a.value+a.unit:e.rotate=String(a);else{let n=getComputedStyle(t);e.rotate=n.rotate&&"none"!==n.rotate?n.rotate:"0deg"}let o=r("scale");if(o){let t="x"in o&&o.x?.value!=null?o.x.value:Array.isArray(o)?o[0]?.value:Number(o)||1,n="y"in o&&o.y?.value!=null?o.y.value:Array.isArray(o)?o[1]?.value:t;e.scale=`${t} ${n}`}else{let n=getComputedStyle(t);e.scale=n.scale&&"none"!==n.scale?n.scale:null}let i=r("translate");if(i){let t="x"in i&&"value"in i.x?i.x.value:Array.isArray(i)?i[0]?.value:0,n="y"in i&&"value"in i.y?i.y.value:Array.isArray(i)?i[1]?.value:0,r="x"in i&&i.x?.unit?i.x.unit:"px",a="y"in i&&i.y?.unit?i.y.unit:"px";e.translate=`${t}${r} ${n}${a}`}else{let n=getComputedStyle(t);e.translate=n.translate&&"none"!==n.translate?n.translate:null}return e}let r=getComputedStyle(t);return e.rotate=r.rotate&&"none"!==r.rotate?r.rotate:"0deg",e.scale=r.scale&&"none"!==r.scale?r.scale:null,e.translate=r.translate&&"none"!==r.translate?r.translate:null,e}(t),r=function(t){let e=function(){if(t$)return t$;let t=document.createElement("div");return t.id="snapdom-measure-slot",t.setAttribute("aria-hidden","true"),Object.assign(t.style,{position:"absolute",left:"-99999px",to
6p:"0px",width:"0px",height:"0px",overflow:"hidden",opacity:"0",pointerEvents:"none",contain:"size layout style"}),document.documentElement.appendChild(t),t$=t,t}(),n=document.createElement("div");n.style.transformOrigin="0 0",t.baseTransform&&(n.style.transform=t.baseTransform),t.rotate&&(n.style.rotate=t.rotate),t.scale&&(n.style.scale=t.scale),t.translate&&(n.style.translate=t.translate),e.appendChild(n);let r=tC(n);return e.removeChild(n),r}({baseTransform:e,rotate:n.rotate||"0deg",scale:n.scale,translate:n.translate}),{ox:a,oy:i}=function(t,e,n){let r=(t.transformOrigin||"0 0").trim().split(/\s+/),[a,o]=[r[0]||"0",r[1]||"0"],i=(t,e)=>{let n=t.toLowerCase();return"left"===n||"top"===n?0:"center"===n?e/2:"right"===n||"bottom"===n?e:n.endsWith("px")?parseFloat(n)||0:n.endsWith("%")?(parseFloat(n)||0)*e/100:/^-?\d+(\.\d+)?$/.test(n)&&parseFloat(n)||0};return{ox:i(a,e),oy:i(o,n)}}(o,m,p),l=tM(m,p,r.is2D?r:new DOMMatrix(r.toString()),a,i);k=l.minX,v=l.minY,A=l.maxX,E=l.maxY}let N=function(t){let e=t.boxShadow||"";if(!e||"none"===e)return{top:0,right:0,bottom:0,left:0};let n=e.split(/\),(?=(?:[^()]*\([^()]*\))*[^()]*$)/).map(t=>t.trim()),r=0,a=0,o=0,i=0;for(let t of n){let e=t.match(/-?\d+(\.\d+)?px/g)?.map(t=>parseFloat(t))||[];if(e.length<2)continue;let[n,l,s=0,c=0]=e,u=Math.abs(n)+s+c,d=Math.abs(l)+s+c;a=Math.max(a,u+Math.max(n,0)),i=Math.max(i,u+Math.max(-n,0)),o=Math.max(o,d+Math.max(l,0)),r=Math.max(r,d+Math.max(-l,0))}return{top:Math.ceil(r),right:Math.ceil(a),bottom:Math.ceil(o),left:Math.ceil(i)}}(o),L=function(t){let e=(t.filter||"").match(/blur\(\s*([0-9.]+)px\s*\)/),n=e?Math.ceil(parseFloat(e[1])||0):0;return{top:n,right:n,bottom:n,left:n}}(o),F=function(t){if("none"===(t.outlineStyle||"none"))return{top:0,right:0,bottom:0,left:0};let e=Math.ceil(parseFloat(t.outlineWidth||"0")||0);return{top:e,right:e,bottom:e,left:e}}(o),R=function(t){let e=`${t.filter||""} ${t.webkitFilter||""}`.trim();if(!e||"none"===e)return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};let n=e.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[],r=0,a=0,o=0,i=0,l=!1;for(let t of n){l=!0;let[e=0,n=0,s=0]=t.match(/-?\d+(?:\.\d+)?px/gi)?.map(t=>parseFloat(t))||[],c=Math.abs(e)+s,u=Math.abs(n)+s;a=Math.max(a,c+Math.max(e,0)),i=Math.max(i,c+Math.max(-e,0)),o=Math.max(o,u+Math.max(n,0)),r=Math.max(r,u+Math.max(-n,0))}return{bleed:{top:Math.ceil(r),right:Math.ceil(a),bottom:Math.ceil(o),left:Math.ceil(i)},has:l}}(o),T=u?{top:0,right:0,bottom:0,left:0}:{top:N.top+L.top+F.top+R.bleed.top,right:N.right+L.right+F.right+R.bleed.right,bottom:N.bottom+L.bottom+F.bottom+R.bleed.bottom,left:N.left+L.left+F.left+R.bleed.left};k-=T.left,v-=T.top,A+=T.right,E+=T.bottom;let P=Math.max(1,Math.ceil(A-k)),W=Math.max(1,Math.ceil(E-v)),I=Math.max(1,Math.round(P*(S||M?b/m:1))),O=M
6ath.max(1,Math.round(W*(M||S?x/p:1))),U="http://www.w3.org/2000/svg",_=+!!$()+ +!!c,D=document.createElementNS(U,"foreignObject"),q=Math.floor(k),B=Math.floor(v);D.setAttribute("x",String(-(q-_))),D.setAttribute("y",String(-(B-_))),D.setAttribute("width",String(Math.ceil(m+2*_))),D.setAttribute("height",String(Math.ceil(p+2*_))),D.style.overflow="visible";let j=document.createElement("style");j.textContent=f+d+"svg{overflow:visible;} foreignObject{overflow:visible;}"+a,D.appendChild(j);let H=document.createElement("div");H.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),H.style.width=`${m}px`,H.style.height=`${p}px`,H.style.overflow="visible",n.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),H.appendChild(n),D.appendChild(H);let z=new XMLSerializer().serializeToString(D),V=P+2*_,X=W+2*_,Y=S||M;e.meta={w0:m,h0:p,vbW:V,vbH:X,targetW:b,targetH:x};let G=$()&&Y?V:I+2*_,J=$()&&Y?X:O+2*_;l=`<svg xmlns="${U}" width="${G}" height="${J}" viewBox="0 0 ${V} ${X}">`+z+"</svg>",i=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(l)}`,r()},{fast:s})});let y=document.getElementById("snapdom-sandbox");return y&&"absolute"===y.style.position&&y.remove(),i}function tM(t,e,n,r,a){let o=n.a,i=n.b,l=n.c,s=n.d,c=n.e||0,u=n.f||0;function d(t,e){let n=t-r,d=e-a,f=o*n+l*d,h=i*n+s*d;return[f+=r+c,h+=a+u]}let f=[d(0,0),d(t,0),d(0,e),d(t,e)],h=1/0,m=1/0,p=-1/0,g=-1/0;for(let[t,e]of f)t<h&&(h=t),e<m&&(m=e),t>p&&(p=t),e>g&&(g=e);return{minX:h,minY:m,maxX:p,maxY:g,width:p-h,height:g-m}}function tC(t){let e=getComputedStyle(t).transform;if(!e||"none"===e)return new DOMMatrix;try{return new DOMMatrix(e)}catch{return new WebKitCSSMatrix(e)}}var t$=null;function tk(t){let e=function(t){let e=[],n="",r=0;for(let a=0;a<t.length;a++){let o=t[a];"("===o&&r++,")"===o&&(r=Math.max(0,r-1)),";"===o&&0===r?(e.push(n),n=""):n+=o}return n.trim()&&e.push(n),e.map(t=>t.trim()).filter(Boolean)}(t),n=null,r=null,a=null,o=[];for(let t of e){let e=t.indexOf(":");if(e<0)continue;let i=t.slice(0,e).trim().toLowerCase(),l=t.slice(e+1).trim();"box-shadow"===i?a=l:"filter"===i?n=l:"-webkit-filter"===i?r=l:o.push([i,l])}if(a){let t=function(t){let e=[],n="",r=0;for(let a=0;a<t.length;a++){let o=t[a];"("===o&&r++,")"===o&&(r=Math.max(0,r-1)),","===o&&0===r?(e.push(n.trim()),n=""):n+=o}n.trim()&&e.push(n.trim());let a=[];for(let t of e){if(/\binset\b/i.test(t))continue;let[e="0px",n="0px",r="0px"]=t.match(/-?\d+(?:\.\d+)?px/gi)||[],o=t.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/ig,"").trim().replace(/\s{2,}/g," "),i=!!o&&","!==o;a.push(`drop-shadow(${e} ${n} ${r}${i?` ${o}`:""})`)}return a.join(" ")}(a);t&&(n=n?`${n} ${t}`:t,r=r?`${r} ${t}`:t)}let i=[...o];return n&&i.push(["filter",n]),r&&i.push(["-webkit-filter",r]),i.map(([t,e])=>`${t}:${e}`).join(";")}async function tv(t,e){let n,r,{width:a,height:o,scale:i=1,dpr:l=1,meta:s={}}=e;t=function(t){var e;if(!$()||!("string"==typeof t&&/^data:image\/svg\+xml/i.test(t)))return t;try{return e=(function(t){let e=t.indexOf(",");return e>=0?decodeURIComponent(t.slice(e+1)):""})(t).replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(t,e)=>t.replace(e,e.replace(/([^{}]+)\{([^}]*)\}/g,(t,e,n)=>`${e}{${tk(n)}}`))).replace(/style=(['"])([\s\S]*?)\1/gi,(t,e,n)=>`style=${e}${tk(n)}${e}`),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}catch{return t}}(t);let c=new Image;c.loading="eager",c.decoding="sync",c.crossOrigin="anonymous",c.src=t,await c.decode();let u=c.naturalWidth,d=c.naturalHeight,f=Number.isFinite(s.w0)?s.w0:u,h=Number.isFinite(s.h0)?s.h0:d,m=Number.isFinite(a),p=Number.isFinite(o);if(m&&p)n=Math.max(1,a),r=Math.max(1,o);else if(m){let t=a/Math.max(1,f);n=a,r=Math.round(h*t)}else if(p){let t=o/Math.max(1,h);r=o,n=Math.round(f*t)}else n=u,r=d;n=Math.round(n*i),r=Math.round(r*i);let g=document.createElement("canvas");g.width=Math.ceil(n*l),g.height=Math.ceil(r*l),g.style.width=`${n}px`,g.style.height=`${r}px`;let y=g.getContext("2d");return 1!==l&&y.scale(l,l),y.drawImage(c,0,0,n,r),g}async function tA(t,e){let n=await tv(t,e),r=e.backgroundColor?d(n,e.backgroundColor):n,a=new Image;return a.src=r.toDataURL(`image/${e.format}`,e.quality),await a.decode(),a.style.width=`${r.width/e.dpr}px`,a.style.height=`${r.height/e.dpr}px`,a}async function tE(t,e){let{scale:n=1,width:r,height:a,meta:o={}}=e,i=Number.isFinite(r),l=Number.isFinite(a),s=Number.isFinite(n)&&1!==n||i||l;if($()&&s)return await tA(t,{...e,format:"png",quality:1,meta:o});let c=new Image;if(c.decoding="sync",c.loading="eager",c.src=t,await c.decode(),i&&l)c.style.width=`${r}px`,c.style.height=`${a}px`;
6else if(i){let t=Number.isFinite(o.w0)?o.w0:c.naturalWidth,e=Number.isFinite(o.h0)?o.h0:c.naturalHeight,n=r/Math.max(1,t);c.style.width=`${r}px`,c.style.height=`${Math.round(e*n)}px`}else if(l){let t=Number.isFinite(o.w0)?o.w0:c.naturalWidth,e=a/Math.max(1,Number.isFinite(o.h0)?o.h0:c.naturalHeight);c.style.height=`${a}px`,c.style.width=`${Math.round(t*e)}px`}else{let e=Math.round(c.naturalWidth*n),r=Math.round(c.naturalHeight*n);if(c.style.width=`${e}px`,c.style.height=`${r}px`,"string"==typeof t&&t.startsWith("data:image/svg+xml"))try{let n=decodeURIComponent(t.split(",")[1]).replace(/width="[^"]*"/,`width="${e}"`).replace(/height="[^"]*"/,`height="${r}"`);c.src=t=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`}catch{}}return c}async function tN(t,e){let n=e.type;if("svg"===n)return new Blob([decodeURIComponent(t.split(",")[1])],{type:"image/svg+xml"});let r=await tv(t,e),a=e.backgroundColor?d(r,e.backgroundColor):r;return new Promise(t=>a.toBlob(e=>t(e),`image/${n}`,e.quality))}async function tL(t,e){if(e.dpr=1,"svg"===e.format){let n=await tN(t,{...e,type:"svg"}),r=URL.createObjectURL(n),a=document.createElement("a");a.href=r,a.download=e.filename,a.click(),URL.revokeObjectURL(r);return}let n=await tv(t,e),r=e.backgroundColor?d(n,e.backgroundColor):n,a=document.createElement("a");a.href=r.toDataURL(`image/${e.format}`,e.quality),a.download=e.filename,a.click()}var tF=Symbol("snapdom.internal"),tR=!1;async function tT(t,e){if(!t)throw Error("Element cannot be null or undefined");let n=function(t={}){let e=t.format??"png",n=function(t){if("string"==typeof t){let e=t.toLowerCase().trim();if("disabled"===e||"full"===e||"auto"===e||"soft"===e)return e}return"soft"}(t.cache);return{debug:t.debug??!1,fast:t.fast??!0,scale:t.scale??1,exclude:t.exclude??[],excludeMode:t.excludeMode??"hide",filter:t.filter??null,filterMode:t.filterMode??"hide",placeholders:!1!==t.placeholders,embedFonts:t.embedFonts??!1,iconFonts:Array.isArray(t.iconFonts)?t.iconFonts:t.iconFonts?[t.iconFonts]:[],localFonts:Array.isArray(t.localFonts)?t.localFonts:[],excludeFonts:t.excludeFonts??void 0,fallbackURL:t.fallbackURL??void 0,cache:n,useProxy:"string"==typeof t.useProxy?t.useProxy:"",width:t.width??null,height:t.height??null,format:e,type:t.type??"svg",quality:t.quality??.92,dpr:t.dpr??(window.devicePixelRatio||1),backgroundColor:t.backgroundColor??(["jpg","jpeg","webp"].includes(e)?"#ffffff":null),filename:t.filename??"snapDOM",straighten:t.straighten??!1,noShadows:t.noShadows??!1}}(e);if($()&&(!0===n.embedFonts||function(t){let e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;e.nextNode();){let t=getComputedStyle(e.currentNode),n=t.backgroundImage&&"none"!==t.backgroundImage,r=t.maskImage&&"none"!==t.maskImage||t.webkitMaskImage&&"none"!==t.webkitMaskImage;if(n||r)return!0}return!1}(t)))for(let n=0;n<3;n++)try{await tP(t,e),console.log("Iteraci\xf3n n\xfamero:",n),tR=!1}catch{}return n.iconFonts&&n.iconFonts.length>0&&function(t){for(let e of Array.isArray(t)?t:[t])e instanceof RegExp?O.push(e):"string"==typeof e?O.push(RegExp(e,"i")):console.warn("[snapdom] Ignored invalid iconFont value:",e)}(n.iconFonts),n.snap||(n.snap={toPng:(t,e)=>tT.toPng(t,e),toSvg:(t,e)=>tT.toSvg(t,e)}),tT.capture(t,n,tF)}async function tP(t,e){let n;if(tR)return;let r={...e,fast:!0,embedFonts:!0,scale:.2};try{n=await tS(t,r)}catch{return}await new Promise(t=>{let e=new Image;e.decoding="sync",e.loading="eager",e.style.position="fixed",e.style.left=0,e.style.top=0,e.style.width="10px",e.style.height="10px",e.style.opacity="0.01",e.style.transform="translateZ(10px)",e.style.willChange="transform,opacity;",e.src=n;let r=async()=>{await new Promise(t=>setTimeout(t,100)),e&&e.parentNode&&e.parentNode.removeChild(e),tR=!0,t()};document.body.appendChild(e),r()})}tT.capture=async(t,e,n)=>{if(n!==tF)throw Error("[snapdom.capture] is internal. Use snapdom(...) instead.");let r=await tS(t,e),a=t=>({...e,...t||{}}),o=t=>e=>{let n=a({...e||{},format:t}),o="jpeg"===t||"jpg"===t,i=null==n.backgroundColor||"transparent"===n.backgroundColor;
6return o&&i&&(n.backgroundColor="#ffffff"),tA(r,n)};return{url:r,toRaw:()=>r,toImg:t=>tE(r,a(t)),toSvg:t=>tE(r,a(t)),toCanvas:t=>tv(r,a(t)),toBlob:t=>tN(r,a(t)),toPng:o("png"),toJpg:o("jpeg"),toWebp:o("webp"),download:t=>tL(r,a(t))}},tT.toRaw=(t,e)=>tT(t,e).then(t=>t.toRaw()),tT.toImg=(t,e)=>tT(t,e).then(t=>t.toImg()),tT.toSvg=(t,e)=>tT(t,e).then(t=>t.toSvg()),tT.toCanvas=(t,e)=>tT(t,e).then(t=>t.toCanvas()),tT.toBlob=(t,e)=>tT(t,e).then(t=>t.toBlob()),tT.toPng=(t,e)=>tT(t,{...e,format:"png"}).then(t=>t.toPng()),tT.toJpg=(t,e)=>tT(t,{...e,format:"jpeg"}).then(t=>t.toJpg()),tT.toWebp=(t,e)=>tT(t,{...e,format:"webp"}).then(t=>t.toWebp()),tT.download=(t,e)=>tT(t,e).then(t=>t.download())}}]);
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.