chatlab-cli 0.31.1 → 0.31.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-command-MOETAGU5.mjs → chat-command-V6NYTTPD.mjs} +8 -8
- package/dist/{chunk-ZVWUR7ET.mjs → chunk-54GVCXHZ.mjs} +2 -2
- package/dist/{chunk-KCPGEILH.mjs → chunk-5G2INROS.mjs} +483 -356
- package/dist/chunk-5G2INROS.mjs.map +1 -0
- package/dist/{chunk-SZEBCNBB.mjs → chunk-67HNEIKY.mjs} +2084 -1924
- package/dist/chunk-67HNEIKY.mjs.map +1 -0
- package/dist/{chunk-VOVLPSG6.mjs → chunk-7TDYBU5L.mjs} +4 -4
- package/dist/{chunk-LJXSUN25.mjs → chunk-HUKZ2PBC.mjs} +2 -2
- package/dist/{chunk-3VMKS7PU.mjs → chunk-LWC7JQ2W.mjs} +2 -2
- package/dist/{chunk-N5AGDT7I.mjs → chunk-OIZ64ET3.mjs} +3 -3
- package/dist/{chunk-E6W2RURS.mjs → chunk-SJQVAKFA.mjs} +5 -4
- package/dist/chunk-SJQVAKFA.mjs.map +1 -0
- package/dist/{chunk-2IXPWPLR.mjs → chunk-WL2ISRYH.mjs} +11 -11
- package/dist/{chunk-DQ45LDKZ.mjs → chunk-XZ5FFDLX.mjs} +125 -136
- package/dist/chunk-XZ5FFDLX.mjs.map +1 -0
- package/dist/{chunk-7HBVGVOB.mjs → chunk-ZF67S6RY.mjs} +2 -2
- package/dist/cli.mjs +8 -8
- package/dist/contacts-worker.mjs +2 -2
- package/dist/global-insight-worker.mjs +1 -1
- package/dist/{http-M6NHWJZD.mjs → http-AMDWRKOH.mjs} +11 -11
- package/dist/{import-SEYHFXS5.mjs → import-WIJHB4LH.mjs} +7 -7
- package/dist/index.mjs +11 -11
- package/dist/{mcp-MIPFYRLV.mjs → mcp-NC5YNTM5.mjs} +8 -8
- package/dist/people-relationships-worker.mjs +2 -2
- package/dist/semantic-index-worker.mjs +1 -1
- package/dist/{src-7OD6RD5V.mjs → src-UY4GCVNF.mjs} +22 -6
- package/dist/{stream-import-AWEHGQJY.mjs → stream-import-JKQYRISL.mjs} +7 -7
- package/dist/{worker-runtime-TGYMASIE.mjs → worker-runtime-KKUOJJTN.mjs} +5 -5
- package/dist-web/assets/{ActionToolsPanel-fAio70bI.css → ActionToolsPanel-BL0GQR6r.css} +1 -1
- package/dist-web/assets/ActionToolsPanel.vue_vue_type_script_setup_true_lang-DVdpZpfD.js +110 -0
- package/dist-web/assets/{BufferResource-CHI62pIA.js → BufferResource-i1amDJTV.js} +1 -1
- package/dist-web/assets/{CanvasRenderer-OZRoiF0j.js → CanvasRenderer-DGa7AjdC.js} +1 -1
- package/dist-web/assets/EChartWordcloud-BXC_4nUP.js +1 -0
- package/dist-web/assets/{Filter-DNb5VErW.js → Filter-BTlq0yU-.js} +1 -1
- package/dist-web/assets/LoadingState.vue_vue_type_script_setup_true_lang-B2KAoiMG.js +1 -0
- package/dist-web/assets/MessageExportModal-D9C5t_zF.js +1 -0
- package/dist-web/assets/PageHeader-BEWr2vsg.js +1 -0
- package/dist-web/assets/{RelationshipGalaxyCanvas-ioRNObb5.js → RelationshipGalaxyCanvas-CSgPNRif.js} +4 -4
- package/dist-web/assets/{RelationshipGalaxyThreeCanvas-L1Y43p1A.js → RelationshipGalaxyThreeCanvas-CBAnU8vN.js} +1 -1
- package/dist-web/assets/{RenderTargetSystem-fJ7D7Chv.js → RenderTargetSystem-Ctlu222X.js} +1 -1
- package/dist-web/assets/ThemeCard.vue_vue_type_script_setup_true_lang-BWJ6kuSC.js +1 -0
- package/dist-web/assets/TimeSelect.vue_vue_type_script_setup_true_lang-D5vov0eO.js +1 -0
- package/dist-web/assets/{WebGLRenderer-BD3ZUtxH.js → WebGLRenderer-D2Zvhmcw.js} +1 -1
- package/dist-web/assets/{WebGPURenderer-DZXYsT6D.js → WebGPURenderer-BOtP6h9o.js} +1 -1
- package/dist-web/assets/annual-summary-time-range-CK0IIPsY.js +1 -0
- package/dist-web/assets/{base-DTElkJcC.js → base-BMjDSaj6.js} +1 -1
- package/dist-web/assets/{browserAll-ChT6N6a9.js → browserAll-BhwLvWQY.js} +1 -1
- package/dist-web/assets/dateFormat-dteP1INW.js +1 -0
- package/dist-web/assets/{electron-CIzyGxH_.js → electron-DCgfulPE.js} +1 -1
- package/dist-web/assets/{fetch-CuiQUcO_.js → fetch-6q7oz7ZO.js} +1 -1
- package/dist-web/assets/{fetch-Avtnh8cJ.js → fetch-B_0HIxs5.js} +1 -1
- package/dist-web/assets/{fetch-DnGx-1_t.js → fetch-BbU4MPPu.js} +1 -1
- package/dist-web/assets/{fetch-Dd6t3p1r.js → fetch-BxHdB6X1.js} +1 -1
- package/dist-web/assets/{fetch-qC7om4QG.js → fetch-CpvfCafG.js} +1 -1
- package/dist-web/assets/{fetch-wSSfDBdV.js → fetch-CubnKpLG.js} +1 -1
- package/dist-web/assets/{fetch-CyKILLnB.js → fetch-D5BrGna5.js} +1 -1
- package/dist-web/assets/{fetch-C9rx2isC.js → fetch-DgXWr9nB.js} +1 -1
- package/dist-web/assets/{fetch-Ccq_0ecb.js → fetch-DvZuLuTE.js} +1 -1
- package/dist-web/assets/{fetch-BFnrBahy.js → fetch-rJA9qLvd.js} +1 -1
- package/dist-web/assets/index-BfGKlkx3.js +2 -0
- package/dist-web/assets/index-BoalB6nB.js +1 -0
- package/dist-web/assets/index-Bp5VKUF9.js +1 -0
- package/dist-web/assets/index-Bs15Yc7I.js +1 -0
- package/dist-web/assets/index-CAjUCtGD.css +1 -0
- package/dist-web/assets/index-CLijvqy3.js +173 -0
- package/dist-web/assets/{index-DXHYzIIj.js → index-CUzFFw5b.js} +1 -1
- package/dist-web/assets/index-Cj2GU1SR.js +1 -0
- package/dist-web/assets/{index-y7cxH1Et.css → index-CsqMIyA9.css} +1 -1
- package/dist-web/assets/index-CtmXho1w.css +1 -0
- package/dist-web/assets/index-D7aKwT6w.js +64 -0
- package/dist-web/assets/index-DXcFBsM1.js +24 -0
- package/dist-web/assets/index-DaZnh1zP.js +2 -0
- package/dist-web/assets/index-DeV8SAiM.js +25 -0
- package/dist-web/assets/index-WJCmqKnh.js +1 -0
- package/dist-web/assets/index-t6s0nOlb.js +1 -0
- package/dist-web/assets/people-page-header-D93GTPBO.js +1 -0
- package/dist-web/assets/vendor-nuxt-ui-DUpPmItD.js +15 -0
- package/dist-web/assets/vendor-reka-ui-BLnO2MqY.js +15 -0
- package/dist-web/assets/vendor-snapdom--nZvo8Sg.js +8 -0
- package/dist-web/assets/web-BoTDL3HM.js +1 -0
- package/dist-web/assets/{webworkerAll-C3dAOQj4.js → webworkerAll-c0ZvpENM.js} +1 -1
- package/dist-web/index.html +5 -5
- package/package.json +1 -1
- package/dist/chunk-DQ45LDKZ.mjs.map +0 -1
- package/dist/chunk-E6W2RURS.mjs.map +0 -1
- package/dist/chunk-KCPGEILH.mjs.map +0 -1
- package/dist/chunk-SZEBCNBB.mjs.map +0 -1
- package/dist-web/assets/ActionToolsPanel.vue_vue_type_script_setup_true_lang-CkDGVRXe.js +0 -110
- package/dist-web/assets/EChartWordcloud-DU3ZYdgz.js +0 -1
- package/dist-web/assets/LoadingState.vue_vue_type_script_setup_true_lang-DACMroOe.js +0 -1
- package/dist-web/assets/MessageExportModal-CqP-w7HP.js +0 -1
- package/dist-web/assets/PageHeader-Ck8ULyZH.js +0 -1
- package/dist-web/assets/ThemeCard.vue_vue_type_script_setup_true_lang-BoZyssJF.js +0 -1
- package/dist-web/assets/TimeSelect.vue_vue_type_script_setup_true_lang-7SEaCxDL.js +0 -1
- package/dist-web/assets/annual-summary-time-range-DVLXK1r4.js +0 -1
- package/dist-web/assets/dateFormat-D9WibwOu.js +0 -1
- package/dist-web/assets/index-BH9jI5kV.js +0 -173
- package/dist-web/assets/index-BWtNqcYK.js +0 -22
- package/dist-web/assets/index-Bkq7-GBp.js +0 -1
- package/dist-web/assets/index-Bqr-LkS1.css +0 -1
- package/dist-web/assets/index-C6qtsaP7.js +0 -1
- package/dist-web/assets/index-C_0GHEcb.css +0 -1
- package/dist-web/assets/index-ChFGuu70.js +0 -1
- package/dist-web/assets/index-CiS20iAR.js +0 -24
- package/dist-web/assets/index-CqD6u57u.js +0 -1
- package/dist-web/assets/index-CzDG8LVr.js +0 -2
- package/dist-web/assets/index-D0Euk-vQ.js +0 -1
- package/dist-web/assets/index-D26BWhHz.js +0 -1
- package/dist-web/assets/index-Dq8u7gMb.js +0 -2
- package/dist-web/assets/index-u_UH6rDY.js +0 -64
- package/dist-web/assets/people-page-header-BdKM1qhX.js +0 -1
- package/dist-web/assets/vendor-nuxt-ui-CS1uxE9C.js +0 -15
- package/dist-web/assets/vendor-reka-ui-Cta6JPvN.js +0 -11
- package/dist-web/assets/vendor-snapdom-XnBoh1gd.js +0 -8
- package/dist-web/assets/web-BDBdpdK7.js +0 -1
- /package/dist/{chat-command-MOETAGU5.mjs.map → chat-command-V6NYTTPD.mjs.map} +0 -0
- /package/dist/{chunk-ZVWUR7ET.mjs.map → chunk-54GVCXHZ.mjs.map} +0 -0
- /package/dist/{chunk-VOVLPSG6.mjs.map → chunk-7TDYBU5L.mjs.map} +0 -0
- /package/dist/{chunk-LJXSUN25.mjs.map → chunk-HUKZ2PBC.mjs.map} +0 -0
- /package/dist/{chunk-3VMKS7PU.mjs.map → chunk-LWC7JQ2W.mjs.map} +0 -0
- /package/dist/{chunk-N5AGDT7I.mjs.map → chunk-OIZ64ET3.mjs.map} +0 -0
- /package/dist/{chunk-2IXPWPLR.mjs.map → chunk-WL2ISRYH.mjs.map} +0 -0
- /package/dist/{chunk-7HBVGVOB.mjs.map → chunk-ZF67S6RY.mjs.map} +0 -0
- /package/dist/{http-M6NHWJZD.mjs.map → http-AMDWRKOH.mjs.map} +0 -0
- /package/dist/{import-SEYHFXS5.mjs.map → import-WIJHB4LH.mjs.map} +0 -0
- /package/dist/{mcp-MIPFYRLV.mjs.map → mcp-NC5YNTM5.mjs.map} +0 -0
- /package/dist/{src-7OD6RD5V.mjs.map → src-UY4GCVNF.mjs.map} +0 -0
- /package/dist/{stream-import-AWEHGQJY.mjs.map → stream-import-JKQYRISL.mjs.map} +0 -0
- /package/dist/{worker-runtime-TGYMASIE.mjs.map → worker-runtime-KKUOJJTN.mjs.map} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var Br=Object.defineProperty,z=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(n){throw r=[n],n}},Me=(e,t)=>{for(var r in t)Br(e,r,{get:t[r],enumerable:!0})};function Xr(e){if(e===!0)return"soft";if(e===!1)return"disabled";if(typeof e=="string"){let t=e.toLowerCase().trim();if(t==="auto")return"auto";if(t==="full")return"full";if(t==="soft"||t==="disabled")return t}return"soft"}function Yr(e="soft"){switch($.session.__counterEpoch=($.session.__counterEpoch||0)+1,e){case"auto":{$.session.styleMap=new Map,$.session.nodeMap=new Map;return}case"soft":{$.session.styleMap=new Map,$.session.nodeMap=new Map,$.session.styleCache=new WeakMap;return}case"full":return;case"disabled":{$.session.styleMap=new Map,$.session.nodeMap=new Map,$.session.styleCache=new WeakMap,$.computedStyle=new WeakMap,$.measureHints=new WeakMap,$.baseStyle=new B(50),$.defaultStyle=new B(30),$.image=new B(100),$.background=new B(100),$.resource=new B(150),$.font=new Set;return}default:{$.session.styleMap=new Map,$.session.nodeMap=new Map,$.session.styleCache=new WeakMap;return}}}var B,$,U=z(()=>{B=class extends Map{constructor(e=100,...t){super(...t),this._maxSize=e}set(e,t){if(this.size>=this._maxSize&&!this.has(e)){let r=this.keys().next().value;r!==void 0&&this.delete(r)}return super.set(e,t)}},$={image:new B(100),background:new B(100),resource:new B(150),defaultStyle:new B(30),baseStyle:new B(50),computedStyle:new WeakMap,measureHints:new WeakMap,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}}});function st(e){let t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;let r=t[2].trim();return r.startsWith("#")?null:r}function Gr(e){if(!e||e==="none")return"";let t=e.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(r,n)=>{let o=n.split(",").map(i=>i.trim());return o.length!==6?`matrix(${n})`:(o[4]="0",o[5]="0",`matrix(${o.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(r,n)=>{let o=n.split(",").map(i=>i.trim());return o.length!==16?`matrix3d(${n})`:(o[12]="0",o[13]="0",`matrix3d(${o.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}function _e(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch{return e}}function Kr(e,t){if(!e||/^(data|blob|about|#)/i.test(e.trim()))return e;try{let r=t||typeof document<"u"&&(document.baseURI||document.location?.href)||"http://localhost/";return new URL(e,r).href}catch{return e}}var De=z(()=>{});function Qr(e="[snapDOM]",{ttlMs:t=5*6e4,maxEntries:r=12}={}){let n=new Map,o=0;function i(a,l,u){if(o>=r)return;let s=Date.now();(n.get(l)||0)>s||(n.set(l,s+t),o++,a==="warn"&&console&&console.warn?console.warn(`${e} ${u}`):console&&console.error&&console.error(`${e} ${u}`))}return{warnOnce(a,l){i("warn",a,l)},errorOnce(a,l){i("error",a,l)},reset(){n.clear(),o=0}}}function Jr(e){return/^data:|^blob:|^about:blank$/i.test(e)}function Zr(e,t){try{let r=typeof location<"u"&&location.href?location.href:"http://localhost/",n=t.includes("{url}")?t.split("{url}")[0]:t,o=new URL(n||".",r),i=new URL(e,r);if(i.origin===o.origin)return!0;let a=i.searchParams;if(a&&(a.has("url")||a.has("target")))return!0}catch{}return!1}function en(e,t){if(!t||Jr(e)||Zr(e,t))return!1;try{let r=typeof location<"u"&&location.href?location.href:"http://localhost/",n=new URL(e,r);return typeof location<"u"?n.origin!==location.origin:!0}catch{return!!t}}function tn(e,t){if(!t)return e;if(t.includes("{url}"))return t.replace("{urlRaw}",_e(e)).replace("{url}",encodeURIComponent(e));if(/[?&]url=?$/.test(t))return`${t}${encodeURIComponent(e)}`;if(t.endsWith("?"))return`${t}url=${encodeURIComponent(e)}`;if(t.endsWith("/"))return`${t}${_e(e)}`;let r=t.includes("?")?"&":"?";return`${t}${r}url=${encodeURIComponent(e)}`}function St(e){return new Promise((t,r)=>{let n=new FileReader;n.onload=()=>t(String(n.result||"")),n.onerror=()=>r(new Error("read_failed")),n.readAsDataURL(e)})}function rn(e,t){return[t.as||"blob",t.timeout??3e3,t.useProxy||"",t.errorTTL??8e3,e].join("|")}async function Y(e,t={}){let r=t.as??"blob",n=t.timeout??3e3,o=t.useProxy||"",i=t.errorTTL??8e3,a=t.headers||{},l=!!t.silent;if(/^data:/i.test(e))try{if(r==="text")return{ok:!0,data:String(e),status:200,url:e,fromCache:!1};if(r==="dataURL")return{ok:!0,data:String(e),status:200,url:e,fromCache:!1,mime:String(e).slice(5).split(";")[0]||""};let[,g="",b=""]=String(e).match(/^data:([^,]*),(.*)$/)||[],w=/;base64/i.test(g)?atob(b):decodeURIComponent(b),x=new Uint8Array([...w].map(S=>S.charCodeAt(0))),y=new Blob([x],{type:(g||"").split(";")[0]||""});return{ok:!0,data:y,status:200,url:e,fromCache:!1,mime:y.type||""}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(e))try{let g=await fetch(e);if(!g.ok)return{ok:!1,data:null,status:g.status,url:e,fromCache:!1,reason:"http_error"};let b=await g.blob(),w=b.type||g.headers.get("content-type")||"";return r==="dataURL"?{ok:!0,data:await St(b),status:g.status,url:e,fromCache:!1,mime:w}:r==="text"?{ok:!0,data:await b.text(),status:g.status,url:e,fromCache:!1,mime:w}:{ok:!0,data:b,status:g.status,url:e,fromCache:!1,mime:w}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(e))return r==="dataURL"?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:e,fromCache:!1,mime:"image/png"}:{ok:!0,data:r==="text"?"":new Blob([]),status:200,url:e,fromCache:!1};let u=rn(e,{as:r,timeout:n,useProxy:o,errorTTL:i}),s=Se.get(u);if(s&&s.until>Date.now())return{...s.result,fromCache:!0};s&&Se.delete(u);let c=Le.get(u);if(c)return c;let f=en(e,o)?tn(e,o):e,m=t.credentials;if(!m)try{let g=typeof location<"u"&&location.href?location.href:"http://localhost/",b=new URL(e,g);m=typeof location<"u"&&b.origin===location.origin?"include":"omit"}catch{m="omit"}let d=new AbortController,h=setTimeout(()=>d.abort("timeout"),n),p=(async()=>{try{let g=await fetch(f,{signal:d.signal,credentials:m,headers:a});if(!g.ok){let x={ok:!1,data:null,status:g.status,url:f,fromCache:!1,reason:"http_error"};if(i>0&&Se.set(u,{until:Date.now()+i,result:x}),!l){let y=`${g.status} ${g.statusText||""}`.trim();Ye.warnOnce(`http:${g.status}:${r}:${new URL(e,location?.href??"http://localhost/").origin}`,`HTTP error ${y} while fetching ${r} ${e}`)}return t.onError&&t.onError(x),x}if(r==="text")return{ok:!0,data:await g.text(),status:g.status,url:f,fromCache:!1};let b=await g.blob(),w=b.type||g.headers.get("content-type")||"";return r==="dataURL"?{ok:!0,data:await St(b),status:g.status,url:f,fromCache:!1,mime:w}:{ok:!0,data:b,status:g.status,url:f,fromCache:!1,mime:w}}catch(g){let b=g&&typeof g=="object"&&"name"in g&&g.name==="AbortError"?String(g.message||"").includes("timeout")?"timeout":"abort":"network",w={ok:!1,data:null,status:0,url:f,fromCache:!1,reason:b};if(!/^blob:/i.test(e)&&i>0&&Se.set(u,{until:Date.now()+i,result:w}),!l){let x=`${b}:${r}:${new URL(e,location?.href??"http://localhost/").origin}`,y=b==="timeout"?`Timeout after ${n}ms. Consider increasing timeout or using a proxy for ${e}`:b==="abort"?`Request aborted while fetching ${r} ${e}`:`Network/CORS issue while fetching ${r} ${e}. A proxy may be required`;Ye.errorOnce(x,y)}return t.onError&&t.onError(w),w}finally{clearTimeout(h),Le.delete(u)}})();return Le.set(u,p),p}var Ye,Le,Se,be=z(()=>{De(),Ye=Qr("[snapDOM]",{ttlMs:3*6e4,maxEntries:10}),Le=new Map,Se=new Map});async function Yt(e,t={}){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(e)||e.trim()==="none")return e;let r=st(e);if(!r)return e;let n=Kr(r),o=_e(n),i=(t.useProxy||"")+"|"+o;if($.background.has(i)){let a=$.background.get(i);return a?`url("${a}")`:"none"}try{let a=await Y(o,{as:"dataURL",useProxy:t.useProxy});return a.ok?($.background.set(i,a.data),`url("${a.data}")`):($.background.set(i,null),"none")}catch{return $.background.set(i,null),"none"}}var nn=z(()=>{U(),De(),be()});function on(e){if(e=String(e).toLowerCase(),ut.has(e)){let i={};return $.defaultStyle.set(e,i),i}if($.defaultStyle.has(e))return $.defaultStyle.get(e);let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.setAttribute("data-snapdom-sandbox","true"),t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0px",t.style.height="0px",t.style.overflow="hidden",document.body.appendChild(t));let r=document.createElement(e);r.style.all="initial",t.appendChild(r);let n=getComputedStyle(r),o={};for(let i of n){if(ct(i))continue;let a=n.getPropertyValue(i);o[i]=a}return t.removeChild(r),$.defaultStyle.set(e,o),o}function ct(e){let t=Qe.get(e);if(t===void 0){let r=String(e).toLowerCase();t=Zt.has(r)||Jt.test(r)||Qt.test(r),Qe.set(e,t)}return t}function Gt(e,t){return!rr.has(e)&&(t==="inline"||er.has(e)||tr.has(e))}function Ge(e,t,r=!0,n=!1){if(t=String(t||"").toLowerCase(),ut.has(t))return"";let o=[],i=on(t),a=(e.display||"").toLowerCase(),l=a==="inline",u=Gt(t,a)&&r,s=!1;for(let c in e){if(ct(c))continue;let f=e[c];if(u){if(nr.has(c))continue;if(ir.has(c)){f&&f!==i[c]&&(o.push(`${c}:${f}`),f!=="auto"&&(s=!0));continue}}f&&f!==i[c]&&o.push(`${c}:${f}`)}if(u&&!l&&!n&&!s){let c=e.width;c&&c!=="auto"&&c!==i.width&&o.push(`min-width:${c}`)}return o.sort(),o.join(";")}function an(e){let t=new Set;return e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(e.tagName&&t.add(e.tagName.toLowerCase()),typeof e.querySelectorAll=="function"&&e.querySelectorAll("*").forEach(r=>t.add(r.tagName.toLowerCase())),Array.from(t))}function ln(e){let t=new Map;for(let n of e){let o=$.defaultStyle.get(n);if(!o)continue;let i=Object.entries(o).map(([a,l])=>`${a}:${l};`).sort().join("");i&&(t.has(i)||t.set(i,[]),t.get(i).push(n))}let r="";for(let[n,o]of t.entries())r+=`${o.join(",")} { ${n} }
|
|
2
|
+
`;return r}function sn(e){let t=Array.from(new Set(e.values())).filter(Boolean).sort(),r=new Map,n=1;for(let o of t)r.set(o,`c${n++}`);return r}function cn(e){try{let t=e?.ownerDocument;if(!t)return typeof window<"u"?window:null;let r=t.defaultView;if(r&&typeof r.getComputedStyle=="function")return r;if(typeof window<"u"&&window.frames)for(let n=0;n<window.frames.length;n++)try{if(window.frames[n]?.document===t)return window.frames[n]}catch{}}catch{}return typeof window<"u"?window:null}function X(e,t=null){let r=()=>{let i={length:0,getPropertyValue:()=>"",item:()=>""};return i[Symbol.iterator]=function*(){},i};if(!(e instanceof Element)){let i=typeof window<"u"?window:null;if(i&&typeof i.getComputedStyle=="function")try{return i.getComputedStyle(e,t)||r()}catch{return r()}return r()}let n=$.computedStyle.get(e);n||(n=new Map,$.computedStyle.set(e,n));let o=n.get(t);if(!o){let i=cn(e),a=null;try{a=i&&typeof i.getComputedStyle=="function"?i.getComputedStyle(e,t):null}catch{}if(!a&&typeof window<"u"&&typeof window.getComputedStyle=="function")try{e.ownerDocument===document&&(a=window.getComputedStyle(e,t))}catch{}o=a||r(),n.set(t,o)}return o}function vt(e){let t={};for(let r of e)t[r]=e.getPropertyValue(r);for(let r of or){let n=t[`border-${r}-style`],o=t[`border-${r}-width`];(n==="none"||n==="hidden"||o==="0px")&&(delete t[`border-${r}-style`],delete t[`border-${r}-width`],delete t[`border-${r}-color`])}return t}function Ke(e){let t=[],r=0,n=0;for(let o=0;o<e.length;o++){let i=e[o];i==="("&&r++,i===")"&&r--,i===","&&r===0&&(t.push(e.slice(n,o).trim()),n=o+1)}return t.push(e.slice(n).trim()),t}var Kt,ut,un,Qt,Jt,Zt,Qe,er,tr,rr,nr,ir,or,ft=z(()=>{U(),Kt=new Set(["meta","script","noscript","title","link","template"]),ut=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"]),un=["div","span","p","a","img","ul","li","button","input","select","textarea","label","section","article","header","footer","nav","main","aside","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","td","th"],Qt=/(?:^|-)(animation|transition)(?:-|$)/i,Jt=/^(--.+|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,Zt=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","zoom"]),Qe=new Map,er=new Set(["span","small","em","strong","b","i","u","s","code","cite","mark","sub","sup"]),tr=new Set(["table","thead","tbody","tfoot","tr","td","th"]),rr=new Set(["img","video","canvas","svg","iframe","embed","object","input","textarea","select"]),nr=new Set(["width","max-width","inline-size","max-inline-size"]),ir=new Set(["min-width","min-inline-size"]),or=["top","right","bottom","left"]});function ce(e,{fast:t=!1}={}){if(t)return e();"requestIdleCallback"in window?requestIdleCallback(e,{timeout:50}):setTimeout(e,1)}function fn(){if(typeof navigator>"u")return!1;if(navigator.userAgentData)return navigator.userAgentData.platform==="iOS";let e=navigator.userAgent||"",t=/iPhone|iPad|iPod/.test(e),r=navigator.maxTouchPoints>2&&/Macintosh/.test(e);return t||r}function le(){if(typeof navigator>"u")return!1;let e=navigator.userAgent||"",t=e.toLowerCase(),r=t.includes("safari")&&!t.includes("chrome")&&!t.includes("crios")&&!t.includes("fxios")&&!t.includes("android"),n=/applewebkit/i.test(e),o=/mobile/i.test(e),i=!/safari/i.test(e),a=n&&o&&i,l=/(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(e),u=/(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(t),s=/ipad|iphone|ipod/.test(t)&&n;return r||a||l||u||s}function dn(){if(typeof navigator>"u")return!1;let e=(navigator.userAgent||"").toLowerCase();return e.includes("firefox")||e.includes("fxios")}var ke=z(()=>{});function P(e,t,r){let n=e&&typeof e=="object"&&(e.options||e);n&&n.debug&&(r!==void 0?console.warn("[snapdom]",t,r):console.warn("[snapdom]",t))}var ar=z(()=>{}),G=z(()=>{nn(),ft(),ke(),De(),ar()}),lr={};Me(lr,{toCanvas:()=>Ue});function mn(e){if(!sr(e))return e;try{let t=cr(e),r=t.match(/<svg\b[^>]*>/i);if(!r)return e;let n=r[0],o=parseFloat((n.match(/\bwidth="([\d.]+)/i)||[])[1]),i=parseFloat((n.match(/\bheight="([\d.]+)/i)||[])[1]);if(!Number.isFinite(o)||!Number.isFinite(i)||o<=0||i<=0)return e;let a=Math.min(1,ue/o,ue/i,Math.sqrt(dt/(o*i)));if(a>=1)return e;let l=Math.max(1,Math.floor(o*a)),u=Math.max(1,Math.floor(i*a));console.warn(`[snapDOM] Capture ${Math.round(o)}×${Math.round(i)}px exceeds the browser image-decode limit (${ue}px/side); downscaling to ${l}×${u}px. Lower \`scale\` or set \`width\`/\`height\` to control output size.`);let s=t.replace(n,n.replace(/(\bwidth=")[\d.]+/i,`$1${l}`).replace(/(\bheight=")[\d.]+/i,`$1${u}`));return ur(s)}catch{return e}}function sr(e){return typeof e=="string"&&/^data:image\/svg\+xml/i.test(e)}function cr(e){let t=e.indexOf(",");return t>=0?decodeURIComponent(e.slice(t+1)):""}function ur(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}function hn(e){let t=[],r="",n=0;for(let o=0;o<e.length;o++){let i=e[o];i==="("&&n++,i===")"&&(n=Math.max(0,n-1)),i===";"&&n===0?(t.push(r),r=""):r+=i}return r.trim()&&t.push(r),t.map(o=>o.trim()).filter(Boolean)}function pn(e){let t=[],r="",n=0;for(let i=0;i<e.length;i++){let a=e[i];a==="("&&n++,a===")"&&(n=Math.max(0,n-1)),a===","&&n===0?(t.push(r.trim()),r=""):r+=a}r.trim()&&t.push(r.trim());let o=[];for(let i of t){if(/\binset\b/i.test(i))continue;let a=i.match(/-?\d+(?:\.\d+)?px/gi)||[],[l="0px",u="0px",s="0px"]=a,c=i.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/ig,"").trim().replace(/\s{2,}/g," "),f=!!c&&c!==",";o.push(`drop-shadow(${l} ${u} ${s}${f?` ${c}`:""})`)}return o.join(" ")}function fr(e){let t=hn(e),r=null,n=null,o=null,i=[];for(let l of t){let u=l.indexOf(":");if(u<0)continue;let s=l.slice(0,u).trim().toLowerCase(),c=l.slice(u+1).trim();s==="box-shadow"?o=c:s==="filter"?r=c:s==="-webkit-filter"?n=c:i.push([s,c])}if(o){let l=pn(o);l&&(r=r?`${r} ${l}`:l,n=n?`${n} ${l}`:l)}let a=[...i];return r&&a.push(["filter",r]),n&&a.push(["-webkit-filter",n]),a.map(([l,u])=>`${l}:${u}`).join(";")}function gn(e){return e.replace(/([^{}]+)\{([^}]*)\}/g,(t,r,n)=>`${r}{${fr(n)}}`)}function yn(e){return e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(t,r)=>t.replace(r,gn(r))),e=e.replace(/style=(['"])([\s\S]*?)\1/gi,(t,r,n)=>`style=${r}${fr(n)}${r}`),e}function bn(e){if(!le()||!sr(e))return e;try{let t=cr(e),r=yn(t);return ur(r)}catch{return e}}async function Ue(e,t){let{width:r,height:n,scale:o=1,dpr:i=1,meta:a={},backgroundColor:l}=t;e=bn(e),e=mn(e);let u=new Image;if(u.loading="eager",u.decoding="sync",u.crossOrigin="anonymous",u.src=e,await u.decode(),le()){u.style.cssText="position:fixed;left:-99999px;top:-99999px;pointer-events:none",document.body.appendChild(u);try{await new Promise(A=>requestAnimationFrame(()=>requestAnimationFrame(A)))}finally{try{u.remove()}catch{}}}let s=u.naturalWidth,c=u.naturalHeight,f=Number.isFinite(a.w0)?a.w0:s,m=Number.isFinite(a.h0)?a.h0:c,d,h,p=Number.isFinite(r),g=Number.isFinite(n);if(p&&g)d=Math.max(1,r),h=Math.max(1,n);else if(p){let A=r/Math.max(1,f);d=r,h=m*A}else if(g){let A=n/Math.max(1,m);h=n,d=f*A}else d=s,h=c;d=d*o,h=h*o;let b=d*i,w=h*i,x=Math.max(b/ue,w/ue,Math.sqrt(b*w/dt));x>1&&(console.warn(`[snapDOM] Output ${Math.round(b)}×${Math.round(w)}px exceeds the browser canvas limit (${ue}px/side); downscaling. Lower \`scale\`/\`dpr\` or set \`width\`/\`height\`.`),d/=x,h/=x);let y=document.createElement("canvas");y.width=d*i,y.height=h*i,y.style.width=`${d}px`,y.style.height=`${h}px`;let S=y.getContext("2d");return i!==1&&S.scale(i,i),l&&(S.save(),S.fillStyle=l,S.fillRect(0,0,d,h),S.restore()),S.drawImage(u,0,0,d,h),y}var ue,dt,He=z(()=>{ke(),ue=16384,dt=16384*16384}),Pe={};Me(Pe,{rasterize:()=>dr});async function dr(e,t){let r=await Ue(e,t),n=new Image;return n.src=r.toDataURL(`image/${t.format}`,t.quality),await n.decode(),n.style.width=`${r.width/t.dpr}px`,n.style.height=`${r.height/t.dpr}px`,n}var Re=z(()=>{He()}),Je={};Me(Je,{toImg:()=>Ct,toSvg:()=>Ct});async function Ct(e,t){let{scale:r=1,width:n,height:o,meta:i={}}=t,a=Number.isFinite(n),l=Number.isFinite(o),u=Number.isFinite(r)&&r!==1||a||l;if(le()&&u)return await dr(e,{...t,format:"png",quality:1,meta:i});let s=new Image;if(s.decoding="sync",s.loading="eager",s.src=e,await s.decode(),a&&l)s.style.width=`${n}px`,s.style.height=`${o}px`;else if(a){let c=Number.isFinite(i.w0)?i.w0:s.naturalWidth,f=Number.isFinite(i.h0)?i.h0:s.naturalHeight,m=n/Math.max(1,c);s.style.width=`${n}px`,s.style.height=`${Math.round(f*m)}px`}else if(l){let c=Number.isFinite(i.w0)?i.w0:s.naturalWidth,f=Number.isFinite(i.h0)?i.h0:s.naturalHeight,m=o/Math.max(1,f);s.style.height=`${o}px`,s.style.width=`${Math.round(c*m)}px`}else{let c=Math.round(s.naturalWidth*r),f=Math.round(s.naturalHeight*r);if(s.style.width=`${c}px`,s.style.height=`${f}px`,typeof e=="string"&&e.startsWith("data:image/svg+xml"))try{let m=decodeURIComponent(e.split(",")[1]).replace(/width="[^"]*"/,`width="${c}"`).replace(/height="[^"]*"/,`height="${f}"`);e=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(m)}`,s.src=e}catch(m){P(t,"SVG width/height patch in toImg failed",m)}}return s}var At=z(()=>{G(),Re()}),mr={};Me(mr,{toBlob:()=>hr});async function hr(e,t){let r=t.type;if(r==="svg"){let o=decodeURIComponent(e.split(",")[1]);return new Blob([o],{type:"image/svg+xml"})}let n=await Ue(e,t);return new Promise(o=>n.toBlob(i=>o(i),`image/${r}`,t.quality))}var pr=z(()=>{He()}),gr={};Me(gr,{download:()=>wn});async function $t(e,t){let r=new File([e],t,{type:e.type});if(!navigator.canShare?.({files:[r]}))return!1;try{await navigator.share({files:[r],title:t})}catch(n){if(n.name!=="AbortError")return!1}return!0}async function wn(e,t){let r=new Set(["png","jpeg","jpg","webp","svg"]),n=(t?.type||"").toLowerCase(),o=r.has(n)?n:"",i=(t?.format||o||"").toLowerCase(),a=i==="jpg"?"jpeg":i||"png",l=t?.filename||`snapdom.${a}`,u={...t||{},format:a,type:a};u.dpr=1;let s=fn();if(a==="svg"){let m=await hr(e,{...u,type:"svg"});if(s&&await $t(m,l))return;let d=URL.createObjectURL(m),h=document.createElement("a");h.href=d,h.download=l,document.body.appendChild(h),h.click(),URL.revokeObjectURL(d),h.remove();return}let c=await Ue(e,u);if(s){let m=`image/${a}`,d=await new Promise(h=>c.toBlob(h,m,t?.quality));if(d&&await $t(d,l))return}let f=document.createElement("a");f.href=c.toDataURL(`image/${a}`,t?.quality),f.download=l,document.body.appendChild(f),f.click(),f.remove()}var xn=z(()=>{pr(),He(),ke()});G();G();U();var Mt=new WeakMap,Ae=new Map,Sn=2e3,Ze=0;function ve(){Ze++,Ae.size>Sn&&Ae.clear()}var kt=!1;function vn(e=document.documentElement){if(!kt){kt=!0;try{new MutationObserver(()=>ve()).observe(e,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(()=>ve()).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{let t=document.fonts;t&&(t.addEventListener?.("loadingdone",ve),t.ready?.then(()=>ve()).catch(()=>{}))}catch{}}}function Cn(e,t={}){let r={},n=e.getPropertyValue("visibility"),o=t.excludeStyleProps;for(let f=0;f<e.length;f++){let m=e[f];if(ct(m)||o&&(o instanceof RegExp&&o.test(m)||typeof o=="function"&&o(m)))continue;let d=e.getPropertyValue(m);(m==="background-image"||m==="content")&&d.includes("url(")&&!d.includes("data:")&&(d="none"),r[m]=d}let i=["text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","text-decoration-skip-ink"];for(let f of i)if(!r[f])try{let m=e.getPropertyValue(f);m&&(r[f]=m)}catch{}let a=["-webkit-text-stroke","-webkit-text-stroke-width","-webkit-text-stroke-color","paint-order"];for(let f of a)if(!r[f])try{let m=e.getPropertyValue(f);m&&(r[f]=m)}catch{}if(t.embedFonts){let f=["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"];for(let m of f)if(!r[m])try{let d=e.getPropertyValue(m);d&&(r[m]=d)}catch{}}n==="hidden"&&(r.opacity="0");try{(r["content-visibility"]||e.getPropertyValue("content-visibility"))==="hidden"&&(r.visibility="hidden")}catch{}let l=parseFloat(e.getPropertyValue("border-top-width")||0)||0,u=parseFloat(e.getPropertyValue("border-right-width")||0)||0,s=parseFloat(e.getPropertyValue("border-bottom-width")||0)||0,c=parseFloat(e.getPropertyValue("border-left-width")||0)||0;if(l===0&&u===0&&s===0&&c===0){let f=(e.getPropertyValue("border-image-source")||"").trim(),m=f&&f!=="none",d=["border","border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-top-width","border-top-style","border-top-color","border-right-width","border-right-style","border-right-color","border-bottom-width","border-bottom-style","border-bottom-color","border-left-width","border-left-style","border-left-color","border-block","border-block-width","border-block-style","border-block-color","border-inline","border-inline-width","border-inline-style","border-inline-color"];for(let h of d)delete r[h];m||(r.border="none")}return r}function An(e){if(e.firstElementChild)return!0;for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===3&&/\S/.test(t.nodeValue||""))return!0;return!1}var Et=new WeakMap;function $n(e){let t=Et.get(e);return t||(t=Object.entries(e).sort((r,n)=>r[0]<n[0]?-1:r[0]>n[0]?1:0).map(([r,n])=>`${r}:${n}`).join(";"),Et.set(e,t),t)}function Mn(e,t=null,r={}){let n=Mt.get(e),o=!!(r&&r.embedFonts),i=r&&r.excludeStyleProps||null;if(n&&n.epoch===Ze&&n.embedFonts===o&&n.excludeStyleProps===i)return n.snapshot;let a=t||getComputedStyle(e),l=Cn(a,r);return Pn(e,a,l),Mt.set(e,{epoch:Ze,snapshot:l,embedFonts:o,excludeStyleProps:i}),l}function kn(e,t){return e&&e.session&&e.persist?e:e&&(e.styleMap||e.styleCache||e.nodeMap)?{session:e,persist:{snapshotKeyCache:Ae,defaultStyle:$.defaultStyle,baseStyle:$.baseStyle,image:$.image,resource:$.resource,background:$.background,font:$.font},options:t||{}}:{session:$.session,persist:{snapshotKeyCache:Ae,defaultStyle:$.defaultStyle,baseStyle:$.baseStyle,image:$.image,resource:$.resource,background:$.background,font:$.font},options:e||t||{}}}function En(e,t,r){if(!(!e.style||e.style.length===0))for(let n=0;n<e.style.length;n++){let o=e.style[n],i=r.getPropertyValue(o);i&&t.style.setProperty(o,i)}}async function oe(e,t,r,n){if(e.tagName==="STYLE")return;let o=kn(r,n),i=o.options&&o.options.cache||"auto";i!=="disabled"&&vn(document.documentElement),i==="disabled"&&!o.session.__bumpedForDisabled&&(ve(),Ae.clear(),o.session.__bumpedForDisabled=!0);let{session:a,persist:l}=o;if(!a.styleCache.has(e)){let p=null;try{p=getComputedStyle(e)}catch{}a.styleCache.set(e,p||getComputedStyle(document.documentElement))}let u=a.styleCache.get(e);e.getAttribute?.("style")&&En(e,t,u);let s=Mn(e,u,o.options),c=yr(e);if(c){let p=u.getPropertyValue("min-width");(!p||p==="auto"||p==="0px")&&(s["min-width"]="0px")}let f=e.tagName?.toLowerCase()||"div",m=$n(s),d=!0;Gt(f,(s.display||"").toLowerCase())&&(d=An(e),m=`${m}|${f}${d?"|c":""}${c?"|f":""}`);let h=l.snapshotKeyCache.get(m);h===void 0&&(h=Ge(s,f,d,c),l.snapshotKeyCache.set(m,h)),a.styleMap.set(t,h)}function Fn(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}function Nn(e){return e.backgroundImage&&e.backgroundImage!=="none"||e.backgroundColor&&e.backgroundColor!=="rgba(0, 0, 0, 0)"&&e.backgroundColor!=="transparent"||(parseFloat(e.borderTopWidth)||0)>0||(parseFloat(e.borderBottomWidth)||0)>0||(parseFloat(e.paddingTop)||0)>0||(parseFloat(e.paddingBottom)||0)>0?!0:(e.overflowBlock||e.overflowY||"visible")!=="visible"}function yr(e){let t=e.parentElement;if(!t)return!1;let r=X(t).display||"";return r.includes("flex")||r.includes("grid")}function Ln(e,t){if(e.textContent&&/\S/.test(e.textContent))return!0;let r=e.firstElementChild,n=e.lastElementChild;if(r&&r.tagName==="BR"||n&&n.tagName==="BR")return!0;let o=e.scrollHeight;if(o===0)return!1;let i=parseFloat(t.paddingTop)||0,a=parseFloat(t.paddingBottom)||0;return o>i+a}function Pn(e,t,r){if(e instanceof HTMLElement&&e.style&&e.style.height)return;let n=e.tagName&&e.tagName.toLowerCase();if(!n||!["div","section","article","main","aside","header","footer","nav"].includes(n))return;let o=parseFloat(t.height);if(Number.isFinite(o)&&e.scrollHeight>0&&Math.abs(o-e.scrollHeight)>2||t.aspectRatio&&t.aspectRatio!=="none"&&t.aspectRatio!=="auto")return;let i=t.display||"";if(i.includes("flex")||i.includes("grid")||Fn(e))return;let a=t.position;if(a==="absolute"||a==="fixed"||a==="sticky"||t.transform!=="none"||Nn(t)||yr(e))return;let l=t.overflowX||t.overflow||"visible",u=t.overflowY||t.overflow||"visible";if(l!=="visible"||u!=="visible")return;let s=t.clip;s&&s!=="auto"&&s!=="rect(auto, auto, auto, auto)"||t.visibility==="hidden"||t.opacity==="0"||Ln(e,t)&&(delete r.height,delete r["block-size"])}ft();var br=["fill","stroke","color","background-color","stop-color"],Rn=new Set(["symbol","defs","pattern","mask","clipPath","marker","linearGradient","radialGradient","filter"]);function et(e){let t=e;for(;t&&t.nodeType===1;){if(t.namespaceURI==="http://www.w3.org/2000/svg"&&Rn.has(t.localName))return!0;t=t.parentNode}return!1}var Ft=new Map;function Tn(e,t){let r=t+"::"+e.toLowerCase(),n=Ft.get(r);if(n)return n;let o=document,i=t==="http://www.w3.org/2000/svg"?o.createElementNS(t,e):o.createElement(e),a=o.createElement("div");a.style.cssText="position:absolute;left:-99999px;top:-99999px;contain:strict;display:block;",a.appendChild(i),o.documentElement.appendChild(a);let l=getComputedStyle(i),u={};for(let s of br)u[s]=l.getPropertyValue(s)||"";return a.remove(),Ft.set(r,u),u}function Wn(e,t){if(!(e instanceof Element)||!(t instanceof Element)||et(e))return;let r=e.getAttribute?.("style"),n=!!(r&&r.includes("var("));if(!n&&e.attributes?.length){let i=e.attributes;for(let a=0;a<i.length;a++){let l=i[a];if(l&&typeof l.value=="string"&&l.value.includes("var(")){n=!0;break}}}let o=null;if(n)try{o=getComputedStyle(e)}catch{}if(n){let i=e.style;if(i&&i.length){let a=new Set;for(let l=0;l<i.length;l++){let u=i[l];if(a.has(u))continue;a.add(u);let s=i.getPropertyValue(u);if(!s||!s.includes("var("))continue;let c=o&&o.getPropertyValue(u);if(c)try{t.style.setProperty(u,c.trim(),i.getPropertyPriority(u))}catch{}}}}if(n&&e.attributes?.length){let i=e.attributes;for(let a=0;a<i.length;a++){let l=i[a];if(!l||typeof l.value!="string"||!l.value.includes("var("))continue;let u=l.name,s=o&&o.getPropertyValue(u);if(s)try{t.style.setProperty(u,s.trim())}catch{}}}if(!n){if(!o)try{o=getComputedStyle(e)}catch{o=null}if(!o)return;let i=e.namespaceURI||"html",a=Tn(e.tagName,i);for(let l of br){let u=o.getPropertyValue(l)||"",s=a[l]||"";if(u&&u!==s)try{t.style.setProperty(l,u.trim())}catch{}}}}G();G();U();be();function Ve(e,t,r){return Promise.all(e.map(n=>new Promise(o=>{function i(){ce(a=>{!(a&&typeof a.timeRemaining=="function")||a.timeRemaining()>0?t(n,o):i()},{fast:r})}i()})))}function In(e){return e=e.trim(),!e||/:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(e)?e:`${e}:not([data-sd-slotted])`}function _n(e,t,r=!0){return e.split(",").map(n=>n.trim()).filter(Boolean).map(n=>{if(n.startsWith(":where(")||n.startsWith("@"))return n;let o=r?In(n):n;return`:where(${t} ${o})`}).join(", ")}function On(e,t){return e?(e=e.replace(/:host\(([^)]+)\)/g,(r,n)=>`:where(${t}:is(${n.trim()}))`),e=e.replace(/:host\b/g,`:where(${t})`),e=e.replace(/:host-context\(([^)]+)\)/g,(r,n)=>`:where(:where(${n.trim()}) ${t})`),e=e.replace(/::slotted\(([^)]+)\)/g,(r,n)=>`:where(${t} ${n.trim()})`),e=e.replace(/(^|})(\s*)([^@}{]+){/g,(r,n,o,i)=>{let a=_n(i,t,!0);return`${n}${o}${a}{`}),e):""}function Dn(e){return e.shadowScopeSeq=(e.shadowScopeSeq||0)+1,`s${e.shadowScopeSeq}`}function Un(e){let t="";try{e.querySelectorAll("style").forEach(n=>{t+=(n.textContent||"")+`
|
|
3
|
+
`});let r=e.adoptedStyleSheets||[];for(let n of r)try{if(n&&n.cssRules)for(let o of n.cssRules)t+=o.cssText+`
|
|
4
|
+
`}catch{}}catch{}return t}function Hn(e,t,r){if(!t)return;let n=document.createElement("style");n.setAttribute("data-sd",r),n.textContent=t,e.insertBefore(n,e.firstChild||null)}function jn(e,t){try{let r=e.currentSrc||e.src||"";if(!r)return;t.setAttribute("src",r),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch{}}function qn(e){let t=new Set;if(!e)return t;let r=/var\(\s*(--[A-Za-z0-9_-]+)\b/g,n;for(;n=r.exec(e);)t.add(n[1]);return t}function zn(e,t){try{let r=getComputedStyle(e).getPropertyValue(t).trim();if(r)return r}catch{}try{let r=getComputedStyle(document.documentElement).getPropertyValue(t).trim();if(r)return r}catch{}return""}function Vn(e,t,r){let n=[];for(let o of t){let i=zn(e,o);i&&n.push(`${o}: ${i};`)}return n.length?`${r}{${n.join("")}}
|
|
5
|
+
`:""}function Bn(e){e&&(e.nodeType===Node.ELEMENT_NODE&&e.setAttribute("data-sd-slotted",""),e.querySelectorAll&&e.querySelectorAll("*").forEach(t=>t.setAttribute("data-sd-slotted","")))}async function Xn(e,t=3){let r=()=>{try{return e.contentDocument||e.contentWindow?.document||null}catch{return null}},n=r(),o=0;for(;o<t&&(!n||!n.body&&!n.documentElement);)await new Promise(i=>setTimeout(i,0)),n=r(),o++;return n&&(n.body||n.documentElement)?n:null}function Yn(e){let t=e.getBoundingClientRect(),r=0,n=0,o=0,i=0;try{let u=getComputedStyle(e);r=parseFloat(u.borderLeftWidth)||0,n=parseFloat(u.borderRightWidth)||0,o=parseFloat(u.borderTopWidth)||0,i=parseFloat(u.borderBottomWidth)||0}catch{}let a=Math.max(0,Math.round(t.width-(r+n))),l=Math.max(0,Math.round(t.height-(o+i)));return{contentWidth:a,contentHeight:l,rect:t}}function ee(e){let t=0,r=0;if(e.offsetWidth>0&&(t=e.offsetWidth),e.offsetHeight>0&&(r=e.offsetHeight),t===0||r===0)try{let n=getComputedStyle(e);if(t===0){let o=parseFloat(n.width);!isNaN(o)&&o>0&&(t=o)}if(r===0){let o=parseFloat(n.height);!isNaN(o)&&o>0&&(r=o)}}catch{}if(t===0||r===0)try{if(t===0){let n=parseFloat(e.getAttribute("width"));!isNaN(n)&&n>0&&(t=n)}if(r===0){let n=parseFloat(e.getAttribute("height"));!isNaN(n)&&n>0&&(r=n)}}catch{}if((t===0||r===0)&&(e.naturalWidth||e.naturalHeight))try{t===0&&e.naturalWidth>0&&(t=e.naturalWidth),r===0&&e.naturalHeight>0&&(r=e.naturalHeight)}catch{}return{width:t,height:r}}function Gn(e,t,r){let n=e.defaultView,o=n?n.scrollX:0,i=n?n.scrollY:0,a=e.body?e.body.scrollLeft:0,l=e.body?e.body.scrollTop:0,u=e.documentElement?e.documentElement.scrollLeft:0,s=e.documentElement?e.documentElement.scrollTop:0,c=0,f=0,m=0,d=0;try{let p=n&&e.body?n.getComputedStyle(e.body):null;p&&(c=(parseFloat(p.marginTop)||0)+(parseFloat(p.paddingTop)||0),f=(parseFloat(p.marginRight)||0)+(parseFloat(p.paddingRight)||0),m=(parseFloat(p.marginBottom)||0)+(parseFloat(p.paddingBottom)||0),d=(parseFloat(p.marginLeft)||0)+(parseFloat(p.paddingLeft)||0))}catch{}try{e.documentElement.setAttribute("data-sd-pinned","")}catch{}let h=e.createElement("style");return h.setAttribute("data-sd-iframe-pin",""),h.textContent=`html {margin: 0 !important;padding: 0 !important;width: ${t}px !important;height: ${r}px !important;min-width: ${t}px !important;min-height: ${r}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}body {margin: 0 !important;padding: ${c}px ${f}px ${m}px ${d}px !important;width: ${t}px !important;height: ${r}px !important;min-width: ${t}px !important;min-height: ${r}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`,(e.head||e.documentElement).appendChild(h),()=>{try{h.remove()}catch{}try{e.documentElement.removeAttribute("data-sd-pinned")}catch{}try{n&&typeof n.scrollTo=="function"&&n.scrollTo(o,i),e.body&&(e.body.scrollLeft=a,e.body.scrollTop=l),e.documentElement&&(e.documentElement.scrollLeft=u,e.documentElement.scrollTop=s)}catch{}}}async function Kn(e,t,r){let n=await Xn(e,3);if(!n)throw new Error("iframe document not accessible/ready");let{contentWidth:o,contentHeight:i,rect:a}=Yn(e),l=r?.snap;if(!l&&typeof window<"u"&&window.snapdom&&(l=window.snapdom),!l||typeof l.toPng!="function")throw new Error("[snapdom] iframe capture requires snapdom.toPng. Use snapdom(el) or pass options.snap. With ESM, assign window.snapdom = snapdom after import if using iframes.");let u={...r,scale:1},s=Gn(n,o,i),c=$.session.nodeMap,f=$.session.styleMap,m=$.session.styleCache,d;try{d=await l.toPng(n.documentElement,u)}finally{s(),$.session.nodeMap=c,$.session.styleMap=f,$.session.styleCache=m}d.style.display="block",d.style.width=`${o}px`,d.style.height=`${i}px`;let h=document.createElement("div");return t.nodeMap.set(h,e),oe(e,h,t,r),h.style.overflow="hidden",h.style.display="block",h.style.width||(h.style.width=`${Math.round(a.width)}px`),h.style.height||(h.style.height=`${Math.round(a.height)}px`),h.appendChild(d),h}function Qn(e){let{width:t,height:r}=ee(e),n=e.getBoundingClientRect(),o;try{o=window.getComputedStyle(e)}catch{}let i=o?parseFloat(o.width):NaN,a=o?parseFloat(o.height):NaN,l=Math.round(t||n.width||0),u=Math.round(r||n.height||0),s=Number.isFinite(i)&&i>0?Math.round(i):Math.max(12,l||16),c=Number.isFinite(a)&&a>0?Math.round(a):Math.max(12,u||16),f=(e.type||"text").toLowerCase()==="checkbox",m=!!e.checked,d=!!e.indeterminate,h=Math.max(Math.min(s,c),12),p="middle";try{o&&o.verticalAlign&&(p=o.verticalAlign)}catch{}let g=document.createElement("div");g.setAttribute("data-snapdom-input-replacement",e.type||"checkbox"),g.style.cssText=`display:inline-block;width:${h}px;height:${h}px;vertical-align:${p};flex-shrink:0;line-height:0;`;let b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("width",String(h)),b.setAttribute("height",String(h)),b.setAttribute("viewBox",`0 0 ${h} ${h}`),g.appendChild(b);function w(){let x="#0a6ed1";try{o&&(x=o.accentColor||o.color||x)}catch{}let y=2,S=y/2,A=h-y;if(b.innerHTML="",f){let v=document.createElementNS("http://www.w3.org/2000/svg","rect");if(v.setAttribute("x",String(S)),v.setAttribute("y",String(S)),v.setAttribute("width",String(A)),v.setAttribute("height",String(A)),v.setAttribute("rx","2"),v.setAttribute("ry","2"),v.setAttribute("fill",m?x:"none"),v.setAttribute("stroke",x),v.setAttribute("stroke-width",String(y)),b.appendChild(v),m){let C=document.createElementNS("http://www.w3.org/2000/svg","path");C.setAttribute("d",`M ${S+2} ${h/2} L ${h/2-1} ${h-S-2} L ${h-S-2} ${S+2}`),C.setAttribute("stroke","white"),C.setAttribute("stroke-width",String(Math.max(1.5,y))),C.setAttribute("fill","none"),C.setAttribute("stroke-linecap","round"),C.setAttribute("stroke-linejoin","round"),b.appendChild(C)}else if(d){let C=document.createElementNS("http://www.w3.org/2000/svg","rect"),k=Math.max(6,A-4);C.setAttribute("x",String((h-k)/2)),C.setAttribute("y",String((h-y)/2)),C.setAttribute("width",String(k)),C.setAttribute("height",String(y)),C.setAttribute("fill",x),C.setAttribute("rx","1"),b.appendChild(C)}}else{let v=document.createElementNS("http://www.w3.org/2000/svg","circle");if(v.setAttribute("cx",String(h/2)),v.setAttribute("cy",String(h/2)),v.setAttribute("r",String((h-y)/2)),v.setAttribute("fill",m?x:"none"),v.setAttribute("stroke",x),v.setAttribute("stroke-width",String(y)),b.appendChild(v),m){let C=document.createElementNS("http://www.w3.org/2000/svg","circle"),k=Math.max(2,(h-y*2)*.35);C.setAttribute("cx",String(h/2)),C.setAttribute("cy",String(h/2)),C.setAttribute("r",String(k)),C.setAttribute("fill","white"),b.appendChild(C)}}g.style.setProperty("width",`${h}px`,"important"),g.style.setProperty("height",`${h}px`,"important"),g.style.setProperty("min-width",`${h}px`,"important"),g.style.setProperty("min-height",`${h}px`,"important")}return w(),{el:g,applyVisual:w}}var xe=new B(80);async function Ce(e){if($.resource?.has(e))return $.resource.get(e);if(xe.has(e))return xe.get(e);let t=(async()=>{let r=await Y(e,{as:"dataURL",silent:!0});if(!r.ok||typeof r.data!="string")throw new Error(`[snapDOM] Failed to read blob URL: ${e}`);return $.resource?.set(e,r.data),r.data})();xe.set(e,t);try{let r=await t;return xe.set(e,r),r}catch(r){throw xe.delete(e),r}}var Jn=/\bblob:[^)"'\s]+/g;async function Nt(e){if(!e||e.indexOf("blob:")===-1)return e;let t=Array.from(new Set(e.match(Jn)||[]));if(t.length===0)return e;let r=e;for(let n of t)try{let o=await Ce(n);r=r.split(n).join(o)}catch{}return r}function Ne(e){return typeof e=="string"&&e.startsWith("blob:")}function Zn(e){return(e||"").split(",").map(t=>t.trim()).filter(Boolean).map(t=>{let r=t.match(/^(\S+)(\s+.+)?$/);return r?{url:r[1],desc:r[2]||""}:null}).filter(Boolean)}function ei(e){return e.map(t=>t.desc?`${t.url} ${t.desc.trim()}`:t.url).join(", ")}async function ti(e,t=null){if(!e)return;let r=t,n=e.querySelectorAll?e.querySelectorAll("img"):[];for(let u of n)try{let s=u.getAttribute("src")||u.currentSrc||"";if(Ne(s)){let f=await Ce(s);u.setAttribute("src",f)}let c=u.getAttribute("srcset");if(c&&c.includes("blob:")){let f=Zn(c),m=!1;for(let d of f)if(Ne(d.url))try{d.url=await Ce(d.url),m=!0}catch(h){P(r,"blobUrlToDataUrl for srcset item failed",h)}m&&u.setAttribute("srcset",ei(f))}}catch(s){P(r,"resolveBlobUrls for img failed",s)}let o=e.querySelectorAll?e.querySelectorAll("image"):[];for(let u of o)try{let s="http://www.w3.org/1999/xlink",c=u.getAttribute("href")||u.getAttributeNS?.(s,"href");if(Ne(c)){let f=await Ce(c);u.setAttribute("href",f),u.removeAttributeNS?.(s,"href")}}catch(s){P(r,"resolveBlobUrls for SVG image href failed",s)}let i=e.querySelectorAll?e.querySelectorAll("[style*='blob:']"):[];for(let u of i)try{let s=u.getAttribute("style");if(s&&s.includes("blob:")){let c=await Nt(s);u.setAttribute("style",c)}}catch(s){P(r,"replaceBlobUrls in inline style failed",s)}let a=e.querySelectorAll?e.querySelectorAll("style"):[];for(let u of a)try{let s=u.textContent||"";s.includes("blob:")&&(u.textContent=await Nt(s))}catch(s){P(r,"replaceBlobUrls in style tag failed",s)}let l=["poster"];for(let u of l){let s=e.querySelectorAll?e.querySelectorAll(`[${u}^='blob:']`):[];for(let c of s)try{let f=c.getAttribute(u);Ne(f)&&c.setAttribute(u,await Ce(f))}catch(f){P(r,`resolveBlobUrls for ${u} failed`,f)}}}ke();function Be(e){let{width:t,height:r}=ee(e),n=t,o=r;if(!n||!o){let a=e.getBoundingClientRect();n=n||a.width||0,o=o||a.height||0}let i=document.createElement("div");return i.style.cssText=`display:inline-block;width:${n}px;height:${o}px;visibility:hidden;`,i}async function Te(e,t,r){if(!e)throw new Error("Invalid node");let n=new Set,o=null,i=null;if(e.nodeType===Node.ELEMENT_NODE){let c=(e.localName||e.tagName||"").toLowerCase();if(e.id==="snapdom-sandbox"||e.hasAttribute("data-snapdom-sandbox")||Kt.has(c))return null;if(c==="foreignobject"&&e.parentElement?.closest?.("foreignObject"))return P(t,"Nested <foreignObject> skipped (SVG spec limitation — not rendered by browsers)"),null}if(e.nodeType===Node.TEXT_NODE||e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if(e.getAttribute("data-capture")==="exclude"){if(r.excludeMode==="hide")return Be(e);if(r.excludeMode==="remove")return null}if(r.exclude&&Array.isArray(r.exclude))for(let c of r.exclude)try{if(e.matches?.(c)){if(r.excludeMode==="hide")return Be(e);if(r.excludeMode==="remove")return null}}catch(f){console.warn(`Invalid selector in exclude option: ${c}`,f)}if(typeof r.filter=="function")try{if(!r.filter(e)){if(r.filterMode==="hide")return Be(e);if(r.filterMode==="remove")return null}}catch(c){console.warn("Error in filter function:",c)}if(e.tagName==="IFRAME"){let c=!1;try{c=!!(e.contentDocument||e.contentWindow?.document)}catch(f){P(t,"iframe same-origin probe failed",f)}if(c)try{return await Kn(e,t,r)}catch(f){console.warn("[SnapDOM] iframe rasterization failed, fallback:",f)}if(c||console.warn("[snapdom] cross-origin <iframe> skipped (cannot access content). Use options.placeholders to show a placeholder instead.",e),r.placeholders){let{width:f,height:m}=ee(e),d=document.createElement("div");return d.style.cssText=`width:${f}px;height:${m}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;`,oe(e,d,t,r),d}else{let{width:f,height:m}=ee(e),d=document.createElement("div");return d.style.cssText=`display:inline-block;width:${f}px;height:${m}px;visibility:hidden;`,oe(e,d,t,r),d}}if(e.getAttribute("data-capture")==="placeholder"){let c=e.cloneNode(!1);t.nodeMap.set(c,e),oe(e,c,t,r);let f=document.createElement("div");return f.textContent=e.getAttribute("data-placeholder-text")||"",f.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",c.appendChild(f),c}if(e.tagName==="CANVAS"){let c="";try{let h=e.getContext("2d",{willReadFrequently:!0});try{h&&h.getImageData(0,0,1,1)}catch{}if(await new Promise(p=>requestAnimationFrame(p)),c=e.toDataURL("image/png"),!c||c==="data:,"){try{h&&h.getImageData(0,0,1,1)}catch{}if(await new Promise(p=>requestAnimationFrame(p)),c=e.toDataURL("image/png"),!c||c==="data:,"){let p=document.createElement("canvas");p.width=e.width,p.height=e.height;let g=p.getContext("2d");g&&(g.drawImage(e,0,0),c=p.toDataURL("image/png"))}}}catch(h){P(t,"Canvas toDataURL failed, using empty/fallback",h)}let f=document.createElement("img");try{f.decoding="sync",f.loading="eager"}catch(h){P(t,"img decoding/loading hints failed",h)}c&&(f.src=c),f.width=e.width,f.height=e.height;let{width:m,height:d}=ee(e);return m>0&&(f.style.width=`${m}px`),d>0&&(f.style.height=`${d}px`),t.nodeMap.set(f,e),oe(e,f,t,r),f}if(e.tagName==="VIDEO"){let c="";try{let h=document.createElement("canvas");h.width=e.videoWidth||e.offsetWidth||320,h.height=e.videoHeight||e.offsetHeight||240;let p=h.getContext("2d");p&&(p.drawImage(e,0,0,h.width,h.height),c=h.toDataURL("image/png"),(!c||c==="data:,")&&(c=""))}catch(h){P(t,"Video frame capture failed, using poster fallback",h)}let f=document.createElement("img");try{f.decoding="sync",f.loading="eager"}catch{}c?f.src=c:e.poster&&(f.src=e.poster),f.width=e.videoWidth||e.offsetWidth||0,f.height=e.videoHeight||e.offsetHeight||0;let{width:m,height:d}=ee(e);return m>0&&(f.style.width=`${m}px`),d>0&&(f.style.height=`${d}px`),f.style.objectFit="contain",t.nodeMap.set(f,e),oe(e,f,t,r),f}if(e.tagName==="AUDIO"&&e.controls){let{width:c,height:f}=ee(e),m=Math.round(c||e.offsetWidth||300),d=Math.round(f||e.offsetHeight||54),h=d/2,p=Math.max(4,d*.16),g=d*.34,b=m-d*.34,w=g+p+d*.55,x=Math.max(0,b-d*.7-w),y=Math.max(9,Math.round(d*.24)),S=`<svg xmlns="http://www.w3.org/2000/svg" width="${m}" height="${d}" viewBox="0 0 ${m} ${d}"><rect width="${m}" height="${d}" rx="${Math.min(d/2,10)}" fill="#f1f3f4"/><path d="M ${g} ${h-p} L ${g+p} ${h} L ${g} ${h+p} Z" fill="#5f6368"/><rect x="${w}" y="${h-1.5}" width="${x}" height="3" rx="1.5" fill="#bdc1c6"/><circle cx="${w}" cy="${h}" r="${Math.max(3,d*.09)}" fill="#5f6368"/><text x="${b}" y="${h}" fill="#5f6368" font-family="sans-serif" font-size="${y}" text-anchor="end" dominant-baseline="central">0:00</text></svg>`,A=document.createElement("img");try{A.decoding="sync",A.loading="eager"}catch{}return A.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(S)}`,A.width=m,A.height=d,A.style.width=`${m}px`,A.style.height=`${d}px`,t.nodeMap.set(A,e),oe(e,A,t,r),A}let a;try{if(a=e.cloneNode(!1),a.attributes?.length)try{for(let c of a.attributes)/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/.test(c.value)&&a.setAttribute(c.name,c.value.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/g,""))}catch{}if(Wn(e,a),t.nodeMap.set(a,e),e.tagName==="IMG"){jn(e,a);try{let{width:c,height:f}=ee(e),m=Math.round(c||0),d=Math.round(f||0);m&&(a.dataset.snapdomWidth=String(m)),d&&(a.dataset.snapdomHeight=String(d))}catch(c){P(t,"getUnscaledDimensions for IMG failed",c)}try{let c=e.getAttribute("style")||"",f=window.getComputedStyle(e),m=x=>{let y=c.match(new RegExp(`${x}\\s*:\\s*([^;]+)`,"i")),S=y?y[1].trim():f.getPropertyValue(x);return/%|auto/i.test(String(S||""))},d=parseInt(a.dataset.snapdomWidth||"0",10),h=parseInt(a.dataset.snapdomHeight||"0",10),p=m("width")||!d,g=m("height")||!h;p&&d&&(a.style.width=`${d}px`),g&&h&&(a.style.height=`${h}px`);let b=f.getPropertyValue("object-fit"),w=f.getPropertyValue("object-position");b&&b!=="fill"?(a.style.objectFit=b,w&&(a.style.objectPosition=w)):(d&&(a.style.minWidth=`${d}px`),h&&(a.style.minHeight=`${h}px`))}catch(c){P(t,"IMG dimension freeze failed",c)}}}catch(c){throw console.error("[Snapdom] Failed to clone node:",e,c),c}let l=null;if(e instanceof HTMLTextAreaElement){let{width:c,height:f}=ee(e),m=c||e.getBoundingClientRect().width||0,d=f||e.getBoundingClientRect().height||0;m&&(a.style.width=`${m}px`),d&&(a.style.height=`${d}px`)}if(e instanceof HTMLInputElement){let c=(e.type||"text").toLowerCase();if((c==="checkbox"||c==="radio")&&dn()){let{el:f,applyVisual:m}=Qn(e);t.nodeMap.set(f,e),l=m,a=f}else a.value=e.value,a.setAttribute("value",e.value),e.checked!==void 0&&(a.checked=e.checked,e.checked&&a.setAttribute("checked",""),e.indeterminate&&(a.indeterminate=e.indeterminate))}if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&!e.value&&e.placeholder)try{let c=window.getComputedStyle(e,"::placeholder"),f=c&&c.color;if(f&&f!=="rgba(0, 0, 0, 0)"){let m="snapdom-ph-"+(Math.random()*1e6|0);a.classList.add(m);let d=document.createElement("style");d.textContent=`.${m}::placeholder{color:${f}!important;opacity:${c.opacity||"1"}!important;-webkit-text-fill-color:${f}!important;}`,a.prepend(d)}}catch{}if(e instanceof HTMLSelectElement&&(o=e.value),e instanceof HTMLTextAreaElement&&(i=e.value),e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement){e.disabled&&a.setAttribute("disabled",""),e.required&&a.setAttribute("required",""),e.readOnly&&a.setAttribute("readonly","");let c=e;c.min!==void 0&&c.min!==""&&a.setAttribute("min",c.min),c.max!==void 0&&c.max!==""&&a.setAttribute("max",c.max),c.pattern!==void 0&&c.pattern!==""&&a.setAttribute("pattern",c.pattern);let f=e.getAttribute("aria-invalid");f!==null&&a.setAttribute("aria-invalid",f)}if(et(e)||oe(e,a,t,r),l&&l(),e instanceof SVGElement&&!et(e)){let c=["fill","stroke","stroke-width","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","opacity","fill-opacity","stroke-opacity","fill-rule","clip-rule","marker","marker-start","marker-mid","marker-end","visibility","display"];try{let f=window.getComputedStyle(e);for(let m of c){let d=f.getPropertyValue(m);d&&a.style.setProperty(m,d)}}catch{}}if(e.shadowRoot){let c=function(x,y){if(x.nodeType===Node.ELEMENT_NODE&&x.tagName==="STYLE")return y(null);Te(x,t,r).then(S=>{y(S||null)}).catch(()=>{y(null)})};try{let x=e.shadowRoot.querySelectorAll("slot");for(let y of x){let S=[];try{S=y.assignedNodes?.({flatten:!0})||y.assignedNodes?.()||[]}catch{S=y.assignedNodes?.()||[]}for(let A of S)n.add(A)}}catch{}let f=Dn(t),m=`[data-sd="${f}"]`;try{a.setAttribute("data-sd",f)}catch{}let d=Un(e.shadowRoot),h=On(d,m),p=qn(d),g=Vn(e,p,m);Hn(a,g+h,f);let b=document.createDocumentFragment(),w=await Ve(Array.from(e.shadowRoot.childNodes),c,r.fast);b.append(...w.filter(x=>!!x)),a.appendChild(b)}if(e.tagName==="SLOT"){let c=function(p,g){Te(p,t,r).then(b=>{b&&Bn(b),g(b||null)}).catch(()=>{g(null)})},f=e.assignedNodes?.({flatten:!0})||[],m=f.length>0?f:Array.from(e.childNodes),d=document.createDocumentFragment(),h=await Ve(Array.from(m),c,r.fast);return d.append(...h.filter(p=>!!p)),d}function u(c,f){if(n.has(c))return f(null);Te(c,t,r).then(m=>{f(m||null)}).catch(()=>{f(null)})}let s=await Ve(Array.from(e.childNodes),u,r.fast);if(a.append(...s.filter(c=>!!c)),o!==null&&a instanceof HTMLSelectElement){a.value=o;for(let c of a.options)c.value===o?c.setAttribute("selected",""):c.removeAttribute("selected")}return i!==null&&a instanceof HTMLTextAreaElement&&(a.textContent=i),a}G();De();U();U();var ri=[/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],pe=Object.assign({materialIconsFilled:"https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2",materialIconsOutlined:"https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2",materialIconsRound:"https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2",materialIconsSharp:"https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2"},typeof window<"u"&&window.__SNAPDOM_ICON_FONTS__||{}),tt=[];function ni(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ii(e){let t=Array.isArray(e)?e:[e];for(let r of t)r instanceof RegExp?tt.push(r):typeof r=="string"?tt.push(new RegExp(ni(r),"i")):console.warn("[snapdom] Ignored invalid iconFont value:",r)}function te(e){let t=typeof e=="string"?e:"",r=[...ri,...tt];for(let n of r)if(n instanceof RegExp&&n.test(t))return!0;return!!(/icon/i.test(t)||/glyph/i.test(t)||/symbols/i.test(t)||/feather/i.test(t)||/fontawesome/i.test(t))}function oi(e=""){let t=String(e).toLowerCase();return/\bmaterial\s*icons\b/.test(t)||/\bmaterial\s*symbols\b/.test(t)}var Lt=new Map;function ai(e=""){let t=Object.create(null),r=String(e||""),n=/['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g,o;for(;o=n.exec(r);)t[o[1].toUpperCase()]=Number(o[2]);return t}async function li(e,t,r){let n=String(e||""),o=n.toLowerCase(),i=String(t||"").toLowerCase();if(/\bmaterial\s*icons\b/.test(o)&&!/\bsymbols\b/.test(o))return{familyForMeasure:n,familyForCanvas:n};if(!/\bmaterial\s*symbols\b/.test(o))return{familyForMeasure:n,familyForCanvas:n};let a=r&&(r.FILL??r.fill),l="outlined";/\brounded\b/.test(i)||/\bround\b/.test(i)?l="rounded":/\bsharp\b/.test(i)?l="sharp":/\boutlined\b/.test(i)&&(l="outlined");let u=a===1,s=null;if(u&&(l==="outlined"&&pe.materialIconsFilled?s={url:pe.materialIconsFilled,alias:"snapdom-mi-filled"}:l==="rounded"&&pe.materialIconsRound?s={url:pe.materialIconsRound,alias:"snapdom-mi-round"}:l==="sharp"&&pe.materialIconsSharp&&(s={url:pe.materialIconsSharp,alias:"snapdom-mi-sharp"})),!s)return{familyForMeasure:n,familyForCanvas:n};if(!Lt.has(s.alias))try{let f=new FontFace(s.alias,`url(${s.url})`,{style:"normal",weight:"400"});document.fonts.add(f),await f.load(),Lt.set(s.alias,!0)}catch{return{familyForMeasure:n,familyForCanvas:n}}let c=`"${s.alias}"`;return{familyForMeasure:c,familyForCanvas:c}}async function si(e="Material Icons",t=24){try{await Promise.all([document.fonts.load(`400 ${t}px "${String(e).replace(/["']/g,"")}"`),document.fonts.ready])}catch{}}function ci(e){let t=e.getPropertyValue("-webkit-text-fill-color")?.trim()||"",r=/^transparent$/i.test(t)||/rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(t);if(t&&!r&&t.toLowerCase()!=="currentcolor")return t;let n=e.color?.trim();return n&&n!=="inherit"?n:"#000"}async function ui(e,{family:t="Material Icons",weight:r="normal",fontSize:n=32,color:o="#000",variation:i="",className:a=""}={}){let l=String(t||"").replace(/^['"]+|['"]+$/g,""),u=window.devicePixelRatio||1,s=ai(i),{familyForMeasure:c,familyForCanvas:f}=await li(l,a,s);await si(f.replace(/^["']+|["']+$/g,""),n);let m=document.createElement("span");m.textContent=e,m.style.position="absolute",m.style.visibility="hidden",m.style.left="-99999px",m.style.whiteSpace="nowrap",m.style.fontFamily=c,m.style.fontWeight=String(r||"normal"),m.style.fontSize=`${n}px`,m.style.lineHeight="1",m.style.margin="0",m.style.padding="0",m.style.fontFeatureSettings="'liga' 1",m.style.fontVariantLigatures="normal",m.style.color=o,document.body.appendChild(m);let d=m.getBoundingClientRect(),h=Math.max(1,Math.ceil(d.width)),p=Math.max(1,Math.ceil(d.height));document.body.removeChild(m);let g=document.createElement("canvas");g.width=h*u,g.height=p*u;let b=g.getContext("2d");b.scale(u,u),b.font=`${r?`${r} `:""}${n}px ${f}`,b.textAlign="left",b.textBaseline="top",b.fillStyle=o;try{b.fontKerning="normal"}catch{}return b.fillText(e,0,0),{dataUrl:g.toDataURL(),width:h,height:p}}async function fi(e,t){if(!(e instanceof Element))return 0;let r='.material-icons, [class*="material-symbols"]',n=Array.from(e.querySelectorAll(r)).filter(l=>l&&l.textContent&&l.textContent.trim());if(n.length===0)return 0;let o=$.session.nodeMap,i=t instanceof Element?Array.from(t.querySelectorAll(r)).filter(l=>l&&l.textContent&&l.textContent.trim()):[],a=0;for(let l=0;l<n.length;l++){let u=n[l],s=o&&o.get(u)||i[l]||null;try{let c=getComputedStyle(s||u),f=c.fontFamily||"Material Icons";if(!oi(f))continue;let m=(s||u).textContent.trim();if(!m)continue;let d=parseInt(c.fontSize,10)||24,h=c.fontWeight&&c.fontWeight!=="normal"?c.fontWeight:"normal",p=ci(c),g=c.fontVariationSettings&&c.fontVariationSettings!=="normal"?c.fontVariationSettings:"",b=(s||u).className||"",{dataUrl:w,width:x,height:y}=await ui(m,{family:f,weight:h,fontSize:d,color:p,variation:g,className:b});u.textContent="";let S=u.ownerDocument.createElement("img");S.src=w,S.alt=m,S.style.height=`${d}px`,S.style.width=`${Math.max(1,Math.round(x/y*d))}px`,S.style.objectFit="contain",S.style.verticalAlign=getComputedStyle(u).verticalAlign||"baseline",u.appendChild(S),a++}catch{}}return a}be();async function di(e,t,r,n=32,o="#000"){t=t.replace(/^['"]+|['"]+$/g,"");let i=window.devicePixelRatio||1;try{await document.fonts.ready}catch{}let a=document.createElement("span");a.textContent=e,a.style.position="absolute",a.style.visibility="hidden",a.style.fontFamily=`"${t}"`,a.style.fontWeight=r||"normal",a.style.fontSize=`${n}px`,a.style.lineHeight="1",a.style.whiteSpace="nowrap",a.style.padding="0",a.style.margin="0",document.body.appendChild(a);let l=a.getBoundingClientRect(),u=Math.ceil(l.width),s=Math.ceil(l.height);document.body.removeChild(a);let c=document.createElement("canvas");c.width=Math.max(1,u*i),c.height=Math.max(1,s*i);let f=c.getContext("2d");return f.scale(i,i),f.font=r?`${r} ${n}px "${t}"`:`${n}px "${t}"`,f.textAlign="left",f.textBaseline="top",f.fillStyle=o,f.fillText(e,0,0),{dataUrl:c.toDataURL(),width:u,height:s}}var wr=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","emoji","math","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]),mi=["katex","mathjax","mathml"];function mt(e){if(!e)return"";for(let t of e.split(",")){let r=t.trim().replace(/^['"]+|['"]+$/g,"");if(r&&!wr.has(r.toLowerCase()))return r}return""}function hi(e){if(!e)return[];let t=[];for(let r of e.split(",")){let n=r.trim().replace(/^['"]+|['"]+$/g,"");n&&(wr.has(n.toLowerCase())||t.push(n))}return t}function We(e){let t=String(e??"400").trim().toLowerCase();if(t==="normal")return 400;if(t==="bold")return 700;let r=parseInt(t,10);return Number.isFinite(r)?Math.min(900,Math.max(100,r)):400}function Ie(e){let t=String(e??"normal").trim().toLowerCase();return t.startsWith("italic")?"italic":t.startsWith("oblique")?"oblique":"normal"}function pi(e){let t=String(e??"100%").match(/(\d+(?:\.\d+)?)\s*%/);return t?Math.max(50,Math.min(200,parseFloat(t[1]))):100}function gi(e){let t=String(e||"400").trim(),r=t.match(/^(\d{2,3})\s+(\d{2,3})$/);if(r){let o=We(r[1]),i=We(r[2]);return{min:Math.min(o,i),max:Math.max(o,i)}}let n=We(t);return{min:n,max:n}}function yi(e){let t=String(e||"normal").trim().toLowerCase();return t==="italic"?{kind:"italic"}:t.startsWith("oblique")?{kind:"oblique"}:{kind:"normal"}}function bi(e){let t=String(e||"100%").trim(),r=t.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);if(r){let i=parseFloat(r[1]),a=parseFloat(r[2]);return{min:Math.min(i,a),max:Math.max(i,a)}}let n=t.match(/(\d+(?:\.\d+)?)\s*%/),o=n?parseFloat(n[1]):100;return{min:o,max:o}}function wi(e){return!e||typeof e!="string"?"":e.replace(/\s+(variable|vf|v[0-9]+)$/i,"").trim().toLowerCase().replace(/\s+/g,"-")}function xi(e,t,r=[]){if(!e)return!1;try{let n=new URL(e,location.href);if(n.origin===location.origin)return!0;let o=n.host.toLowerCase();if(["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","p.typekit.net","kit.fontawesome.com","use.fontawesome.com","cdn.jsdelivr.net","unpkg.com","cdnjs.cloudflare.com","esm.sh"].some(a=>o.endsWith(a))||r.some(a=>o===a.toLowerCase()||o.endsWith("."+a.toLowerCase())))return!0;let i=(n.pathname+n.search).toLowerCase();if(/\bfont(s)?\b/.test(i)||/\.woff2?(\b|$)/.test(i)||mi.some(a=>i.includes(a)))return!0;for(let a of t){let l=a.toLowerCase().replace(/\s+/g,"+"),u=a.toLowerCase().replace(/\s+/g,"-"),s=wi(a);if(i.includes(l)||i.includes(u)||s&&i.includes(s))return!0}return!1}catch{return!1}}function Si(e){let t=new Set;for(let r of e||[]){let n=String(r).split("__")[0]?.trim();n&&t.add(n)}return t}function Pt(e,t){return e&&e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/g,(r,n,o)=>{let i=(o||"").trim();if(!i||/^data:|^blob:|^https?:|^file:|^about:/i.test(i))return r;let a=i;try{a=new URL(i,t||location.href).href}catch{}return`url("${a}")`})}var rt=/@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g,Oe=4;async function vi(e,t,r){if(!e)return e;let n=new Set;function o(l,u){try{return new URL(l,u||location.href).href}catch{return l}}async function i(l,u,s=0){if(s>Oe)return console.warn(`[snapDOM] @import depth exceeded (${Oe}) at ${u}`),l;let c="",f=0,m;for(;m=rt.exec(l);){c+=l.slice(f,m.index),f=rt.lastIndex;let d=(m[2]||m[4]||"").trim(),h=o(d,u);if(n.has(h)){console.warn(`[snapDOM] Skipping circular @import: ${h}`);continue}n.add(h);let p="";try{let g=await Y(h,{as:"text",useProxy:r,silent:!0});g.ok&&typeof g.data=="string"&&(p=g.data)}catch{}p?(p=Pt(p,h),p=await i(p,h,s+1),c+=`
|
|
6
|
+
/* inlined: ${h} */
|
|
7
|
+
${p}
|
|
8
|
+
`):c+=m[0]}return c+=l.slice(f),c}let a=Pt(e,t||location.href);return a=await i(a,t||location.href,0),a}var xr=/url\((["']?)([^"')]+)\1\)/g,Ci=/@font-face[^{}]*\{[^}]*\}/g;function Sr(e){if(!e)return[];let t=[],r=e.split(",").map(n=>n.trim()).filter(Boolean);for(let n of r){let o=n.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!o)continue;let i=o[1],a=o[2],l=u=>{if(!u.includes("?"))return parseInt(u,16);let s=parseInt(u.replace(/\?/g,"0"),16),c=parseInt(u.replace(/\?/g,"F"),16);return[s,c]};if(a){let u=l(i),s=l(a),c=Array.isArray(u)?u[0]:u,f=Array.isArray(s)?s[1]:s;t.push([Math.min(c,f),Math.max(c,f)])}else{let u=l(i);Array.isArray(u)?t.push([u[0],u[1]]):t.push([u,u])}}return t}function vr(e,t){if(!t.length||!e||e.size===0)return!0;for(let r of e)for(let[n,o]of t)if(r>=n&&r<=o)return!0;return!1}function ht(e,t){let r=[];if(!e)return r;for(let n of e.matchAll(xr)){let o=(n[2]||"").trim();if(!(!o||o.startsWith("data:"))){if(!/^https?:/i.test(o))try{o=new URL(o,t||location.href).href}catch{}r.push(o)}}return r}async function Cr(e,t,r=""){let n=e;for(let o of e.matchAll(xr)){let i=st(o[0]);if(!i)continue;let a=i;if(!a.startsWith("http")&&!a.startsWith("data:"))try{a=new URL(a,t||location.href).href}catch{}if(!te(a)){if($.resource?.has(a)){$.font?.add(a),n=n.replace(o[0],`url(${$.resource.get(a)})`);continue}try{let l=await Y(a,{as:"dataURL",useProxy:r,silent:!0});if(l.ok&&typeof l.data=="string"){let u=l.data;$.resource?.set(a,u),$.font?.add(a),n=n.replace(o[0],`url(${u})`)}}catch{console.warn("[snapDOM] Failed to fetch font resource:",a)}}}return n}function Ai(e){if(!e.length)return null;let t=(a,l)=>e.some(([u,s])=>!(s<a||u>l)),r=t(0,255)||t(305,305),n=t(256,591)||t(7680,7935),o=t(880,1023),i=t(1024,1279);return t(7840,7929)||t(258,259)||t(416,417)||t(431,432)?"vietnamese":i?"cyrillic":o?"greek":n?"latin-ext":r?"latin":null}function Rt(e={}){let t=new Set((e.families||[]).map(o=>String(o).toLowerCase())),r=new Set((e.domains||[]).map(o=>String(o).toLowerCase())),n=new Set((e.subsets||[]).map(o=>String(o).toLowerCase()));return(o,i)=>{if(t.size&&t.has(o.family.toLowerCase()))return!0;if(r.size)for(let a of o.srcUrls)try{if(r.has(new URL(a).host.toLowerCase()))return!0}catch{}if(n.size){let a=Ai(i);if(a&&n.has(a))return!0}return!1}}function $i(e){if(!e)return e;let t=/@font-face[^{}]*\{[^}]*\}/gi,r=new Set,n=[];for(let i of e.match(t)||[]){let a=i.match(/font-family:\s*([^;]+);/i)?.[1]||"",l=mt(a),u=(i.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),s=(i.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),c=(i.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),f=(i.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),m=(i.match(/src\s*:\s*([^;}]+)[;}]/i)?.[1]||"").trim(),d=ht(m,location.href),h=d.length?d.map(g=>String(g).toLowerCase()).sort().join("|"):m.toLowerCase(),p=[String(l||"").toLowerCase(),u,s,c,f.toLowerCase(),h].join("|");r.has(p)||(r.add(p),n.push(i))}if(n.length===0)return e;let o=0;return e.replace(t,()=>n[o++]||"")}function Mi(e,t,r,n,o){let i=Array.from(e||[]).sort().join("|"),a=t?JSON.stringify({families:(t.families||[]).map(c=>String(c).toLowerCase()).sort(),domains:(t.domains||[]).map(c=>String(c).toLowerCase()).sort(),subsets:(t.subsets||[]).map(c=>String(c).toLowerCase()).sort()}):"",l=(r||[]).map(c=>`${(c.family||"").toLowerCase()}::${c.weight||"normal"}::${c.style||"normal"}::${c.src||""}`).sort().join("|"),u=n||"",s=(o||[]).map(c=>String(c).toLowerCase()).sort().join("|");return`fonts-embed-css::req=${i}::ex=${a}::lf=${l}::px=${u}::fd=${s}`}async function Ar(e,t,r,n){let o;try{o=e.cssRules||[]}catch{return}let i=(a,l)=>{try{return new URL(a,l||location.href).href}catch{return a}};for(let a of o){if(a.type===CSSRule.IMPORT_RULE&&a.styleSheet){let l=a.href?i(a.href,t):t;if(n.depth>=Oe){console.warn(`[snapDOM] CSSOM import depth exceeded (${Oe}) at ${l}`);continue}if(l&&n.visitedSheets.has(l)){console.warn(`[snapDOM] Skipping circular CSSOM import: ${l}`);continue}l&&n.visitedSheets.add(l);let u={...n,depth:(n.depth||0)+1};await Ar(a.styleSheet,l,r,u);continue}if(a.type===CSSRule.FONT_FACE_RULE){let l=(a.style.getPropertyValue("font-family")||"").trim(),u=mt(l);if(!u||te(u))continue;let s=(a.style.getPropertyValue("font-weight")||"400").trim(),c=(a.style.getPropertyValue("font-style")||"normal").trim(),f=(a.style.getPropertyValue("font-stretch")||"100%").trim(),m=(a.style.getPropertyValue("src")||"").trim(),d=(a.style.getPropertyValue("unicode-range")||"").trim();if(!n.faceMatchesRequired(u,c,s,f))continue;let h=Sr(d);if(!vr(n.usedCodepoints,h))continue;let p={family:u,weightSpec:s,styleSpec:c,stretchSpec:f,unicodeRange:d,srcRaw:m,srcUrls:ht(m,t||location.href),href:t||location.href};if(n.simpleExcluder&&n.simpleExcluder(p,h))continue;if(/url\(/i.test(m)){let g=await Cr(m,t||location.href,n.useProxy);await r(`@font-face{font-family:${u};src:${g};font-style:${c};font-weight:${s};font-stretch:${f};${d?`unicode-range:${d};`:""}}`)}else await r(`@font-face{font-family:${u};src:${m};font-style:${c};font-weight:${s};font-stretch:${f};${d?`unicode-range:${d};`:""}}`)}}}async function ki({required:e,usedCodepoints:t,exclude:r=void 0,localFonts:n=[],useProxy:o="",fontStylesheetDomains:i=[],doc:a=document}={}){e instanceof Set||(e=new Set),t instanceof Set||(t=new Set);let l=new Map;for(let w of e){let[x,y,S,A]=String(w).split("__");if(!x)continue;let v=x.toLowerCase(),C=l.get(v)||[];C.push({w:parseInt(y,10),s:S,st:parseInt(A,10)}),l.set(v,C)}function u(w,x,y,S){let A=String(w).toLowerCase();if(!l.has(A))return!1;let v=l.get(A),C=gi(y),k=yi(x),I=bi(S),W=C.min!==C.max,O=C.min,F=N=>k.kind==="normal"&&N==="normal"||k.kind!=="normal"&&(N==="italic"||N==="oblique"),H=!1;for(let N of v){let D=W?N.w>=C.min&&N.w<=C.max:N.w===O,E=F(Ie(N.s)),L=N.st>=I.min&&N.st<=I.max;if(D&&E&&L){H=!0;break}}if(H)return!0;if(!W)for(let N of v){let D=F(Ie(N.s)),E=N.st>=I.min&&N.st<=I.max;if(Math.abs(O-N.w)<=300&&D&&E)return!0}if(!W&&k.kind==="normal"&&v.some(N=>Ie(N.s)!=="normal"))for(let N of v){let D=Math.abs(O-N.w)<=300,E=N.st>=I.min&&N.st<=I.max;if(D&&E)return!0}return!1}let s=Rt(r),c=Mi(e,r,n,o,i);if($.resource?.has(c))return $.resource.get(c);let f=Si(e),m=[],d=rt;for(let w of a.querySelectorAll("style")){let x=w.textContent||"";for(let y of x.matchAll(d)){let S=(y[2]||y[4]||"").trim();!S||te(S)||a.querySelector(`link[rel="stylesheet"][href="${S}"]`)||m.push(S)}}let h=[];m.length&&await Promise.all(m.map(w=>new Promise(x=>{if(a.querySelector(`link[rel="stylesheet"][href="${w}"]`))return x(null);let y=a.createElement("link");y.rel="stylesheet",y.href=w,y.setAttribute("data-snapdom","injected-import"),y.onload=()=>x(y),y.onerror=()=>x(null),a.head.appendChild(y),h.push(y)})));let p="",g=Array.from(a.querySelectorAll('link[rel="stylesheet"]')).filter(w=>!!w.href);for(let w of h)try{w.remove()}catch{}for(let w of g)try{if(te(w.href))continue;let x="",y=!1;try{y=new URL(w.href,location.href).origin===location.origin}catch{}if(!y){let A=Array.isArray(i)?i:[];if(!xi(w.href,f,A))continue}if(y){let A=Array.from(a.styleSheets).find(v=>v.href===w.href);if(A)try{let v=A.cssRules||[];x=Array.from(v).map(C=>C.cssText).join("")}catch{}}if(!x){let A=await Y(w.href,{as:"text",useProxy:o});if(A?.ok&&typeof A.data=="string"&&(x=A.data),te(w.href))continue}x=await vi(x,w.href,o);let S="";for(let A of x.match(Ci)||[]){let v=(A.match(/font-family:\s*([^;]+);/i)?.[1]||"").trim(),C=mt(v);if(!C||te(C))continue;let k=(A.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),I=(A.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),W=(A.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),O=(A.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),F=(A.match(/src\s*:\s*([^;}]+)[;}]/i)?.[1]||"").trim(),H=ht(F,w.href);if(!u(C,I,k,W))continue;let N=Sr(O);if(!vr(t,N))continue;let D={family:C,weightSpec:k,styleSpec:I,stretchSpec:W,unicodeRange:O,srcRaw:F,srcUrls:H,href:w.href};if(r&&s(D,N))continue;let E=/url\(/i.test(F)?await Cr(A,w.href,o):A;S+=E}S.trim()&&(p+=S)}catch{console.warn("[snapDOM] Failed to process stylesheet:",w.href)}let b={requiredIndex:l,usedCodepoints:t,faceMatchesRequired:u,simpleExcluder:r?Rt(r):null,useProxy:o,visitedSheets:new Set,depth:0};for(let w of a.styleSheets)if(!(w.href&&g.some(x=>x.href===w.href)))try{let x=w.href||location.origin+"/";x&&b.visitedSheets.add(x),await Ar(w,x,async y=>{p+=y},b)}catch{}try{for(let w of a.fonts||[]){if(!w||!w.family||w.status!=="loaded"||!w._snapdomSrc)continue;let x=String(w.family).replace(/^['"]+|['"]+$/g,"");if(te(x)||!l.has(x.toLowerCase())||r?.families&&r.families.some(S=>String(S).toLowerCase()===x.toLowerCase()))continue;let y=w._snapdomSrc;if(!String(y).startsWith("data:")){if($.resource?.has(w._snapdomSrc))y=$.resource.get(w._snapdomSrc),$.font?.add(w._snapdomSrc);else if(!$.font?.has(w._snapdomSrc))try{let S=await Y(w._snapdomSrc,{as:"dataURL",useProxy:o,silent:!0});if(S.ok&&typeof S.data=="string")y=S.data,$.resource?.set(w._snapdomSrc,y),$.font?.add(w._snapdomSrc);else continue}catch{console.warn("[snapDOM] Failed to fetch dynamic font src:",w._snapdomSrc);continue}}p+=`@font-face{font-family:'${x}';src:url(${y});font-style:${w.style||"normal"};font-weight:${w.weight||"normal"};}`}}catch{}for(let w of n){if(!w||typeof w!="object")continue;let x=String(w.family||"").replace(/^['"]+|['"]+$/g,"");if(!x||te(x)||!l.has(x.toLowerCase())||r?.families&&r.families.some(k=>String(k).toLowerCase()===x.toLowerCase()))continue;let y=w.weight!=null?String(w.weight):"normal",S=w.style!=null?String(w.style):"normal",A=w.stretchPct!=null?`${w.stretchPct}%`:"100%",v=String(w.src||""),C=v;if(!C.startsWith("data:")){if($.resource?.has(v))C=$.resource.get(v),$.font?.add(v);else if(!$.font?.has(v))try{let k=await Y(v,{as:"dataURL",useProxy:o,silent:!0});if(k.ok&&typeof k.data=="string")C=k.data,$.resource?.set(v,C),$.font?.add(v);else continue}catch{console.warn("[snapDOM] Failed to fetch localFonts src:",v);continue}}p+=`@font-face{font-family:'${x}';src:url(${C});font-style:${S};font-weight:${y};font-stretch:${A};}`}return p&&(p=$i(p),$.resource?.set(c,p)),p}function $r(e){let t=new Set;if(!e)return t;let r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),n=a=>{let l=hi(a.fontFamily);if(l.length)for(let u of l){let s=(c,f,m)=>`${u}__${We(c)}__${Ie(f)}__${pi(m)}`;t.add(s(a.fontWeight,a.fontStyle,a.fontStretch))}};n(getComputedStyle(e));let o=getComputedStyle(e,"::before");o&&o.content&&o.content!=="none"&&n(o);let i=getComputedStyle(e,"::after");for(i&&i.content&&i.content!=="none"&&n(i);r.nextNode();){let a=r.currentNode,l=getComputedStyle(a);n(l);let u=getComputedStyle(a,"::before");u&&u.content&&u.content!=="none"&&n(u);let s=getComputedStyle(a,"::after");s&&s.content&&s.content!=="none"&&n(s)}return t}function Ei(e){let t=new Set,r=o=>{if(o)for(let i of o)t.add(i.codePointAt(0))},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;n.nextNode();){let o=n.currentNode;if(o.nodeType===Node.TEXT_NODE)r(o.nodeValue||"");else if(o.nodeType===Node.ELEMENT_NODE){let i=o;for(let a of["::before","::after"]){let l=getComputedStyle(i,a)?.getPropertyValue("content");if(!(!l||l==="none"))if(/^"/.test(l)||/^'/.test(l))r(l.slice(1,-1));else{let u=l.match(/\\[0-9A-Fa-f]{1,6}/g);if(u)for(let s of u)try{t.add(parseInt(s.slice(1),16))}catch{}}}}}return t}async function Mr(e,t=2,r=document){try{await r.fonts.ready}catch{}let n=Array.from(e||[]).filter(Boolean);if(n.length===0)return;let o=()=>{let i=r.createElement("div");i.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;";for(let a of n){let l=r.createElement("span");l.textContent="AaBbGg1234ÁÉÍÓÚçñ—∞",l.style.fontFamily=`"${a}"`,l.style.fontWeight="700",l.style.fontStyle="italic",l.style.fontSize="32px",l.style.lineHeight="1",l.style.whiteSpace="nowrap",l.style.margin="0",l.style.padding="0",i.appendChild(l)}r.body.appendChild(i),i.offsetWidth,r.body.removeChild(i)};for(let i=0;i<Math.max(1,t);i++)o(),await new Promise(a=>requestAnimationFrame(()=>requestAnimationFrame(a)))}U();function Fi(e){return/\bcounter\s*\(|\bcounters\s*\(/.test(e||"")}function Tt(e,t=!1){let r="",n=Math.max(1,e);for(;n>0;)n--,r=String.fromCharCode(97+n%26)+r,n=Math.floor(n/26);return t?r.toUpperCase():r}function Wt(e,t=!0){let r=[[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"]],n=Math.max(1,Math.min(3999,e)),o="";for(let[i,a]of r)for(;n>=i;)o+=a,n-=i;return t?o:o.toLowerCase()}function It(e,t){switch((t||"decimal").toLowerCase()){case"decimal":return String(e);case"decimal-leading-zero":{let r=Math.abs(e);return(e<0?"-":"")+(r<10?"0":"")+String(r)}case"lower-alpha":return Tt(e,!1);case"upper-alpha":return Tt(e,!0);case"lower-roman":return Wt(e,!1);case"upper-roman":return Wt(e,!0);default:return String(e)}}function Ni(e){let t=()=>$?.session?.__counterEpoch??0,r=t(),n=new WeakMap,o=e instanceof Document?e.documentElement:e,i=m=>m&&m.tagName==="LI",a=m=>{let d=0,h=m?.parentElement;if(!h)return 0;for(let p of h.children){if(p===m)break;p.tagName==="LI"&&d++}return d},l=m=>{let d=new Map;for(let[h,p]of m)d.set(h,p.slice());return d},u=(m,d,h)=>{let p=l(m),g;try{g=h.style?.counterReset||getComputedStyle(h).counterReset}catch{}if(g&&g!=="none")for(let x of g.split(",")){let y=x.trim().split(/\s+/),S=y[0],A=Number.isFinite(Number(y[1]))?Number(y[1]):0;if(!S)continue;let v=d.get(S);if(v&&v.length){let C=v.slice();C.push(A),p.set(S,C)}else p.set(S,[A])}let b;try{b=h.style?.counterSet||getComputedStyle(h).counterSet}catch{}if(b&&b!=="none")for(let x of b.split(",")){let y=x.trim().split(/\s+/),S=y[0],A=Number.isFinite(Number(y[1]))?Number(y[1]):0;if(!S)continue;let v=p.get(S)||[];v.length===0&&v.push(0),v[v.length-1]=A,p.set(S,v)}let w;try{w=h.style?.counterIncrement||getComputedStyle(h).counterIncrement}catch{}if(w&&w!=="none")for(let x of w.split(",")){let y=x.trim().split(/\s+/),S=y[0],A=Number.isFinite(Number(y[1]))?Number(y[1]):1;if(!S)continue;let v=p.get(S)||[];v.length===0&&v.push(0),v[v.length-1]+=A,p.set(S,v)}try{if(getComputedStyle(h).display==="list-item"&&i(h)){let x=h.parentElement,y=1;if(x&&x.tagName==="OL"){let A=x.getAttribute("start"),v=Number.isFinite(Number(A))?Number(A):1,C=a(h),k=h.getAttribute("value");y=Number.isFinite(Number(k))?Number(k):v+C}else y=1+a(h);let S=p.get("list-item")||[];S.length===0&&S.push(0),S[S.length-1]=y,p.set("list-item",S)}}catch{}return p},s=(m,d,h)=>{let p=u(h,d,m);n.set(m,p);let g=p;for(let w of m.children)g=s(w,p,g);let b=new Map;for(let[w,x]of h){let y=x.length,S=g.get(w);b.set(w,S&&S.length?S.slice(0,y):x.slice())}for(let[w,x]of g)!b.has(w)&&x.length&&!d.has(w)&&b.set(w,x.slice(0,1));return b},c=new Map;s(o,c,c);function f(){let m=t();if(m!==r){r=m;let d=new Map;s(o,d,d)}}return{get(m,d){f();let h=n.get(m)?.get(d);return h&&h.length?h[h.length-1]:0},getStack(m,d){f();let h=n.get(m)?.get(d);return h?h.slice():[]}}}function Li(e,t,r){if(!e||e==="none")return e;try{let n=/\b(counter|counters)\s*\(([^)]+)\)/g;return e.replace(n,(o,i,a)=>{let l=String(a).split(",").map(u=>u.trim());if(i==="counter"){let u=l[0]?.replace(/^["']|["']$/g,""),s=(l[1]||"decimal").toLowerCase(),c=r.get(t,u);return It(c,s)}else{let u=l[0]?.replace(/^["']|["']$/g,""),s=l[1]?.replace(/^["']|["']$/g,"")??"",c=(l[2]||"decimal").toLowerCase(),f=r.getStack(t,u);return f.length?f.map(m=>It(m,c)).join(s):""}})}catch{return"- "}}be();U();var ge=new WeakMap,_t=1e3;function Pi(e,t){let r=kr(e);return t?(t.__pseudoPreflightFp!==r&&(t.__pseudoPreflight=Dt(e,r),t.__pseudoPreflightFp=r),!!t.__pseudoPreflight):Dt(e,r)}function nt(e){try{return e&&e.cssRules?e.cssRules:null}catch{return null}}function kr(e){let t=e.querySelectorAll('style,link[rel~="stylesheet"]'),r=`n:${t.length}|`,n=0;for(let i=0;i<t.length;i++){let a=t[i];if(a.tagName==="STYLE"){let l=a.textContent?a.textContent.length:0;r+=`S${l}|`;let u=a.sheet,s=u?nt(u):null;s&&(n+=s.length)}else{let l=a.getAttribute("href")||"",u=a.getAttribute("media")||"all";r+=`L${l}|m:${u}|`;let s=a.sheet,c=s?nt(s):null;c&&(n+=c.length)}}let o=e.adoptedStyleSheets;return r+=`ass:${Array.isArray(o)?o.length:0}|tr:${n}`,r}function Ot(e,t,r){let n=nt(e);if(!n)return!1;for(let o=0;o<n.length;o++){if(r.budget<=0)return!1;let i=n[o],a=i&&i.cssText?i.cssText:"";r.budget--;for(let l of t)if(a.includes(l))return!0;if(i&&i.cssRules&&i.cssRules.length)for(let l=0;l<i.cssRules.length&&r.budget>0;l++){let u=i.cssRules[l],s=u&&u.cssText?u.cssText:"";r.budget--;for(let c of t)if(s.includes(c))return!0}if(r.budget<=0)return!1}return!1}function Dt(e=document,t=kr(e)){let r=ge.get(e);if(r&&r.fingerprint===t)return r.result;let n=["::before","::after","::first-letter",":before",":after",":first-letter","counter(","counters(","counter-increment","counter-reset"],o=e.querySelectorAll("style");for(let a=0;a<o.length;a++){let l=o[a].textContent||"";for(let u of n)if(l.includes(u))return ge.set(e,{fingerprint:t,result:!0}),!0}let i=e.adoptedStyleSheets;if(Array.isArray(i)&&i.length){let a={budget:_t};try{for(let l of i)if(Ot(l,n,a))return ge.set(e,{fingerprint:t,result:!0}),!0}catch{}}{let a=e.querySelectorAll('style,link[rel~="stylesheet"]'),l={budget:_t};for(let u=0;u<a.length&&l.budget>0;u++){let s=a[u],c=null;if(s.tagName,c=s.sheet||null,c&&Ot(c,n,l))return ge.set(e,{fingerprint:t,result:!0}),!0}}return e.querySelector('[style*="counter("], [style*="counters("]')?(ge.set(e,{fingerprint:t,result:!0}),!0):(ge.set(e,{fingerprint:t,result:!1}),!1)}var ye=new WeakMap;function Ut(e){for(let t of["Top","Right","Bottom","Left"]){let r=parseFloat(e[`border${t}Width`])||0,n=e[`border${t}Style`];if(r>0&&n&&n!=="none"&&n!=="hidden")return!0}return!1}var Ht=-1;function Ri(e){if(!e)return"";let t=[],r=/"([^"]*)"/g,n=0,o;for(;o=r.exec(e);){let a=e.slice(n,o.index).trim();a&&t.push(a),t.push(o[1]),n=r.lastIndex}let i=e.slice(n).trim();return i&&t.push(i),t.join("")}function it(e,t){let r=e.parentElement,n=r?ye.get(r):null;return n?{get(o,i){let a=t.get(o,i),l=n.get(i);return typeof l=="number"?Math.max(a,l):a},getStack(o,i){let a=t.getStack(o,i);if(!a.length)return a;let l=n.get(i);if(typeof l=="number"){let u=a.slice();return u[u.length-1]=Math.max(u[u.length-1],l),u}return a}}:t}function ot(e,t,r){let n=new Map;function o(s){let c=[];if(!s||s==="none")return c;for(let f of String(s).split(",")){let m=f.trim().split(/\s+/),d=m[0],h=Number.isFinite(Number(m[1]))?Number(m[1]):void 0;d&&c.push({name:d,num:h})}return c}let i=o(t?.counterReset),a=o(t?.counterSet),l=o(t?.counterIncrement);function u(s){if(n.has(s))return n.get(s).slice();let c=r.getStack(e,s);c=c.length?c.slice():[];let f=i.find(h=>h.name===s);if(f){let h=Number.isFinite(f.num)?f.num:0;c=c.length?[...c,h]:[h]}let m=a.find(h=>h.name===s);if(m){let h=Number.isFinite(m.num)?m.num:0;c.length===0&&(c=[0]),c[c.length-1]=h}let d=l.find(h=>h.name===s);if(d){let h=Number.isFinite(d.num)?d.num:1;c.length===0&&(c=[0]),c[c.length-1]+=h}return n.set(s,c.slice()),c}return{get(s,c){let f=u(c);return f.length?f[f.length-1]:0},getStack(s,c){return u(c)},__incs:l}}function Ti(e,t,r){let n;try{n=X(e,t)}catch{}let o=n?.content;if(!o||o==="none"||o==="normal")return{text:"",incs:[]};let i=it(e,r),a=ot(e,n,i),l=Fi(o)?Li(o,e,a):o;return{text:Ri(l),incs:a.__incs||[]}}async function at(e,t,r,n){if(!(e instanceof Element)||!(t instanceof Element)||e instanceof HTMLTextAreaElement)return;let o=e.ownerDocument||document;if(!Pi(o,r))return;let i=$?.session?.__counterEpoch??0;if(Ht!==i&&(ye=new WeakMap,r&&(r.__counterCtx=null),Ht=i),!r.__counterCtx)try{r.__counterCtx=Ni(e.ownerDocument||document)}catch(u){P(r,"buildCounterContext failed",u)}let a=r.__counterCtx;for(let u of["::before","::after","::first-letter"])try{let s=X(e,u);if(!s||s.content==="none"&&s.backgroundImage==="none"&&s.backgroundColor==="transparent"&&!Ut(s)&&(!s.transform||s.transform==="none")&&s.display==="inline")continue;if(u==="::first-letter"){let E=X(e),L=(E?.display||"").toLowerCase();if(L.includes("flex")||L.includes("grid")||!(s.color!==E.color||s.fontSize!==E.fontSize||s.fontWeight!==E.fontWeight||s.fontFamily!==E.fontFamily||s.fontStyle!==E.fontStyle||s.textTransform!==E.textTransform||s.float!==E.float||s.paddingTop!==E.paddingTop||s.paddingRight!==E.paddingRight||s.paddingBottom!==E.paddingBottom||s.paddingLeft!==E.paddingLeft||s.marginTop!==E.marginTop||s.marginRight!==E.marginRight||s.marginBottom!==E.marginBottom||s.marginLeft!==E.marginLeft))continue;let R=Array.from(t.childNodes).find(we=>we.nodeType===Node.TEXT_NODE&&we.textContent?.trim().length>0);if(!R)continue;let _=R.textContent,V=_.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u)?.[0],de=_.slice(V?.length||0);if(!V||/[\uD800-\uDFFF]/.test(V))continue;let K=document.createElement("span");K.textContent=V,K.dataset.snapdomPseudo="::first-letter";let me=vt(s),he=Ge(me,"span");r.styleMap.set(K,he);let se=document.createTextNode(de);t.replaceChild(se,R),t.insertBefore(K,se);continue}let c=s.content??"",f=c===""||c==="none"||c==="normal",{text:m,incs:d}=Ti(e,u,a),h=s.backgroundImage,p=s.backgroundColor,g=s.fontFamily,b=parseInt(s.fontSize)||32,w=parseInt(s.fontWeight)||!1,x=s.color||"#000",y=s.transform,S=te(g),A=!f&&m!=="",v=h&&h!=="none",C=p&&p!=="transparent"&&p!=="rgba(0, 0, 0, 0)",k=Ut(s),I=y&&y!=="none",W=c!=="none"&&c!=="normal"&&((parseFloat(s.width)||0)>0||(parseFloat(s.height)||0)>0);if(!(A||v||C||k||I||W)){if(d&&d.length&&e.parentElement){let E=ye.get(e.parentElement)||new Map;for(let{name:L}of d){if(!L)continue;let R=it(e,a),_=ot(e,X(e,u),R).get(e,L);E.set(L,_)}ye.set(e.parentElement,E)}continue}let O=!1;if(A&&!S&&m.length>1&&!m.startsWith("url(")){let E=X(e),L=parseFloat(E.fontSize)||16,R=parseFloat(E.lineHeight);Number.isFinite(R)||(R=L*1.5),e.getBoundingClientRect().height<R*1.6&&(t.style.whiteSpace="nowrap",O=!0)}let F=document.createElement("span");F.dataset.snapdomPseudo=u,F.style.pointerEvents="none",O&&(F.style.whiteSpace="nowrap");let H=vt(s),N=Ge(H,"span");if(r.styleMap.set(F,N),S&&m&&m.length===1){let{dataUrl:E,width:L,height:R}=await di(m,g,w,b,x),_=document.createElement("img");_.src=E,_.style=`height:${b}px;width:${L/R*b}px;object-fit:contain;`,F.appendChild(_),t.dataset.snapdomHasIcon="true"}else if(m&&m.startsWith("url(")){let E=st(m);if(E?.trim())try{let L=await Y(_e(E),{as:"dataURL",useProxy:n.useProxy});if(L?.ok&&typeof L.data=="string"){let R=document.createElement("img");R.src=L.data,R.style=`width:${b}px;height:auto;object-fit:contain;`,F.appendChild(R)}}catch(L){console.error(`[snapdom] Error in pseudo ${u} for`,e,L)}}else!S&&A&&(F.textContent=m);F.style.backgroundImage="none","maskImage"in F.style&&(F.style.maskImage="none"),"webkitMaskImage"in F.style&&(F.style.webkitMaskImage="none");try{F.style.backgroundRepeat=s.backgroundRepeat,F.style.backgroundSize=s.backgroundSize,s.backgroundPositionX&&s.backgroundPositionY?(F.style.backgroundPositionX=s.backgroundPositionX,F.style.backgroundPositionY=s.backgroundPositionY):F.style.backgroundPosition=s.backgroundPosition,F.style.backgroundOrigin=s.backgroundOrigin,F.style.backgroundClip=s.backgroundClip,F.style.backgroundAttachment=s.backgroundAttachment,F.style.backgroundBlendMode=s.backgroundBlendMode}catch{}if(v)try{let E=Ke(h),L=await Promise.all(E.map(Yt));F.style.backgroundImage=L.join(", ")}catch(E){console.warn(`[snapdom] Failed to inline background-image for ${u}`,E)}C&&(F.style.backgroundColor=p);let D=F.childNodes.length>0||F.textContent?.trim()!==""||v||C||k||I||W;if(d&&d.length&&e.parentElement){let E=ye.get(e.parentElement)||new Map,L=it(e,a),R=ot(e,X(e,u),L);for(let{name:_}of d){if(!_)continue;let V=R.get(e,_);E.set(_,V)}ye.set(e.parentElement,E)}if(!D)continue;u==="::before"?(t.dataset.snapdomHasBefore="1",t.insertBefore(F,t.firstChild)):(t.dataset.snapdomHasAfter="1",t.appendChild(F))}catch(s){console.warn(`[snapdom] Failed to capture ${u} for`,e,s)}let l=Array.from(t.children).filter(u=>!u.dataset.snapdomPseudo);if(r.nodeMap)for(let u of l){let s=r.nodeMap.get(u);s instanceof Element&&await at(s,u,r,n)}else{let u=Array.from(e.children);for(let s=0;s<Math.min(u.length,l.length);s++)await at(u[s],l[s],r,n)}}function Wi(e,t){if(!e||!(e instanceof Element))return;let r=e.ownerDocument||document,n=r,o=e instanceof SVGSVGElement?[e]:Array.from(e.querySelectorAll("svg"));if(o.length===0)return;let i=/url\(\s*#([^)]+)\)/g,a=["fill","stroke","filter","clip-path","mask","marker","marker-start","marker-mid","marker-end"],l=y=>window.CSS&&CSS.escape?CSS.escape(y):y.replace(/[^a-zA-Z0-9_-]/g,"\\$&"),u="http://www.w3.org/1999/xlink",s=y=>{if(!y||!y.getAttribute)return null;let S=y.getAttribute("href")||y.getAttribute("xlink:href")||(typeof y.getAttributeNS=="function"?y.getAttributeNS(u,"href"):null);if(S)return S;let A=y.attributes;if(!A)return null;for(let v=0;v<A.length;v++){let C=A[v];if(!C||!C.name)continue;if(C.name==="href")return C.value;let k=C.name.indexOf(":");if(k!==-1&&C.name.slice(k+1)==="href")return C.value}return null},c=new Set(Array.from(e.querySelectorAll("[id]")).map(y=>y.id)),f=new Set,m=!1,d=(y,S=null)=>{if(!y)return;i.lastIndex=0;let A;for(;A=i.exec(y);){m=!0;let v=(A[1]||"").trim();v&&(c.has(v)||(f.add(v),S&&!S.has(v)&&S.add(v)))}},h=y=>{let S=y.querySelectorAll("use");for(let v of S){let C=s(v);if(!C||!C.startsWith("#"))continue;m=!0;let k=C.slice(1).trim();k&&!c.has(k)&&f.add(k)}let A=y.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');for(let v of A){d(v.getAttribute("style")||"");for(let C of a)d(v.getAttribute(C))}};for(let y of o)h(y);if(!m)return;let p=e.querySelector("svg.inline-defs-container");p||(p=r.createElementNS("http://www.w3.org/2000/svg","svg"),p.classList.add("inline-defs-container"),p.setAttribute("aria-hidden","true"),p.setAttribute("style","position:absolute;width:0;height:0;overflow:hidden"),e.insertBefore(p,e.firstChild||null));let g=p.querySelector("defs")||null,b=y=>{if(!y||c.has(y))return null;let S=l(y),A=v=>{let C=n.querySelector(v);return C&&!e.contains(C)?C:null};return A(`svg defs > *#${S}`)||A(`svg > symbol#${S}`)||A(`*#${S}`)};if(!f.size)return;let w=new Set(f),x=new Set;for(;w.size;){let y=w.values().next().value;if(w.delete(y),!y||c.has(y)||x.has(y))continue;let S=b(y);if(!S){x.add(y);continue}g||(g=r.createElementNS("http://www.w3.org/2000/svg","defs"),p.appendChild(g));let A=S.cloneNode(!0);A.id||A.setAttribute("id",y),g.appendChild(A),x.add(y),c.add(y);let v=[A,...A.querySelectorAll("*")];for(let C of v){let k=s(C);if(k&&k.startsWith("#")){let W=k.slice(1).trim();W&&!c.has(W)&&!x.has(W)&&w.add(W)}let I=C.getAttribute?.("style")||"";I&&d(I,w);for(let W of a){let O=C.getAttribute?.(W);O&&d(O,w)}}}}U();function Ii(e,t){if(!e||!t)return;let r=e.scrollTop||0;if(!r)return;getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=e.getBoundingClientRect(),o=e.clientHeight,i="data-snap-ph",a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;a.nextNode();){let l=a.currentNode,u=getComputedStyle(l),s=u.position;if(s!=="sticky"&&s!=="-webkit-sticky")continue;let c=jt(u.top),f=jt(u.bottom);if(c==null&&f==null)continue;let m=_i(l,e),d=Oi(t,m,i);if(!d)continue;let h=l.getBoundingClientRect(),p=h.width,g=h.height,b=h.left-n.left;if(!(p>0&&g>0)||!Number.isFinite(b))continue;let w=c!=null?c+r:r+(o-g-f);if(!Number.isFinite(w))continue;let x=Number.parseInt(u.zIndex,10),y=Number.isFinite(x),S=y?Math.max(x,1)+1:2,A=y?x-1:0,v=d.cloneNode(!1);v.setAttribute(i,"1"),v.style.position="sticky",v.style.left=`${b}px`,v.style.top=`${w}px`,v.style.width=`${p}px`,v.style.height=`${g}px`,v.style.visibility="hidden",v.style.zIndex=String(A),v.style.overflow="hidden",v.style.background="transparent",v.style.boxShadow="none",v.style.filter="none",d.parentElement?.insertBefore(v,d),d.style.position="absolute",d.style.left=`${b}px`,d.style.top=`${w}px`,d.style.bottom="auto",d.style.zIndex=String(S),d.style.pointerEvents="none"}}function jt(e){if(!e||e==="auto")return null;let t=Number.parseFloat(e);return Number.isFinite(t)?t:null}function _i(e,t){let r=[];for(let n=e;n&&n!==t;){let o=n.parentElement;if(!o)break;r.push(Array.prototype.indexOf.call(o.children,n)),n=o}return r.reverse()}function Oi(e,t,r){let n=e;for(let o=0;o<t.length;o++)if(n=Di(n,r)[t[o]],!n)return null;return n instanceof HTMLElement?n:null}function Di(e,t){let r=[],n=e.children;for(let o=0;o<n.length;o++){let i=n[o];i.hasAttribute(t)||r.push(i)}return r}function Ui(e){let t=getComputedStyle(e),r=t.outlineStyle,n=t.outlineWidth,o=t.borderStyle,i=t.borderWidth,a=r!=="none"&&parseFloat(n)>0,l=o==="none"||parseFloat(i)===0;a&&l&&(e.style.border=`${n} solid transparent`)}function Hi(e){let t=[];try{let r=e.querySelectorAll("*");for(let n of r){if(!(n instanceof HTMLElement))continue;let o=n.style.contentVisibility||"",i=getComputedStyle(n),a=i.contentVisibility||i.getPropertyValue("content-visibility")||"";(a==="auto"||a==="hidden")&&(t.push({el:n,original:o}),n.style.contentVisibility="visible")}if(e instanceof HTMLElement){let n=getComputedStyle(e),o=n.contentVisibility||n.getPropertyValue("content-visibility")||"";(o==="auto"||o==="hidden")&&(t.push({el:e,original:e.style.contentVisibility||""}),e.style.contentVisibility="visible")}}catch{}return()=>{for(let{el:r,original:n}of t)try{r.style.contentVisibility=n}catch{}}}async function ji(e,t={}){let r={styleMap:$.session.styleMap,styleCache:$.session.styleCache,nodeMap:$.session.nodeMap,options:t},n,o="",i="";Ui(e);let a=Hi(e);try{n=await Te(e,r,t)}catch(s){throw console.warn("deepClone failed:",s),s}finally{a()}try{Wi(n)}catch(s){console.warn("inlineExternal defs or symbol failed:",s)}try{await at(e,n,r,t)}catch(s){console.warn("inlinePseudoElements failed:",s)}await ti(n,r);try{let s=n.querySelectorAll("style[data-sd]");for(let c of s)i+=c.textContent||"",c.remove()}catch(s){P(r,"Failed to extract shadow CSS from style[data-sd]",s)}let l=sn(r.styleMap);o=Array.from(l.entries()).map(([s,c])=>`.${c}{${s}}`).join(""),o=i+"[data-snapdom-has-after]::after,[data-snapdom-has-before]::before{content:none!important;display:none!important}"+o;for(let[s,c]of r.styleMap.entries()){if(s.tagName==="STYLE")continue;if(s.getRootNode&&s.getRootNode()instanceof ShadowRoot){s.setAttribute("style",c.replace(/;/g,"; "));continue}let f=l.get(c);f&&s.classList.add(f);let m=s.style?.backgroundImage,d=s.dataset?.snapdomHasIcon;m&&m!=="none"&&(s.style.backgroundImage=m),d&&(s.style.verticalAlign="middle",s.style.display="inline")}for(let[s,c]of r.nodeMap.entries()){let f=c.scrollLeft,m=c.scrollTop;if((f||m)&&s instanceof HTMLElement){s.style.overflow="hidden",s.style.scrollbarWidth="none",s.style.msOverflowStyle="none";try{let h=s.querySelectorAll("*");for(let p of h){if(!(p instanceof HTMLElement))continue;let g=p.style.position;if(g==="fixed"||g==="absolute"){let b=parseFloat(p.style.top)||0,w=parseFloat(p.style.left)||0;p.style.top=`${b+m}px`,p.style.left=`${w+f}px`,g==="fixed"&&(p.style.position="absolute")}}}catch{}let d=document.createElement("div");for(d.style.all="unset",d.style.transform=`translate(${-f}px, ${-m}px)`,d.style.willChange="transform",d.style.display="inline-block",d.style.width="100%";s.firstChild;)d.appendChild(s.firstChild);s.appendChild(d)}}let u=n instanceof HTMLElement&&n.firstElementChild instanceof HTMLElement?n.firstElementChild:n;if(Ii(e,u),e===r.nodeMap.get(n)){let s=r.styleCache.get(e)||X(e);r.styleCache.set(e,s);let c=Gr(s.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=c||""}for(let[s,c]of r.nodeMap.entries())c.tagName==="PRE"&&(s.style.marginTop="0",s.style.marginBlockStart="0");return{clone:n,classCSS:o,styleCache:r.styleCache}}be();U();var Er="http://www.w3.org/1999/xlink";function qi(e){return e.getAttribute("href")||e.getAttribute("xlink:href")||(typeof e.getAttributeNS=="function"?e.getAttributeNS(Er,"href"):null)}function zi(e){let t=parseInt(e.dataset?.snapdomWidth||"",10)||0,r=parseInt(e.dataset?.snapdomHeight||"",10)||0,n=parseInt(e.getAttribute("width")||"",10)||0,o=parseInt(e.getAttribute("height")||"",10)||0,i=parseFloat(e.style?.width||"")||0,a=parseFloat(e.style?.height||"")||0,l=t||i||n||e.width||e.naturalWidth||100,u=r||a||o||e.height||e.naturalHeight||100;return{width:l,height:u}}async function Vi(e,t={}){let r=Array.from(e.querySelectorAll("img")),n=async l=>{if(!l.getAttribute("src")){let h=l.currentSrc||l.src||"";h&&l.setAttribute("src",h)}l.removeAttribute("srcset"),l.removeAttribute("sizes");let u=l.src||"";if(!u)return;let s=$.image?.get(u);if(s){l.src=s,l.width||(l.width=l.naturalWidth||100),l.height||(l.height=l.naturalHeight||100);return}let c=await Y(u,{as:"dataURL",useProxy:t.useProxy});if(c.ok&&typeof c.data=="string"&&c.data.startsWith("data:")){$.image?.set(u,c.data),l.src=c.data,l.width||(l.width=l.naturalWidth||100),l.height||(l.height=l.naturalHeight||100);return}let{width:f,height:m}=zi(l),{fallbackURL:d}=t||{};if(d)try{let h=typeof d=="function"?await d({width:f,height:m,src:u,element:l}):d;if(h){let p=await Y(h,{as:"dataURL",useProxy:t.useProxy});if(p?.ok&&typeof p.data=="string"){l.src=p.data,l.width||(l.width=f),l.height||(l.height=m);return}}}catch{}if(t.placeholders!==!1){let h=document.createElement("div");h.style.cssText=[`width:${f}px`,`height:${m}px`,"background:#ccc","display:inline-block","text-align:center",`line-height:${m}px`,"color:#666","font-size:12px","overflow:hidden"].join(";"),h.textContent="img",l.replaceWith(h)}else{let h=document.createElement("div");h.style.cssText=`display:inline-block;width:${f}px;height:${m}px;visibility:hidden;`,l.replaceWith(h)}},o=6;for(let l=0;l<r.length;l+=o){let u=r.slice(l,l+o).map(n);await Promise.allSettled(u)}let i=Array.from(e.querySelectorAll("image")),a=async l=>{let u=qi(l);if(!u||u.startsWith("data:")||u.startsWith("blob:"))return;let s=await Y(u,{as:"dataURL",useProxy:t.useProxy});s.ok&&typeof s.data=="string"&&s.data.startsWith("data:")&&(l.setAttribute("href",s.data),l.removeAttribute("xlink:href"),typeof l.removeAttributeNS=="function"&&l.removeAttributeNS(Er,"href"))};for(let l=0;l<i.length;l+=o){let u=i.slice(l,l+o).map(a);await Promise.allSettled(u)}}G();U();async function Bi(e,t,r,n={}){let o=[[e,t]],i=["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"],a=["mask-position","mask-size","mask-repeat","mask-mode","mask-composite","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","-webkit-mask-composite","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],l=["background-position","background-position-x","background-position-y","background-size","background-repeat","background-origin","background-clip","background-attachment","background-blend-mode"],u=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;o.length;){let[s,c]=o.shift();if(!c)continue;let f=r.get(s)||X(s);r.has(s)||r.set(s,f);let m=(()=>{let p=f.getPropertyValue("border-image"),g=f.getPropertyValue("border-image-source");return p&&p!=="none"||g&&g!=="none"})(),d=f.getPropertyValue("background-image"),h=f.getPropertyValue("background-color");if(d&&d!=="none"||h&&h!=="rgba(0, 0, 0, 0)"&&h!=="transparent"||/url\s*\(|gradient\s*\(/i.test(f.getPropertyValue("background")||""))for(let p of l){let g=f.getPropertyValue(p);g&&c.style.setProperty(p,g)}for(let p of i){let g=f.getPropertyValue(p);if(p==="background-image"&&(!g||g==="none")){let x=f.getPropertyValue("background");x&&/url\s*\(/.test(x)&&(g=Ke(x).filter(y=>/url\s*\(/.test(y)).join(", ")||g)}if(!g||g==="none")continue;let b=Ke(g),w=await Promise.all(b.map(x=>Yt(x,n)));w.some(x=>x&&x!=="none"&&!/^url\(undefined/.test(x))&&c.style.setProperty(p,w.join(", "))}for(let p of a){let g=f.getPropertyValue(p);!g||g==="initial"||c.style.setProperty(p,g)}if(m)for(let p of u){let g=f.getPropertyValue(p);!g||g==="initial"||c.style.setProperty(p,g)}if(s.shadowRoot){let p=Array.from(s.shadowRoot.children).filter(b=>b.tagName!=="STYLE"),g=Array.from(c.children).filter(b=>!b.dataset?.snapdomPseudo&&!(b.tagName==="STYLE"&&b.dataset?.sd));for(let b=0;b<Math.min(p.length,g.length);b++)o.push([p[b],g[b]])}else{let p=$.session.nodeMap;for(let g of c.children){let b=p.get(g);b&&o.push([b,g])}}}}G();U();function Xi(e){if(!e)return()=>{};let t=[];function r(n){let o=getComputedStyle(n),i=Yi(n,o);i&&t.push(i);let a=Gi(n,o);a&&t.push(a);for(let l of n.children||[])r(l)}return r(e),()=>t.forEach(n=>n())}function Yi(e,t){if(!e)return()=>{};t=t||getComputedStyle(e);let r=Ki(t);if(r<=0)return()=>{};if(!Fr(e))return()=>{};let n=e.textContent??"",o=n,i=Ji(t);e.textContent="X";let a=e.scrollHeight-i;e.textContent=n;let l=a>0?a:Qi(t),u=Math.round(l*r+i);if(e.scrollHeight<=u+.5)return()=>{};let s=0,c=n.length,f=-1;for(;s<=c;){let m=s+c>>1;e.textContent=n.slice(0,m)+"…",e.scrollHeight<=u+.5?(f=m,s=m+1):c=m-1}return e.textContent=(f>=0?n.slice(0,f):"")+"…",()=>{e.textContent=o}}function Gi(e,t){if(!e)return()=>{};if(t=t||getComputedStyle(e),t.textOverflow!=="ellipsis")return()=>{};if(t.whiteSpace!=="nowrap"&&t.whiteSpace!=="pre")return()=>{};if(t.overflowX!=="hidden"&&t.overflowX!=="clip")return()=>{};if(!Fr(e))return()=>{};if(e.scrollWidth<=e.clientWidth+.5)return()=>{};let r=e.textContent??"",n=r,o=0,i=r.length,a=-1;for(;o<=i;){let l=o+i>>1;e.textContent=r.slice(0,l)+"…",e.scrollWidth<=e.clientWidth+.5?(a=l,o=l+1):i=l-1}return e.textContent=(a>=0?r.slice(0,a):"")+"…",()=>{e.textContent=n}}function Ki(e){let t=e.getPropertyValue("-webkit-line-clamp")||e.getPropertyValue("line-clamp");t=(t||"").trim();let r=parseInt(t,10);return Number.isFinite(r)&&r>0?r:0}function Qi(e){let t=(e.lineHeight||"").trim(),r=parseFloat(e.fontSize)||16;return!t||t==="normal"?Math.round(r*1.2):t.endsWith("px")?parseFloat(t):/^\d+(\.\d+)?$/.test(t)?Math.round(parseFloat(t)*r):t.endsWith("%")?Math.round(parseFloat(t)/100*r):Math.round(r*1.2)}function Ji(e){return(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0)}function Fr(e){return e.childElementCount>0?!1:Array.from(e.childNodes).some(t=>t.nodeType===Node.TEXT_NODE)}var $e=[];function pt(e){if(!e)return null;if(Array.isArray(e)){let[t,r]=e;return typeof t=="function"?t(r):t}if(typeof e=="object"&&"plugin"in e){let{plugin:t,options:r}=e;return typeof t=="function"?t(r):t}return typeof e=="function"?e():e}function Zi(...e){let t=e.flat();for(let r of t){let n=pt(r);n&&($e.some(o=>o&&o.name&&n.name&&o.name===n.name)||$e.push(n))}}function Nr(e){return e&&Array.isArray(e.plugins)?e.plugins:$e}async function ae(e,t,r){let n=r,o=Nr(t);for(let i of o){let a=i&&typeof i[e]=="function"?i[e]:null;if(!a)continue;let l=await a(t,n);typeof l<"u"&&(n=l)}return n}async function eo(e,t,r){let n=[],o=Nr(t);for(let i of o){let a=i&&typeof i[e]=="function"?i[e]:null;if(!a)continue;let l=await a(t,r);typeof l<"u"&&n.push(l)}return n}function to(e){let t=[];if(Array.isArray(e))for(let r of e){let n=pt(r);if(!n||!n.name)continue;let o=t.findIndex(i=>i&&i.name===n.name);o>=0&&t.splice(o,1),t.push(n)}for(let r of $e)r&&r.name&&!t.some(n=>n.name===r.name)&&t.push(r);return Object.freeze(t)}function ro(e,t,r=!1){return!e||e.plugins&&!r||(e.plugins=to(t)),e}function no(){return $e.slice()}function fe(e){return!!(!e||e.startsWith("data:")||e.startsWith("blob:")||/^data:image\/(gif|png|svg)/.test(e)&&e.length<200)}function io(e,t){return!e||!(e instanceof Element)?!1:e.querySelector("picture")?!0:t?!!e.querySelector("img[data-src], img[data-lazy-src], img[data-original], img[data-hi-res-src], img[data-srcset], img[data-lazy-srcset]"):!1}function oo(e,t){let r=e.currentSrc||"";if(r&&!fe(r))return r;let n=t.querySelectorAll("source[srcset]"),o=null;for(let i of n){let a=i.getAttribute("srcset");if(!a||fe(a))continue;let l=i.getAttribute("media");if(l)try{if(window.matchMedia(l).matches)return a.split(",")[0].trim().split(/\s+/)[0]}catch{}o||(o=a.split(",")[0].trim().split(/\s+/)[0])}return o}function ao(e){let t=[e.getAttribute("data-src"),e.getAttribute("data-lazy-src"),e.getAttribute("data-original"),e.getAttribute("data-hi-res-src")];for(let n of t)if(n&&!fe(n))return n;let r=e.getAttribute("data-srcset")||e.getAttribute("data-lazy-srcset");if(r){let n=r.split(",")[0].trim().split(/\s+/)[0];if(n&&!fe(n))return n}return null}function lo(e={}){let t=e.pictureResolver&&typeof e.pictureResolver=="object"?e.pictureResolver:{};return{timeout:t.timeout??5e3,concurrency:t.concurrency??4,resolveLazySrc:t.resolveLazySrc!==!1,silent:t.silent??!1,useProxy:typeof e.useProxy=="string"?e.useProxy:""}}async function so(e,t={}){if(!e||!(e instanceof Element)||t.resolvePicturePlaceholders===!1)return null;let{timeout:r,concurrency:n,resolveLazySrc:o,silent:i,useProxy:a}=lo(t);if(!io(e,o))return null;let l=[],u=[];async function s(m){let d=new AbortController,h=setTimeout(()=>d.abort(),r);try{let p=await fetch(m,{credentials:"include",signal:d.signal});if(!p.ok&&a){let b=a.includes("{url}")?a.replace("{url}",encodeURIComponent(m)):a.endsWith("?")?`${a}${encodeURIComponent(m)}`:`${a}${a.includes("?")?"&":"?"}url=${encodeURIComponent(m)}`;p=await fetch(b,{signal:d.signal})}if(!p.ok)return null;let g=await p.blob();return await new Promise((b,w)=>{let x=new FileReader;x.onload=()=>b(x.result),x.onerror=w,x.readAsDataURL(g)})}catch{return null}finally{clearTimeout(h)}}async function c(m){for(let d=0;d<m.length;d+=n){let h=m.slice(d,d+n);await Promise.allSettled(h.map(p=>p()))}}let f=e.querySelectorAll("picture");for(let m of f){let d=m.querySelector("img");if(!d)continue;let h=d.getAttribute("src")||"";if(!fe(h))continue;let p=oo(d,m);p&&u.push(async()=>{let g=await s(p);if(!g){i||console.warn(`[snapdom:picture-resolver] Failed to fetch: ${p.slice(0,60)}`);return}let b=d.getAttribute("src"),w=d.getAttribute("srcset"),x=d.getAttribute("sizes"),y=[];d.src=g,d.setAttribute("src",g),d.removeAttribute("srcset"),d.removeAttribute("sizes");let S=m.querySelectorAll("source");for(let A of S)y.push({el:A,parent:A.parentElement,next:A.nextSibling}),A.remove();l.push(()=>{b!==null?d.setAttribute("src",b):d.removeAttribute("src"),w!==null&&d.setAttribute("srcset",w),x!==null&&d.setAttribute("sizes",x);for(let{el:A,parent:v,next:C}of y)v&&v.insertBefore(A,C)})})}if(o){let m=e.querySelectorAll("img");for(let d of m){if(d.closest("picture")&&fe(d.getAttribute("src")||""))continue;let h=d.getAttribute("src")||"",p=ao(d);p&&fe(h)&&u.push(async()=>{let g=await s(p);if(!g)return;let b=d.getAttribute("src");d.src=g,d.setAttribute("src",g),d.removeAttribute("srcset"),d.removeAttribute("sizes"),l.push(()=>{b!==null?d.setAttribute("src",b):d.removeAttribute("src")})})}}return u.length===0?null:(await c(u),async function(){for(let m of l)try{m()}catch{}})}U();var co=.92,uo=.95;async function fo(e){let t=new Image;if(t.decoding="sync",t.src=e,typeof t.decode=="function")try{return await t.decode(),t}catch{}return await new Promise((r,n)=>{t.onload=()=>r(),t.onerror=n}),t}function mo(e){let t=/^data:([^;,]+)/.exec(e);return t?t[1]:""}async function gt(e,t,r){if(typeof e!="string"||!e.startsWith("data:image")||e.startsWith("data:image/svg"))return null;let n;try{n=await fo(e)}catch{return null}let o=n.naturalWidth||n.width,i=n.naturalHeight||n.height;if(!o||!i)return null;let a=Math.min(1,Math.max(t/o,r/i));if(!(a>0)||a>=.95)return null;let l=a*uo,u=Math.max(1,Math.round(o*l)),s=Math.max(1,Math.round(i*l)),c=document.createElement("canvas");c.width=u,c.height=s;let f=c.getContext("2d");if(!f)return null;f.imageSmoothingEnabled=!0,f.imageSmoothingQuality="high",f.drawImage(n,0,0,u,s);let m=mo(e),d=m==="image/jpeg"?"image/jpeg":m==="image/webp"?"image/webp":"image/png";try{let h=c.toDataURL(d,co);if(typeof h=="string"&&h.startsWith("data:image")&&h.length<e.length)return h}catch{}return null}async function ho(e,t){if(!t.compress)return{count:0,before:0,after:0};let r=(t.scale||1)*(t.dpr||1),n=Array.from(e.querySelectorAll("img")),o=0,i=0,a=0,l=async s=>{let c=s.getAttribute("src")||"";if(!c.startsWith("data:image")||c.startsWith("data:image/svg"))return;let f=parseFloat(s.dataset.snapdomWidth)||parseFloat(s.style.width)||s.width||0,m=parseFloat(s.dataset.snapdomHeight)||parseFloat(s.style.height)||s.height||0;if(!f||!m)return;let d=await gt(c,f*r,m*r);d&&(o++,i+=c.length,a+=d.length,s.setAttribute("src",d))},u=6;for(let s=0;s<n.length;s+=u)await Promise.allSettled(n.slice(s,s+u).map(l));return{count:o,before:i,after:a}}function po(e){let t=e.offsetWidth||e.getBoundingClientRect().width||0,r=e.offsetHeight||e.getBoundingClientRect().height||0;return{w:t,h:r}}async function go(e,t){if(!t.compress)return{count:0};let r=(t.scale||1)*(t.dpr||1),n=$.session.nodeMap,o=[],i=[e,...e.querySelectorAll("*")];for(let s of i){let c=s.style&&s.style.backgroundImage;c&&c.includes("data:image")&&o.push(s)}let a=0,l=async s=>{let c=n.get(s);if(!c||!c.isConnected)return;let f;try{f=getComputedStyle(c)}catch{return}if((f.backgroundRepeat||"repeat").toLowerCase().split(",").some(x=>x.trim()!=="no-repeat"))return;let{w:m,h:d}=po(c);if(!m||!d)return;let h=m*r,p=d*r,g=s.style.backgroundImage,b=[...g.matchAll(/url\((['"]?)(data:image\/[^)'"]+)\1\)/gi)],w=g;for(let x of b){let y=x[2];if(y.startsWith("data:image/svg"))continue;let S=await gt(y,h,p);S&&(w=w.split(y).join(S),a++)}w!==g&&(s.style.backgroundImage=w)},u=6;for(let s=0;s<o.length;s+=u)await Promise.allSettled(o.slice(s,s+u).map(l));return{count:a}}async function yo(e,t){if(!t.compress)return{count:0};let r=(t.scale||1)*(t.dpr||1),n=Array.from(e.querySelectorAll("image")),o=0,i=async l=>{let u=l.getAttribute("href")||(typeof l.getAttributeNS=="function"?l.getAttributeNS("http://www.w3.org/1999/xlink","href"):null);if(!u||!u.startsWith("data:image")||u.startsWith("data:image/svg"))return;let s=parseFloat(l.getAttribute("width"))||0,c=parseFloat(l.getAttribute("height"))||0;if(!s||!c)return;let f=await gt(u,s*r,c*r);f&&(l.setAttribute("href",f),l.hasAttribute("xlink:href")&&l.setAttribute("xlink:href",f),o++)},a=6;for(let l=0;l<n.length;l+=a)await Promise.allSettled(n.slice(l,l+a).map(i));return{count:o}}async function bo(e,t){t.compress&&(await ho(e,t),await go(e,t),await yo(e,t))}G();function wo(e,t,r={}){if(!e||!t||!t.style)return;let n=getComputedStyle(e);try{t.style.boxShadow="none"}catch(i){P(r,"stripRootShadows boxShadow",i)}try{t.style.textShadow="none"}catch(i){P(r,"stripRootShadows textShadow",i)}try{t.style.outline="none"}catch(i){P(r,"stripRootShadows outline",i)}let o=(n.filter||"").replace(/\bblur\([^()]*\)\s*/gi,"").replace(/\bdrop-shadow\([^()]*\)\s*/gi,"").trim().replace(/\s+/g," ");try{t.style.filter=o.length?o:"none"}catch(i){P(r,"stripRootShadows filter",i)}}function qt(e){let t=e.display||"";if(t.includes("flex")||t.includes("grid")||t.startsWith("table")||t==="inline-block"||t==="flow-root"||e.position==="absolute"||e.position==="fixed"||e.float&&e.float!=="none")return!0;let r=e.overflowX||e.overflow||"visible",n=e.overflowY||e.overflow||"visible";return!!(r!=="visible"||n!=="visible"||e.contain&&/\b(layout|content|paint|strict)\b/.test(e.contain))}function xo(e,t){let r=Array.from(e.childNodes),n=t==="top"?r:r.reverse();for(let o of n){if(o.nodeType===Node.TEXT_NODE){if(/\S/.test(o.textContent||""))return null;continue}if(o.nodeType!==Node.ELEMENT_NODE)continue;let i=getComputedStyle(o),a=String(i.display||"");if(!(a==="none"||a==="contents")&&!(i.position==="absolute"||i.position==="fixed"))return i.float&&i.float!=="none"||a.startsWith("inline")?null:o}return null}function So(e,t){if(!e||!t||!t.style)return;let r=getComputedStyle(e);if(!qt(r))for(let n of["top","bottom"]){let o=n==="top"?"Top":"Bottom";if((parseFloat(r[`border${o}Width`])||0)>0||(parseFloat(r[`padding${o}`])||0)>0)continue;let i=e,a=t;for(;i&&a;){let l=xo(i,n);if(!l)break;let u=Array.from(i.children).indexOf(l),s=u>=0?a.children[u]:null,c=getComputedStyle(l),f=parseFloat(c[`margin${o}`])||0;if(s&&s.style&&f>0&&(s.style[`margin${o}`]="0px"),qt(c)||(parseFloat(c[`border${o}Width`])||0)>0||(parseFloat(c[`padding${o}`])||0)>0)break;i=l,a=s}}}function vo(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),r=[];for(;t.nextNode();)r.push(t.currentNode);for(let n of r)n.remove()}function Co(e,t={}){let{stripFrameworkDirectives:r=!0}=t,n=new Set(["xml","xlink"]),o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;o.nextNode();){let i=o.currentNode;for(let a of Array.from(i.attributes)){let l=a.name;if(l.startsWith("*")){i.removeAttribute(l);continue}if(l.includes("@")){i.removeAttribute(l);continue}if(l.includes(":")){let u=l.split(":",1)[0];if(!n.has(u)){i.removeAttribute(l);continue}}if(r&&(l.startsWith("x-")||l.startsWith("v-")||l.startsWith(":")||l.startsWith("on:")||l.startsWith("bind:")||l.startsWith("let:")||l.startsWith("class:"))){i.removeAttribute(l);continue}}}}var zt=/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/g;function Ao(e){if(!e)return;let t=o=>{if(o.nodeType===Node.ELEMENT_NODE){if(o.attributes)for(let i of Array.from(o.attributes)){let a=i.value.replace(zt,"");if(a!==i.value)try{o.setAttribute(i.name,a)}catch{}}}else if(o.nodeType===Node.TEXT_NODE||o.nodeType===Node.CDATA_SECTION_NODE){let i=o.data.replace(zt,"");i!==o.data&&(o.data=i)}};t(e);let r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),n;for(;n=r.nextNode();)t(n)}function $o(e,t={}){e&&(Co(e,t),vo(e),Ao(e))}function Mo(e){try{let t=e.getAttribute?.("style")||"";return/\b(height|width|block-size|inline-size)\s*:/.test(t)}catch{return!1}}function ko(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}function Eo(e,t){if(!(e instanceof Element)||Mo(e)||ko(e))return!1;let r=t.position;if(r==="absolute"||r==="fixed"||r==="sticky")return!1;let n=t.display||"";return!(n.includes("flex")||n.includes("grid")||n.startsWith("table")||t.transform&&t.transform!=="none")}function Fo(e,t,r=new Map){function n(o,i){if(!(o instanceof Element)||!(i instanceof Element))return;let a=o.childElementCount>i.childElementCount,l=r.get(o)||getComputedStyle(o);if(r.has(o)||r.set(o,l),a&&Eo(o,l)){i.style.height||(i.style.height="auto"),i.style.width||(i.style.width="auto"),i.style.removeProperty("block-size"),i.style.removeProperty("inline-size"),i.style.minHeight||(i.style.minHeight="0"),i.style.minWidth||(i.style.minWidth="0"),i.style.maxHeight||(i.style.maxHeight="none"),i.style.maxWidth||(i.style.maxWidth="none");let c=l.overflowY||l.overflowBlock||"visible",f=l.overflowX||l.overflowInline||"visible";(c!=="visible"||f!=="visible")&&(i.style.overflow="visible")}let u=Array.from(o.children),s=Array.from(i.children);for(let c=0;c<Math.min(u.length,s.length);c++)n(u[c],s[c])}n(e,t)}function No(e){let t=getComputedStyle(e);return!(t.display==="none"||t.position==="absolute"||t.position==="fixed")}function Lo(e,t){if(!(e instanceof Element))return!1;if(e.getAttribute("data-capture")==="exclude"&&t?.excludeMode==="remove")return!0;if(Array.isArray(t?.exclude))for(let r of t.exclude)try{if(e.matches(r))return t.excludeMode==="remove"}catch(n){P(t,"exclude selector match failed",n)}return!1}function Po(e,t){let r=getComputedStyle(e),n=e.getBoundingClientRect(),o=1/0,i=-1/0,a=!1,l=Array.from(e.children);for(let d of l){if(Lo(d,t)||!No(d))continue;let h=d.getBoundingClientRect(),p=h.top-n.top,g=h.bottom-n.top;g<=p||(p<o&&(o=p),g>i&&(i=g),a=!0)}let u=a?Math.max(0,i-o):0,s=parseFloat(r.borderTopWidth)||0,c=parseFloat(r.borderBottomWidth)||0,f=parseFloat(r.paddingTop)||0,m=parseFloat(r.paddingBottom)||0;return s+c+f+m+u}var M=(e,t=3)=>Number.isFinite(e)?Math.round(e*10**t)/10**t:e,Ro=/::-webkit-scrollbar(-[a-z]+)?\b/i;function lt(e,t=new Set){let r="";if(!e)return r;for(let n=0;n<e.length;n++){let o=e[n];try{if(o.type===CSSRule.IMPORT_RULE&&o.styleSheet){r+=lt(o.styleSheet.cssRules,t);continue}if(o.type===CSSRule.MEDIA_RULE&&o.cssRules){let i=lt(o.cssRules,t);i&&(r+=`@media ${o.conditionText}{${i}}`);continue}if(o.type===CSSRule.STYLE_RULE){let i=o.selectorText||"";if(Ro.test(i)){let a=o.cssText;a&&!t.has(a)&&(t.add(a),r+=a)}}}catch{}}return r}function To(e){if(!e||!e.styleSheets)return"";let t=new Set,r="";for(let n of Array.from(e.styleSheets))try{let o=n.cssRules;o&&(r+=lt(o,t))}catch{}return r}ft();function Wo(e){let t=e.boxShadow||"";if(!t||t==="none")return{top:0,right:0,bottom:0,left:0};let r=[],n="",o=0;for(let s=0;s<t.length;s++){let c=t[s];c==="("?o++:c===")"&&(o=Math.max(0,o-1)),c===","&&o===0?(r.push(n),n=""):n+=c}n.trim()&&r.push(n);let i=0,a=0,l=0,u=0;for(let s of r){if(/\binset\b/i.test(s))continue;let c=s.match(/-?\d+(\.\d+)?px/g)?.map(b=>parseFloat(b))||[];if(c.length<2)continue;let[f,m,d=0,h=0]=c,p=Math.abs(f)+d+h,g=Math.abs(m)+d+h;a=Math.max(a,p+Math.max(f,0)),u=Math.max(u,p+Math.max(-f,0)),l=Math.max(l,g+Math.max(m,0)),i=Math.max(i,g+Math.max(-m,0))}return{top:Math.ceil(i),right:Math.ceil(a),bottom:Math.ceil(l),left:Math.ceil(u)}}function Io(e){let t=e.filter&&e.filter!=="none"?e.filter:e.webkitFilter||"",r=/blur\(\s*([0-9.]+)px\s*\)/gi,n=0,o;for(;o=r.exec(t);)n+=parseFloat(o[1])||0;let i=Math.ceil(n);return{top:i,right:i,bottom:i,left:i}}function _o(e){if((e.outlineStyle||"none")==="none")return{top:0,right:0,bottom:0,left:0};let t=Math.ceil(parseFloat(e.outlineWidth||"0")||0),r=parseFloat(e.outlineOffset||"0")||0,n=t+Math.max(0,Math.ceil(r));return{top:n,right:n,bottom:n,left:n}}function Oo(e){let t=`${e.filter||""} ${e.webkitFilter||""}`.trim();if(!t||t==="none")return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};let r=t.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[],n=0,o=0,i=0,a=0,l=!1;for(let u of r){l=!0;let s=u.match(/-?\d+(?:\.\d+)?px/gi)?.map(p=>parseFloat(p))||[],[c=0,f=0,m=0]=s,d=Math.abs(c)+m,h=Math.abs(f)+m;o=Math.max(o,d+Math.max(c,0)),a=Math.max(a,d+Math.max(-c,0)),i=Math.max(i,h+Math.max(f,0)),n=Math.max(n,h+Math.max(-f,0))}return{bleed:{top:M(n),right:M(o),bottom:M(i),left:M(a)},has:l}}function Do(e,t){if(!e||!t||!t.style)return null;let r=getComputedStyle(e);try{t.style.transformOrigin="0 0"}catch{}try{"translate"in t.style&&(t.style.translate="none"),"rotate"in t.style&&(t.style.rotate="none")}catch{}let n=r.transform||"none";if(n==="none"){let l=null;try{l=Lr(e).scale}catch{}try{t.style.transform="none"}catch{}if(!l)return{a:1,b:0,c:0,d:1};let u=l.trim().split(/\s+/).map(parseFloat),s=Number.isFinite(u[0])?u[0]:1,c=Number.isFinite(u[1])?u[1]:s;return{a:s,b:0,c:0,d:c}}function o(l,u,s,c){let f=Math.sqrt(l*l+u*u)||0,m=0,d=0;if(f>0){let h=l/f,p=u/f;m=h*s+p*c;let g=s-h*m,b=c-p*m;d=Math.sqrt(g*g+b*b)||0,d>0?m=m/d:m=0}return{a:f,b:0,c:m*d,d}}let i=n.match(/^matrix\(\s*([^)]+)\)$/i);if(i){let l=i[1].split(",").map(u=>parseFloat(u.trim()));if(l.length===6&&l.every(Number.isFinite)){let[u,s,c,f]=l,m=o(u,s,c,f);try{t.style.transform=`matrix(${m.a}, ${m.b}, ${m.c}, ${m.d}, 0, 0)`}catch{}return m}}let a=n.match(/^matrix3d\(\s*([^)]+)\)$/i);if(a){let l=a[1].split(",").map(u=>parseFloat(u.trim()));if(l.length===16&&l.every(Number.isFinite)){let u=l[0],s=l[1],c=l[4],f=l[5],m=o(u,s,c,f);try{t.style.transform=`matrix(${m.a}, ${m.b}, ${m.c}, ${m.d}, 0, 0)`}catch{}return m}}try{let l=new DOMMatrix(n),u=o(l.a,l.b,l.c,l.d);try{t.style.transform=`matrix(${u.a}, ${u.b}, ${u.c}, ${u.d}, 0, 0)`}catch{}return u}catch{return null}}function Vt(e,t,r,n,o){let i=r.a,a=r.b,l=r.c,u=r.d,s=r.e||0,c=r.f||0;function f(b,w){let x=b-n,y=w-o,S=i*x+l*y,A=a*x+u*y;return S+=n+s,A+=o+c,[S,A]}let m=[f(0,0),f(e,0),f(0,t),f(e,t)],d=1/0,h=1/0,p=-1/0,g=-1/0;for(let[b,w]of m)b<d&&(d=b),w<h&&(h=w),b>p&&(p=b),w>g&&(g=w);return{minX:d,minY:h,maxX:p,maxY:g,width:p-d,height:g-h}}function Uo(e,t,r){let n=(e.transformOrigin||"0 0").trim().split(/\s+/),[o,i]=[n[0]||"0",n[1]||"0"],a=(l,u)=>{let s=l.toLowerCase();return s==="left"||s==="top"?0:s==="center"?u/2:s==="right"||s==="bottom"?u:s.endsWith("px")?parseFloat(s)||0:s.endsWith("%")?(parseFloat(s)||0)*u/100:/^-?\d+(\.\d+)?$/.test(s)&&parseFloat(s)||0};return{ox:a(o,t),oy:a(i,r)}}function Lr(e){let t={rotate:"0deg",scale:null,translate:null},r=typeof e.computedStyleMap=="function"?e.computedStyleMap():null;if(r){let o=u=>{try{return typeof r.has=="function"&&!r.has(u)||typeof r.get!="function"?null:r.get(u)}catch{return null}},i=o("rotate");if(i)if(i.angle){let u=i.angle;t.rotate=u.unit==="rad"?u.value*180/Math.PI+"deg":u.value+u.unit}else i.unit?t.rotate=i.unit==="rad"?i.value*180/Math.PI+"deg":i.value+i.unit:t.rotate=String(i);else{let u=getComputedStyle(e);t.rotate=u.rotate&&u.rotate!=="none"?u.rotate:"0deg"}let a=o("scale");if(a){let u="x"in a&&a.x?.value!=null?a.x.value:Array.isArray(a)?a[0]?.value:Number(a)||1,s="y"in a&&a.y?.value!=null?a.y.value:Array.isArray(a)?a[1]?.value:u;t.scale=`${u} ${s}`}else{let u=getComputedStyle(e);t.scale=u.scale&&u.scale!=="none"?u.scale:null}let l=o("translate");if(l){let u="x"in l&&"value"in l.x?l.x.value:Array.isArray(l)?l[0]?.value:0,s="y"in l&&"value"in l.y?l.y.value:Array.isArray(l)?l[1]?.value:0,c="x"in l&&l.x?.unit?l.x.unit:"px",f="y"in l&&l.y?.unit?l.y.unit:"px";t.translate=`${u}${c} ${s}${f}`}else{let u=getComputedStyle(e);t.translate=u.translate&&u.translate!=="none"?u.translate:null}return t}let n=getComputedStyle(e);return t.rotate=n.rotate&&n.rotate!=="none"?n.rotate:"0deg",t.scale=n.scale&&n.scale!=="none"?n.scale:null,t.translate=n.translate&&n.translate!=="none"?n.translate:null,t}var Xe=null;function Ho(){if(Xe)return Xe;let e=document.createElement("div");return e.id="snapdom-measure-slot",e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"absolute",left:"-99999px",top:"0px",width:"0px",height:"0px",overflow:"hidden",opacity:"0",pointerEvents:"none",contain:"size layout style"}),document.documentElement.appendChild(e),Xe=e,e}function jo(e){let t=Ho(),r=document.createElement("div");r.style.transformOrigin="0 0",e.baseTransform&&(r.style.transform=e.baseTransform),e.rotate&&(r.style.rotate=e.rotate),e.scale&&(r.style.scale=e.scale),e.translate&&(r.style.translate=e.translate),t.appendChild(r);let n=zo(r);return t.removeChild(r),n}function qo(e){let t=X(e),r=t.transform||"none";if(r!=="none"&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(r))return!0;let n=t.rotate&&t.rotate!=="none"&&t.rotate!=="0deg",o=t.scale&&t.scale!=="none"&&t.scale!=="1",i=t.translate&&t.translate!=="none"&&t.translate!=="0px 0px";return!!(n||o||i)}function zo(e){let t=getComputedStyle(e).transform;if(!t||t==="none")return new DOMMatrix;try{return new DOMMatrix(t)}catch{return new WebKitCSSMatrix(t)}}function Vo(e){if(Array.isArray(e.plugins)){for(let t of e.plugins)if(pt(t)?.name==="picture-resolver")return!0}return no().some(t=>t?.name==="picture-resolver")}async function Pr(e,t){if(!e)throw new Error("Element cannot be null or undefined");Yr(t.cache);let r=t.fast,n=t.outerTransforms!==!1,o=!!t.outerShadows,i={element:e,options:t,plugins:t.plugins},a,l,u,s="",c="",f,m,d=null;await ae("beforeSnap",i);let h=null;t.resolvePicturePlaceholders!==!1&&!Vo(t)&&(h=await so(i.element,i.options)),await ae("beforeClone",i);let p=Xi(i.element);try{({clone:a,classCSS:l,styleCache:u}=await ji(i.element,i.options)),!n&&a&&(d=Do(i.element,a)),!o&&a&&wo(i.element,a,i.options),a&&So(i.element,a)}finally{p()}if(i={clone:a,classCSS:l,styleCache:u,...i},await ae("afterClone",i),h&&await h(),$o(i.clone),i.options?.excludeMode==="remove")try{Fo(i.element,i.clone,i.styleCache)}catch(y){console.warn("[snapdom] shrink pass failed:",y)}try{await fi(i.clone,i.element)}catch{}await new Promise(y=>{ce(async()=>{await Vi(i.clone,i.options),y()},{fast:r})}),await new Promise(y=>{ce(async()=>{await Bi(i.element,i.clone,i.styleCache,i.options),y()},{fast:r})}),t.compress&&await new Promise(y=>{ce(async()=>{await bo(i.clone,i.options),y()},{fast:r})}),t.embedFonts&&await new Promise(y=>{ce(async()=>{let S=i.element.ownerDocument||document,A=$r(i.element),v=Ei(i.element);if(le()){let C=new Set(Array.from(A).map(k=>String(k).split("__")[0]).filter(Boolean));await Mr(C,1,S)}s=await ki({required:A,usedCodepoints:v,exclude:i.options.excludeFonts,localFonts:i.options.localFonts,useProxy:i.options.useProxy,fontStylesheetDomains:i.options.fontStylesheetDomains,doc:S}),y()},{fast:r})});let g=an(i.clone).sort(),b=g.join(",");$.baseStyle.has(b)?c=$.baseStyle.get(b):await new Promise(y=>{ce(()=>{c=ln(g),$.baseStyle.set(b,c),y()},{fast:r})});let w=To(i.element?.ownerDocument||document);i={fontsCSS:s,baseCSS:c,scrollbarCSS:w,...i},await ae("beforeRender",i),await new Promise(y=>{ce(()=>{let S=X(i.element),A=i.element.getBoundingClientRect(),v=Math.max(1,M(i.element.offsetWidth||parseFloat(S.width)||A.width||1)),C=Math.max(1,M(i.element.offsetHeight||parseFloat(S.height)||A.height||1)),k=i.element.ownerDocument||document;if((i.element===k.body||i.element===k.documentElement)&&!k.documentElement.hasAttribute("data-sd-pinned")){let j=Math.max(i.element.scrollHeight||0,k.documentElement?.scrollHeight||0,k.body?.scrollHeight||0),q=Math.max(i.element.scrollWidth||0,k.documentElement?.scrollWidth||0,k.body?.scrollWidth||0);j>0&&(C=Math.max(C,M(j))),q>0&&(v=Math.max(v,M(q)));try{let Q=(i.scrollbarCSS||"").length+(i.baseCSS||"").length+(i.fontsCSS||"").length+(i.classCSS||"").length,J=$.measureHints.get(i.element);if(J&&J.cssLen===Q&&J.w0===v)J.csh>0&&(C=Math.max(C,M(J.csh))),J.csw>0&&(v=Math.max(v,M(J.csw)));else{let Z=k.createElement("div");Z.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;width:"+v+"px!important;overflow:visible!important;visibility:hidden!important;";let Fe=k.createElement("style");Fe.textContent=(i.scrollbarCSS||"")+i.baseCSS+i.fontsCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+i.classCSS,Z.appendChild(Fe),Z.appendChild(i.clone.cloneNode(!0)),k.body.appendChild(Z);let ie=Z.scrollHeight,ze=Z.scrollWidth;k.body.removeChild(Z),$.measureHints.set(i.element,{cssLen:Q,w0:v,csh:ie,csw:ze}),ie>0&&(C=Math.max(C,M(ie))),ze>0&&(v=Math.max(v,M(ze)))}}catch{}}if(i.options?.excludeMode==="remove"){let j=Po(i.element,i.options);Number.isFinite(j)&&j>0&&(C=Math.max(1,Math.min(C,M(j+1))))}let I=(j,q=NaN)=>{let Q=typeof j=="string"?parseFloat(j):j;return Number.isFinite(Q)?Q:q},W=I(i.options.width),O=I(i.options.height),F=v,H=C,N=Number.isFinite(W),D=Number.isFinite(O),E=C>0?v/C:1;N&&D?(F=Math.max(1,M(W)),H=Math.max(1,M(O))):N?(F=Math.max(1,M(W)),H=Math.max(1,M(F/(E||1)))):D?(H=Math.max(1,M(O)),F=Math.max(1,M(H*(E||1)))):(F=v,H=C);let L=0,R=0,_=v,V=C;if(!n&&d&&Number.isFinite(d.a)){let j={a:d.a,b:d.b||0,c:d.c||0,d:d.d||1,e:0,f:0},q=Vt(v,C,j,0,0);L=M(q.minX),R=M(q.minY),_=M(q.maxX),V=M(q.maxY)}else if(n&&Bt(i.element)){let j=S.transform&&S.transform!=="none"?S.transform:"",q=Lr(i.element),Q=jo({baseTransform:j,rotate:q.rotate||"0deg",scale:q.scale,translate:q.translate}),{ox:J,oy:Z}=Uo(S,v,C),Fe=Q.is2D?Q:new DOMMatrix(Q.toString()),ie=Vt(v,C,Fe,J,Z);L=M(ie.minX),R=M(ie.minY),_=M(ie.maxX),V=M(ie.maxY)}let de=Wo(S),K=Io(S),me=_o(S),he=Oo(S),se=o?{top:M(de.top+K.top+me.top+he.bleed.top),right:M(de.right+K.right+me.right+he.bleed.right),bottom:M(de.bottom+K.bottom+me.bottom+he.bleed.bottom),left:M(de.left+K.left+me.left+he.bleed.left)}:{top:0,right:0,bottom:0,left:0};L=M(L-se.left),R=M(R-se.top),_=M(_+se.right),V=M(V+se.bottom);let we=Math.max(1,M(_-L)),yt=Math.max(1,M(V-R)),Tr=N||D?M(F/v):1,Wr=D||N?M(H/C):1,Ir=Math.max(1,M(we*Tr)),_r=Math.max(1,M(yt*Wr)),bt="http://www.w3.org/2000/svg",Or=le()&&Bt(i.element)?1:0,re=M(Or+(n?0:1)),ne=document.createElementNS(bt,"foreignObject"),Dr=M(L),Ur=M(R);ne.setAttribute("x",String(M(-(Dr-re)))),ne.setAttribute("y",String(M(-(Ur-re)))),ne.setAttribute("width",String(M(v+re*2))),ne.setAttribute("height",String(M(C+re*2))),ne.style.overflow="visible";let wt=document.createElement("style"),Hr="svg{overflow:visible;} foreignObject{overflow:visible;} foreignObject>div{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}";wt.textContent=(i.scrollbarCSS||"")+i.baseCSS+i.fontsCSS+Hr+i.classCSS,ne.appendChild(wt);let Ee=document.createElement("div");Ee.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),Ee.style.cssText=`all:initial;box-sizing:border-box;display:block;overflow:visible;width:${M(v)}px;height:${M(C)}px`,Ee.appendChild(i.clone),ne.appendChild(Ee);let jr=new XMLSerializer().serializeToString(ne),je=M(we+re*2),qe=M(yt+re*2),xt=N||D;t.meta={w0:v,h0:C,vbW:je,vbH:qe,targetW:F,targetH:H};let qr=le()&&xt?je:M(Ir+re*2),zr=le()&&xt?qe:M(_r+re*2),Vr=parseFloat(X(k.documentElement)?.fontSize)||16;m=`<svg xmlns="${bt}" width="${qr}" height="${zr}" viewBox="0 0 ${je} ${qe}" font-size="${Vr}px">`+jr+"</svg>",f=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(m)}`,i={svgString:m,dataURL:f,...i},y()},{fast:r})}),await ae("afterRender",i);let x=document.getElementById("snapdom-sandbox");return x&&x.style.position==="absolute"&&x.remove(),i.dataURL}function Bt(e){return qo(e)}U();function Bo(e={}){let t=e.format??"png";t==="jpg"&&(t="jpeg");let r=Xr(e.cache);return{debug:e.debug??!1,fast:e.fast??!0,scale:e.scale??1,exclude:e.exclude??[],excludeMode:e.excludeMode??"hide",filter:e.filter??null,filterMode:e.filterMode??"hide",placeholders:e.placeholders!==!1,embedFonts:e.embedFonts??!1,iconFonts:Array.isArray(e.iconFonts)?e.iconFonts:e.iconFonts?[e.iconFonts]:[],localFonts:Array.isArray(e.localFonts)?e.localFonts:[],excludeFonts:e.excludeFonts??void 0,fontStylesheetDomains:Array.isArray(e.fontStylesheetDomains)?e.fontStylesheetDomains:[],fallbackURL:e.fallbackURL??void 0,cache:r,useProxy:typeof e.useProxy=="string"?e.useProxy:"",width:e.width??null,height:e.height??null,format:t,type:e.type??"svg",quality:e.quality??.92,dpr:e.dpr??(window.devicePixelRatio||1),backgroundColor:e.backgroundColor??(["jpeg","webp"].includes(t)?"#ffffff":null),filename:e.filename??"snapDOM",outerTransforms:e.outerTransforms??!0,outerShadows:e.outerShadows??!1,compress:e.compress!==!1,safariWarmupAttempts:Math.min(3,Math.max(1,(e.safariWarmupAttempts??3)|0)),excludeStyleProps:e.excludeStyleProps??null,resolvePicturePlaceholders:e.resolvePicturePlaceholders!==!1,pictureResolver:e.pictureResolver&&typeof e.pictureResolver=="object"?e.pictureResolver:{}}}ke();ar();G();be();U();function Xo(...e){return Zi(...e),T}var T=Object.assign(Go,{plugins:Xo}),Rr=Symbol("snapdom.internal"),Yo=Symbol("snapdom.internal.silent"),Xt=!1;async function Go(e,t){if(!e)throw new Error("Element cannot be null or undefined");let r=Bo(t);if(ro(r,t&&t.plugins),le()&&(r.embedFonts===!0||Qo(e))){if(r.embedFonts)try{let o=$r(e),i=new Set([...o].map(a=>String(a).split("__")[0]).filter(Boolean));await Mr(i,1)}catch{}let n=r.safariWarmupAttempts??3;for(let o=0;o<n;o++)try{await Ko(e,t)}catch{}}return r.iconFonts&&r.iconFonts.length>0&&ii(r.iconFonts),r.snap||(r.snap={toPng:(n,o)=>T.toPng(n,o),toSvg:(n,o)=>T.toSvg(n,o)}),T.capture(e,r,Rr)}T.capture=async(e,t,r)=>{if(r!==Rr)throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");let n=await Pr(e,t),o={img:async(p,g)=>{let{toImg:b}=await Promise.resolve().then(()=>(At(),Je));return b(n,{...p,...g||{}})},svg:async(p,g)=>{let{toSvg:b}=await Promise.resolve().then(()=>(At(),Je));return b(n,{...p,...g||{}})},canvas:async(p,g)=>{let{toCanvas:b}=await Promise.resolve().then(()=>(He(),lr));return b(n,{...p,...g||{}})},blob:async(p,g)=>{let{toBlob:b}=await Promise.resolve().then(()=>(pr(),mr));return b(n,{...p,...g||{}})},png:async(p,g)=>{let{rasterize:b}=await Promise.resolve().then(()=>(Re(),Pe));return b(n,{...p,...g||{},format:"png"})},jpeg:async(p,g)=>{let{rasterize:b}=await Promise.resolve().then(()=>(Re(),Pe));return b(n,{...p,...g||{},format:"jpeg"})},webp:async(p,g)=>{let{rasterize:b}=await Promise.resolve().then(()=>(Re(),Pe));return b(n,{...p,...g||{},format:"webp"})},download:async(p,g)=>{let{download:b}=await Promise.resolve().then(()=>(xn(),gr));return b(n,{...p,...g||{}})}},i={};for(let p of["img","svg","canvas","blob","png","jpeg","webp"])i[p]=async g=>o[p](t,{...g||{},[Yo]:!0});i.jpg=i.jpeg;let a={...t,export:{url:n},exports:i},l=await eo("defineExports",a),u=Object.assign({},...l.filter(p=>p&&typeof p=="object").reverse()),s={...o,...u};s.jpeg&&!s.jpg&&(s.jpg=(p,g)=>s.jpeg(p,g));function c(p,g){let b={...t,...g||{}},w=x=>x==="jpeg"||x==="jpg"||x==="webp";return[p,b.format,b.type].map(x=>typeof x=="string"?x.toLowerCase():"").find(w)&&(b.backgroundColor==null||b.backgroundColor==="transparent")&&(b.backgroundColor="#ffffff"),b}let f=!1,m=Promise.resolve();async function d(p,g){let b=async()=>{let w=s[p];if(!w)throw new Error(`[snapdom] Unknown export type: ${p}`);let x=c(p,g),y={...t,export:{type:p,options:x,url:n}};await ae("beforeExport",y,{format:p,options:x});let S=await w(y,x);return await ae("afterExport",y,{format:p,options:x,result:S}),f||(f=!0,await ae("afterSnap",t)),S};return m=m.then(b)}let h={url:n,toRaw:()=>n,to:(p,g)=>d(p,g),toImg:p=>d("img",p),toSvg:p=>d("svg",p),toCanvas:p=>d("canvas",p),toBlob:p=>d("blob",p),toPng:p=>d("png",p),toJpg:p=>d("jpg",p),toWebp:p=>d("webp",p),download:p=>d("download",p)};for(let p of Object.keys(s)){let g="to"+p.charAt(0).toUpperCase()+p.slice(1);h[g]||(h[g]=b=>d(p,b))}return h};T.toRaw=(e,t)=>T(e,t).then(r=>r.toRaw());T.toImg=(e,t)=>T(e,t).then(r=>r.toImg());T.toSvg=(e,t)=>T(e,t).then(r=>r.toSvg());T.toCanvas=(e,t)=>T(e,t).then(r=>r.toCanvas());T.toBlob=(e,t)=>T(e,t).then(r=>r.toBlob());T.toPng=(e,t)=>T(e,{...t,format:"png"}).then(r=>r.toPng());T.toJpg=(e,t)=>T(e,{...t,format:"jpeg"}).then(r=>r.toJpg());T.toWebp=(e,t)=>T(e,{...t,format:"webp"}).then(r=>r.toWebp());T.download=(e,t)=>T(e,t).then(r=>r.download());async function Ko(e,t){if(Xt)return;let r={...t,fast:!0,embedFonts:!0,scale:.2},n;try{n=await Pr(e,r)}catch(o){P(t,"safariWarmup pre-capture failed",o)}await new Promise(o=>requestAnimationFrame(()=>requestAnimationFrame(o))),n&&await new Promise(o=>{let i=new Image;try{i.decoding="sync",i.loading="eager"}catch(a){P(t,"safariWarmup img hints failed",a)}i.style.cssText="position:fixed;left:0px;top:0px;width:10px;height:10px;opacity:0.01;pointer-events:none;",i.src=n,document.body.appendChild(i),(async()=>{try{typeof i.decode=="function"&&await i.decode()}catch(l){P(t,"safariWarmup img.decode failed",l)}let a=performance.now();for(;!(i.complete&&i.naturalWidth>0)&&performance.now()-a<900;)await new Promise(l=>setTimeout(l,200));await new Promise(l=>requestAnimationFrame(l));try{let l=document.createElement("canvas");l.width=Math.max(1,i.naturalWidth||10),l.height=Math.max(1,i.naturalHeight||10);let u=l.getContext("2d");u&&u.drawImage(i,0,0)}catch{}await new Promise(l=>requestAnimationFrame(l));try{i.remove()}catch(l){P(t,"safariWarmup img.remove failed",l)}o()})()}),e.querySelectorAll("canvas").forEach(o=>{try{let i=o.getContext("2d",{willReadFrequently:!0});i&&i.getImageData(0,0,1,1)}catch(i){P(t,"safariWarmup canvas poke failed",i)}}),Xt=!0}function Qo(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;t.nextNode();){let r=t.currentNode,n=getComputedStyle(r),o=n.backgroundImage&&n.backgroundImage!=="none",i=n.maskImage&&n.maskImage!=="none"||n.webkitMaskImage&&n.webkitMaskImage!=="none";if(o||i||r.tagName==="CANVAS")return!0}return!1}export{T as N};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as n,r as s}from"./index-DeV8SAiM.js";import"./vendor-reka-ui-BLnO2MqY.js";import"./vendor-nuxt-ui-DUpPmItD.js";import"./vendor-snapdom--nZvo8Sg.js";class d{async getVersion(){return"0.31.2"}async fetchRemoteConfig(t){try{const e=await fetch(t);return e.ok?{success:!0,data:(e.headers.get("content-type")||"").includes("application/json")||t.split("?")[0].endsWith(".json")?await e.json():await e.text()}:{success:!1,error:`HTTP ${e.status}`}}catch(e){return{success:!1,error:String(e)}}}setThemeSource(t){}async getOpenAtLogin(){return!1}async setOpenAtLogin(t){return{success:!1,error:"Not available in web mode"}}async getAnalyticsEnabled(){try{return(await(await n("/_web/telemetry/enabled")).json()).enabled===!0}catch{return!1}}async setAnalyticsEnabled(t){try{return await(await n("/_web/telemetry/enabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:t})})).json()}catch{return{success:!1}}}async trackDailyActive(t){await n("/_web/telemetry/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventName:"app_active",properties:{platform:"cli-web",locale:t}})}).catch(()=>{})}async showOpenDialog(t){return{canceled:!0,filePaths:[]}}async copyImageToClipboard(t){if(globalThis.isSecureContext===!1)return{success:!1,error:"Image clipboard requires HTTPS or localhost"};if(typeof navigator>"u"||typeof navigator.clipboard?.write!="function"||typeof ClipboardItem>"u")return{success:!1,error:"Image clipboard is not supported by this browser"};try{const e=fetch(t).then(async r=>{if(!r.ok)throw new Error(`Failed to read screenshot data: HTTP ${r.status}`);const a=await r.blob();if(a.type!=="image/png")throw new Error(`Unsupported screenshot MIME type: ${a.type||"unknown"}`);return a});return await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),{success:!0}}catch(e){const r=e instanceof Error?`${e.name}: ${e.message}`:String(e);return s(`Image clipboard write failed: ${r}`,e instanceof Error?e.stack:void 0),{success:!1,error:r}}}async checkUpdate(){try{return await(await n("/_web/system/check-update")).json()}catch(t){return{hasUpdate:!1,currentVersion:"unknown",error:t instanceof Error?t.message:String(t)}}}async performUpdate(){return{success:!1,error:"Web update is unavailable. Run clb update in your terminal."}}async relaunch(){window.location.reload()}}export{d as WebPlatformAdapter};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as w,f as B,O,ar as A,a0 as k,j as _,G as M,b as U,N as E,I as z,a1 as T,T as b,ak as V,R as Y,w as X,r as P}from"./RelationshipGalaxyCanvas-
|
|
1
|
+
import{M as w,f as B,O,ar as A,a0 as k,j as _,G as M,b as U,N as E,I as z,a1 as T,T as b,ak as V,R as Y,w as X,r as P}from"./RelationshipGalaxyCanvas-CSgPNRif.js";import{F as q}from"./Filter-BTlq0yU-.js";import"./index-DeV8SAiM.js";import"./vendor-reka-ui-BLnO2MqY.js";import"./vendor-nuxt-ui-DUpPmItD.js";import"./vendor-snapdom--nZvo8Sg.js";import"./index-DaZnh1zP.js";import"./LoadingState.vue_vue_type_script_setup_true_lang-B2KAoiMG.js";import"./people-page-header-D93GTPBO.js";import"./relationship-galaxy-viewport-Cwfa51ER.js";const v=new w;function G(g,e){e.clear();const t=e.matrix;for(let r=0;r<g.length;r++){const i=g[r];if(i.globalDisplayStatus<7)continue;const s=i.renderGroup??i.parentRenderGroup;s?.isCachedAsTexture?e.matrix=v.copyFrom(s.textureOffsetInverseTransform).append(i.worldTransform):s?._parentCacheAsTextureRenderGroup?e.matrix=v.copyFrom(s._parentCacheAsTextureRenderGroup.inverseWorldTransform).append(i.groupTransform):e.matrix=i.worldTransform,e.addBounds(i.bounds)}return e.matrix=t,e}function y(g){return typeof g.getCanvasFilterString=="function"}class L{constructor(){this.skip=!1,this.useClip=!1,this.filters=null,this.container=null,this.bounds=new k,this.cssFilterString=""}}class R{constructor(e){this._filterStack=[],this._filterStackIndex=0,this._savedStates=[],this._alphaMultiplier=1,this._warnedFilterTypes=new Set,this.renderer=e}push(e){const t=this._pushFilterFrame(),r=e.filterEffect.filters;if(t.skip=!1,t.useClip=!1,t.filters=r,t.container=e.container,t.cssFilterString="",r.every(o=>!o.enabled)){t.skip=!0;return}const i=[],s=1;for(const o of r){if(!o.enabled)continue;if(!y(o)){this._warnUnsupportedFilter(o);continue}const l=o.getCanvasFilterString();if(l===null){this._warnUnsupportedFilter(o);continue}l&&i.push(l)}if(i.length===0&&s===1){t.skip=!0;return}t.cssFilterString=i.join(" "),this._calculateFilterArea(e,t.bounds),t.useClip=!!e.filterEffect.filterArea;const n=this.renderer.canvasContext.activeContext,a=n.filter||"none";if(this._savedStates.push({filter:a,alphaMultiplier:this._alphaMultiplier}),t.useClip&&Number.isFinite(t.bounds.width)&&Number.isFinite(t.bounds.height)&&t.bounds.width>0&&t.bounds.height>0){const o=this.renderer.canvasContext.activeResolution||1;n.save(),n.setTransform(1,0,0,1,0,0),n.beginPath(),n.rect(t.bounds.x*o,t.bounds.y*o,t.bounds.width*o,t.bounds.height*o),n.clip()}else t.useClip=!1;t.cssFilterString&&(n.filter=a!=="none"?`${a} ${t.cssFilterString}`:t.cssFilterString)}pop(){const e=this._popFilterFrame();if(e.skip)return;const t=this._savedStates.pop();if(!t)return;const r=this.renderer.canvasContext.activeContext;e.useClip?r.restore():r.filter=t.filter,this._alphaMultiplier=t.alphaMultiplier}generateFilteredTexture({texture:e,filters:t}){if(!t?.length||t.every(d=>!d.enabled))return e;const r=[],i=1;for(const d of t){if(!d.enabled)continue;if(!y(d)){this._warnUnsupportedFilter(d);continue}const h=d.getCanvasFilterString();if(h===null){this._warnUnsupportedFilter(d);continue}h&&r.push(h)}if(r.length===0&&i===1)return e;const s=B.getCanvasSource(e);if(!s)return e;const n=e.frame,a=e.source._resolution??e.source.resolution??1,o=n.width,l=n.height,f=O.getOptimalCanvasAndContext(o,l,a),{canvas:c,context:u}=f;u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,c.width,c.height),r.length&&(u.filter=r.join(" "));const p=n.x*a,m=n.y*a,x=o*a,F=l*a;return u.drawImage(s,p,m,x,F,0,0,x,F),u.filter="none",u.globalAlpha=1,A(c,o,l,a)}_calculateFilterArea(e,t){if(e.renderables?G(e.renderables,t):e.filterEffect.filterArea?(t.clear(),t.addRect(e.filterEffect.filterArea),t.applyMatrix(e.container.worldTransform)):e.container.getFastGlobalBounds(!0,t),e.container){const i=(e.container.renderGroup||e.container.parentRenderGroup)?.cacheToLocalTransform;i&&t.applyMatrix(i)}}_warnUnsupportedFilter(e){const t=e?.constructor?.name||"Filter";this._warnedFilterTypes.has(t)||(this._warnedFilterTypes.add(t),console.warn(`CanvasRenderer: filter "${t}" is not supported in Canvas2D and will be skipped.`))}get alphaMultiplier(){return this._alphaMultiplier}_pushFilterFrame(){let e=this._filterStack[this._filterStackIndex];return e||(e=this._filterStack[this._filterStackIndex]=new L),this._filterStackIndex++,e}_popFilterFrame(){return this._filterStackIndex<=0?this._filterStack[0]:(this._filterStackIndex--,this._filterStack[this._filterStackIndex])}destroy(){this._filterStack=null,this._savedStates=null,this._warnedFilterTypes=null,this._alphaMultiplier=1}}R.extension={type:[_.CanvasSystem],name:"filter"};var W=`in vec2 aPosition;
|
|
2
2
|
out vec2 vTextureCoord;
|
|
3
3
|
|
|
4
4
|
uniform vec4 uInputSize;
|
package/dist-web/index.html
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
<title>ChatLab</title>
|
|
6
6
|
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
|
|
7
7
|
<link rel="icon" href="/favicon.ico" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-reka-ui-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-nuxt-ui-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-snapdom
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DeV8SAiM.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-reka-ui-BLnO2MqY.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-nuxt-ui-DUpPmItD.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-snapdom--nZvo8Sg.js">
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CAjUCtGD.css">
|
|
13
13
|
</head>
|
|
14
14
|
|
|
15
15
|
<body>
|