bugstash 0.1.22 → 0.1.24

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/index.cjs CHANGED
@@ -1,24 +1,19 @@
1
- "use strict";var un=Object.defineProperty;var Vi=Object.getOwnPropertyDescriptor;var _i=Object.getOwnPropertyNames;var Xi=Object.prototype.hasOwnProperty;var Ji=(A,e)=>{for(var t in e)un(A,t,{get:e[t],enumerable:!0})},Wi=(A,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _i(e))!Xi.call(A,n)&&n!==t&&un(A,n,{get:()=>e[n],enumerable:!(r=Vi(e,n))||r.enumerable});return A};var Yi=A=>Wi(un({},"__esModule",{value:!0}),A);var df={};Ji(df,{BugStash:()=>Ri,default:()=>gf});module.exports=Yi(df);var nt=[],Is=50,st=null,at=null,ot=null,it=null;function Yt(A){if(A.id)return`#${A.id}`;let e=A.tagName.toLowerCase(),t=A.className&&typeof A.className=="string"?"."+A.className.trim().split(/\s+/).slice(0,2).join("."):"",r=(A.textContent||"").trim().slice(0,30),n=r?` "${r}"`:"";return`${e}${t}${n}`}function UA(A){nt.push(A),nt.length>Is&&nt.shift()}function Ls(A){A&&(Is=A),st=t=>{let r=t.target;!r||!r.tagName||UA({type:"click",category:"ui",message:`Clicked ${Yt(r)}`,timestamp:Date.now(),data:{x:t.clientX,y:t.clientY,selector:Yt(r)}})},document.addEventListener("click",st,!0);let e=new WeakMap;at=t=>{let r=t.target;if(!r||!r.tagName)return;let n=r.tagName.toLowerCase();if(n!=="input"&&n!=="textarea"&&n!=="select")return;let s=e.get(r);s&&clearTimeout(s),e.set(r,window.setTimeout(()=>{let a=r instanceof HTMLInputElement&&r.type==="password";UA({type:"input",category:"ui",message:`Input ${Yt(r)}`,timestamp:Date.now(),data:{selector:Yt(r),value:a?"[redacted]":void 0}})},300))},document.addEventListener("input",at,!0),ot=()=>{UA({type:"navigation",category:"navigation",message:`Navigated to ${window.location.pathname}`,timestamp:Date.now(),data:{url:window.location.href}})},window.addEventListener("popstate",ot),it=()=>{UA({type:"navigation",category:"navigation",message:`Hash changed to ${window.location.hash}`,timestamp:Date.now(),data:{url:window.location.href}})},window.addEventListener("hashchange",it),UA({type:"navigation",category:"navigation",message:`Page loaded: ${window.location.pathname}`,timestamp:Date.now(),data:{url:window.location.href}})}function Ie(){return[...nt]}function Ks(){nt=[]}function Ss(){st&&document.removeEventListener("click",st,!0),at&&document.removeEventListener("input",at,!0),ot&&window.removeEventListener("popstate",ot),it&&window.removeEventListener("hashchange",it),st=null,at=null,ot=null,it=null}var gn="[REDACTED]",zi=[[/\b(?:\d[ -]*?){13,19}\b/g,"[CC_REDACTED]"],[/\b\d{3}-\d{2}-\d{4}\b/g,"[SSN_REDACTED]"],[/Bearer\s+[A-Za-z0-9\-._~+/]+=*/g,"Bearer [TOKEN_REDACTED]"],[/eyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g,"[JWT_REDACTED]"],[/(?:api[_-]?key|apikey|secret|token|password|passwd|authorization)['":\s=]+['"]?([A-Za-z0-9\-._~+/]{20,})['"]?/gi,A=>{let e=A.search(/[=:]/);return A.slice(0,e+1)+" "+gn}],[/AKIA[0-9A-Z]{16}/g,"[AWS_KEY_REDACTED]"],[/"(?:password|passwd|secret|token|access_token|refresh_token|api_key|apiKey|private_key)":\s*"[^"]*"/gi,A=>{let e=A.indexOf(":");return A.slice(0,e+1)+' "'+gn+'"'}]];function Le(A){let e=A;for(let[t,r]of zi)e=e.replace(t,r);return e}function Ts(A){return A.map(Le)}function zt(A){if(typeof A=="string")return Le(A);if(Array.isArray(A))return A.map(zt);if(A&&typeof A=="object"){let e={};for(let[t,r]of Object.entries(A)){let n=t.toLowerCase();n.includes("password")||n.includes("secret")||n.includes("token")||n.includes("apikey")||n.includes("api_key")||n.includes("private")?e[t]=gn:e[t]=zt(r)}return e}return A}var $t={log:console.log,warn:console.warn,error:console.error,debug:console.debug,info:console.info},lt=[],Ds=50;function $i(A){return A.map(e=>{if(e instanceof Error)return`${e.name}: ${e.message}
2
- ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return String(e)}return String(e)})}function Zi(A,e){let t={level:A,args:Ts($i(e)),timestamp:Date.now()};A==="error"&&(t.stack=new Error().stack?.split(`
1
+ "use strict";var sn=Object.defineProperty;var vs=Object.getOwnPropertyDescriptor;var ws=Object.getOwnPropertyNames;var ks=Object.prototype.hasOwnProperty;var Es=(e,t)=>{for(var n in t)sn(e,n,{get:t[n],enumerable:!0})},Ss=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ws(t))!ks.call(e,s)&&s!==n&&sn(e,s,{get:()=>t[s],enumerable:!(r=vs(t,s))||r.enumerable});return e};var Ls=e=>Ss(sn({},"__esModule",{value:!0}),e);var ii={};Es(ii,{BugStash:()=>fs,default:()=>oi});module.exports=Ls(ii);var Je=[],jn=50,Ke=null,Ge=null,Qe=null,Ze=null;function kt(e){if(e.id)return`#${e.id}`;let t=e.tagName.toLowerCase(),n=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"",r=(e.textContent||"").trim().slice(0,30),s=r?` "${r}"`:"";return`${t}${n}${s}`}function Y(e){Je.push(e),Je.length>jn&&Je.shift()}function qn(e){e&&(jn=e),Ke=n=>{let r=n.target;!r||!r.tagName||Y({type:"click",category:"ui",message:`Clicked ${kt(r)}`,timestamp:Date.now(),data:{x:n.clientX,y:n.clientY,selector:kt(r)}})},document.addEventListener("click",Ke,!0);let t=new WeakMap;Ge=n=>{let r=n.target;if(!r||!r.tagName)return;let s=r.tagName.toLowerCase();if(s!=="input"&&s!=="textarea"&&s!=="select")return;let o=t.get(r);o&&clearTimeout(o),t.set(r,window.setTimeout(()=>{let i=r instanceof HTMLInputElement&&r.type==="password";Y({type:"input",category:"ui",message:`Input ${kt(r)}`,timestamp:Date.now(),data:{selector:kt(r),value:i?"[redacted]":void 0}})},300))},document.addEventListener("input",Ge,!0),Qe=()=>{Y({type:"navigation",category:"navigation",message:`Navigated to ${window.location.pathname}`,timestamp:Date.now(),data:{url:window.location.href}})},window.addEventListener("popstate",Qe),Ze=()=>{Y({type:"navigation",category:"navigation",message:`Hash changed to ${window.location.hash}`,timestamp:Date.now(),data:{url:window.location.href}})},window.addEventListener("hashchange",Ze),Y({type:"navigation",category:"navigation",message:`Page loaded: ${window.location.pathname}`,timestamp:Date.now(),data:{url:window.location.href}})}function Te(){return[...Je]}function Un(){Je=[]}function Fn(){Ke&&document.removeEventListener("click",Ke,!0),Ge&&document.removeEventListener("input",Ge,!0),Qe&&window.removeEventListener("popstate",Qe),Ze&&window.removeEventListener("hashchange",Ze),Ke=null,Ge=null,Qe=null,Ze=null}var on="[REDACTED]",Cs=[[/\b(?:\d[ -]*?){13,19}\b/g,"[CC_REDACTED]"],[/\b\d{3}-\d{2}-\d{4}\b/g,"[SSN_REDACTED]"],[/Bearer\s+[A-Za-z0-9\-._~+/]+=*/g,"Bearer [TOKEN_REDACTED]"],[/eyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g,"[JWT_REDACTED]"],[/(?:api[_-]?key|apikey|secret|token|password|passwd|authorization)['":\s=]+['"]?([A-Za-z0-9\-._~+/]{20,})['"]?/gi,e=>{let t=e.search(/[=:]/);return e.slice(0,t+1)+" "+on}],[/AKIA[0-9A-Z]{16}/g,"[AWS_KEY_REDACTED]"],[/"(?:password|passwd|secret|token|access_token|refresh_token|api_key|apiKey|private_key)":\s*"[^"]*"/gi,e=>{let t=e.indexOf(":");return e.slice(0,t+1)+' "'+on+'"'}]];function Pe(e){let t=e;for(let[n,r]of Cs)t=t.replace(n,r);return t}function Wn(e){return e.map(Pe)}function Et(e){if(typeof e=="string")return Pe(e);if(Array.isArray(e))return e.map(Et);if(e&&typeof e=="object"){let t={};for(let[n,r]of Object.entries(e)){let s=n.toLowerCase();s.includes("password")||s.includes("secret")||s.includes("token")||s.includes("apikey")||s.includes("api_key")||s.includes("private")?t[n]=on:t[n]=Et(r)}return t}return e}var St={log:console.log,warn:console.warn,error:console.error,debug:console.debug,info:console.info},et=[],_n=50;function Ts(e){return e.map(t=>{if(t instanceof Error)return`${t.name}: ${t.message}
2
+ ${t.stack??""}`;if(typeof t=="object")try{return JSON.stringify(t,null,2)}catch{return String(t)}return String(t)})}function Ps(e,t){let n={level:e,args:Wn(Ts(t)),timestamp:Date.now()};e==="error"&&(n.stack=new Error().stack?.split(`
3
3
  `).slice(2).join(`
4
- `)),lt.push(t),lt.length>Ds&&lt.shift(),UA({type:"console",category:`console.${A}`,message:t.args.join(" ").slice(0,200),timestamp:t.timestamp})}function ks(A){A&&(Ds=A);for(let e of Object.keys($t))console[e]=function(...t){Zi(e,t),$t[e].apply(console,t)}}function jA(){return[...lt]}function Ms(){lt=[]}function Os(){for(let A of Object.keys($t))console[A]=$t[A]}var Ke=[],Rs=50,Zt,qt,jt;function dn(A){Ke.push(A),Ke.length>Rs&&Ke.shift(),UA({type:"network",category:A.failed?"network.error":"network.ok",message:`${A.method} ${A.url} \u2192 ${A.status} (${A.duration}ms)`,timestamp:A.timestamp,data:{status:A.status,duration:A.duration}})}function Ns(A){try{let e=new URL(A,window.location.origin),t=new URLSearchParams(e.search);for(let n of t.keys()){let s=n.toLowerCase();(s.includes("token")||s.includes("key")||s.includes("secret")||s.includes("password")||s.includes("auth"))&&t.set(n,"[REDACTED]")}let r=t.toString();return e.pathname+(r?"?"+r:"")}catch{return Le(A)}}function qi(){Zt=window.fetch,window.fetch=async function(A,e){let t=e?.method?.toUpperCase()??"GET",r=typeof A=="string"?A:A instanceof URL?A.href:A.url,n=Ns(r),s=Date.now();try{let a=await Zt.call(window,A,e);return dn({method:t,url:n,status:a.status,statusText:a.statusText,duration:Date.now()-s,responseType:a.headers.get("content-type")??void 0,timestamp:s,failed:a.status>=400}),a}catch(a){throw dn({method:t,url:n,status:0,statusText:"Network Error",duration:Date.now()-s,timestamp:s,failed:!0}),a}}}function ji(){qt=XMLHttpRequest.prototype.open,jt=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.open=function(A,e,...t){return this.__bs_method=A.toUpperCase(),this.__bs_url=Ns(typeof e=="string"?e:e.href),qt.apply(this,[A,e,...t])},XMLHttpRequest.prototype.send=function(A){let e=Date.now();return this.addEventListener("loadend",function(){dn({method:this.__bs_method??"GET",url:this.__bs_url??"",status:this.status,statusText:this.statusText,duration:Date.now()-e,responseType:this.getResponseHeader("content-type")??void 0,timestamp:e,failed:this.status>=400||this.status===0})}),jt.call(this,A)}}function Gs(A){A&&(Rs=A),qi(),ji()}function Se(){return[...Ke]}function le(){return Ke.filter(A=>A.failed)}function Ps(){Ke=[]}function Vs(){Zt&&(window.fetch=Zt),qt&&(XMLHttpRequest.prototype.open=qt),jt&&(XMLHttpRequest.prototype.send=jt)}var Ar=[],ct=null,Bt=null;function _s(){ct=A=>{let e={message:A.message||"Unknown error",source:A.filename,lineno:A.lineno,colno:A.colno,stack:A.error?.stack,type:"error",timestamp:Date.now()};Ar.push(e),UA({type:"error",category:"exception",message:e.message,timestamp:e.timestamp,data:{source:e.source,lineno:e.lineno}})},Bt=A=>{let e=A.reason,t=e instanceof Error?e.message:typeof e=="string"?e:"Unhandled promise rejection",r={message:t,stack:e instanceof Error?e.stack:void 0,type:"unhandledrejection",timestamp:Date.now()};Ar.push(r),UA({type:"error",category:"promise",message:t,timestamp:r.timestamp})},window.addEventListener("error",ct),window.addEventListener("unhandledrejection",Bt)}function Ae(){return[...Ar]}function Xs(){Ar=[]}function Js(){ct&&window.removeEventListener("error",ct),Bt&&window.removeEventListener("unhandledrejection",Bt),ct=null,Bt=null}var Y=null,er=null,tr=null,rr=null;function Ws(){if(Y={timestamp:Date.now()},performance.getEntriesByType){let A=()=>{let[e]=performance.getEntriesByType("navigation");e&&Y&&(Y.pageLoadTime=Math.round(e.loadEventEnd-e.startTime),Y.domContentLoaded=Math.round(e.domContentLoadedEventEnd-e.startTime));let t=performance.getEntriesByType("paint");for(let n of t)n.name==="first-paint"&&Y&&(Y.firstPaint=Math.round(n.startTime)),n.name==="first-contentful-paint"&&Y&&(Y.firstContentfulPaint=Math.round(n.startTime));Y&&(Y.resourceCount=performance.getEntriesByType("resource").length);let r=performance.memory;r&&Y&&(Y.memoryUsage={usedJSHeapSize:r.usedJSHeapSize,totalJSHeapSize:r.totalJSHeapSize})};document.readyState==="complete"?setTimeout(A,0):window.addEventListener("load",()=>setTimeout(A,100))}if(typeof PerformanceObserver<"u"){try{er=new PerformanceObserver(A=>{let e=A.getEntries(),t=e[e.length-1];t&&Y&&(Y.largestContentfulPaint=Math.round(t.startTime))}),er.observe({type:"largest-contentful-paint",buffered:!0})}catch{}try{let A=0;tr=new PerformanceObserver(e=>{for(let t of e.getEntries())t.hadRecentInput||(A+=t.value);Y&&(Y.cumulativeLayoutShift=Math.round(A*1e3)/1e3)}),tr.observe({type:"layout-shift",buffered:!0})}catch{}try{rr=new PerformanceObserver(A=>{let[e]=A.getEntries();e&&Y&&(Y.firstInputDelay=Math.round(e.processingStart-e.startTime))}),rr.observe({type:"first-input",buffered:!0})}catch{}}}function Te(){return Y&&(Y.timestamp=Date.now()),Y?{...Y}:null}function Ys(){er?.disconnect(),tr?.disconnect(),rr?.disconnect(),er=null,tr=null,rr=null,Y=null}var kn=function(A,e){return kn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},kn(A,e)};function VA(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");kn(A,e);function t(){this.constructor=A}A.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Mn=function(){return Mn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Mn.apply(this,arguments)};function bA(A,e,t,r){function n(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function i(c){try{l(r.next(c))}catch(B){a(B)}}function o(c){try{l(r.throw(c))}catch(B){a(B)}}function l(c){c.done?s(c.value):n(c.value).then(i,o)}l((r=r.apply(A,e||[])).next())})}function pA(A,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(l){return function(c){return o([l,c])}}function o(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(A,t)}catch(c){l=[6,c],n=0}finally{r=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function nr(A,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return A.concat(s||e)}var ne=(function(){function A(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),kr=function(A,e){return ne.fromClientRect(A,e.getBoundingClientRect())},Al=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new ne(0,0,r,n)},Mr=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((n&1023)<<10)+(s&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},Z=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,s="";++n<t;){var a=A[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},zs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",el=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ut=0;ut<zs.length;ut++)el[zs.charCodeAt(ut)]=ut;var ut,$s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ct=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(gt=0;gt<$s.length;gt++)Ct[$s.charCodeAt(gt)]=gt;var gt,tl=function(A){var e=A.length*.75,t=A.length,r,n=0,s,a,i,o;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),c=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<t;r+=4)s=Ct[A.charCodeAt(r)],a=Ct[A.charCodeAt(r+1)],i=Ct[A.charCodeAt(r+2)],o=Ct[A.charCodeAt(r+3)],c[n++]=s<<2|a>>4,c[n++]=(a&15)<<4|i>>2,c[n++]=(i&3)<<6|o&63;return l},rl=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},nl=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},ye=5,ss=11,fn=2,sl=ss-ye,Ya=65536>>ye,al=1<<ye,pn=al-1,ol=1024>>ye,il=Ya+ol,ll=il,cl=32,Bl=ll+cl,ul=65536>>ss,gl=1<<sl,dl=gl-1,Zs=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},fl=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},pl=function(A,e){var t=tl(A),r=Array.isArray(t)?nl(t):new Uint32Array(t),n=Array.isArray(t)?rl(t):new Uint16Array(t),s=24,a=Zs(n,s/2,r[4]/2),i=r[5]===2?Zs(n,(s+r[4])/2):fl(r,Math.ceil((s+r[4])/4));return new wl(r[0],r[1],r[2],r[3],a,i)},wl=(function(){function A(e,t,r,n,s,a){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=s,this.data=a}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ye],t=(t<<fn)+(e&pn),this.data[t];if(e<=65535)return t=this.index[Ya+(e-55296>>ye)],t=(t<<fn)+(e&pn),this.data[t];if(e<this.highStart)return t=Bl-ul+(e>>ss),t=this.index[t],t+=e>>ye&dl,t=this.index[t],t=(t<<fn)+(e&pn),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),qs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(dt=0;dt<qs.length;dt++)hl[qs.charCodeAt(dt)]=dt;var dt,bl="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB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HLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABw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MAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4A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eAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAF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ACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAU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AFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACs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AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB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B4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeA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UAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",js=50,Ql=1,za=2,$a=3,Cl=4,ml=5,Aa=7,Za=8,ea=9,ge=10,On=11,ta=12,Rn=13,Ul=14,mt=15,Nn=16,sr=17,ft=18,vl=19,ra=20,Gn=21,pt=22,wn=23,De=24,LA=25,Ut=26,vt=27,ke=28,Fl=29,ve=30,yl=31,ar=32,or=33,Pn=34,Vn=35,_n=36,St=37,Xn=38,mr=39,Ur=40,hn=41,qa=42,El=43,xl=[9001,65288],ja="!",O="\xD7",ir="\xF7",Jn=pl(bl),ee=[ve,_n],Wn=[Ql,za,$a,ml],Ao=[ge,Za],na=[vt,Ut],Hl=Wn.concat(Ao),sa=[Xn,mr,Ur,Pn,Vn],Il=[mt,Rn],Ll=function(A,e){e===void 0&&(e="strict");var t=[],r=[],n=[];return A.forEach(function(s,a){var i=Jn.get(s);if(i>js?(n.push(!0),i-=js):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return r.push(a),t.push(Nn);if(i===Cl||i===On){if(a===0)return r.push(a),t.push(ve);var o=t[a-1];return Hl.indexOf(o)===-1?(r.push(r[a-1]),t.push(o)):(r.push(a),t.push(ve))}if(r.push(a),i===yl)return t.push(e==="strict"?Gn:St);if(i===qa||i===Fl)return t.push(ve);if(i===El)return s>=131072&&s<=196605||s>=196608&&s<=262141?t.push(St):t.push(ve);t.push(i)}),[r,t,n]},bn=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var s=t;s<=r.length;){s++;var a=r[s];if(a===e)return!0;if(a!==ge)break}if(n===ge)for(var s=t;s>0;){s--;var i=r[s];if(Array.isArray(A)?A.indexOf(i)!==-1:A===i)for(var o=t;o<=r.length;){o++;var a=r[o];if(a===e)return!0;if(a!==ge)break}if(i!==ge)break}return!1},aa=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r===ge)t--;else return r}return 0},Kl=function(A,e,t,r,n){if(t[r]===0)return O;var s=r-1;if(Array.isArray(n)&&n[s]===!0)return O;var a=s-1,i=s+1,o=e[s],l=a>=0?e[a]:0,c=e[i];if(o===za&&c===$a)return O;if(Wn.indexOf(o)!==-1)return ja;if(Wn.indexOf(c)!==-1||Ao.indexOf(c)!==-1)return O;if(aa(s,e)===Za)return ir;if(Jn.get(A[s])===On||(o===ar||o===or)&&Jn.get(A[i])===On||o===Aa||c===Aa||o===ea||[ge,Rn,mt].indexOf(o)===-1&&c===ea||[sr,ft,vl,De,ke].indexOf(c)!==-1||aa(s,e)===pt||bn(wn,pt,s,e)||bn([sr,ft],Gn,s,e)||bn(ta,ta,s,e))return O;if(o===ge)return ir;if(o===wn||c===wn)return O;if(c===Nn||o===Nn)return ir;if([Rn,mt,Gn].indexOf(c)!==-1||o===Ul||l===_n&&Il.indexOf(o)!==-1||o===ke&&c===_n||c===ra||ee.indexOf(c)!==-1&&o===LA||ee.indexOf(o)!==-1&&c===LA||o===vt&&[St,ar,or].indexOf(c)!==-1||[St,ar,or].indexOf(o)!==-1&&c===Ut||ee.indexOf(o)!==-1&&na.indexOf(c)!==-1||na.indexOf(o)!==-1&&ee.indexOf(c)!==-1||[vt,Ut].indexOf(o)!==-1&&(c===LA||[pt,mt].indexOf(c)!==-1&&e[i+1]===LA)||[pt,mt].indexOf(o)!==-1&&c===LA||o===LA&&[LA,ke,De].indexOf(c)!==-1)return O;if([LA,ke,De,sr,ft].indexOf(c)!==-1)for(var B=s;B>=0;){var u=e[B];if(u===LA)return O;if([ke,De].indexOf(u)!==-1)B--;else break}if([vt,Ut].indexOf(c)!==-1)for(var B=[sr,ft].indexOf(o)!==-1?a:s;B>=0;){var u=e[B];if(u===LA)return O;if([ke,De].indexOf(u)!==-1)B--;else break}if(Xn===o&&[Xn,mr,Pn,Vn].indexOf(c)!==-1||[mr,Pn].indexOf(o)!==-1&&[mr,Ur].indexOf(c)!==-1||[Ur,Vn].indexOf(o)!==-1&&c===Ur||sa.indexOf(o)!==-1&&[ra,Ut].indexOf(c)!==-1||sa.indexOf(c)!==-1&&o===vt||ee.indexOf(o)!==-1&&ee.indexOf(c)!==-1||o===De&&ee.indexOf(c)!==-1||ee.concat(LA).indexOf(o)!==-1&&c===pt&&xl.indexOf(A[i])===-1||ee.concat(LA).indexOf(c)!==-1&&o===ft)return O;if(o===hn&&c===hn){for(var f=t[s],p=1;f>0&&(f--,e[f]===hn);)p++;if(p%2!==0)return O}return o===ar&&c===or?O:ir},Sl=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=Ll(A,e.lineBreak),r=t[0],n=t[1],s=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(i){return[LA,ve,qa].indexOf(i)!==-1?St:i}));var a=e.wordBreak==="keep-all"?s.map(function(i,o){return i&&A[o]>=19968&&A[o]<=40959}):void 0;return[r,n,a]},Tl=(function(){function A(e,t,r,n){this.codePoints=e,this.required=t===ja,this.start=r,this.end=n}return A.prototype.slice=function(){return Z.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),Dl=function(A,e){var t=Mr(A),r=Sl(t,e),n=r[0],s=r[1],a=r[2],i=t.length,o=0,l=0;return{next:function(){if(l>=i)return{done:!0,value:null};for(var c=O;l<i&&(c=Kl(t,s,n,++l,a))===O;);if(c!==O||l===i){var B=new Tl(t,c,o,l);return o=l,{value:B,done:!1}}return{done:!0,value:null}}}},kl=1,Ml=2,kt=4,oa=8,yr=10,ia=47,xt=92,Ol=9,Rl=32,lr=34,wt=61,Nl=35,Gl=36,Pl=37,cr=39,Br=40,ht=41,Vl=95,vA=45,_l=33,Xl=60,Jl=62,Wl=64,Yl=91,zl=93,$l=61,Zl=123,ur=63,ql=125,la=124,jl=126,Ac=128,ca=65533,Qn=42,Fe=43,ec=44,tc=58,rc=59,Tt=46,nc=0,sc=8,ac=11,oc=14,ic=31,lc=127,WA=-1,eo=48,to=97,ro=101,cc=102,Bc=117,uc=122,no=65,so=69,ao=70,gc=85,dc=90,wA=function(A){return A>=eo&&A<=57},fc=function(A){return A>=55296&&A<=57343},Me=function(A){return wA(A)||A>=no&&A<=ao||A>=to&&A<=cc},pc=function(A){return A>=to&&A<=uc},wc=function(A){return A>=no&&A<=dc},hc=function(A){return pc(A)||wc(A)},bc=function(A){return A>=Ac},gr=function(A){return A===yr||A===Ol||A===Rl},Er=function(A){return hc(A)||bc(A)||A===Vl},Ba=function(A){return Er(A)||wA(A)||A===vA},Qc=function(A){return A>=nc&&A<=sc||A===ac||A>=oc&&A<=ic||A===lc},ue=function(A,e){return A!==xt?!1:e!==yr},dr=function(A,e,t){return A===vA?Er(e)||ue(e,t):Er(A)?!0:!!(A===xt&&ue(A,e))},Cn=function(A,e,t){return A===Fe||A===vA?wA(e)?!0:e===Tt&&wA(t):wA(A===Tt?e:A)},Cc=function(A){var e=0,t=1;(A[e]===Fe||A[e]===vA)&&(A[e]===vA&&(t=-1),e++);for(var r=[];wA(A[e]);)r.push(A[e++]);var n=r.length?parseInt(Z.apply(void 0,r),10):0;A[e]===Tt&&e++;for(var s=[];wA(A[e]);)s.push(A[e++]);var a=s.length,i=a?parseInt(Z.apply(void 0,s),10):0;(A[e]===so||A[e]===ro)&&e++;var o=1;(A[e]===Fe||A[e]===vA)&&(A[e]===vA&&(o=-1),e++);for(var l=[];wA(A[e]);)l.push(A[e++]);var c=l.length?parseInt(Z.apply(void 0,l),10):0;return t*(n+i*Math.pow(10,-a))*Math.pow(10,o*c)},mc={type:2},Uc={type:3},vc={type:4},Fc={type:13},yc={type:8},Ec={type:21},xc={type:9},Hc={type:10},Ic={type:11},Lc={type:12},Kc={type:14},fr={type:23},Sc={type:1},Tc={type:25},Dc={type:24},kc={type:26},Mc={type:27},Oc={type:28},Rc={type:29},Nc={type:31},Yn={type:32},oo=(function(){function A(){this._value=[]}return A.prototype.write=function(e){this._value=this._value.concat(Mr(e))},A.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Yn;)e.push(t),t=this.consumeToken();return e},A.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case lr:return this.consumeStringToken(lr);case Nl:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Ba(t)||ue(r,n)){var s=dr(t,r,n)?Ml:kl,a=this.consumeName();return{type:5,value:a,flags:s}}break;case Gl:if(this.peekCodePoint(0)===wt)return this.consumeCodePoint(),Fc;break;case cr:return this.consumeStringToken(cr);case Br:return mc;case ht:return Uc;case Qn:if(this.peekCodePoint(0)===wt)return this.consumeCodePoint(),Kc;break;case Fe:if(Cn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case ec:return vc;case vA:var i=e,o=this.peekCodePoint(0),l=this.peekCodePoint(1);if(Cn(i,o,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(dr(i,o,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(o===vA&&l===Jl)return this.consumeCodePoint(),this.consumeCodePoint(),Dc;break;case Tt:if(Cn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case ia:if(this.peekCodePoint(0)===Qn)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===Qn&&(c=this.consumeCodePoint(),c===ia))return this.consumeToken();if(c===WA)return this.consumeToken()}break;case tc:return kc;case rc:return Mc;case Xl:if(this.peekCodePoint(0)===_l&&this.peekCodePoint(1)===vA&&this.peekCodePoint(2)===vA)return this.consumeCodePoint(),this.consumeCodePoint(),Tc;break;case Wl:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),f=this.peekCodePoint(2);if(dr(B,u,f)){var a=this.consumeName();return{type:7,value:a}}break;case Yl:return Oc;case xt:if(ue(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case zl:return Rc;case $l:if(this.peekCodePoint(0)===wt)return this.consumeCodePoint(),yc;break;case Zl:return Ic;case ql:return Lc;case Bc:case gc:var p=this.peekCodePoint(0),w=this.peekCodePoint(1);return p===Fe&&(Me(w)||w===ur)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case la:if(this.peekCodePoint(0)===wt)return this.consumeCodePoint(),xc;if(this.peekCodePoint(0)===la)return this.consumeCodePoint(),Ec;break;case jl:if(this.peekCodePoint(0)===wt)return this.consumeCodePoint(),Hc;break;case WA:return Yn}return gr(e)?(this.consumeWhiteSpace(),Nc):wA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Er(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Z(e)}},A.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},A.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},A.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},A.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Me(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;t===ur&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(Z.apply(void 0,e.map(function(o){return o===ur?eo:o})),16),s=parseInt(Z.apply(void 0,e.map(function(o){return o===ur?ao:o})),16);return{type:30,start:n,end:s}}var a=parseInt(Z.apply(void 0,e),16);if(this.peekCodePoint(0)===vA&&Me(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];Me(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();var s=parseInt(Z.apply(void 0,i),16);return{type:30,start:a,end:s}}else return{type:30,start:a,end:a}},A.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Br?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Br?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},A.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===WA)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===cr||t===lr){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===WA||this.peekCodePoint(0)===ht)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),fr)}for(;;){var n=this.consumeCodePoint();if(n===WA||n===ht)return{type:22,value:Z.apply(void 0,e)};if(gr(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===WA||this.peekCodePoint(0)===ht?(this.consumeCodePoint(),{type:22,value:Z.apply(void 0,e)}):(this.consumeBadUrlRemnants(),fr);if(n===lr||n===cr||n===Br||Qc(n))return this.consumeBadUrlRemnants(),fr;if(n===xt)if(ue(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),fr;else e.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;gr(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===ht||e===WA)return;ue(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(e){for(var t=5e4,r="";e>0;){var n=Math.min(t,e);r+=Z.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),r},A.prototype.consumeStringToken=function(e){var t="",r=0;do{var n=this._value[r];if(n===WA||n===void 0||n===e)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===yr)return this._value.splice(0,r),Sc;if(n===xt){var s=this._value[r+1];s!==WA&&s!==void 0&&(s===yr?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):ue(n,s)&&(t+=this.consumeStringSlice(r),t+=Z(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},A.prototype.consumeNumber=function(){var e=[],t=kt,r=this.peekCodePoint(0);for((r===Fe||r===vA)&&e.push(this.consumeCodePoint());wA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Tt&&wA(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=oa;wA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var s=this.peekCodePoint(2);if((r===so||r===ro)&&((n===Fe||n===vA)&&wA(s)||wA(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=oa;wA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Cc(e),t]},A.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],n=this.peekCodePoint(0),s=this.peekCodePoint(1),a=this.peekCodePoint(2);if(dr(n,s,a)){var i=this.consumeName();return{type:15,number:t,flags:r,unit:i}}return n===Pl?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},A.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Me(e)){for(var t=Z(e);Me(this.peekCodePoint(0))&&t.length<6;)t+=Z(this.consumeCodePoint());gr(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||fc(r)||r>1114111?ca:r}return e===WA?ca:e},A.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(Ba(t))e+=Z(t);else if(ue(t,this.peekCodePoint(0)))e+=Z(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},A})(),io=(function(){function A(e){this._tokens=e}return A.create=function(e){var t=new oo;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},A.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},A.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||Pc(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},A.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Yn:e},A.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},A})(),Mt=function(A){return A.type===15},Je=function(A){return A.type===17},G=function(A){return A.type===20},Gc=function(A){return A.type===0},zn=function(A,e){return G(A)&&A.value===e},lo=function(A){return A.type!==31},Xe=function(A){return A.type!==31&&A.type!==4},YA=function(A){var e=[],t=[];return A.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&e.push(t),e},Pc=function(A,e){return e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3},he=function(A){return A.type===17||A.type===15},j=function(A){return A.type===16||he(A)},co=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},uA={type:17,number:0,flags:kt},as={type:16,number:50,flags:kt},de={type:16,number:100,flags:kt},Ft=function(A,e,t){var r=A[0],n=A[1];return[_(r,e),_(typeof n<"u"?n:r,t)]},_=function(A,e){if(A.type===16)return A.number/100*e;if(Mt(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},Bo="deg",uo="grad",go="rad",fo="turn",Or={name:"angle",parse:function(A,e){if(e.type===15)switch(e.unit){case Bo:return Math.PI*e.number/180;case uo:return Math.PI/200*e.number;case go:return e.number;case fo:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},po=function(A){return A.type===15&&(A.unit===Bo||A.unit===uo||A.unit===go||A.unit===fo)},wo=function(A){var e=A.filter(G).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[uA,uA];case"to top":case"bottom":return DA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[uA,de];case"to right":case"left":return DA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[de,de];case"to bottom":case"top":return DA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[de,uA];case"to left":case"right":return DA(270)}return 0},DA=function(A){return Math.PI*A/180},pe={name:"color",parse:function(A,e){if(e.type===18){var t=Vc[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),n=e.value.substring(1,2),s=e.value.substring(2,3);return fe(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),n=e.value.substring(1,2),s=e.value.substring(2,3),a=e.value.substring(3,4);return fe(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),parseInt(a+a,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),n=e.value.substring(2,4),s=e.value.substring(4,6);return fe(parseInt(r,16),parseInt(n,16),parseInt(s,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),n=e.value.substring(2,4),s=e.value.substring(4,6),a=e.value.substring(6,8);return fe(parseInt(r,16),parseInt(n,16),parseInt(s,16),parseInt(a,16)/255)}}if(e.type===20){var i=re[e.value.toUpperCase()];if(typeof i<"u")return i}return re.TRANSPARENT}},we=function(A){return(255&A)===0},aA=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},fe=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(r*255)<<0)>>>0},ua=function(A,e){if(A.type===17)return A.number;if(A.type===16){var t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},ga=function(A,e){var t=e.filter(Xe);if(t.length===3){var r=t.map(ua),n=r[0],s=r[1],a=r[2];return fe(n,s,a,1)}if(t.length===4){var i=t.map(ua),n=i[0],s=i[1],a=i[2],o=i[3];return fe(n,s,a,o)}return 0};function mn(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A}var da=function(A,e){var t=e.filter(Xe),r=t[0],n=t[1],s=t[2],a=t[3],i=(r.type===17?DA(r.number):Or.parse(A,r))/(Math.PI*2),o=j(n)?n.number/100:0,l=j(s)?s.number/100:0,c=typeof a<"u"&&j(a)?_(a,1):1;if(o===0)return fe(l*255,l*255,l*255,1);var B=l<=.5?l*(o+1):l+o-l*o,u=l*2-B,f=mn(u,B,i+1/3),p=mn(u,B,i),w=mn(u,B,i-1/3);return fe(f*255,p*255,w*255,c)},Vc={hsl:da,hsla:da,rgb:ga,rgba:ga},Ht=function(A,e){return pe.parse(A,io.create(e).parseComponentValue())},re={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},_c={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(G(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Xc={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Rr=function(A,e){var t=pe.parse(A,e[0]),r=e[1];return r&&j(r)?{color:t,stop:r}:{color:t,stop:null}},fa=function(A,e){var t=A[0],r=A[A.length-1];t.stop===null&&(t.stop=uA),r.stop===null&&(r.stop=de);for(var n=[],s=0,a=0;a<A.length;a++){var i=A[a].stop;if(i!==null){var o=_(i,e);o>s?n.push(o):n.push(s),s=o}else n.push(null)}for(var l=null,a=0;a<n.length;a++){var c=n[a];if(c===null)l===null&&(l=a);else if(l!==null){for(var B=a-l,u=n[l-1],f=(c-u)/(B+1),p=1;p<=B;p++)n[l+p-1]=f*p;l=null}}return A.map(function(w,y){var b=w.color;return{color:b,stop:Math.max(Math.min(1,n[y]/e),0)}})},Jc=function(A,e,t){var r=e/2,n=t/2,s=_(A[0],e)-r,a=n-_(A[1],t);return(Math.atan2(a,s)+Math.PI*2)%(Math.PI*2)},Wc=function(A,e,t){var r=typeof A=="number"?A:Jc(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),s=e/2,a=t/2,i=n/2,o=Math.sin(r-Math.PI/2)*i,l=Math.cos(r-Math.PI/2)*i;return[n,s-l,s+l,a-o,a+o]},PA=function(A,e){return Math.sqrt(A*A+e*e)},pa=function(A,e,t,r,n){var s=[[0,0],[0,e],[A,0],[A,e]];return s.reduce(function(a,i){var o=i[0],l=i[1],c=PA(t-o,r-l);return(n?c<a.optimumDistance:c>a.optimumDistance)?{optimumCorner:i,optimumDistance:c}:a},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Yc=function(A,e,t,r,n){var s=0,a=0;switch(A.size){case 0:A.shape===0?s=a=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(s=Math.min(Math.abs(e),Math.abs(e-r)),a=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(A.shape===0)s=a=Math.min(PA(e,t),PA(e,t-n),PA(e-r,t),PA(e-r,t-n));else if(A.shape===1){var i=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),o=pa(r,n,e,t,!0),l=o[0],c=o[1];s=PA(l-e,(c-t)/i),a=i*s}break;case 1:A.shape===0?s=a=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(s=Math.max(Math.abs(e),Math.abs(e-r)),a=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(A.shape===0)s=a=Math.max(PA(e,t),PA(e,t-n),PA(e-r,t),PA(e-r,t-n));else if(A.shape===1){var i=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r)),B=pa(r,n,e,t,!1),l=B[0],c=B[1];s=PA(l-e,(c-t)/i),a=i*s}break}return Array.isArray(A.size)&&(s=_(A.size[0],r),a=A.size.length===2?_(A.size[1],n):s),[s,a]},zc=function(A,e){var t=DA(180),r=[];return YA(e).forEach(function(n,s){if(s===0){var a=n[0];if(a.type===20&&a.value==="to"){t=wo(n);return}else if(po(a)){t=Or.parse(A,a);return}}var i=Rr(A,n);r.push(i)}),{angle:t,stops:r,type:1}},pr=function(A,e){var t=DA(180),r=[];return YA(e).forEach(function(n,s){if(s===0){var a=n[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=wo(n);return}else if(po(a)){t=(Or.parse(A,a)+DA(270))%DA(360);return}}var i=Rr(A,n);r.push(i)}),{angle:t,stops:r,type:1}},$c=function(A,e){var t=DA(180),r=[],n=1,s=0,a=3,i=[];return YA(e).forEach(function(o,l){var c=o[0];if(l===0){if(G(c)&&c.value==="linear"){n=1;return}else if(G(c)&&c.value==="radial"){n=2;return}}if(c.type===18){if(c.name==="from"){var B=pe.parse(A,c.values[0]);r.push({stop:uA,color:B})}else if(c.name==="to"){var B=pe.parse(A,c.values[0]);r.push({stop:de,color:B})}else if(c.name==="color-stop"){var u=c.values.filter(Xe);if(u.length===2){var B=pe.parse(A,u[1]),f=u[0];Je(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:B})}}}}),n===1?{angle:(t+DA(180))%DA(360),stops:r,type:n}:{size:a,shape:s,stops:r,position:i,type:n}},ho="closest-side",bo="farthest-side",Qo="closest-corner",Co="farthest-corner",mo="circle",Uo="ellipse",vo="cover",Fo="contain",Zc=function(A,e){var t=0,r=3,n=[],s=[];return YA(e).forEach(function(a,i){var o=!0;if(i===0){var l=!1;o=a.reduce(function(B,u){if(l)if(G(u))switch(u.value){case"center":return s.push(as),B;case"top":case"left":return s.push(uA),B;case"right":case"bottom":return s.push(de),B}else(j(u)||he(u))&&s.push(u);else if(G(u))switch(u.value){case mo:return t=0,!1;case Uo:return t=1,!1;case"at":return l=!0,!1;case ho:return r=0,!1;case vo:case bo:return r=1,!1;case Fo:case Qo:return r=2,!1;case Co:return r=3,!1}else if(he(u)||j(u))return Array.isArray(r)||(r=[]),r.push(u),!1;return B},o)}if(o){var c=Rr(A,a);n.push(c)}}),{size:r,shape:t,stops:n,position:s,type:2}},wr=function(A,e){var t=0,r=3,n=[],s=[];return YA(e).forEach(function(a,i){var o=!0;if(i===0?o=a.reduce(function(c,B){if(G(B))switch(B.value){case"center":return s.push(as),!1;case"top":case"left":return s.push(uA),!1;case"right":case"bottom":return s.push(de),!1}else if(j(B)||he(B))return s.push(B),!1;return c},o):i===1&&(o=a.reduce(function(c,B){if(G(B))switch(B.value){case mo:return t=0,!1;case Uo:return t=1,!1;case Fo:case ho:return r=0,!1;case bo:return r=1,!1;case Qo:return r=2,!1;case vo:case Co:return r=3,!1}else if(he(B)||j(B))return Array.isArray(r)||(r=[]),r.push(B),!1;return c},o)),o){var l=Rr(A,a);n.push(l)}}),{size:r,shape:t,stops:n,position:s,type:2}},qc=function(A){return A.type===1},jc=function(A){return A.type===2},os={name:"image",parse:function(A,e){if(e.type===22){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){var r=yo[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function AB(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!yo[A.name])}var yo={"linear-gradient":zc,"-moz-linear-gradient":pr,"-ms-linear-gradient":pr,"-o-linear-gradient":pr,"-webkit-linear-gradient":pr,"radial-gradient":Zc,"-moz-radial-gradient":wr,"-ms-radial-gradient":wr,"-o-radial-gradient":wr,"-webkit-radial-gradient":wr,"-webkit-gradient":$c},eB={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(r){return Xe(r)&&AB(r)}).map(function(r){return os.parse(A,r)})}},tB={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(G(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},rB={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return YA(e).map(function(t){return t.filter(j)}).map(co)}},nB={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return YA(e).map(function(t){return t.filter(G).map(function(r){return r.value}).join(" ")}).map(sB)}},sB=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},_e;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(_e||(_e={}));var aB={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return YA(e).map(function(t){return t.filter(oB)})}},oB=function(A){return G(A)||j(A)},Nr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},iB=Nr("top"),lB=Nr("right"),cB=Nr("bottom"),BB=Nr("left"),Gr=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return co(t.filter(j))}}},uB=Gr("top-left"),gB=Gr("top-right"),dB=Gr("bottom-right"),fB=Gr("bottom-left"),Pr=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},pB=Pr("top"),wB=Pr("right"),hB=Pr("bottom"),bB=Pr("left"),Vr=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Mt(t)?t.number:0}}},QB=Vr("top"),CB=Vr("right"),mB=Vr("bottom"),UB=Vr("left"),vB={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},FB={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return e==="rtl"?1:0}},yB={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(G).reduce(function(t,r){return t|EB(r.value)},0)}},EB=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},xB={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},HB={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},xr;(function(A){A.NORMAL="normal",A.STRICT="strict"})(xr||(xr={}));var IB={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="strict"?xr.STRICT:xr.NORMAL}},LB={name:"line-height",initialValue:"normal",prefix:!1,type:4},wa=function(A,e){return G(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:j(A)?_(A,e):e},KB={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return e.type===20&&e.value==="none"?null:os.parse(A,e)}},SB={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return e==="inside"?0:1}},$n={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},_r=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},TB=_r("top"),DB=_r("right"),kB=_r("bottom"),MB=_r("left"),OB={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(G).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},RB={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="break-word"?"break-word":"normal"}},Xr=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},NB=Xr("top"),GB=Xr("right"),PB=Xr("bottom"),VB=Xr("left"),_B={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},XB={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},JB={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&zn(e[0],"none")?[]:YA(e).map(function(t){for(var r={color:re.TRANSPARENT,offsetX:uA,offsetY:uA,blur:uA},n=0,s=0;s<t.length;s++){var a=t[s];he(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:r.blur=a,n++):r.color=pe.parse(A,a)}return r})}},WB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},YB={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=ZB[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},zB=function(A){var e=A.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},$B=function(A){var e=A.filter(function(o){return o.type===17}).map(function(o){return o.number}),t=e[0],r=e[1];e[2],e[3];var n=e[4],s=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var a=e[12],i=e[13];return e[14],e[15],e.length===16?[t,r,n,s,a,i]:null},ZB={matrix:zB,matrix3d:$B},ha={type:16,number:50,flags:kt},qB=[ha,ha],jB={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(j);return t.length!==2?qB:[t[0],t[1]]}},Au={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},It;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(It||(It={}));var eu={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return It.BREAK_ALL;case"keep-all":return It.KEEP_ALL;default:return It.NORMAL}}},tu={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(e.type===20)return{auto:!0,order:0};if(Je(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Eo={name:"time",parse:function(A,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},ru={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:1}},nu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},su={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(G).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},au={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},ou={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},iu={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:G(e)&&e.value==="bold"?700:400}},lu={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(G).map(function(t){return t.value})}},cu={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},tA=function(A,e){return(A&e)!==0},Bu={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},uu={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=e.filter(lo),s=0;s<n.length;s++){var a=n[s],i=n[s+1];if(a.type===20){var o=i&&Je(i)?i.number:1;r.push({counter:a.value,increment:o})}}return r}},gu={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return[];for(var t=[],r=e.filter(lo),n=0;n<r.length;n++){var s=r[n],a=r[n+1];if(G(s)&&s.value!=="none"){var i=a&&Je(a)?a.number:0;t.push({counter:s.value,reset:i})}}return t}},du={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(Mt).map(function(t){return Eo.parse(A,t)})}},fu={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var r=[],n=e.filter(Gc);if(n.length%2!==0)return null;for(var s=0;s<n.length;s+=2){var a=n[s].value,i=n[s+1].value;r.push({open:a,close:i})}return r}},ba=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},pu={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&zn(e[0],"none")?[]:YA(e).map(function(t){for(var r={color:255,offsetX:uA,offsetY:uA,blur:uA,spread:uA,inset:!1},n=0,s=0;s<t.length;s++){var a=t[s];zn(a,"inset")?r.inset=!0:he(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:n===2?r.blur=a:r.spread=a,n++):r.color=pe.parse(A,a)}return r})}},wu={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[0,1,2],r=[];return e.filter(G).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},hu={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},bu={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Mt(e)?e.number:0}},Qu=(function(){function A(e,t){var r,n;this.animationDuration=U(e,du,t.animationDuration),this.backgroundClip=U(e,_c,t.backgroundClip),this.backgroundColor=U(e,Xc,t.backgroundColor),this.backgroundImage=U(e,eB,t.backgroundImage),this.backgroundOrigin=U(e,tB,t.backgroundOrigin),this.backgroundPosition=U(e,rB,t.backgroundPosition),this.backgroundRepeat=U(e,nB,t.backgroundRepeat),this.backgroundSize=U(e,aB,t.backgroundSize),this.borderTopColor=U(e,iB,t.borderTopColor),this.borderRightColor=U(e,lB,t.borderRightColor),this.borderBottomColor=U(e,cB,t.borderBottomColor),this.borderLeftColor=U(e,BB,t.borderLeftColor),this.borderTopLeftRadius=U(e,uB,t.borderTopLeftRadius),this.borderTopRightRadius=U(e,gB,t.borderTopRightRadius),this.borderBottomRightRadius=U(e,dB,t.borderBottomRightRadius),this.borderBottomLeftRadius=U(e,fB,t.borderBottomLeftRadius),this.borderTopStyle=U(e,pB,t.borderTopStyle),this.borderRightStyle=U(e,wB,t.borderRightStyle),this.borderBottomStyle=U(e,hB,t.borderBottomStyle),this.borderLeftStyle=U(e,bB,t.borderLeftStyle),this.borderTopWidth=U(e,QB,t.borderTopWidth),this.borderRightWidth=U(e,CB,t.borderRightWidth),this.borderBottomWidth=U(e,mB,t.borderBottomWidth),this.borderLeftWidth=U(e,UB,t.borderLeftWidth),this.boxShadow=U(e,pu,t.boxShadow),this.color=U(e,vB,t.color),this.direction=U(e,FB,t.direction),this.display=U(e,yB,t.display),this.float=U(e,xB,t.cssFloat),this.fontFamily=U(e,au,t.fontFamily),this.fontSize=U(e,ou,t.fontSize),this.fontStyle=U(e,cu,t.fontStyle),this.fontVariant=U(e,lu,t.fontVariant),this.fontWeight=U(e,iu,t.fontWeight),this.letterSpacing=U(e,HB,t.letterSpacing),this.lineBreak=U(e,IB,t.lineBreak),this.lineHeight=U(e,LB,t.lineHeight),this.listStyleImage=U(e,KB,t.listStyleImage),this.listStylePosition=U(e,SB,t.listStylePosition),this.listStyleType=U(e,$n,t.listStyleType),this.marginTop=U(e,TB,t.marginTop),this.marginRight=U(e,DB,t.marginRight),this.marginBottom=U(e,kB,t.marginBottom),this.marginLeft=U(e,MB,t.marginLeft),this.opacity=U(e,ru,t.opacity);var s=U(e,OB,t.overflow);this.overflowX=s[0],this.overflowY=s[s.length>1?1:0],this.overflowWrap=U(e,RB,t.overflowWrap),this.paddingTop=U(e,NB,t.paddingTop),this.paddingRight=U(e,GB,t.paddingRight),this.paddingBottom=U(e,PB,t.paddingBottom),this.paddingLeft=U(e,VB,t.paddingLeft),this.paintOrder=U(e,wu,t.paintOrder),this.position=U(e,XB,t.position),this.textAlign=U(e,_B,t.textAlign),this.textDecorationColor=U(e,nu,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=U(e,su,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=U(e,JB,t.textShadow),this.textTransform=U(e,WB,t.textTransform),this.transform=U(e,YB,t.transform),this.transformOrigin=U(e,jB,t.transformOrigin),this.visibility=U(e,Au,t.visibility),this.webkitTextStrokeColor=U(e,hu,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=U(e,bu,t.webkitTextStrokeWidth),this.wordBreak=U(e,eu,t.wordBreak),this.zIndex=U(e,tu,t.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return we(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return tA(this.display,4)||tA(this.display,33554432)||tA(this.display,268435456)||tA(this.display,536870912)||tA(this.display,67108864)||tA(this.display,134217728)},A})(),Cu=(function(){function A(e,t){this.content=U(e,Bu,t.content),this.quotes=U(e,fu,t.quotes)}return A})(),Qa=(function(){function A(e,t){this.counterIncrement=U(e,uu,t.counterIncrement),this.counterReset=U(e,gu,t.counterReset)}return A})(),U=function(A,e,t){var r=new oo,n=t!==null&&typeof t<"u"?t.toString():e.initialValue;r.write(n);var s=new io(r.read());switch(e.type){case 2:var a=s.parseComponentValue();return e.parse(A,G(a)?a.value:e.initialValue);case 0:return e.parse(A,s.parseComponentValue());case 1:return e.parse(A,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(e.format){case"angle":return Or.parse(A,s.parseComponentValue());case"color":return pe.parse(A,s.parseComponentValue());case"image":return os.parse(A,s.parseComponentValue());case"length":var i=s.parseComponentValue();return he(i)?i:uA;case"length-percentage":var o=s.parseComponentValue();return j(o)?o:uA;case"time":return Eo.parse(A,s.parseComponentValue())}break}},mu="data-html2canvas-debug",Uu=function(A){var e=A.getAttribute(mu);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Zn=function(A,e){var t=Uu(A);return t===1||e===t},zA=(function(){function A(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Zn(t,3))debugger;this.styles=new Qu(e,window.getComputedStyle(t,null)),As(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=kr(this.context,t),Zn(t,4)&&(this.flags|=16)}return A})(),vu="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3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ACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGV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AgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ca.length;bt++)yt[Ca.charCodeAt(bt)]=bt;var bt,Fu=function(A){var e=A.length*.75,t=A.length,r,n=0,s,a,i,o;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),c=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<t;r+=4)s=yt[A.charCodeAt(r)],a=yt[A.charCodeAt(r+1)],i=yt[A.charCodeAt(r+2)],o=yt[A.charCodeAt(r+3)],c[n++]=s<<2|a>>4,c[n++]=(a&15)<<4|i>>2,c[n++]=(i&3)<<6|o&63;return l},yu=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},Eu=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},Ee=5,is=11,Un=2,xu=is-Ee,xo=65536>>Ee,Hu=1<<Ee,vn=Hu-1,Iu=1024>>Ee,Lu=xo+Iu,Ku=Lu,Su=32,Tu=Ku+Su,Du=65536>>is,ku=1<<xu,Mu=ku-1,ma=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},Ou=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},Ru=function(A,e){var t=Fu(A),r=Array.isArray(t)?Eu(t):new Uint32Array(t),n=Array.isArray(t)?yu(t):new Uint16Array(t),s=24,a=ma(n,s/2,r[4]/2),i=r[5]===2?ma(n,(s+r[4])/2):Ou(r,Math.ceil((s+r[4])/4));return new Nu(r[0],r[1],r[2],r[3],a,i)},Nu=(function(){function A(e,t,r,n,s,a){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=s,this.data=a}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Ee],t=(t<<Un)+(e&vn),this.data[t];if(e<=65535)return t=this.index[xo+(e-55296>>Ee)],t=(t<<Un)+(e&vn),this.data[t];if(e<this.highStart)return t=Tu-Du+(e>>is),t=this.index[t],t+=e>>Ee&Mu,t=this.index[t],t=(t<<Un)+(e&vn),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Ua="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Qt=0;Qt<Ua.length;Qt++)Gu[Ua.charCodeAt(Qt)]=Qt;var Qt,Pu=1,Fn=2,yn=3,va=4,Fa=5,Vu=7,ya=8,En=9,xn=10,Ea=11,xa=12,Ha=13,Ia=14,Hn=15,_u=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((n&1023)<<10)+(s&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},Xu=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,s="";++n<t;){var a=A[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},Ju=Ru(vu),SA="\xD7",In="\xF7",Wu=function(A){return Ju.get(A)},Yu=function(A,e,t){var r=t-2,n=e[r],s=e[t-1],a=e[t];if(s===Fn&&a===yn)return SA;if(s===Fn||s===yn||s===va||a===Fn||a===yn||a===va)return In;if(s===ya&&[ya,En,Ea,xa].indexOf(a)!==-1||(s===Ea||s===En)&&(a===En||a===xn)||(s===xa||s===xn)&&a===xn||a===Ha||a===Fa||a===Vu||s===Pu)return SA;if(s===Ha&&a===Ia){for(;n===Fa;)n=e[--r];if(n===Ia)return SA}if(s===Hn&&a===Hn){for(var i=0;n===Hn;)i++,n=e[--r];if(i%2===0)return SA}return In},zu=function(A){var e=_u(A),t=e.length,r=0,n=0,s=e.map(Wu);return{next:function(){if(r>=t)return{done:!0,value:null};for(var a=SA;r<t&&(a=Yu(e,s,++r))===SA;);if(a!==SA||r===t){var i=Xu.apply(null,e.slice(n,r));return n=r,{value:i,done:!1}}return{done:!0,value:null}}}},$u=function(A){for(var e=zu(A),t=[],r;!(r=e.next()).done;)r.value&&t.push(r.value.slice());return t},Zu=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),s=Math.round(n.height);if(A.body.removeChild(r),s===e)return!0}}return!1},qu=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=e.firstChild,n=Mr(r.data).map(function(o){return Z(o)}),s=0,a={},i=n.every(function(o,l){t.setStart(r,s),t.setEnd(r,s+o.length);var c=t.getBoundingClientRect();s+=o.length;var B=c.x>a.x||c.y>a.y;return a=c,l===0?!0:B});return A.body.removeChild(e),i},ju=function(){return typeof new Image().crossOrigin<"u"},Ag=function(){return typeof new XMLHttpRequest().responseType=="string"},eg=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},La=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},tg=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,s=e.toDataURL();n.src=s;var a=qn(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Ka(a).then(function(i){r.drawImage(i,0,0);var o=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var l=A.createElement("div");return l.style.backgroundImage="url("+s+")",l.style.height=t+"px",La(o)?Ka(qn(t,t,0,0,l)):Promise.reject(!1)}).then(function(i){return r.drawImage(i,0,0),La(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},qn=function(A,e,t,r,n){var s="http://www.w3.org/2000/svg",a=document.createElementNS(s,"svg"),i=document.createElementNS(s,"foreignObject");return a.setAttributeNS(null,"width",A.toString()),a.setAttributeNS(null,"height",e.toString()),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.setAttributeNS(null,"x",t.toString()),i.setAttributeNS(null,"y",r.toString()),i.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(i),i.appendChild(n),a},Ka=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},BA={get SUPPORT_RANGE_BOUNDS(){var A=Zu(document);return Object.defineProperty(BA,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=BA.SUPPORT_RANGE_BOUNDS&&qu(document);return Object.defineProperty(BA,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=eg(document);return Object.defineProperty(BA,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?tg(document):Promise.resolve(!1);return Object.defineProperty(BA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=ju();return Object.defineProperty(BA,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=Ag();return Object.defineProperty(BA,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(BA,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(BA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Lt=(function(){function A(e,t){this.text=e,this.bounds=t}return A})(),rg=function(A,e,t,r){var n=ag(e,t),s=[],a=0;return n.forEach(function(i){if(t.textDecorationLine.length||i.trim().length>0)if(BA.SUPPORT_RANGE_BOUNDS){var o=Sa(r,a,i.length).getClientRects();if(o.length>1){var l=ls(i),c=0;l.forEach(function(u){s.push(new Lt(u,ne.fromDOMRectList(A,Sa(r,c+a,u.length).getClientRects()))),c+=u.length})}else s.push(new Lt(i,ne.fromDOMRectList(A,o)))}else{var B=r.splitText(i.length);s.push(new Lt(i,ng(A,r))),r=B}else BA.SUPPORT_RANGE_BOUNDS||(r=r.splitText(i.length));a+=i.length}),s},ng=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var s=kr(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),s}}return ne.EMPTY},Sa=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},ls=function(A){if(BA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(t){return t.segment})}return $u(A)},sg=function(A,e){if(BA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(r){return r.segment})}return ig(A,e)},ag=function(A,e){return e.letterSpacing!==0?ls(A):sg(A,e)},og=[32,160,4961,65792,65793,4153,4241],ig=function(A,e){for(var t=Dl(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],n,s=function(){if(n.value){var a=n.value.slice(),i=Mr(a),o="";i.forEach(function(l){og.indexOf(l)===-1?o+=Z(l):(o.length&&r.push(o),r.push(Z(l)),o="")}),o.length&&r.push(o)}};!(n=t.next()).done;)s();return r},lg=(function(){function A(e,t,r){this.text=cg(t.data,r.textTransform),this.textBounds=rg(e,this.text,r,t)}return A})(),cg=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(Bg,ug);case 2:return A.toUpperCase();default:return A}},Bg=/(^|\s|:|-|\(|\))([a-z])/g,ug=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Ho=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return e})(zA),Io=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return e})(zA),Lo=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this,s=new XMLSerializer,a=kr(t,r);return r.setAttribute("width",a.width+"px"),r.setAttribute("height",a.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(s.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e})(zA),Ko=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.value=r.value,n}return e})(zA),jn=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return e})(zA),gg=[{type:15,flags:0,unit:"px",number:3}],dg=[{type:16,flags:0,number:50}],fg=function(A){return A.width>A.height?new ne(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new ne(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},pg=function(A){var e=A.type===wg?new Array(A.value.length+1).join("\u2022"):A.value;return e.length===0?A.placeholder||"":e},Hr="checkbox",Ir="radio",wg="password",Ta=707406591,cs=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=pg(r),(n.type===Hr||n.type===Ir)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=fg(n.bounds)),n.type){case Hr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=gg;break;case Ir:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=dg;break}return n}return e})(zA),So=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this,s=r.options[r.selectedIndex||0];return n.value=s&&s.text||"",n}return e})(zA),To=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.value=r.value,n}return e})(zA),Do=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=Mo(t,r.contentWindow.document.documentElement);var s=r.contentWindow.document.documentElement?Ht(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):re.TRANSPARENT,a=r.contentWindow.document.body?Ht(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):re.TRANSPARENT;n.backgroundColor=we(s)?we(a)?n.styles.backgroundColor:a:s}}catch{}return n}return e})(zA),hg=["OL","UL","MENU"],vr=function(A,e,t,r){for(var n=e.firstChild,s=void 0;n;n=s)if(s=n.nextSibling,Oo(n)&&n.data.trim().length>0)t.textNodes.push(new lg(A,n,t.styles));else if(Ve(n))if(Po(n)&&n.assignedNodes)n.assignedNodes().forEach(function(i){return vr(A,i,t,r)});else{var a=ko(A,n);a.styles.isVisible()&&(bg(n,a,r)?a.flags|=4:Qg(a.styles)&&(a.flags|=2),hg.indexOf(n.tagName)!==-1&&(a.flags|=8),t.elements.push(a),n.slot,n.shadowRoot?vr(A,n.shadowRoot,a,r):!Lr(n)&&!Ro(n)&&!Kr(n)&&vr(A,n,a,r))}},ko=function(A,e){return es(e)?new Ho(A,e):No(e)?new Io(A,e):Ro(e)?new Lo(A,e):Cg(e)?new Ko(A,e):mg(e)?new jn(A,e):Ug(e)?new cs(A,e):Kr(e)?new So(A,e):Lr(e)?new To(A,e):Go(e)?new Do(A,e):new zA(A,e)},Mo=function(A,e){var t=ko(A,e);return t.flags|=4,vr(A,e,t,t),t},bg=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Bs(A)&&t.styles.isTransparent()},Qg=function(A){return A.isPositioned()||A.isFloating()},Oo=function(A){return A.nodeType===Node.TEXT_NODE},Ve=function(A){return A.nodeType===Node.ELEMENT_NODE},As=function(A){return Ve(A)&&typeof A.style<"u"&&!Fr(A)},Fr=function(A){return typeof A.className=="object"},Cg=function(A){return A.tagName==="LI"},mg=function(A){return A.tagName==="OL"},Ug=function(A){return A.tagName==="INPUT"},vg=function(A){return A.tagName==="HTML"},Ro=function(A){return A.tagName==="svg"},Bs=function(A){return A.tagName==="BODY"},No=function(A){return A.tagName==="CANVAS"},Da=function(A){return A.tagName==="VIDEO"},es=function(A){return A.tagName==="IMG"},Go=function(A){return A.tagName==="IFRAME"},ka=function(A){return A.tagName==="STYLE"},Fg=function(A){return A.tagName==="SCRIPT"},Lr=function(A){return A.tagName==="TEXTAREA"},Kr=function(A){return A.tagName==="SELECT"},Po=function(A){return A.tagName==="SLOT"},Ma=function(A){return A.tagName.indexOf("-")>0},yg=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},A.prototype.pop=function(e){var t=this;e.forEach(function(r){return t.counters[r].pop()})},A.prototype.parse=function(e){var t=this,r=e.counterIncrement,n=e.counterReset,s=!0;r!==null&&r.forEach(function(i){var o=t.counters[i.counter];o&&i.increment!==0&&(s=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=i.increment)});var a=[];return s&&n.forEach(function(i){var o=t.counters[i.counter];a.push(i.counter),o||(o=t.counters[i.counter]=[]),o.push(i.reset)}),a},A})(),Oa={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ra={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Eg={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},xg={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Oe=function(A,e,t,r,n,s){return A<e||A>t?Dt(A,n,s.length>0):r.integers.reduce(function(a,i,o){for(;A>=i;)A-=i,a+=r.values[o];return a},"")+s},Vo=function(A,e,t,r){var n="";do t||A--,n=r(A)+n,A/=e;while(A*e>=e);return n},$=function(A,e,t,r,n){var s=t-e+1;return(A<0?"-":"")+(Vo(Math.abs(A),s,r,function(a){return Z(Math.floor(a%s)+e)})+n)},Ue=function(A,e,t){t===void 0&&(t=". ");var r=e.length;return Vo(Math.abs(A),r,!1,function(n){return e[Math.floor(n%r)]})+t},Ge=1,ce=2,Be=4,Et=8,te=function(A,e,t,r,n,s){if(A<-9999||A>9999)return Dt(A,4,n.length>0);var a=Math.abs(A),i=n;if(a===0)return e[0]+i;for(var o=0;a>0&&o<=4;o++){var l=a%10;l===0&&tA(s,Ge)&&i!==""?i=e[l]+i:l>1||l===1&&o===0||l===1&&o===1&&tA(s,ce)||l===1&&o===1&&tA(s,Be)&&A>100||l===1&&o>1&&tA(s,Et)?i=e[l]+(o>0?t[o-1]:"")+i:l===1&&o>0&&(i=t[o-1]+i),a=Math.floor(a/10)}return(A<0?r:"")+i},Na="\u5341\u767E\u5343\u842C",Ga="\u62FE\u4F70\u4EDF\u842C",Pa="\u30DE\u30A4\u30CA\u30B9",Ln="\uB9C8\uC774\uB108\uC2A4",Dt=function(A,e,t){var r=t?". ":"",n=t?"\u3001":"",s=t?", ":"",a=t?" ":"";switch(e){case 0:return"\u2022"+a;case 1:return"\u25E6"+a;case 2:return"\u25FE"+a;case 5:var i=$(A,48,57,!0,r);return i.length<4?"0"+i:i;case 4:return Ue(A,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",n);case 6:return Oe(A,1,3999,Oa,3,r).toLowerCase();case 7:return Oe(A,1,3999,Oa,3,r);case 8:return $(A,945,969,!1,r);case 9:return $(A,97,122,!1,r);case 10:return $(A,65,90,!1,r);case 11:return $(A,1632,1641,!0,r);case 12:case 49:return Oe(A,1,9999,Ra,3,r);case 35:return Oe(A,1,9999,Ra,3,r).toLowerCase();case 13:return $(A,2534,2543,!0,r);case 14:case 30:return $(A,6112,6121,!0,r);case 15:return Ue(A,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",n);case 16:return Ue(A,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",n);case 17:case 48:return te(A,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Na,"\u8CA0",n,ce|Be|Et);case 47:return te(A,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Ga,"\u8CA0",n,Ge|ce|Be|Et);case 42:return te(A,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Na,"\u8D1F",n,ce|Be|Et);case 41:return te(A,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Ga,"\u8D1F",n,Ge|ce|Be|Et);case 26:return te(A,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Pa,n,0);case 25:return te(A,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Pa,n,Ge|ce|Be);case 31:return te(A,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Ln,s,Ge|ce|Be);case 33:return te(A,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Ln,s,0);case 32:return te(A,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Ln,s,Ge|ce|Be);case 18:return $(A,2406,2415,!0,r);case 20:return Oe(A,1,19999,xg,3,r);case 21:return $(A,2790,2799,!0,r);case 22:return $(A,2662,2671,!0,r);case 22:return Oe(A,1,10999,Eg,3,r);case 23:return Ue(A,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Ue(A,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return $(A,3302,3311,!0,r);case 28:return Ue(A,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",n);case 29:return Ue(A,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",n);case 34:return $(A,3792,3801,!0,r);case 37:return $(A,6160,6169,!0,r);case 38:return $(A,4160,4169,!0,r);case 39:return $(A,2918,2927,!0,r);case 40:return $(A,1776,1785,!0,r);case 43:return $(A,3046,3055,!0,r);case 44:return $(A,3174,3183,!0,r);case 45:return $(A,3664,3673,!0,r);case 46:return $(A,3872,3881,!0,r);default:return $(A,48,57,!0,r)}},_o="data-html2canvas-ignore",Va=(function(){function A(e,t,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new yg,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(e,t){var r=this,n=Hg(e,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,i=n.contentWindow,o=i.document,l=Kg(n).then(function(){return bA(r,void 0,void 0,function(){var c,B;return pA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(kg),i&&(i.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(i.scrollY!==t.top||i.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-t.left,i.scrollY-t.top,0,0))),c=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Lg(o)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(o,B)}).then(function(){return n})]:[2,n]}})})});return o.open(),o.write(Tg(document.doctype)+"<html></html>"),Dg(this.referenceElement.ownerDocument,s,a),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),l},A.prototype.createElementClone=function(e){if(Zn(e,2))debugger;if(No(e))return this.createCanvasClone(e);if(Da(e))return this.createVideoClone(e);if(ka(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return es(t)&&(es(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),Ma(t)?this.createCustomElementClone(t):t},A.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Kn(e.style,t),t},A.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(s,a){return a&&typeof a.cssText=="string"?s+a.cssText:s},""),n=e.cloneNode(!1);return n.textContent=r,n}}catch(s){if(this.context.logger.error("Unable to access cssRules property",s),s.name!=="SecurityError")throw s}return e.cloneNode(!1)},A.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var s=e.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&s)a.putImageData(s.getImageData(0,0,e.width,e.height),0,0);else{var i=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(i){var o=i.getContextAttributes();o?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}a.drawImage(e,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},A.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},A.prototype.appendChildNode=function(e,t,r){(!Ve(t)||!Fg(t)&&!t.hasAttribute(_o)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Ve(t)||!ka(t))&&e.appendChild(this.cloneNode(t,r))},A.prototype.cloneChildNodes=function(e,t,r){for(var n=this,s=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;s;s=s.nextSibling)if(Ve(s)&&Po(s)&&typeof s.assignedNodes=="function"){var a=s.assignedNodes();a.length&&a.forEach(function(i){return n.appendChildNode(t,i,r)})}else this.appendChildNode(t,s,r)},A.prototype.cloneNode=function(e,t){if(Oo(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Ve(e)&&(As(e)||Fr(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var s=r.getComputedStyle(e),a=r.getComputedStyle(e,":before"),i=r.getComputedStyle(e,":after");this.referenceElement===e&&As(n)&&(this.clonedReferenceElement=n),Bs(n)&&Rg(n);var o=this.counters.parse(new Qa(this.context,s)),l=this.resolvePseudoContent(e,n,a,Kt.BEFORE);Ma(e)&&(t=!0),Da(e)||this.cloneChildNodes(e,n,t),l&&n.insertBefore(l,n.firstChild);var c=this.resolvePseudoContent(e,n,i,Kt.AFTER);return c&&n.appendChild(c),this.counters.pop(o),(s&&(this.options.copyStyles||Fr(e))&&!Go(e)||t)&&Kn(s,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Lr(e)||Kr(e))&&(Lr(n)||Kr(n))&&(n.value=e.value),n}return e.cloneNode(!1)},A.prototype.resolvePseudoContent=function(e,t,r,n){var s=this;if(r){var a=r.content,i=t.ownerDocument;if(!(!i||!a||a==="none"||a==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Qa(this.context,r));var o=new Cu(this.context,r),l=i.createElement("html2canvaspseudoelement");Kn(r,l),o.content.forEach(function(B){if(B.type===0)l.appendChild(i.createTextNode(B.value));else if(B.type===22){var u=i.createElement("img");u.src=B.value,u.style.opacity="1",l.appendChild(u)}else if(B.type===18){if(B.name==="attr"){var f=B.values.filter(G);f.length&&l.appendChild(i.createTextNode(e.getAttribute(f[0].value)||""))}else if(B.name==="counter"){var p=B.values.filter(Xe),w=p[0],y=p[1];if(w&&G(w)){var b=s.counters.getCounterValue(w.value),h=y&&G(y)?$n.parse(s.context,y.value):3;l.appendChild(i.createTextNode(Dt(b,h,!1)))}}else if(B.name==="counters"){var k=B.values.filter(Xe),w=k[0],K=k[1],y=k[2];if(w&&G(w)){var H=s.counters.getCounterValues(w.value),Q=y&&G(y)?$n.parse(s.context,y.value):3,C=K&&K.type===0?K.value:"",S=H.map(function(sA){return Dt(sA,Q,!1)}).join(C);l.appendChild(i.createTextNode(S))}}}else if(B.type===20)switch(B.value){case"open-quote":l.appendChild(i.createTextNode(ba(o.quotes,s.quoteDepth++,!0)));break;case"close-quote":l.appendChild(i.createTextNode(ba(o.quotes,--s.quoteDepth,!1)));break;default:l.appendChild(i.createTextNode(B.value))}}),l.className=ts+" "+rs;var c=n===Kt.BEFORE?" "+ts:" "+rs;return Fr(t)?t.className.baseValue+=c:t.className+=c,l}}},A.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},A})(),Kt;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(Kt||(Kt={}));var Hg=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(_o,"true"),A.body.appendChild(t),t},Ig=function(A){return new Promise(function(e){if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e})},Lg=function(A){return Promise.all([].slice.call(A.images,0).map(Ig))},Kg=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var s=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(s),e(A))},50)}})},Sg=["all","d","content"],Kn=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);Sg.indexOf(r)===-1&&e.style.setProperty(r,A.getPropertyValue(r))}return e},Tg=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},Dg=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},kg=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},Mg=":before",Og=":after",ts="___html2canvas___pseudoelement_before",rs="___html2canvas___pseudoelement_after",_a=`{
5
- content: "" !important;
6
- display: none !important;
7
- }`,Rg=function(A){Ng(A,"."+ts+Mg+_a+`
8
- .`+rs+Og+_a)},Ng=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},Xo=(function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A})(),Gg=(function(){function A(e,t){this.context=e,this._options=t,this._cache={}}return A.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Tn(e)||Xg(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return bA(this,void 0,void 0,function(){var t,r,n,s,a=this;return pA(this,function(i){switch(i.label){case 0:return t=Xo.isSameOrigin(e),r=!Sn(e)&&this._options.useCORS===!0&&BA.SUPPORT_CORS_IMAGES&&!t,n=!Sn(e)&&!t&&!Tn(e)&&typeof this._options.proxy=="string"&&BA.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!Sn(e)&&!Tn(e)&&!n&&!r?[2]:(s=e,n?[4,this.proxy(s)]:[3,2]);case 1:s=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(o,l){var c=new Image;c.onload=function(){return o(c)},c.onerror=l,(Jg(s)||r)&&(c.crossOrigin="anonymous"),c.src=s,c.complete===!0&&setTimeout(function(){return o(c)},500),a._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(s,a){var i=BA.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(i==="text")s(o.response);else{var B=new FileReader;B.addEventListener("load",function(){return s(B.result)},!1),B.addEventListener("error",function(u){return a(u)},!1),B.readAsDataURL(o.response)}else a("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=a;var l=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+l+"url="+encodeURIComponent(e)+"&responseType="+i),i!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=i),t._options.imageTimeout){var c=t._options.imageTimeout;o.timeout=c,o.ontimeout=function(){return a("Timed out ("+c+"ms) proxying "+n)}}o.send()})},A})(),Pg=/^data:image\/svg\+xml/i,Vg=/^data:image\/.*;base64,/i,_g=/^data:image\/.*/i,Xg=function(A){return BA.SUPPORT_SVG_DRAWING||!Wg(A)},Sn=function(A){return _g.test(A)},Jg=function(A){return Vg.test(A)},Tn=function(A){return A.substr(0,4)==="blob"},Wg=function(A){return A.substr(-3).toLowerCase()==="svg"||Pg.test(A)},m=(function(){function A(e,t){this.type=0,this.x=e,this.y=t}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A})(),Re=function(A,e,t){return new m(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},hr=(function(){function A(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return A.prototype.subdivide=function(e,t){var r=Re(this.start,this.startControl,e),n=Re(this.startControl,this.endControl,e),s=Re(this.endControl,this.end,e),a=Re(r,n,e),i=Re(n,s,e),o=Re(a,i,e);return t?new A(this.start,r,a,o):new A(o,i,s,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),TA=function(A){return A.type===1},Yg=(function(){function A(e){var t=e.styles,r=e.bounds,n=Ft(t.borderTopLeftRadius,r.width,r.height),s=n[0],a=n[1],i=Ft(t.borderTopRightRadius,r.width,r.height),o=i[0],l=i[1],c=Ft(t.borderBottomRightRadius,r.width,r.height),B=c[0],u=c[1],f=Ft(t.borderBottomLeftRadius,r.width,r.height),p=f[0],w=f[1],y=[];y.push((s+o)/r.width),y.push((p+B)/r.width),y.push((a+w)/r.height),y.push((l+u)/r.height);var b=Math.max.apply(Math,y);b>1&&(s/=b,a/=b,o/=b,l/=b,B/=b,u/=b,p/=b,w/=b);var h=r.width-o,k=r.height-u,K=r.width-B,H=r.height-w,Q=t.borderTopWidth,C=t.borderRightWidth,S=t.borderBottomWidth,L=t.borderLeftWidth,M=_(t.paddingTop,e.bounds.width),sA=_(t.paddingRight,e.bounds.width),hA=_(t.paddingBottom,e.bounds.width),D=_(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||a>0?X(r.left+L/3,r.top+Q/3,s-L/3,a-Q/3,R.TOP_LEFT):new m(r.left+L/3,r.top+Q/3),this.topRightBorderDoubleOuterBox=s>0||a>0?X(r.left+h,r.top+Q/3,o-C/3,l-Q/3,R.TOP_RIGHT):new m(r.left+r.width-C/3,r.top+Q/3),this.bottomRightBorderDoubleOuterBox=B>0||u>0?X(r.left+K,r.top+k,B-C/3,u-S/3,R.BOTTOM_RIGHT):new m(r.left+r.width-C/3,r.top+r.height-S/3),this.bottomLeftBorderDoubleOuterBox=p>0||w>0?X(r.left+L/3,r.top+H,p-L/3,w-S/3,R.BOTTOM_LEFT):new m(r.left+L/3,r.top+r.height-S/3),this.topLeftBorderDoubleInnerBox=s>0||a>0?X(r.left+L*2/3,r.top+Q*2/3,s-L*2/3,a-Q*2/3,R.TOP_LEFT):new m(r.left+L*2/3,r.top+Q*2/3),this.topRightBorderDoubleInnerBox=s>0||a>0?X(r.left+h,r.top+Q*2/3,o-C*2/3,l-Q*2/3,R.TOP_RIGHT):new m(r.left+r.width-C*2/3,r.top+Q*2/3),this.bottomRightBorderDoubleInnerBox=B>0||u>0?X(r.left+K,r.top+k,B-C*2/3,u-S*2/3,R.BOTTOM_RIGHT):new m(r.left+r.width-C*2/3,r.top+r.height-S*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||w>0?X(r.left+L*2/3,r.top+H,p-L*2/3,w-S*2/3,R.BOTTOM_LEFT):new m(r.left+L*2/3,r.top+r.height-S*2/3),this.topLeftBorderStroke=s>0||a>0?X(r.left+L/2,r.top+Q/2,s-L/2,a-Q/2,R.TOP_LEFT):new m(r.left+L/2,r.top+Q/2),this.topRightBorderStroke=s>0||a>0?X(r.left+h,r.top+Q/2,o-C/2,l-Q/2,R.TOP_RIGHT):new m(r.left+r.width-C/2,r.top+Q/2),this.bottomRightBorderStroke=B>0||u>0?X(r.left+K,r.top+k,B-C/2,u-S/2,R.BOTTOM_RIGHT):new m(r.left+r.width-C/2,r.top+r.height-S/2),this.bottomLeftBorderStroke=p>0||w>0?X(r.left+L/2,r.top+H,p-L/2,w-S/2,R.BOTTOM_LEFT):new m(r.left+L/2,r.top+r.height-S/2),this.topLeftBorderBox=s>0||a>0?X(r.left,r.top,s,a,R.TOP_LEFT):new m(r.left,r.top),this.topRightBorderBox=o>0||l>0?X(r.left+h,r.top,o,l,R.TOP_RIGHT):new m(r.left+r.width,r.top),this.bottomRightBorderBox=B>0||u>0?X(r.left+K,r.top+k,B,u,R.BOTTOM_RIGHT):new m(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=p>0||w>0?X(r.left,r.top+H,p,w,R.BOTTOM_LEFT):new m(r.left,r.top+r.height),this.topLeftPaddingBox=s>0||a>0?X(r.left+L,r.top+Q,Math.max(0,s-L),Math.max(0,a-Q),R.TOP_LEFT):new m(r.left+L,r.top+Q),this.topRightPaddingBox=o>0||l>0?X(r.left+Math.min(h,r.width-C),r.top+Q,h>r.width+C?0:Math.max(0,o-C),Math.max(0,l-Q),R.TOP_RIGHT):new m(r.left+r.width-C,r.top+Q),this.bottomRightPaddingBox=B>0||u>0?X(r.left+Math.min(K,r.width-L),r.top+Math.min(k,r.height-S),Math.max(0,B-C),Math.max(0,u-S),R.BOTTOM_RIGHT):new m(r.left+r.width-C,r.top+r.height-S),this.bottomLeftPaddingBox=p>0||w>0?X(r.left+L,r.top+Math.min(H,r.height-S),Math.max(0,p-L),Math.max(0,w-S),R.BOTTOM_LEFT):new m(r.left+L,r.top+r.height-S),this.topLeftContentBox=s>0||a>0?X(r.left+L+D,r.top+Q+M,Math.max(0,s-(L+D)),Math.max(0,a-(Q+M)),R.TOP_LEFT):new m(r.left+L+D,r.top+Q+M),this.topRightContentBox=o>0||l>0?X(r.left+Math.min(h,r.width+L+D),r.top+Q+M,h>r.width+L+D?0:o-L+D,l-(Q+M),R.TOP_RIGHT):new m(r.left+r.width-(C+sA),r.top+Q+M),this.bottomRightContentBox=B>0||u>0?X(r.left+Math.min(K,r.width-(L+D)),r.top+Math.min(k,r.height+Q+M),Math.max(0,B-(C+sA)),u-(S+hA),R.BOTTOM_RIGHT):new m(r.left+r.width-(C+sA),r.top+r.height-(S+hA)),this.bottomLeftContentBox=p>0||w>0?X(r.left+L+D,r.top+H,Math.max(0,p-(L+D)),w-(S+hA),R.BOTTOM_LEFT):new m(r.left+L+D,r.top+r.height-(S+hA))}return A})(),R;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(R||(R={}));var X=function(A,e,t,r,n){var s=4*((Math.sqrt(2)-1)/3),a=t*s,i=r*s,o=A+t,l=e+r;switch(n){case R.TOP_LEFT:return new hr(new m(A,l),new m(A,l-i),new m(o-a,e),new m(o,e));case R.TOP_RIGHT:return new hr(new m(A,e),new m(A+a,e),new m(o,l-i),new m(o,l));case R.BOTTOM_RIGHT:return new hr(new m(o,e),new m(o,e+i),new m(A+a,l),new m(A,l));case R.BOTTOM_LEFT:default:return new hr(new m(o,l),new m(o-a,l),new m(A,e+i),new m(A,e))}},Sr=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},zg=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Tr=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},$g=(function(){function A(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return A})(),br=(function(){function A(e,t){this.path=e,this.target=t,this.type=1}return A})(),Zg=(function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A})(),qg=function(A){return A.type===0},Jo=function(A){return A.type===1},jg=function(A){return A.type===2},Xa=function(A,e){return A.length===e.length?A.some(function(t,r){return t===e[r]}):!1},Ad=function(A,e,t,r,n){return A.map(function(s,a){switch(a){case 0:return s.add(e,t);case 1:return s.add(e+r,t);case 2:return s.add(e+r,t+n);case 3:return s.add(e,t+n)}return s})},Wo=(function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),Yo=(function(){function A(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Yg(this.container),this.container.styles.opacity<1&&this.effects.push(new Zg(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,s=this.container.styles.transform;this.effects.push(new $g(r,n,s))}if(this.container.styles.overflowX!==0){var a=Sr(this.curves),i=Tr(this.curves);Xa(a,i)?this.effects.push(new br(a,6)):(this.effects.push(new br(a,2)),this.effects.push(new br(i,4)))}}return A.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var s=r.effects.filter(function(o){return!Jo(o)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,s),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var a=Sr(r.curves),i=Tr(r.curves);Xa(a,i)||n.unshift(new br(i,6))}}else n.unshift.apply(n,s);r=r.parent}return n.filter(function(o){return tA(o.target,e)})},A})(),ns=function(A,e,t,r){A.container.elements.forEach(function(n){var s=tA(n.flags,4),a=tA(n.flags,2),i=new Yo(n,A);tA(n.styles.display,2048)&&r.push(i);var o=tA(n.flags,8)?[]:r;if(s||a){var l=s||n.styles.isPositioned()?t:e,c=new Wo(i);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var u=0;l.negativeZIndex.some(function(p,w){return B>p.element.container.styles.zIndex.order?(u=w,!1):u>0}),l.negativeZIndex.splice(u,0,c)}else if(B>0){var f=0;l.positiveZIndex.some(function(p,w){return B>=p.element.container.styles.zIndex.order?(f=w+1,!1):f>0}),l.positiveZIndex.splice(f,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);ns(i,c,s?c:t,o)}else n.styles.isInlineLevel()?e.inlineLevel.push(i):e.nonInlineLevel.push(i),ns(i,e,t,o);tA(n.flags,8)&&zo(n,o)})},zo=function(A,e){for(var t=A instanceof jn?A.start:1,r=A instanceof jn?A.reversed:!1,n=0;n<e.length;n++){var s=e[n];s.container instanceof Ko&&typeof s.container.value=="number"&&s.container.value!==0&&(t=s.container.value),s.listValue=Dt(t,s.container.styles.listStyleType,!0),t+=r?-1:1}},ed=function(A){var e=new Yo(A,null),t=new Wo(e),r=[];return ns(e,t,t,r),zo(e.container,r),t},Ja=function(A,e){switch(e){case 0:return kA(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return kA(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return kA(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return kA(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},td=function(A,e){switch(e){case 0:return kA(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return kA(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return kA(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return kA(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},rd=function(A,e){switch(e){case 0:return kA(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return kA(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return kA(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return kA(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},nd=function(A,e){switch(e){case 0:return Qr(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Qr(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Qr(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Qr(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},Qr=function(A,e){var t=[];return TA(A)?t.push(A.subdivide(.5,!1)):t.push(A),TA(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},kA=function(A,e,t,r){var n=[];return TA(A)?n.push(A.subdivide(.5,!1)):n.push(A),TA(t)?n.push(t.subdivide(.5,!0)):n.push(t),TA(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),TA(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},$o=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Dr=function(A){var e=A.styles,t=A.bounds,r=_(e.paddingLeft,t.width),n=_(e.paddingRight,t.width),s=_(e.paddingTop,t.width),a=_(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+s+a))},sd=function(A,e){return A===0?e.bounds:A===2?Dr(e):$o(e)},ad=function(A,e){return A===0?e.bounds:A===2?Dr(e):$o(e)},Dn=function(A,e,t){var r=sd(Pe(A.styles.backgroundOrigin,e),A),n=ad(Pe(A.styles.backgroundClip,e),A),s=od(Pe(A.styles.backgroundSize,e),t,r),a=s[0],i=s[1],o=Ft(Pe(A.styles.backgroundPosition,e),r.width-a,r.height-i),l=id(Pe(A.styles.backgroundRepeat,e),o,s,r,n),c=Math.round(r.left+o[0]),B=Math.round(r.top+o[1]);return[l,c,B,a,i]},Ne=function(A){return G(A)&&A.value===_e.AUTO},Cr=function(A){return typeof A=="number"},od=function(A,e,t){var r=e[0],n=e[1],s=e[2],a=A[0],i=A[1];if(!a)return[0,0];if(j(a)&&i&&j(i))return[_(a,t.width),_(i,t.height)];var o=Cr(s);if(G(a)&&(a.value===_e.CONTAIN||a.value===_e.COVER)){if(Cr(s)){var l=t.width/t.height;return l<s!=(a.value===_e.COVER)?[t.width,t.width/s]:[t.height*s,t.height]}return[t.width,t.height]}var c=Cr(r),B=Cr(n),u=c||B;if(Ne(a)&&(!i||Ne(i))){if(c&&B)return[r,n];if(!o&&!u)return[t.width,t.height];if(u&&o){var f=c?r:n*s,p=B?n:r/s;return[f,p]}var w=c?r:t.width,y=B?n:t.height;return[w,y]}if(o){var b=0,h=0;return j(a)?b=_(a,t.width):j(i)&&(h=_(i,t.height)),Ne(a)?b=h*s:(!i||Ne(i))&&(h=b/s),[b,h]}var k=null,K=null;if(j(a)?k=_(a,t.width):i&&j(i)&&(K=_(i,t.height)),k!==null&&(!i||Ne(i))&&(K=c&&B?k/r*n:t.height),K!==null&&Ne(a)&&(k=c&&B?K/n*r:t.width),k!==null&&K!==null)return[k,K];throw new Error("Unable to calculate background-size for element")},Pe=function(A,e){var t=A[e];return typeof t>"u"?A[0]:t},id=function(A,e,t,r,n){var s=e[0],a=e[1],i=t[0],o=t[1];switch(A){case 2:return[new m(Math.round(r.left),Math.round(r.top+a)),new m(Math.round(r.left+r.width),Math.round(r.top+a)),new m(Math.round(r.left+r.width),Math.round(o+r.top+a)),new m(Math.round(r.left),Math.round(o+r.top+a))];case 3:return[new m(Math.round(r.left+s),Math.round(r.top)),new m(Math.round(r.left+s+i),Math.round(r.top)),new m(Math.round(r.left+s+i),Math.round(r.height+r.top)),new m(Math.round(r.left+s),Math.round(r.height+r.top))];case 1:return[new m(Math.round(r.left+s),Math.round(r.top+a)),new m(Math.round(r.left+s+i),Math.round(r.top+a)),new m(Math.round(r.left+s+i),Math.round(r.top+a+o)),new m(Math.round(r.left+s),Math.round(r.top+a+o))];default:return[new m(Math.round(n.left),Math.round(n.top)),new m(Math.round(n.left+n.width),Math.round(n.top)),new m(Math.round(n.left+n.width),Math.round(n.height+n.top)),new m(Math.round(n.left),Math.round(n.height+n.top))]}},ld="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Wa="Hidden Text",cd=(function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),s=this._document.createElement("span"),a=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",a.appendChild(r),n.src=ld,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",s.style.fontFamily=e,s.style.fontSize=t,s.style.margin="0",s.style.padding="0",s.appendChild(this._document.createTextNode(Wa)),r.appendChild(s),r.appendChild(n);var i=n.offsetTop-s.offsetTop+2;r.removeChild(s),r.appendChild(this._document.createTextNode(Wa)),r.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-r.offsetTop+2;return a.removeChild(r),{baseline:i,middle:o}},A.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},A})(),Zo=(function(){function A(e,t){this.context=e,this.options=t}return A})(),Bd=1e4,ud=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new cd(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),jg(t)&&(this.ctx.globalAlpha=t.opacity),qg(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Jo(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return bA(this,void 0,void 0,function(){var r;return pA(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return bA(this,void 0,void 0,function(){return pA(this,function(r){switch(r.label){case 0:if(tA(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,n){var s=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var a=ls(t.text);a.reduce(function(i,o){return s.ctx.fillText(o,i,t.bounds.top+n),i+s.ctx.measureText(o).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),n=wd(t.fontFamily).join(", "),s=Mt(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,s,n].join(" "),n,s]},e.prototype.renderTextNode=function(t,r){return bA(this,void 0,void 0,function(){var n,s,a,i,o,l,c,B,u=this;return pA(this,function(f){return n=this.createFontStyle(r),s=n[0],a=n[1],i=n[2],this.ctx.font=s,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(a,i),l=o.baseline,c=o.middle,B=r.paintOrder,t.textBounds.forEach(function(p){B.forEach(function(w){switch(w){case 0:u.ctx.fillStyle=aA(r.color),u.renderTextWithLetterSpacing(p,r.letterSpacing,l);var y=r.textShadow;y.length&&p.text.trim().length&&(y.slice(0).reverse().forEach(function(b){u.ctx.shadowColor=aA(b.color),u.ctx.shadowOffsetX=b.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=b.offsetY.number*u.options.scale,u.ctx.shadowBlur=b.blur.number,u.renderTextWithLetterSpacing(p,r.letterSpacing,l)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),r.textDecorationLine.length&&(u.ctx.fillStyle=aA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(b){switch(b){case 1:u.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top+l),p.bounds.width,1);break;case 2:u.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top),p.bounds.width,1);break;case 3:u.ctx.fillRect(p.bounds.left,Math.ceil(p.bounds.top+c),p.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&p.text.trim().length&&(u.ctx.strokeStyle=aA(r.webkitTextStrokeColor),u.ctx.lineWidth=r.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(p.text,p.bounds.left,p.bounds.top+l)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var s=Dr(t),a=Tr(r);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,s.left,s.top,s.width,s.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return bA(this,void 0,void 0,function(){var r,n,s,a,i,o,h,h,l,c,B,u,K,f,p,H,w,y,b,h,k,K,H;return pA(this,function(Q){switch(Q.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,s=r.styles,a=0,i=r.textNodes,Q.label=1;case 1:return a<i.length?(o=i[a],[4,this.renderTextNode(o,s)]):[3,4];case 2:Q.sent(),Q.label=3;case 3:return a++,[3,1];case 4:if(!(r instanceof Ho))return[3,8];Q.label=5;case 5:return Q.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return h=Q.sent(),this.renderReplacedElement(r,n,h),[3,8];case 7:return Q.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof Io&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Lo))return[3,12];Q.label=9;case 9:return Q.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return h=Q.sent(),this.renderReplacedElement(r,n,h),[3,12];case 11:return Q.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Do&&r.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,l.render(r.tree)]):[3,14];case 13:c=Q.sent(),r.width&&r.height&&this.ctx.drawImage(c,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),Q.label=14;case 14:if(r instanceof cs&&(B=Math.min(r.bounds.width,r.bounds.height),r.type===Hr?r.checked&&(this.ctx.save(),this.path([new m(r.bounds.left+B*.39363,r.bounds.top+B*.79),new m(r.bounds.left+B*.16,r.bounds.top+B*.5549),new m(r.bounds.left+B*.27347,r.bounds.top+B*.44071),new m(r.bounds.left+B*.39694,r.bounds.top+B*.5649),new m(r.bounds.left+B*.72983,r.bounds.top+B*.23),new m(r.bounds.left+B*.84,r.bounds.top+B*.34085),new m(r.bounds.left+B*.39363,r.bounds.top+B*.79)]),this.ctx.fillStyle=aA(Ta),this.ctx.fill(),this.ctx.restore()):r.type===Ir&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+B/2,r.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=aA(Ta),this.ctx.fill(),this.ctx.restore())),gd(r)&&r.value.length){switch(u=this.createFontStyle(s),K=u[0],f=u[1],p=this.fontMetrics.getMetrics(K,f).baseline,this.ctx.font=K,this.ctx.fillStyle=aA(s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=fd(r.styles.textAlign),H=Dr(r),w=0,r.styles.textAlign){case 1:w+=H.width/2;break;case 2:w+=H.width;break}y=H.add(w,0,0,-H.height/2+1),this.ctx.save(),this.path([new m(H.left,H.top),new m(H.left+H.width,H.top),new m(H.left+H.width,H.top+H.height),new m(H.left,H.top+H.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Lt(r.value,y),s.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!tA(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(b=r.styles.listStyleImage,b.type!==0)return[3,18];h=void 0,k=b.url,Q.label=15;case 15:return Q.trys.push([15,17,,18]),[4,this.context.cache.match(k)];case 16:return h=Q.sent(),this.ctx.drawImage(h,r.bounds.left-(h.width+10),r.bounds.top),[3,18];case 17:return Q.sent(),this.context.logger.error("Error loading list-style-image "+k),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(K=this.createFontStyle(s)[0],this.ctx.font=K,this.ctx.fillStyle=aA(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",H=new ne(r.bounds.left,r.bounds.top+_(r.styles.paddingTop,r.bounds.width),r.bounds.width,wa(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Lt(t.listValue,H),s.letterSpacing,wa(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Q.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return bA(this,void 0,void 0,function(){var r,n,b,s,a,b,i,o,b,l,c,b,B,u,b,f,p,b,w,y,b;return pA(this,function(h){switch(h.label){case 0:if(tA(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:h.sent(),r=0,n=t.negativeZIndex,h.label=2;case 2:return r<n.length?(b=n[r],[4,this.renderStack(b)]):[3,5];case 3:h.sent(),h.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:h.sent(),s=0,a=t.nonInlineLevel,h.label=7;case 7:return s<a.length?(b=a[s],[4,this.renderNode(b)]):[3,10];case 8:h.sent(),h.label=9;case 9:return s++,[3,7];case 10:i=0,o=t.nonPositionedFloats,h.label=11;case 11:return i<o.length?(b=o[i],[4,this.renderStack(b)]):[3,14];case 12:h.sent(),h.label=13;case 13:return i++,[3,11];case 14:l=0,c=t.nonPositionedInlineLevel,h.label=15;case 15:return l<c.length?(b=c[l],[4,this.renderStack(b)]):[3,18];case 16:h.sent(),h.label=17;case 17:return l++,[3,15];case 18:B=0,u=t.inlineLevel,h.label=19;case 19:return B<u.length?(b=u[B],[4,this.renderNode(b)]):[3,22];case 20:h.sent(),h.label=21;case 21:return B++,[3,19];case 22:f=0,p=t.zeroOrAutoZIndexOrTransformedOrOpacity,h.label=23;case 23:return f<p.length?(b=p[f],[4,this.renderStack(b)]):[3,26];case 24:h.sent(),h.label=25;case 25:return f++,[3,23];case 26:w=0,y=t.positiveZIndex,h.label=27;case 27:return w<y.length?(b=y[w],[4,this.renderStack(b)]):[3,30];case 28:h.sent(),h.label=29;case 29:return w++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var r=this;t.forEach(function(n,s){var a=TA(n)?n.start:n;s===0?r.ctx.moveTo(a.x,a.y):r.ctx.lineTo(a.x,a.y),TA(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(t,r,n,s){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,s),this.ctx.fill(),this.ctx.translate(-n,-s)},e.prototype.resizeImage=function(t,r,n){var s;if(t.width===r&&t.height===n)return t;var a=(s=this.canvas.ownerDocument)!==null&&s!==void 0?s:document,i=a.createElement("canvas");i.width=Math.max(1,r),i.height=Math.max(1,n);var o=i.getContext("2d");return o.drawImage(t,0,0,t.width,t.height,0,0,r,n),i},e.prototype.renderBackgroundImage=function(t){return bA(this,void 0,void 0,function(){var r,n,s,a,i,o;return pA(this,function(l){switch(l.label){case 0:r=t.styles.backgroundImage.length-1,n=function(c){var B,u,f,M,iA,lA,D,z,S,p,M,iA,lA,D,z,w,y,b,h,k,K,H,Q,C,S,L,M,sA,hA,D,z,HA,iA,lA,XA,IA,NA,JA,GA,QA,CA,mA;return pA(this,function(d){switch(d.label){case 0:if(c.type!==0)return[3,5];B=void 0,u=c.url,d.label=1;case 1:return d.trys.push([1,3,,4]),[4,s.context.cache.match(u)];case 2:return B=d.sent(),[3,4];case 3:return d.sent(),s.context.logger.error("Error loading background-image "+u),[3,4];case 4:return B&&(f=Dn(t,r,[B.width,B.height,B.width/B.height]),M=f[0],iA=f[1],lA=f[2],D=f[3],z=f[4],S=s.ctx.createPattern(s.resizeImage(B,D,z),"repeat"),s.renderRepeat(M,S,iA,lA)),[3,6];case 5:qc(c)?(p=Dn(t,r,[null,null,null]),M=p[0],iA=p[1],lA=p[2],D=p[3],z=p[4],w=Wc(c.angle,D,z),y=w[0],b=w[1],h=w[2],k=w[3],K=w[4],H=document.createElement("canvas"),H.width=D,H.height=z,Q=H.getContext("2d"),C=Q.createLinearGradient(b,k,h,K),fa(c.stops,y).forEach(function(qA){return C.addColorStop(qA.stop,aA(qA.color))}),Q.fillStyle=C,Q.fillRect(0,0,D,z),D>0&&z>0&&(S=s.ctx.createPattern(H,"repeat"),s.renderRepeat(M,S,iA,lA))):jc(c)&&(L=Dn(t,r,[null,null,null]),M=L[0],sA=L[1],hA=L[2],D=L[3],z=L[4],HA=c.position.length===0?[as]:c.position,iA=_(HA[0],D),lA=_(HA[HA.length-1],z),XA=Yc(c,iA,lA,D,z),IA=XA[0],NA=XA[1],IA>0&&NA>0&&(JA=s.ctx.createRadialGradient(sA+iA,hA+lA,0,sA+iA,hA+lA,IA),fa(c.stops,IA*2).forEach(function(qA){return JA.addColorStop(qA.stop,aA(qA.color))}),s.path(M),s.ctx.fillStyle=JA,IA!==NA?(GA=t.bounds.left+.5*t.bounds.width,QA=t.bounds.top+.5*t.bounds.height,CA=NA/IA,mA=1/CA,s.ctx.save(),s.ctx.translate(GA,QA),s.ctx.transform(1,0,0,CA,0,0),s.ctx.translate(-GA,-QA),s.ctx.fillRect(sA,mA*(hA-QA)+QA,D,z*mA),s.ctx.restore()):s.ctx.fill())),d.label=6;case 6:return r--,[2]}})},s=this,a=0,i=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return a<i.length?(o=i[a],[5,n(o)]):[3,4];case 2:l.sent(),l.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,r,n){return bA(this,void 0,void 0,function(){return pA(this,function(s){return this.path(Ja(n,r)),this.ctx.fillStyle=aA(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,r,n,s){return bA(this,void 0,void 0,function(){var a,i;return pA(this,function(o){switch(o.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,s)]:[3,2];case 1:return o.sent(),[2];case 2:return a=td(s,n),this.path(a),this.ctx.fillStyle=aA(t),this.ctx.fill(),i=rd(s,n),this.path(i),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return bA(this,void 0,void 0,function(){var r,n,s,a,i,o,l,c,B=this;return pA(this,function(u){switch(u.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!we(r.backgroundColor)||r.backgroundImage.length,s=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],a=dd(Pe(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),we(r.backgroundColor)||(this.ctx.fillStyle=aA(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(f){B.ctx.save();var p=Sr(t.curves),w=f.inset?0:Bd,y=Ad(p,-w+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(B.path(p),B.ctx.clip(),B.mask(y)):(B.mask(p),B.ctx.clip(),B.path(y)),B.ctx.shadowOffsetX=f.offsetX.number+w,B.ctx.shadowOffsetY=f.offsetY.number,B.ctx.shadowColor=aA(f.color),B.ctx.shadowBlur=f.blur.number,B.ctx.fillStyle=f.inset?aA(f.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),u.label=2;case 2:i=0,o=0,l=s,u.label=3;case 3:return o<l.length?(c=l[o],c.style!==0&&!we(c.color)&&c.width>0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,i,t.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,i,t.curves,3)];case 6:return u.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,i,t.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,i,t.curves)];case 10:u.sent(),u.label=11;case 11:i++,u.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,n,s,a){return bA(this,void 0,void 0,function(){var i,o,l,c,B,u,f,p,w,y,b,h,k,K,H,Q,H,Q;return pA(this,function(C){return this.ctx.save(),i=nd(s,n),o=Ja(s,n),a===2&&(this.path(o),this.ctx.clip()),TA(o[0])?(l=o[0].start.x,c=o[0].start.y):(l=o[0].x,c=o[0].y),TA(o[1])?(B=o[1].end.x,u=o[1].end.y):(B=o[1].x,u=o[1].y),n===0||n===2?f=Math.abs(l-B):f=Math.abs(c-u),this.ctx.beginPath(),a===3?this.formatPath(i):this.formatPath(o.slice(0,2)),p=r<3?r*3:r*2,w=r<3?r*2:r,a===3&&(p=r,w=r),y=!0,f<=p*2?y=!1:f<=p*2+w?(b=f/(2*p+w),p*=b,w*=b):(h=Math.floor((f+w)/(p+w)),k=(f-h*p)/(h-1),K=(f-(h+1)*p)/h,w=K<=0||Math.abs(w-k)<Math.abs(w-K)?k:K),y&&(a===3?this.ctx.setLineDash([0,p+w]):this.ctx.setLineDash([p,w])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=aA(t),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(TA(o[0])&&(H=o[3],Q=o[0],this.ctx.beginPath(),this.formatPath([new m(H.end.x,H.end.y),new m(Q.start.x,Q.start.y)]),this.ctx.stroke()),TA(o[1])&&(H=o[1],Q=o[2],this.ctx.beginPath(),this.formatPath([new m(H.end.x,H.end.y),new m(Q.start.x,Q.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return bA(this,void 0,void 0,function(){var r;return pA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=aA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=ed(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(Zo),gd=function(A){return A instanceof To||A instanceof So?!0:A instanceof cs&&A.type!==Ir&&A.type!==Hr},dd=function(A,e){switch(A){case 0:return Sr(e);case 2:return zg(e);default:return Tr(e)}},fd=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},pd=["-apple-system","system-ui"],wd=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return pd.indexOf(e)===-1}):A},hd=(function(A){VA(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return e.prototype.render=function(t){return bA(this,void 0,void 0,function(){var r,n;return pA(this,function(s){switch(s.label){case 0:return r=qn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,bd(r)];case 1:return n=s.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=aA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(Zo),bd=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},Qd=(function(){function A(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,nr([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,nr([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,nr([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,nr([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A})(),Cd=(function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new Qd({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new Gg(this,e)}return A.instanceCount=1,A})(),md=function(A,e){return e===void 0&&(e={}),Ud(A,e)};typeof window<"u"&&Xo.setContext(window);var Ud=function(A,e){return bA(void 0,void 0,void 0,function(){var t,r,n,s,a,i,o,l,c,B,u,f,p,w,y,b,h,k,K,H,C,Q,C,S,L,M,sA,hA,D,z,HA,iA,lA,XA,IA,NA,JA,GA,QA,CA;return pA(this,function(mA){switch(mA.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=A.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(S=e.allowTaint)!==null&&S!==void 0?S:!1,imageTimeout:(L=e.imageTimeout)!==null&&L!==void 0?L:15e3,proxy:e.proxy,useCORS:(M=e.useCORS)!==null&&M!==void 0?M:!1},s=Mn({logging:(sA=e.logging)!==null&&sA!==void 0?sA:!0,cache:e.cache},n),a={windowWidth:(hA=e.windowWidth)!==null&&hA!==void 0?hA:r.innerWidth,windowHeight:(D=e.windowHeight)!==null&&D!==void 0?D:r.innerHeight,scrollX:(z=e.scrollX)!==null&&z!==void 0?z:r.pageXOffset,scrollY:(HA=e.scrollY)!==null&&HA!==void 0?HA:r.pageYOffset},i=new ne(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),o=new Cd(s,i),l=(iA=e.foreignObjectRendering)!==null&&iA!==void 0?iA:!1,c={allowTaint:(lA=e.allowTaint)!==null&&lA!==void 0?lA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:l,copyStyles:l},o.logger.debug("Starting document clone with size "+i.width+"x"+i.height+" scrolled to "+-i.left+","+-i.top),B=new Va(o,A,c),u=B.clonedReferenceElement,u?[4,B.toIFrame(t,i)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=mA.sent(),p=Bs(u)||vg(u)?Al(u.ownerDocument):kr(o,u),w=p.width,y=p.height,b=p.left,h=p.top,k=vd(o,u,e.backgroundColor),K={canvas:e.canvas,backgroundColor:k,scale:(IA=(XA=e.scale)!==null&&XA!==void 0?XA:r.devicePixelRatio)!==null&&IA!==void 0?IA:1,x:((NA=e.x)!==null&&NA!==void 0?NA:0)+b,y:((JA=e.y)!==null&&JA!==void 0?JA:0)+h,width:(GA=e.width)!==null&&GA!==void 0?GA:Math.ceil(w),height:(QA=e.height)!==null&&QA!==void 0?QA:Math.ceil(y)},l?(o.logger.debug("Document cloned, using foreign object rendering"),C=new hd(o,K),[4,C.render(u)]):[3,3];case 2:return H=mA.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+b+","+h+" with size "+w+"x"+y+" using computed rendering"),o.logger.debug("Starting DOM parsing"),Q=Mo(o,u),k===Q.styles.backgroundColor&&(Q.styles.backgroundColor=re.TRANSPARENT),o.logger.debug("Starting renderer for element at "+K.x+","+K.y+" with size "+K.width+"x"+K.height),C=new ud(o,K),[4,C.render(Q)];case 4:H=mA.sent(),mA.label=5;case 5:return(!((CA=e.removeContainer)!==null&&CA!==void 0)||CA)&&(Va.destroy(f)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,H]}})})},vd=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?Ht(A,getComputedStyle(r.documentElement).backgroundColor):re.TRANSPARENT,s=r.body?Ht(A,getComputedStyle(r.body).backgroundColor):re.TRANSPARENT,a=typeof t=="string"?Ht(A,t):t===null?re.TRANSPARENT:4294967295;return e===r.documentElement?we(n)?we(s)?a:s:n:a},us=md;function Fd(){let A=document.createElement("div");if(A.style.cssText=`
4
+ `)),et.push(n),et.length>_n&&et.shift(),Y({type:"console",category:`console.${e}`,message:n.args.join(" ").slice(0,200),timestamp:n.timestamp})}function Xn(e){e&&(_n=e);for(let t of Object.keys(St))console[t]=function(...n){Ps(t,n),St[t].apply(console,n)}}function le(){return[...et]}function Yn(){et=[]}function Vn(){for(let e of Object.keys(St))console[e]=St[e]}var $e=[],Jn=50,Lt,Ct,Tt;function an(e){$e.push(e),$e.length>Jn&&$e.shift(),Y({type:"network",category:e.failed?"network.error":"network.ok",message:`${e.method} ${e.url} \u2192 ${e.status} (${e.duration}ms)`,timestamp:e.timestamp,data:{status:e.status,duration:e.duration}})}function Kn(e){try{let t=new URL(e,window.location.origin),n=new URLSearchParams(t.search);for(let s of n.keys()){let o=s.toLowerCase();(o.includes("token")||o.includes("key")||o.includes("secret")||o.includes("password")||o.includes("auth"))&&n.set(s,"[REDACTED]")}let r=n.toString();return t.pathname+(r?"?"+r:"")}catch{return Pe(e)}}function $s(){Lt=window.fetch,window.fetch=async function(e,t){let n=t?.method?.toUpperCase()??"GET",r=typeof e=="string"?e:e instanceof URL?e.href:e.url,s=Kn(r),o=Date.now();try{let i=await Lt.call(window,e,t);return an({method:n,url:s,status:i.status,statusText:i.statusText,duration:Date.now()-o,responseType:i.headers.get("content-type")??void 0,timestamp:o,failed:i.status>=400}),i}catch(i){throw an({method:n,url:s,status:0,statusText:"Network Error",duration:Date.now()-o,timestamp:o,failed:!0}),i}}}function Ms(){Ct=XMLHttpRequest.prototype.open,Tt=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.open=function(e,t,...n){return this.__bs_method=e.toUpperCase(),this.__bs_url=Kn(typeof t=="string"?t:t.href),Ct.apply(this,[e,t,...n])},XMLHttpRequest.prototype.send=function(e){let t=Date.now();return this.addEventListener("loadend",function(){an({method:this.__bs_method??"GET",url:this.__bs_url??"",status:this.status,statusText:this.statusText,duration:Date.now()-t,responseType:this.getResponseHeader("content-type")??void 0,timestamp:t,failed:this.status>=400||this.status===0})}),Tt.call(this,e)}}function Gn(e){e&&(Jn=e),$s(),Ms()}function Me(){return[...$e]}function fe(){return $e.filter(e=>e.failed)}function Qn(){$e=[]}function Zn(){Lt&&(window.fetch=Lt),Ct&&(XMLHttpRequest.prototype.open=Ct),Tt&&(XMLHttpRequest.prototype.send=Tt)}var Pt=[],tt=null,nt=null;function er(){tt=e=>{let t={message:e.message||"Unknown error",source:e.filename,lineno:e.lineno,colno:e.colno,stack:e.error?.stack,type:"error",timestamp:Date.now()};Pt.push(t),Y({type:"error",category:"exception",message:t.message,timestamp:t.timestamp,data:{source:t.source,lineno:t.lineno}})},nt=e=>{let t=e.reason,n=t instanceof Error?t.message:typeof t=="string"?t:"Unhandled promise rejection",r={message:n,stack:t instanceof Error?t.stack:void 0,type:"unhandledrejection",timestamp:Date.now()};Pt.push(r),Y({type:"error",category:"promise",message:n,timestamp:r.timestamp})},window.addEventListener("error",tt),window.addEventListener("unhandledrejection",nt)}function ce(){return[...Pt]}function tr(){Pt=[]}function nr(){tt&&window.removeEventListener("error",tt),nt&&window.removeEventListener("unhandledrejection",nt),tt=null,nt=null}var P=null,$t=null,Mt=null,At=null;function rr(){if(P={timestamp:Date.now()},performance.getEntriesByType){let e=()=>{let[t]=performance.getEntriesByType("navigation");t&&P&&(P.pageLoadTime=Math.round(t.loadEventEnd-t.startTime),P.domContentLoaded=Math.round(t.domContentLoadedEventEnd-t.startTime));let n=performance.getEntriesByType("paint");for(let s of n)s.name==="first-paint"&&P&&(P.firstPaint=Math.round(s.startTime)),s.name==="first-contentful-paint"&&P&&(P.firstContentfulPaint=Math.round(s.startTime));P&&(P.resourceCount=performance.getEntriesByType("resource").length);let r=performance.memory;r&&P&&(P.memoryUsage={usedJSHeapSize:r.usedJSHeapSize,totalJSHeapSize:r.totalJSHeapSize})};document.readyState==="complete"?setTimeout(e,0):window.addEventListener("load",()=>setTimeout(e,100))}if(typeof PerformanceObserver<"u"){try{$t=new PerformanceObserver(e=>{let t=e.getEntries(),n=t[t.length-1];n&&P&&(P.largestContentfulPaint=Math.round(n.startTime))}),$t.observe({type:"largest-contentful-paint",buffered:!0})}catch{}try{let e=0;Mt=new PerformanceObserver(t=>{for(let n of t.getEntries())n.hadRecentInput||(e+=n.value);P&&(P.cumulativeLayoutShift=Math.round(e*1e3)/1e3)}),Mt.observe({type:"layout-shift",buffered:!0})}catch{}try{At=new PerformanceObserver(e=>{let[t]=e.getEntries();t&&P&&(P.firstInputDelay=Math.round(t.processingStart-t.startTime))}),At.observe({type:"first-input",buffered:!0})}catch{}}}function Ae(){return P&&(P.timestamp=Date.now()),P?{...P}:null}function sr(){$t?.disconnect(),Mt?.disconnect(),At?.disconnect(),$t=null,Mt=null,At=null,P=null}function or(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(s),t&&(r.href=t),s.href=e,s.href}var ir=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function te(e){let t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}var Re=null;function zt(e={}){return Re||(e.includeStyleProperties?(Re=e.includeStyleProperties,Re):(Re=te(window.getComputedStyle(document.documentElement)),Re))}function Rt(e,t){let r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function As(e){let t=Rt(e,"border-left-width"),n=Rt(e,"border-right-width");return e.clientWidth+t+n}function Rs(e){let t=Rt(e,"border-top-width"),n=Rt(e,"border-bottom-width");return e.clientHeight+t+n}function ln(e,t={}){let n=t.width||As(e),r=t.height||Rs(e);return{width:n,height:r}}function ar(){let e,t;try{t=process}catch{}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var K=16384;function lr(e){(e.width>K||e.height>K)&&(e.width>K&&e.height>K?e.width>e.height?(e.height*=K/e.width,e.width=K):(e.width*=K/e.height,e.height=K):e.width>K?(e.height*=K/e.width,e.width=K):(e.width*=K/e.height,e.height=K))}function ze(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function zs(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function cr(e,t,n){let r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),s.appendChild(o),o.appendChild(e),zs(s)}var W=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||W(n,t)};function Is(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Hs(e,t){return zt(t).map(n=>{let r=e.getPropertyValue(n),s=e.getPropertyPriority(n);return`${n}: ${r}${s?" !important":""};`}).join(" ")}function Ds(e,t,n,r){let s=`.${e}:${t}`,o=n.cssText?Is(n):Hs(n,r);return document.createTextNode(`${s}{${o}}`)}function dr(e,t,n,r){let s=window.getComputedStyle(e,n),o=s.getPropertyValue("content");if(o===""||o==="none")return;let i=ir();try{t.className=`${t.className} ${i}`}catch{return}let a=document.createElement("style");a.appendChild(Ds(i,n,s,r)),t.appendChild(a)}function pr(e,t,n){dr(e,t,":before",n),dr(e,t,":after",n)}var br="application/font-woff",ur="image/jpeg",Bs={woff:br,woff2:br,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:ur,jpeg:ur,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Os(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Ie(e){let t=Os(e).toLowerCase();return Bs[t]||""}function Ns(e){return e.split(/,/)[1]}function rt(e){return e.search(/^(data:)/)!==-1}function dn(e,t){return`data:${t};base64,${e}`}async function pn(e,t,n){let r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);let s=await r.blob();return new Promise((o,i)=>{let a=new FileReader;a.onerror=i,a.onloadend=()=>{try{o(n({res:r,result:a.result}))}catch(d){i(d)}},a.readAsDataURL(s)})}var cn={};function js(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function He(e,t,n){let r=js(e,t,n.includeQueryParams);if(cn[r]!=null)return cn[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let s;try{let o=await pn(e,n.fetchRequestInit,({res:i,result:a})=>(t||(t=i.headers.get("Content-Type")||""),Ns(a)));s=dn(o,t)}catch(o){s=n.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;o&&(i=typeof o=="string"?o:o.message),i&&console.warn(i)}return cn[r]=s,s}async function qs(e){let t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):ze(t)}async function Us(e,t){if(e.currentSrc){let o=document.createElement("canvas"),i=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,i?.drawImage(e,0,0,o.width,o.height);let a=o.toDataURL();return ze(a)}let n=e.poster,r=Ie(n),s=await He(n,r,t);return ze(s)}async function Fs(e,t){var n;try{if(!((n=e?.contentDocument)===null||n===void 0)&&n.body)return await st(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Ws(e,t){return W(e,HTMLCanvasElement)?qs(e):W(e,HTMLVideoElement)?Us(e,t):W(e,HTMLIFrameElement)?Fs(e,t):e.cloneNode(mr(e))}var _s=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",mr=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Xs(e,t,n){var r,s;if(mr(t))return t;let o=[];return _s(e)&&e.assignedNodes?o=te(e.assignedNodes()):W(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?o=te(e.contentDocument.body.childNodes):o=te(((s=e.shadowRoot)!==null&&s!==void 0?s:e).childNodes),o.length===0||W(e,HTMLVideoElement)||await o.reduce((i,a)=>i.then(()=>st(a,n)).then(d=>{d&&t.appendChild(d)}),Promise.resolve()),t}function Ys(e,t,n){let r=t.style;if(!r)return;let s=window.getComputedStyle(e);s.cssText?(r.cssText=s.cssText,r.transformOrigin=s.transformOrigin):zt(n).forEach(o=>{let i=s.getPropertyValue(o);o==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),W(e,HTMLIFrameElement)&&o==="display"&&i==="inline"&&(i="block"),o==="d"&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),r.setProperty(o,i,s.getPropertyPriority(o))})}function Vs(e,t){W(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),W(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Js(e,t){if(W(e,HTMLSelectElement)){let r=Array.from(t.children).find(s=>e.value===s.getAttribute("value"));r&&r.setAttribute("selected","")}}function Ks(e,t,n){return W(t,Element)&&(Ys(e,t,n),pr(e,t,n),Vs(e,t),Js(e,t)),t}async function Gs(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;let r={};for(let o=0;o<n.length;o++){let a=n[o].getAttribute("xlink:href");if(a){let d=e.querySelector(a),p=document.querySelector(a);!d&&p&&!r[a]&&(r[a]=await st(p,t,!0))}}let s=Object.values(r);if(s.length){let o="http://www.w3.org/1999/xhtml",i=document.createElementNS(o,"svg");i.setAttribute("xmlns",o),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";let a=document.createElementNS(o,"defs");i.appendChild(a);for(let d=0;d<s.length;d++)a.appendChild(s[d]);e.appendChild(i)}return e}async function st(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>Ws(r,t)).then(r=>Xs(e,r,t)).then(r=>Ks(e,r,t)).then(r=>Gs(r,t))}var fr=/url\((['"]?)([^'"]+?)\1\)/g,Qs=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Zs=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function eo(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function to(e){let t=[];return e.replace(fr,(n,r,s)=>(t.push(s),n)),t.filter(n=>!rt(n))}async function no(e,t,n,r,s){try{let o=n?or(t,n):t,i=Ie(t),a;if(s){let d=await s(o);a=dn(d,i)}else a=await He(o,i,r);return e.replace(eo(t),`$1${a}$3`)}catch{}return e}function ro(e,{preferredFontFormat:t}){return t?e.replace(Zs,n=>{for(;;){let[r,,s]=Qs.exec(n)||[];if(!s)return"";if(s===t)return`src: ${r};`}}):e}function bn(e){return e.search(fr)!==-1}async function It(e,t,n){if(!bn(e))return e;let r=ro(e,n);return to(r).reduce((o,i)=>o.then(a=>no(a,i,t,n)),Promise.resolve(r))}async function De(e,t,n){var r;let s=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(s){let o=await It(s,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function so(e,t){await De("background",e,t)||await De("background-image",e,t),await De("mask",e,t)||await De("-webkit-mask",e,t)||await De("mask-image",e,t)||await De("-webkit-mask-image",e,t)}async function oo(e,t){let n=W(e,HTMLImageElement);if(!(n&&!rt(e.src))&&!(W(e,SVGImageElement)&&!rt(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,s=await He(r,Ie(r),t);await new Promise((o,i)=>{e.onload=o,e.onerror=t.onImageErrorHandler?(...d)=>{try{o(t.onImageErrorHandler(...d))}catch(p){i(p)}}:i;let a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=s):e.href.baseVal=s})}async function io(e,t){let r=te(e.childNodes).map(s=>un(s,t));await Promise.all(r).then(()=>e)}async function un(e,t){W(e,Element)&&(await so(e,t),await oo(e,t),await io(e,t))}function gr(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;return r!=null&&Object.keys(r).forEach(s=>{n[s]=r[s]}),e}var hr={};async function yr(e){let t=hr[e];if(t!=null)return t;let r=await(await fetch(e)).text();return t={url:e,cssText:r},hr[e]=t,t}async function xr(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),pn(a,t.fetchRequestInit,({result:d})=>(n=n.replace(i,`url(${d})`),[i,d]))});return Promise.all(o).then(()=>n)}function vr(e){if(e==null)return[];let t=[],n=/(\/\*[\s\S]*?\*\/)/gi,r=e.replace(n,""),s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let d=s.exec(r);if(d===null)break;t.push(d[0])}r=r.replace(s,"");let o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(i,"gi");for(;;){let d=o.exec(r);if(d===null){if(d=a.exec(r),d===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(d[0])}return t}async function ao(e,t){let n=[],r=[];return e.forEach(s=>{if("cssRules"in s)try{te(s.cssRules||[]).forEach((o,i)=>{if(o.type===CSSRule.IMPORT_RULE){let a=i+1,d=o.href,p=yr(d).then(b=>xr(b,t)).then(b=>vr(b).forEach(y=>{try{s.insertRule(y,y.startsWith("@import")?a+=1:s.cssRules.length)}catch(w){console.error("Error inserting rule from remote css",{rule:y,error:w})}})).catch(b=>{console.error("Error loading remote css",b.toString())});r.push(p)}})}catch(o){let i=e.find(a=>a.href==null)||document.styleSheets[0];s.href!=null&&r.push(yr(s.href).then(a=>xr(a,t)).then(a=>vr(a).forEach(d=>{i.insertRule(d,i.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(e.forEach(s=>{if("cssRules"in s)try{te(s.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${s.href}`,o)}}),n))}function lo(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>bn(t.style.getPropertyValue("src")))}async function co(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");let n=te(e.ownerDocument.styleSheets),r=await ao(n,t);return lo(r)}function wr(e){return e.trim().replace(/["']/g,"")}function po(e){let t=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(o=>{t.add(wr(o))}),Array.from(r.children).forEach(o=>{o instanceof HTMLElement&&n(o)})}return n(e),t}async function kr(e,t){let n=await co(e,t),r=po(e);return(await Promise.all(n.filter(o=>r.has(wr(o.style.fontFamily))).map(o=>{let i=o.parentStyleSheet?o.parentStyleSheet.href:null;return It(o.cssText,i,t)}))).join(`
5
+ `)}async function Er(e,t){let n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await kr(e,t);if(n){let r=document.createElement("style"),s=document.createTextNode(n);r.appendChild(s),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function bo(e,t={}){let{width:n,height:r}=ln(e,t),s=await st(e,t,!0);return await Er(s,t),await un(s,t),gr(s,t),await cr(s,n,r)}async function uo(e,t={}){let{width:n,height:r}=ln(e,t),s=await bo(e,t),o=await ze(s),i=document.createElement("canvas"),a=i.getContext("2d"),d=t.pixelRatio||ar(),p=t.canvasWidth||n,b=t.canvasHeight||r;return i.width=p*d,i.height=b*d,t.skipAutoScale||lr(i),i.style.width=`${p}`,i.style.height=`${b}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,i.width,i.height)),a.drawImage(o,0,0,i.width,i.height),i}async function Sr(e,t={}){return(await uo(e,t)).toDataURL()}function mo(){let e=document.createElement("div");if(e.style.cssText=`
9
6
  position: fixed; inset: 0; z-index: 2147483647;
10
7
  background: white; opacity: 0;
11
8
  pointer-events: none;
12
9
  animation: bs-flash 0.4s ease-out forwards;
13
- `,!document.getElementById("bs-flash-style")){let e=document.createElement("style");e.id="bs-flash-style",e.textContent=`
10
+ `,!document.getElementById("bs-flash-style")){let t=document.createElement("style");t.id="bs-flash-style",t.textContent=`
14
11
  @keyframes bs-flash {
15
12
  0% { opacity: 0; }
16
13
  15% { opacity: 0.7; }
17
14
  100% { opacity: 0; }
18
15
  }
19
- `,document.head.appendChild(e)}document.body.appendChild(A),A.addEventListener("animationend",()=>A.remove())}async function gs(A=!1){A&&Fd();try{let e=await yd();if(e)return e}catch{}try{let e=await Ed();if(e)return e}catch{}return null}async function yd(){let A=window.getComputedStyle(document.body).backgroundColor,e=window.getComputedStyle(document.documentElement).backgroundColor,t=s=>!s||s==="transparent"||s==="rgba(0, 0, 0, 0)",r=t(A)?t(e)?"#ffffff":e:A,n=await us(document.body,{scale:.5,useCORS:!0,allowTaint:!0,logging:!1,backgroundColor:r,removeContainer:!0,ignoreElements:s=>s.classList?.contains("bs-fab")||s.classList?.contains("bs-toolbar")||s.classList?.contains("bs-modal")||s.classList?.contains("bs-backdrop")||s.id==="bs-flash-style"||s.id==="bugstash-live-pins"||s.id==="bugstash-pin-overlay"});try{return n.toDataURL("image/jpeg",.6)}catch{try{return(await us(document.body,{scale:.5,useCORS:!0,allowTaint:!1,logging:!1,backgroundColor:r,removeContainer:!0,ignoreElements:a=>{if(a.tagName==="IMG"){let i=a.src||"";if(i&&!i.startsWith(window.location.origin)&&!i.startsWith("data:"))return!0}return a.classList?.contains("bs-fab")||a.classList?.contains("bs-toolbar")||a.classList?.contains("bs-modal")||a.classList?.contains("bs-backdrop")||a.id==="bs-flash-style"||a.id==="bugstash-live-pins"||a.id==="bugstash-pin-overlay"}})).toDataURL("image/jpeg",.6)}catch{return null}}}async function Ed(){let A=window.innerWidth,e=window.innerHeight,t=document.documentElement.cloneNode(!0),r=document.documentElement.querySelectorAll("*"),n=t.querySelectorAll("*");for(let o=0;o<r.length&&o<n.length;o++){let l=window.getComputedStyle(r[o]),c=n[o];if(c.style){let B=["background","background-color","background-image","color","font","font-size","font-family","font-weight","border","border-radius","padding","margin","display","flex-direction","align-items","justify-content","gap","width","height","max-width","max-height","overflow","position","top","left","right","bottom","box-shadow","text-shadow","opacity","transform","text-align","line-height","letter-spacing","text-decoration","visibility","z-index","grid-template-columns","grid-template-rows","box-sizing"];for(let u of B)try{c.style.setProperty(u,l.getPropertyValue(u))}catch{}}}t.querySelectorAll('script, [data-bugstash], .bs-fab, .bs-toolbar, .bs-modal, .bs-backdrop, [id="bs-flash-style"], [id="bugstash-live-pins"], [id="bugstash-pin-overlay"], iframe, canvas, video, audio, object, embed').forEach(o=>o.remove()),t.querySelectorAll("img").forEach(o=>{let l=document.createElement("div");l.style.cssText=`width:${o.width||100}px;height:${o.height||60}px;background:#2a2d37;border-radius:4px;`,o.replaceWith(l)}),t.querySelectorAll('link[rel="stylesheet"], link[rel="icon"], link[rel="preload"]').forEach(o=>o.remove());let a=new XMLSerializer().serializeToString(t),i=`<svg xmlns="http://www.w3.org/2000/svg" width="${A}" height="${e}">
20
- <foreignObject width="100%" height="100%">${a}</foreignObject>
21
- </svg>`;return new Promise(o=>{try{let l=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),c=new FileReader;c.onload=()=>{o(c.result)},c.onerror=()=>o(null),c.readAsDataURL(l)}catch{o(null)}})}var xd="https://bugstash-backend.vercel.app",qo="https://bugstash-backend.vercel.app",FA=xd,ds=!1;function jo(A){FA=A.replace(/\/$/,""),ds=!1}function Ai(){return FA}async function $A(A,e){try{return await fetch(A,e)}catch(t){if(ds)throw t;ds=!0;let r=FA;FA=qo;let n=A.replace(r,qo);return fetch(n,e)}}var fs="bugstash_auth";function ps(){try{let A=localStorage.getItem(fs);if(!A)return null;let e=JSON.parse(A);return e.tokens.expiresAt<Date.now(),e}catch{return null}}function ei(A){localStorage.setItem(fs,JSON.stringify(A))}function Hd(){localStorage.removeItem(fs)}function _A(){return ps()?.user||null}function ti(){return ps()?.tokens.accessToken||null}async function be(){let A=ps();if(!A)return{"Content-Type":"application/json"};if(A.tokens.expiresAt<Date.now()+6e4)try{let e=await $A(`${FA}/api/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:A.tokens.refreshToken})});if(e.ok){let t=await e.json();t.success&&(A.tokens=t.data,ei(A))}}catch{}return{"Content-Type":"application/json",Authorization:`Bearer ${A.tokens.accessToken}`}}async function Jr(A,e,t){try{let n=await(await $A(`${FA}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:A,password:e,projectId:t})})).json();return n.success&&ei({user:n.data.user,tokens:n.data.tokens}),n}catch{return{success:!1,error:"Network error"}}}async function Wr(){Hd()}async function ws(A){try{let e=await be();return await(await $A(`${FA}/api/reports`,{method:"POST",headers:e,body:JSON.stringify(A)})).json()}catch{return{success:!1,error:"Network error - could not reach BugStash"}}}async function ri(A,e){try{let t=await be();return await(await $A(`${FA}/api/pins/by-page?projectId=${A}&pathname=${encodeURIComponent(e)}`,{headers:t})).json()}catch{return{success:!1,error:"Network error"}}}async function hs(A){try{let e=await be();return await(await $A(`${FA}/api/pins`,{method:"POST",headers:e,body:JSON.stringify(A)})).json()}catch{return{success:!1,error:"Network error"}}}async function Yr(A,e){try{let t=await be();return await(await $A(`${FA}/api/pins/${A}`,{method:"PUT",headers:t,body:JSON.stringify(e)})).json()}catch{return{success:!1,error:"Network error"}}}async function ni(A){try{let e=await be();return await(await $A(`${FA}/api/pins/${A}`,{method:"DELETE",headers:e})).json()}catch{return{success:!1,error:"Network error"}}}async function si(A){try{let e=await be();return await(await $A(`${FA}/api/pins/${A}/comments`,{headers:e})).json()}catch{return{success:!1,error:"Network error"}}}async function bs(A,e,t=[]){try{let r=await be();return await(await $A(`${FA}/api/pins/${A}/comments`,{method:"POST",headers:r,body:JSON.stringify({body:e,mentions:t})})).json()}catch{return{success:!1,error:"Network error"}}}async function ai(A){try{let e=await be();return await(await $A(`${FA}/api/members/for-project/${A}`,{headers:e})).json()}catch{return{success:!1,error:"Network error"}}}var Qs="bugstash_offline_queue";function Cs(A){let e=oi();e.push({...A,id:Math.random().toString(36).slice(2),timestamp:Date.now()}),localStorage.setItem(Qs,JSON.stringify(e))}function oi(){try{return JSON.parse(localStorage.getItem(Qs)||"[]")}catch{return[]}}async function Id(){let A=oi();if(A.length===0)return 0;let e=0,t=[];for(let r of A)try{let n;switch(r.type){case"create_pin":n=await hs(r.data);break;case"create_comment":n=await bs(r.data.pinId,r.data.body,r.data.mentions);break;case"update_pin":n=await Yr(r.data.pinId,r.data.updates);break;case"submit_report":n=await ws(r.data);break;default:n={success:!1,error:"Unknown action"}}n.success?e++:t.push(r)}catch{t.push(r)}return localStorage.setItem(Qs,JSON.stringify(t)),e}typeof window<"u"&&window.addEventListener("online",()=>{Id().catch(()=>{})});var ms=[{id:"slate",name:"Slate",preview:["#0f1117","#6E9ED0"],vars:{"--bs-bg":"#0f1117","--bs-bg2":"#1a1d27","--bs-bg3":"#2a2d37","--bs-text":"#e8eaed","--bs-muted":"#9ca3af","--bs-border":"#2a2d37","--bs-accent":"#6E9ED0","--bs-accent2":"#C3CAD6","--bs-fab1":"#6E9ED0","--bs-fab2":"#4a7ba8","--bs-radius":"12px","--bs-radius-sm":"8px","--bs-red":"#ef4444","--bs-green":"#22c55e","--bs-orange":"#f97316","--bs-yellow":"#eab308"}},{id:"black",name:"Dark",preview:["#0a0a0a","#ffffff"],vars:{"--bs-bg":"#0a0a0a","--bs-bg2":"#141414","--bs-bg3":"#1e1e1e","--bs-text":"#f5f5f5","--bs-muted":"#737373","--bs-border":"#262626","--bs-accent":"#f5f5f5","--bs-accent2":"#d4d4d4","--bs-fab1":"#262626","--bs-fab2":"#171717","--bs-radius":"12px","--bs-radius-sm":"8px","--bs-red":"#ef4444","--bs-green":"#22c55e","--bs-orange":"#f97316","--bs-yellow":"#eab308"}},{id:"white",name:"Light",preview:["#ffffff","#0a0a0a"],vars:{"--bs-bg":"#ffffff","--bs-bg2":"#f5f5f5","--bs-bg3":"#e5e5e5","--bs-text":"#0a0a0a","--bs-muted":"#737373","--bs-border":"#e5e5e5","--bs-accent":"#0a0a0a","--bs-accent2":"#404040","--bs-fab1":"#0a0a0a","--bs-fab2":"#262626","--bs-radius":"12px","--bs-radius-sm":"8px","--bs-red":"#dc2626","--bs-green":"#16a34a","--bs-orange":"#ea580c","--bs-yellow":"#ca8a04"}}];function zr(){return ms}function $r(A){return ms.find(e=>e.id===A)}function ii(){return ms[0]}var Us=[{id:"classic",name:"Center",description:"Centered modal",tabPosition:"top"},{id:"drawer-right",name:"Right Drawer",description:"Slides from right",tabPosition:"top"},{id:"bottom-sheet",name:"Bottom Sheet",description:"Slides from bottom",tabPosition:"top"},{id:"sidebar-tabs",name:"Sidebar",description:"Side navigation",tabPosition:"left"}];function Zr(){return Us}function Ot(A){return Us.find(e=>e.id===A)}function li(){return Us[0]}var ci=`
16
+ `,document.head.appendChild(t)}document.body.appendChild(e),e.addEventListener("animationend",()=>e.remove())}var fo=e=>{let t=e.tagName.toLowerCase();return t==="bugstash-root"||t==="bugstash-overlay"||e.classList?.contains("bs-fab")||e.classList?.contains("bs-toolbar")||e.classList?.contains("bs-modal")||e.classList?.contains("bs-backdrop")||e.id==="bs-flash-style"||e.id==="bugstash-live-pins"||e.id==="bugstash-pin-overlay"};async function mn(e=!1){e&&mo();try{let t=await go();if(t)return t}catch{}try{return await Lr()}catch{try{return await Lr(!0)}catch{return null}}}async function go(){if(!navigator.mediaDevices?.getDisplayMedia)return null;let e=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",width:{ideal:window.screen.width*(window.devicePixelRatio||1)},height:{ideal:window.screen.height*(window.devicePixelRatio||1)}},audio:!1,preferCurrentTab:!0,selfBrowserSurface:"include",monitorTypeSurfaces:"exclude"});try{if(!e.getVideoTracks()[0])return null;let n=document.createElement("video");n.srcObject=e,n.muted=!0,n.playsInline=!0,await n.play(),await new Promise(o=>{if(n.readyState>=2){o();return}n.onloadeddata=()=>o()}),await new Promise(o=>requestAnimationFrame(()=>o()));let r=document.createElement("canvas");r.width=n.videoWidth,r.height=n.videoHeight;let s=r.getContext("2d");return s?(s.drawImage(n,0,0),r.toDataURL("image/png")):null}finally{e.getTracks().forEach(t=>t.stop())}}async function Lr(e=!1){let t=window.getComputedStyle(document.body).backgroundColor,n=window.getComputedStyle(document.documentElement).backgroundColor,r=i=>!i||i==="transparent"||i==="rgba(0, 0, 0, 0)",s=r(t)?r(n)?"#ffffff":n:t;return await Sr(document.body,{pixelRatio:Math.min(window.devicePixelRatio||1,2),backgroundColor:s,width:window.innerWidth,height:window.innerHeight,filter:i=>{if(e&&i.tagName==="IMG"){let a=i.src||"";if(a&&!a.startsWith(window.location.origin)&&!a.startsWith("data:"))return!1}return!fo(i)},imagePlaceholder:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"})}var ho="https://bugstash-backend.vercel.app",Cr="https://bugstash-backend.vercel.app",X=ho,fn=!1;function Tr(e){X=e.replace(/\/$/,""),fn=!1}function Pr(){return X}async function se(e,t){try{return await fetch(e,t)}catch(n){if(fn)throw n;fn=!0;let r=X;X=Cr;let s=e.replace(r,Cr);return fetch(s,t)}}var gn="bugstash_auth";function hn(){try{let e=localStorage.getItem(gn);if(!e)return null;let t=JSON.parse(e);return t.tokens.expiresAt<Date.now(),t}catch{return null}}function $r(e){localStorage.setItem(gn,JSON.stringify(e))}function yo(){localStorage.removeItem(gn)}function ne(){return hn()?.user||null}function Mr(){return hn()?.tokens.accessToken||null}async function ge(){let e=hn();if(!e)return{"Content-Type":"application/json"};if(e.tokens.expiresAt<Date.now()+6e4)try{let t=await se(`${X}/api/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:e.tokens.refreshToken})});if(t.ok){let n=await t.json();n.success&&(e.tokens=n.data,$r(e))}}catch{}return{"Content-Type":"application/json",Authorization:`Bearer ${e.tokens.accessToken}`}}async function Dt(e,t,n){try{let s=await(await se(`${X}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:t,projectId:n})})).json();return s.success&&$r({user:s.data.user,tokens:s.data.tokens}),s}catch{return{success:!1,error:"Network error"}}}async function Bt(){yo()}async function yn(e){try{let t=await ge();return await(await se(`${X}/api/reports`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()}catch{return{success:!1,error:"Network error - could not reach BugStash"}}}async function Ar(e,t){try{let n=await ge();return await(await se(`${X}/api/pins/by-page?projectId=${e}&pathname=${encodeURIComponent(t)}`,{headers:n})).json()}catch{return{success:!1,error:"Network error"}}}async function xn(e){try{let t=await ge();return await(await se(`${X}/api/pins`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()}catch{return{success:!1,error:"Network error"}}}async function Ot(e,t){try{let n=await ge();return await(await se(`${X}/api/pins/${e}`,{method:"PUT",headers:n,body:JSON.stringify(t)})).json()}catch{return{success:!1,error:"Network error"}}}async function Rr(e){try{let t=await ge();return await(await se(`${X}/api/pins/${e}`,{method:"DELETE",headers:t})).json()}catch{return{success:!1,error:"Network error"}}}async function zr(e){try{let t=await ge();return await(await se(`${X}/api/pins/${e}/comments`,{headers:t})).json()}catch{return{success:!1,error:"Network error"}}}async function vn(e,t,n=[]){try{let r=await ge();return await(await se(`${X}/api/pins/${e}/comments`,{method:"POST",headers:r,body:JSON.stringify({body:t,mentions:n})})).json()}catch{return{success:!1,error:"Network error"}}}async function Ir(e){try{let t=await ge();return await(await se(`${X}/api/members/for-project/${e}`,{headers:t})).json()}catch{return{success:!1,error:"Network error"}}}var Ht=null;function Hr(e){return Ht||(Ht=(async()=>{try{let t=await fetch(`${X}/api/orgs/projects/${encodeURIComponent(e)}/verify-domain`,{headers:{"Content-Type":"application/json"}});return t.ok?(await t.json()).allowed===!0:!1}catch{return!1}})(),Ht)}var wn="bugstash_offline_queue";function kn(e){let t=Dr();t.push({...e,id:Math.random().toString(36).slice(2),timestamp:Date.now()}),localStorage.setItem(wn,JSON.stringify(t))}function Dr(){try{return JSON.parse(localStorage.getItem(wn)||"[]")}catch{return[]}}async function xo(){let e=Dr();if(e.length===0)return 0;let t=0,n=[];for(let r of e)try{let s;switch(r.type){case"create_pin":s=await xn(r.data);break;case"create_comment":s=await vn(r.data.pinId,r.data.body,r.data.mentions);break;case"update_pin":s=await Ot(r.data.pinId,r.data.updates);break;case"submit_report":s=await yn(r.data);break;default:s={success:!1,error:"Unknown action"}}s.success?t++:n.push(r)}catch{n.push(r)}return localStorage.setItem(wn,JSON.stringify(n)),t}typeof window<"u"&&window.addEventListener("online",()=>{xo().catch(()=>{})});var En=[{id:"slate",name:"Slate",preview:["#0f1117","#6E9ED0"],vars:{"--bs-bg":"#0f1117","--bs-bg2":"#1a1d27","--bs-bg3":"#2a2d37","--bs-text":"#e8eaed","--bs-muted":"#9ca3af","--bs-border":"#2a2d37","--bs-accent":"#6E9ED0","--bs-accent2":"#C3CAD6","--bs-fab1":"#6E9ED0","--bs-fab2":"#4a7ba8","--bs-radius":"12px","--bs-radius-sm":"8px","--bs-red":"#ef4444","--bs-green":"#22c55e","--bs-orange":"#f97316","--bs-yellow":"#eab308"}},{id:"black",name:"Dark",preview:["#0a0a0a","#ffffff"],vars:{"--bs-bg":"#0a0a0a","--bs-bg2":"#141414","--bs-bg3":"#1e1e1e","--bs-text":"#f5f5f5","--bs-muted":"#737373","--bs-border":"#262626","--bs-accent":"#f5f5f5","--bs-accent2":"#d4d4d4","--bs-fab1":"#262626","--bs-fab2":"#171717","--bs-radius":"12px","--bs-radius-sm":"8px","--bs-red":"#ef4444","--bs-green":"#22c55e","--bs-orange":"#f97316","--bs-yellow":"#eab308"}},{id:"white",name:"Light",preview:["#ffffff","#0a0a0a"],vars:{"--bs-bg":"#ffffff","--bs-bg2":"#f5f5f5","--bs-bg3":"#e5e5e5","--bs-text":"#0a0a0a","--bs-muted":"#737373","--bs-border":"#e5e5e5","--bs-accent":"#0a0a0a","--bs-accent2":"#404040","--bs-fab1":"#0a0a0a","--bs-fab2":"#262626","--bs-radius":"12px","--bs-radius-sm":"8px","--bs-red":"#dc2626","--bs-green":"#16a34a","--bs-orange":"#ea580c","--bs-yellow":"#ca8a04"}}];function Nt(){return En}function jt(e){return En.find(t=>t.id===e)}function Br(){return En[0]}var Sn=[{id:"classic",name:"Center",description:"Centered modal",tabPosition:"top"},{id:"drawer-right",name:"Right Drawer",description:"Slides from right",tabPosition:"top"},{id:"bottom-sheet",name:"Bottom Sheet",description:"Slides from bottom",tabPosition:"top"},{id:"sidebar-tabs",name:"Sidebar",description:"Side navigation",tabPosition:"left"}];function qt(){return Sn}function ot(e){return Sn.find(t=>t.id===e)}function Or(){return Sn[0]}var Nr=`
22
17
  /* \u2500\u2500 1. Classic (default \u2014 no overrides) \u2500\u2500 */
23
18
 
24
19
  /* \u2500\u2500 2. Drawer Right \u2500\u2500 */
@@ -78,33 +73,25 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
78
73
  }
79
74
  .bs-ly-sidebar-tabs .bs-tab-divider { display: none; }
80
75
  .bs-ly-sidebar-tabs .bs-scroll { flex: 1; }
81
- `;var ze=null,qr=0,Ld=5e3,We=new Map,Ye=null,jr=new Set;function Rt(A){Ye=A,qr=Date.now(),Kd()}function Kd(){ze||(ze=setInterval(Sd,Ld))}async function Sd(){if(!Ye)return;let A=ti();if(A)try{let e=Ai(),t=window.location.pathname,r=await fetch(`${e}/api/pins/poll?projectId=${Ye}&pathname=${encodeURIComponent(t)}&since=${qr}`,{headers:{Authorization:`Bearer ${A}`}});if(!r.ok)return;let n=await r.json();if(!n.success)return;let s=Array.isArray(n.data)?n.data:n.data?.pins||[];qr=n.serverTime||n.data?.serverTime||Date.now();for(let a of s)jr.has(a.id)?Bi("pin:updated",{type:"pin:updated",projectId:Ye,data:a,userId:"",timestamp:Date.now()}):(jr.add(a.id),Bi("pin:created",{type:"pin:created",projectId:Ye,data:a,userId:"",timestamp:Date.now()}))}catch{}}function ui(){ze&&(clearInterval(ze),ze=null),Ye=null,jr.clear(),qr=0}function Nt(A,e){return We.has(A)||We.set(A,new Set),We.get(A).add(e),()=>{We.get(A)?.delete(e)}}function Bi(A,e){We.get(A)?.forEach(t=>t(e)),We.get("*")?.forEach(t=>t(e))}function vs(A){jr=new Set(A)}function gi(){return ze!==null}var tn,MA=null,yA=null,gA=[],wi=[],$e=!1,qe=null,Td="",Ze=null,An=null,di={open:"#f97316",in_progress:"#3b82f6",resolved:"#22c55e",closed:"#6b7280"},en={critical:"#ef4444",high:"#f97316",medium:"#eab308",low:"#6b7280"};function Pt(A){tn=A,Td=window.location.pathname,Rd(),Ci(),Nd(),_d(),Xd(),kd()}function hi(){Md(),MA?.remove(),MA=null,yA?.remove(),yA=null,gA=[]}function je(A){return $e=A!==void 0?A:!$e,yA&&(yA.style.display=$e?"block":"none"),$e}function rn(){return $e}function bi(A){let e=Dd(A.elementSelector,A.elementXPath);if(e){let t=e.getBoundingClientRect();if(t.width>0&&t.height>0){let r=t.left+window.scrollX,n=t.top+window.scrollY;if(A.pageX>0||A.pageY>0){let s=document.documentElement.scrollWidth||document.body.scrollWidth||1,a=document.documentElement.scrollHeight||document.body.scrollHeight||1,i=Fs(A)?A.xPercent/100*s:A.pageX,o=Fs(A)?A.yPercent/100*a:A.pageY,l={x:i,y:o},c={x:r+t.width/2,y:n+t.height/2};if(Math.abs(l.x-c.x)+Math.abs(l.y-c.y)>100)return{left:`${r+t.width/2}px`,top:`${n+t.height/2}px`}}}}return Fs(A)?{left:`${A.xPercent}%`,top:`${A.yPercent}%`}:{left:`${A.pageX}px`,top:`${A.pageY}px`}}function Fs(A){return A.xPercent!=null&&A.yPercent!=null&&(A.xPercent!==0||A.yPercent!==0||A.pageX===0&&A.pageY===0)}function Dd(A,e){if(A&&A!=="body")try{let t=document.querySelector(A);if(t)return t}catch{}if(e)try{let t=document.evaluate(e,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);if(t.singleNodeValue instanceof Element)return t.singleNodeValue}catch{}return null}function kd(){window.addEventListener("scroll",Gt,{passive:!0}),window.addEventListener("resize",Gt,{passive:!0}),window.addEventListener("keydown",Qi),An=new MutationObserver(()=>Gt()),An.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]})}function Md(){window.removeEventListener("scroll",Gt),window.removeEventListener("resize",Gt),window.removeEventListener("keydown",Qi),An?.disconnect(),An=null,Ze&&(cancelAnimationFrame(Ze),Ze=null)}function Qi(A){A.key==="Escape"&&(qe?Qe():$e&&(yA?.querySelectorAll(".bs-lp-form").forEach(e=>e.remove()),je(!1)))}function Gt(){Ze||(Ze=requestAnimationFrame(()=>{Ze=null,Od()}))}function Od(){if(!MA)return;MA.querySelectorAll(".bs-lp").forEach(e=>{let t=e.dataset.pinId,r=gA.find(s=>s.id===t);if(!r)return;let n=bi(r);e.style.left=n.left,e.style.top=n.top})}function Rd(){if(MA)return;window.getComputedStyle(document.body).position==="static"&&(document.body.style.position="relative"),MA=document.createElement("div"),MA.id="bugstash-live-pins",yA=document.createElement("div"),yA.id="bugstash-pin-overlay",yA.style.display="none";let e=document.createElement("style");e.textContent=`
76
+ `;var Ne=null,Ut=0,vo=5e3,Be=new Map,Oe=null,Ft=new Set;function it(e){Oe=e,Ut=Date.now(),wo()}function wo(){Ne||(Ne=setInterval(ko,vo))}async function ko(){if(!Oe)return;let e=Mr();if(e)try{let t=Pr(),n=window.location.pathname,r=await fetch(`${t}/api/pins/poll?projectId=${Oe}&pathname=${encodeURIComponent(n)}&since=${Ut}`,{headers:{Authorization:`Bearer ${e}`}});if(!r.ok)return;let s=await r.json();if(!s.success)return;let o=Array.isArray(s.data)?s.data:s.data?.pins||[];Ut=s.serverTime||s.data?.serverTime||Date.now();for(let i of o)Ft.has(i.id)?jr("pin:updated",{type:"pin:updated",projectId:Oe,data:i,userId:"",timestamp:Date.now()}):(Ft.add(i.id),jr("pin:created",{type:"pin:created",projectId:Oe,data:i,userId:"",timestamp:Date.now()}))}catch{}}function qr(){Ne&&(clearInterval(Ne),Ne=null),Oe=null,Ft.clear(),Ut=0}function at(e,t){return Be.has(e)||Be.set(e,new Set),Be.get(e).add(t),()=>{Be.get(e)?.delete(t)}}function jr(e,t){Be.get(e)?.forEach(n=>n(t)),Be.get("*")?.forEach(n=>n(t))}function Ln(e){Ft=new Set(e)}function Ur(){return Ne!==null}var Yt,_=null,$=null,z=[],Xr=[],je=!1,Ue=null,Eo="",qe=null,_t=null,Tn=[],lt=null,Pn=null,Fr={open:"#f97316",in_progress:"#3b82f6",resolved:"#22c55e",closed:"#6b7280"},Xt={critical:"#ef4444",high:"#f97316",medium:"#eab308",low:"#6b7280"};function ct(e,t){Yt=e,Pn=t,Eo=window.location.pathname,$o(),Gr(),Mo(),Do(),Bo(),So()}function Yr(){Lo(),_?.remove(),_=null,$?.remove(),$=null,Pn=null,z=[]}function Fe(e){return je=e!==void 0?e:!je,$&&$.style.setProperty("display",je?"block":"none","important"),je}function Vt(){return je}function Vr(e){try{let t=document.documentElement.scrollWidth||document.body.scrollWidth||1,n=document.documentElement.scrollHeight||document.body.scrollHeight||1,r=window.scrollX,s=window.scrollY,o=$n(e.elementSelector,e.elementXPath),i=Wt(e)&&e.xPercent>=0&&e.xPercent<=1&&e.yPercent>=0&&e.yPercent<=1;if(i&&o){let a=o.getBoundingClientRect();if(a.width>0&&a.height>0){let d=a.left+e.xPercent*a.width,p=a.top+e.yPercent*a.height;return{left:`${d}px`,top:`${p}px`}}}if(i)return e.pageX>0||e.pageY>0?{left:`${e.pageX-r}px`,top:`${e.pageY-s}px`}:{left:`${e.xPercent*t-r}px`,top:`${e.yPercent*n-s}px`};if(o){let a=o.getBoundingClientRect();if(a.width>0&&a.height>0){if(e.pageX>0||e.pageY>0){let d=Wt(e)?e.xPercent/100*t:e.pageX,p=Wt(e)?e.yPercent/100*n:e.pageY,b=a.left+a.width/2,y=a.top+a.height/2,w=d-r,k=p-s;return Math.abs(w-b)+Math.abs(k-y)>100?{left:`${b}px`,top:`${y}px`}:{left:`${w}px`,top:`${k}px`}}return{left:`${a.left+a.width/2}px`,top:`${a.top+a.height/2}px`}}}return Wt(e)?{left:`${e.xPercent/100*t-r}px`,top:`${e.yPercent/100*n-s}px`}:{left:`${e.pageX-r}px`,top:`${e.pageY-s}px`}}catch{let t=(e.pageX||0)-(window.scrollX||0),n=(e.pageY||0)-(window.scrollY||0);return{left:`${t}px`,top:`${n}px`}}}function Wt(e){return e.xPercent!=null&&e.yPercent!=null&&(e.xPercent!==0||e.yPercent!==0||e.pageX===0&&e.pageY===0)}function $n(e,t){let n;if(e&&e.startsWith('["')&&e.endsWith('"]'))try{let r=JSON.parse(e);n=Array.isArray(r)?r.filter(s=>typeof s=="string"):[e]}catch{n=[e]}else n=e?[e]:[];for(let r of n)if(r&&r!=="body")try{let s=document.querySelector(r);if(s)return s}catch{}if(t)try{let r=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);if(r.singleNodeValue instanceof Element)return r.singleNodeValue}catch{}return null}function So(){window.addEventListener("scroll",ke,{passive:!0}),window.addEventListener("resize",ke,{passive:!0}),window.addEventListener("keydown",Jr),_t=new MutationObserver(e=>{e.every(n=>_?.contains(n.target)||$?.contains(n.target))||ke()}),_t.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),typeof ResizeObserver<"u"&&(lt=new ResizeObserver(()=>ke()))}function Lo(){window.removeEventListener("scroll",ke),window.removeEventListener("resize",ke),window.removeEventListener("keydown",Jr),Kr(),_t?.disconnect(),_t=null,lt?.disconnect(),lt=null,qe&&(cancelAnimationFrame(qe),qe=null)}function Jr(e){e.key==="Escape"&&(Ue?he():je&&(_?.querySelectorAll(".bs-lp-form").forEach(t=>t.remove()),Fe(!1)))}function ke(){qe||(qe=requestAnimationFrame(()=>{qe=null,Co()}))}function Co(){if(!_)return;_.querySelectorAll(".bs-lp").forEach(t=>{let n=t.dataset.pinId,r=z.find(o=>o.id===n);if(!r)return;let s=Vr(r);t.style.left=s.left,t.style.top=s.top})}function To(e){let t=[],n=e.parentElement;for(;n&&n!==document.documentElement;){let r=window.getComputedStyle(n),s=r.overflowY,o=r.overflowX;(s==="auto"||s==="scroll"||o==="auto"||o==="scroll")&&(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&t.push(n),n=n.parentElement}return t}function Po(){Kr();let e=new Set;for(let t of z){let n=$n(t.elementSelector,t.elementXPath);if(!n)continue;let r=To(n);for(let s of r){if(e.has(s))continue;e.add(s);let o=()=>ke();s.addEventListener("scroll",o,{passive:!0}),Tn.push(()=>s.removeEventListener("scroll",o))}}}function Kr(){for(let e of Tn)e();Tn=[]}function $o(){if(_)return;_=document.createElement("div"),_.id="bugstash-live-pins",$=document.createElement("bugstash-overlay"),$.style.setProperty("display","none","important"),$.style.setProperty("position","fixed","important"),$.style.setProperty("inset","0","important"),$.style.setProperty("z-index","2147483641","important"),$.style.setProperty("cursor","crosshair","important"),$.style.setProperty("background","rgba(0,0,0,0.05)","important"),$.style.setProperty("margin","0","important"),$.style.setProperty("padding","0","important"),$.style.setProperty("border","none","important"),$.style.setProperty("opacity","1","important"),$.style.setProperty("visibility","visible","important"),$.style.setProperty("pointer-events","auto","important");let e=document.createElement("style");e.textContent=`
82
77
  #bugstash-live-pins {
83
- position: absolute;
78
+ position: fixed;
84
79
  top: 0;
85
80
  left: 0;
86
- width: 100%;
87
- min-height: 100%;
81
+ width: 0;
82
+ height: 0;
88
83
  overflow: visible;
89
84
  z-index: 2147483640;
90
85
  pointer-events: none;
91
86
  }
92
- #bugstash-pin-overlay {
93
- position: fixed;
94
- inset: 0;
95
- z-index: 2147483641;
96
- cursor: crosshair;
97
- background: rgba(0,0,0,0.05);
98
- }
99
-
100
87
  /* \u2500\u2500 Pin Marker \u2500\u2500 */
101
88
  .bs-lp {
102
- position: absolute;
89
+ position: fixed;
103
90
  pointer-events: auto;
104
91
  cursor: pointer;
105
92
  transform: translate(-50%, -50%);
106
93
  z-index: 1;
107
- transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), left 0.15s ease, top 0.15s ease;
94
+ transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
108
95
  }
109
96
  .bs-lp:hover { transform: translate(-50%, -50%) scale(1.2); z-index: 5; }
110
97
  .bs-lp-dot {
@@ -178,7 +165,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
178
165
  flex-shrink: 0;
179
166
  }
180
167
  .bs-lp-popup-close {
181
- all: unset;
168
+ all: initial;
182
169
  color: #4b5563;
183
170
  font-size: 18px;
184
171
  cursor: pointer;
@@ -243,7 +230,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
243
230
  border-top: 1px solid rgba(255,255,255,0.06);
244
231
  }
245
232
  .bs-lp-input input {
246
- all: unset;
233
+ all: initial;
247
234
  flex: 1;
248
235
  padding: 10px 14px;
249
236
  color: #e8eaed;
@@ -251,7 +238,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
251
238
  }
252
239
  .bs-lp-input input::placeholder { color: #4b5563; }
253
240
  .bs-lp-input button {
254
- all: unset;
241
+ all: initial;
255
242
  padding: 0 14px;
256
243
  color: #6E9ED0;
257
244
  font-size: 11px;
@@ -268,7 +255,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
268
255
  border-top: 1px solid rgba(255,255,255,0.05);
269
256
  }
270
257
  .bs-lp-act {
271
- all: unset;
258
+ all: initial;
272
259
  padding: 5px 12px;
273
260
  border-radius: 6px;
274
261
  border: 1px solid rgba(255,255,255,0.08);
@@ -287,7 +274,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
287
274
 
288
275
  /* \u2500\u2500 New Pin Form \u2500\u2500 */
289
276
  .bs-lp-form {
290
- position: absolute;
277
+ position: fixed;
291
278
  width: min(300px, calc(100vw - 32px));
292
279
  background: #111318;
293
280
  border: 1px solid rgba(255,255,255,0.08);
@@ -314,7 +301,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
314
301
  .bs-lp-form input,
315
302
  .bs-lp-form textarea,
316
303
  .bs-lp-form select {
317
- all: unset;
304
+ all: initial;
318
305
  display: block;
319
306
  width: 100%;
320
307
  background: rgba(255,255,255,0.04);
@@ -345,7 +332,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
345
332
  margin-top: 12px;
346
333
  }
347
334
  .bs-lp-form-btns button {
348
- all: unset;
335
+ all: initial;
349
336
  flex: 1;
350
337
  padding: 9px;
351
338
  border-radius: 8px;
@@ -365,22 +352,22 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
365
352
  color: #9ca3af;
366
353
  }
367
354
  .bs-lp-form-cancel:hover { background: rgba(255,255,255,0.1); }
368
- `,MA.appendChild(e),document.body.appendChild(MA),document.body.appendChild(yA),yA.addEventListener("click",t=>{if(t.target.closest(".bs-lp-form"))return;let r=t.clientX+window.scrollX,n=t.clientY+window.scrollY,s=document.documentElement.scrollWidth||document.body.scrollWidth||1,a=document.documentElement.scrollHeight||document.body.scrollHeight||1,i=r/s*100,o=n/a*100,l=t.clientX,c=t.clientY;yA.style.pointerEvents="none";let B=document.elementFromPoint(t.clientX,t.clientY);yA.style.pointerEvents="",Vd(r,n,i,o,l,c,B)})}async function Ci(){let A=await ri(tn,window.location.pathname);A.success&&A.data&&(gA=A.data,vs(gA.map(e=>e.id)),ae())}async function Nd(){let A=await ai(tn);A.success&&A.data&&(wi=A.data)}function ae(){MA&&(MA.querySelectorAll(".bs-lp").forEach(A=>A.remove()),gA.forEach((A,e)=>{let t=document.createElement("div");t.className="bs-lp",t.dataset.pinId=A.id;let r=bi(A);t.style.left=r.left,t.style.top=r.top;let n=en[A.priority]||en.medium;t.innerHTML=`
369
- <div class="bs-lp-dot" style="background:${n};color:${n}">
370
- ${e+1}
355
+ `,_.appendChild(e),Pn.appendChild(_),document.body.appendChild($),$.addEventListener("click",t=>{let n=t.clientX,r=t.clientY,s=null;try{$.style.setProperty("pointer-events","none","important"),s=document.elementFromPoint(n,r)}finally{$.style.setProperty("pointer-events","auto","important")}let o=n+window.scrollX,i=r+window.scrollY,a,d;if(s&&s!==document.body&&s!==document.documentElement){let p=s.getBoundingClientRect();if(p.width>0&&p.height>0)a=(n-p.left)/p.width,d=(r-p.top)/p.height;else{let b=document.documentElement.scrollWidth||document.body.scrollWidth||1,y=document.documentElement.scrollHeight||document.body.scrollHeight||1;a=o/b*100,d=i/y*100}}else{let p=document.documentElement.scrollWidth||document.body.scrollWidth||1,b=document.documentElement.scrollHeight||document.body.scrollHeight||1;a=o/p*100,d=i/b*100}Ho(o,i,a,d,n,r,s)})}async function Gr(){let e=await Ar(Yt,window.location.pathname);e.success&&e.data&&(z=e.data,Ln(z.map(t=>t.id)),pe())}async function Mo(){let e=await Ir(Yt);e.success&&e.data&&(Xr=e.data)}function pe(){if(_){_.querySelectorAll(".bs-lp").forEach(e=>e.remove()),z.forEach((e,t)=>{let n=document.createElement("div");n.className="bs-lp",n.dataset.pinId=e.id;let r=Vr(e);n.style.left=r.left,n.style.top=r.top;let s=Xt[e.priority]||Xt.medium;n.innerHTML=`
356
+ <div class="bs-lp-dot" style="background:${s};color:${s}">
357
+ ${t+1}
371
358
  <span class="bs-lp-ring"></span>
372
359
  </div>
373
- `,t.addEventListener("click",s=>{s.stopPropagation(),Gd(A,t)}),MA.appendChild(t)}))}function fi(A){let e=typeof A=="string"?new Date(A).getTime():A;if(isNaN(e))return"";let t=Date.now()-e,r=Math.floor(t/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;let n=Math.floor(r/60);return n<24?`${n}h ago`:`${Math.floor(n/24)}d ago`}function pi(A){requestAnimationFrame(()=>{let e=A.getBoundingClientRect(),t=16;e.right>window.innerWidth-t&&(A.style.left="auto",A.style.right="34px"),e.left<t&&(A.style.left=`${t}px`,A.style.right="auto");let r=A.getBoundingClientRect();r.bottom>window.innerHeight-t&&(A.style.top="auto",A.style.bottom="0"),r.top<t&&(A.style.top=`${t}px`,A.style.bottom="auto")})}async function Gd(A,e){Qe();let t=document.createElement("div");t.className="bs-lp-popup";let r=_A(),n=r&&(r.role==="owner"||r.role==="admin"||r.id===A.createdBy),s=di[A.status]||di.open,a=en[A.priority]||en.medium,i=A.priority?A.priority.charAt(0).toUpperCase()+A.priority.slice(1):"Medium";t.innerHTML=`
360
+ `,n.addEventListener("click",o=>{o.stopPropagation(),Ao(e,n)}),_.appendChild(n)}),Po(),lt?.disconnect();for(let e of z){let t=$n(e.elementSelector,e.elementXPath);t&&lt?.observe(t)}}}function Wr(e){let t=typeof e=="string"?new Date(e).getTime():e;if(isNaN(t))return"";let n=Date.now()-t,r=Math.floor(n/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;let s=Math.floor(r/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}function _r(e){requestAnimationFrame(()=>{let t=e.getBoundingClientRect(),n=16;t.right>window.innerWidth-n&&(e.style.left="auto",e.style.right="34px"),t.left<n&&(e.style.left=`${n}px`,e.style.right="auto");let r=e.getBoundingClientRect();r.bottom>window.innerHeight-n&&(e.style.top="auto",e.style.bottom="0"),r.top<n&&(e.style.top=`${n}px`,e.style.bottom="auto")})}async function Ao(e,t){he();let n=document.createElement("div");n.className="bs-lp-popup";let r=ne(),s=r&&(r.role==="owner"||r.role==="admin"||r.id===e.createdBy),o=Fr[e.status]||Fr.open,i=Xt[e.priority]||Xt.medium,a=e.priority?e.priority.charAt(0).toUpperCase()+e.priority.slice(1):"Medium";n.innerHTML=`
374
361
  <div class="bs-lp-popup-hdr">
375
- <div class="bs-lp-popup-title">${se(A.title)}</div>
376
- <span class="bs-lp-popup-badge" style="background:${a}18;color:${a}">${i}</span>
377
- <span class="bs-lp-popup-badge" style="background:${s}18;color:${s}">${A.status.replace("_"," ")}</span>
362
+ <div class="bs-lp-popup-title">${de(e.title)}</div>
363
+ <span class="bs-lp-popup-badge" style="background:${i}18;color:${i}">${a}</span>
364
+ <span class="bs-lp-popup-badge" style="background:${o}18;color:${o}">${e.status.replace("_"," ")}</span>
378
365
  <button class="bs-lp-popup-close">&times;</button>
379
366
  </div>
380
- ${A.description?`<div class="bs-lp-popup-desc">${se(A.description)}</div>`:""}
367
+ ${e.description?`<div class="bs-lp-popup-desc">${de(e.description)}</div>`:""}
381
368
  <div class="bs-lp-popup-info">
382
- <span>${A.creatorName||"Unknown"} &middot; ${fi(A.createdAt)}</span>
383
- <span>${A.assigneeName?`\u2192 ${A.assigneeName}`:"Unassigned"}</span>
369
+ <span>${e.creatorName||"Unknown"} &middot; ${Wr(e.createdAt)}</span>
370
+ <span>${e.assigneeName?`\u2192 ${e.assigneeName}`:"Unassigned"}</span>
384
371
  </div>
385
372
  <div class="bs-lp-cmts" id="bs-lp-cmts">
386
373
  <div class="bs-lp-cmt" style="text-align:center;color:#4b5563;padding:12px">Loading comments...</div>
@@ -390,26 +377,26 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
390
377
  <button id="bs-lp-cmt-send">Send</button>
391
378
  </div>
392
379
  <div class="bs-lp-acts">
393
- ${A.status!=="resolved"?'<button class="bs-lp-act resolve" id="bs-lp-resolve">Resolve</button>':'<button class="bs-lp-act" id="bs-lp-reopen">Reopen</button>'}
394
- ${n?'<button class="bs-lp-act delete" id="bs-lp-delete">Delete</button>':""}
380
+ ${e.status!=="resolved"?'<button class="bs-lp-act resolve" id="bs-lp-resolve">Resolve</button>':'<button class="bs-lp-act" id="bs-lp-reopen">Reopen</button>'}
381
+ ${s?'<button class="bs-lp-act delete" id="bs-lp-delete">Delete</button>':""}
395
382
  </div>
396
- `,e.appendChild(t),qe=t,si(A.id).then(l=>{let c=t.querySelector("#bs-lp-cmts");if(!c)return;let B=l.success&&l.data?l.data:[];c.innerHTML=B.length?B.map(u=>`
383
+ `,t.appendChild(n),Ue=n,zr(e.id).then(p=>{let b=n.querySelector("#bs-lp-cmts");if(!b)return;let y=p.success&&p.data?p.data:[];b.innerHTML=y.length?y.map(w=>`
397
384
  <div class="bs-lp-cmt">
398
385
  <div class="bs-lp-cmt-top">
399
- <span class="bs-lp-cmt-author">${se(u.author?.name||u.authorName||"Unknown")}</span>
400
- <span class="bs-lp-cmt-time">${fi(new Date(u.createdAt).getTime())}</span>
386
+ <span class="bs-lp-cmt-author">${de(w.author?.name||w.authorName||"Unknown")}</span>
387
+ <span class="bs-lp-cmt-time">${Wr(new Date(w.createdAt).getTime())}</span>
401
388
  </div>
402
- <div class="bs-lp-cmt-body">${se(u.body)}</div>
389
+ <div class="bs-lp-cmt-body">${de(w.body)}</div>
403
390
  </div>
404
- `).join(""):"",pi(t)}),pi(t),t.querySelector(".bs-lp-popup-close").addEventListener("click",l=>{l.stopPropagation(),Qe()}),t.querySelector("#bs-lp-cmt-send")?.addEventListener("click",async()=>{let l=t.querySelector("#bs-lp-cmt-in"),c=l.value.trim();if(c)if(l.value="",navigator.onLine){let B=await bs(A.id,c);if(B.success&&B.data){let u=t.querySelector("#bs-lp-cmts"),f=B.data;u.innerHTML+=`
391
+ `).join(""):"",_r(n)}),_r(n),n.querySelector(".bs-lp-popup-close").addEventListener("click",p=>{p.stopPropagation(),he()}),n.querySelector("#bs-lp-cmt-send")?.addEventListener("click",async()=>{let p=n.querySelector("#bs-lp-cmt-in"),b=p.value.trim();if(b)if(p.value="",navigator.onLine){let y=await vn(e.id,b);if(y.success&&y.data){let w=n.querySelector("#bs-lp-cmts"),k=y.data;w.innerHTML+=`
405
392
  <div class="bs-lp-cmt">
406
393
  <div class="bs-lp-cmt-top">
407
- <span class="bs-lp-cmt-author">${se(f.authorName||r?.name||"You")}</span>
394
+ <span class="bs-lp-cmt-author">${de(k.authorName||r?.name||"You")}</span>
408
395
  <span class="bs-lp-cmt-time">just now</span>
409
396
  </div>
410
- <div class="bs-lp-cmt-body">${se(f.body)}</div>
397
+ <div class="bs-lp-cmt-body">${de(k.body)}</div>
411
398
  </div>
412
- `,u.scrollTop=u.scrollHeight}}else Cs({type:"create_comment",data:{pinId:A.id,body:c}})}),t.querySelector("#bs-lp-cmt-in")?.addEventListener("keydown",l=>{l.key==="Enter"&&t.querySelector("#bs-lp-cmt-send")?.dispatchEvent(new Event("click"))}),t.querySelector("#bs-lp-resolve")?.addEventListener("click",async()=>{await Yr(A.id,{status:"resolved"}),A.status="resolved",Qe(),ae()}),t.querySelector("#bs-lp-reopen")?.addEventListener("click",async()=>{await Yr(A.id,{status:"open"}),A.status="open",Qe(),ae()});let o=!1;t.querySelector("#bs-lp-delete")?.addEventListener("click",async()=>{o||confirm("Delete this pin?")&&(o=!0,await ni(A.id),gA=gA.filter(l=>l.id!==A.id),Qe(),ae())}),t.addEventListener("click",l=>l.stopPropagation())}function Qe(){qe?.remove(),qe=null}function mi(A){if(!A||A===document.body||A===document.documentElement)return"body";if(A.id)return`#${A.id}`;let e=A.tagName.toLowerCase();if(A.className&&typeof A.className=="string"){let r=A.className.trim().split(/\s+/).filter(n=>!n.startsWith("bs-")).slice(0,3);r.length&&(e+="."+r.join("."))}let t=A.parentElement;if(t&&t!==document.body){let r=Array.from(t.children).filter(n=>n.tagName===A.tagName);if(r.length>1){let n=r.indexOf(A);e+=`:nth-child(${n+1})`}return mi(t)+" > "+e}return e}function Pd(A){if(!A)return"";let e=[],t=A;for(;t&&t!==document.body;){let r=1,n=t.previousElementSibling;for(;n;)n.tagName===t.tagName&&r++,n=n.previousElementSibling;e.unshift(`${t.tagName.toLowerCase()}[${r}]`),t=t.parentElement}return"/body/"+e.join("/")}function Vd(A,e,t,r,n,s,a){Qe(),yA?.querySelectorAll(".bs-lp-form").forEach(f=>f.remove());let i=document.createElement("div");i.className="bs-lp-form";let o=Math.min(300,window.innerWidth-32),l=16,c=n+l,B=s-8;c+o>window.innerWidth-l&&(c=n-o-l),c<l&&(c=l),i.style.left=`${c}px`,i.style.top=`${B}px`,requestAnimationFrame(()=>{let f=i.getBoundingClientRect();f.bottom>window.innerHeight-l&&(i.style.top=`${Math.max(l,s-f.height)}px`)});let u=wi.filter(f=>f.userId!==_A()?.id).map(f=>`<option value="${f.userId}">${se(f.name)}</option>`).join("");i.innerHTML=`
399
+ `,w.scrollTop=w.scrollHeight}}else kn({type:"create_comment",data:{pinId:e.id,body:b}})}),n.querySelector("#bs-lp-cmt-in")?.addEventListener("keydown",p=>{p.key==="Enter"&&n.querySelector("#bs-lp-cmt-send")?.dispatchEvent(new Event("click"))}),n.querySelector("#bs-lp-resolve")?.addEventListener("click",async()=>{await Ot(e.id,{status:"resolved"}),e.status="resolved",he(),pe()}),n.querySelector("#bs-lp-reopen")?.addEventListener("click",async()=>{await Ot(e.id,{status:"open"}),e.status="open",he(),pe()});let d=!1;n.querySelector("#bs-lp-delete")?.addEventListener("click",async()=>{d||confirm("Delete this pin?")&&(d=!0,await Rr(e.id),z=z.filter(p=>p.id!==e.id),he(),pe())}),n.addEventListener("click",p=>p.stopPropagation())}function he(){Ue?.remove(),Ue=null}var Cn=e=>e?typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1"):"";function Ro(e){if(!e||e===document.body||e===document.documentElement)return["body"];let t=[];for(let r of["data-testid","data-test-id","data-cy"]){let s=e.getAttribute(r);if(s){t.push(`[${r}="${Cn(s)}"]`);break}}if(e.id)try{let r=`#${Cn(e.id)}`;document.querySelectorAll(r).length===1&&t.push(r)}catch{}let n=e.getAttribute("aria-label");if(n){let r=`${e.tagName.toLowerCase()}[aria-label="${Cn(n)}"]`;try{document.querySelectorAll(r).length===1&&t.push(r)}catch{}}return t.push(zo(e)),t}function zo(e){let t=[],n=e;for(;n&&n!==document.body&&n!==document.documentElement;){let r=n,s=r.parentElement;if(!s)break;let o=r.tagName.toLowerCase(),i=Array.from(s.children).filter(a=>a.tagName===r.tagName);i.length>1&&(o+=`:nth-of-type(${i.indexOf(r)+1})`),t.unshift(o),n=s}return t.join(" > ")}function Io(e){if(!e)return"";let t=[],n=e;for(;n&&n!==document.body;){let r=1,s=n.previousElementSibling;for(;s;)s.tagName===n.tagName&&r++,s=s.previousElementSibling;t.unshift(`${n.tagName.toLowerCase()}[${r}]`),n=n.parentElement}return"/body/"+t.join("/")}function Ho(e,t,n,r,s,o,i){he(),_?.querySelectorAll(".bs-lp-form").forEach(k=>k.remove());let a=document.createElement("div");a.className="bs-lp-form";let d=Math.min(300,window.innerWidth-32),p=16,b=s+p,y=o-8;b+d>window.innerWidth-p&&(b=s-d-p),b<p&&(b=p),a.style.left=`${b}px`,a.style.top=`${y}px`,requestAnimationFrame(()=>{let k=a.getBoundingClientRect();k.bottom>window.innerHeight-p&&(a.style.top=`${Math.max(p,o-k.height)}px`)});let w=Xr.filter(k=>k.userId!==ne()?.id).map(k=>`<option value="${k.userId}">${de(k.name)}</option>`).join("");a.innerHTML=`
413
400
  <label class="bs-lp-form-label">Title *</label>
414
401
  <input type="text" id="bs-np-title" name="pin-title" placeholder="What's the issue?" autofocus />
415
402
  <label class="bs-lp-form-label">Description</label>
@@ -429,29 +416,43 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
429
416
  <option value="content">Content</option>
430
417
  <option value="other" selected>Other</option>
431
418
  </select>
432
- ${u?`
419
+ ${w?`
433
420
  <label class="bs-lp-form-label">Assign to</label>
434
421
  <select id="bs-np-assignee" name="pin-assignee">
435
422
  <option value="">Unassigned</option>
436
- ${u}
423
+ ${w}
437
424
  </select>
438
425
  `:""}
439
426
  <div class="bs-lp-form-btns">
440
427
  <button class="bs-lp-form-cancel" id="bs-np-cancel">Cancel</button>
441
428
  <button class="bs-lp-form-submit" id="bs-np-submit">Create Pin</button>
442
429
  </div>
443
- `,yA.appendChild(i),i.addEventListener("click",f=>f.stopPropagation()),i.querySelector("#bs-np-cancel").addEventListener("click",()=>i.remove()),i.querySelector("#bs-np-submit").addEventListener("click",async()=>{let f=i.querySelector("#bs-np-title").value.trim();if(!f){i.querySelector("#bs-np-title").style.borderColor="#ef4444";return}let p=i.querySelector("#bs-np-submit");p.textContent="Creating...",p.style.opacity="0.6",p.style.pointerEvents="none";let w=i.querySelector("#bs-np-desc").value.trim(),y=i.querySelector("#bs-np-priority").value,b=i.querySelector("#bs-np-category").value,k=i.querySelector("#bs-np-assignee")?.value||void 0,K=mi(a),H=Pd(a),Q=jA().slice(-20).map(M=>`[${M.level}] ${M.args.join(" ")}`),C=Ae().slice(-10).map(M=>`${M.message} at ${M.source}:${M.lineno}`),S=le().slice(-10).map(M=>`${M.method} ${M.url} \u2192 ${M.status}`),L={projectId:tn,pageUrl:window.location.href,pathname:window.location.pathname,elementSelector:K,elementXPath:H,xPercent:t,yPercent:r,pageX:A,pageY:e,title:f,description:w,priority:y,category:b,assigneeId:k,browserInfo:navigator.userAgent,screenSize:`${screen.width}x${screen.height}`,viewportSize:`${window.innerWidth}x${window.innerHeight}`,devicePixelRatio:window.devicePixelRatio,consoleLogs:Q,networkErrors:S,jsErrors:C};if(i.remove(),navigator.onLine){let M=await hs(L);M.success&&M.data&&(gA.push(M.data),ae())}else Cs({type:"create_pin",data:L}),gA.push({...L,id:"local-"+Date.now(),orgId:"",status:"open",tags:[],createdById:_A()?.id||"",creatorName:_A()?.name||"",commentCount:0,createdAt:Date.now(),updatedAt:Date.now()}),ae()}),setTimeout(()=>i.querySelector("#bs-np-title")?.focus(),50)}function _d(){Nt("pin:created",A=>{let e=A.data;e.pathname===window.location.pathname&&(gA.find(t=>t.id===e.id)||(gA.push(e),vs(gA.map(t=>t.id)),ae()))}),Nt("pin:updated",A=>{let e=A.data,t=gA.findIndex(r=>r.id===e.id);t>=0&&(gA[t]={...gA[t],...e},ae())}),Nt("pin:deleted",A=>{let{id:e}=A.data;gA=gA.filter(t=>t.id!==e),Qe(),ae()}),Nt("comment:created",A=>{let e=A.data;if(qe){let t=qe.querySelector("#bs-lp-cmts");t&&(t.innerHTML+=`
430
+ `,_.appendChild(a),a.addEventListener("click",k=>k.stopPropagation()),a.querySelector("#bs-np-cancel").addEventListener("click",()=>a.remove()),a.querySelector("#bs-np-submit").addEventListener("click",async()=>{let k=a.querySelector("#bs-np-title").value.trim();if(!k){a.querySelector("#bs-np-title").style.borderColor="#ef4444";return}let me=a.querySelector("#bs-np-submit");me.textContent="Creating...",me.style.opacity="0.6",me.style.pointerEvents="none";let Ye=a.querySelector("#bs-np-desc").value.trim(),D=a.querySelector("#bs-np-priority").value,B=a.querySelector("#bs-np-category").value,gt=a.querySelector("#bs-np-assignee")?.value||void 0,re=JSON.stringify(Ro(i)),xe=Io(i),ve=le().slice(-20).map(q=>`[${q.level}] ${q.args.join(" ")}`),v=ce().slice(-10).map(q=>`${q.message} at ${q.source}:${q.lineno}`),ee=fe().slice(-10).map(q=>`${q.method} ${q.url} \u2192 ${q.status}`),Le={projectId:Yt,pageUrl:window.location.href,pathname:window.location.pathname,elementSelector:re,elementXPath:xe,xPercent:n,yPercent:r,pageX:e,pageY:t,title:k,description:Ye,priority:D,category:B,assigneeId:gt,browserInfo:navigator.userAgent,screenSize:`${screen.width}x${screen.height}`,viewportSize:`${window.innerWidth}x${window.innerHeight}`,devicePixelRatio:window.devicePixelRatio,consoleLogs:ve,networkErrors:ee,jsErrors:v};if(a.remove(),navigator.onLine){let q=await xn(Le);q.success&&q.data&&(z.push(q.data),pe())}else kn({type:"create_pin",data:Le}),z.push({...Le,id:"local-"+Date.now(),orgId:"",status:"open",tags:[],createdById:ne()?.id||"",creatorName:ne()?.name||"",commentCount:0,createdAt:Date.now(),updatedAt:Date.now()}),pe()}),setTimeout(()=>a.querySelector("#bs-np-title")?.focus(),50)}function Do(){at("pin:created",e=>{let t=e.data;t.pathname===window.location.pathname&&(z.find(n=>n.id===t.id)||(z.push(t),Ln(z.map(n=>n.id)),pe()))}),at("pin:updated",e=>{let t=e.data,n=z.findIndex(r=>r.id===t.id);n>=0&&(z[n]={...z[n],...t},pe())}),at("pin:deleted",e=>{let{id:t}=e.data;z=z.filter(n=>n.id!==t),he(),pe()}),at("comment:created",e=>{let t=e.data;if(Ue){let n=Ue.querySelector("#bs-lp-cmts");n&&(n.innerHTML+=`
444
431
  <div class="bs-lp-cmt">
445
432
  <div class="bs-lp-cmt-top">
446
- <span class="bs-lp-cmt-author">${se(e.author?.name||"Someone")}</span>
433
+ <span class="bs-lp-cmt-author">${de(t.author?.name||"Someone")}</span>
447
434
  <span class="bs-lp-cmt-time">just now</span>
448
435
  </div>
449
- <div class="bs-lp-cmt-body">${se(e.body)}</div>
436
+ <div class="bs-lp-cmt-body">${de(t.body)}</div>
450
437
  </div>
451
- `,t.scrollTop=t.scrollHeight)}})}function Xd(){let A=window.location.pathname,e=()=>{window.location.pathname!==A&&(A=window.location.pathname,window.location.href,Ci())},t=history.pushState,r=history.replaceState;history.pushState=function(...n){t.apply(this,n),e()},history.replaceState=function(...n){r.apply(this,n),e()},window.addEventListener("popstate",e)}function se(A){let e=document.createElement("div");return e.textContent=A,e.innerHTML}var EA,oA=null,rA=null,I=null,KA=null,Vt=null,_t=null,OA=!1,nn=!1,At="report";var Ce=ii(),xe=li(),nA={bug:'<svg width="28" height="28" viewBox="55 38 60 105" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M95.8 44h-29c-3 0-5.4 2.4-5.4 5.4v29c0 3 2.4 5.4 5.4 5.4h19.5c13 0 23.5-10.5 23.5-23.5v-2.8c0-7.5-6-13.5-13.5-13.5h-.5zm-6.2 28.2H74.8V57.4h14.8c5.8 0 10.4 4.7 10.4 10.4s-4.7 10.4-10.4 10.4z" fill="rgba(255,255,255,0.85)"/><path d="M100.4 96h-33.6c-3 0-5.4 2.4-5.4 5.4v33.6c0 3 2.4 5.4 5.4 5.4h22c15 0 27-12 27-27v-3.9c0-7.5-6-13.5-13.5-13.5h-1.9zm-7.8 32.2H74.8v-20h17.8c6.7 0 12.2 5.5 12.2 12.2 0 4.3-3.5 7.8-7.8 7.8h-4.6z" fill="rgba(255,255,255,1)"/></svg>',x:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',cam:'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>',check:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round"><polyline points="20 6 9 17 4 12"/></svg>',report:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg>',console:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>',network:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',ctx:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>',settings:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg>',history:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>',pin:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>',sun:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>',moon:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>',keyboard:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><rect x="2" y="4" width="20" height="16" rx="2"/><line x1="6" y1="8" x2="6" y2="8"/><line x1="10" y1="8" x2="10" y2="8"/><line x1="14" y1="8" x2="14" y2="8"/><line x1="18" y1="8" x2="18" y2="8"/><line x1="8" y1="12" x2="16" y2="12"/><line x1="6" y1="16" x2="18" y2="16"/></svg>'},Jd=`
438
+ `,n.scrollTop=n.scrollHeight)}})}function Bo(){let e=window.location.pathname,t=()=>{window.location.pathname!==e&&(e=window.location.pathname,window.location.href,Gr())},n=history.pushState,r=history.replaceState;history.pushState=function(...s){n.apply(this,s),t()},history.replaceState=function(...s){r.apply(this,s),t()},window.addEventListener("popstate",t)}function de(e){let t=document.createElement("div");return t.textContent=e,t.innerHTML}var V,O=null,I=null,h=null,G=null,dt=null,pt=null,oe=null,Q=!1,Jt=!1,We="report";var ye=Br(),Ee=Or(),H={bug:'<svg width="28" height="28" viewBox="55 38 60 105" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M95.8 44h-29c-3 0-5.4 2.4-5.4 5.4v29c0 3 2.4 5.4 5.4 5.4h19.5c13 0 23.5-10.5 23.5-23.5v-2.8c0-7.5-6-13.5-13.5-13.5h-.5zm-6.2 28.2H74.8V57.4h14.8c5.8 0 10.4 4.7 10.4 10.4s-4.7 10.4-10.4 10.4z" fill="rgba(255,255,255,0.85)"/><path d="M100.4 96h-33.6c-3 0-5.4 2.4-5.4 5.4v33.6c0 3 2.4 5.4 5.4 5.4h22c15 0 27-12 27-27v-3.9c0-7.5-6-13.5-13.5-13.5h-1.9zm-7.8 32.2H74.8v-20h17.8c6.7 0 12.2 5.5 12.2 12.2 0 4.3-3.5 7.8-7.8 7.8h-4.6z" fill="rgba(255,255,255,1)"/></svg>',x:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',cam:'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>',check:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round"><polyline points="20 6 9 17 4 12"/></svg>',report:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg>',console:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>',network:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',ctx:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>',settings:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg>',history:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>',pin:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>',sun:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>',moon:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>',keyboard:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><rect x="2" y="4" width="20" height="16" rx="2"/><line x1="6" y1="8" x2="6" y2="8"/><line x1="10" y1="8" x2="10" y2="8"/><line x1="14" y1="8" x2="14" y2="8"/><line x1="18" y1="8" x2="18" y2="8"/><line x1="8" y1="12" x2="16" y2="12"/><line x1="6" y1="16" x2="18" y2="16"/></svg>'},Oo=`
439
+ /* \u2500\u2500 Shadow Boundary Reset \u2500\u2500
440
+ * Cuts ALL inherited CSS from host page (color, font, line-height, etc.)
441
+ * Every element below must declare its own styles explicitly. */
442
+ :host {
443
+ all: initial !important;
444
+ display: block !important;
445
+ position: fixed !important;
446
+ inset: 0 !important;
447
+ pointer-events: none !important;
448
+ z-index: 2147483640 !important;
449
+ visibility: visible !important;
450
+ }
451
+
452
452
  /* \u2500\u2500 FAB \u2500\u2500 */
453
453
  .bs-fab {
454
- all: unset;
454
+ all: initial;
455
+ pointer-events: auto;
455
456
  position: fixed;
456
457
  bottom: 24px;
457
458
  z-index: 2147483647;
@@ -515,6 +516,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
515
516
 
516
517
  /* \u2500\u2500 Quick Action Toolbar \u2500\u2500 */
517
518
  .bs-toolbar {
519
+ pointer-events: auto;
518
520
  position: fixed;
519
521
  z-index: 2147483646;
520
522
  display: flex;
@@ -532,7 +534,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
532
534
  pointer-events: all;
533
535
  }
534
536
  .bs-toolbar-btn {
535
- all: unset;
537
+ all: initial;
536
538
  width: 40px;
537
539
  height: 40px;
538
540
  border-radius: var(--bs-radius-sm);
@@ -574,6 +576,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
574
576
 
575
577
  /* \u2500\u2500 Backdrop \u2500\u2500 */
576
578
  .bs-backdrop {
579
+ pointer-events: auto;
577
580
  position: fixed;
578
581
  inset: 0;
579
582
  z-index: 2147483644;
@@ -590,6 +593,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
590
593
 
591
594
  /* \u2500\u2500 Modal \u2500\u2500 */
592
595
  .bs-modal {
596
+ pointer-events: auto;
593
597
  position: fixed;
594
598
  z-index: 2147483645;
595
599
  top: 50%;
@@ -646,7 +650,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
646
650
  gap: 8px;
647
651
  }
648
652
  .bs-pin-toggle {
649
- all: unset;
653
+ all: initial;
650
654
  cursor: pointer;
651
655
  padding: 5px 10px;
652
656
  border-radius: var(--bs-radius-sm);
@@ -668,7 +672,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
668
672
  -webkit-text-fill-color: #fff;
669
673
  }
670
674
  .bs-hdr-icon {
671
- all: unset;
675
+ all: initial;
672
676
  cursor: pointer;
673
677
  display: flex;
674
678
  align-items: center;
@@ -761,7 +765,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
761
765
  text-align: center;
762
766
  }
763
767
  .bs-login-logout {
764
- all: unset;
768
+ all: initial;
765
769
  cursor: pointer;
766
770
  font-size: 11px;
767
771
  color: var(--bs-muted);
@@ -772,7 +776,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
772
776
  }
773
777
  .bs-login-logout:hover { color: var(--bs-red); }
774
778
  .bs-close-btn {
775
- all: unset;
779
+ all: initial;
776
780
  cursor: pointer;
777
781
  color: var(--bs-muted);
778
782
  padding: 6px;
@@ -795,7 +799,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
795
799
  }
796
800
  .bs-tabs::-webkit-scrollbar { display: none; }
797
801
  .bs-tab {
798
- all: unset;
802
+ all: initial;
799
803
  cursor: pointer;
800
804
  display: flex;
801
805
  align-items: center;
@@ -899,7 +903,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
899
903
  /* \u2500\u2500 Severity \u2500\u2500 */
900
904
  .bs-sev-row { display: flex; gap: 8px; }
901
905
  .bs-sev-btn {
902
- all: unset;
906
+ all: initial;
903
907
  flex: 1;
904
908
  padding: 10px 0;
905
909
  border-radius: var(--bs-radius-sm);
@@ -966,7 +970,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
966
970
  /* \u2500\u2500 Category Chips \u2500\u2500 */
967
971
  .bs-cat-row { display: flex; flex-wrap: wrap; gap: 6px; }
968
972
  .bs-cat-btn {
969
- all: unset;
973
+ all: initial;
970
974
  padding: 7px 14px;
971
975
  border-radius: 20px;
972
976
  font-size: 12px;
@@ -1082,7 +1086,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1082
1086
 
1083
1087
  /* \u2500\u2500 Submit \u2500\u2500 */
1084
1088
  .bs-submit-btn {
1085
- all: unset;
1089
+ all: initial;
1086
1090
  width: 100%;
1087
1091
  padding: 14px;
1088
1092
  background: linear-gradient(135deg, var(--bs-fab1), var(--bs-fab2));
@@ -1270,7 +1274,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1270
1274
  .bs-ann-toolbar { display: flex; gap: 2px; padding: 6px 8px; background: var(--bs-bg2); border-top: 1px solid var(--bs-border); align-items: center; flex-wrap: wrap; }
1271
1275
  .bs-ann-sep { width: 1px; height: 20px; background: var(--bs-border); margin: 0 4px; flex-shrink: 0; }
1272
1276
  .bs-ann-btn {
1273
- all: unset; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
1277
+ all: initial; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
1274
1278
  border-radius: 6px; cursor: pointer; color: var(--bs-muted); transition: all 0.15s; font-size: 14px;
1275
1279
  }
1276
1280
  .bs-ann-btn:hover { background: var(--bs-bg3); color: var(--bs-text); }
@@ -1293,7 +1297,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1293
1297
  .bs-ann-zoom-label { font-size: 10px; font-weight: 600; color: var(--bs-muted); min-width: 32px; text-align: center; }
1294
1298
  .bs-ann-right { margin-left: auto; display: flex; gap: 2px; align-items: center; }
1295
1299
  .bs-ann-clr-btn {
1296
- all: unset; padding: 3px 10px; border: 1px solid var(--bs-border); border-radius: 6px;
1300
+ all: initial; padding: 3px 10px; border: 1px solid var(--bs-border); border-radius: 6px;
1297
1301
  color: var(--bs-muted); font-size: 10px; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s;
1298
1302
  }
1299
1303
  .bs-ann-clr-btn:hover { color: var(--bs-red); border-color: color-mix(in srgb, var(--bs-red) 30%, transparent); }
@@ -1353,7 +1357,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1353
1357
  .bs-ann-pin-note { word-break: break-word; line-height: 1.4; }
1354
1358
  .bs-ann-pin-loc { font-size: 10px; color: var(--bs-muted); margin-top: 2px; }
1355
1359
  .bs-ann-pin-del {
1356
- all: unset; cursor: pointer; color: var(--bs-muted); font-size: 14px;
1360
+ all: initial; cursor: pointer; color: var(--bs-muted); font-size: 14px;
1357
1361
  padding: 2px 4px; border-radius: 4px; transition: color 0.15s;
1358
1362
  flex-shrink: 0;
1359
1363
  }
@@ -1382,7 +1386,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1382
1386
  }
1383
1387
  .bs-hist-actions { display: flex; gap: 4px; flex-shrink: 0; }
1384
1388
  .bs-hist-btn {
1385
- all: unset;
1389
+ all: initial;
1386
1390
  width: 26px; height: 26px;
1387
1391
  display: flex; align-items: center; justify-content: center;
1388
1392
  border-radius: 6px;
@@ -1425,21 +1429,21 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1425
1429
  animation: bs-slideUp 0.2s ease;
1426
1430
  }
1427
1431
  .bs-hist-confirm-yes {
1428
- all: unset; padding: 4px 12px; background: var(--bs-red); color: #fff; border-radius: 6px;
1432
+ all: initial; padding: 4px 12px; background: var(--bs-red); color: #fff; border-radius: 6px;
1429
1433
  font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
1430
1434
  }
1431
1435
  .bs-hist-confirm-no {
1432
- all: unset; padding: 4px 12px; border: 1px solid var(--bs-border); border-radius: 6px;
1436
+ all: initial; padding: 4px 12px; border: 1px solid var(--bs-border); border-radius: 6px;
1433
1437
  font-size: 11px; font-weight: 600; cursor: pointer; color: var(--bs-muted); font-family: 'Inter', sans-serif;
1434
1438
  }
1435
1439
  .bs-hist-edit-wrap { margin-bottom: 10px; animation: bs-slideUp 0.2s ease; }
1436
1440
  .bs-hist-edit-row { display: flex; gap: 6px; margin-top: 8px; }
1437
1441
  .bs-hist-save {
1438
- all: unset; padding: 6px 16px; background: linear-gradient(135deg, var(--bs-fab1), var(--bs-fab2));
1442
+ all: initial; padding: 6px 16px; background: linear-gradient(135deg, var(--bs-fab1), var(--bs-fab2));
1439
1443
  color: #fff; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
1440
1444
  }
1441
1445
  .bs-hist-cancel {
1442
- all: unset; padding: 6px 16px; border: 1px solid var(--bs-border); border-radius: 6px;
1446
+ all: initial; padding: 6px 16px; border: 1px solid var(--bs-border); border-radius: 6px;
1443
1447
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--bs-muted); font-family: 'Inter', sans-serif;
1444
1448
  }
1445
1449
 
@@ -1463,7 +1467,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1463
1467
  gap: 8px;
1464
1468
  }
1465
1469
  .bs-set-card {
1466
- all: unset;
1470
+ all: initial;
1467
1471
  cursor: pointer;
1468
1472
  border: 2px solid var(--bs-border);
1469
1473
  border-radius: var(--bs-radius-sm);
@@ -1505,7 +1509,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1505
1509
  gap: 8px;
1506
1510
  }
1507
1511
  .bs-set-ly {
1508
- all: unset;
1512
+ all: initial;
1509
1513
  cursor: pointer;
1510
1514
  border: 2px solid var(--bs-border);
1511
1515
  border-radius: var(--bs-radius-sm);
@@ -1517,7 +1521,7 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1517
1521
  .bs-set-ly.bs-picked { border-color: var(--bs-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bs-accent) 25%, transparent); }
1518
1522
  .bs-set-ly-name { font-size: 12px; font-weight: 600; color: var(--bs-text); margin-bottom: 2px; }
1519
1523
  .bs-set-ly-desc { font-size: 10px; color: var(--bs-muted); }
1520
- `;function Wd(){return`
1524
+ `;function No(){return`
1521
1525
  <div class="bs-login-form">
1522
1526
  <div class="bs-login-logo">BugStash</div>
1523
1527
  <div class="bs-login-subtitle">Sign in to report bugs & collaborate</div>
@@ -1527,11 +1531,11 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1527
1531
  <button class="bs-login-btn" id="bs-login-submit">Sign In</button>
1528
1532
  <div style="font-size:11px;color:var(--bs-muted);margin-top:4px">Contact your admin for an account</div>
1529
1533
  </div>
1530
- `}function AA(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Yd(A){let e=Math.floor((Date.now()-A)/1e3);return e<5?"now":e<60?`${e}s ago`:e<3600?`${Math.floor(e/60)}m ago`:new Date(A).toLocaleTimeString()}function vi(A){return new Date(A).toLocaleTimeString("en",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}var Fi="bugstash_history";function et(){try{return JSON.parse(localStorage.getItem(Fi)||"[]")}catch{return[]}}function Es(A){try{localStorage.setItem(Fi,JSON.stringify(A))}catch{}}function zd(A){let e=et(),t=Date.now();e.unshift({...A,id:t}),e.length>50&&(e.length=50),Es(e)}function $d(A){let e=et().filter(t=>t.id!==A);Es(e)}function Zd(A,e){let t=et(),r=t.findIndex(n=>n.id===A);r>=0&&(t[r]={...t[r],...e},Es(t))}function yi(){return{url:window.location.href,userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookiesEnabled:navigator.cookieEnabled,online:navigator.onLine,screenWidth:screen.width,screenHeight:screen.height,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,devicePixelRatio:window.devicePixelRatio,timestamp:Date.now(),environment:EA.environment??"development",commitHash:EA.commitHash,user:EA.user}}function Ei(){let A=Ae(),e=jA(),t=Se(),r=le(),n=Ie(),s=Te(),a=e.filter(l=>l.level==="error"),i="low";A.length>=3||r.length>=3?i="critical":A.length>=1||r.length>=2?i="high":(a.length>0||r.length>=1)&&(i="medium");let o=[];return A.length&&o.push("has-errors"),r.length&&o.push("network-failures"),a.length&&o.push("console-errors"),s?.pageLoadTime&&s.pageLoadTime>3e3&&o.push("slow-load"),s?.cumulativeLayoutShift&&s.cumulativeLayoutShift>.25&&o.push("layout-shift"),navigator.onLine||o.push("offline"),window.innerWidth<768&&o.push("mobile"),{severity:i,tags:o,counts:{logs:e.length,network:t.length,failedNet:r.length,errors:A.length,crumbs:n.length}}}function xi(){let A=Ei(),e=[{id:"ui",label:"UI"},{id:"functionality",label:"Feature"},{id:"performance",label:"Speed"},{id:"crash",label:"Crash"},{id:"security",label:"Security"},{id:"other",label:"Other"}],t=A.counts.errors>0||A.counts.failedNet>0;return`<div class="bs-view">
1534
+ `}function A(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function jo(e){let t=Math.floor((Date.now()-e)/1e3);return t<5?"now":t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:new Date(e).toLocaleTimeString()}function Zr(e){return new Date(e).toLocaleTimeString("en",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}var es="bugstash_history";function _e(){try{return JSON.parse(localStorage.getItem(es)||"[]")}catch{return[]}}function An(e){try{localStorage.setItem(es,JSON.stringify(e))}catch{}}function qo(e){let t=_e(),n=Date.now();t.unshift({...e,id:n}),t.length>50&&(t.length=50),An(t)}function Uo(e){let t=_e().filter(n=>n.id!==e);An(t)}function Fo(e,t){let n=_e(),r=n.findIndex(s=>s.id===e);r>=0&&(n[r]={...n[r],...t},An(n))}function ts(){return{url:window.location.href,userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookiesEnabled:navigator.cookieEnabled,online:navigator.onLine,screenWidth:screen.width,screenHeight:screen.height,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,devicePixelRatio:window.devicePixelRatio,timestamp:Date.now(),environment:V.environment??"development",commitHash:V.commitHash,user:V.user}}function ns(){let e=ce(),t=le(),n=Me(),r=fe(),s=Te(),o=Ae(),i=t.filter(p=>p.level==="error"),a="low";e.length>=3||r.length>=3?a="critical":e.length>=1||r.length>=2?a="high":(i.length>0||r.length>=1)&&(a="medium");let d=[];return e.length&&d.push("has-errors"),r.length&&d.push("network-failures"),i.length&&d.push("console-errors"),o?.pageLoadTime&&o.pageLoadTime>3e3&&d.push("slow-load"),o?.cumulativeLayoutShift&&o.cumulativeLayoutShift>.25&&d.push("layout-shift"),navigator.onLine||d.push("offline"),window.innerWidth<768&&d.push("mobile"),{severity:a,tags:d,counts:{logs:t.length,network:n.length,failedNet:r.length,errors:e.length,crumbs:s.length}}}function rs(){let e=ns(),t=[{id:"ui",label:"UI"},{id:"functionality",label:"Feature"},{id:"performance",label:"Speed"},{id:"crash",label:"Crash"},{id:"security",label:"Security"},{id:"other",label:"Other"}],n=e.counts.errors>0||e.counts.failedNet>0;return`<div class="bs-view">
1531
1535
  <form data-bs-form>
1532
- <div class="bs-report-summary${t?" bs-alert":A.counts.logs>0?" bs-has":""}">
1536
+ <div class="bs-report-summary${n?" bs-alert":e.counts.logs>0?" bs-has":""}">
1533
1537
  <div class="bs-report-summary-left">
1534
- ${t?`<div class="bs-report-summary-icon bs-warn">!</div><span>${A.counts.errors} error${A.counts.errors!==1?"s":""}, ${A.counts.failedNet} failed request${A.counts.failedNet!==1?"s":""} detected</span>`:`<div class="bs-report-summary-icon">${nA.check}</div><span>Auto-collecting ${A.counts.logs} logs, ${A.counts.network} requests, ${A.counts.crumbs} actions</span>`}
1538
+ ${n?`<div class="bs-report-summary-icon bs-warn">!</div><span>${e.counts.errors} error${e.counts.errors!==1?"s":""}, ${e.counts.failedNet} failed request${e.counts.failedNet!==1?"s":""} detected</span>`:`<div class="bs-report-summary-icon">${H.check}</div><span>Auto-collecting ${e.counts.logs} logs, ${e.counts.network} requests, ${e.counts.crumbs} actions</span>`}
1535
1539
  </div>
1536
1540
  </div>
1537
1541
  <div class="bs-field">
@@ -1544,21 +1548,21 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1544
1548
  <div class="bs-field-label">Category</div>
1545
1549
  <input type="hidden" name="category" value="functionality" />
1546
1550
  <div class="bs-cat-row">
1547
- ${e.map(n=>`<button type="button" class="bs-cat-btn${n.id==="functionality"?" bs-picked":""}" data-cat="${n.id}">${n.label}</button>`).join("")}
1551
+ ${t.map(s=>`<button type="button" class="bs-cat-btn${s.id==="functionality"?" bs-picked":""}" data-cat="${s.id}">${s.label}</button>`).join("")}
1548
1552
  </div>
1549
1553
  </div>
1550
1554
  <div class="bs-field">
1551
1555
  <div class="bs-field-label">Severity</div>
1552
- <input type="hidden" name="severity" value="${A.severity}" />
1556
+ <input type="hidden" name="severity" value="${e.severity}" />
1553
1557
  <div class="bs-sev-row">
1554
- <button type="button" class="bs-sev-btn bs-sev-low${A.severity==="low"?" bs-picked":""}" data-sev="low">Low</button>
1555
- <button type="button" class="bs-sev-btn bs-sev-medium${A.severity==="medium"?" bs-picked":""}" data-sev="medium">Med</button>
1556
- <button type="button" class="bs-sev-btn bs-sev-high${A.severity==="high"?" bs-picked":""}" data-sev="high">High</button>
1557
- <button type="button" class="bs-sev-btn bs-sev-critical${A.severity==="critical"?" bs-picked":""}" data-sev="critical">Critical</button>
1558
+ <button type="button" class="bs-sev-btn bs-sev-low${e.severity==="low"?" bs-picked":""}" data-sev="low">Low</button>
1559
+ <button type="button" class="bs-sev-btn bs-sev-medium${e.severity==="medium"?" bs-picked":""}" data-sev="medium">Med</button>
1560
+ <button type="button" class="bs-sev-btn bs-sev-high${e.severity==="high"?" bs-picked":""}" data-sev="high">High</button>
1561
+ <button type="button" class="bs-sev-btn bs-sev-critical${e.severity==="critical"?" bs-picked":""}" data-sev="critical">Critical</button>
1558
1562
  </div>
1559
1563
  </div>
1560
1564
  <div class="bs-shot-area" data-bs-screenshot>
1561
- <div class="bs-shot-icon">${nA.cam}</div>
1565
+ <div class="bs-shot-icon">${H.cam}</div>
1562
1566
  <div class="bs-shot-text">
1563
1567
  <div class="bs-shot-title" data-bs-shot-title>Attach screenshot</div>
1564
1568
  <div class="bs-shot-sub" data-bs-shot-sub>Capture & annotate the current view</div>
@@ -1567,97 +1571,101 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1567
1571
  <div data-bs-annotate></div>
1568
1572
  <button type="submit" class="bs-submit-btn">Submit Report</button>
1569
1573
  </form>
1570
- </div>`}function qd(){let A=jA(),e={error:"bs-le",warn:"bs-lw",log:"bs-ll",info:"bs-li",debug:"bs-ld"};return A.length?`<div class="bs-view">${A.slice().reverse().map(t=>`<div class="bs-log"><span class="bs-log-lv ${e[t.level]||"bs-ll"}">${t.level}</span><span class="bs-log-m">${AA(t.args.join(" ")).slice(0,500)}</span><span class="bs-log-t">${vi(t.timestamp)}</span></div>`).join("")}</div>`:'<div class="bs-view"><div class="bs-empty"><p>No console logs captured yet.<br>Use the app \u2014 logs will appear here automatically.</p></div></div>'}function jd(){let A=Se();return A.length?`<div class="bs-view">${A.slice().reverse().map(e=>`<div class="bs-net"><span class="bs-net-m">${e.method}</span><span class="bs-net-s ${e.failed?"bs-fail":"bs-ok"}">${e.status||"ERR"}</span><span class="bs-net-u" title="${AA(e.url)}">${AA(e.url)}</span><span class="bs-net-d">${e.duration}ms</span></div>`).join("")}</div>`:'<div class="bs-view"><div class="bs-empty"><p>No network requests captured yet.<br>API calls will show up here automatically.</p></div></div>'}function Af(){let A='<div class="bs-view">',e=Ae();e.length&&(A+=`<div class="bs-sec">Errors <span class="bs-sec-n">${e.length}</span></div>`,A+=e.slice().reverse().map(s=>`<div class="bs-err-card"><div class="bs-err-m">${AA(s.message)}</div>${s.stack?`<div class="bs-err-stack">${AA(s.stack)}</div>`:""}<div class="bs-err-meta">${s.type} &middot; ${vi(s.timestamp)}${s.source?` &middot; ${AA(s.source)}:${s.lineno}`:""}</div></div>`).join(""));let t=Te();if(t){A+='<div class="bs-sec">Performance</div>';let s=[["Page Load",t.pageLoadTime,5e3],["DOM Ready",t.domContentLoaded,3e3],["First Paint",t.firstPaint,2e3],["FCP",t.firstContentfulPaint,2500],["LCP",t.largestContentfulPaint,4e3],["FID",t.firstInputDelay,300]];for(let[a,i,o]of s){if(i===void 0)continue;let l=Math.min(100,i/o*100);A+=`<div class="bs-pf"><span class="bs-pf-l">${a}</span><div class="bs-pf-tr"><div class="bs-pf-fl${l>75?" bs-slow":""}" style="width:${l}%"></div></div><span class="bs-pf-v">${i}ms</span></div>`}if(t.cumulativeLayoutShift!==void 0){let a=Math.min(100,t.cumulativeLayoutShift*400);A+=`<div class="bs-pf"><span class="bs-pf-l">CLS</span><div class="bs-pf-tr"><div class="bs-pf-fl${a>40?" bs-slow":""}" style="width:${a}%"></div></div><span class="bs-pf-v">${t.cumulativeLayoutShift}</span></div>`}}let r=Ie();r.length&&(A+=`<div class="bs-sec">Your activity trail <span class="bs-sec-n">${r.length}</span></div>`,A+=r.slice().reverse().map(s=>`<div class="bs-bc"><span class="bs-bc-t bs-t-${s.type}">${s.type}</span><span class="bs-bc-m">${AA(s.message).slice(0,120)}</span><span class="bs-bc-time">${Yd(s.timestamp)}</span></div>`).join(""));let n=yi();return A+='<div class="bs-sec">Environment</div>',A+=`<div class="bs-kv">
1571
- <span class="bs-kv-k">URL</span><span class="bs-kv-v">${AA(n.url)}</span>
1572
- <span class="bs-kv-k">Viewport</span><span class="bs-kv-v">${n.viewportWidth}&times;${n.viewportHeight} @${n.devicePixelRatio}x</span>
1573
- <span class="bs-kv-k">Screen</span><span class="bs-kv-v">${n.screenWidth}&times;${n.screenHeight}</span>
1574
- <span class="bs-kv-k">Platform</span><span class="bs-kv-v">${AA(n.platform)}</span>
1575
- <span class="bs-kv-k">Language</span><span class="bs-kv-v">${n.language}</span>
1576
- ${EA.commitHash?`<span class="bs-kv-k">Commit</span><span class="bs-kv-v">${AA(EA.commitHash)}</span>`:""}
1577
- ${EA.user?.email?`<span class="bs-kv-k">User</span><span class="bs-kv-v">${AA(EA.user.email)}</span>`:""}
1578
- </div>`,A+="</div>",A}function ef(){let A=et();if(!A.length)return'<div class="bs-view"><div class="bs-empty"><p>No reports yet.<br>Submitted bugs will appear here.</p></div></div>';let e={ui:"UI",functionality:"Feature",performance:"Perf",crash:"Crash",security:"Security",other:"Other"},t=n=>{let s=new Date(n),i=new Date().getTime()-s.getTime(),o=Math.floor(i/6e4);if(o<1)return"Just now";if(o<60)return`${o}m ago`;let l=Math.floor(o/60);if(l<24)return`${l}h ago`;let c=Math.floor(l/24);return c<7?`${c}d ago`:s.toLocaleDateString("en",{month:"short",day:"numeric"})},r='<div class="bs-view">';for(let n of A){let s=n.pins?.length?`<div class="bs-hist-pins">${n.pins.slice(0,5).map(a=>`<div class="bs-hist-pin-dot" style="background:${["#ef4444","#3b82f6","#f59e0b","#10b981","#8b5cf6"][a.number%5]}">${a.number}</div>`).join("")}${n.pins.length>5?`<span>+${n.pins.length-5}</span>`:""}</div>`:"";r+=`<div class="bs-hist-card" data-hist-id="${n.id}">
1574
+ </div>`}function Wo(){let e=le(),t={error:"bs-le",warn:"bs-lw",log:"bs-ll",info:"bs-li",debug:"bs-ld"};return e.length?`<div class="bs-view">${e.slice().reverse().map(n=>`<div class="bs-log"><span class="bs-log-lv ${t[n.level]||"bs-ll"}">${n.level}</span><span class="bs-log-m">${A(n.args.join(" ")).slice(0,500)}</span><span class="bs-log-t">${Zr(n.timestamp)}</span></div>`).join("")}</div>`:'<div class="bs-view"><div class="bs-empty"><p>No console logs captured yet.<br>Use the app \u2014 logs will appear here automatically.</p></div></div>'}function _o(){let e=Me();return e.length?`<div class="bs-view">${e.slice().reverse().map(t=>`<div class="bs-net"><span class="bs-net-m">${t.method}</span><span class="bs-net-s ${t.failed?"bs-fail":"bs-ok"}">${t.status||"ERR"}</span><span class="bs-net-u" title="${A(t.url)}">${A(t.url)}</span><span class="bs-net-d">${t.duration}ms</span></div>`).join("")}</div>`:'<div class="bs-view"><div class="bs-empty"><p>No network requests captured yet.<br>API calls will show up here automatically.</p></div></div>'}function Xo(){let e='<div class="bs-view">',t=ce();t.length&&(e+=`<div class="bs-sec">Errors <span class="bs-sec-n">${t.length}</span></div>`,e+=t.slice().reverse().map(o=>`<div class="bs-err-card"><div class="bs-err-m">${A(o.message)}</div>${o.stack?`<div class="bs-err-stack">${A(o.stack)}</div>`:""}<div class="bs-err-meta">${o.type} &middot; ${Zr(o.timestamp)}${o.source?` &middot; ${A(o.source)}:${o.lineno}`:""}</div></div>`).join(""));let n=Ae();if(n){e+='<div class="bs-sec">Performance</div>';let o=[["Page Load",n.pageLoadTime,5e3],["DOM Ready",n.domContentLoaded,3e3],["First Paint",n.firstPaint,2e3],["FCP",n.firstContentfulPaint,2500],["LCP",n.largestContentfulPaint,4e3],["FID",n.firstInputDelay,300]];for(let[i,a,d]of o){if(a===void 0)continue;let p=Math.min(100,a/d*100);e+=`<div class="bs-pf"><span class="bs-pf-l">${i}</span><div class="bs-pf-tr"><div class="bs-pf-fl${p>75?" bs-slow":""}" style="width:${p}%"></div></div><span class="bs-pf-v">${a}ms</span></div>`}if(n.cumulativeLayoutShift!==void 0){let i=Math.min(100,n.cumulativeLayoutShift*400);e+=`<div class="bs-pf"><span class="bs-pf-l">CLS</span><div class="bs-pf-tr"><div class="bs-pf-fl${i>40?" bs-slow":""}" style="width:${i}%"></div></div><span class="bs-pf-v">${n.cumulativeLayoutShift}</span></div>`}}let r=Te();r.length&&(e+=`<div class="bs-sec">Your activity trail <span class="bs-sec-n">${r.length}</span></div>`,e+=r.slice().reverse().map(o=>`<div class="bs-bc"><span class="bs-bc-t bs-t-${o.type}">${o.type}</span><span class="bs-bc-m">${A(o.message).slice(0,120)}</span><span class="bs-bc-time">${jo(o.timestamp)}</span></div>`).join(""));let s=ts();return e+='<div class="bs-sec">Environment</div>',e+=`<div class="bs-kv">
1575
+ <span class="bs-kv-k">URL</span><span class="bs-kv-v">${A(s.url)}</span>
1576
+ <span class="bs-kv-k">Viewport</span><span class="bs-kv-v">${s.viewportWidth}&times;${s.viewportHeight} @${s.devicePixelRatio}x</span>
1577
+ <span class="bs-kv-k">Screen</span><span class="bs-kv-v">${s.screenWidth}&times;${s.screenHeight}</span>
1578
+ <span class="bs-kv-k">Platform</span><span class="bs-kv-v">${A(s.platform)}</span>
1579
+ <span class="bs-kv-k">Language</span><span class="bs-kv-v">${s.language}</span>
1580
+ ${V.commitHash?`<span class="bs-kv-k">Commit</span><span class="bs-kv-v">${A(V.commitHash)}</span>`:""}
1581
+ ${V.user?.email?`<span class="bs-kv-k">User</span><span class="bs-kv-v">${A(V.user.email)}</span>`:""}
1582
+ </div>`,e+="</div>",e}function Yo(){let e=_e();if(!e.length)return'<div class="bs-view"><div class="bs-empty"><p>No reports yet.<br>Submitted bugs will appear here.</p></div></div>';let t={ui:"UI",functionality:"Feature",performance:"Perf",crash:"Crash",security:"Security",other:"Other"},n=s=>{let o=new Date(s),a=new Date().getTime()-o.getTime(),d=Math.floor(a/6e4);if(d<1)return"Just now";if(d<60)return`${d}m ago`;let p=Math.floor(d/60);if(p<24)return`${p}h ago`;let b=Math.floor(p/24);return b<7?`${b}d ago`:o.toLocaleDateString("en",{month:"short",day:"numeric"})},r='<div class="bs-view">';for(let s of e){let o=s.pins?.length?`<div class="bs-hist-pins">${s.pins.slice(0,5).map(i=>`<div class="bs-hist-pin-dot" style="background:${["#ef4444","#3b82f6","#f59e0b","#10b981","#8b5cf6"][i.number%5]}">${i.number}</div>`).join("")}${s.pins.length>5?`<span>+${s.pins.length-5}</span>`:""}</div>`:"";r+=`<div class="bs-hist-card" data-hist-id="${s.id}">
1579
1583
  <div class="bs-hist-top">
1580
- <div class="bs-hist-title">${AA(n.title)}</div>
1581
- ${n.screenshot?`<img class="bs-hist-thumb" src="${n.screenshot}" alt=""/>`:""}
1584
+ <div class="bs-hist-title">${A(s.title)}</div>
1585
+ ${s.screenshot?`<img class="bs-hist-thumb" src="${s.screenshot}" alt=""/>`:""}
1582
1586
  <div class="bs-hist-actions">
1583
- <button class="bs-hist-btn" data-hist-edit="${n.id}" title="Edit"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/></svg></button>
1584
- <button class="bs-hist-btn bs-del" data-hist-del="${n.id}" title="Delete"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6"/><path d="M10 11v6"/><path d="M14 11v6"/></svg></button>
1587
+ <button class="bs-hist-btn" data-hist-edit="${s.id}" title="Edit"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/></svg></button>
1588
+ <button class="bs-hist-btn bs-del" data-hist-del="${s.id}" title="Delete"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6"/><path d="M10 11v6"/><path d="M14 11v6"/></svg></button>
1585
1589
  </div>
1586
1590
  </div>
1587
1591
  <div class="bs-hist-meta">
1588
- <span class="bs-hist-badge bs-cat">${e[n.category]||n.category}</span>
1589
- <span class="bs-hist-badge bs-sev-${n.severity}">${n.severity}</span>
1590
- <span class="bs-hist-badge bs-status-${n.status}">${n.status}</span>
1592
+ <span class="bs-hist-badge bs-cat">${t[s.category]||s.category}</span>
1593
+ <span class="bs-hist-badge bs-sev-${s.severity}">${s.severity}</span>
1594
+ <span class="bs-hist-badge bs-status-${s.status}">${s.status}</span>
1591
1595
  </div>
1592
- ${n.description?`<div class="bs-hist-desc">${AA(n.description)}</div>`:""}
1596
+ ${s.description?`<div class="bs-hist-desc">${A(s.description)}</div>`:""}
1593
1597
  <div class="bs-hist-foot">
1594
- <span>${t(n.createdAt)} &middot; ${AA(n.url.replace(/^https?:\/\//,"").slice(0,40))}</span>
1595
- ${s}
1598
+ <span>${n(s.createdAt)} &middot; ${A(s.url.replace(/^https?:\/\//,"").slice(0,40))}</span>
1599
+ ${o}
1596
1600
  </div>
1597
- </div>`}return r+="</div>",r}function tf(){let A=zr(),e=Zr(),t='<div class="bs-view">';t+='<div class="bs-set-sec">Layout</div>',t+='<div class="bs-set-ly-grid">';for(let r of e)t+=`<button class="bs-set-ly${r.id===xe.id?" bs-picked":""}" data-set-layout="${r.id}"><div class="bs-set-ly-name">${AA(r.name)}</div><div class="bs-set-ly-desc">${AA(r.description)}</div></button>`;t+="</div>",t+='<div class="bs-set-sec">Theme</div>',t+='<div class="bs-set-grid">';for(let r of A)t+=`<button class="bs-set-card${r.id===Ce.id?" bs-picked":""}" data-set-theme="${r.id}"><div class="bs-set-preview" style="background:${r.preview[0]}"><div class="bs-set-dot" style="background:${r.preview[1]}"></div><div class="bs-set-dot" style="background:${r.vars["--bs-accent2"]||r.preview[1]};opacity:0.6"></div></div><div class="bs-set-name">${AA(r.name)}</div></button>`;return t+="</div>",t+="</div>",t}function rf(A,e){let t=["#f87171","#3b82f6","#fb923c","#4ade80","#a78bfa","#facc15"],r=t[0],n="draw",s=4,a=1,i=!1,o=[],l=[],c=-1,B=-1,u=!1,f=!1,p=0,w=0,y=0,b=0,h=[],k=["#ef4444","#3b82f6","#f59e0b","#10b981","#8b5cf6","#ec4899"],K=new Image;K.src=e;let H=document.createElement("div");H.className="bs-ann-wrap";let Q=document.createElement("div");Q.className="bs-ann-viewport";let C=document.createElement("canvas");C.className="bs-ann-canvas bs-draw";let S=document.createElement("div");S.className="bs-ann-toolbar";let L={select:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/><path d="M13 13l6 6"/></svg>',draw:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 19l7-7 3 3-7 7-3-3z"/><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"/><path d="M2 2l7.586 7.586"/></svg>',arrow:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg>',rect:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/></svg>',circle:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/></svg>',text:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="4 7 4 4 20 4 20 7"/><line x1="9.5" y1="20" x2="14.5" y2="20"/><line x1="12" y1="4" x2="12" y2="20"/></svg>',highlight:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M9 11l-6 6v3h9l3-3"/><path d="M22 12l-4.6 4.6a2 2 0 01-2.8 0l-5.2-5.2a2 2 0 010-2.8L14 4"/></svg>',pin:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"/><circle cx="12" cy="10" r="3"/></svg>'},M={select:"Select & Move",draw:"Draw",arrow:"Arrow",rect:"Rectangle",circle:"Circle",text:"Text",highlight:"Highlight",pin:"Pin Issue"},sA=[],hA=g=>{n=g,c=-1,C.className=`bs-ann-canvas bs-${g}`,sA.forEach(E=>E.classList.remove("bs-sel")),sA.find(E=>E.dataset.tool===g)?.classList.add("bs-sel")};Object.keys(L).forEach(g=>{let E=document.createElement("button");E.type="button",E.dataset.tool=g,E.className=`bs-ann-btn${g===n?" bs-sel":""}`,E.title=M[g],E.innerHTML=L[g],E.addEventListener("click",()=>hA(g)),sA.push(E),S.appendChild(E)}),S.appendChild(Object.assign(document.createElement("div"),{className:"bs-ann-sep"})),t.forEach((g,E)=>{let x=document.createElement("button");x.type="button",x.className=`bs-ann-dot${E===0?" bs-sel":""}`,x.style.background=g,x.addEventListener("click",()=>{r=g,S.querySelectorAll(".bs-ann-dot").forEach(J=>J.classList.remove("bs-sel")),x.classList.add("bs-sel")}),S.appendChild(x)}),S.appendChild(Object.assign(document.createElement("div"),{className:"bs-ann-sep"}));let D=document.createElement("input");D.type="range",D.min="1",D.max="12",D.value="4",D.className="bs-ann-size",D.title="Brush size",D.addEventListener("input",()=>{s=parseInt(D.value)}),S.appendChild(D);let z=document.createElement("div");z.className="bs-ann-right";let HA=(g,E)=>{let x=document.createElement("button");return x.type="button",x.className="bs-ann-btn",x.title=g,x.innerHTML=E,x},iA=HA("Zoom out",'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="8" y1="11" x2="14" y2="11"/></svg>'),lA=Object.assign(document.createElement("span"),{className:"bs-ann-zoom-label",textContent:"100%"}),XA=HA("Zoom in",'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></svg>'),IA=HA("Fit",'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M15 3h6v6"/><path d="M9 21H3v-6"/><path d="M21 3l-7 7"/><path d="M3 21l7-7"/></svg>'),NA=HA("Undo",'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 105.42-8.49L1 10"/></svg>'),JA=Object.assign(document.createElement("button"),{type:"button",className:"bs-ann-clr-btn",textContent:"Clear"}),GA=()=>{C.style.transform=`scale(${a})`,lA.textContent=`${Math.round(a*100)}%`};XA.addEventListener("click",()=>{a<3&&(a=Math.min(3,a+.25),GA())}),iA.addEventListener("click",()=>{a>.5&&(a=Math.max(.5,a-.25),GA())}),IA.addEventListener("click",()=>{a=1,GA()}),z.appendChild(Object.assign(document.createElement("div"),{className:"bs-ann-sep"})),[iA,lA,XA,IA,NA,JA].forEach(g=>z.appendChild(g)),S.appendChild(z);let QA=document.createElement("div");QA.className="bs-ann-pins";let CA=document.createElement("div");CA.className="bs-ann-pin-list",CA.style.display="none",Q.appendChild(C),Q.appendChild(QA),H.appendChild(Q),H.appendChild(S),H.appendChild(CA),A.innerHTML="",A.appendChild(H);let mA=()=>{QA.innerHTML="",CA.innerHTML="",CA.style.display=l.length?"":"none",l.forEach((g,E)=>{let x=document.createElement("div");x.className="bs-ann-pin",x.style.background=g.color,x.style.color=g.color;let J=g.x/(C.width||1)*100,F=g.y/(C.height||1)*100;x.style.left=`${J}%`,x.style.top=`${F}%`,x.innerHTML=`<span class="bs-ann-pin-n">${E+1}</span><span class="bs-ann-pin-pulse"></span>`,x.title=`#${E+1}: ${g.note}`;let W=!1;x.addEventListener("mousedown",q=>{q.stopPropagation(),W=!0,x.classList.add("bs-dragging");let v=P=>{if(!W)return;let V=Q.getBoundingClientRect();g.x=(P.clientX-V.left)/V.width*C.width,g.y=(P.clientY-V.top)/V.height*C.height,x.style.left=`${(P.clientX-V.left)/V.width*100}%`,x.style.top=`${(P.clientY-V.top)/V.height*100}%`},T=()=>{W=!1,x.classList.remove("bs-dragging"),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",T),mA()};document.addEventListener("mousemove",v),document.addEventListener("mouseup",T)}),QA.appendChild(x);let cA=document.createElement("div");cA.className="bs-ann-pin-item",cA.innerHTML=`
1598
- <div class="bs-ann-pin-num" style="background:${g.color}">${E+1}</div>
1601
+ </div>`}return r+="</div>",r}function Vo(){let e=Nt(),t=qt(),n='<div class="bs-view">';n+='<div class="bs-set-sec">Layout</div>',n+='<div class="bs-set-ly-grid">';for(let r of t)n+=`<button class="bs-set-ly${r.id===Ee.id?" bs-picked":""}" data-set-layout="${r.id}"><div class="bs-set-ly-name">${A(r.name)}</div><div class="bs-set-ly-desc">${A(r.description)}</div></button>`;n+="</div>",n+='<div class="bs-set-sec">Theme</div>',n+='<div class="bs-set-grid">';for(let r of e)n+=`<button class="bs-set-card${r.id===ye.id?" bs-picked":""}" data-set-theme="${r.id}"><div class="bs-set-preview" style="background:${r.preview[0]}"><div class="bs-set-dot" style="background:${r.preview[1]}"></div><div class="bs-set-dot" style="background:${r.vars["--bs-accent2"]||r.preview[1]};opacity:0.6"></div></div><div class="bs-set-name">${A(r.name)}</div></button>`;return n+="</div>",n+="</div>",n}function Jo(e,t){let n=["#f87171","#3b82f6","#fb923c","#4ade80","#a78bfa","#facc15"],r=n[0],s="draw",o=4,i=1,a=!1,d=[],p=[],b=-1,y=-1,w=!1,k=!1,me=0,Ye=0,D=0,B=0,j=[],gt=["#ef4444","#3b82f6","#f59e0b","#10b981","#8b5cf6","#ec4899"],re=new Image;re.src=t;let xe=document.createElement("div");xe.className="bs-ann-wrap";let ve=document.createElement("div");ve.className="bs-ann-viewport";let v=document.createElement("canvas");v.className="bs-ann-canvas bs-draw";let ee=document.createElement("div");ee.className="bs-ann-toolbar";let Le={select:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/><path d="M13 13l6 6"/></svg>',draw:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 19l7-7 3 3-7 7-3-3z"/><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"/><path d="M2 2l7.586 7.586"/></svg>',arrow:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg>',rect:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/></svg>',circle:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/></svg>',text:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="4 7 4 4 20 4 20 7"/><line x1="9.5" y1="20" x2="14.5" y2="20"/><line x1="12" y1="4" x2="12" y2="20"/></svg>',highlight:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M9 11l-6 6v3h9l3-3"/><path d="M22 12l-4.6 4.6a2 2 0 01-2.8 0l-5.2-5.2a2 2 0 010-2.8L14 4"/></svg>',pin:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"/><circle cx="12" cy="10" r="3"/></svg>'},q={select:"Select & Move",draw:"Draw",arrow:"Arrow",rect:"Rectangle",circle:"Circle",text:"Text",highlight:"Highlight",pin:"Pin Issue"},tn=[],gs=l=>{s=l,b=-1,v.className=`bs-ann-canvas bs-${l}`,tn.forEach(f=>f.classList.remove("bs-sel")),tn.find(f=>f.dataset.tool===l)?.classList.add("bs-sel")};Object.keys(Le).forEach(l=>{let f=document.createElement("button");f.type="button",f.dataset.tool=l,f.className=`bs-ann-btn${l===s?" bs-sel":""}`,f.title=q[l],f.innerHTML=Le[l],f.addEventListener("click",()=>gs(l)),tn.push(f),ee.appendChild(f)}),ee.appendChild(Object.assign(document.createElement("div"),{className:"bs-ann-sep"})),n.forEach((l,f)=>{let g=document.createElement("button");g.type="button",g.className=`bs-ann-dot${f===0?" bs-sel":""}`,g.style.background=l,g.addEventListener("click",()=>{r=l,ee.querySelectorAll(".bs-ann-dot").forEach(C=>C.classList.remove("bs-sel")),g.classList.add("bs-sel")}),ee.appendChild(g)}),ee.appendChild(Object.assign(document.createElement("div"),{className:"bs-ann-sep"}));let ae=document.createElement("input");ae.type="range",ae.min="1",ae.max="12",ae.value="4",ae.className="bs-ann-size",ae.title="Brush size",ae.addEventListener("input",()=>{o=parseInt(ae.value)}),ee.appendChild(ae);let ht=document.createElement("div");ht.className="bs-ann-right";let yt=(l,f)=>{let g=document.createElement("button");return g.type="button",g.className="bs-ann-btn",g.title=l,g.innerHTML=f,g},zn=yt("Zoom out",'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="8" y1="11" x2="14" y2="11"/></svg>'),In=Object.assign(document.createElement("span"),{className:"bs-ann-zoom-label",textContent:"100%"}),Hn=yt("Zoom in",'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></svg>'),Dn=yt("Fit",'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M15 3h6v6"/><path d="M9 21H3v-6"/><path d="M21 3l-7 7"/><path d="M3 21l7-7"/></svg>'),Bn=yt("Undo",'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 105.42-8.49L1 10"/></svg>'),On=Object.assign(document.createElement("button"),{type:"button",className:"bs-ann-clr-btn",textContent:"Clear"}),nn=()=>{v.style.transform=`scale(${i})`,In.textContent=`${Math.round(i*100)}%`};Hn.addEventListener("click",()=>{i<3&&(i=Math.min(3,i+.25),nn())}),zn.addEventListener("click",()=>{i>.5&&(i=Math.max(.5,i-.25),nn())}),Dn.addEventListener("click",()=>{i=1,nn()}),ht.appendChild(Object.assign(document.createElement("div"),{className:"bs-ann-sep"})),[zn,In,Hn,Dn,Bn,On].forEach(l=>ht.appendChild(l)),ee.appendChild(ht);let xt=document.createElement("div");xt.className="bs-ann-pins";let Ce=document.createElement("div");Ce.className="bs-ann-pin-list",Ce.style.display="none",ve.appendChild(v),ve.appendChild(xt),xe.appendChild(ve),xe.appendChild(ee),xe.appendChild(Ce),e.innerHTML="",e.appendChild(xe);let vt=()=>{xt.innerHTML="",Ce.innerHTML="",Ce.style.display=p.length?"":"none",p.forEach((l,f)=>{let g=document.createElement("div");g.className="bs-ann-pin",g.style.background=l.color,g.style.color=l.color;let C=l.x/(v.width||1)*100,m=l.y/(v.height||1)*100;g.style.left=`${C}%`,g.style.top=`${m}%`,g.innerHTML=`<span class="bs-ann-pin-n">${f+1}</span><span class="bs-ann-pin-pulse"></span>`,g.title=`#${f+1}: ${l.note}`;let T=!1;g.addEventListener("mousedown",M=>{M.stopPropagation(),T=!0,g.classList.add("bs-dragging");let u=S=>{if(!T)return;let L=ve.getBoundingClientRect();l.x=(S.clientX-L.left)/L.width*v.width,l.y=(S.clientY-L.top)/L.height*v.height,g.style.left=`${(S.clientX-L.left)/L.width*100}%`,g.style.top=`${(S.clientY-L.top)/L.height*100}%`},x=()=>{T=!1,g.classList.remove("bs-dragging"),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",x),vt()};document.addEventListener("mousemove",u),document.addEventListener("mouseup",x)}),xt.appendChild(g);let N=document.createElement("div");N.className="bs-ann-pin-item",N.innerHTML=`
1602
+ <div class="bs-ann-pin-num" style="background:${l.color}">${f+1}</div>
1599
1603
  <div class="bs-ann-pin-body">
1600
- <div class="bs-ann-pin-note">${AA(g.note)}</div>
1601
- <div class="bs-ann-pin-loc">${Math.round(J)}% \xD7 ${Math.round(F)}%</div>
1602
- </div>`;let fA=document.createElement("button");fA.type="button",fA.className="bs-ann-pin-del",fA.innerHTML="&times;",fA.title="Remove pin",fA.addEventListener("click",()=>{l.splice(E,1),mA()}),cA.appendChild(fA),CA.appendChild(cA)})},d,qA=()=>i?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.35)",me=(g,E)=>{d.save(),d.strokeStyle=qA(),d.lineWidth=E+3,d.lineCap="round",d.lineJoin="round",d.globalAlpha=.5,g(),d.restore()},Ni=(g,E=!1)=>{if(g.type==="draw"||g.type==="highlight"){if(g.points.length<2)return;let F=g.type==="highlight"?.25:1,W=g.type==="highlight"?g.size*4+10:g.size,cA=()=>{d.beginPath(),d.moveTo(g.points[0].x,g.points[0].y);for(let fA=1;fA<g.points.length;fA++)d.lineTo(g.points[fA].x,g.points[fA].y);d.stroke()};g.type!=="highlight"&&me(cA,W),d.strokeStyle=g.color,d.lineWidth=W,d.lineCap="round",d.lineJoin="round",d.globalAlpha=F,cA(),d.globalAlpha=1}else if(g.type==="rect"){let F=()=>d.strokeRect(g.x,g.y,g.w,g.h);me(F,g.size),d.strokeStyle=g.color,d.lineWidth=g.size,d.lineCap="round",d.lineJoin="round",F()}else if(g.type==="circle"){let F=()=>{d.beginPath(),d.ellipse(g.cx,g.cy,Math.abs(g.rx),Math.abs(g.ry),0,0,Math.PI*2),d.stroke()};me(F,g.size),d.strokeStyle=g.color,d.lineWidth=g.size,F()}else if(g.type==="arrow"){let F=Math.atan2(g.y2-g.y1,g.x2-g.x1),W=12+g.size*2,cA=()=>{d.beginPath(),d.moveTo(g.x1,g.y1),d.lineTo(g.x2,g.y2),d.stroke(),d.beginPath(),d.moveTo(g.x2,g.y2),d.lineTo(g.x2-W*Math.cos(F-.45),g.y2-W*Math.sin(F-.45)),d.moveTo(g.x2,g.y2),d.lineTo(g.x2-W*Math.cos(F+.45),g.y2-W*Math.sin(F+.45)),d.stroke()};me(cA,g.size),d.strokeStyle=g.color,d.lineWidth=g.size,d.lineCap="round",d.lineJoin="round",cA()}else if(g.type==="text"){let F=g.size*5+12;d.font=`bold ${F}px Inter, -apple-system, sans-serif`,d.fillStyle=qA(),d.globalAlpha=.6,d.fillText(g.text,g.x+1,g.y+1),d.globalAlpha=1,d.fillStyle=g.color,d.fillText(g.text,g.x,g.y)}let x=!E&&c>=0&&o[c]===g,J=!E&&!x&&B>=0&&o[B]===g;if(x||J){let F=rt(g);if(d.save(),d.setLineDash([6,4]),d.strokeStyle=i?"#fff":"#000",d.lineWidth=x?1.5:1,d.globalAlpha=x?.7:.45,d.strokeRect(F.x-4,F.y-4,F.w+8,F.h+8),g.type==="rect"||g.type==="circle"){d.setLineDash([]),d.globalAlpha=x?.9:.6;let cA=g.type==="rect"?[[F.x,F.y],[F.x+F.w,F.y],[F.x,F.y+F.h],[F.x+F.w,F.y+F.h]]:[[F.x+F.w/2,F.y],[F.x+F.w,F.y+F.h/2],[F.x+F.w/2,F.y+F.h],[F.x,F.y+F.h/2]];for(let[fA,q]of cA)d.fillStyle="#fff",d.fillRect(fA-5,q-5,10,10),d.strokeStyle=i?"#aaa":"#333",d.lineWidth=1.2,d.strokeRect(fA-5,q-5,10,10)}d.restore()}},dA=()=>{d.clearRect(0,0,C.width,C.height),d.drawImage(K,0,0);for(let g of o)Ni(g)},rt=g=>{if(g.type==="rect")return{x:Math.min(g.x,g.x+g.w),y:Math.min(g.y,g.y+g.h),w:Math.abs(g.w),h:Math.abs(g.h)};if(g.type==="circle")return{x:g.cx-Math.abs(g.rx),y:g.cy-Math.abs(g.ry),w:Math.abs(g.rx)*2,h:Math.abs(g.ry)*2};if(g.type==="arrow"){let W=Math.min(g.x1,g.x2),cA=Math.min(g.y1,g.y2);return{x:W,y:cA,w:Math.abs(g.x2-g.x1)||20,h:Math.abs(g.y2-g.y1)||20}}if(g.type==="text")return{x:g.x,y:g.y-(g.size*5+12),w:g.text.length*(g.size*3+8),h:g.size*5+16};if(g.points.length===0)return{x:0,y:0,w:0,h:0};let E=1/0,x=1/0,J=-1/0,F=-1/0;for(let W of g.points)E=Math.min(E,W.x),x=Math.min(x,W.y),J=Math.max(J,W.x),F=Math.max(F,W.y);return{x:E,y:x,w:J-E||10,h:F-x||10}},Wt=(g,E)=>{for(let x=o.length-1;x>=0;x--){let J=rt(o[x]),F=8;if(g>=J.x-F&&g<=J.x+J.w+F&&E>=J.y-F&&E<=J.y+J.h+F)return x}return-1},Gi=(g,E,x)=>{if(g.type==="draw"||g.type==="highlight")for(let J of g.points)J.x+=E,J.y+=x;else g.type==="rect"?(g.x+=E,g.y+=x):g.type==="circle"?(g.cx+=E,g.cy+=x):g.type==="arrow"?(g.x1+=E,g.y1+=x,g.x2+=E,g.y2+=x):g.type==="text"&&(g.x+=E,g.y+=x)};K.onload=()=>{let E=(A.clientWidth||450)/K.width;C.width=K.width,C.height=K.height,C.style.height=`${K.height*E}px`,d=C.getContext("2d"),d.drawImage(K,0,0);let x=[[10,10],[C.width-10,10],[10,C.height-10],[C.width-10,C.height-10],[C.width/2,C.height/2]],J=0;for(let[q,v]of x){let T=d.getImageData(q,v,1,1).data;J+=(T[0]*299+T[1]*587+T[2]*114)/1e3}i=J/x.length<128;let F=q=>{let v=C.getBoundingClientRect();return{x:(q.clientX-v.left)*(C.width/v.width),y:(q.clientY-v.top)*(C.height/v.height)}},W=!1;C.addEventListener("mousedown",q=>{let v=F(q);if(n==="select"){let T=Wt(v.x,v.y);if(T>=0){c=T,u=!0;let P=rt(o[T]);p=v.x-P.x,w=v.y-P.y,C.classList.add("bs-grabbing"),C.classList.remove("bs-grab"),dA()}else c=-1,dA();return}if(n!=="pin"&&n!=="text"){let T=Wt(v.x,v.y);if(T>=0){c=T,u=!0,W=!0;let P=rt(o[T]);p=v.x-P.x,w=v.y-P.y,C.classList.add("bs-grabbing"),dA();return}}if(f=!0,y=v.x,b=v.y,n==="pin"){f=!1;let T=prompt("Describe the issue at this spot:");if(T){let P=k[l.length%k.length];l.push({x:v.x,y:v.y,note:T,color:P}),mA()}return}if(n==="text"){f=!1;let T=prompt("Enter text:");T&&(o.push({type:"text",color:r,size:s,x:v.x,y:v.y,text:T}),dA());return}(n==="draw"||n==="highlight")&&(h=[{x:v.x,y:v.y}])}),C.addEventListener("mousemove",q=>{let v=F(q);if(u&&c>=0){let T=rt(o[c]),P=v.x-p-T.x,V=v.y-w-T.y;Gi(o[c],P,V),dA();return}if(n==="select"){let T=Wt(v.x,v.y);C.classList.toggle("bs-grab",T>=0),B!==T&&(B=T,dA());return}if(n!=="pin"&&n!=="text"&&!f){let T=Wt(v.x,v.y);C.classList.toggle("bs-grab",T>=0),B!==T&&(B=T,dA())}if(f){if(n==="draw"||n==="highlight"){h.push({x:v.x,y:v.y}),dA();let T=n==="highlight"?.25:1,P=n==="highlight"?s*4+10:s;if(n!=="highlight"){d.save(),d.strokeStyle=qA(),d.lineWidth=P+3,d.lineCap="round",d.lineJoin="round",d.globalAlpha=.5,d.beginPath(),d.moveTo(h[0].x,h[0].y);for(let V=1;V<h.length;V++)d.lineTo(h[V].x,h[V].y);d.stroke(),d.restore()}d.strokeStyle=r,d.lineWidth=P,d.lineCap="round",d.lineJoin="round",d.globalAlpha=T,d.beginPath(),d.moveTo(h[0].x,h[0].y);for(let V=1;V<h.length;V++)d.lineTo(h[V].x,h[V].y);d.stroke(),d.globalAlpha=1}else if(dA(),d.strokeStyle=r,d.lineWidth=s,d.lineCap="round",d.lineJoin="round",n==="rect")me(()=>d.strokeRect(y,b,v.x-y,v.y-b),s),d.strokeStyle=r,d.lineWidth=s,d.strokeRect(y,b,v.x-y,v.y-b);else if(n==="circle"){let T=Math.abs(v.x-y)/2,P=Math.abs(v.y-b)/2,V=y+(v.x-y)/2,Hs=b+(v.y-b)/2;me(()=>{d.beginPath(),d.ellipse(V,Hs,T,P,0,0,Math.PI*2),d.stroke()},s),d.strokeStyle=r,d.lineWidth=s,d.beginPath(),d.ellipse(V,Hs,T,P,0,0,Math.PI*2),d.stroke()}else if(n==="arrow"){let T=Math.atan2(v.y-b,v.x-y),P=12+s*2,V=()=>{d.beginPath(),d.moveTo(y,b),d.lineTo(v.x,v.y),d.stroke(),d.beginPath(),d.moveTo(v.x,v.y),d.lineTo(v.x-P*Math.cos(T-.45),v.y-P*Math.sin(T-.45)),d.moveTo(v.x,v.y),d.lineTo(v.x-P*Math.cos(T+.45),v.y-P*Math.sin(T+.45)),d.stroke()};me(V,s),d.strokeStyle=r,d.lineWidth=s,d.lineCap="round",d.lineJoin="round",V()}}});let cA=q=>{if(u)return u=!1,W=!1,c=-1,C.classList.remove("bs-grabbing"),C.classList.remove("bs-grab"),dA(),void 0;if(!f)return;f=!1;let v=F(q);if(n==="draw"||n==="highlight")h.length>1&&o.push({type:n,color:r,size:s,alpha:n==="highlight"?.25:1,points:[...h]}),h=[];else if(n==="rect")o.push({type:"rect",color:r,size:s,x:y,y:b,w:v.x-y,h:v.y-b});else if(n==="circle"){let T=Math.abs(v.x-y)/2,P=Math.abs(v.y-b)/2;o.push({type:"circle",color:r,size:s,cx:y+(v.x-y)/2,cy:b+(v.y-b)/2,rx:T,ry:P})}else n==="arrow"&&o.push({type:"arrow",color:r,size:s,x1:y,y1:b,x2:v.x,y2:v.y});dA()};C.addEventListener("mouseup",cA),C.addEventListener("mouseleave",q=>{u?(u=!1,W=!1,C.classList.remove("bs-grabbing"),C.classList.remove("bs-grab"),dA()):f&&cA(q)});let fA=q=>{c>=0&&(q.key==="Delete"||q.key==="Backspace")&&(o.splice(c,1),c=-1,dA())};document.addEventListener("keydown",fA),NA.addEventListener("click",()=>{o.length&&(o.pop(),c=-1,dA())}),JA.addEventListener("click",()=>{o.length=0,l.length=0,c=-1,dA(),mA()})};let Pi=()=>{for(let g=0;g<l.length;g++){let E=l[g],x=16;d.beginPath(),d.arc(E.x,E.y-x,x,0,Math.PI*2),d.fillStyle=E.color,d.fill(),d.strokeStyle="#fff",d.lineWidth=2,d.stroke(),d.beginPath(),d.moveTo(E.x-8,E.y-6),d.lineTo(E.x,E.y+4),d.lineTo(E.x+8,E.y-6),d.fillStyle=E.color,d.fill(),d.fillStyle="#fff",d.font="bold 14px Inter, sans-serif",d.textAlign="center",d.textBaseline="middle",d.fillText(`${g+1}`,E.x,E.y-x),d.textAlign="start",d.textBaseline="alphabetic"}};return{getAnnotation:()=>{try{return c=-1,dA(),Pi(),C.toDataURL("image/jpeg",.7)}catch{return null}},getPins:()=>l.map((g,E)=>({number:E+1,x:Math.round(g.x),y:Math.round(g.y),note:g.note}))}}function Xt(A){if(!I)return;At=A,I.querySelectorAll(".bs-tab").forEach(r=>{r.classList.toggle("bs-active",r.dataset.tab===A)});let e=I.querySelector(".bs-scroll"),t={report:xi,console:qd,network:jd,context:Af,history:ef,settings:tf};e.innerHTML=t[A](),e.scrollTop=0,Hi()}function Hi(){if(!I)return;if(At==="history"){I.querySelectorAll("[data-hist-del]").forEach(t=>{t.addEventListener("click",()=>{let r=parseInt(t.dataset.histDel),n=I.querySelector(`[data-hist-id="${r}"]`);if(!n)return;let s=n.querySelector(".bs-hist-confirm");if(s){s.remove();return}let a=document.createElement("div");a.className="bs-hist-confirm",a.innerHTML="<span>Delete this report?</span>";let i=document.createElement("button");i.type="button",i.className="bs-hist-confirm-yes",i.textContent="Delete";let o=document.createElement("button");o.type="button",o.className="bs-hist-confirm-no",o.textContent="Cancel",i.addEventListener("click",()=>{$d(r),Xt("history")}),o.addEventListener("click",()=>a.remove()),a.appendChild(i),a.appendChild(o),n.appendChild(a)})}),I.querySelectorAll("[data-hist-edit]").forEach(t=>{t.addEventListener("click",()=>{let r=parseInt(t.dataset.histEdit),n=I.querySelector(`[data-hist-id="${r}"]`);if(!n)return;let s=n.querySelector(".bs-hist-edit-wrap");if(s){s.remove();return}n.querySelector(".bs-hist-confirm")?.remove();let a=et().find(u=>u.id===r);if(!a)return;let i=document.createElement("div");i.className="bs-hist-edit-wrap",i.innerHTML=`
1604
+ <div class="bs-ann-pin-note">${A(l.note)}</div>
1605
+ <div class="bs-ann-pin-loc">${Math.round(C)}% \xD7 ${Math.round(m)}%</div>
1606
+ </div>`;let F=document.createElement("button");F.type="button",F.className="bs-ann-pin-del",F.innerHTML="&times;",F.title="Remove pin",F.addEventListener("click",()=>{p.splice(f,1),vt()}),N.appendChild(F),Ce.appendChild(N)})},c,rn=()=>a?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.35)",we=(l,f)=>{c.save(),c.strokeStyle=rn(),c.lineWidth=f+3,c.lineCap="round",c.lineJoin="round",c.globalAlpha=.5,l(),c.restore()},hs=(l,f=!1)=>{if(l.type==="draw"||l.type==="highlight"){if(l.points.length<2)return;let m=l.type==="highlight"?.25:1,T=l.type==="highlight"?l.size*4+10:l.size,N=()=>{c.beginPath(),c.moveTo(l.points[0].x,l.points[0].y);for(let F=1;F<l.points.length;F++)c.lineTo(l.points[F].x,l.points[F].y);c.stroke()};l.type!=="highlight"&&we(N,T),c.strokeStyle=l.color,c.lineWidth=T,c.lineCap="round",c.lineJoin="round",c.globalAlpha=m,N(),c.globalAlpha=1}else if(l.type==="rect"){let m=()=>c.strokeRect(l.x,l.y,l.w,l.h);we(m,l.size),c.strokeStyle=l.color,c.lineWidth=l.size,c.lineCap="round",c.lineJoin="round",m()}else if(l.type==="circle"){let m=()=>{c.beginPath(),c.ellipse(l.cx,l.cy,Math.abs(l.rx),Math.abs(l.ry),0,0,Math.PI*2),c.stroke()};we(m,l.size),c.strokeStyle=l.color,c.lineWidth=l.size,m()}else if(l.type==="arrow"){let m=Math.atan2(l.y2-l.y1,l.x2-l.x1),T=12+l.size*2,N=()=>{c.beginPath(),c.moveTo(l.x1,l.y1),c.lineTo(l.x2,l.y2),c.stroke(),c.beginPath(),c.moveTo(l.x2,l.y2),c.lineTo(l.x2-T*Math.cos(m-.45),l.y2-T*Math.sin(m-.45)),c.moveTo(l.x2,l.y2),c.lineTo(l.x2-T*Math.cos(m+.45),l.y2-T*Math.sin(m+.45)),c.stroke()};we(N,l.size),c.strokeStyle=l.color,c.lineWidth=l.size,c.lineCap="round",c.lineJoin="round",N()}else if(l.type==="text"){let m=l.size*5+12;c.font=`bold ${m}px Inter, -apple-system, sans-serif`,c.fillStyle=rn(),c.globalAlpha=.6,c.fillText(l.text,l.x+1,l.y+1),c.globalAlpha=1,c.fillStyle=l.color,c.fillText(l.text,l.x,l.y)}let g=!f&&b>=0&&d[b]===l,C=!f&&!g&&y>=0&&d[y]===l;if(g||C){let m=Ve(l);if(c.save(),c.setLineDash([6,4]),c.strokeStyle=a?"#fff":"#000",c.lineWidth=g?1.5:1,c.globalAlpha=g?.7:.45,c.strokeRect(m.x-4,m.y-4,m.w+8,m.h+8),l.type==="rect"||l.type==="circle"){c.setLineDash([]),c.globalAlpha=g?.9:.6;let N=l.type==="rect"?[[m.x,m.y],[m.x+m.w,m.y],[m.x,m.y+m.h],[m.x+m.w,m.y+m.h]]:[[m.x+m.w/2,m.y],[m.x+m.w,m.y+m.h/2],[m.x+m.w/2,m.y+m.h],[m.x,m.y+m.h/2]];for(let[F,M]of N)c.fillStyle="#fff",c.fillRect(F-5,M-5,10,10),c.strokeStyle=a?"#aaa":"#333",c.lineWidth=1.2,c.strokeRect(F-5,M-5,10,10)}c.restore()}},U=()=>{c.clearRect(0,0,v.width,v.height),c.drawImage(re,0,0);for(let l of d)hs(l)},Ve=l=>{if(l.type==="rect")return{x:Math.min(l.x,l.x+l.w),y:Math.min(l.y,l.y+l.h),w:Math.abs(l.w),h:Math.abs(l.h)};if(l.type==="circle")return{x:l.cx-Math.abs(l.rx),y:l.cy-Math.abs(l.ry),w:Math.abs(l.rx)*2,h:Math.abs(l.ry)*2};if(l.type==="arrow"){let T=Math.min(l.x1,l.x2),N=Math.min(l.y1,l.y2);return{x:T,y:N,w:Math.abs(l.x2-l.x1)||20,h:Math.abs(l.y2-l.y1)||20}}if(l.type==="text")return{x:l.x,y:l.y-(l.size*5+12),w:l.text.length*(l.size*3+8),h:l.size*5+16};if(l.points.length===0)return{x:0,y:0,w:0,h:0};let f=1/0,g=1/0,C=-1/0,m=-1/0;for(let T of l.points)f=Math.min(f,T.x),g=Math.min(g,T.y),C=Math.max(C,T.x),m=Math.max(m,T.y);return{x:f,y:g,w:C-f||10,h:m-g||10}},wt=(l,f)=>{for(let g=d.length-1;g>=0;g--){let C=Ve(d[g]),m=8;if(l>=C.x-m&&l<=C.x+C.w+m&&f>=C.y-m&&f<=C.y+C.h+m)return g}return-1},ys=(l,f,g)=>{if(l.type==="draw"||l.type==="highlight")for(let C of l.points)C.x+=f,C.y+=g;else l.type==="rect"?(l.x+=f,l.y+=g):l.type==="circle"?(l.cx+=f,l.cy+=g):l.type==="arrow"?(l.x1+=f,l.y1+=g,l.x2+=f,l.y2+=g):l.type==="text"&&(l.x+=f,l.y+=g)};re.onload=()=>{let f=(e.clientWidth||450)/re.width;v.width=re.width,v.height=re.height,v.style.height=`${re.height*f}px`,c=v.getContext("2d"),c.drawImage(re,0,0);let g=[[10,10],[v.width-10,10],[10,v.height-10],[v.width-10,v.height-10],[v.width/2,v.height/2]],C=0;for(let[M,u]of g){let x=c.getImageData(M,u,1,1).data;C+=(x[0]*299+x[1]*587+x[2]*114)/1e3}a=C/g.length<128;let m=M=>{let u=v.getBoundingClientRect();return{x:(M.clientX-u.left)*(v.width/u.width),y:(M.clientY-u.top)*(v.height/u.height)}},T=!1;v.addEventListener("mousedown",M=>{let u=m(M);if(s==="select"){let x=wt(u.x,u.y);if(x>=0){b=x,w=!0;let S=Ve(d[x]);me=u.x-S.x,Ye=u.y-S.y,v.classList.add("bs-grabbing"),v.classList.remove("bs-grab"),U()}else b=-1,U();return}if(s!=="pin"&&s!=="text"){let x=wt(u.x,u.y);if(x>=0){b=x,w=!0,T=!0;let S=Ve(d[x]);me=u.x-S.x,Ye=u.y-S.y,v.classList.add("bs-grabbing"),U();return}}if(k=!0,D=u.x,B=u.y,s==="pin"){k=!1;let x=prompt("Describe the issue at this spot:");if(x){let S=gt[p.length%gt.length];p.push({x:u.x,y:u.y,note:x,color:S}),vt()}return}if(s==="text"){k=!1;let x=prompt("Enter text:");x&&(d.push({type:"text",color:r,size:o,x:u.x,y:u.y,text:x}),U());return}(s==="draw"||s==="highlight")&&(j=[{x:u.x,y:u.y}])}),v.addEventListener("mousemove",M=>{let u=m(M);if(w&&b>=0){let x=Ve(d[b]),S=u.x-me-x.x,L=u.y-Ye-x.y;ys(d[b],S,L),U();return}if(s==="select"){let x=wt(u.x,u.y);v.classList.toggle("bs-grab",x>=0),y!==x&&(y=x,U());return}if(s!=="pin"&&s!=="text"&&!k){let x=wt(u.x,u.y);v.classList.toggle("bs-grab",x>=0),y!==x&&(y=x,U())}if(k){if(s==="draw"||s==="highlight"){j.push({x:u.x,y:u.y}),U();let x=s==="highlight"?.25:1,S=s==="highlight"?o*4+10:o;if(s!=="highlight"){c.save(),c.strokeStyle=rn(),c.lineWidth=S+3,c.lineCap="round",c.lineJoin="round",c.globalAlpha=.5,c.beginPath(),c.moveTo(j[0].x,j[0].y);for(let L=1;L<j.length;L++)c.lineTo(j[L].x,j[L].y);c.stroke(),c.restore()}c.strokeStyle=r,c.lineWidth=S,c.lineCap="round",c.lineJoin="round",c.globalAlpha=x,c.beginPath(),c.moveTo(j[0].x,j[0].y);for(let L=1;L<j.length;L++)c.lineTo(j[L].x,j[L].y);c.stroke(),c.globalAlpha=1}else if(U(),c.strokeStyle=r,c.lineWidth=o,c.lineCap="round",c.lineJoin="round",s==="rect")we(()=>c.strokeRect(D,B,u.x-D,u.y-B),o),c.strokeStyle=r,c.lineWidth=o,c.strokeRect(D,B,u.x-D,u.y-B);else if(s==="circle"){let x=Math.abs(u.x-D)/2,S=Math.abs(u.y-B)/2,L=D+(u.x-D)/2,Nn=B+(u.y-B)/2;we(()=>{c.beginPath(),c.ellipse(L,Nn,x,S,0,0,Math.PI*2),c.stroke()},o),c.strokeStyle=r,c.lineWidth=o,c.beginPath(),c.ellipse(L,Nn,x,S,0,0,Math.PI*2),c.stroke()}else if(s==="arrow"){let x=Math.atan2(u.y-B,u.x-D),S=12+o*2,L=()=>{c.beginPath(),c.moveTo(D,B),c.lineTo(u.x,u.y),c.stroke(),c.beginPath(),c.moveTo(u.x,u.y),c.lineTo(u.x-S*Math.cos(x-.45),u.y-S*Math.sin(x-.45)),c.moveTo(u.x,u.y),c.lineTo(u.x-S*Math.cos(x+.45),u.y-S*Math.sin(x+.45)),c.stroke()};we(L,o),c.strokeStyle=r,c.lineWidth=o,c.lineCap="round",c.lineJoin="round",L()}}});let N=M=>{if(w)return w=!1,T=!1,b=-1,v.classList.remove("bs-grabbing"),v.classList.remove("bs-grab"),U(),void 0;if(!k)return;k=!1;let u=m(M);if(s==="draw"||s==="highlight")j.length>1&&d.push({type:s,color:r,size:o,alpha:s==="highlight"?.25:1,points:[...j]}),j=[];else if(s==="rect")d.push({type:"rect",color:r,size:o,x:D,y:B,w:u.x-D,h:u.y-B});else if(s==="circle"){let x=Math.abs(u.x-D)/2,S=Math.abs(u.y-B)/2;d.push({type:"circle",color:r,size:o,cx:D+(u.x-D)/2,cy:B+(u.y-B)/2,rx:x,ry:S})}else s==="arrow"&&d.push({type:"arrow",color:r,size:o,x1:D,y1:B,x2:u.x,y2:u.y});U()};v.addEventListener("mouseup",N),v.addEventListener("mouseleave",M=>{w?(w=!1,T=!1,v.classList.remove("bs-grabbing"),v.classList.remove("bs-grab"),U()):k&&N(M)});let F=M=>{b>=0&&(M.key==="Delete"||M.key==="Backspace")&&(d.splice(b,1),b=-1,U())};document.addEventListener("keydown",F),Bn.addEventListener("click",()=>{d.length&&(d.pop(),b=-1,U())}),On.addEventListener("click",()=>{d.length=0,p.length=0,b=-1,U(),vt()})};let xs=()=>{for(let l=0;l<p.length;l++){let f=p[l],g=16;c.beginPath(),c.arc(f.x,f.y-g,g,0,Math.PI*2),c.fillStyle=f.color,c.fill(),c.strokeStyle="#fff",c.lineWidth=2,c.stroke(),c.beginPath(),c.moveTo(f.x-8,f.y-6),c.lineTo(f.x,f.y+4),c.lineTo(f.x+8,f.y-6),c.fillStyle=f.color,c.fill(),c.fillStyle="#fff",c.font="bold 14px Inter, sans-serif",c.textAlign="center",c.textBaseline="middle",c.fillText(`${l+1}`,f.x,f.y-g),c.textAlign="start",c.textBaseline="alphabetic"}};return{getAnnotation:()=>{try{return b=-1,U(),xs(),v.toDataURL("image/jpeg",.7)}catch{return null}},getPins:()=>p.map((l,f)=>({number:f+1,x:Math.round(l.x),y:Math.round(l.y),note:l.note}))}}function bt(e){if(!h)return;We=e,h.querySelectorAll(".bs-tab").forEach(r=>{r.classList.toggle("bs-active",r.dataset.tab===e)});let t=h.querySelector(".bs-scroll"),n={report:rs,console:Wo,network:_o,context:Xo,history:Yo,settings:Vo};t.innerHTML=n[e](),t.scrollTop=0,ss()}function ss(){if(!h)return;if(We==="history"){h.querySelectorAll("[data-hist-del]").forEach(n=>{n.addEventListener("click",()=>{let r=parseInt(n.dataset.histDel),s=h.querySelector(`[data-hist-id="${r}"]`);if(!s)return;let o=s.querySelector(".bs-hist-confirm");if(o){o.remove();return}let i=document.createElement("div");i.className="bs-hist-confirm",i.innerHTML="<span>Delete this report?</span>";let a=document.createElement("button");a.type="button",a.className="bs-hist-confirm-yes",a.textContent="Delete";let d=document.createElement("button");d.type="button",d.className="bs-hist-confirm-no",d.textContent="Cancel",a.addEventListener("click",()=>{Uo(r),bt("history")}),d.addEventListener("click",()=>i.remove()),i.appendChild(a),i.appendChild(d),s.appendChild(i)})}),h.querySelectorAll("[data-hist-edit]").forEach(n=>{n.addEventListener("click",()=>{let r=parseInt(n.dataset.histEdit),s=h.querySelector(`[data-hist-id="${r}"]`);if(!s)return;let o=s.querySelector(".bs-hist-edit-wrap");if(o){o.remove();return}s.querySelector(".bs-hist-confirm")?.remove();let i=_e().find(w=>w.id===r);if(!i)return;let a=document.createElement("div");a.className="bs-hist-edit-wrap",a.innerHTML=`
1603
1607
  <div class="bs-field" style="margin-bottom:8px">
1604
- <input class="bs-input" data-edit-title value="${AA(a.title)}" />
1608
+ <input class="bs-input" data-edit-title value="${A(i.title)}" />
1605
1609
  </div>
1606
1610
  <div class="bs-field" style="margin-bottom:8px">
1607
- <textarea class="bs-textarea" data-edit-desc style="min-height:56px">${AA(a.description)}</textarea>
1611
+ <textarea class="bs-textarea" data-edit-desc style="min-height:56px">${A(i.description)}</textarea>
1608
1612
  </div>
1609
1613
  <div class="bs-field" style="margin-bottom:8px">
1610
1614
  <div class="bs-sev-row">
1611
- <button type="button" class="bs-sev-btn bs-sev-low${a.severity==="low"?" bs-picked":""}" data-edit-sev="low">Low</button>
1612
- <button type="button" class="bs-sev-btn bs-sev-medium${a.severity==="medium"?" bs-picked":""}" data-edit-sev="medium">Medium</button>
1613
- <button type="button" class="bs-sev-btn bs-sev-high${a.severity==="high"?" bs-picked":""}" data-edit-sev="high">High</button>
1614
- <button type="button" class="bs-sev-btn bs-sev-critical${a.severity==="critical"?" bs-picked":""}" data-edit-sev="critical">Critical</button>
1615
+ <button type="button" class="bs-sev-btn bs-sev-low${i.severity==="low"?" bs-picked":""}" data-edit-sev="low">Low</button>
1616
+ <button type="button" class="bs-sev-btn bs-sev-medium${i.severity==="medium"?" bs-picked":""}" data-edit-sev="medium">Medium</button>
1617
+ <button type="button" class="bs-sev-btn bs-sev-high${i.severity==="high"?" bs-picked":""}" data-edit-sev="high">High</button>
1618
+ <button type="button" class="bs-sev-btn bs-sev-critical${i.severity==="critical"?" bs-picked":""}" data-edit-sev="critical">Critical</button>
1615
1619
  </div>
1616
1620
  </div>
1617
- <div class="bs-hist-edit-row"></div>`;let o=a.severity;n.appendChild(i),i.querySelectorAll("[data-edit-sev]").forEach(u=>{u.addEventListener("click",()=>{o=u.dataset.editSev,i.querySelectorAll(".bs-sev-btn").forEach(f=>f.classList.remove("bs-picked")),u.classList.add("bs-picked")})});let l=i.querySelector(".bs-hist-edit-row"),c=document.createElement("button");c.type="button",c.className="bs-hist-save",c.textContent="Save";let B=document.createElement("button");B.type="button",B.className="bs-hist-cancel",B.textContent="Cancel",c.addEventListener("click",()=>{let u=i.querySelector("[data-edit-title]").value.trim(),f=i.querySelector("[data-edit-desc]").value.trim();u&&(Zd(r,{title:u,description:f,severity:o}),Xt("history"))}),B.addEventListener("click",()=>i.remove()),l.appendChild(c),l.appendChild(B)})});return}if(At==="settings"){I.querySelectorAll("[data-set-theme]").forEach(t=>{t.addEventListener("click",()=>{let r=t.dataset.setTheme;sn(r),I.querySelectorAll("[data-set-theme]").forEach(n=>n.classList.remove("bs-picked")),t.classList.add("bs-picked")})}),I.querySelectorAll("[data-set-layout]").forEach(t=>{t.addEventListener("click",()=>{let r=t.dataset.setLayout,n=Ot(r);n&&(xe=n,RA(),setTimeout(()=>{At="settings",oe(),setTimeout(()=>Xt("settings"),50)},400))})});return}if(At!=="report")return;I.querySelectorAll(".bs-cat-btn").forEach(t=>{t.addEventListener("click",()=>{let r=t.dataset.cat;I.querySelector('input[name="category"]').value=r,I.querySelectorAll(".bs-cat-btn").forEach(n=>n.classList.remove("bs-picked")),t.classList.add("bs-picked")})}),I.querySelectorAll(".bs-sev-btn").forEach(t=>{t.addEventListener("click",()=>{let r=t.dataset.sev;I.querySelector('input[name="severity"]').value=r,I.querySelectorAll(".bs-sev-btn").forEach(n=>n.classList.remove("bs-picked")),t.classList.add("bs-picked")})});let A=null,e=null;I.querySelector("[data-bs-screenshot]")?.addEventListener("click",async()=>{let t=I?.querySelector("[data-bs-shot-title]"),r=I?.querySelector("[data-bs-shot-sub]"),n=I?.querySelector("[data-bs-screenshot]");if(t&&(t.textContent="Capturing..."),I&&(I.style.visibility="hidden"),KA&&(KA.style.visibility="hidden"),await new Promise(s=>setTimeout(s,200)),A=await gs(!0),I&&(I.style.visibility=""),KA&&(KA.style.visibility=""),A){t&&(t.textContent="Screenshot captured!"),r&&(r.textContent="Draw on the image below to highlight the issue"),n?.classList.add("bs-captured");let s=I?.querySelector("[data-bs-annotate]");s&&(e=rf(s,A))}else t&&(t.textContent="Screenshot unavailable"),r&&(r.textContent="Could not capture screenshot on this page")}),I.querySelector("[data-bs-form]")?.addEventListener("submit",async t=>{t.preventDefault();let r=t.target,n=r.querySelector(".bs-submit-btn"),s=r.elements.namedItem("title").value.trim(),a=r.elements.namedItem("description").value.trim(),i=r.elements.namedItem("severity").value,o=r.elements.namedItem("category").value;if(!s)return;n.disabled=!0,n.textContent="Sending...";let l=Ei(),c={projectId:EA.projectId,title:s,description:a,category:o,severity:i,tags:l.tags.length?l.tags:void 0,context:yi(),consoleLogs:jA(),errors:Ae(),networkCaptures:le(),breadcrumbs:Ie(),performance:Te()??void 0,screenshot:A??void 0,annotation:e?.getAnnotation()??void 0,pins:e?.getPins().length?e.getPins():void 0,createdAt:Date.now()},B=await ws(c);zd({title:c.title,description:c.description,category:c.category,severity:c.severity,tags:c.tags,screenshot:c.screenshot,pins:c.pins,url:window.location.href,createdAt:c.createdAt,status:B.success?"sent":"draft"}),B.success?(n.innerHTML=`${nA.check} Bug reported!`,n.classList.add("bs-submit-ok"),setTimeout(RA,1200)):(n.textContent=B.error??"Failed \u2014 saved as draft",n.classList.add("bs-submit-err"),setTimeout(()=>{n.disabled=!1,n.textContent="Submit Report",n.classList.remove("bs-submit-err")},2500))})}function oe(){if(OA)return;OA=!0,At="report",ys(),KA=document.createElement("div"),KA.className="bs-backdrop",document.body.appendChild(KA);let A=le().length,e=Ae().length;I=document.createElement("div"),I.className=`bs-modal bs-ly-${xe.id}`,He(I);let t=`
1621
+ <div class="bs-hist-edit-row"></div>`;let d=i.severity;s.appendChild(a),a.querySelectorAll("[data-edit-sev]").forEach(w=>{w.addEventListener("click",()=>{d=w.dataset.editSev,a.querySelectorAll(".bs-sev-btn").forEach(k=>k.classList.remove("bs-picked")),w.classList.add("bs-picked")})});let p=a.querySelector(".bs-hist-edit-row"),b=document.createElement("button");b.type="button",b.className="bs-hist-save",b.textContent="Save";let y=document.createElement("button");y.type="button",y.className="bs-hist-cancel",y.textContent="Cancel",b.addEventListener("click",()=>{let w=a.querySelector("[data-edit-title]").value.trim(),k=a.querySelector("[data-edit-desc]").value.trim();w&&(Fo(r,{title:w,description:k,severity:d}),bt("history"))}),y.addEventListener("click",()=>a.remove()),p.appendChild(b),p.appendChild(y)})});return}if(We==="settings"){h.querySelectorAll("[data-set-theme]").forEach(n=>{n.addEventListener("click",()=>{let r=n.dataset.setTheme;Kt(r),h.querySelectorAll("[data-set-theme]").forEach(s=>s.classList.remove("bs-picked")),n.classList.add("bs-picked")})}),h.querySelectorAll("[data-set-layout]").forEach(n=>{n.addEventListener("click",()=>{let r=n.dataset.setLayout,s=ot(r);s&&(Ee=s,Z(),setTimeout(()=>{We="settings",be(),setTimeout(()=>bt("settings"),50)},400))})});return}if(We!=="report")return;h.querySelectorAll(".bs-cat-btn").forEach(n=>{n.addEventListener("click",()=>{let r=n.dataset.cat;h.querySelector('input[name="category"]').value=r,h.querySelectorAll(".bs-cat-btn").forEach(s=>s.classList.remove("bs-picked")),n.classList.add("bs-picked")})}),h.querySelectorAll(".bs-sev-btn").forEach(n=>{n.addEventListener("click",()=>{let r=n.dataset.sev;h.querySelector('input[name="severity"]').value=r,h.querySelectorAll(".bs-sev-btn").forEach(s=>s.classList.remove("bs-picked")),n.classList.add("bs-picked")})});let e=null,t=null;h.querySelector("[data-bs-screenshot]")?.addEventListener("click",async()=>{let n=h?.querySelector("[data-bs-shot-title]"),r=h?.querySelector("[data-bs-shot-sub]"),s=h?.querySelector("[data-bs-screenshot]");if(n&&(n.textContent="Capturing..."),h&&(h.style.visibility="hidden"),G&&(G.style.visibility="hidden"),await new Promise(o=>setTimeout(o,200)),e=await mn(!0),h&&(h.style.visibility=""),G&&(G.style.visibility=""),e){n&&(n.textContent="Screenshot captured!"),r&&(r.textContent="Draw on the image below to highlight the issue"),s?.classList.add("bs-captured");let o=h?.querySelector("[data-bs-annotate]");o&&(t=Jo(o,e))}else n&&(n.textContent="Screenshot unavailable"),r&&(r.textContent="Could not capture screenshot on this page")}),h.querySelector("[data-bs-form]")?.addEventListener("submit",async n=>{n.preventDefault();let r=n.target,s=r.querySelector(".bs-submit-btn"),o=r.elements.namedItem("title").value.trim(),i=r.elements.namedItem("description").value.trim(),a=r.elements.namedItem("severity").value,d=r.elements.namedItem("category").value;if(!o)return;s.disabled=!0,s.textContent="Sending...";let p=ns(),b={projectId:V.projectId,title:o,description:i,category:d,severity:a,tags:p.tags.length?p.tags:void 0,context:ts(),consoleLogs:le(),errors:ce(),networkCaptures:fe(),breadcrumbs:Te(),performance:Ae()??void 0,screenshot:e??void 0,annotation:t?.getAnnotation()??void 0,pins:t?.getPins().length?t.getPins():void 0,createdAt:Date.now()},y=await yn(b);qo({title:b.title,description:b.description,category:b.category,severity:b.severity,tags:b.tags,screenshot:b.screenshot,pins:b.pins,url:window.location.href,createdAt:b.createdAt,status:y.success?"sent":"draft"}),y.success?(s.innerHTML=`${H.check} Bug reported!`,s.classList.add("bs-submit-ok"),setTimeout(Z,1200)):(s.textContent=y.error??"Failed \u2014 saved as draft",s.classList.add("bs-submit-err"),setTimeout(()=>{s.disabled=!1,s.textContent="Submit Report",s.classList.remove("bs-submit-err")},2500))})}function be(){if(Q)return;Q=!0,We="report",Mn(),G=document.createElement("div"),G.className="bs-backdrop",oe.appendChild(G);let e=fe().length,t=ce().length;h=document.createElement("div"),h.className=`bs-modal bs-ly-${Ee.id}`,Se(h);let n=`
1618
1622
  <div class="bs-tabs">
1619
- <button class="bs-tab bs-active" data-tab="report">${nA.report} Report</button>
1620
- <button class="bs-tab" data-tab="console">${nA.console} Console <span class="bs-tab-badge">${jA().length}</span></button>
1621
- <button class="bs-tab" data-tab="network">${nA.network} Network ${A?`<span class="bs-tab-badge bs-warn">${A}</span>`:`<span class="bs-tab-badge">${Se().length}</span>`}</button>
1622
- <button class="bs-tab" data-tab="context">${nA.ctx} Context ${e?`<span class="bs-tab-badge bs-warn">${e}</span>`:""}</button>
1623
- <button class="bs-tab" data-tab="history">${nA.history} History <span class="bs-tab-badge">${et().length}</span></button>
1624
- </div>`,r=_A(),n=r?r.name.split(" ").map(B=>B[0]).join("").toUpperCase().slice(0,2):"",s=rn(),a=r?`
1623
+ <button class="bs-tab bs-active" data-tab="report">${H.report} Report</button>
1624
+ <button class="bs-tab" data-tab="console">${H.console} Console <span class="bs-tab-badge">${le().length}</span></button>
1625
+ <button class="bs-tab" data-tab="network">${H.network} Network ${e?`<span class="bs-tab-badge bs-warn">${e}</span>`:`<span class="bs-tab-badge">${Me().length}</span>`}</button>
1626
+ <button class="bs-tab" data-tab="context">${H.ctx} Context ${t?`<span class="bs-tab-badge bs-warn">${t}</span>`:""}</button>
1627
+ <button class="bs-tab" data-tab="history">${H.history} History <span class="bs-tab-badge">${_e().length}</span></button>
1628
+ </div>`,r=ne(),s=r?r.name.split(" ").map(y=>y[0]).join("").toUpperCase().slice(0,2):"",o=Vt(),i=r?`
1625
1629
  <div class="bs-hdr">
1626
1630
  <div class="bs-logo">BugStash</div>
1627
1631
  <div class="bs-hdr-right">
1628
- <button class="bs-pin-toggle${s?" active":""}" data-bs-pin-toggle title="Toggle pin mode">
1632
+ <button class="bs-pin-toggle${o?" active":""}" data-bs-pin-toggle title="Toggle pin mode">
1629
1633
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>
1630
- Pins ${s?"ON":"OFF"}
1634
+ Pins ${o?"ON":"OFF"}
1631
1635
  </button>
1632
1636
  <div class="bs-user-badge">
1633
- <div class="bs-user-avatar">${n}</div>
1637
+ <div class="bs-user-avatar">${s}</div>
1634
1638
  <span>${r.name.split(" ")[0]}</span>
1635
1639
  </div>
1636
- <button class="bs-hdr-icon" data-tab="settings" title="Settings">${nA.settings}</button>
1640
+ <button class="bs-hdr-icon" data-tab="settings" title="Settings">${H.settings}</button>
1637
1641
  <button class="bs-login-logout" data-bs-logout title="Sign out">Logout</button>
1638
- <button class="bs-close-btn" data-bs-close title="Close">${nA.x}</button>
1642
+ <button class="bs-close-btn" data-bs-close title="Close">${H.x}</button>
1639
1643
  </div>
1640
1644
  </div>`:`
1641
1645
  <div class="bs-hdr" style="justify-content:flex-end">
1642
- <button class="bs-close-btn" data-bs-close title="Close">${nA.x}</button>
1643
- </div>`,i=xe.tabPosition==="left",o=xe.tabPosition==="bottom",l=r?xi():Wd();i?I.innerHTML=`
1644
- ${a}
1646
+ <button class="bs-close-btn" data-bs-close title="Close">${H.x}</button>
1647
+ </div>`,a=Ee.tabPosition==="left",d=Ee.tabPosition==="bottom",p=r?rs():No();a?h.innerHTML=`
1648
+ ${i}
1645
1649
  <div class="bs-body-wrap">
1646
- ${r?t:""}
1647
- <div class="bs-scroll">${l}</div>
1648
- </div>`:o?I.innerHTML=`
1649
- ${a}
1650
- <div class="bs-scroll">${l}</div>
1651
- ${r?`<div class="bs-tab-divider"></div>${t}`:""}`:I.innerHTML=`
1652
- ${a}
1653
- ${r?`${t}<div class="bs-tab-divider"></div>`:""}
1654
- <div class="bs-scroll">${l}</div>`,document.body.appendChild(I),oA&&oA.classList.add("bs-open"),requestAnimationFrame(()=>{KA?.classList.add("bs-in"),I?.classList.add("bs-in")}),I.querySelectorAll(".bs-tab").forEach(B=>{B.addEventListener("click",()=>Xt(B.dataset.tab))}),I.querySelector('.bs-hdr-icon[data-tab="settings"]')?.addEventListener("click",()=>Xt("settings")),I.querySelector("[data-bs-close]")?.addEventListener("click",RA),KA.addEventListener("click",RA),I.querySelector("[data-bs-pin-toggle]")?.addEventListener("click",()=>{let B=je(),u=I?.querySelector("[data-bs-pin-toggle]");u&&(u.classList.toggle("active",B),u.innerHTML=`
1650
+ ${r?n:""}
1651
+ <div class="bs-scroll">${p}</div>
1652
+ </div>`:d?h.innerHTML=`
1653
+ ${i}
1654
+ <div class="bs-scroll">${p}</div>
1655
+ ${r?`<div class="bs-tab-divider"></div>${n}`:""}`:h.innerHTML=`
1656
+ ${i}
1657
+ ${r?`${n}<div class="bs-tab-divider"></div>`:""}
1658
+ <div class="bs-scroll">${p}</div>`,oe.appendChild(h),O&&O.classList.add("bs-open"),requestAnimationFrame(()=>{G?.classList.add("bs-in"),h?.classList.add("bs-in")}),h.querySelectorAll(".bs-tab").forEach(y=>{y.addEventListener("click",()=>bt(y.dataset.tab))}),h.querySelector('.bs-hdr-icon[data-tab="settings"]')?.addEventListener("click",()=>bt("settings")),h.querySelector("[data-bs-close]")?.addEventListener("click",Z),G.addEventListener("click",Z),h.querySelector("[data-bs-pin-toggle]")?.addEventListener("click",()=>{let y=Fe(),w=h?.querySelector("[data-bs-pin-toggle]");w&&(w.classList.toggle("active",y),w.innerHTML=`
1655
1659
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>
1656
- Pins ${B?"ON":"OFF"}
1657
- `)}),I.querySelector("[data-bs-logout]")?.addEventListener("click",()=>{Wr(),RA(),setTimeout(()=>oe(),300)}),r?Hi():nf();let c=B=>{B.key==="Escape"&&(RA(),document.removeEventListener("keydown",c))};document.addEventListener("keydown",c)}function nf(){if(!I)return;let A=I.querySelector("#bs-login-submit"),e=I.querySelector("#bs-login-email"),t=I.querySelector("#bs-login-pass"),r=I.querySelector("#bs-login-error");if(!A||!e||!t)return;let n=async()=>{let s=e.value.trim(),a=t.value;if(!s||!a){r.textContent="Please enter email and password",r.style.display="block";return}A.setAttribute("disabled","true"),A.textContent="Signing in...",r.style.display="none";let i=await Jr(s,a,EA.projectId);i.success?(Pt(EA.projectId),Rt(EA.projectId),RA(),setTimeout(()=>oe(),300)):(r.textContent=i.error||"Invalid credentials",r.style.display="block",A.removeAttribute("disabled"),A.textContent="Sign In")};A.addEventListener("click",n),t.addEventListener("keydown",s=>{s.key==="Enter"&&n()}),e.addEventListener("keydown",s=>{s.key==="Enter"&&t.focus()}),setTimeout(()=>e.focus(),100)}function RA(){OA&&(oA&&oA.classList.remove("bs-open"),I&&(I.classList.remove("bs-in"),I.classList.add("bs-out")),KA&&KA.classList.remove("bs-in"),setTimeout(()=>{I?.remove(),KA?.remove(),I=null,KA=null,OA=!1},350))}function He(A){for(let[e,t]of Object.entries(Ce.vars))A.style.setProperty(e,t)}function sn(A){let e=$r(A);e&&(Ce=e,I&&He(I),oA&&He(oA),rA&&He(rA))}function Ii(){return Ce.id}function Li(A){let e=Ot(A);e&&(xe=e,OA&&(RA(),setTimeout(oe,400)))}function Ki(){return xe.id}function Si(A){if(EA=A,!document.getElementById("bs-fonts")){let s=document.createElement("link");s.id="bs-fonts",s.rel="stylesheet",s.href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap",document.head.appendChild(s)}Vt=document.createElement("style"),Vt.textContent=Jd+ci,document.head.appendChild(Vt);let e=A.panelPosition==="bottom-left"?"left":"right";oA=document.createElement("button"),oA.className="bs-fab",He(oA),oA.innerHTML=`${nA.bug}<span class="bs-fab-label">Report a bug</span>`,oA.style[e]="24px",oA.addEventListener("click",()=>OA?RA():oe()),document.body.appendChild(oA),rA=document.createElement("div"),rA.className="bs-toolbar",rA.style[e]="32px",He(rA);let r=navigator.platform.toUpperCase().includes("MAC")?"\u2318":"Ctrl",n=[{icon:nA.cam,tip:"Screenshot",kbd:`${r}+Shift+S`,action:async()=>{let s=await gs(!0);s&&(OA||oe(),setTimeout(()=>{let a=I?.querySelector("[data-bs-screenshot]");if(a){a.__screenshot=s,a.classList.add("bs-captured");let i=a.querySelector("[data-bs-shot-title]"),o=a.querySelector("[data-bs-shot-sub]");i&&(i.textContent="Screenshot captured!"),o&&(o.textContent="Click to retake or annotate"),a.click()}},400))}},{icon:nA.pin,tip:"Toggle Pins",kbd:`${r}+Shift+P`,id:"bs-tb-pin",action:()=>{if(!_A()){OA||oe();return}document.getElementById("bugstash-live-pins")||(Pt(EA.projectId),Rt(EA.projectId));let a=je(),i=rA?.querySelector("#bs-tb-pin");i&&i.classList.toggle("bs-active",a);let o=I?.querySelector("[data-bs-pin-toggle]");o&&(o.classList.toggle("active",a),o.innerHTML=`
1660
+ Pins ${y?"ON":"OFF"}
1661
+ `)}),h.querySelector("[data-bs-logout]")?.addEventListener("click",()=>{Bt(),Z(),setTimeout(()=>be(),300)}),r?ss():Ko();let b=y=>{y.key==="Escape"&&(Z(),document.removeEventListener("keydown",b))};document.addEventListener("keydown",b)}function Ko(){if(!h)return;let e=h.querySelector("#bs-login-submit"),t=h.querySelector("#bs-login-email"),n=h.querySelector("#bs-login-pass"),r=h.querySelector("#bs-login-error");if(!e||!t||!n)return;let s=async()=>{let o=t.value.trim(),i=n.value;if(!o||!i){r.textContent="Please enter email and password",r.style.display="block";return}e.setAttribute("disabled","true"),e.textContent="Signing in...",r.style.display="none";let a=await Dt(o,i,V.projectId);a.success?(ct(V.projectId,oe),it(V.projectId),Z(),setTimeout(()=>be(),300)):(r.textContent=a.error||"Invalid credentials",r.style.display="block",e.removeAttribute("disabled"),e.textContent="Sign In")};e.addEventListener("click",s),n.addEventListener("keydown",o=>{o.key==="Enter"&&s()}),t.addEventListener("keydown",o=>{o.key==="Enter"&&n.focus()}),setTimeout(()=>t.focus(),100)}function Z(){Q&&(O&&O.classList.remove("bs-open"),h&&(h.classList.remove("bs-in"),h.classList.add("bs-out")),G&&G.classList.remove("bs-in"),setTimeout(()=>{h?.remove(),G?.remove(),h=null,G=null,Q=!1},350))}function Se(e){for(let[t,n]of Object.entries(ye.vars))e.style.setProperty(t,n)}function Kt(e){let t=jt(e);t&&(ye=t,h&&Se(h),O&&Se(O),I&&Se(I))}function os(){return ye.id}function is(e){let t=ot(e);t&&(Ee=t,Q&&(Z(),setTimeout(be,400)))}function as(){return Ee.id}function ls(e,t){V=e,oe=t,dt=document.createElement("style"),dt.textContent=`
1662
+ @import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
1663
+ ${Oo}
1664
+ ${Nr}
1665
+ `,oe.appendChild(dt);let n=e.panelPosition==="bottom-left"?"left":"right";O=document.createElement("button"),O.className="bs-fab",Se(O),O.innerHTML=`${H.bug}<span class="bs-fab-label">Report a bug</span>`,O.style[n]="24px",O.addEventListener("click",()=>Q?Z():be()),oe.appendChild(O),I=document.createElement("div"),I.className="bs-toolbar",I.style[n]="32px",Se(I);let s=navigator.platform.toUpperCase().includes("MAC")?"\u2318":"Ctrl",o=[{icon:H.cam,tip:"Screenshot",kbd:`${s}+Shift+S`,action:async()=>{let i=await mn(!0);i&&(Q||be(),setTimeout(()=>{let a=h?.querySelector("[data-bs-screenshot]");if(a){a.__screenshot=i,a.classList.add("bs-captured");let d=a.querySelector("[data-bs-shot-title]"),p=a.querySelector("[data-bs-shot-sub]");d&&(d.textContent="Screenshot captured!"),p&&(p.textContent="Click to retake or annotate"),a.click()}},400))}},{icon:H.pin,tip:"Toggle Pins",kbd:`${s}+Shift+P`,id:"bs-tb-pin",action:()=>{if(!ne()){Q||be();return}oe?.querySelector("#bugstash-live-pins")||(ct(V.projectId,oe),it(V.projectId));let a=Fe(),d=I?.querySelector("#bs-tb-pin");d&&d.classList.toggle("bs-active",a);let p=h?.querySelector("[data-bs-pin-toggle]");p&&(p.classList.toggle("active",a),p.innerHTML=`
1658
1666
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>
1659
1667
  Pins ${a?"ON":"OFF"}
1660
- `)}},{icon:Ce.id==="black"?nA.sun:nA.moon,tip:"Toggle Theme",kbd:`${r}+Shift+T`,id:"bs-tb-theme",action:()=>{let s=Ce.id==="black"?"white":"black";sn(s),rA&&He(rA);let a=rA?.querySelector("#bs-tb-theme");a&&(a.innerHTML=`${Ce.id==="black"?nA.sun:nA.moon}<span class="bs-toolbar-tip">${Ce.id==="black"?"Light":"Dark"} Mode<span class="bs-toolbar-kbd">${r}+Shift+T</span></span>`)}},{icon:nA.report,tip:"Open Panel",kbd:`${r}+Shift+B`,action:()=>{OA?RA():oe()}}];for(let s of n){let a=document.createElement("button");a.className="bs-toolbar-btn",s.id&&(a.id=s.id),a.innerHTML=`${s.icon}<span class="bs-toolbar-tip">${s.tip}<span class="bs-toolbar-kbd">${s.kbd}</span></span>`,a.addEventListener("click",i=>{i.stopPropagation(),s.action()}),rA.appendChild(a)}document.body.appendChild(rA),oA.addEventListener("mouseenter",()=>{OA||Ui()}),oA.addEventListener("mouseleave",s=>{let a=s.relatedTarget;rA?.contains(a)||ys()}),rA.addEventListener("mouseenter",()=>Ui()),rA.addEventListener("mouseleave",s=>{let a=s.relatedTarget;oA?.contains(a)||ys()}),_t=s=>{(s.ctrlKey||s.metaKey)&&s.shiftKey&&(s.key==="B"||s.key==="b"?(s.preventDefault(),OA?RA():oe()):s.key==="S"||s.key==="s"?(s.preventDefault(),n[0].action()):s.key==="P"||s.key==="p"?(s.preventDefault(),n[1].action()):(s.key==="T"||s.key==="t")&&(s.preventDefault(),n[2].action()))},document.addEventListener("keydown",_t)}function Ui(){nn||OA||(nn=!0,rA?.classList.add("bs-show"))}function ys(){nn=!1,rA?.classList.remove("bs-show")}function Ti(){RA(),oA?.remove(),oA=null,rA?.remove(),rA=null,nn=!1,Vt?.remove(),Vt=null,document.getElementById("bs-fonts")?.remove(),_t&&document.removeEventListener("keydown",_t),_t=null}var ZA=null,eA=null,N=null,ie=null,an="freehand",on="#ef4444",sf=3,tt=[],xA=null,Jt=!1,ln=null,af=[{id:"freehand",label:"Draw",icon:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z"},{id:"rectangle",label:"Rect",icon:"M3 3h18v18H3V3zm2 2v14h14V5H5z"},{id:"circle",label:"Circle",icon:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},{id:"arrow",label:"Arrow",icon:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}],of=["#ef4444","#f97316","#eab308","#22c55e","#3b82f6","#8b5cf6","#ffffff","#000000"];function Mi(A){return new Promise(e=>{ln=e,tt=[],xA=null,an="freehand",on="#ef4444",lf(A)})}function lf(A){ZA&&ZA.remove(),ZA=document.createElement("div"),ZA.id="bs-annotation-overlay";let e=document.createElement("style");e.textContent=`
1668
+ `)}},{icon:ye.id==="black"?H.sun:H.moon,tip:"Toggle Theme",kbd:`${s}+Shift+T`,id:"bs-tb-theme",action:()=>{let i=ye.id==="black"?"white":"black";Kt(i),I&&Se(I);let a=I?.querySelector("#bs-tb-theme");a&&(a.innerHTML=`${ye.id==="black"?H.sun:H.moon}<span class="bs-toolbar-tip">${ye.id==="black"?"Light":"Dark"} Mode<span class="bs-toolbar-kbd">${s}+Shift+T</span></span>`)}},{icon:H.report,tip:"Open Panel",kbd:`${s}+Shift+B`,action:()=>{Q?Z():be()}}];for(let i of o){let a=document.createElement("button");a.className="bs-toolbar-btn",i.id&&(a.id=i.id),a.innerHTML=`${i.icon}<span class="bs-toolbar-tip">${i.tip}<span class="bs-toolbar-kbd">${i.kbd}</span></span>`,a.addEventListener("click",d=>{d.stopPropagation(),i.action()}),I.appendChild(a)}oe.appendChild(I),O.addEventListener("mouseenter",()=>{Q||Qr()}),O.addEventListener("mouseleave",i=>{let a=i.relatedTarget;I?.contains(a)||Mn()}),I.addEventListener("mouseenter",()=>Qr()),I.addEventListener("mouseleave",i=>{let a=i.relatedTarget;O?.contains(a)||Mn()}),pt=i=>{(i.ctrlKey||i.metaKey)&&i.shiftKey&&(i.key==="B"||i.key==="b"?(i.preventDefault(),Q?Z():be()):i.key==="S"||i.key==="s"?(i.preventDefault(),o[0].action()):i.key==="P"||i.key==="p"?(i.preventDefault(),o[1].action()):(i.key==="T"||i.key==="t")&&(i.preventDefault(),o[2].action()))},document.addEventListener("keydown",pt)}function Qr(){Jt||Q||(Jt=!0,I?.classList.add("bs-show"))}function Mn(){Jt=!1,I?.classList.remove("bs-show")}function cs(){Z(),O?.remove(),O=null,I?.remove(),I=null,Jt=!1,dt?.remove(),dt=null,oe=null,pt&&document.removeEventListener("keydown",pt),pt=null}var ie=null,R=null,E=null,ue=null,Gt="freehand",Qt="#ef4444",Go=3,Xe=[],J=null,ut=!1,Zt=null,Qo=[{id:"freehand",label:"Draw",icon:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z"},{id:"rectangle",label:"Rect",icon:"M3 3h18v18H3V3zm2 2v14h14V5H5z"},{id:"circle",label:"Circle",icon:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},{id:"arrow",label:"Arrow",icon:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}],Zo=["#ef4444","#f97316","#eab308","#22c55e","#3b82f6","#8b5cf6","#ffffff","#000000"];function bs(e){return new Promise(t=>{Zt=t,Xe=[],J=null,Gt="freehand",Qt="#ef4444",ei(e)})}function ei(e){ie&&ie.remove(),ie=document.createElement("div"),ie.id="bs-annotation-overlay";let t=document.createElement("style");t.textContent=`
1661
1669
  #bs-annotation-overlay {
1662
1670
  position: fixed; inset: 0; z-index: 2147483647;
1663
1671
  background: rgba(0,0,0,0.85);
@@ -1702,28 +1710,5 @@ ${e.stack??""}`;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{
1702
1710
  overflow: hidden; padding: 16px;
1703
1711
  }
1704
1712
  .bs-ann-canvas-wrap canvas { cursor: crosshair; border-radius: 4px; }
1705
- `,ZA.appendChild(e);let t=document.createElement("div");t.className="bs-ann-toolbar";for(let i of af){let o=document.createElement("button");o.className=`bs-ann-tool${i.id===an?" active":""}`,o.title=i.label,o.innerHTML=`<svg viewBox="0 0 24 24"><path d="${i.icon}"/></svg>`,o.addEventListener("click",()=>{an=i.id,t.querySelectorAll(".bs-ann-tool").forEach(l=>l.classList.remove("active")),o.classList.add("active")}),t.appendChild(o)}t.appendChild(Di());for(let i of of){let o=document.createElement("button");o.className=`bs-ann-color${i===on?" active":""}`,o.style.background=i,o.addEventListener("click",()=>{on=i,t.querySelectorAll(".bs-ann-color").forEach(l=>l.classList.remove("active")),o.classList.add("active")}),t.appendChild(o)}t.appendChild(Di());let r=document.createElement("button");r.className="bs-ann-btn bs-ann-undo",r.textContent="Undo",r.addEventListener("click",()=>{tt.pop(),cn()}),t.appendChild(r);let n=document.createElement("button");n.className="bs-ann-btn bs-ann-save",n.textContent="Save",n.addEventListener("click",Bf);let s=document.createElement("button");s.className="bs-ann-btn bs-ann-cancel",s.textContent="Cancel",s.addEventListener("click",()=>{xs(),ln?.(null)}),t.appendChild(n),t.appendChild(s),ZA.appendChild(t);let a=document.createElement("div");a.className="bs-ann-canvas-wrap",eA=document.createElement("canvas"),N=eA.getContext("2d"),a.appendChild(eA),ZA.appendChild(a),document.body.appendChild(ZA),ie=new Image,ie.onload=()=>{if(!eA||!N||!ie)return;let i=window.innerWidth-32,o=window.innerHeight-100,l=ie.width,c=ie.height,B=Math.min(1,i/l,o/c);l=Math.round(l*B),c=Math.round(c*B),eA.width=l,eA.height=c,cn(),cf()},ie.src=A}function Di(){let A=document.createElement("div");return A.className="bs-ann-sep",A}function cf(){if(!eA)return;eA.addEventListener("mousedown",e=>{Jt=!0;let{x:t,y:r}=ki(e);xA={type:an,color:on,lineWidth:sf,points:[{x:t,y:r}],x:t,y:r,width:0,height:0}}),eA.addEventListener("mousemove",e=>{if(!Jt||!xA)return;let{x:t,y:r}=ki(e);xA.type==="freehand"?xA.points.push({x:t,y:r}):(xA.width=t-xA.x,xA.height=r-xA.y),cn(),Oi(xA)});let A=()=>{Jt&&xA&&(tt.push(xA),xA=null),Jt=!1,cn()};eA.addEventListener("mouseup",A),eA.addEventListener("mouseleave",A)}function ki(A){let e=eA.getBoundingClientRect();return{x:A.clientX-e.left,y:A.clientY-e.top}}function cn(){if(!(!N||!eA||!ie)){N.clearRect(0,0,eA.width,eA.height),N.drawImage(ie,0,0,eA.width,eA.height);for(let A of tt)Oi(A)}}function Oi(A){if(N)switch(N.strokeStyle=A.color,N.fillStyle=A.color,N.lineWidth=A.lineWidth,N.lineCap="round",N.lineJoin="round",A.type){case"freehand":{if(!A.points||A.points.length<2)return;N.beginPath(),N.moveTo(A.points[0].x,A.points[0].y);for(let e=1;e<A.points.length;e++)N.lineTo(A.points[e].x,A.points[e].y);N.stroke();break}case"rectangle":{N.strokeRect(A.x,A.y,A.width,A.height);break}case"circle":{let e=A.x+A.width/2,t=A.y+A.height/2,r=Math.abs(A.width)/2,n=Math.abs(A.height)/2;N.beginPath(),N.ellipse(e,t,r,n,0,0,Math.PI*2),N.stroke();break}case"arrow":{let e=A.x,t=A.y,r=A.x+A.width,n=A.y+A.height,s=14,a=Math.atan2(n-t,r-e);N.beginPath(),N.moveTo(e,t),N.lineTo(r,n),N.stroke(),N.beginPath(),N.moveTo(r,n),N.lineTo(r-s*Math.cos(a-Math.PI/6),n-s*Math.sin(a-Math.PI/6)),N.lineTo(r-s*Math.cos(a+Math.PI/6),n-s*Math.sin(a+Math.PI/6)),N.closePath(),N.fill();break}}}function Bf(){if(!eA){xs(),ln?.(null);return}let e={dataUrl:eA.toDataURL("image/png"),annotations:tt};xs(),ln?.(e)}function xs(){ZA?.remove(),ZA=null,eA=null,N=null,ie=null,tt=[],xA=null,Jt=!1}var Bn=!1;function uf(){if(typeof window>"u")return"production";let A=window.location.hostname;return A==="localhost"||A==="127.0.0.1"||A==="0.0.0.0"||A.endsWith(".local")||/^192\.168\./.test(A)||/^10\./.test(A)||/^172\.(1[6-9]|2\d|3[01])\./.test(A)?"development":A.includes("staging")||A.includes("stage")||A.includes("preview")||A.includes("preprod")||A.includes("pre-prod")||A.includes("qa.")||A.includes(".qa")||A.includes("test.")||A.includes(".dev.")||A.includes("vercel.app")||A.includes("netlify.app")||A.includes("pages.dev")||A.includes("ngrok.io")||A.includes("ngrok-free.app")||A.includes("localhost.run")||A.includes("loca.lt")?"staging":"production"}var Ri={init(A){Bn||typeof window>"u"||(A.environment??uf())==="production"||(Bn=!0,A.endpoint&&jo(A.endpoint),Ls(A.maxBreadcrumbs),ks(A.maxLogs),Gs(A.maxNetworkCaptures),_s(),A.enablePerformance!==!1&&Ws(),Si(A),A.enableLivePins!==!1&&_A()&&(Pt(A.projectId),Rt(A.projectId)))},destroy(){Bn&&(Ti(),hi(),ui(),Os(),Vs(),Js(),Ss(),Ys(),Bn=!1)},getLogs:jA,clearLogs:Ms,getNetworkCaptures:Se,getFailedNetworkCaptures:le,clearNetworkCaptures:Ps,getErrors:Ae,clearErrors:Xs,getBreadcrumbs:Ie,clearBreadcrumbs:Ks,getPerformanceMetrics:Te,addBreadcrumb:UA,getThemes:zr,getThemeById:$r,setTheme:sn,getCurrentThemeId:Ii,getLayouts:Zr,getLayoutById:Ot,setLayout:Li,getCurrentLayoutId:Ki,getCurrentUser:_A,login:Jr,logout:Wr,togglePinMode:je,isPinModeActive:rn,isConnected:gi,openAnnotationEditor:Mi,redactString:Le,redactObject:zt},gf=Ri;0&&(module.exports={BugStash});
1706
- /*! Bundled license information:
1707
-
1708
- html2canvas/dist/html2canvas.esm.js:
1709
- (*!
1710
- * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
1711
- * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
1712
- * Released under MIT License
1713
- *)
1714
- (*! *****************************************************************************
1715
- Copyright (c) Microsoft Corporation.
1716
-
1717
- Permission to use, copy, modify, and/or distribute this software for any
1718
- purpose with or without fee is hereby granted.
1719
-
1720
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1721
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1722
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1723
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1724
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1725
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1726
- PERFORMANCE OF THIS SOFTWARE.
1727
- ***************************************************************************** *)
1728
- */
1713
+ `,ie.appendChild(t);let n=document.createElement("div");n.className="bs-ann-toolbar";for(let a of Qo){let d=document.createElement("button");d.className=`bs-ann-tool${a.id===Gt?" active":""}`,d.title=a.label,d.innerHTML=`<svg viewBox="0 0 24 24"><path d="${a.icon}"/></svg>`,d.addEventListener("click",()=>{Gt=a.id,n.querySelectorAll(".bs-ann-tool").forEach(p=>p.classList.remove("active")),d.classList.add("active")}),n.appendChild(d)}n.appendChild(ds());for(let a of Zo){let d=document.createElement("button");d.className=`bs-ann-color${a===Qt?" active":""}`,d.style.background=a,d.addEventListener("click",()=>{Qt=a,n.querySelectorAll(".bs-ann-color").forEach(p=>p.classList.remove("active")),d.classList.add("active")}),n.appendChild(d)}n.appendChild(ds());let r=document.createElement("button");r.className="bs-ann-btn bs-ann-undo",r.textContent="Undo",r.addEventListener("click",()=>{Xe.pop(),en()}),n.appendChild(r);let s=document.createElement("button");s.className="bs-ann-btn bs-ann-save",s.textContent="Save",s.addEventListener("click",ni);let o=document.createElement("button");o.className="bs-ann-btn bs-ann-cancel",o.textContent="Cancel",o.addEventListener("click",()=>{Rn(),Zt?.(null)}),n.appendChild(s),n.appendChild(o),ie.appendChild(n);let i=document.createElement("div");i.className="bs-ann-canvas-wrap",R=document.createElement("canvas"),E=R.getContext("2d"),i.appendChild(R),ie.appendChild(i),document.body.appendChild(ie),ue=new Image,ue.onload=()=>{if(!R||!E||!ue)return;let a=window.innerWidth-32,d=window.innerHeight-100,p=ue.width,b=ue.height,y=Math.min(1,a/p,d/b);p=Math.round(p*y),b=Math.round(b*y),R.width=p,R.height=b,en(),ti()},ue.src=e}function ds(){let e=document.createElement("div");return e.className="bs-ann-sep",e}function ti(){if(!R)return;R.addEventListener("mousedown",t=>{ut=!0;let{x:n,y:r}=ps(t);J={type:Gt,color:Qt,lineWidth:Go,points:[{x:n,y:r}],x:n,y:r,width:0,height:0}}),R.addEventListener("mousemove",t=>{if(!ut||!J)return;let{x:n,y:r}=ps(t);J.type==="freehand"?J.points.push({x:n,y:r}):(J.width=n-J.x,J.height=r-J.y),en(),us(J)});let e=()=>{ut&&J&&(Xe.push(J),J=null),ut=!1,en()};R.addEventListener("mouseup",e),R.addEventListener("mouseleave",e)}function ps(e){let t=R.getBoundingClientRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}function en(){if(!(!E||!R||!ue)){E.clearRect(0,0,R.width,R.height),E.drawImage(ue,0,0,R.width,R.height);for(let e of Xe)us(e)}}function us(e){if(E)switch(E.strokeStyle=e.color,E.fillStyle=e.color,E.lineWidth=e.lineWidth,E.lineCap="round",E.lineJoin="round",e.type){case"freehand":{if(!e.points||e.points.length<2)return;E.beginPath(),E.moveTo(e.points[0].x,e.points[0].y);for(let t=1;t<e.points.length;t++)E.lineTo(e.points[t].x,e.points[t].y);E.stroke();break}case"rectangle":{E.strokeRect(e.x,e.y,e.width,e.height);break}case"circle":{let t=e.x+e.width/2,n=e.y+e.height/2,r=Math.abs(e.width)/2,s=Math.abs(e.height)/2;E.beginPath(),E.ellipse(t,n,r,s,0,0,Math.PI*2),E.stroke();break}case"arrow":{let t=e.x,n=e.y,r=e.x+e.width,s=e.y+e.height,o=14,i=Math.atan2(s-n,r-t);E.beginPath(),E.moveTo(t,n),E.lineTo(r,s),E.stroke(),E.beginPath(),E.moveTo(r,s),E.lineTo(r-o*Math.cos(i-Math.PI/6),s-o*Math.sin(i-Math.PI/6)),E.lineTo(r-o*Math.cos(i+Math.PI/6),s-o*Math.sin(i+Math.PI/6)),E.closePath(),E.fill();break}}}function ni(){if(!R){Rn(),Zt?.(null);return}let t={dataUrl:R.toDataURL("image/png"),annotations:Xe};Rn(),Zt?.(t)}function Rn(){ie?.remove(),ie=null,R=null,E=null,ue=null,Xe=[],J=null,ut=!1}var ft=!1,mt=null;function ri(){if(mt)return mt;let e=document.createElement("bugstash-root");return e.style.setProperty("position","fixed","important"),e.style.setProperty("inset","0","important"),e.style.setProperty("pointer-events","none","important"),e.style.setProperty("z-index","2147483640","important"),e.style.setProperty("display","block","important"),e.style.setProperty("visibility","visible","important"),e.style.setProperty("opacity","1","important"),e.style.setProperty("margin","0","important"),e.style.setProperty("padding","0","important"),e.style.setProperty("border","none","important"),e.style.setProperty("background","none","important"),e.style.setProperty("font-size","16px","important"),mt=e.attachShadow({mode:"open"}),document.body.appendChild(e),mt}function ms(e){if(ft)return;ft=!0;let t=ri();qn(e.maxBreadcrumbs),Xn(e.maxLogs),Gn(e.maxNetworkCaptures),er(),e.enablePerformance!==!1&&rr(),ls(e,t),e.enableLivePins!==!1&&ne()&&(ct(e.projectId,t),it(e.projectId))}function si(){if(typeof window>"u")return"production";let e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e==="0.0.0.0"||e.endsWith(".local")||/^192\.168\./.test(e)||/^10\./.test(e)||/^172\.(1[6-9]|2\d|3[01])\./.test(e)?"development":e.includes("staging")||e.includes("stage")||e.includes("preview")||e.includes("preprod")||e.includes("pre-prod")||e.includes("qa.")||e.includes(".qa")||e.includes("test.")||e.includes(".dev.")||e.includes("vercel.app")||e.includes("netlify.app")||e.includes("pages.dev")||e.includes("ngrok.io")||e.includes("ngrok-free.app")||e.includes("localhost.run")||e.includes("loca.lt")?"staging":"production"}var fs={init(e){if(ft||typeof window>"u"||(e.environment??si())==="production")return;e.endpoint&&Tr(e.endpoint);let n=window.location.hostname;n==="localhost"||n==="127.0.0.1"||n==="0.0.0.0"||n.endsWith(".local")||/^192\.168\./.test(n)||/^10\./.test(n)||/^172\.(1[6-9]|2\d|3[01])\./.test(n)?ms(e):Hr(e.projectId).then(s=>{s&&ms(e)}).catch(()=>{})},destroy(){ft&&(cs(),Yr(),qr(),Vn(),Zn(),nr(),Fn(),sr(),document.querySelector("bugstash-root")?.remove(),mt=null,ft=!1)},getLogs:le,clearLogs:Yn,getNetworkCaptures:Me,getFailedNetworkCaptures:fe,clearNetworkCaptures:Qn,getErrors:ce,clearErrors:tr,getBreadcrumbs:Te,clearBreadcrumbs:Un,getPerformanceMetrics:Ae,addBreadcrumb:Y,getThemes:Nt,getThemeById:jt,setTheme:Kt,getCurrentThemeId:os,getLayouts:qt,getLayoutById:ot,setLayout:is,getCurrentLayoutId:as,getCurrentUser:ne,login:Dt,logout:Bt,togglePinMode:Fe,isPinModeActive:Vt,isConnected:Ur,openAnnotationEditor:bs,redactString:Pe,redactObject:Et},oi=fs;0&&(module.exports={BugStash});
1729
1714
  //# sourceMappingURL=index.cjs.map