PageSourceSearch

https://www.bitunix.link/web/bitunix-assets/web/index-DPaEnU5g.js

js bitunix.link collected 2026-09-29 01:35:04 UTC 295,393 bytes, 50 lines download raw bytes

1/* empty css                      */import{h as Ia,dO as Ye,dP as yr,l as Ca,ae as xa,dQ as Oa}from"./entry-HKDfTNag.js";import{P as Aa}from"./index-Dv6PikYA.js";import{S as Ea}from"./index-3nJw-h5O.js";import{I as Ma}from"./index-Dnm593ox.js";import{createApp as Ra,defineComponent as Ta,useModel as Fa,ref as Kr,reactive as Na,onMounted as Da,computed as za,watch as La,openBlock as $e,createElementBlock as qr,unref as xe,createElementVNode as et,toDisplayString as Ue,createVNode as yt,createCommentVNode as _s,createBlock as Ht,withCtx as Je,createTextVNode as wt,mergeModels as Is}from"../shared/vue-fb74e52b2d.js";import{_ as Pa}from"./routes-DhmYHDMv.js";import{useI18n as Ba}from"../shared/vue-fb74e52b2d.js";import{c as Ua}from"./copyDetail-lbXnhYet.js";import"../shared/lib-37f092f0a7.js";/* empty css              *//* empty css                */import"../shared/vue-fb74e52b2d.js";import"../shared/track-d38d16ec9e.js";import"../shared/vue-fb74e52b2d.js";import"../shared/vendor-c844df931c.js";import"./index.es-BQ-G1iIT.js";import"./index-BmtyIiDY.js";(function(){try{var e=[],t=typeof globalThis<"u"?globalThis:void 0,r=typeof window<"u"?window:void 0,n=typeof self<"u"?self:void 0,s=typeof global<"u"?global:void 0,i=typeof document<"u"?document:void 0,a=t&&t.Error||r&&r.Error||n&&n.Error||s&&s.Error||Error,o=new a().stack,l=function(p){try{p&&e.indexOf(p)===-1&&e.push(p)}catch{}};l(t),l(r),l(n),l(s);try{i&&l(i.defaultView)}catch{}try{r&&(l(r.window),l(r.parent),l(r.top))}catch{}if(o)for(var h=0;h<e.length;h++)try{var f=e[h];f._armsRumDebugIds=f._armsRumDebugIds||{},f._armsRumDebugIds[o]="7a9dbf58-8003-4b8e-8fe5-266ea1e3bd0c",f._armsRumDebugIdIdentifier="armsRum-uuid-7a9dbf58-8003-4b8e-8fe5-266ea1e3bd0c"}catch{}}catch{}})();const ja=""+new URL("debug-tool-slogan.DC9kFqHr.png",import.meta.url).href;function Wa(){const e={connectionType:null,effectiveType:null,downlink:null,rtt:null,saveData:null};if("connection"in navigator){const t=navigator.connection;e.connectionType=t.type||null,e.effectiveType=t.effectiveType||null,e.downlink=t.downlink?t.downlink+" Mbps":null,e.rtt=t.rtt?t.rtt+" ms":null,e.saveData=t.saveData||!1}return e}async function Za(e,t,r=3e4){const n=performance.now();try{const s=Date.now(),i=Math.random().toString(36).substring(2,15),a=`${s}_${i}_${t}`,l=`${Ia().app.cdnURL}/videos/homeindex-video.mp4?_test=${a}&_size=${e}&_t=${s}`,h=new AbortController,f=setTimeout(()=>h.abort(),r),p=await fetch(l,{method:"GET",cache:"no-cache",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"},signal:h.signal});if(clearTimeout(f),!p.ok)throw new Error(`HTTP ${p.status}: ${p.statusText}`);const m=await p.blob(),w=(performance.now()-n)/1e3,b=m.size/1024,y=b/1024,S=b*8/w/1024;return{testNumber:t,fileSize:y>1?`${y.toFixed(2)} MB`:`${b.toFixed(2)} KB`,duration:`${w.toFixed(2)}s`,speed:`${S.toFixed(2)} Mbps`,speedMbps:parseFloat(S.toFixed(2)),success:!0}}catch(s){const a=(performance.now()-n)/1e3;let o="Unknown error";return s instanceof Error&&(s.name==="AbortError"?o="Test timeout":o=s.message),{testNumber:t,fileSize:`${(e/1024).toFixed(2)} KB`,duration:`${a.toFixed(2)}s`,speed:"0 Mbps",speedMbps:0,success:!1,error:o}}}async function Va(e={}){const{testCount:t=5,testSizes:r=[512*1024,1024*1024,2048*1024],timeout:n=3e4,concurrency:s=2}=e,i=[],a=performance.now();let o=1;for(let B=0;B<t;B++){const $=[];for(let T=0;T<Math.min(s,r.length);T++){const g=(B+T)%r.length,P=r[g];P!==void 0&&$.push(Za(P,o++,n))}const I=await Promise.all($);i.push(...I),B<t-1&&await new Promise(T=>setTimeout(T,1e3))}const h=(performance.now()-a)/1e3,f=i.filter(B=>B.success),p=f.map(B=>B.speedMbps);if(p.length===0)return{averageSpeed:"0 Mbps",maxSpeed:"0 Mbps",minSpeed:"0 Mbps",medianSpeed:"0 Mbps",speedMbps:0,totalDataTransferred:"0 KB",totalTestTime:`${h.toFixed(2)}s`,quality:{stability:"0%",grade:"测试失败",suggestions:["所有带宽测试都失败了,请检查网络连接"]}};const m=p.reduce((B,$)=>B+$,0)/p.length,d=Math.max(...p),w=Math.min(...p),u=[...p].sort((B,$)=>B-$);let b=0;if(u.length>0)if(u.length%2===0){const B=u[u.length/2-1]||0,$=u[u.length/2]||0;b=(B+$)/2}else b=u[Math.floor(u.length/2)]||0;const y=1024*1024,v=f.length*y/(1024*1024),S=p.reduce((B,$)=>B+Math.pow($-m,2),0)/p.length,x=Math.sqrt(S)/m,M=Math.max(0,100-x*100);let A;const z=[];m>=50?(A="优秀",z.push("网络速度非常快,适合高清视频和大文件传输")):m>=25?(A="良好",z.push("网络速度良好,适合日常使用和流媒体")):m>=10?(A="一般",z.push("网络速度一般,可能影响高清视频播放")):m>=5?(A="较慢",z.push("网络速度较慢,建议优化网络连接")):(A="很慢",z.push("网络速度很慢,严重影响使用体验")),M<70&&z.push("网络速度不稳定,可能存在网络波动");const R=f.length/i.length*100;return R<80&&z.push(`测试成功率较低 (${R.toFixed(1)}%),网络可能不稳定`),{averageSpeed:`${m.toFixed(2)} Mbps`,maxSpeed:`${d.toFixed(2)} Mbps`,minSpeed:`${w.toFixed(2)}
1 Mbps`,medianSpeed:`${b.toFixed(2)} Mbps`,speedMbps:parseFloat(m.toFixed(2)),totalDataTransferred:`${v.toFixed(2)} MB`,totalTestTime:`${h.toFixed(2)}s`,quality:{stability:`${M.toFixed(1)}%`,grade:A,suggestions:z}}}async function Ha(){const e=Wa(),t=await Va({testCount:3,testSizes:[256*1024,512*1024,1024*1024],timeout:15e3,concurrency:1});return{apiDownlink:e.downlink,effectiveType:e.effectiveType,connectionType:e.connectionType,rtt:e.rtt,saveData:e.saveData,connectInfo:{duration:t.totalTestTime,speed:t.averageSpeed,speedKbps:`${(t.speedMbps*1024).toFixed(2)} Kbps`,fileSize:t.totalDataTransferred,maxSpeed:t.maxSpeed,minSpeed:t.minSpeed,medianSpeed:t.medianSpeed,quality:t.quality,averageSpeed:t.averageSpeed}}}function Ga(e){return new Promise(t=>{const r=performance.now();let n=null,s=null;const i=`api-request-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,a=`${e}${e.includes("?")?"&":"?"}_reqId=${i}`;let o=null,l=null;"PerformanceObserver"in window&&(o=new PerformanceObserver(h=>{const p=h.getEntries().find(m=>m.name.includes(i));p&&(l=p)}),o.observe({entryTypes:["resource"]})),fetch(a,{method:"GET",cache:"no-cache",headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}}).then(h=>(n=performance.now(),h.text().then(f=>(s=performance.now(),{response:h,body:f})))).then(({response:h})=>{const f=performance.now(),p=(f-r).toFixed(2);setTimeout(()=>{o&&o.disconnect();let m=l;if(m||(m=performance.getEntriesByType("resource").find(u=>u.name.includes(i))||null),!m){const w=performance.getEntriesByType("resource");try{const u=new URL(e),b=e.split("?")[0]||"",y=w.filter(v=>v.startTime>=r-100&&v.startTime<=f+100&&(v.name.includes(b)||v.name.includes(u.hostname)));m=y[y.length-1]||null}catch{const u=e.split("?")[0]||"",b=w.filter(y=>y.startTime>=r-100&&y.startTime<=f+100&&y.name.includes(u));m=b[b.length-1]||null}}const d={totalTime:p+"ms",status:h.status,statusText:h.statusText,url:e,timestamp:new Date().toISOString()};if(m){const w=m.transferSize===0&&m.decodedBodySize>0,u=m.connectStart===0&&m.connectEnd===0,b=m.domainLookupStart===m.domainLookupEnd,y=m.domainLookupStart===0&&m.connectStart===0&&m.requestStart===0,v=m.domainLookupEnd-m.domainLookupStart,S=m.connectEnd-m.connectStart,C=m.secureConnectionStart>0?m.connectEnd-m.secureConnectionStart:0,x=m.responseStart-m.requestStart,M=m.responseEnd-m.responseStart,A=[];
1w&&A.push("资源来自缓存"),u&&!w&&A.push("复用已有连接"),b&&!w&&A.push("DNS来自缓存"),y&&A.push("跨域限制(需要Timing-Allow-Origin头)"),d.timing={dnsTime:v>=0?v.toFixed(2)+"ms":"0ms",tcpTime:S>=0?S.toFixed(2)+"ms":"0ms",tlsTime:C>0?C.toFixed(2)+"ms":"0ms",requestTime:x>=0?x.toFixed(2)+"ms":"0ms",responseTime:M>=0?M.toFixed(2)+"ms":"0ms",redirectTime:m.redirectEnd>0?(m.redirectEnd-m.redirectStart).toFixed(2)+"ms":"0ms",fetchStart:m.fetchStart.toFixed(2)+"ms",domainLookupStart:m.domainLookupStart.toFixed(2)+"ms",domainLookupEnd:m.domainLookupEnd.toFixed(2)+"ms",connectStart:m.connectStart.toFixed(2)+"ms",connectEnd:m.connectEnd.toFixed(2)+"ms",requestStart:m.requestStart.toFixed(2)+"ms",responseStart:m.responseStart.toFixed(2)+"ms",responseEnd:m.responseEnd.toFixed(2)+"ms"},d.connectionInfo={isFromCache:w,isConnectionReused:u,isDNSFromCache:b,hasTimingRestriction:y,status:A.length>0?A.join(", "):"新建连接",transferSize:m.transferSize+" bytes",encodedBodySize:m.encodedBodySize+" bytes",decodedBodySize:m.decodedBodySize+" bytes"};const z=parseFloat(p);z>0&&!w&&[v,S,C,x,M].filter($=>$>0).length>0&&(d.breakdown={dns:v>0?(v/z*100).toFixed(1)+"%":"0%",tcp:S>0?(S/z*100).toFixed(1)+"%":"0%",tls:C>0?(C/z*100).toFixed(1)+"%":"0%",request:x>0?(x/z*100).toFixed(1)+"%":"0%",response:M>0?(M/z*100).toFixed(1)+"%":"0%"});const R=[];u&&R.push("连接复用是正常的性能优化,说明网络连接效率良好"),w&&R.push("资源æ
1¥è‡ªç¼“存,这是最佳的性能表现"),y&&R.push("服务器需要添加 Timing-Allow-Origin 响应头来提供详细时间信息"),S===0&&!w&&!u&&R.push("可能使用了 HTTP/2 或连接预热,这是现代浏览器的优化"),R.length>0&&(d.suggestions=R)}else d.timing={dnsTime:"无法获取",tcpTime:"无法获取",tlsTime:"无法获取",requestTime:"无法获取",responseTime:n&&s?(s-n).toFixed(2)+"ms":"无法获取"},d.note="Resource Timing API 不可用或受跨域限制";t(d)},500)}).catch(h=>{o&&o.disconnect();const p=(performance.now()-r).toFixed(2);t({totalTime:p+"ms",error:h.message,status:"failed",errorType:h.name,timestamp:new Date().toISOString()})})})}function Ya(e,t={}){const{timeout:r=1e4,retryCount:n=3,stabilityTestDuration:s=5e3}=t;return new Promise(i=>{const a=[];let o=0;async function l(){o++;const h=performance.now(),f={connectionTime:"0ms",status:"failed",readyState:WebSocket.CONNECTING,timestamp:new Date().toISOString()};try{const p=await $a(e,r);if(a.push({attempt:o,time:(performance.now()-h).toFixed(2)+"ms",result:p.status,error:p.error}),p.status==="connected"){const m=await Ja(p.ws,p.connectionTime,{stabilityTestDuration:s});Object.assign(f,m),f.attempts=a,i(f);return}if(o<n){const m=Math.min(1e3*Math.pow(2,o-1),5e3);return await new Promise(d=>setTimeout(d,m)),l()}else f.status="retry_exhausted",f.error=p.error||"All connection attempts failed",f.errorType=p.errorType,f.attempts=a,i(f)}catch(p){if(a.push({attempt:o,time:(performance.now()-h).toFixed(2)+"ms",result:"error",error:p.message}),o<n){const m=Math.min(1e3*Math.pow(2,o-1),5e3);return await new Promise(d=>setTimeout(d,m)),l()}else f.status="retry_exhausted",f.error=p.message,f.attempts=a,i(f)}}l()})}function $a(e,t){return new Promise(r=>{const n=performance.now();let s=null,i=null,a=null;const o=new WebSocket(e);let l=!1;const h=f=>{l||(l=!0,a&&clearTimeout(a),r(f))};o.onopen=()=>{s=performance.now();const f=s-n;h({status:"connected",connectionTime:f,ws:o})},o.onerror=f=>{i=performance.now();const p=i-n;let m="unknown",d="WebSocket connection failed";o.readyState===WebSocket.CLOSED?(m="connection_refused",d="Connection refused by server"):o.readyState===WebSocket.CLOSING&&(m="connection_closing",d="Connection is closing"),o.close(),h({status:"failed",connectionTime:p,error:d,errorType:m})},o.onclose=f=>{if(!l){i=performance.now();const p=i-n;let m="Connection closed",d="connection_closed";f.code===1006?(m="Connection closed abnormally",d="abnormal_closure"):f.code===1002?(m="Protocol error",d="protocol_error"):f.code===1003&&(m="Unsupported data type",d="unsupported_data"),h({status:"failed",connectionTime:p,error:m,errorType:d})}},a=setTimeout(()=>{if(!l){const f=performance.now()-n;o.close(),h({status:"timeout",connectionTime:f,error:"Connection timeout",errorType:"timeout"})}},t)})}async function Ja(e,t,r){const n={connectionTime:t.toFixed(2)+"ms",status:"connected",readyState:e.readyState};try{const s=t*.1,i=t*.4,a=t-s-i;n.timing={dnsTime:s.toFixed(2)+"ms",tcpTime:i.toFixed(2)+"ms",handshakeTime:Math.max(a,0).toFixed(2)+"ms",totalTime:t.toFixed(2)+"ms"};const o=await Xa(e,r.stabilityTestDuration);n.stability=o,n.quality=Ka(t,o),e.close()}catch(s){n.error=s.message,e.close()}return n}function Xa(e,t){return new Promise(r=>{const n=performance.now();let s=!1,i;const a=l=>{s=!0;const h=performance.now()-n;l.code===1e3?i="正常关闭":l.code===1006?i="异常断开":i=`关闭码: ${l.code}`,r({connectionSuccess:!1,maintainDuration:h.toFixed(2)+"ms",disconnectReason:i})},o=()=>{s=!0;const l=performance.now()-n;r({connectionSuccess:!1,maintainDuration:l.toFixed(2)+"ms",disconnectReason:"连接错误"})};e.addEventListener("close",a),e.addEventListener("error",o),setTimeout(()=>{e.removeEventListener("close",a),e.removeEventListener("error",o),s||r({connectionSuccess:!0,maintainDuration:t.toFixed(2)+"ms"})},t)})}function Ka(e,t){let r=100;const n=[];e>3e3?(r-=60,n.push("连接时间过长,检查网络状况或服务器响应")):e>1e3?(r-=30,n.push("连接时间较长,可能存在网络延迟")):e>500&&(r-=15),t.connectionSuccess||(r-=20,n.push(`连接不稳定: ${t.disconnectReason}`)),r=Math.max(0,Math.min(100,r));let s;return r>=90?s="优秀":r>=75?s="良好":r>=60?s="一般":s="较差",n.length===0&&n.push("WebSocket 连接质量良好"),{score:Math.round(r),grade:s,suggestions:n}}async function qa(){const e="wss://api.bitunix.com/message-center-ws/msg_center";try{const[t,r]=await Promise.all([Ga("/robots.txt"),Ya(e)]);return{hostAPI:t,websocket:r,timestamp:new Date().toISOString()}}catch(t){return{error:t.message,timestamp:new Date().toISOString()}}}function Cs(){const e={deviceMemory:null,usedJSHeapSize:null,totalJSHeapSize:null,jsHeapSizeLimit:null};if("deviceMemory"in navigator&&(e.deviceMemory=navigator.deviceMemory+"GB"),"memory"in performance){const t=performance.memory;e.usedJSHeapSize=(t.usedJSHeapSize/1024/1024).toFixed(2)+"MB",e.totalJSHeapSize=(t.totalJSHeapSize/1024/1024).toFixed(2)+"MB",e.jsHeapSizeLimit=(t.jsHeapSizeLimit/1024/1024).toFixed(2)+"MB"}return e}function Qa(){const e=performance.now();return(performance.now()-e).toFixed(2)+"ms"}function xs(){const e=navigator.hardwareConcurrency,t=Qa();return{coreCount:e,speed:t}}function el(e=10,t=60){return new Promise(r=>{const n=performance.now(),s=n+e*1e3,i=[],a=[];let o=n,l=0,h=n,f=0,p=0,m=1/0,d=0,w=1/0;function u(b){l++,f++;const y=b-o;if(o=b,y>0&&(i.push(y),i.length>t&&i.shift(),y>d&&(d=y),y<w&&(w=y)),b-h>=1e3){const v=Math.round(f*1e3/(b-h));a.push(v),v>p&&(p=v),v<m&&(m=v),f=0,h=b}if(b>=s){if(f>0){const M=b-h;if(M>100){const A=Math.round(f*1e3/M);a.push(A),A>p&&(p=A),A<m&&(m=A)}}const v=b-n,S=i.length>0?i.reduce((M,A)=>M+A,0)/i.length:0,C=S>0?Math.round(1e3/S):0;let x=100;if(a.length>1){const M=a.reduce((R,B)=>R+B,0)/a.length,A=a.reduce((R,B)=>R+Math.pow(B-M,2),0)/a.length,z=Math.sqrt(A);x=Math.max(0,Math.min(100,100-z/M*100))}r({duration:Math.round(v),totalFrames:l,averageFPS:C,maxFPS:p,minFPS:m===1/0?0:m,frameTimeAvg:Math.round(S*100)/100,frameTimeMin:w===1/0?0:Math.round(w*100)/100,frameTimeMax:Math.round(d*100)/100,fpsHistory:[...a],stability:Math.round(x*100)/100});return}requestAnimationFrame(u)}requestAnimationFrame(u)})}const tl="block-ignore",rl="rr-ignore";var Ir={},nl=Object.defineProperty,sl=(e,t,r)=>t in e?nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bt=(e,t,r)=>sl(e,typeof t!="symbol"?t+"":t,r),il=Object.defineProperty,ol=(e,t,r)=>t in e?il(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y=(e,t,r)=>ol(e,typeof t!="symbol"?t+"":t,r),Os,al=Object.defineProperty,ll=(e,t,r)=>t in e?al(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,As=(e,t,r)=>ll(e,typeof t!="symbol"?t+"":t,r),Ce=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ce||{});const Es={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ms={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Gt={},ul=()=>!!globalThis.Zone;function Jn(e){if(Gt[e])return Gt[e];const t=globalThis[e],r=t.prototype,n=e in Es?Es[e]:void 0,s=!!(n&&n.every(o=>{var l,h;return!!((h=(l=Object.getOwnPropertyDescriptor(r,o))==null?void 0:l.get)!=null&&h.toString().includes("[native code]"))})),i=e in Ms?Ms[e]:void 0,a=!!(i&&i.every(o=>{var l;return typeof r[o]=="function"&&((l=r[o])==null?void 0:l.toString().includes("[native code]"))}));if(s&&a&&!ul())return Gt[e]=t.prototype,t.prototype;try{const o=document.createElement("iframe");document.body.appendChild(o);const l=o.contentWindow;if(!l)return t.prototype;const h=l[e].prototype;return document.body.removeChild(o),h?Gt[e]=h:r}catch{return r}}const Qr={};function He(e,t,r){var n;const s=`${e}.${String(r)}`;if(Qr[s])return Qr[s].call(t);const i=Jn(e),a=(n=Object.getOwnPropertyDescriptor(i,r))==null?void 0:n.get;return a?(Qr[s]=a,a.call(t)):t[r]}const en={};function xi(e,t,r){const n=`${e}.${String(r)}`;if(en[n])return en[n].bind(t);const s=Jn(e)[r];return typeof s!="function"?t[r]:(en[n]=s,s.bind(t))}function cl(e){return He("Node",e,"childNodes")}function hl(e){return He("Node",e,"parentNode")}function dl(e){return He("Node",e,"parentElement")}function fl(e){return He("Node",e,"textContent")}function pl(e,t){return xi("Node",e,"contains")(t)}function ml(e){return xi("Node",e,"getRootNode")()}function gl(e){return!e||!("host"in e)?null:He("ShadowRoot",e,"host")}function yl(e){return e.styleSheets}function wl(e){return!e||!("shadowRoot"in e)?null:He("Element",e,"shadowRoot")}function bl(e,t){return He("Element",e,"querySelector")(t)}function vl(e,t){return He("Element",e,"querySelectorAll")(t)}function Sl(){return Jn("MutationObserver").constructor}const Oe={childNodes:cl,parentNode:hl,parentElement:dl,textContent:fl,contains:pl,getRootNode:ml,host:gl,styleSheets:yl,shadowRoot:wl,querySelector:bl,querySelectorAll:vl,mutationObserver:Sl};
vendor: 9,896 bytes, line 1
1function Oi(e){return e.nodeType===e.ELEMENT_NODE}function It(e){const t=e&&"host"in e&&"mode"in e&&Oe.host(e)||null;return!!(t&&"shadowRoot"in t&&Oe.shadowRoot(t)===e)}function Ct(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function kl(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function _l(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function mn(e){try{const t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);const n=Array.from(t,s=>Ai(s,r)).join("");return kl(n)}catch{return null}}function Ai(e,t){if(Cl(e)){let r;try{r=mn(e.styleSheet)||_l(e)}catch{r=e.cssText}return e.styleSheet.href?Cr(r,e.styleSheet.href):r}else{let r=e.cssText;return xl(e)&&e.selectorText.includes(":")&&(r=Il(r)),t?Cr(r,t):r}}function Il(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Cl(e){return"styleSheet"in e}function xl(e){return"selectorText"in e}class Ei{constructor(){As(this,"idNodeMap",new Map),As(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const s=this.nodeMetaMap.get(n);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ol(){return new Ei}function Xn({element:e,maskInputOptions:t,tagName:r,type:n,value:s,maskInputFn:i}){let a=s||"";const o=n&&Ke(n);return(t[r.toLowerCase()]||o&&t[o])&&(i?a=i(a,e):a="*".repeat(a.length)),a}function Ke(e){return e.toLowerCase()}const Rs="__rrweb_original__";function Al(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let n=0;n<e.width;n+=r)for(let s=0;s<e.height;s+=r){const i=t.getImageData,a=Rs in i?i[Rs]:i;if(new Uint32Array(a.call(t,n,s,Math.min(r,e.width-n),Math.min(r,e.height-s)).data.buffer).some(o=>o!==0))return!1}return!0}function Kn(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ke(t):null}function Mi(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}const n=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(n);return s?.[1]??null}function El(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const Ml=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Rl=/^(?:[a-z+]+:)?\/\//i,Tl=/^www\..*/i,Fl=/^(data:)([^,]*),(.*)/i;function Cr(e,t){return(e||"").replace(Ml,(r,n,s,i,a,o)=>{const l=s||a||o,h=n||i||"";if(!l)return r;if(Rl.test(l)||Tl.test(l))return`url(${h}${l}${h})`;if(Fl.test(l))return`url(${h}${l}${h})`;if(l[0]==="/")return`url(${h}${El(t)+l}${h})`;const f=t.split("/"),p=l.split("/");f.pop();for(const m of p)m!=="."&&(m===".."?f.pop():f.push(m));return`url(${h}${f.join("/")}${h})`})}function tn(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function Nl(e,t){const r=Array.from(t.childNodes),n=[];if(r.length>1&&e&&typeof e=="string"){const s=tn(e);for(let i=1;i<r.length;i++)if(r[i].textContent&&typeof r[i].textContent=="string"){const a=tn(r[i].textContent);for(let o=3;o<a.length;o++){const l=a.substring(0,o);if(s.split(l).length===2){const h=s.indexOf(l);for(let f=h;f<e.length;f++)if(tn(e.substring(0,f)).length===h){n.push(e.substring(0,f)),e=e.substring(f);break}break}}}}return n.push(e),n}function Dl(e,t){return Nl(e,t).join("/* rr_split */")}let zl=1;const Ll=new RegExp("[^a-z0-9-_:]"),Ot=-2;function Ri(){return zl++}function Pl(e){if(e instanceof HTMLFormElement)return"form";const t=Ke(e.tagName);return Ll.test(t)?"div":t}let tt,Ts;const Bl=/^[^ \t\n\r\u000c]+/,Ul=/^[, \t\n\r\u000c]+/;function jl(e,t){if(t.trim()==="")return t;let r=0;function n(i){let a;const o=i.exec(t.substring(r));return o?(a=o[0],r+=a.length,a):""}const s=[];for(;n(Ul),!(r>=t.length);){let i=n(Bl);if(i.slice(-1)===",")i=xr(e,i.substring(0,i.length-1)),s.push(i);else{let a="";i=xr(e,i);let o=!1;for(;;){const l=t.charAt(r);if(l===""){s.push((i+a).trim());break}else if(o)l===")"&&(o=!1);else if(l===","){r+=1,s.push((i+a).trim());break}else l==="("&&(o=!0);a+=l,r+=1}}}return s.join(", ")}const Fs=new WeakMap;function xr(e,t){return!t||t.trim()===""?t:qn(e,t)}function Wl(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function qn(e,t){let r=Fs.get(e);if(r||(r=e.createElement("a"),Fs.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Ti(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?xr(e,n):r==="srcset"?jl(e,n):r==="style"?Cr(n,qn(e)):t==="object"&&r==="data"?xr(e,n):n)}function Fi(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function Zl(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}if(r)return e.matches(r)}catch{}return!1}function Or(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Or(Oe.parentNode(e),t,r):!1;for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return r?Or(Oe.parentNode(e),t,r):!1}function Ni(e,t,r,n){let s;if(Oi(e)){if(s=e,!Oe.childNodes(s).length)return!1}else{if(Oe.parentElement(e)===null)return!1;s=Oe.parentElement(e)}try{if(typeof t=="string"){if(n){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(Or(s,t,n))return!0;if(r){if(n){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch{}return!1}function Vl(e,t,r){const n=e.contentWindow;if(!n)return;let s=!1,i;try{i=n.document.readyState}catch{return}if(i!=="complete"){const o=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),s=!0,t()});return}const a="about:blank";if(n.location.href!==a||e.src===a||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Hl(e,t,r){let n=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),n=!0,t()})}function Gl(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:a,inlineStylesheet:o,maskInputOptions:l={},maskTextFn:h,maskInputFn:f,dataURLOptions:p={},inlineImages:m,recordCanvas:d,keepIframeSrcFn:w,newlyAddedElement:u=!1,cssCaptured:b=!1}=t,y=Yl(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Ce.Document,childNodes:[],compatMode:e.compatMode}:{type:Ce.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ce.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Jl(e,{doc:r,blockClass:s,blockSelector:i,inlineStylesheet:o,maskInputOptions:l,maskInputFn:f,dataURLOptions:p,inlineImages:m,recordCanvas:d,keepIframeSrcFn:w,newlyAddedElement:u,rootId:y});case e.TEXT_NODE:return $l(e,{doc:r,needsMask:a,maskTextFn:h,rootId:y,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:Ce.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:Ce.Comment,textContent:Oe.textContent(e)||"",rootId:y};default:return!1}}function Yl(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function $l(e,t){const{needsMask:r,maskTextFn:n,rootId:s,cssCaptured:i}=t,a=Oe.parentNode(e),o=a&&a.tagName;let l="";const h=o==="STYLE"?!0:void 0,f=o==="SCRIPT"?!0:void 0;return f?l="SCRIPT_PLACEHOLDER":i||(l=Oe.textContent(e),h&&l&&(l=Cr(l,qn(t.doc)))),!h&&!f&&l&&r&&(l=n?n(l,Oe.parentElement(e)):l.replace(/[\S]/g,"*")),{type:Ce.Text,textContent:l||"",rootId:s}}function Jl(e,t){const{doc:r,blockClass:n,blockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskInputFn:o,dataURLOptions:l={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:d}=t,w=Zl(e,n,s),u=Pl(e);let b={};const y=e.attributes.length;for(let S=0;S<y;S++){const C=e.attributes[S];Fi(u,C.name,C.value)||(b[C.name]=Ti(r,u,Ke(C.name),C.value))}if(u==="link"&&i){const S=Array.from(r.styleSheets).find(x=>x.href===e.href);let C=null;S&&(C=mn(S)),C&&(delete b.rel,delete b.href,b._cssText=C)}if(u==="style"&&e.sheet){let S=mn(e.sheet);S&&(e.childNodes.length>1&&(S=Dl(S,e)),b._cssText=S)}if(u==="input"||u==="textarea"||u==="select"){const S=e.value,C=e.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&S?b.value=Xn({element:e,type:Kn(e),tagName:u,value:S,maskInputOptions:a,maskInputFn:o}):C&&(b.checked=C)}if(u==="option"&&(e.selected&&!a.select?b.selected=!0:delete b.selected),u==="dialog"&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),u==="canvas"&&f){if(e.__context==="2d")Al(e)||(b.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const S=e.toDataURL(l.type,l.quality),C=r.createElement("canvas");C.width=e.width,C.height=e.height;const x=C.toDataURL(l.type,l.quality);S!==x&&(b.rr_dataURL=S)}}if(u==="img"&&h){tt||(tt=r.createElement("canvas"),Ts=tt.getContext("2d"));const S=e,C=S.currentSrc||S.getAttribute("src")||"<unknown-src>",x=S.crossOrigin,M=()=>{S.removeEventListener("load",M);
vendor: 3,100 bytes, line 1
1try{tt.width=S.naturalWidth,tt.height=S.naturalHeight,Ts.drawImage(S,0,0),b.rr_dataURL=tt.toDataURL(l.type,l.quality)}catch(A){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?M():S.addEventListener("load",M);return}else`${C}${A}`}S.crossOrigin==="anonymous"&&(x?b.crossOrigin=x:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?M():S.addEventListener("load",M)}if(u==="audio"||u==="video"){const S=b;S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime,S.rr_mediaPlaybackRate=e.playbackRate,S.rr_mediaMuted=e.muted,S.rr_mediaLoop=e.loop,S.rr_mediaVolume=e.volume}if(m||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),w){const{width:S,height:C}=e.getBoundingClientRect();b={class:b.class,rr_width:`${S}px`,rr_height:`${C}px`}}u==="iframe"&&!p(b.src)&&(e.contentDocument||(b.rr_src=b.src),delete b.src);let v;try{customElements.get(u)&&(v=!0)}catch{}return{type:Ce.Element,tagName:u,attributes:b,childNodes:[],isSVG:Wl(e)||void 0,needBlock:w,rootId:d,isCustom:v}}function pe(e){return e==null?"":e.toLowerCase()}function Xl(e,t){return!!(t.comment&&e.type===Ce.Comment||e.type===Ce.Element&&(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Mi(e.attributes.href)==="js")||t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(pe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||pe(e.attributes.name)==="application-name"||pe(e.attributes.rel)==="icon"||pe(e.attributes.rel)==="apple-touch-icon"||pe(e.attributes.rel)==="shortcut icon"))||e.tagName==="meta"&&(t.headMetaDescKeywords&&pe(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(pe(e.attributes.property).match(/^(og|twitter|fb):/)||pe(e.attributes.name).match(/^(og|twitter):/)||pe(e.attributes.name)==="pinterest")||t.headMetaRobots&&(pe(e.attributes.name)==="robots"||pe(e.attributes.name)==="googlebot"||pe(e.attributes.name)==="bingbot")||t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0||t.headMetaAuthorship&&(pe(e.attributes.name)==="author"||pe(e.attributes.name)==="generator"||pe(e.attributes.name)==="framework"||pe(e.attributes.name)==="publisher"||pe(e.attributes.name)==="progid"||pe(e.attributes.property).match(/^article:/)||pe(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(pe(e.attributes.name)==="google-site-verification"||pe(e.attributes.name)==="yandex-verification"||pe(e.attributes.name)==="csrf-token"||pe(e.attributes.name)==="p:domain_verify"||pe(e.attributes.name)==="verify-v1"||pe(e.attributes.name)==="verification"||pe(e.attributes.name)==="shopify-checkout-api-token"))))}function st(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,maskTextClass:a,maskTextSelector:o,skipChild:l=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskTextFn:p,maskInputFn:m,slimDOMOptions:d,dataURLOptions:w={}
vendor: 22,687 bytes, lines 1-22
1,inlineImages:u=!1,recordCanvas:b=!1,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:S=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:A=!1,cssCaptured:z=!1}=t;let{needsMask:R}=t,{preserveWhiteSpace:B=!0}=t;R||(R=Ni(e,a,o,R===void 0));const $=Gl(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:R,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:m,dataURLOptions:w,inlineImages:u,recordCanvas:b,keepIframeSrcFn:M,newlyAddedElement:A,cssCaptured:z});if(!$)return null;let I;n.hasNode(e)?I=n.getId(e):Xl($,d)||!B&&$.type===Ce.Text&&!$.textContent.replace(/^\s+|\s+$/gm,"").length?I=Ot:I=Ri();const T=Object.assign($,{id:I});if(n.add(e,T),I===Ot)return null;y&&y(e);let g=!l;if(T.type===Ce.Element){g=g&&!T.needBlock,delete T.needBlock;const K=Oe.shadowRoot(e);K&&Ct(K)&&(T.isShadowHost=!0)}if((T.type===Ce.Document||T.type===Ce.Element)&&g){d.headWhitespace&&T.type===Ce.Element&&T.tagName==="head"&&(B=!1);const K={doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:R,maskTextClass:a,maskTextSelector:o,skipChild:l,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:m,slimDOMOptions:d,dataURLOptions:w,inlineImages:u,recordCanvas:b,preserveWhiteSpace:B,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:x,keepIframeSrcFn:M,cssCaptured:!1};if(!(T.type===Ce.Element&&T.tagName==="textarea"&&T.attributes.value!==void 0)){T.type===Ce.Element&&T.attributes._cssText!==void 0&&typeof T.attributes._cssText=="string"&&(K.cssCaptured=!0);for(const re of Array.from(Oe.childNodes(e))){const W=st(re,K);W&&T.childNodes.push(W)}}let U=null;if(Oi(e)&&(U=Oe.shadowRoot(e)))for(const re of Array.from(Oe.childNodes(U))){const W=st(re,K);W&&(Ct(U)&&(W.isShadow=!0),T.childNodes.push(W))}}const P=Oe.parentNode(e);return P&&It(P)&&Ct(P)&&(T.isShadow=!0),T.type===Ce.Element&&T.tagName==="iframe"&&Vl(e,()=>{const K=e.contentDocument;if(K&&v){const U=st(K,{doc:K,mirror:n,blockClass:s,blockSelector:i,needsMask:R,maskTextClass:a,maskTextSelector:o,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:m,slimDOMOptions:d,dataURLOptions:w,inlineImages:u,recordCanvas:b,preserveWhiteSpace:B,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:x,keepIframeSrcFn:M});U&&v(e,U)}},S),T.type===Ce.Element&&T.tagName==="link"&&typeof T.attributes.rel=="string"&&(T.attributes.rel==="stylesheet"||T.attributes.rel==="preload"&&typeof T.attributes.href=="string"&&Mi(T.attributes.href)==="css")&&Hl(e,()=>{if(C){const K=st(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:R,maskTextClass:a,maskTextSelector:o,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:m,slimDOMOptions:d,dataURLOptions:w,inlineImages:u,recordCanvas:b,preserveWhiteSpace:B,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:x,keepIframeSrcFn:M});K&&C(e,K)}},x),T}function Kl(e,t){const{mirror:r=new Ei,blockClass:n="rr-block",blockSelector:s=null,maskTextClass:i="rr-mask",maskTextSelector:a=null,inlineStylesheet:o=!0,inlineImages:l=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskTextFn:p,maskInputFn:m,slimDOM:d=!1,dataURLOptions:w,preserveWhiteSpace:u,onSerialize:b,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:C,keepIframeSrcFn:x=()=>!1}=t||{};return st(e,{doc:e,mirror:r,blockClass:n,blockSelector:s,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:o,maskInputOptions:f===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f===!1?{password:!0}:f,maskTextFn:p,maskInputFn:m,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:w,inlineImages:l,recordCanvas:h,preserveWhiteSpace:u,onSerialize:b,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:C,keepIframeSrcFn:x,newlyAddedElement:!1})}function ql(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ql(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var Qn={exports:{}},me=String,Di=function(){return{isColorSupported:!1,reset:me,bold:me,dim:me,italic:me,underline:me,inverse:me,hidden:me,strikethrough:me,black:me,red:me,green:me,yellow:me,blue:me,magenta:me,cyan:me,white:me,gray:me,bgBlack:me,bgRed:me,bgGreen:me,bgYellow:me,bgBlue:me,bgMagenta:me,bgCyan:me,bgWhite:me}};Qn.exports=Di();Qn.exports.createColors=Di;var eu=Qn.exports;const tu={},ru=Object.freeze(Object.defineProperty({__proto__:null,default:tu},Symbol.toStringTag,{value:"Module"})),Ne=Ql(ru);let Ns=eu,Ds=Ne,gn=class zi extends Error{constructor(t,r,n,s,i,a){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),a&&(this.plugin=a),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,zi)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let r=this.source;t==null&&(t=Ns.isColorSupported),Ds&&t&&(r=Ds(r));let n=r.split(/\r?\n/),s=Math.max(this.line-3,0),i=Math.min(this.line+2,n.length),a=String(i).length,o,l;if(t){let{bold:h,gray:f,red:p}=Ns.createColors(!0);o=m=>h(p(m)),l=m=>f(m)}else o=l=h=>h;return n.slice(s,i).map((h,f)=>{let p=s+1+f,m=" "+(" "+p).slice(-a)+" | ";if(p===this.line){let d=l(m.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+l(m)+h+`
2 `+d+o("^")}return" "+l(m)+h}).join(`
3`)}toString(){let t=this.showSourceCode();return t&&(t=`
4
5`+t+`
6`),this.name+": "+this.message+t}};var es=gn;gn.default=gn;var Lt={};Lt.isClean=Symbol("isClean");Lt.my=Symbol("my");const zs={after:`
7`,beforeClose:`
8`,beforeComment:`
9`,beforeDecl:`
10`,beforeOpen:" ",beforeRule:`
11`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function nu(e){return e[0].toUpperCase()+e.slice(1)}let yn=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&n.type!=="root";)s+=1,n=n.parent;if(r.includes(`
12`)){let i=this.raw(e,null,"indent");if(i.length)for(let a=0;a<s;a++)r+=i}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],typeof n<"u"))return n;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return zs[r];let i=e.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[r]<"u")return i.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+nu(r);this[a]?n=this[a](i,e):i.walk(o=>{if(n=o.raws[t],typeof n<"u")return!1})}return typeof n>"u"&&(n=zs[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
13`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
14`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
15`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
16`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
17`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Li=yn;yn.default=yn;let su=Li;function wn(e,t){new su(t).stringify(e)}var Br=wn;wn.default=wn;let{isClean:Yt,my:iu}=Lt,ou=es,au=Li,lu=Br;function bn(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="proxyCache")continue;let s=e[n],i=typeof s;n==="parent"&&i==="object"?t&&(r[n]=t):n==="source"?r[n]=s:Array.isArray(s)?r[n]=s.map(a=>bn(a,r)):(i==="object"&&s!==null&&(s=bn(s)),r[n]=s)}return r}let vn=class{constructor(e={}){this.raws={},this[Yt]=!1,this[iu]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=bn(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new ou(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Yt]){this[Yt]=!1;let e=this;for(;e=e.parent;)e[Yt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let n=t.indexOf(e.word);n!==-1&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)r[i]===`
18`?(n=1,s+=1):n+=1;return{column:n,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);s!==-1&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new au().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},n=t==null;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let a=this[i];if(Array.isArray(a))r[i]=a.map(o=>typeof o=="object"&&o.toJSON?o.toJSON(null,t):o);else if(typeof a=="object"&&a.toJSON)r[i]=a.toJSON(null,t);else if(i==="source"){let o=t.get(a.input);o==null&&(o=s,t.set(a.input,s),s++),r[i]={end:a.end,inputId:o,start:a.start}}else r[i]=a}return n&&(r.inputs=[...t.keys()].map(i=>i.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=lu){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var Ur=vn;vn.default=vn;let uu=Ur,Sn=class extends uu{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var jr=Sn;Sn.default=Sn;let cu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",hu=(e=21)=>{let t="",r=e;for(;r--;)t+=cu[Math.random()*64|0];return t};var du={nanoid:hu};let{SourceMapConsumer:Ls,SourceMapGenerator:Ps}=Ne,{existsSync:fu,readFileSync:pu}=Ne,{dirname:rn,join:mu}=Ne;function gu(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let kn=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=rn(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Ls(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(n.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return gu(e.substr(RegExp.lastMatch.length));let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=rn(e),fu(e))return this.mapFile=e,pu(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(t instanceof Ls)return Ps.fromSourceMap(t).toString();if(t instanceof Ps)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=mu(rn(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Pi=kn;kn.default=kn;let{SourceMapConsumer:yu,SourceMapGenerator:wu}=Ne,{fileURLToPath:Bs,pathToFileURL:$t}=Ne,{isAbsolute:_n,resolve:In}=Ne,{nanoid:bu}=du,nn=Ne,Us=es,vu=Pi,sn=Symbol("fromOffsetCache"),Su=!!(yu&&wu),js=!!(In&&_n),Ar=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!js||/^\w+:\/\//.test(t.from)||_n(t.from)?this.file=t.from:this.file=In(t.from)),js&&Su){let r=new vu(this.css,t);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+bu(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,a;if(t&&typeof t=="object"){let l=t,h=r;if(typeof l.offset=="number"){let f=this.fromOffset(l.offset);t=f.line,r=f.col}else t=l.line,r=l.column;if(typeof h.offset=="number"){let f=this.fromOffset(h.offset);i=f.line,a=f.col}else i=h.line,a=h.column}else if(!r){let l=this.fromOffset(t);t=l.line,r=l.col}let o=this.origin(t,r,i,a);return o?s=new Us(e,o.endLine===void 0?o.line:{column:o.column,line:o.line},o.endLine===void 0?o.column:{column:o.endColumn,line:o.endLine},o.source,o.file,n.plugin):s=new Us(e,i===void 0?t:{column:r,line:t},i===void 0?r:{column:a,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:a,endLine:i,line:t,source:this.css},this.file&&($t&&(s.input.url=$t(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[sn])r=this[sn];else{let s=this.css.split(`
19`);r=new Array(s.length);let i=0;for(let a=0,o=s.length;a<o;a++)r[a]=i,i+=s[a].length+1;this[sn]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let s=r.length-2,i;for(;n<s;)if(i=n+(s-n>>1),e<r[i])s=i-1;else if(e>=r[i+1])n=i+1;else{n=i;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:In(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s=this.map.consumer(),i=s.originalPositionFor({column:t,line:e});if(!i.source)return!1;let a;typeof r=="number"&&(a=s.originalPositionFor({column:n,line:r}));let o;_n(i.source)?o=$t(i.source):o=new URL(i.source,this.map.consumer().sourceRoot||$t(this.map.mapFile));let l={column:i.column,endColumn:a&&a.column,endLine:a&&a.line,line:i.line,url:o.toString()};if(o.protocol==="file:")if(Bs)l.file=Bs(o);else throw new Error("file: protocol is not available in this PostCSS build");let h=s.sourceContentFor(i.source);return h&&(l.source=h),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Wr=Ar;Ar.default=Ar;nn&&nn.registerInput&&nn.registerInput(Ar);let{SourceMapConsumer:Bi,SourceMapGenerator:wr}=Ne,{dirname:br,relative:Ui,resolve:ji,sep:Wi}=Ne,{pathToFileURL:Ws}=Ne,ku=Wr,_u=!!(Bi&&wr),Iu=!!(br&&ji&&Ui&&Wi),Cu=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
20`;this.css.includes(`\r
21`)&&(t=`\r
22`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||br(e.file),n;this.mapOpts.sourcesContent===!1?(n=new Bi(e.text),n.sourcesContent&&(n.sourcesContent=null)):n=e.consumer(),this.map.applySourceMap(n,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Iu&&_u&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=wr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wr({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new wr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>
22",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,i;this.stringify(this.root,(a,o,l)=>{if(this.css+=a,o&&l!=="end"&&(n.generated.line=e,n.generated.column=t-1,o.source&&o.source.start?(n.source=this.sourcePath(o),n.original.line=o.source.start.line,n.original.column=o.source.start.column-1,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,this.map.addMapping(n))),s=a.match(/\n/g),s?(e+=s.length,i=a.lastIndexOf(`
23`),t=a.length-i):t+=a.length,o&&l!=="start"){let h=o.parent||{raws:{}};(!(o.type==="decl"||o.type==="atrule"&&!o.nodes)||o!==h.last||h.raws.semicolon)&&(o.source&&o.source.end?(n.source=this.sourcePath(o),n.original.line=o.source.end.line,n.original.column=o.source.end.column-1,n.generated.line=e,n.generated.column=t-2,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=t-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?br(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=br(ji(r,this.mapOpts.annotation)));let n=Ui(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new ku(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Ws){let r=Ws(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Wi==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Zi=Cu;let xu=Ur,Cn=class extends xu{constructor(e){super(e),this.type="comment"}};var Zr=Cn;Cn.default=Cn;let{isClean:Vi,my:Hi}=Lt,Gi=jr,Yi=Zr,Ou=Ur,$i,ts,rs,Ji;function Xi(e){return e.map(t=>(t.nodes&&(t.nodes=Xi(t.nodes)),delete t.source,t))}function Ki(e){if(e[Vi]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Ki(t)}let We=class qi extends Ou{append(...t){for(let r of t){let n=this.normalize(r,this.last);for(let s of n)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let r of this.nodes)r.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,s;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],s=t(this.proxyOf.nodes[n],n),s!==!1);)this.indexes[r]+=1;return delete this.indexes[r],s}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:t[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>t[r](...n.map(s=>typeof s=="function"?(i,a)=>
vendor: 45,426 bytes, lines 23-45
23s(i.toProxy(),a):s)):r==="every"||r==="some"?n=>t[r]((s,...i)=>n(s.toProxy(),...i)):r==="root"?()=>t.root().toProxy():r==="nodes"?t.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?t[r].toProxy():t[r]:t[r]},set(t,r,n){return t[r]===n||(t[r]=n,(r==="name"||r==="params"||r==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,r){let n=this.index(t),s=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(t);for(let a of s)this.proxyOf.nodes.splice(n+1,0,a);let i;for(let a in this.indexes)i=this.indexes[a],n<i&&(this.indexes[a]=i+s.length);return this.markDirty(),this}insertBefore(t,r){let n=this.index(t),s=n===0?"prepend":!1,i=this.normalize(r,this.proxyOf.nodes[n],s).reverse();n=this.index(t);for(let o of i)this.proxyOf.nodes.splice(n,0,o);let a;for(let o in this.indexes)a=this.indexes[o],n<=a&&(this.indexes[o]=a+i.length);return this.markDirty(),this}normalize(t,r){if(typeof t=="string")t=Xi($i(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Gi(t)]}else if(t.selector)t=[new ts(t)];else if(t.name)t=[new rs(t)];else if(t.text)t=[new Yi(t)];else throw new Error("Unknown node type in node creation");return t.map(n=>(n[Hi]||qi.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Vi]&&Ki(n),typeof n.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(n.raws.before=r.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...t){t=t.reverse();for(let r of t){let n=this.normalize(r,this.first,"prepend").reverse();for(let s of n)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+n.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=t&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(t,r,n){return n||(n=r,r={}),this.walkDecls(s=>{r.props&&!r.props.includes(s.prop)||r.fast&&!s.value.includes(r.fast)||(s.value=s.value.replace(t,n))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((r,n)=>{let s;try{s=t(r,n)}catch(i){throw r.addToError(i)}return s!==!1&&r.walk&&(s=r.walk(t)),s})}walkAtRules(t,r){return r?t instanceof RegExp?this.walk((n,s)=>{if(n.type==="atrule"&&t.test(n.name))return r(n,s)}):this.walk((n,s)=>{if(n.type==="atrule"&&n.name===t)return r(n,s)}):(r=t,this.walk((n,s)=>{if(n.type==="atrule")return r(n,s)}))}walkComments(t){return this.walk((r,n)=>{if(r.type==="comment")return t(r,n)})}walkDecls(t,r){return r?t instanceof RegExp?this.walk((n,s)=>{if(n.type==="decl"&&t.test(n.prop))return r(n,s)}):this.walk((n,s)=>{if(n.type==="decl"&&n.prop===t)return r(n,s)}):(r=t,this.walk((n,s)=>{if(n.type==="decl")return r(n,s)}))}walkRules(t,r){return r?t instanceof RegExp?this.walk((n,s)=>{if(n.type==="rule"&&t.test(n.selector))return r(n,s)}):this.walk((n,s)=>{if(n.type==="rule"&&n.selector===t)return r(n,s)}):(r=t,this.walk((n,s)=>{if(n.type==="rule")return r(n,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};We.registerParse=e=>{$i=e};We.registerRule=e=>{ts=e};We.registerAtRule=e=>{rs=e};We.registerRoot=e=>{Ji=e};var qe=We;We.default=We;We.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,rs.prototype):e.type==="rule"?Object.setPrototypeOf(e,ts.prototype):e.type==="decl"?Object.setPrototypeOf(e,Gi.prototype):e.type==="comment"?Object.setPrototypeOf(e,Yi.prototype):e.type==="root"&&Object.setPrototypeOf(e,Ji.prototype),e[Hi]=!0,e.nodes&&e.nodes.forEach(t=>{We.rebuild(t)})};let Au=qe,Qi,eo,At=class extends Au{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Qi(new eo,this,e).stringify()}};At.registerLazyResult=e=>{Qi=e};At.registerProcessor=e=>{eo=e};var ns=At;At.default=At;let xn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var to=xn;xn.default=xn;let Eu=to,On=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Eu(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var ss=On;On.default=On;const on=39,Zs=34,Jt=92,Vs=47,Xt=10,vt=32,Kt=12,qt=9,Qt=13,Mu=91,Ru=93,Tu=40,Fu=41,Nu=123,Du=125,zu=59,Lu=42,Pu=58,Bu=64,er=/[\t\n\f\r "#'()/;[\\\]{}]/g,tr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Uu=/.[\r\n"'(/\\]/,Hs=/[\da-f]/i;var ju=function(e,t={}){let r=e.css.valueOf(),n=t.ignoreErrors,s,i,a,o,l,h,f,p,m,d,w=r.length,u=0,b=[],y=[];function v(){return u}function S(A){throw e.error("Unclosed "+A,u)}function C(){return y.length===0&&u>=w}function x(A){if(y.length)return y.pop();if(u>=w)return;let z=A?A.ignoreUnclosed:!1;switch(s=r.charCodeAt(u),s){case Xt:case vt:case qt:case Qt:case Kt:{i=u;do i+=1,s=r.charCodeAt(i);while(s===vt||s===Xt||s===qt||s===Qt||s===Kt);d=["space",r.slice(u,i)],u=i-1;break}case Mu:case Ru:case Nu:case Du:case Pu:case zu:case Fu:{let R=String.fromCharCode(s);d=[R,R,u];break}case Tu:{if(p=b.length?b.pop()[1]:"",m=r.charCodeAt(u+1),p==="url"&&m!==on&&m!==Zs&&m!==vt&&m!==Xt&&m!==qt&&m!==Kt&&m!==Qt){i=u;do{if(h=!1,i=r.indexOf(")",i+1),i===-1)if(n||z){i=u;break}else S("bracket");for(f=i;r.charCodeAt(f-1)===Jt;)f-=1,h=!h}while(h);d=["brackets",r.slice(u,i+1),u,i],u=i}else i=r.indexOf(")",u+1),o=r.slice(u,i+1),i===-1||Uu.test(o)?d=["(","(",u]:(d=["brackets",o,u,i],u=i);break}case on:case Zs:{a=s===on?"'":'"',i=u;do{if(h=!1,i=r.indexOf(a,i+1),i===-1)if(n||z){i=u+1;break}else S("string");for(f=i;r.charCodeAt(f-1)===Jt;)f-=1,h=!h}while(h);d=["string",r.slice(u,i+1),u,i],u=i;break}case Bu:{er.lastIndex=u+1,er.test(r),er.lastIndex===0?i=r.length-1:i=er.lastIndex-2,d=["at-word",r.slice(u,i+1),u,i],u=i;break}case Jt:{for(i=u,l=!0;r.charCodeAt(i+1)===Jt;)i+=1,l=!l;if(s=r.charCodeAt(i+1),l&&s!==Vs&&s!==vt&&s!==Xt&&s!==qt&&s!==Qt&&s!==Kt&&(i+=1,Hs.test(r.charAt(i)))){for(;Hs.test(r.charAt(i+1));)i+=1;r.charCodeAt(i+1)===vt&&(i+=1)}d=["word",r.slice(u,i+1),u,i],u=i;break}default:{s===Vs&&r.charCodeAt(u+1)===Lu?(i=r.indexOf("*/",u+2)+1,i===0&&(n||z?i=r.length:S("comment")),d=["comment",r.slice(u,i+1),u,i],u=i):(tr.lastIndex=u+1,tr.test(r),tr.lastIndex===0?i=r.length-1:i=tr.lastIndex-2,d=["word",r.slice(u,i+1),u,i],b.push(d),u=i);break}}return u++,d}function M(A){y.push(A)}return{back:M,endOfFile:C,nextToken:x,position:v}};let ro=qe,Er=class extends ro{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var is=Er;Er.default=Er;ro.registerAtRule(Er);let no=qe,so,io,ot=class extends no{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of n)s.raws.before=t.raws.before}return n}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new so(new io,this,e).stringify()}};ot.registerLazyResult=e=>{so=e};ot.registerProcessor=e=>{io=e};var Pt=ot;ot.default=ot;no.registerRoot(ot);let Et={comma(e){return Et.split(e,[","],!0)},space(e){let t=[" ",`
24`,"	"];return Et.split(e,t)},split(e,t,r){let n=[],s="",i=!1,a=0,o=!1,l="",h=!1;for(let f of e)h?h=!1:f==="\\"?h=!0:o?f===l&&(o=!1):f==='"'||f==="'"?(o=!0,l=f):f==="("?a+=1:f===")"?a>0&&(a-=1):a===0&&t.includes(f)&&(i=!0),i?(s!==""&&n.push(s.trim()),s="",i=!1):s+=f;return(r||s!=="")&&n.push(s.trim()),n}};var oo=Et;Et.default=Et;let ao=qe,Wu=oo,Mr=class extends ao{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Wu.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var os=Mr;Mr.default=Mr;ao.registerRule(Mr);let Zu=jr,Vu=ju,Hu=Zr,Gu=is,Yu=Pt,Gs=os;const Ys={empty:!0,space:!0};function $u(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}let Ju=class{constructor(e){this.input=e,this.root=new Yu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Gu;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,n,s,i=!1,a=!1,o=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(o.length>0){for(s=o.length-1,n=o[s];n&&n[0]==="space";)n=o[--s];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else o.push(e);else o.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(t.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(t,"params",o),i&&(e=o[o.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let s=t-1;s>=0&&(n=e[s],!(n[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,s;for(let[i,a]of e.entries()){if(r=a,n=r[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!s)this.doubleColon(r);else{if(s[0]==="word"&&s[1]==="progid")continue;return i}s=r}return!1}comment(e){let t=new Hu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=Vu(this.input)}decl(e,t){let r=new Zu;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||$u(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let o=e[0][0];if(o===":"||o==="space"||o==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let o=e.length-1;o>=0;o--){if(s=e[o],s[1].toLowerCase()==="!important"){r.important=!0;let l=this.stringFrom(e,o);l=this.spacesFromEnd(e)+l,l!==" !important"&&(r.raws.important=l);break}else if(s[1].toLowerCase()==="important"){let l=e.slice(0),h="";for(let f=o;f>0;f--){let p=l[f][0];if(h.trim().indexOf("!")===0&&p!=="space")break;h=l.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=l)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(o=>o[0]!=="space"&&o[0]!=="comment")&&(r.raws.between+=i.map(o=>o[1]).join(""),i=[]),this.raw(r,"value",i.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Gs;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],a=e[1].startsWith("--"),o=[],l=e;for(;l;){if(r=l[0],o.push(l),r==="("||r==="[")s||(s=l),i.push(r==="("?")":"]");else if(a&&n&&r==="{")s||(s=l),i.push("}");else if(i.length===0)if(r===";")if(n){this.decl(o,a);return}else break;else if(r==="{"){this.rule(o);return}else if(r==="}"){this.tokenizer.back(o.pop()),t=!0;break}else r===":"&&(n=!0);else r===i[i.length-1]&&(i.pop(),i.length===0&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!a)for(;o.length&&(l=o[o.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(o.pop());this.decl(o,a)}else this.unknownWord(o)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,a=r.length,o="",l=!0,h,f;for(let p=0;p<a;p+=1)s=r[p],i=s[0],i==="space"&&p===a-1&&!n?l=!1:i==="comment"?(f=r[p-1]?r[p-1][0]:"empty",h=r[p+1]?r[p+1][0]:"empty",!Ys[f]&&!Ys[h]?o.slice(-1)===","?l=!1:o+=s[1]:l=!1):o+=s[1];if(!l){let p=r.reduce((m,d)=>m+d[1],"");e.raws[t]={raw:p,value:o}}e[t]=o}rule(e){e.pop();let t=new Gs;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Xu=Ju;let Ku=qe,qu=Xu,Qu=Wr;function Rr(e,t){let r=new Qu(e,t),n=new qu(r);try{n.parse()}catch(s){throw s}return n.root}var as=Rr;Rr.default=Rr;Ku.registerParse(Rr);let{isClean:Le,my:ec}=Lt,tc=Zi,rc=Br,nc=qe,sc=ns,$s=ss,ic=as,oc=Pt;const ac={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},lc={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},uc={Once:!0,postcssPlugin:!0,prepare:!0},at=0;function St(e){return typeof e=="object"&&typeof e.then=="function"}function lo(e){let t=!1,r=ac[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,at,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,at,r+"Exit"]:[r,r+"Exit"]}function Js(e){let t;return e.type==="document"?t=["Document",at,"DocumentExit"]:e.type==="root"?t=["Root",at,"RootExit"]:t=lo(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function An(e){return e[Le]=!1,e.nodes&&e.nodes.forEach(t=>An(t)),e}let En={},lt=class uo{constructor(t,r,n){this.stringified=!1,this.processed=!1;let s;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))s=An(r);else if(r instanceof uo||r instanceof $s)s=An(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let i=ic;n.syntax&&(i=n.syntax.parse),n.parser&&(i=n.parser),i.parse&&(i=i.parse);try{s=i(r,n)}catch(a){this.processed=!0,this.error=a}s&&!s[ec]&&nc.rebuild(s)}this.result=new $s(t,s,n),this.helpers={...En,postcss:En,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,r){let n=this.result.lastPlugin;try{r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=n.postcssPlugin,t.setMessage()):n.postcssVersion}catch(s){}return t}prepareVisitors(){this.listeners={};let t=(r,n,s)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,s])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!lc[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!uc[n])if(typeof r[n]=="object")for(let s in r[n])s==="*"?t(r,n,r[n][s]):t(r,n+"-"+s.toLowerCase(),r[n][s]);else typeof r[n]=="function"&&t(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let r=this.plugins[t],n=this.runOnRoot(r);if(St(n))try{await n}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Le];){t[Le]=!0;let r=[Js(t)];for(;r.length>0;){let n=this.visitTick(r);if(St(n))try{await n}catch(s){let i=r[r.length-1].node;throw this.handleError(s,i)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(t.type==="document"){let s=t.nodes.map(i=>n(i,this.helpers));await Promise.all(s)}else await n(t,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>t.Once(n,this.helpers));return St(r[0])?Promise.all(r):r}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,r=rc;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);let n=new tc(r,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let r=this.runOnRoot(t);if(St(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Le];)t[Le]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,r){return this.async().then(t,r)}toString(){return this.css}visitSync(t,r){for(let[n,s]of t){this.result.lastPlugin=n;let i;try{i=s(r,this.helpers)}catch(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(St(i))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:n,visitors:s}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){let[a,o]=s[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(r.iterator!==0){let a=r.iterator,o;for(;o=n.nodes[n.indexes[a]];)if(n.indexes[a]+=1,!o[Le]){o[Le]=!0,t.push(Js(o));return}r.iterator=0,delete n.indexes[a]}let i=r.events;for(;r.eventIndex<i.length;){let a=i[r.eventIndex];if(r.eventIndex+=1,a===at){n.nodes&&n.nodes.length&&(n[Le]=!0,r.iterator=n.getIterator());return}else if(this.listeners[a]){r.visitors=this.listeners[a];return}}t.pop()}walkSync(t){t[Le]=!0;let r=lo(t);for(let n of r)if(n===at)t.nodes&&t.each(s=>{s[Le]||this.walkSync(s)});else{let s=this.listeners[n];if(s&&this.visitSync(s,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};lt.registerPostcss=e=>{En=e};var co=lt;lt.default=lt;oc.registerLazyResult(lt);sc.registerLazyResult(lt);let cc=Zi,hc=Br,dc=as;const fc=ss;let Mn=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let n,s=hc;this.result=new fc(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let a=new cc(s,n,this._opts,t);if(a.isMap()){let[o,l]=a.generate();o&&(this.result.css=o),l&&(this.result.map=l)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=dc;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var pc=Mn;Mn.default=Mn;let mc=pc,gc=co,yc=ns,wc=Pt,Mt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new mc(this,e,t):new gc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var bc=Mt;Mt.default=Mt;wc.registerProcessor(Mt);yc.registerProcessor(Mt);let vc=jr,Sc=Pi,kc=Zr,_c=is,Ic=Wr,Cc=Pt,xc=os;function Rt(e,t){if(Array.isArray(e))return e.map(s=>Rt(s));let{inputs:r,...n}=e;if(r){t=[];for(let s of r){let i={...s,__proto__:Ic.prototype};i.map&&(i.map={...i.map,__proto__:Sc.prototype}),t.push(i)}}if(n.nodes&&(n.nodes=e.nodes.map(s=>Rt(s,t))),n.source){let{inputId:s,...i}=n.source;n.source=i,s!=null&&(n.source.input=t[s])}if(n.type==="root")return new Cc(n);if(n.type==="decl")return new vc(n);if(n.type==="rule")return new xc(n);if(n.type==="comment")return new kc(n);if(n.type==="atrule")return new _c(n);throw new Error("Unknown node type: "+e.type)}var Oc=Rt;Rt.default=Rt;let Ac=es,ho=jr,Ec=co,Mc=qe,ls=bc,Rc=Br,Tc=Oc,fo=ns,Fc=to,po=Zr,mo=is,Nc=ss,Dc=Wr,zc=as,Lc=oo,go=os,yo=Pt,Pc=Ur;function he(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new ls(e)}he.plugin=function(e,t){let r=!1;function n(...i){console&&console.warn&&!r&&(r=!0,e+"",Ir.LANG&&Ir.LANG.startsWith("cn")&&e+"");let a=t(...i);return a.postcssPlugin=e,a.postcssVersion=new ls().version,a}let s;return Object.defineProperty(n,"postcss",{get(){return s||(s=n()),s}}),n.process=function(i,a,o){return he([n(o)]).process(i,a)},n};he.stringify=Rc;he.parse=zc;he.fromJSON=Tc;he.list=Lc;he.comment=e=>new po(e);he.atRule=e=>new mo(e);he.decl=e=>new ho(e);he.rule=e=>new go(e);he.root=e=>new yo(e);he.document=e=>new fo(e);he.CssSyntaxError=Ac;he.Declaration=ho;he.Container=Mc;he.Processor=ls;he.Document=fo;he.Comment=po;he.Warning=Fc;he.AtRule=mo;he.Result=Nc;he.Input=Dc;he.Rule=go;he.Root=yo;he.Node=Pc;Ec.registerPostcss(he);var Bc=he;he.default=he;const we=ql(Bc);we.stringify;we.fromJSON;we.plugin;we.parse;we.list;we.document;we.comment;we.atRule;we.rule;we.decl;we.root;we.CssSyntaxError;we.Declaration;we.Container;we.Processor;we.Document;we.Comment;we.Warning;we.AtRule;we.Result;we.Input;we.Rule;we.Root;we.Node;var Uc=Object.defineProperty,jc=(e,t,r)=>t in e?Uc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Te=(e,t,r)=>jc(e,typeof t!="symbol"?t+"":t,r);function Wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var us={exports:{}},ge=String,wo=function(){return{isColorSupported:!1,reset:ge,bold:ge,dim:ge,italic:ge,underline:ge,inverse:ge,hidden:ge,strikethrough:ge,black:ge,red:ge,green:ge,yellow:ge,blue:ge,magenta:ge,cyan:ge,white:ge,gray:ge,bgBlack:ge,bgRed:ge,bgGreen:ge,bgYellow:ge,bgBlue:ge,bgMagenta:ge,bgCyan:ge,bgWhite:ge}};us.exports=wo();us.exports.createColors=wo;var Vc=us.exports;const Hc={},Gc=Object.freeze(Object.defineProperty({__proto__:null,default:Hc},Symbol.toStringTag,{value:"Module"})),De=Zc(Gc);let Xs=Vc,Ks=De,Rn=class bo extends Error{constructor(t,r,n,s,i,a){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),a&&(this.plugin=a),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,bo)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let r=this.source;t==null&&(t=Xs.isColorSupported),Ks&&t&&(r=Ks(r));let n=r.split(/\r?\n/),s=Math.max(this.line-3,0),i=Math.min(this.line+2,n.length),a=String(i).length,o,l;if(t){let{bold:h,gray:f,red:p}=Xs.createColors(!0);o=m=>h(p(m)),l=m=>f(m)}else o=l=h=>h;return n.slice(s,i).map((h,f)=>{let p=s+1+f,m=" "+(" "+p).slice(-a)+" | ";if(p===this.line){let d=l(m.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+l(m)+h+`
25 `+d+o("^")}return" "+l(m)+h}).join(`
26`)}toString(){let t=this.showSourceCode();return t&&(t=`
27
28`+t+`
29`),this.name+": "+this.message+t}};var cs=Rn;Rn.default=Rn;var Bt={};Bt.isClean=Symbol("isClean");Bt.my=Symbol("my");const qs={after:`
30`,beforeClose:`
31`,beforeComment:`
32`,beforeDecl:`
33`,beforeOpen:" ",beforeRule:`
34`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function Yc(e){return e[0].toUpperCase()+e.slice(1)}let Tn=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&n.type!=="root";)s+=1,n=n.parent;if(r.includes(`
35`)){let i=this.raw(e,null,"indent");if(i.length)for(let a=0;a<s;a++)r+=i}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],typeof n<"u"))return n;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return qs[r];let i=e.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[r]<"u")return i.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+Yc(r);this[a]?n=this[a](i,e):i.walk(o=>{if(n=o.raws[t],typeof n<"u")return!1})}return typeof n>"u"&&(n=qs[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
36`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
37`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
38`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
39`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
40`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var vo=Tn;Tn.default=Tn;let $c=vo;function Fn(e,t){new $c(t).stringify(e)}var Vr=Fn;Fn.default=Fn;let{isClean:rr,my:Jc}=Bt,Xc=cs,Kc=vo,qc=Vr;function Nn(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="proxyCache")continue;let s=e[n],i=typeof s;n==="parent"&&i==="object"?t&&(r[n]=t):n==="source"?r[n]=s:Array.isArray(s)?r[n]=s.map(a=>Nn(a,r)):(i==="object"&&s!==null&&(s=Nn(s)),r[n]=s)}return r}let Dn=class{constructor(e={}){this.raws={},this[rr]=!1,this[Jc]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Nn(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Xc(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[rr]){this[rr]=!1;let e=this;for(;e=e.parent;)e[rr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let n=t.indexOf(e.word);n!==-1&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)r[i]===`
41`?(n=1,s+=1):n+=1;return{column:n,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);s!==-1&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new Kc().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},n=t==null;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let a=this[i];if(Array.isArray(a))r[i]=a.map(o=>typeof o=="object"&&o.toJSON?o.toJSON(null,t):o);else if(typeof a=="object"&&a.toJSON)r[i]=a.toJSON(null,t);else if(i==="source"){let o=t.get(a.input);o==null&&(o=s,t.set(a.input,s),s++),r[i]={end:a.end,inputId:o,start:a.start}}else r[i]=a}return n&&(r.inputs=[...t.keys()].map(i=>i.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=qc){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var Hr=Dn;Dn.default=Dn;let Qc=Hr,zn=class extends Qc{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Gr=zn;zn.default=zn;let eh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",th=(e=21)=>{let t="",r=e;for(;r--;)t+=eh[Math.random()*64|0];return t};var rh={nanoid:th};let{SourceMapConsumer:Qs,SourceMapGenerator:ei}=De,{existsSync:nh,readFileSync:sh}=De,{dirname:an,join:ih}=De;function oh(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let Ln=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=an(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Qs(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(n.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return oh(e.substr(RegExp.lastMatch.length));let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=an(e),nh(e))return this.mapFile=e,sh(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(t instanceof Qs)return ei.fromSourceMap(t).toString();if(t instanceof ei)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=ih(an(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var So=Ln;Ln.default=Ln;let{SourceMapConsumer:ah,SourceMapGenerator:lh}=De,{fileURLToPath:ti,pathToFileURL:nr}=De,{isAbsolute:Pn,resolve:Bn}=De,{nanoid:uh}=rh,ln=De,ri=cs,ch=So,un=Symbol("fromOffsetCache"),hh=!!(ah&&lh),ni=!!(Bn&&Pn),Tr=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ni||/^\w+:\/\//.test(t.from)||Pn(t.from)?this.file=t.from:this.file=Bn(t.from)),ni&&hh){let r=new ch(this.css,t);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+uh(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,a;if(t&&typeof t=="object"){let l=t,h=r;if(typeof l.offset=="number"){let f=this.fromOffset(l.offset);t=f.line,r=f.col}else t=l.line,r=l.column;if(typeof h.offset=="number"){let f=this.fromOffset(h.offset);i=f.line,a=f.col}else i=h.line,a=h.column}else if(!r){let l=this.fromOffset(t);t=l.line,r=l.col}let o=this.origin(t,r,i,a);return o?s=new ri(e,o.endLine===void 0?o.line:{column:o.column,line:o.line},o.endLine===void 0?o.column:{column:o.endColumn,line:o.endLine},o.source,o.file,n.plugin):s=new ri(e,i===void 0?t:{column:r,line:t},i===void 0?r:{column:a,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:a,endLine:i,line:t,source:this.css},this.file&&(nr&&(s.input.url=nr(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[un])r=this[un];else{let s=this.css.split(`
42`);r=new Array(s.length);let i=0;for(let a=0,o=s.length;a<o;a++)r[a]=i,i+=s[a].length+1;this[un]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let s=r.length-2,i;for(;n<s;)if(i=n+(s-n>>1),e<r[i])s=i-1;else if(e>=r[i+1])n=i+1;else{n=i;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Bn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s=this.map.consumer(),i=s.originalPositionFor({column:t,line:e});if(!i.source)return!1;let a;typeof r=="number"&&(a=s.originalPositionFor({column:n,line:r}));let o;Pn(i.source)?o=nr(i.source):o=new URL(i.source,this.map.consumer().sourceRoot||nr(this.map.mapFile));let l={column:i.column,endColumn:a&&a.column,endLine:a&&a.line,line:i.line,url:o.toString()};if(o.protocol==="file:")if(ti)l.file=ti(o);else throw new Error("file: protocol is not available in this PostCSS build");let h=s.sourceContentFor(i.source);return h&&(l.source=h),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Yr=Tr;Tr.default=Tr;ln&&ln.registerInput&&ln.registerInput(Tr);let{SourceMapConsumer:ko,SourceMapGenerator:vr}=De,{dirname:Sr,relative:_o,resolve:Io,sep:Co}=De,{pathToFileURL:si}=De,dh=Yr,fh=!!(ko&&vr),ph=!!(Sr&&Io&&_o&&Co),mh=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
43`;this.css.includes(`\r
44`)&&(t=`\r
45`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Sr(e.file),n;this.mapOpts.sourcesContent===!1?(n=new ko(e.text),n.sourcesContent&&(n.sourcesContent=null)):n=e.consumer(),this.map.applySourceMap(n,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ph&&fh&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=vr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new vr({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new vr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>
45",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,i;this.stringify(this.root,(a,o,l)=>{if(this.css+=a,o&&l!=="end"&&(n.generated.line=e,n.generated.column=t-1,o.source&&o.source.start?(n.source=this.sourcePath(o),n.original.line=o.source.start.line,n.original.column=o.source.start.column-1,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,this.map.addMapping(n))),s=a.match(/\n/g),s?(e+=s.length,i=a.lastIndexOf(`
46`),t=a.length-i):t+=a.length,o&&l!=="start"){let h=o.parent||{raws:{}};(!(o.type==="decl"||o.type==="atrule"&&!o.nodes)||o!==h.last||h.raws.semicolon)&&(o.source&&o.source.end?(n.source=this.sourcePath(o),n.original.line=o.source.end.line,n.original.column=o.source.end.column-1,n.generated.line=e,n.generated.column=t-2,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=t-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Sr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Sr(Io(r,this.mapOpts.annotation)));let n=_o(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new dh(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(si){let r=si(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Co==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var xo=mh;let gh=Hr,Un=class extends gh{constructor(e){super(e),this.type="comment"}};var $r=Un;Un.default=Un;let{isClean:Oo,my:Ao}=Bt,Eo=Gr,Mo=$r,yh=Hr,Ro,hs,ds,To;function Fo(e){return e.map(t=>(t.nodes&&(t.nodes=Fo(t.nodes)),delete t.source,t))}function No(e){if(e[Oo]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)No(t)}let Ze=class Do extends yh{append(...t){for(let r of t){let n=this.normalize(r,this.last);for(let s of n)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let r of this.nodes)r.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,s;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],s=t(this.proxyOf.nodes[n],n),s!==!1);)this.indexes[r]+=1;return delete this.indexes[r],s}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:t[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>t[r](...n.map(s=>typeof s=="function"?(i,a)=>
vendor: 19,055 bytes, lines 46-47
46s(i.toProxy(),a):s)):r==="every"||r==="some"?n=>t[r]((s,...i)=>n(s.toProxy(),...i)):r==="root"?()=>t.root().toProxy():r==="nodes"?t.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?t[r].toProxy():t[r]:t[r]},set(t,r,n){return t[r]===n||(t[r]=n,(r==="name"||r==="params"||r==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,r){let n=this.index(t),s=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(t);for(let a of s)this.proxyOf.nodes.splice(n+1,0,a);let i;for(let a in this.indexes)i=this.indexes[a],n<i&&(this.indexes[a]=i+s.length);return this.markDirty(),this}insertBefore(t,r){let n=this.index(t),s=n===0?"prepend":!1,i=this.normalize(r,this.proxyOf.nodes[n],s).reverse();n=this.index(t);for(let o of i)this.proxyOf.nodes.splice(n,0,o);let a;for(let o in this.indexes)a=this.indexes[o],n<=a&&(this.indexes[o]=a+i.length);return this.markDirty(),this}normalize(t,r){if(typeof t=="string")t=Fo(Ro(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Eo(t)]}else if(t.selector)t=[new hs(t)];else if(t.name)t=[new ds(t)];else if(t.text)t=[new Mo(t)];else throw new Error("Unknown node type in node creation");return t.map(n=>(n[Ao]||Do.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Oo]&&No(n),typeof n.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(n.raws.before=r.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...t){t=t.reverse();for(let r of t){let n=this.normalize(r,this.first,"prepend").reverse();for(let s of n)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+n.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=t&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(t,r,n){return n||(n=r,r={}),this.walkDecls(s=>{r.props&&!r.props.includes(s.prop)||r.fast&&!s.value.includes(r.fast)||(s.value=s.value.replace(t,n))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((r,n)=>{let s;try{s=t(r,n)}catch(i){throw r.addToError(i)}return s!==!1&&r.walk&&(s=r.walk(t)),s})}walkAtRules(t,r){return r?t instanceof RegExp?this.walk((n,s)=>{if(n.type==="atrule"&&t.test(n.name))return r(n,s)}):this.walk((n,s)=>{if(n.type==="atrule"&&n.name===t)return r(n,s)}):(r=t,this.walk((n,s)=>{if(n.type==="atrule")return r(n,s)}))}walkComments(t){return this.walk((r,n)=>{if(r.type==="comment")return t(r,n)})}walkDecls(t,r){return r?t instanceof RegExp?this.walk((n,s)=>{if(n.type==="decl"&&t.test(n.prop))return r(n,s)}):this.walk((n,s)=>{if(n.type==="decl"&&n.prop===t)return r(n,s)}):(r=t,this.walk((n,s)=>{if(n.type==="decl")return r(n,s)}))}walkRules(t,r){return r?t instanceof RegExp?this.walk((n,s)=>{if(n.type==="rule"&&t.test(n.selector))return r(n,s)}):this.walk((n,s)=>{if(n.type==="rule"&&n.selector===t)return r(n,s)}):(r=t,this.walk((n,s)=>{if(n.type==="rule")return r(n,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Ze.registerParse=e=>{Ro=e};Ze.registerRule=e=>{hs=e};Ze.registerAtRule=e=>{ds=e};Ze.registerRoot=e=>{To=e};var Qe=Ze;Ze.default=Ze;Ze.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,ds.prototype):e.type==="rule"?Object.setPrototypeOf(e,hs.prototype):e.type==="decl"?Object.setPrototypeOf(e,Eo.prototype):e.type==="comment"?Object.setPrototypeOf(e,Mo.prototype):e.type==="root"&&Object.setPrototypeOf(e,To.prototype),e[Ao]=!0,e.nodes&&e.nodes.forEach(t=>{Ze.rebuild(t)})};let wh=Qe,zo,Lo,Tt=class extends wh{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new zo(new Lo,this,e).stringify()}};Tt.registerLazyResult=e=>{zo=e};Tt.registerProcessor=e=>{Lo=e};var fs=Tt;Tt.default=Tt;let jn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Po=jn;jn.default=jn;let bh=Po,Wn=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new bh(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var ps=Wn;Wn.default=Wn;const cn=39,ii=34,sr=92,oi=47,ir=10,kt=32,or=12,ar=9,lr=13,vh=91,Sh=93,kh=40,_h=41,Ih=123,Ch=125,xh=59,Oh=42,Ah=58,Eh=64,ur=/[\t\n\f\r "#'()/;[\\\]{}]/g,cr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Mh=/.[\r\n"'(/\\]/,ai=/[\da-f]/i;var Rh=function(e,t={}){let r=e.css.valueOf(),n=t.ignoreErrors,s,i,a,o,l,h,f,p,m,d,w=r.length,u=0,b=[],y=[];function v(){return u}function S(A){throw e.error("Unclosed "+A,u)}function C(){return y.length===0&&u>=w}function x(A){if(y.length)return y.pop();if(u>=w)return;let z=A?A.ignoreUnclosed:!1;switch(s=r.charCodeAt(u),s){case ir:case kt:case ar:case lr:case or:{i=u;do i+=1,s=r.charCodeAt(i);while(s===kt||s===ir||s===ar||s===lr||s===or);d=["space",r.slice(u,i)],u=i-1;break}case vh:case Sh:case Ih:case Ch:case Ah:case xh:case _h:{let R=String.fromCharCode(s);d=[R,R,u];break}case kh:{if(p=b.length?b.pop()[1]:"",m=r.charCodeAt(u+1),p==="url"&&m!==cn&&m!==ii&&m!==kt&&m!==ir&&m!==ar&&m!==or&&m!==lr){i=u;do{if(h=!1,i=r.indexOf(")",i+1),i===-1)if(n||z){i=u;break}else S("bracket");for(f=i;r.charCodeAt(f-1)===sr;)f-=1,h=!h}while(h);d=["brackets",r.slice(u,i+1),u,i],u=i}else i=r.indexOf(")",u+1),o=r.slice(u,i+1),i===-1||Mh.test(o)?d=["(","(",u]:(d=["brackets",o,u,i],u=i);break}case cn:case ii:{a=s===cn?"'":'"',i=u;do{if(h=!1,i=r.indexOf(a,i+1),i===-1)if(n||z){i=u+1;break}else S("string");for(f=i;r.charCodeAt(f-1)===sr;)f-=1,h=!h}while(h);d=["string",r.slice(u,i+1),u,i],u=i;break}case Eh:{ur.lastIndex=u+1,ur.test(r),ur.lastIndex===0?i=r.length-1:i=ur.lastIndex-2,d=["at-word",r.slice(u,i+1),u,i],u=i;break}case sr:{for(i=u,l=!0;r.charCodeAt(i+1)===sr;)i+=1,l=!l;if(s=r.charCodeAt(i+1),l&&s!==oi&&s!==kt&&s!==ir&&s!==ar&&s!==lr&&s!==or&&(i+=1,ai.test(r.charAt(i)))){for(;ai.test(r.charAt(i+1));)i+=1;r.charCodeAt(i+1)===kt&&(i+=1)}d=["word",r.slice(u,i+1),u,i],u=i;break}default:{s===oi&&r.charCodeAt(u+1)===Oh?(i=r.indexOf("*/",u+2)+1,i===0&&(n||z?i=r.length:S("comment")),d=["comment",r.slice(u,i+1),u,i],u=i):(cr.lastIndex=u+1,cr.test(r),cr.lastIndex===0?i=r.length-1:i=cr.lastIndex-2,d=["word",r.slice(u,i+1),u,i],b.push(d),u=i);break}}return u++,d}function M(A){y.push(A)}return{back:M,endOfFile:C,nextToken:x,position:v}};let Bo=Qe,Fr=class extends Bo{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var ms=Fr;Fr.default=Fr;Bo.registerAtRule(Fr);let Uo=Qe,jo,Wo,ut=class extends Uo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of n)s.raws.before=t.raws.before}return n}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new jo(new Wo,this,e).stringify()}};ut.registerLazyResult=e=>{jo=e};ut.registerProcessor=e=>{Wo=e};var Ut=ut;ut.default=ut;Uo.registerRoot(ut);let Ft={comma(e){return Ft.split(e,[","],!0)},space(e){let t=[" ",`
47`,"	"];return Ft.split(e,t)},split(e,t,r){let n=[],s="",i=!1,a=0,o=!1,l="",h=!1;for(let f of e)h?h=!1:f==="\\"?h=!0:o?f===l&&(o=!1):f==='"'||f==="'"?(o=!0,l=f):f==="("?a+=1:f===")"?a>0&&(a-=1):a===0&&t.includes(f)&&(i=!0),i?(s!==""&&n.push(s.trim()),s="",i=!1):s+=f;return(r||s!=="")&&n.push(s.trim()),n}};var Zo=Ft;Ft.default=Ft;let Vo=Qe,Th=Zo,Nr=class extends Vo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Th.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var gs=Nr;Nr.default=Nr;Vo.registerRule(Nr);let Fh=Gr,Nh=Rh,Dh=$r,zh=ms,Lh=Ut,li=gs;const ui={empty:!0,space:!0};function Ph(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}let Bh=class{constructor(e){this.input=e,this.root=new Lh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new zh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,n,s,i=!1,a=!1,o=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(o.length>0){for(s=o.length-1,n=o[s];n&&n[0]==="space";)n=o[--s];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else o.push(e);else o.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(t.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(t,"params",o),i&&(e=o[o.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let s=t-1;s>=0&&(n=e[s],!(n[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,s;for(let[i,a]of e.entries()){if(r=a,n=r[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!s)this.doubleColon(r);else{if(s[0]==="word"&&s[1]==="progid")continue;return i}s=r}return!1}comment(e){let t=new Dh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=Nh(this.input)}decl(e,t){let r=new Fh;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Ph(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let o=e[0][0];if(o===":"||o==="space"||o==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let o=e.length-1;o>=0;o--){if(s=e[o],s[1].toLowerCase()==="!important"){r.important=!0;let l=this.stringFrom(e,o);l=this.spacesFromEnd(e)+l,l!==" !important"&&(r.raws.important=l);break}else if(s[1].toLowerCase()==="important"){let l=e.slice(0),h="";for(let f=o;f>0;f--){let p=l[f][0];if(h.trim().indexOf("!")===0&&p!=="space")break;h=l.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=l)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(o=>o[0]!=="space"&&o[0]!=="comment")&&(r.raws.between+=i.map(o=>o[1]).join(""),i=[]),this.raw(r,"value",i.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new li;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],a=e[1].startsWith("--"),o=[],l=e;for(;l;){if(r=l[0],o.push(l),r==="("||r==="[")s||(s=l),i.push(r==="("?")":"]");else if(a&&n&&r==="{")s||(s=l),i.push("}");else if(i.length===0)if(r===";")if(n){this.decl(o,a);return}else break;else if(r==="{"){this.rule(o);return}else if(r==="}"){this.tokenizer.back(o.pop()),t=!0;break}else r===":"&&(n=!0);else r===i[i.length-1]&&(i.pop(),i.length===0&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!a)for(;o.length&&(l=o[o.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(o.pop());this.decl(o,a)}else this.unknownWord(o)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,a=r.length,o="",l=!0,h,f;for(let p=0;p<a;p+=1)s=r[p],i=s[0],i==="space"&&p===a-1&&!n?l=!1:i==="comment"?(f=r[p-1]?r[p-1][0]:"empty",h=r[p+1]?r[p+1][0]:"empty",!ui[f]&&!ui[h]?o.slice(-1)===","?l=!1:o+=s[1]:l=!1):o+=s[1];if(!l){let p=r.reduce((m,d)=>m+d[1],"");e.raws[t]={raw:p,value:o}}e[t]=o}rule(e){e.pop();let t=new li;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Uh=Bh;let jh=Qe,Wh=Uh,Zh=Yr;function Dr(e,t){let r=new Zh(e,t),n=new Wh(r);try{n.parse()}catch(s){throw s}return n.root}var ys=Dr;Dr.default=Dr;jh.registerParse(Dr);let{isClean:Pe,my:Vh}=Bt,Hh=xo,Gh=Vr,Yh=Qe,$h=fs,ci=ps,Jh=ys,Xh=Ut;const Kh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},qh={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Qh={Once:!0,postcssPlugin:!0,prepare:!0},ct=0;function _t(e){return typeof e=="object"&&typeof e.then=="function"}function Ho(e){let t=!1,r=Kh[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,ct,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,ct,r+"Exit"]:[r,r+"Exit"]}function hi(e){let t;return e.type==="document"?t=["Document",ct,"DocumentExit"]:e.type==="root"?t=["Root",ct,"RootExit"]:t=Ho(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Zn(e){return e[Pe]=!1,e.nodes&&e.nodes.forEach(t=>Zn(t)),e}let Vn={},ht=class Go{constructor(t,r,n){this.stringified=!1,this.processed=!1;let s;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))s=Zn(r);else if(r instanceof Go||r instanceof ci)s=Zn(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let i=Jh;n.syntax&&(i=n.syntax.parse),n.parser&&(i=n.parser),i.parse&&(i=i.parse);try{s=i(r,n)}catch(a){this.processed=!0,this.error=a}s&&!s[Vh]&&Yh.rebuild(s)}this.result=new ci(t,s,n),this.helpers={...Vn,postcss:Vn,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,r){let n=this.result.lastPlugin;try{r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=n.postcssPlugin,t.setMessage()):n.postcssVersion}catch(s){}return t}prepareVisitors(){this.listeners={};let t=(r,n,s)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,s])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!qh[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}
47. Try to update PostCSS (${this.processor.version} now).`);if(!Qh[n])if(typeof r[n]=="object")for(let s in r[n])s==="*"?t(r,n,r[n][s]):t(r,n+"-"+s.toLowerCase(),r[n][s]);else typeof r[n]=="function"&&t(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let r=this.plugins[t],n=this.runOnRoot(r);if(_t(n))try{await n}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Pe];){t[Pe]=!0;let r=[hi(t)];for(;r.length>0;){let n=this.visitTick(r);if(_t(n))try{await n}catch(s){let i=r[r.length-1].node;throw this.handleError(s,i)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(t.type==="document"){let s=t.nodes.map(i=>n(i,this.helpers));await Promise.all(s)}else await n(t,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>t.Once(n,this.helpers));return _t(r[0])?Promise.all(r):r}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,r=Gh;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);let n=new Hh(r,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let r=this.runOnRoot(t);if(_t(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Pe];)t[Pe]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,r){return this.async().then(t,r)}toString(){return this.css}visitSync(t,r){for(let[n,s]of t){this.result.lastPlugin=n;let i;try{i=s(r,this.helpers)}catch(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(_t(i))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:n,visitors:s}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){let[a,o]=s[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(r.iterator!==0){let a=r.iterator,o;for(;o=n.nodes[n.indexes[a]];)if(n.indexes[a]+=1,!o[Pe]){o[Pe]=!0,t.push(hi(o));return}r.iterator=0,delete n.indexes[a]}let i=r.events;for(;r.eventIndex<i.length;){let a=i[r.eventIndex];if(r.eventIndex+=1,a===ct){n.nodes&&n.nodes.length&&(n[Pe]=!0,r.iterator=n.getIterator());return}else if(this.listeners[a]){r.visitors=this.listeners[a];return}}t.pop()}walkSync(t){t[Pe]=!0;let r=Ho(t);for(let n of r)if(n===ct)t.nodes&&t.each(s=>{s[Pe]||this.walkSync(s)});else{let s=this.listeners[n];if(s&&this.visitSync(s,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ht.registerPostcss=e=>{Vn=e};var Yo=ht;ht.default=ht;Xh.registerLazyResult(ht);$h.registerLazyResult(ht);let ed=xo,td=Vr,rd=ys;const nd=ps;let Hn=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let n,s=td;this.result=new nd(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let a=new ed(s,n,this._opts,t);
vendor: 6,421 bytes, line 47
47if(a.isMap()){let[o,l]=a.generate();o&&(this.result.css=o),l&&(this.result.map=l)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=rd;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var sd=Hn;Hn.default=Hn;let id=sd,od=Yo,ad=fs,ld=Ut,Nt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new id(this,e,t):new od(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var ud=Nt;Nt.default=Nt;ld.registerProcessor(Nt);ad.registerProcessor(Nt);let cd=Gr,hd=So,dd=$r,fd=ms,pd=Yr,md=Ut,gd=gs;function Dt(e,t){if(Array.isArray(e))return e.map(s=>Dt(s));let{inputs:r,...n}=e;if(r){t=[];for(let s of r){let i={...s,__proto__:pd.prototype};i.map&&(i.map={...i.map,__proto__:hd.prototype}),t.push(i)}}if(n.nodes&&(n.nodes=e.nodes.map(s=>Dt(s,t))),n.source){let{inputId:s,...i}=n.source;n.source=i,s!=null&&(n.source.input=t[s])}if(n.type==="root")return new md(n);if(n.type==="decl")return new cd(n);if(n.type==="rule")return new gd(n);if(n.type==="comment")return new dd(n);if(n.type==="atrule")return new fd(n);throw new Error("Unknown node type: "+e.type)}var yd=Dt;Dt.default=Dt;let wd=cs,$o=Gr,bd=Yo,vd=Qe,ws=ud,Sd=Vr,kd=yd,Jo=fs,_d=Po,Xo=$r,Ko=ms,Id=ps,Cd=Yr,xd=ys,Od=Zo,qo=gs,Qo=Ut,Ad=Hr;function de(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new ws(e)}de.plugin=function(e,t){let r=!1;function n(...i){console&&console.warn&&!r&&(r=!0,e+"",Ir.LANG&&Ir.LANG.startsWith("cn")&&e+"");let a=t(...i);return a.postcssPlugin=e,a.postcssVersion=new ws().version,a}let s;return Object.defineProperty(n,"postcss",{get(){return s||(s=n()),s}}),n.process=function(i,a,o){return de([n(o)]).process(i,a)},n};de.stringify=Sd;de.parse=xd;de.fromJSON=kd;de.list=Od;de.comment=e=>new Xo(e);de.atRule=e=>new Ko(e);de.decl=e=>new $o(e);de.rule=e=>new qo(e);de.root=e=>new Qo(e);de.document=e=>new Jo(e);de.CssSyntaxError=wd;de.Declaration=$o;de.Container=vd;de.Processor=ws;de.Document=Jo;de.Comment=Xo;de.Warning=_d;de.AtRule=Ko;de.Result=Id;de.Input=Cd;de.Rule=qo;de.Root=Qo;de.Node=Ad;bd.registerPostcss(de);var Ed=de;de.default=de;const be=Wc(Ed);be.stringify;be.fromJSON;be.plugin;be.parse;be.list;be.document;be.comment;be.atRule;be.rule;be.decl;be.root;be.CssSyntaxError;be.Declaration;be.Container;be.Processor;be.Document;be.Comment;be.Warning;be.AtRule;be.Result;be.Input;be.Rule;be.Root;be.Node;class bs{constructor(...t){Te(this,"parentElement",null),Te(this,"parentNode",null),Te(this,"ownerDocument"),Te(this,"firstChild",null),Te(this,"lastChild",null),Te(this,"previousSibling",null),Te(this,"nextSibling",null),Te(this,"ELEMENT_NODE",1),Te(this,"TEXT_NODE",3),Te(this,"nodeType"),Te(this,"nodeName"),Te(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof bs){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const di={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},fi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},hr={},Md=()=>!!globalThis.Zone;function vs(e){if(hr[e])return hr[e];const t=globalThis[e],r=t.prototype,n=e in di?di[e]:void 0,s=!!(n&&n.every(o=>{var l,h;return!!((h=(l=Object.getOwnPropertyDescriptor(r,o))==null?void 0:l.get)!=null&&h.toString().includes("[native code]"))})),i=e in fi?fi[e]:void 0,a=!!(i&&i.every(o=>{var l;return typeof r[o]=="function"&&((l=r[o])==null?void 0:l.toString().includes("[native code]"))}));if(s&&a&&!Md())return hr[e]=t.prototype,t.prototype;try{const o=document.createElement("iframe");document.body.appendChild(o);const l=o.contentWindow;if(!l)return t.prototype;const h=l[e].prototype;return document.body.removeChild(o),h?hr[e]=h:r}catch{return r}}const hn={};function Ge(e,t,r){var n;const s=`${e}.${String(r)}`;if(hn[s])return hn[s].call(t);const i=vs(e),a=(n=Object.getOwnPropertyDescriptor(i,r))==null?void 0:n.get;return a?(hn[s]=a,a.call(t)):t[r]}const dn={};function ea(e,t,r){const n=`${e}.${String(r)}`;if(dn[n])return dn[n].bind(t);const s=vs(e)[r];return typeof s!="function"?t[r]:(dn[n]=s,s.bind(t))}function Rd(e){return Ge("Node",e,"childNodes")}function Td(e){return Ge("Node",e,"parentNode")}function Fd(e){return Ge("Node",e,"parentElement")}function Nd(e){return Ge("Node",e,"textContent")}function Dd(e,t){return ea("Node",e,"contains")(t)}function zd(e){return ea("Node",e,"getRootNode")()}function Ld(e){return!e||!("host"in e)?null:Ge("ShadowRoot",e,"host")}function Pd(e){return e.styleSheets}function Bd(e){return!e||!("shadowRoot"in e)?null:Ge("Element",e,"shadowRoot")}function Ud(e,t){return Ge("Element",e,"querySelector")(t)}
vendor: 8,866 bytes, lines 47-49
47function jd(e,t){return Ge("Element",e,"querySelectorAll")(t)}function ta(){return vs("MutationObserver").constructor}const se={childNodes:Rd,parentNode:Td,parentElement:Fd,textContent:Nd,contains:Dd,getRootNode:zd,host:Ld,styleSheets:Pd,shadowRoot:Bd,querySelector:Ud,querySelectorAll:jd,mutationObserver:ta};function Ae(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const rt=`Please stop import mirror directly. Instead of that,\r
48now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
49or you can use record.mirror to access the mirror instance during recording.`;let pi={map:{},getId(){return-1},getNode(){return null},removeNodeFromMap(){},has(){return!1},reset(){}};typeof window<"u"&&window.Proxy&&window.Reflect&&(pi=new Proxy(pi,{get(e,t,r){return Reflect.get(e,t,r)}}));function zt(e,t,r={}){let n=null,s=0;return function(...i){const a=Date.now();!s&&r.leading===!1&&(s=a);const o=t-(a-s),l=this;o<=0||o>t?(n&&(clearTimeout(n),n=null),s=a,e.apply(l,i)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{s=r.leading===!1?0:Date.now(),n=null,e.apply(l,i)},o))}}function Jr(e,t,r,n,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?r:{set(a){setTimeout(()=>{r.set.call(this,a)},0),i&&i.set&&i.set.call(this,a)}}),()=>Jr(e,t,i||{},!0)}function ft(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],s=r(n);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}}let zr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(zr=()=>new Date().getTime());function ra(e){var t,r,n,s;const i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:i.documentElement.scrollLeft||i?.body&&((t=se.parentElement(i.body))==null?void 0:t.scrollLeft)||((r=i?.body)==null?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:i?.documentElement.scrollTop||i?.body&&((n=se.parentElement(i.body))==null?void 0:n.scrollTop)||((s=i?.body)==null?void 0:s.scrollTop)||0}}function na(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sa(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ia(e){return e?e.nodeType===e.ELEMENT_NODE?e:se.parentElement(e):null}function Ee(e,t,r,n){if(!e)return!1;const s=ia(e);if(!s)return!1;try{if(typeof t=="string"){if(s.classList.contains(t)||n&&s.closest("."+t)!==null)return!0}else if(Or(s,t,n))return!0}catch{}return!!(r&&(s.matches(r)||n&&s.closest(r)!==null))}function Wd(e,t){return t.getId(e)!==-1}function fn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===Ot}function oa(e,t){if(It(e))return!1;const r=t.getId(e);if(!t.has(r))return!0;const n=se.parentNode(e);return n&&n.nodeType===e.DOCUMENT_NODE?!1:n?oa(n,t):!0}function Gn(e){return!!e.changedTouches}function Zd(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function aa(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function la(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Yn(e){return e?e instanceof bs&&"shadowRoot"in e?!!e.shadowRoot:!!se.shadowRoot(e):!1}class Vd{constructor(){Y(this,"id",1),Y(this,"styleIDMap",new WeakMap),Y(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ua(e){var t;let r=null;return"getRootNode"in e&&((t=se.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&se.host(se.getRootNode(e))&&(r=se.host(se.getRootNode(e))),r}function Hd(e){let t=e,r;for(;r=ua(t);)t=r;return t}function Gd(e){const t=e.ownerDocument;if(!t)return!1;const r=Hd(e);return se.contains(t,r)}function ca(e){const t=e.ownerDocument;return t?se.contains(t,e)||Gd(e):!1}var ce=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(ce||{}),ie=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ie||{}),Me=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Me||{}),je=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(je||{}),dt=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(dt||{}),nt=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(nt||{}),ha=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ha||{});function mi(e){return"__ln"in e}class Yd{constructor(){Y(this,"length",0),Y(this,"head",null),Y(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&mi(t.previousSibling)){const n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&mi(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){const r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const gi=(e,t)=>`${e}@${t}`;class $d{constructor(){Y(this,"frozen",!1),Y(this,"locked",!1),Y(this,"texts",[]),Y(this,"attributes",[]),Y(this,"attributeMap",new WeakMap),Y(this,"removes",[]),Y(this,"mapRemoves",[]),Y(this,"movedMap",{}),Y(this,"addedSet",new Set),Y(this,"movedSet",new Set),Y(this,"droppedSet",new Set),Y(this,"removesSubTreeCache",new Set),Y(this,"mutationCb"),Y(this,"blockClass"),Y(this,"blockSelector"),Y(this,"maskTextClass"),Y(this,"maskTextSelector"),Y(this,"inlineStylesheet"),Y(this,"maskInputOptions"),Y(this,"maskTextFn"),Y(this,"maskInputFn"),Y(this,"keepIframeSrcFn"),Y(this,"recordCanvas"),Y(this,"inlineImages"),Y(this,"slimDOMOptions"),Y(this,"dataURLOptions"),Y(this,"doc"),Y(this,"mirror"),Y(this,"iframeManager"),Y(this,"stylesheetManager"),Y(this,"shadowDomManager"),Y(this,"canvasManager"),Y(this,"processedNodeManager"),Y(this,"unattachedDoc"),Y(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),Y(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],r=new Set,n=new Yd,s=l=>{let h=l,f=Ot;for(;f===Ot;)h=h&&h.nextSibling,f=h&&this.mirror.getId(h);return f},i=l=>{const h=se.parentNode(l);if(!h||!ca(l))return;let f=!1;if(l.nodeType===Node.TEXT_NODE){const w=h.tagName;if(w==="TEXTAREA")return;w==="STYLE"&&this.addedSet.has(h)&&(f=!0)}const p=It(h)?this.mirror.getId(ua(l)):this.mirror.getId(h),m=s(l);if(p===-1||m===-1)return n.addNode(l);const d=st(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inl
vendor: 17,694 bytes, line 49
49ineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:w=>{aa(w,this.mirror)&&this.iframeManager.addIframe(w),la(w,this.mirror)&&this.stylesheetManager.trackLinkElement(w),Yn(l)&&this.shadowDomManager.addShadowRoot(se.shadowRoot(l),this.doc)},onIframeLoad:(w,u)=>{this.iframeManager.attachIframe(w,u),this.shadowDomManager.observeAttachShadow(w)},onStylesheetLoad:(w,u)=>{this.stylesheetManager.attachLinkElement(w,u)},cssCaptured:f});d&&(t.push({parentId:p,nextId:m,node:d}),r.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)yi(this.removesSubTreeCache,l,this.mirror)&&!this.movedSet.has(se.parentNode(l))||i(l);for(const l of this.addedSet)!wi(this.droppedSet,l)&&!yi(this.removesSubTreeCache,l,this.mirror)||wi(this.movedSet,l)?i(l):this.droppedSet.add(l);let a=null;for(;n.length;){let l=null;if(a){const h=this.mirror.getId(se.parentNode(a.value)),f=s(a.value);h!==-1&&f!==-1&&(l=a)}if(!l){let h=n.tail;for(;h;){const f=h;if(h=h.previous,f){const p=this.mirror.getId(se.parentNode(f.value));if(s(f.value)===-1)continue;if(p!==-1){l=f;break}else{const m=f.value,d=se.parentNode(m);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=se.host(d);if(this.mirror.getId(w)!==-1){l=f;break}}}}}}if(!l){for(;n.head;)n.removeNode(n.head.value);break}a=l.previous,n.removeNode(l.value),i(l.value)}const o={texts:this.texts.map(l=>{const h=l.node,f=se.parentNode(h);return f&&f.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(f),{id:this.mirror.getId(h),value:l.value}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:h}=l;if(typeof h.style=="string"){const f=JSON.stringify(l.styleDiff),p=JSON.stringify(l._unchangedStyles);f.length<h.style.length&&(f+p).split("var(").length===h.style.split("var(").length&&(h.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:h}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(o))}),Y(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r)),r.attributes.value=Array.from(se.childNodes(t),n=>se.textContent(n)||"").join("")}),Y(this,"processMutation",t=>{if(!fn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const r=se.textContent(t.target);!Ee(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Ni(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,ia(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let n=t.attributeName,s=t.target.getAttribute(n);if(n==="value"){const a=Kn(r);s=Xn({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:a,value:s,maskInputFn:this.maskInputFn})}if(Ee(t.target,this.blockClass,this.blockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(s))if(!r.contentDocument)n="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Fi(r.tagName,n))if(i.attributes[n]=Ti(this.doc,Ke(r.tagName),Ke(n),s),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const a=this.unattachedDoc.createElement("span");t.oldValue&&a.setAttribute("style",t.oldValue);for(const o of Array.from(r.style)){const l=r.style.getPropertyValue(o),h=r.style.getPropertyPriority(o);l!==a.style.getPropertyValue(o)||h!==a.style.getPropertyPriority(o)?h===""?i.styleDiff[o]=l:i.styleDiff[o]=[l,h]:i._unchangedStyles[o]=[l,h]}for(const o of Array.from(a.style))r.style.getPropertyValue(o)===""&&(i.styleDiff[o]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?i.attributes.rr_open_mode="modal":i.attributes.rr_open_mode="non-modal");break}case"childList":{if(Ee(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const n=this.mirror.getId(r),s=It(t.target)?this.mirror.getId(se.host(t.target)):this.mirror.getId(t.target);Ee(t.target,this.blockClass,this.blockSelector,!1)||fn(r,this.mirror,this.slimDOMOptions)||!Wd(r,this.mirror)||(this.addedSet.has(r)?($n(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||oa(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[gi(n,s)]?$n(this.movedSet,r):(this.removes.push({parentId:s,id:n,isShadow:It(t.target)&&Ct(t.target)?!0:void 0}),Jd(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),Y(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(fn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[gi(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Ee(t,this.blockClass,this.blockSelector,!1)||(se.childNodes(t).forEach(n=>this.genAdds(n)),Yn(t)&&se.childNodes(se.shadowRoot(t)).forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function $n(e,t){e.delete(t),se.childNodes(t).forEach(r=>$n(e,r))}function Jd(e,t){const r=[e];for(;r.length;){const n=r.pop();t.has(n)||(t.add(n),se.childNodes(n).forEach(s=>r.push(s)))}}function yi(e,t,r){return e.size===0?!1:Xd(e,t)}function Xd(e,t,r){const n=se.parentNode(t);return n?e.has(n):!1}function wi(e,t){return e.size===0?!1:da(e,t)}function da(e,t){const r=se.parentNode(t);return r?e.has(r)?!0:da(e,r):!1}let xt;function Kd(e){xt=e}function qd(){xt=void 0}const ue=e=>xt?(...t)=>{try{return e(...t)}catch(r){if(xt&&xt(r)===!0)return;throw r}}:e,Xe=[];function jt(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function fa(e,t){const r=new $d;Xe.push(r),r.init(e);const n=new(ta())(ue(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Qd({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let a=[],o;const l=zt(ue(p=>{const m=Date.now()-o;e(a.map(d=>(d.timeOffset-=m,d)),p),a=[],o=null}),i),h=ue(zt(ue(p=>{const m=jt(p),{clientX:d,clientY:w}=Gn(p)?p.changedTouches[0]:p;o||(o=zr()),a.push({x:d,y:w,id:n.getId(m),timeOffset:zr()-o}),l(typeof DragEvent<"u"&&p instanceof DragEvent?ie.Drag:p instanceof MouseEvent?ie.MouseMove:ie.TouchMove)}),s,{trailing:!1})),f=[Ae("mousemove",h,r),Ae("touchmove",h,r),Ae("drag",h,r)];return ue(()=>{f.forEach(p=>p())})}function ef({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const a=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,o=[];let l=null;const h=f=>p=>{const m=jt(p);if(Ee(m,n,s,!0))return;let d=null,w=f;if("pointerType"in p){switch(p.pointerType){case"mouse":d=je.Mouse;break;case"touch":d=je.Touch;break;case"pen":d=je.Pen;break}d===je.Touch?Me[f]===Me.MouseDown?w="TouchStart":Me[f]===Me.MouseUp&&(w="TouchEnd"):je.Pen}else Gn(p)&&(d=je.Touch);d!==null?(l=d,(w.startsWith("Touch")&&d===je.Touch||w.startsWith("Mouse")&&d===je.Mouse)&&(d=null)):Me[f]===Me.Click&&(d=l,l=null);const u=Gn(p)?p.changedTouches[0]:p;if(!u)return;const b=r.getId(m),{clientX:y,clientY:v}=u;ue(e)({type:Me[w],id:b,x:y,y:v,...d!==null&&{pointerType:d}})};return Object.keys(Me).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1).forEach(f=>{let p=Ke(f);const m=h(f);if(window.PointerEvent)switch(Me[f]){case Me.MouseDown:case Me.MouseUp:p=p.replace("mouse","pointer");break;case Me.TouchStart:case Me.TouchEnd:return}o.push(Ae(p,m,t))}),ue(()=>{o.forEach(f=>f())})}function pa({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,sampling:i}){const a=ue(zt(ue(o=>{const l=jt(o);if(!l||Ee(l,n,s,!0))return;const h=r.getId(l);if(l===t&&t.defaultView){const f=ra(t.defaultView);e({id:h,x:f.left,y:f.top})}else e({id:h,x:l.scrollLeft,y:l.scrollTop})}),i.scroll||100));return Ae("scroll",a,t)}function tf({viewportResizeCb:e},{win:t}){let r=-1,n=-1;const s=ue(zt(ue(()=>{const i=na(),a=sa();(r!==i||n!==a)&&(e({width:Number(a),height:Number(i)}),r=i,n=a)}),200));return Ae("resize",s,t)}const rf=["INPUT","TEXTAREA","SELECT"],bi=new WeakMap;function nf({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:o,maskInputFn:l,sampling:h,userTriggeredOnInput:f}){function p(y){let v=jt(y);const S=y.isTrusted,C=v&&v.tagName;if(v&&C==="OPTION"&&(v=se.parentElement(v)),!v||!C||rf.indexOf(C)<0||Ee(v,n,s,!0)||v.classList.contains(i)||a&&v.matches(a))return;let x=v.value,M=!1;const A=Kn(v)||"";A==="radio"||A==="checkbox"?M=v.checked:(o[C.toLowerCase()]||o[A])&&(x=Xn({element:v,maskInputOptions:o,tagName:C,type:A,value:x,maskInputFn:l})),m(v,f?{text:x,isChecked:M,userTriggered:S}:{text:x,isChecked:M});const z=v.name;A==="radio"&&z&&M&&t.querySelectorAll(`input[type="radio"][name="${z}"]`).forEach(R=>{if(R!==v){const B=R.value;m(R,f?{text:B,isChecked:!M,userTriggered:!1}:{text:B,isChecked:!M})}})}function m(y,v){const S=bi.get(y);if(!S||S.text!==v.text||S.isChecked!==v.isChecked){bi.set(y,v);const C=r.getId(y);ue(e)({...v,id:C})}}const d=(h.input==="last"?["change"]:["input","change"]).map(y=>Ae(y,ue(p),t)),w=t.defaultView;if(!w)return()=>{d.forEach(y=>y())};const u=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),b=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];return u&&u.set&&d.push(...b.map(y=>Jr(y[0],y[1],{set(){ue(p)({target:this,isTrusted:!1})}},!1,w))),ue(()=>{d.forEach(y=>y())})}function Lr(e){const t=[];function r(n,s){if(dr("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||dr("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||dr("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||dr("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){const i=Array.from(n.parentRule.cssRules).indexOf(n);s.unshift(i)}else if(n.parentStyleSheet){const i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);s.unshift(i)}return s}return r(e,t)}function Ve(e,t,r){let n,s;return e?(e.ownerNode?n=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:n}):{}}function sf({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ue((f,p,m)=>{const[d,w]=m,{id:u,styleId:b}=Ve(p,t,r.styleMirror);return(u&&u!==-1||b&&b!==-1)&&e({id:u,styleId:b,adds:[{rule:d,index:w}]}),f.apply(p,m)})}),n.CSSStyleSheet.prototype.addRule=function(f,p,m=this.cssRules.length){const d=`${f} { ${p} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[d,m])};const i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:ue((f,p,m)=>{const[d]=m,{id:w,styleId:u}=Ve(p,t,r.styleMirror);return(w&&w!==-1||u&&u!==-1)&&e({id:w,styleId:u,removes:[{index:d}]}),f.apply(p,m)})}),n.CSSStyleSheet.prototype.removeRule=function(f){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[f])};let a;n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:ue((f,p,m)=>{const[d]=m,{id:w,styleId:u}=Ve(p,t,r.styleMirror);return(w&&w!==-1||u&&u!==-1)&&e({id:w,styleId:u,replace:d}),f.apply(p,m)})}));let o;n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:ue((f,p,m)=>{const[d]=m,{id:w,styleId:u}=Ve(p,t,r.styleMirror);return(w&&w!==-1||u&&u!==-1)&&e({id:w,styleId:u,replaceSync:d}),f.apply(p,m)})}));const l={};fr("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(fr("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),fr("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),fr("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const h={};return Object.entries(l).forEach(([f,p])=>{h[f]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(h[f].insertRule,{apply:ue((m,d,w)=>{const[u,b]=w,{id:y,styleId:v}=Ve(d.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||v&&v!==-1)&&e({id:y,styleId:v,adds:[{rule:u,index:[...Lr(d),b||0]}]}),m.apply(d,w)})}),p.prototype.deleteRule=new Proxy(h[f].deleteRule,{apply:ue((m,d,w)=>{const[u]=w,{id:b,styleId:y}=Ve(d.parentStyleSheet,t,r.styleMirror);return(b&&b!==-1||y&&y!==-1)&&e({id:b,styleId:y,removes:[{index:[...Lr(d),u]}]}),m.apply(d,w)})})}),ue(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=i,a&&(n.CSSStyleSheet.prototype.replace=a),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([f,p])=>{p.prototype.insertRule=h[f].insertRule,p.prototype.deleteRule=h[f].deleteRule})})}function ma({mirror:e,stylesheetManager:t},r){var n,s,i;let a=null;r.nodeName==="#document"?a=e.getId(r):a=e.getId(se.host(r));const o=r.nodeName==="#document"?(n=r.defaultView)==null?void 0:n.Document:(i=(s=r.ownerDocument)==null?void 0:s.defaultView)==null?void 0:i.ShadowRoot,l=o!=null&&o.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!o||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var h;return(h=l.get)==null?void 0:h.call(this)},set(h){var f;const p=(f=l.set)==null?void 0:f.call(this,h);if(a!==null&&a!==-1)try{t.adoptStyleSheets(h,a)}catch{}return p}}),ue(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function of({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:ue((o,l,h)=>{var f;const[p,m,d]=h;if(r.has(p))return i.apply(l,[p,m,d]);const{id:w,styleId:u}=Ve((f=l.parentRule)==null?void 0:f.parentStyleSheet,t,n.styleMirror);return(w&&w!==-1||u&&u!==-1)&&e({id:w,styleId:u,set:{property:p,value:m,priority:d},index:Lr(l.parentRule)}),o.apply(l,h)})});const a=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:ue((o,l,h)=>{var f;const[p]=h;if(r.has(p))return a.apply(l,[p]);const{id:m,styleId:d}=Ve((f=l.parentRule)==null?void 0:f.parentStyleSheet,t,n.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,remove:{property:p},index:Lr(l.parentRule)}),o.apply(l,h)})}),ue(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=a})}function af({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:s,doc:i}){const a=ue(l=>zt(ue(h=>{const f=jt(h);if(!f||Ee(f,t,r,!0))return;const{currentTime:p,volume:m,muted:d,playbackRate:w,loop:u}=f;e({type:l,id:n.getId(f),currentTime:p,volume:m,muted:d,playbackRate:w,loop:u})}),s.media||500)),o=[Ae("play",a(nt.Play),i),Ae("pause",a(nt.Pause),i),Ae("seeked",a(nt.Seeked),i),Ae("volumechange",a(nt.VolumeChange),i),Ae("ratechange",a(nt.RateChange),i)];return ue(()=>{o.forEach(l=>l())})}function lf({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],s=new WeakMap,i=r.FontFace;r.FontFace=function(o,l,h){const f=new i(o,l,h);return s.set(f,{family:o,buffer:typeof l!="string",descriptors:h,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),f};const a=ft(t.fonts,"add",function(o){return function(l){return setTimeout(ue(()=>{const h=s.get(l);h&&(e(h),s.delete(l))}),0),o.apply(this,[l])}});return n.push(()=>{r.FontFace=i}),n.push(a),ue(()=>
vendor: 4,144 bytes, line 49
49{n.forEach(o=>o())})}function uf(e){const{doc:t,mirror:r,blockClass:n,blockSelector:s,selectionCb:i}=e;let a=!0;const o=ue(()=>{const l=t.getSelection();if(!l||a&&l!=null&&l.isCollapsed)return;a=l.isCollapsed||!1;const h=[],f=l.rangeCount||0;for(let p=0;p<f;p++){const m=l.getRangeAt(p),{startContainer:d,startOffset:w,endContainer:u,endOffset:b}=m;Ee(d,n,s,!0)||Ee(u,n,s,!0)||h.push({start:r.getId(d),startOffset:w,end:r.getId(u),endOffset:b})}i({ranges:h})});return o(),Ae("selectionchange",o)}function cf({doc:e,customElementCb:t}){const r=e.defaultView;return!r||!r.customElements?()=>{}:ft(r.customElements,"define",function(n){return function(s,i,a){try{t({define:{name:s}})}catch{`${s}`}return n.apply(this,[s,i,a])}})}function hf(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:s,scrollCb:i,viewportResizeCb:a,inputCb:o,mediaInteractionCb:l,styleSheetRuleCb:h,styleDeclarationCb:f,canvasMutationCb:p,fontCb:m,selectionCb:d,customElementCb:w}=e;e.mutationCb=(...u)=>{t.mutation&&t.mutation(...u),r(...u)},e.mousemoveCb=(...u)=>{t.mousemove&&t.mousemove(...u),n(...u)},e.mouseInteractionCb=(...u)=>{t.mouseInteraction&&t.mouseInteraction(...u),s(...u)},e.scrollCb=(...u)=>{t.scroll&&t.scroll(...u),i(...u)},e.viewportResizeCb=(...u)=>{t.viewportResize&&t.viewportResize(...u),a(...u)},e.inputCb=(...u)=>{t.input&&t.input(...u),o(...u)},e.mediaInteractionCb=(...u)=>{t.mediaInteaction&&t.mediaInteaction(...u),l(...u)},e.styleSheetRuleCb=(...u)=>{t.styleSheetRule&&t.styleSheetRule(...u),h(...u)},e.styleDeclarationCb=(...u)=>{t.styleDeclaration&&t.styleDeclaration(...u),f(...u)},e.canvasMutationCb=(...u)=>{t.canvasMutation&&t.canvasMutation(...u),p(...u)},e.fontCb=(...u)=>{t.font&&t.font(...u),m(...u)},e.selectionCb=(...u)=>{t.selection&&t.selection(...u),d(...u)},e.customElementCb=(...u)=>{t.customElement&&t.customElement(...u),w(...u)}}function df(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};hf(e,t);let n;e.recordDOM&&(n=fa(e,e.doc));const s=Qd(e),i=ef(e),a=pa(e),o=tf(e,{win:r}),l=nf(e),h=af(e);let f=()=>{},p=()=>{},m=()=>{},d=()=>{};e.recordDOM&&(f=sf(e,{win:r}),p=ma(e,e.doc),m=of(e,{win:r}),e.collectFonts&&(d=lf(e)));const w=uf(e),u=cf(e),b=[];for(const y of e.plugins)b.push(y.observer(y.callback,r,y.options));return ue(()=>{Xe.forEach(y=>y.reset()),n?.disconnect(),s(),i(),a(),o(),l(),h(),f(),p(),m(),d(),w(),u(),b.forEach(y=>y())})}function dr(e){return typeof window[e]<"u"}function fr(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class vi{constructor(t){Y(this,"iframeIdToRemoteIdMap",new WeakMap),Y(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,n,s){const i=n||this.getIdToRemoteIdMap(t),a=s||this.getRemoteIdToIdMap(t);let o=i.get(r);return o||(o=this.generateIdFn(),i.set(r,o),a.set(o,r)),o}getIds(t,r){const n=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return r.map(i=>this.getId(t,i,n,s))}getRemoteId(t,r,n){const s=n||this.getRemoteIdToIdMap(t);return typeof r!="number"?r:s.get(r)||-1}getRemoteIds(t,r){const n=this.getRemoteIdToIdMap(t);return r.map(s=>this.getRemoteId(t,s,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class ff{constructor(t){Y(this,"iframes",new WeakMap),Y(this,"crossOriginIframeMap",new WeakMap),Y(this,"crossOriginIframeMirror",new vi(Ri)),Y(this,"crossOriginIframeStyleMirror"),Y(this,"crossOriginIframeRootIdMap",new WeakMap),Y(this,"mirror"),Y(this,"mutationCb"),Y(this,"wrappedEmit"),Y(this,"loadListener"),Y(this,"stylesheetManager"),Y(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=ne
vendor: 9,901 bytes, line 49
49w vi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var n,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((n=t.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const s=this.transformCrossOriginEvent(n,r.data.event);s&&this.wrappedEmit(s,r.data.isCheckout)}transformCrossOriginEvent(t,r){var n;switch(r.type){case ce.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const s=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(r.data.node,s),{timestamp:r.timestamp,type:ce.IncrementalSnapshot,data:{source:ie.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ce.Meta:case ce.Load:case ce.DomContentLoaded:return!1;case ce.Plugin:return r;case ce.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case ce.IncrementalSnapshot:switch(r.data.source){case ie.Mutation:return r.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(s.node,i)}),r.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),r.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),r.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case ie.Drag:case ie.TouchMove:case ie.MouseMove:return r.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case ie.ViewportResize:return!1;case ie.MediaInteraction:case ie.MouseInteraction:case ie.Scroll:case ie.CanvasMutation:case ie.Input:return this.replaceIds(r.data,t,["id"]),r;case ie.StyleSheetRule:case ie.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case ie.Font:return r;case ie.Selection:return r.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),r;case ie.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(n=r.data.styles)==null||n.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),r}}return!1}replace(t,r,n,s){for(const i of s)!Array.isArray(r[i])&&typeof r[i]!="number"||(Array.isArray(r[i])?r[i]=t.getIds(n,r[i]):r[i]=t.getId(n,r[i]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==ha.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}}class pf{constructor(t){Y(this,"shadowDoms",new WeakSet),Y(this,"mutationCb"),Y(this,"scrollCb"),Y(this,"bypassOptions"),Y(this,"mirror"),Y(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Ct(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const n=fa({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(pa({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(se.host(t))),this.restoreHandlers.push(ma({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){const n=this;this.restoreHandlers.push(ft(t.prototype,"attachShadow",function(s){return function(i){const a=s.call(this,i),o=se.shadowRoot(this);return o&&ca(this)&&n.addShadowRoot(o,r),a}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var pr=0;pr<it.length;pr++)mf[it.charCodeAt(pr)]=pr;var gf=function(e){var t=new Uint8Array(e),r,n=t.length,s="";for(r=0;r<n;r+=3)s+=it[t[r]>>2],s+=it[(t[r]&3)<<4|t[r+1]>>4],s+=it[(t[r+1]&15)<<2|t[r+2]>>6],s+=it[t[r+2]&63];return n%3===2?s=s.substring(0,s.length-1)+"=":n%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const Si=new Map;function yf(e,t){let r=Si.get(e);return r||(r=new Map,Si.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const ga=(e,t,r)=>{if(!e||!(wa(e,t)||typeof e=="object"))return;const n=e.constructor.name,s=yf(r,n);let i=s.indexOf(e);return i===-1&&(i=s.length,s.push(e)),i};function kr(e,t,r){if(e instanceof Array)return e.map(n=>kr(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const n=e.constructor.name,s=gf(e);return{rr_type:n,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[kr(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const n=e.constructor.name,{src:s}=e;return{rr_type:n,src:s}}else if(e instanceof HTMLCanvasElement){const n="HTMLImageElement",s=e.toDataURL();return{rr_type:n,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[kr(e.data,t,r),e.width,e.height]};if(wa(e,t)||typeof e=="object"){const n=e.constructor.name,s=ga(e,t,r);return{rr_type:n,index:s}}}}return e}const ya=(e,t,r)=>e.map(n=>kr(n,t,r)),wa=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(r=>typeof t[r]=="function").find(r=>e instanceof t[r]);function wf(e,t,r,n){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const o=ft(t.CanvasRenderingContext2D.prototype,a,function(l){return function(...h){return Ee(this.canvas,r,n,!0)||setTimeout(()=>{const f=ya(h,t,this);e(this.canvas,{type:dt["2D"],property:a,args:f})},0),l.apply(this,h)}});s.push(o)}catch{const o=Jr(t.CanvasRenderingContext2D.prototype,a,{set(l){e(this.canvas,{type:dt["2D"],property:a,args:[l],setter:!0})}});s.push(o)}return()=>{s.forEach(a=>a())}}function bf(e){return e==="experimental-webgl"?"webgl":e}function ki(e,t,r,n){const s=[];try{const i=ft(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(o,...l){if(!Ee(this,t,r,!0)){const h=bf(o);if("__context"in this||(this.__context=h),n&&["webgl","webgl2"].includes(h))if(l[0]&&typeof l[0]=="object"){const f=l[0];f.preserveDrawingBuffer||(f.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[o,...l])}});s.push(i)}catch{}return()=>{s.forEach(i=>i())}}function _i(e,t,r,n,s,i){const a=[],o=Object.getOwnPropertyNames(e);for(const l of o)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;const h=ft(e,l,function(f){return function(...p){const m=f.apply(this,p);if(ga(m,i,this),"tagName"in this.canvas&&!Ee(this.canvas,n,s,!0)){const d=ya(p,i,this),w={type:t,property:l,args:d};r(this.canvas,w)}return m}});a.push(h)}catch{const h=Jr(e,l,{set(f){r(this.canvas,{type:t,property:l,args:[f],setter:!0})}});a.push(h)}return a}function vf(e,t,r,n){const s=[];return s.push(..._i(t.WebGLRenderingContext.prototype,dt.WebGL,e,r,n,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(..._i(t.WebGL2RenderingContext.prototype,dt.WebGL2,e,r,n,t)),()=>{s.forEach(i=>i())}}const ba="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
49yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Sf=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),Ii=typeof window<"u"&&window.Blob&&new Blob([Sf(ba)],{type:"text/javascript;charset=utf-8"});function kf(e){let t;try{if(t=Ii&&(window.URL||window.webkitURL).createObjectURL(Ii),!t)throw"";const r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;base64,"+ba,{name:e?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class _f{constructor(t){Y(this,"pendingCanvasMutations",new Map),Y(this,"rafStamps",{latestId:0,invokeId:null}),Y(this,"mirror"),Y(this,"mutationCb"),Y(this,"resetObservers"),Y(this,"frozen",!1),Y(this,"locked",!1),Y(this,"processMutation",(l,h)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(h)});const{sampling:r="all",win:n,blockClass:s,blockSelector:i,recordCanvas:a,dataURLOptions:o}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,a&&r==="all"&&this.initCanvasMutationObserver(n,s,i),a&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,s,i,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,n,s,i){const a=ki(r,n,s,!0),o=new Map,l=new kf;l.onmessage=w=>{const{id:u}=w.data;if(o.set(u,!1),!("base64"in w.data))return;const{base64:b,type:y,width:v,height:S}=w.data;this.mutationCb({id:u,type:dt["2D"],commands:[{property:"clearRect",args:[0,0,v,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:b}],type:y}]},0,0]}]})};const h=1e3/t;let f=0,p;const m=()=>{const w=[];return r.document.querySelectorAll("canvas").forEach(u=>{Ee(u,n,s,!0)||w.push(u)}),w},d=w=>{if(f&&w-f<h){p=requestAnimationFrame(d);return}
vendor: 6,284 bytes, line 49
49f=w,m().forEach(async u=>{var b;const y=this.mirror.getId(u);if(o.get(y)||u.width===0||u.height===0)return;if(o.set(y,!0),["webgl","webgl2"].includes(u.__context)){const S=u.getContext(u.__context);((b=S?.getContextAttributes())==null?void 0:b.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}const v=await createImageBitmap(u);l.postMessage({id:y,bitmap:v,width:u.width,height:u.height,dataURLOptions:i.dataURLOptions},[v])}),p=requestAnimationFrame(d)};p=requestAnimationFrame(d),this.resetObservers=()=>{a(),cancelAnimationFrame(p)}}initCanvasMutationObserver(t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=ki(t,r,n,!1),i=wf(this.processMutation.bind(this),t,r,n),a=vf(this.processMutation.bind(this),t,r,n);this.resetObservers=()=>{s(),i(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;const s=n.map(a=>{const{type:o,...l}=a;return l}),{type:i}=n[0];this.mutationCb({id:r,type:i,commands:s}),this.pendingCanvasMutations.delete(t)}}class If{constructor(t){Y(this,"trackedLinkElements",new WeakSet),Y(this,"mutationCb"),Y(this,"adoptedStyleSheetCb"),Y(this,"styleMirror",new Vd),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const n={id:r,styleIds:[]},s=[];for(const i of t){let a;this.styleMirror.has(i)?a=this.styleMirror.getId(i):(a=this.styleMirror.add(i),s.push({styleId:a,rules:Array.from(i.rules||CSSRule,(o,l)=>({rule:Ai(o,i.href),index:l}))})),n.styleIds.push(a)}s.length>0&&(n.styles=s),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Cf{constructor(){Y(this,"nodeMap",new WeakMap),Y(this,"active",!1)}inOtherBuffer(t,r){const n=this.nodeMap.get(t);return n&&Array.from(n).some(s=>s!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}}let _e,_r,pn,Pr=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Os=e.contentWindow)==null?void 0:Os.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Fe=Ol();function Wt(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:s="rr-block",blockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:o=null,maskTextClass:l="rr-mask",maskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:p,maskInputOptions:m,slimDOMOptions:d,maskInputFn:w,maskTextFn:u,hooks:b,packFn:y,sampling:v={},dataURLOptions:S={},mousemoveWait:C,recordDOM:x=!0,recordCanvas:M=!1,recordCrossOriginIframes:A=!1,recordAfter:z=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:R=!1,collectFonts:B=!1,inlineImages:$=!1,plugins:I,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:g=new Set([]),errorHandler:P}=e;Kd(P);const K=A?window.parent===window:!0;let U=!1;if(!K)try{window.parent.document&&(U=!1)}catch{U=!0}if(K&&!t)throw new Error("emit function is required");if(!K&&!U)return()=>{};C!==void 0&&v.mousemove===void 0&&(v.mousemove=C),Fe.reset();const re=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:m!==void 0?m:{password:!0},W=d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:d==="all",headMetaDescKeywords:d==="all",headTitleMutations:d==="all"}:d||{};Zd();let te,D=0;const N=ee=>{for(const ke of I||[])ke.eventProcessor&&(ee=ke.eventProcessor(ee));return y&&!U&&(ee=y(ee)),ee};_e=(ee,ke)=>{var ae;const c=ee;if(c.timestamp=zr(),(ae=Xe[0])!=null&&ae.isFrozen()&&c.type!==ce.FullSnapshot&&!(c.type===ce.IncrementalSnapshot&&c.data.source===ie.Mutation)&&Xe.forEach(L=>L.unfreeze()),K)t?.(N(c),ke);else if(U){const L={type:"rrweb",event:N(c),origin:window.location.origin,isCheckout:ke};window.parent.postMessage(L,"*")}if(c.type===ce.FullSnapshot)te=c,D=0;else if(c.type===ce.IncrementalSnapshot){if(c.data.source===ie.Mutation&&c.data.isAttachIframe)return;D++;const L=n&&D>=n,E=r&&c.timestamp-te.timestamp>r;(L||E)&&_r(!0)}};const q=ee=>{_e({type:ce.IncrementalSnapshot,data:{source:ie.Mutation,...ee}})},J=ee=>_e({type:ce.IncrementalSnapshot,data:{source:ie.Scroll,...ee}}),G=ee=>_e({type:ce.IncrementalSnapshot,data:{source:ie.CanvasMutation,...ee}}),ve=ee=>_e({type:ce.IncrementalSnapshot,data:{source:ie.AdoptedStyleSheet,...ee}}),ye=new If({mutationCb:q,adoptedStyleSheetCb:ve}),ne=new ff({mirror:Fe,mutationCb:q,stylesheetManager:ye,recordCrossOriginIframes:A,wrappedEmit:_e});for(const ee of I||[])ee.getMirror&&ee.getMirror({nodeMirror:Fe,crossOriginIframeMirror:ne.crossOriginIframeMirror,crossOriginIframeStyleMirror:ne.crossOriginIframeStyleMirror});const oe=new Cf;pn=new _f({recordCanvas:M,mutationCb:G,win:window,blockClass:s,blockSelector:i,mirror:Fe,sampling:v.canvas,dataURLOptions:S});const Se=new pf({mutationCb:q,scrollCb:J,bypassOptions:{blockClass:s,blockSelector:i,maskTextClass:l,maskTextSelector:h,inlineStylesheet:f,maskInputOptions:re,dataURLOptions:S,maskTextFn:u,maskInputFn:w,recordCanvas:M,inlineImages:$,sampling:v,slimDOMOptions:W,iframeManager:ne,stylesheetManager:ye,canvasManager:pn,keepIframeSrcFn:T,processedNodeManager:oe},mirror:Fe});_r=(ee=!1)=>
49{if(!x)return;_e({type:ce.Meta,data:{href:window.location.href,width:sa(),height:na()}},ee),ye.reset(),Se.init(),Xe.forEach(ae=>ae.lock());const ke=Kl(document,{mirror:Fe,blockClass:s,blockSelector:i,maskTextClass:l,maskTextSelector:h,inlineStylesheet:f,maskAllInputs:re,maskTextFn:u,maskInputFn:w,slimDOM:W,dataURLOptions:S,recordCanvas:M,inlineImages:$,onSerialize:ae=>{aa(ae,Fe)&&ne.addIframe(ae),la(ae,Fe)&&ye.trackLinkElement(ae),Yn(ae)&&Se.addShadowRoot(se.shadowRoot(ae),document)},onIframeLoad:(ae,c)=>{ne.attachIframe(ae,c),Se.observeAttachShadow(ae)},onStylesheetLoad:(ae,c)=>{ye.attachLinkElement(ae,c)},keepIframeSrcFn:T});if(!ke)return console.warn("Failed to snapshot the document");_e({type:ce.FullSnapshot,data:{node:ke,initialOffset:ra(window)}},ee),Xe.forEach(ae=>ae.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ye.adoptStyleSheets(document.adoptedStyleSheets,Fe.getId(document))};try{const ee=[],ke=c=>{var L;return ue(df)({mutationCb:q,mousemoveCb:(E,_)=>_e({type:ce.IncrementalSnapshot,data:{source:_,positions:E}}),mouseInteractionCb:E=>_e({type:ce.IncrementalSnapshot,data:{source:ie.MouseInteraction,...E}}),scrollCb:J,viewportResizeCb:E=>_e({type:ce.IncrementalSnapshot,data:{source:ie.ViewportResize,...E}}),inputCb:E=>_e({type:ce.IncrementalSnapshot,data:{source:ie.Input,...E}}),mediaInteractionCb:E=>_e({type:ce.IncrementalSnapshot,data:{source:ie.MediaInteraction,...E}}),styleSheetRuleCb:E=>_e({type:ce.IncrementalSnapshot,data:{source:ie.StyleSheetRule,...E}}),styleDeclarationCb:E=>_e({type:ce.IncrementalSnapshot,data:{source:ie.StyleDeclaration,...E}}),canvasMutationCb:G,fontCb:E=>_e({type:ce.IncrementalSnapshot,data:{source:ie.Font,...E}}),selectionCb:E=>{_e({type:ce.IncrementalSnapshot,data:{source:ie.Selection,...E}})},customElementCb:E=>{_e({type:ce.IncrementalSnapshot,data:{source:ie.CustomElement,...E}})},blockClass:s,ignoreClass:a,ignoreSelector:o,maskTextClass:l,maskTextSelector:h,maskInputOptions:re,inlineStylesheet:f,sampling:v,recordDOM:x,recordCanvas:M,inlineImages:$,userTriggeredOnInput:R,collectFonts:B,doc:c,maskInputFn:w,maskTextFn:u,keepIframeSrcFn:T,blockSelector:i,slimDOMOptions:W,dataURLOptions:S,mirror:Fe,iframeManager:ne,stylesheetManager:ye,shadowDomManager:Se,processedNodeManager:oe,canvasManager:pn,ignoreCSSAttributes:g,plugins:((L=I?.filter(E=>E.observer))==null?void 0:L.map(E=>({observer:E.observer,options:E.options,callback:_=>_e({type:ce.Plugin,data:{plugin:E.name,payload:_}})})))||[]},b)};ne.addLoadListener(c=>{try{ee.push(ke(c.contentDocument))}catch(L){}});const ae=()=>{_r(),ee.push(ke(document)),Pr=!0};return document.readyState==="interactive"||document.readyState==="complete"?ae():(ee.push(Ae("DOMContentLoaded",()=>{_e({type:ce.DomContentLoaded,data:{}}),z==="DOMContentLoaded"&&ae()})),ee.push(Ae("load",()=>{_e({type:ce.Load,data:{}}),z==="load"&&ae()},window))),()=>{ee.forEach(c=>c()),oe.destroy(),Pr=!1,qd()}}catch(ee){}}Wt.addCustomEvent=(e,t)=>{if(!Pr)throw new Error("please add custom event after start recording");_e({type:ce.Custom,data:{tag:e,payload:t}})};Wt.freezePage=()=>{Xe.forEach(e=>e.freeze())};Wt.takeFullSnapshot=e=>{if(!Pr)throw new Error("please take full snapshot after start recording");_r(e)};Wt.mirror=Fe;var Ci;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ci||(Ci={}));var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var va={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){return(function r(n,s,i){function a(h,f){if(!s[h]){if(!n[h]){var p=typeof gr=="function"&&gr;if(!f&&p)return p(h,!0);if(o)return o(h,!0);var m=new Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m}var d=s[h]={exports:{}};n[h][0].call(d.exports,function(w){var u=n[h][1][w];return a(u||w)},d,d.exports,r,n,s,i)}return s[h].exports}for(var o=typeof gr=="function"&&gr,l=0;l<i.length;l++)a(i[l]);return a})({1:[function(r,n,s){var i=r("./utils"),a=r("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 10,595 bytes, lines 49-50
49+/=";s.encode=function(l){for(var h,f,p,m,d,w,u,b=[],y=0,v=l.length,S=v,C=i.getTypeOf(l)!=="string";y<l.length;)S=v-y,p=C?(h=l[y++],f=y<v?l[y++]:0,y<v?l[y++]:0):(h=l.charCodeAt(y++),f=y<v?l.charCodeAt(y++):0,y<v?l.charCodeAt(y++):0),m=h>>2,d=(3&h)<<4|f>>4,w=1<S?(15&f)<<2|p>>6:64,u=2<S?63&p:64,b.push(o.charAt(m)+o.charAt(d)+o.charAt(w)+o.charAt(u));return b.join("")},s.decode=function(l){var h,f,p,m,d,w,u=0,b=0,y="data:";if(l.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var v,S=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===o.charAt(64)&&S--,l.charAt(l.length-2)===o.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(v=a.uint8array?new Uint8Array(0|S):new Array(0|S);u<l.length;)h=o.indexOf(l.charAt(u++))<<2|(m=o.indexOf(l.charAt(u++)))>>4,f=(15&m)<<4|(d=o.indexOf(l.charAt(u++)))>>2,p=(3&d)<<6|(w=o.indexOf(l.charAt(u++))),v[b++]=h,d!==64&&(v[b++]=f),w!==64&&(v[b++]=p);return v}},{"./support":30,"./utils":32}],2:[function(r,n,s){var i=r("./external"),a=r("./stream/DataWorker"),o=r("./stream/Crc32Probe"),l=r("./stream/DataLengthProbe");function h(f,p,m,d,w){this.compressedSize=f,this.uncompressedSize=p,this.crc32=m,this.compression=d,this.compressedContent=w}h.prototype={getContentWorker:function(){var f=new a(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),p=this;return f.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),f},getCompressedWorker:function(){return new a(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(f,p,m){return f.pipe(new o).pipe(new l("uncompressedSize")).pipe(p.compressWorker(m)).pipe(new l("compressedSize")).withStreamInfo("compression",p)},n.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,s){var i=r("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},s.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,s){var i=r("./utils"),a=(function(){for(var o,l=[],h=0;h<256;h++){o=h;for(var f=0;f<8;f++)o=1&o?3988292384^o>>>1:o>>>1;l[h]=o}return l})();n.exports=function(o,l){return o!==void 0&&o.length?i.getTypeOf(o)!=="string"?(function(h,f,p,m){var d=a,w=m+p;h^=-1;for(var u=m;u<w;u++)h=h>>>8^d[255&(h^f[u])];return-1^h})(0|l,o,o.length,0):(function(h,f,p,m){var d=a,w=m+p;h^=-1;for(var u=m;u<w;u++)h=h>>>8^d[255&(h^f.charCodeAt(u))];return-1^h})(0|l,o,o.length,0):0}},{"./utils":32}],5:[function(r,n,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(r,n,s){var i=null;i=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:i}},{lie:37}],7:[function(r,n,s){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=r("pako"),o=r("./utils"),l=r("./stream/GenericWorker"),h=i?"uint8array":"array";function f(p,m){l.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=m,this.meta={}}s.magic="\b\0",o.inherits(f,l),f.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(h,p.data),!1)},f.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},f.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},f.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(m){p.push({data:m,meta:p.meta})}},s.compressWorker=function(p){return new f("Deflate",p)},s.uncompressWorker=function(){return new f("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,s){function i(d,w){var u,b="";for(u=0;u<w;u++)b+=String.fromCharCode(255&d),d>>>=8;return b}function a(d,w,u,b,y,v){var S,C,x=d.file,M=d.compression,A=v!==h.utf8encode,z=o.transformTo("string",v(x.name)),R=o.transformTo("string",h.utf8encode(x.name)),B=x.comment,$=o.transformTo("string",v(B)),I=o.transformTo("string",h.utf8encode(B)),T=R.length!==x.name.length,g=I.length!==B.length,P="",K="",U="",re=x.dir,W=x.date,te={crc32:0,compressedSize:0,uncompressedSize:0};w&&!u||(te.crc32=d.crc32,te.compressedSize=d.compressedSize,te.uncompressedSize=d.uncompressedSize);var D=0;w&&(D|=8),A||!T&&!g||(D|=2048);var N=0,q=0;re&&(N|=16),y==="UNIX"?(q=798,N|=(function(G,ve){var ye=G;return G||(ye=ve?16893:33204),(65535&ye)<<16})(x.unixPermissions,re)):(q=20,N|=(function(G){return 63&(G||0)})(x.dosPermissions)),S=W.getUTCHours(),S<<=6,S|=W.getUTCMinutes(),S<<=5,S|=W.getUTCSeconds()/2,C=W.getUTCFullYear()-1980,C<<=4,C|=W.getUTCMonth()+1,C<<=5,C|=W.getUTCDate(),T&&(K=i(1,1)+i(f(z),4)+R,P+="up"+i(K.length,2)+K),g&&(U=i(1,1)+i(f($),4)+I,P+="uc"+i(U.length,2)+U);var J="";return J+=`
50\0`,J+=i(D,2),J+=M.magic,J+=i(S,2),J+=i(C,2),J+=i(te.crc32,4),J+=i(te.compressedSize,4),J+=i(te.uncompressedSize,4),J+=i(z.length,2),J+=i(P.length,2),{fileRecord:p.LOCAL_FILE_HEADER+J+z+P,dirRecord:p.CENTRAL_FILE_HEADER+i(q,2)+J+i($.length,2)+"\0\0\0\0"+i(N,4)+i(b,4)+z+P+$}}var o=r("../utils"),l=r("../stream/GenericWorker"),h=r("../utf8"),f=r("../crc32"),p=r("../signature");function m(d,w,u,b){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=w,this.zipPlatform=u,this.encodeFileName=b,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(m,l),m.prototype.push=function(d){var w=d.meta.percent||0,u=this.entriesCount,b=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,l.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:u?(w+100*(u-b-1))/u:100}}))},m.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var w=this.streamFiles&&!d.file.dir;if(w){var u=a(d,w,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(d){this.accumulate=!1;var w=this.streamFiles&&!d.file.dir,u=a(d,w,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),w)this.push({data:(function(b){return p.DATA_DESCRIPTOR+i(b.crc32,4)+i(b.compressedSize,4)+i(b.uncompressedSize,4)})(d),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var d=this.bytesWritten,w=0;w<this.dirRecords.length;w++)this.push({data:this.dirRecords[w],meta:{percent:100}});var u=this.bytesWritten-d,b=(function(y,v,S,C,x){var M=o.transformTo("string",x(C));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(y,2)+i(y,2)+i(v,4)+i(S,4)+i(M.length,2)+M})(this.dirRecords.length,u,d,this.zipComment,this.encodeFileName);this.push({data:b,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(d){this._sources.push(d);var w=this;return d.on("data",function(u){w.processChunk(u)}),d.on("end",function(){w.closedSource(w.previous.streamInfo),w._sources.length?w.prepareNextSource():w.end()}),d.on("error",function(u){w.error(u)}),this},m.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(d){var w=this._sources;if(!l.prototype.error.call(this,d))return!1;for(var u=0;u<w.length;u++)try{w[u].error(d)}catch{}return!0},m.prototype.lock=function(){l.prototype.lock.call(this);for(var d=this._sources,w=0;w<d.length;w++)d[w].lock()},n.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,s){var i=r("../compressions"),a=r("./ZipFileWorker");s.generateWorker=function(o,l,h){var f=new a(l.streamFiles,h,l.platform,l.encodeFileName),p=0;try{o.forEach(function(m,d){p++;var w=(function(v,S){var C=v||S,x=i[C];if(!x)throw new Error(C+" is not a valid compression method !");return x})(d.options.compression,l.compression),u=d.options.compressionOptions||l.compressionOptions||{},b=d.dir,y=d.date;d._compressWorker(w,u).withStreamInfo("file",{name:m,dir:b,date:y,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(f)}),f.entriesCount=p}catch(m){f.error(m)}return f}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,s){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new i;for(var o in this)typeof this[o]!="function"&&(a[o]=this[o]);return a}}(i.prototype=r("./object")).loadAsync=r("./load"),i.support=r("./support"),i.defaults=r("./defaults"),i.version="3.10.1",i.loadAsync=function(a,o){return new i().loadAsync(a,o)},i.external=r("./external"),n.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,s){var i=r("./utils"),a=r("./external"),o=r("./utf8"),l=r("./zipEntries"),h=r("./stream/Crc32Probe"),f=r("./nodejsUtils");function p(m){return new a.Promise(function(d,w){var u=m.decompressed.getContentWorker().pipe(new h);u.on("error",function(b){w(b)}).on("end",function(){u.streamInfo.crc32!==m.decompressed.crc32?w(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}n.exports=function(m,d){var w=this;return d=i.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),f.isNode&&f.isStream(m)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip f
50ile",m,!0,d.optimizedBinaryString,d.base64).then(function(u){var b=new l(d);return b.load(u),b}).then(function(u){var b=[a.Promise.resolve(u)],y=u.files;if(d.checkCRC32)for(var v=0;v<y.length;v++)b.push(p(y[v]));return a.Promise.all(b)}).then(function(u){for(var b=u.shift(),y=b.files,v=0;v<y.length;v++){var S=y[v],C=S.fileNameStr,x=i.resolve(S.fileNameStr);w.file(x,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:d.createFolders}),S.dir||(w.file(x).unsafeOriginalName=C)}return b.zipComment.length&&(w.comment=b.zipComment),w})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,n,s){var i=r("../utils"),a=r("../stream/GenericWorker");function o(l,h){a.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(h)}i.inherits(o,a),o.prototype._bindStream=function(l){var h=this;(this._stream=l).pause(),l.on("data",function(f){h.push({data:f,meta:{percent:0}})}).on("error",function(f){h.isPaused?this.generatedError=f:h.error(f)}).on("end",function(){h.isPaused?h._upstreamEnded=!0:h.end()})},o.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,n,s){var i=r("readable-stream").Readable;function a(o,l,h){i.call(this,l),this._helper=o;var f=this;o.on("data",function(p,m){f.push(p)||f._helper.pause(),h&&h(m)}).on("error",function(p){f.emit("error",p)}).on("end",function(){f.push(null)})}r("../utils").inherits(a,i),a.prototype._read=function(){this._helper.resume()},n.exports=a},{"../utils":32,"readable-stream":16}],14:[function(r,n,s){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,a);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,a)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var a=new Buffer(i);return a.fill(0),a},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(r,n,s){function i(x,M,A){var z,R=o.getTypeOf(M),B=o.extend(A||{},f);B.date=B.date||new Date,B.compression!==null&&(B.compression=B.compression.toUpperCase()),typeof B.unixPermissions=="string"&&(B.unixPermissions=parseInt(B.unixPermissions,8)),B.unixPermissions&&16384&B.unixPermissions&&(B.dir=!0),B.dosPermissions&&16&B.dosPermissions&&(B.dir=!0),B.dir&&(x=y(x)),B.createFolders&&(z=b(x))&&v.call(this,z,!0);var $=R==="string"&&B.binary===!1&&B.base64===!1;A&&A.binary!==void 0||(B.binary=!$),(M instanceof p&&M.uncompressedSize===0||B.dir||!M||M.length===0)&&(B.base64=!1,B.binary=!0,M="",B.compression="STORE",R="string");var I=null;I=M instanceof p||M instanceof l?M:w.isNode&&w.isStream(M)?new u(x,M):o.prepareContent(x,M,B.binary,B.optimizedBinaryString,B.base64);var T=new m(x,I,B);this.files[x]=T}var a=r("./utf8"),o=r("./utils"),l=r("./stream/GenericWorker"),h=r("./stream/StreamHelper"),f=r("./defaults"),p=r("./compressedObject"),m=r("./zipObject"),d=r("./generate"),w=r("./nodejsUtils"),u=r("./nodejs/NodejsStreamInputAdapter"),b=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var M=x.lastIndexOf("/");return 0<M?x.substring(0,M):""},y=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},v=function(x,M){return M=M!==void 0?M:f.createFolders,x=y(x),this.files[x]||i.call(this,x,null,{dir:!0,createFolders:M}),this.files[x]};function S(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var M,A,z;for(M in this.files)z=this.files[M],(A=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&x(A,z)},filter:function(x){var M=[];return this.forEach(function(A,z){x(A,z)&&M.push(z)}),M},file:function(x,M,A){if(arguments.length!==1)return x=this.root+x,i.call(this,x,M,A),this;if(S(x)){var z=x;return this.filter(function(B,$){return!$.dir&&z.test(B)})}var R=this.files[this.root+x];return R&&!R.dir?R:null},folder:function(x){if(!x)return this;if(S(x))return this.filter(function(R,B){return B.dir&&x.test(R)});var M=this.root+x,A=v.call(this,M),z=this.clone();return z.root=A.name,z},remove:function(x){x=this.root+x;var M=this.files[x];if(M||(x.slice(-1)!=="/"&&(x+="/"),M=this.files[x]),M&&!M.dir)delete this.files[x];else for(var A=this.filter(function(R,B){return B.name.slice(0,x.length)===x}),z=0;z<A.length;z++)delete this.files[A[z].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 22,027 bytes, line 50
50,generateInternalStream:function(x){var M,A={};try{if((A=o.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=A.type.toLowerCase(),A.compression=A.compression.toUpperCase(),A.type==="binarystring"&&(A.type="string"),!A.type)throw new Error("No output type specified.");o.checkSupport(A.type),A.platform!=="darwin"&&A.platform!=="freebsd"&&A.platform!=="linux"&&A.platform!=="sunos"||(A.platform="UNIX"),A.platform==="win32"&&(A.platform="DOS");var z=A.comment||this.comment||"";M=d.generateWorker(this,A,z)}catch(R){(M=new l("error")).error(R)}return new h(M,A.type||"string",A.mimeType)},generateAsync:function(x,M){return this.generateInternalStream(x).accumulate(M)},generateNodeStream:function(x,M){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(M)}};n.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,n,s){n.exports=r("stream")},{stream:void 0}],17:[function(r,n,s){var i=r("./DataReader");function a(o){i.call(this,o);for(var l=0;l<this.data.length;l++)o[l]=255&o[l]}r("../utils").inherits(a,i),a.prototype.byteAt=function(o){return this.data[this.zero+o]},a.prototype.lastIndexOfSignature=function(o){for(var l=o.charCodeAt(0),h=o.charCodeAt(1),f=o.charCodeAt(2),p=o.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===l&&this.data[m+1]===h&&this.data[m+2]===f&&this.data[m+3]===p)return m-this.zero;return-1},a.prototype.readAndCheckSignature=function(o){var l=o.charCodeAt(0),h=o.charCodeAt(1),f=o.charCodeAt(2),p=o.charCodeAt(3),m=this.readData(4);return l===m[0]&&h===m[1]&&f===m[2]&&p===m[3]},a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./DataReader":18}],18:[function(r,n,s){var i=r("../utils");function a(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var l,h=0;for(this.checkOffset(o),l=this.index+o-1;l>=this.index;l--)h=(h<<8)+this.byteAt(l);return this.index+=o,h},readString:function(o){return i.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},n.exports=a},{"../utils":32}],19:[function(r,n,s){var i=r("./Uint8ArrayReader");function a(o){i.call(this,o)}r("../utils").inherits(a,i),a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,s){var i=r("./DataReader");function a(o){i.call(this,o)}r("../utils").inherits(a,i),a.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},a.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},a.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./DataReader":18}],21:[function(r,n,s){var i=r("./ArrayReader");function a(o){i.call(this,o)}r("../utils").inherits(a,i),a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},n.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,s){var i=r("../utils"),a=r("../support"),o=r("./ArrayReader"),l=r("./StringReader"),h=r("./NodeBufferReader"),f=r("./Uint8ArrayReader");n.exports=function(p){var m=i.getTypeOf(p);return i.checkSupport(m),m!=="string"||a.uint8array?m==="nodebuffer"?new h(p):a.uint8array?new f(i.transformTo("uint8array",p)):new o(i.transformTo("array",p)):new l(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,s){s.LOCAL_FILE_HEADER="PK��",s.CENTRAL_FILE_HEADER="PK��",s.CENTRAL_DIRECTORY_END="PK��",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK��",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,s){var i=r("./GenericWorker"),a=r("../utils");function o(l){i.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(o,i),o.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},n.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,s){var i=r("./GenericWorker"),a=r("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(o,i),o.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,s){var i=r("../utils"),a=r("./GenericWorker");function o(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(o,a),o.prototype.processChunk=function(l){if(l){var h=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=h+l.data.length}a.prototype.processChunk.call(this,l)},n.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,s){var i=r("../utils"),a=r("./GenericWorker");function o(l){a.call(this,"DataWorker");var h=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(f){h.dataIsReady=!0,h.data=f,h.max=f&&f.length||0,h.type=i.getTypeOf(f),h.isPaused||h._tickAndRepeat()},function(f){h.error(f)})}i.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,h=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,h);break;case"uint8array":l=this.data.subarray(this.index,h);break;case"array":case"nodebuffer":l=this.data.slice(this.index,h)}return this.index=h,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,s){function i(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,o){return this._listeners[a].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,o){if(this._listeners[a])for(var l=0;l<this._listeners[a].length;l++)this._listeners[a][l].call(this,o)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var o=this;return a.on("data",function(l){o.processChunk(l)}),a.on("end",function(){o.end()}),a.on("error",function(l){o.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,o){return this.extraStreamInfo[a]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},n.exports=i},{}],29:[function(r,n,s){var i=r("../utils"),a=r("./ConvertWorker"),o=r("./GenericWorker"),l=r("../base64"),h=r("../support"),f=r("../external"),p=null;if(h.nodestream)try{p=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(w,u){return new f.Promise(function(b,y){var v=[],S=w._internalType,C=w._outputType,x=w._mimeType;w.on("data",function(M,A){v.push(M),u&&u(A)}).on("error",function(M){v=[],y(M)}).on("end",function(){try{var M=(function(A,z,R){switch(A){case"blob":return i.newBlob(i.transformTo("arraybuffer",z),R);case"base64":return l.encode(z);default:return i.transformTo(A,z)}})(C,(function(A,z){var R,B=0,$=null,I=0;for(R=0;R<z.length;R++)I+=z[R].length;switch(A){case"string":return z.join("");case"array":return Array.prototype.concat.apply([],z);case"uint8array":for($=new Uint8Array(I),R=0;R<z.length;R++)$.set(z[R],B),B+=z[R].length;return $;case"nodebuffer":return Buffer.concat(z);default:throw new Error("concat : unsupported type '"+A+"'")}})(S,v),x);b(M)}catch(A){y(A)}v=[]}).resume()})}function d(w,u,b){var y=u;switch(u){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=u,this._mimeType=b,i.checkSupport(y),this._worker=w.pipe(new a(y)),w.lock()}catch(v){this._worker=new o("error"),this._worker.error(v)}}d.prototype={accumulate:function(w){return m(this,w)},on:function(w,u){var b=this;return w==="data"?this._worker.on(w,function(y){u.call(b,y.data,y.meta)}):this._worker.on(w,function(){i.delay(u,arguments,b)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(w){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},w)}},n.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,n,s){if(s.base64=!0,s.array=!0,s.string=!0,s.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",s.nodebuffer=typeof Buffer<"u",s.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")s.blob=!1;else{var i=new ArrayBuffer(0);try{s.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),s.blob=a.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!r("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,s){for(var i=r("./utils"),a=r("./support"),o=r("./nodejsUtils"),l=r("./stream/GenericWorker"),h=new Array(256),f=0;f<256;f++)h[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;h[254]=h[254]=1;function p(){l.call(this,"utf-8 decode"),this.leftOver=null}function m(){l.call(this,"utf-8 encode")}s.utf8encode=function(d){return a.nodebuffer?o.newBufferFrom(d,"utf-8"):(function(w){var u,b,y,v,S,C=w.length,x=0;for(v=0;v<C;v++)(64512&(b=w.charCodeAt(v)))==55296&&v+1<C&&(64512&(y=w.charCodeAt(v+1)))==56320&&(b=65536+(b-55296<<10)+(y-56320),v++),x+=b<128?1:b<2048?2:b<65536?3:4;for(u=a.uint8array?new Uint8Array(x):new Array(x),v=S=0;S<x;v++)(64512&(b=w.charCodeAt(v)))==55296&&v+1<C&&(64512&(y=w.charCodeAt(v+1)))==56320&&(b=65536+(b-55296<<10)+(y-56320),v++),b<128?u[S++]=b:(b<2048?u[S++]=192|b>>>6:(b<65536?u[S++]=224|b>>>12:(u[S++]=240|b>>>18,u[S++]=128|b>>>12&63),u[S++]=128|b>>>6&63),u[S++]=128|63&b);return u})(d)},s.utf8decode=function(d){return a.nodebuffer?i.transformTo("nodebuffer",d).toString("utf-8"):(function(w){var u,b,y,v,S=w.length,C=new Array(2*S);for(u=b=0;u<S;)if((y=w[u++])<128)C[b++]=y;else if(4<(v=h[y]))C[b++]=65533,u+=v-1;else{for(y&=v===2?31:v===3?15:7;1<v&&u<S;)y=y<<6|63&w[u++],v--;1<v?C[b++]=65533:y<65536?C[b++]=y:(y-=65536,C[b++]=55296|y>>10&1023,C[b++]=56320|1023&y)}return C.length!==b&&(C.subarray?C=C.subarray(0,b):C.length=b),i.applyFromCharCode(C)})(d=i.transformTo(a.uint8array?"uint8array":"array",d))},i.inherits(p,l),p.prototype.processChunk=function(d){var w=i.transformTo(a.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var u=w;(w=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),w.set(u,this.leftOver.length)}else w=this.leftOver.concat(w);this.leftOver=null}var b=(function(v,S){var C;for((S=S||v.length)>v.length&&(S=v.length),C=S-1;0<=C&&(192&v[C])==128;)C--;return C<0||C===0?S:C+h[v[C]]>S?C:S})(w),y=w;b!==w.length&&(a.uint8array?(y=w.subarray(0,b),this.leftOver=w.subarray(b,w.length)):(y=w.slice(0,b),this.leftOver=w.slice(b,w.length))),this.push({data:s.utf8decode(y),meta:d.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=p,i.inherits(m,l),m.prototype.processChunk=function(d){this.push({data:s.utf8encode(d.data),meta:d.meta})},s.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,s){var i=r("./support"),a=r("./base64"),o=r("./nodejsUtils"),l=r("./external");function h(u){return u}function f(u,b){for(var y=0;y<u.length;++y)b[y]=255&u.charCodeAt(y);return b}r("setimmediate"),s.newBlob=function(u,b){s.checkSupport("blob");try{return new Blob([u],{type:b})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(u),y.getBlob(b)}catch{throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(u,b,y){var v=[],S=0,C=u.length;if(C<=y)return String.fromCharCode.apply(null,u);for(;S<C;)b==="array"||b==="nodebuffer"?v.push(String.fromCharCode.apply(null,u.slice(S,Math.min(S+y,C)))):v.push(String.fromCharCode.apply(null,u.subarray(S,Math.min(S+y,C)))),S+=y;return v.join("")},stringifyByChar:function(u){for(var b="",y=0;y<u.length;y++)b+=String.fromCharCode(u[y]);return b},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}})()}};function m(u){var b=65536,y=s.getTypeOf(u),v=!0;if(y==="uint8array"?v=p.applyCanBeUsed.uint8array:y==="nodebuffer"&&(v=p.applyCanBeUsed.nodebuffer),v)for(;1<b;)try{return p.stringifyByChunk(u,y,b)}catch{b=Math.floor(b/2)}return p.stringifyByChar(u)}function d(u,b){for(var y=0;y<u.length;y++)b[y]=u[y];return b}s.applyFromCharCode=m;var w={};w.string={string:h,array:function(u){return f(u,new Array(u.length))},arraybuffer:function(u){return w.string.uint8array(u).buffer},uint8array:function(u){return f(u,new Uint8Array(u.length))},nodebuffer:function(u){return f(u,o.allocBuffer(u.length))}},w.array={string:m,array:h,arraybuffer:function(u){return new Uint8Array(u).buffer},uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return o.newBufferFrom(u)}},w.arraybuffer={string:function(u){return m(new Uint8Array(u))},array:function(u){return d(new Uint8Array(u),new Array(u.byteLength))},arraybuffer:h,uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return o.newBufferFrom(new Uint8Array(u))}},w.uint8array={string:m,array:function(u){return d(u,new Array(u.length))},arraybuffer:function(u){return u.buffer},uint8array:h,nodebuffer:function(u){return o.newBufferFrom(u)}},w.nodebuffer={string:m,array:function(u){return d(u,new Array(u.length))},arraybuffer:function(u){return w.nodebuffer.uint8array(u).buffer},uint8array:function(u){return d(u,new Uint8Array(u.length))},nodebuffer:h},s.transformTo=function(u,b){if(b=b||"",!u)return b;s.checkSupport(u);var y=s.getTypeOf(b);return w[y][u](b)},s.resolve=function(u){for(var b=u.split("/"),y=[],v=0;v<b.length;v++){var S=b[v];S==="."||S===""&&v!==0&&v!==b.length-1||(S===".."?y.pop():y.push(S))}return y.join("/")},s.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":i.nodebuffer&&o.isBuffer(u)?"nodebuffer":i.uint8array&&u instanceof Uint8Array?"uint8array":i.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(u){if(!i[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(u){var b,y,v="";for(y=0;y<(u||"").length;y++)v+="\\x"+((b=u.charCodeAt(y))<16?"0":"")+b.toString(16).toUpperCase();return v},s.delay=function(u,b,y){setImmediate(function(){u.apply(y||null,b||[])})},s.inherits=function(u,b){function y(){}y.prototype=b.prototype,u.prototype=new y},s.extend=function(){var u,b,y={};for(u=0;u<arguments.length;u++)for(b in arguments[u])Object.prototype.hasOwnProperty.call(arguments[u],b)&&y[b]===void 0&&(y[b]=arguments[u][b]);return y},s.prepareContent=function(u,b,y,v,S){return l.Promise.resolve(b).then(function(C){return i.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new l.Promise(function(x,M){var A=new FileReader;A.onload=function(z){x(z.target.result)},A.onerror=function(z){M(z.target.error)},A.readAsArrayBuffer(C)}):C}).then(function(C){var x=s.getTypeOf(C);return x?(x==="arraybuffer"?C=s.transformTo("uint8array",C):x==="string"&&(S?C=a.decode(C):y&&v!==!0&&(C=(function(M){return f(M,i.uint8array?new Uint8Array(M.length):new Array(M.length))})(C))),C):l.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,n,s){var i=r("./reader/readerFor"),a=r("./utils"),o=r("./signature"),l=r("./zipEntry"),h=r("./support");function f(p){this.files=[],this.loadOptions=p}f.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(m)+", expected "+a.pretty(p)+")")}},isSignature:function(p,m){var d=this.reader.index;this.reader.setIndex(p);var w=this.reader.readString(4)===m;return this.reader.setIndex(d),w},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var p=this.reader.readData(this.zipCommentLength),m=h.uint8array?"uint8array":"array",d=a.transformTo(m,p);this.zipComment=this.loadOptions.decodeFileName(d)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var p,m,d,w=this.zip64EndOfCentralSize-44;0<w;)p=this.reader.readInt(2),m=this.reader.readInt(4),d=this.reader.readData(m),this.zip64ExtensibleData[p]={id:p,length:m,value:d}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var p,m;for(p=0;p<this.files.length;p++)m=this.files[p],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(p=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var p=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(p<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
50ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(p);var m=p;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(p=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(p),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var w=m-d;if(0<w)this.isSignature(m,o.CENTRAL_FILE_HEADER)||(this.reader.zero=w);else if(w<0)throw new Error("Corrupted zip: missing "+Math.abs(w)+" bytes.")},prepareReader:function(p){this.reader=i(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=f},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,n,s){var i=r("./reader/readerFor"),a=r("./utils"),o=r("./compressedObject"),l=r("./crc32"),h=r("./utf8"),f=r("./compressions"),p=r("./support");function m(d,w){this.options=d,this.loadOptions=w}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var w,u;if(d.skip(22),this.fileNameLength=d.readInt(2),u=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.skip(u),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((w=(function(b){for(var y in f)if(Object.prototype.hasOwnProperty.call(f,y)&&f[y].magic===b)return f[y];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,w,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var w=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(w),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&
vendor: 7,430 bytes, line 50
50(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var w,u,b,y=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<y;)w=d.readInt(2),u=d.readInt(2),b=d.readData(u),this.extraFields[w]={id:w,length:u,value:b};d.setIndex(y)},handleUTF8:function(){var d=p.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var w=this.findExtraFieldUnicodePath();if(w!==null)this.fileNameStr=w;else{var u=a.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var b=this.findExtraFieldUnicodeComment();if(b!==null)this.fileCommentStr=b;else{var y=a.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var w=i(d.value);return w.readInt(1)!==1||l(this.fileName)!==w.readInt(4)?null:h.utf8decode(w.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var w=i(d.value);return w.readInt(1)!==1||l(this.fileComment)!==w.readInt(4)?null:h.utf8decode(w.readData(d.length-5))}return null}},n.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,n,s){function i(w,u,b){this.name=w,this.dir=b.dir,this.date=b.date,this.comment=b.comment,this.unixPermissions=b.unixPermissions,this.dosPermissions=b.dosPermissions,this._data=u,this._dataBinary=b.binary,this.options={compression:b.compression,compressionOptions:b.compressionOptions}}var a=r("./stream/StreamHelper"),o=r("./stream/DataWorker"),l=r("./utf8"),h=r("./compressedObject"),f=r("./stream/GenericWorker");i.prototype={internalStream:function(w){var u=null,b="string";try{if(!w)throw new Error("No output type specified.");var y=(b=w.toLowerCase())==="string"||b==="text";b!=="binarystring"&&b!=="text"||(b="string"),u=this._decompressWorker();var v=!this._dataBinary;v&&!y&&(u=u.pipe(new l.Utf8EncodeWorker)),!v&&y&&(u=u.pipe(new l.Utf8DecodeWorker))}catch(S){(u=new f("error")).error(S)}return new a(u,b,"")},async:function(w,u){return this.internalStream(w).accumulate(u)},nodeStream:function(w,u){return this.internalStream(w||"nodebuffer").toNodejsStream(u)},_compressWorker:function(w,u){if(this._data instanceof h&&this._data.compression.magic===w.magic)return this._data.getCompressedWorker();var b=this._decompressWorker();return this._dataBinary||(b=b.pipe(new l.Utf8EncodeWorker)),h.createWorkerFrom(b,w,u)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof f?this._data:new o(this._data)}};for(var p=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<p.length;d++)i.prototype[p[d]]=m;n.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,n,s){(function(i){var a,o,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var h=0,f=new l(w),p=i.document.createTextNode("");f.observe(p,{characterData:!0}),a=function(){p.data=h=++h%2}}else if(i.setImmediate||i.MessageChannel===void 0)a="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var u=i.document.createElement("script");u.onreadystatechange=function(){w(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},i.document.documentElement.appendChild(u)}:function(){setTimeout(w,0)};else{var m=new i.MessageChannel;m.port1.onmessage=w,a=function(){m.port2.postMessage(0)}}var d=[];function w(){var u,b;o=!0;for(var y=d.length;y;){for(b=d,d=[],u=-1;++u<y;)b[u]();y=d.length}o=!1}n.exports=function(u){d.push(u)!==1||o||a()}}).call(this,typeof mr<"u"?mr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,n,s){var i=r("immediate");function a(){}var o={},l=["REJECTED"],h=["FULFILLED"],f=["PENDING"];function p(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,y!==a&&u(this,y)}function m(y,v,S){this.promise=y,typeof v=="function"&&(this.onFulfilled=v,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function d(y,v,S){i(function(){var C;try{C=v(S)}catch(x){return o.reject(y,x)}C===y?o.reject(y,new TypeError("Cannot resolve promise with itself")):o.resolve(y,C)})}function w(y){var v=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof v=="function")return function(){v.apply(y,arguments)}}function u(y,v){var S=!1;function C(A){S||(S=!0,o.reject(y,A))}function x(A){S||(S=!0,o.resolve(y,A))}var M=b(function(){v(x,C)});M.status==="error"&&C(M.value)}function b(y,v){var S={};try{S.value=y(v),S.status="success"}catch(C){S.status="error",S.value=C}return S}(n.exports=p).prototype.finally=function(y){if(typeof y!="function")return this;var v=this.constructor;return this.then(function(S){return v.resolve(y()).then(function(){return S})},function(S){return v.resolve(y()).then(function(){throw S})})},p.prototype.catch=function(y){return this.then(null,y)},p.prototype.then=function(y,v){if(typeof y!="function"&&this.state===h||typeof v!="function"&&this.state===l)return this;var S=new this.constructor(a);return this.state!==f?d(S,this.state===h?y:v,this.outcome):this.queue.push(new m(S,y,v)),S},m.prototype.callFulfilled=function(y){o.resolve(this.promise,y)},m.prototype.otherCallFulfilled=function(y){d(this.promise,this.onFulfilled,y)},m.prototype.callRejected=function(y){o.reject(this.promise,y)},m.prototype.otherCallRejected=function(y){d(this.promise,this.onRejected,y)},o.resolve=function(y,v){var S=b(w,v);if(S.status==="error")return o.reject(y,S.value);var C=S.value;if(C)u(y,C);else{y.state=h,y.outcome=v;for(var x=-1,M=y.queue.length;++x<M;)y.queue[x].callFulfilled(v)}return y},o.reject=function(y,v){y.state=l,y.outcome=v;for(var S=-1,C=y.queue.length;++S<C;)y.queue[S].callRejected(v);return y},p.resolve=function(y){return y instanceof this?y:o.resolve(new this(a),y)},p.reject=function(y){var v=new this(a);return o.reject(v,y)},p.all=function(y){var v=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=y.length,C=!1;if(!S)return this.resolve([]);for(var x=new Array(S),M=0,A=-1,z=new this(a);++A<S;)R(y[A],A);return z;function R(B,$){v.resolve(B).then(function(I){x[$]=I,++M!==S||C||(C=!0,o.resolve(z,x))},function(I){C||(C=!0,o.reject(z,I))})}},p.race=function(y){var v=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=y.length,C=!1;if(!S)return this.resolve([]);for(var x=-1,M=new this(a);++x<S;)A=y[x],v.resolve(A).then(function(z){C||(C=!0,o.resolve(M,z))},function(z){C||(C=!0,o.reject(M,z))});var A;return M}},{immediate:36}],38:[function(r,n,s){var i={};(0,r("./lib/utils/common").assign)(i,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),n.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,n,s){var i=r("./zlib/deflate"),a=r("./utils/common"),o=r
vendor: 5,158 bytes, line 50
50("./utils/strings"),l=r("./zlib/messages"),h=r("./zlib/zstream"),f=Object.prototype.toString,p=0,m=-1,d=0,w=8;function u(y){if(!(this instanceof u))return new u(y);this.options=a.assign({level:m,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},y||{});var v=this.options;v.raw&&0<v.windowBits?v.windowBits=-v.windowBits:v.gzip&&0<v.windowBits&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var S=i.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(S!==p)throw new Error(l[S]);if(v.header&&i.deflateSetHeader(this.strm,v.header),v.dictionary){var C;if(C=typeof v.dictionary=="string"?o.string2buf(v.dictionary):f.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(S=i.deflateSetDictionary(this.strm,C))!==p)throw new Error(l[S]);this._dict_set=!0}}function b(y,v){var S=new u(v);if(S.push(y,!0),S.err)throw S.msg||l[S.err];return S.result}u.prototype.push=function(y,v){var S,C,x=this.strm,M=this.options.chunkSize;if(this.ended)return!1;C=v===~~v?v:v===!0?4:0,typeof y=="string"?x.input=o.string2buf(y):f.call(y)==="[object ArrayBuffer]"?x.input=new Uint8Array(y):x.input=y,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new a.Buf8(M),x.next_out=0,x.avail_out=M),(S=i.deflate(x,C))!==1&&S!==p)return this.onEnd(S),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(a.shrinkBuf(x.output,x.next_out))):this.onData(a.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&S!==1);return C===4?(S=i.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===p):C!==2||(this.onEnd(p),!(x.avail_out=0))},u.prototype.onData=function(y){this.chunks.push(y)},u.prototype.onEnd=function(y){y===p&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},s.Deflate=u,s.deflate=b,s.deflateRaw=function(y,v){return(v=v||{}).raw=!0,b(y,v)},s.gzip=function(y,v){return(v=v||{}).gzip=!0,b(y,v)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,n,s){var i=r("./zlib/inflate"),a=r("./utils/common"),o=r("./utils/strings"),l=r("./zlib/constants"),h=r("./zlib/messages"),f=r("./zlib/zstream"),p=r("./zlib/gzheader"),m=Object.prototype.toString;function d(u){if(!(this instanceof d))return new d(u);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},u||{});var b=this.options;b.raw&&0<=b.windowBits&&b.windowBits<16&&(b.windowBits=-b.windowBits,b.windowBits===0&&(b.windowBits=-15)),!(0<=b.windowBits&&b.windowBits<16)||u&&u.windowBits||(b.windowBits+=32),15<b.windowBits&&b.windowBits<48&&!(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var y=i.inflateInit2(this.strm,b.windowBits);if(y!==l.Z_OK)throw new Error(h[y]);this.header=new p,i.inflateGetHeader(this.strm,this.header)}function w(u,b){var y=new d(b);if(y.push(u,!0),y.err)throw y.msg||h[y.err];return y.result}d.prototype.push=function(u,b){var y,v,S,C,x,M,A=this.strm,z=this.options.chunkSize,R=this.options.dictionary,B=!1;if(this.ended)return!1;v=b===~~b?b:b===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof u=="string"?A.input=o.binstring2buf(u):m.call(u)==="[object ArrayBuffer]"?A.input=new Uint8Array(u):A.input=u,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new a.Buf8(z),A.next_out=0,A.avail_out=z),(y=i.inflate(A,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&R&&(M=typeof R=="string"?o.string2buf(R):m.call(R)==="[object ArrayBuffer]"?new Uint8Array(R):R,y=i.inflateSetDictionary(this.strm,M)),y===l.Z_BUF_ERROR&&B===!0&&(y=l.Z_OK,B=!1),y!==l.Z_STREAM_END&&y!==l.Z_OK)return this.onEnd(y),!(this.ended=!0);A.next_out&&(A.avail_out!==0&&y!==l.Z_STREAM_END&&(A.avail_in!==0||v!==l.Z_FINISH&&v!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=o.utf8border(A.output,A.next_out),C=A.next_out-S,x=o.buf2string(A.output,S),A.next_out=C,A.avail_out=z-C,C&&a.arraySet(A.output,A.output,S,C,0),this.onData(x)):this.onData(a.shrinkBuf(A.output,A.next_out)))),A.avail_in===0&&A.avail_out===0&&(B=!0)}while((0<A.avail_in||A.avail_out===0)&&y!==l.Z_STREAM_END);return y===l.Z_STREAM_END&&(v=l.Z_FINISH),v===l.Z_FINISH?(y=i.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===l.Z_OK):v!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(A.avail_out=0))},d.prototype.onData=function(u){this.chunks.push(u)},d.prototype.onEnd=function(u){u===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},s.Inflate=d,s.inflate=w,s.inflateRaw=function(u,b){return(b=b||{}).raw=!0,w(u,b)},s.ungzip=w},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,n,s){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(l){for(var h=Array.prototype.slice.call(arguments,1
vendor: 1,438 bytes, line 50
50);h.length;){var f=h.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(var p in f)f.hasOwnProperty(p)&&(l[p]=f[p])}}return l},s.shrinkBuf=function(l,h){return l.length===h?l:l.subarray?l.subarray(0,h):(l.length=h,l)};var a={arraySet:function(l,h,f,p,m){if(h.subarray&&l.subarray)l.set(h.subarray(f,f+p),m);else for(var d=0;d<p;d++)l[m+d]=h[f+d]},flattenChunks:function(l){var h,f,p,m,d,w;for(h=p=0,f=l.length;h<f;h++)p+=l[h].length;for(w=new Uint8Array(p),h=m=0,f=l.length;h<f;h++)d=l[h],w.set(d,m),m+=d.length;return w}},o={arraySet:function(l,h,f,p,m){for(var d=0;d<p;d++)l[m+d]=h[f+d]},flattenChunks:function(l){return[].concat.apply([],l)}};s.setTyped=function(l){l?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,a)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,o))},s.setTyped(i)},{}],42:[function(r,n,s){var i=r("./common"),a=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var l=new i.Buf8(256),h=0;h<256;h++)l[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function f(p,m){if(m<65537&&(p.subarray&&o||!p.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(p,m));for(var d="",w=0;w<m;w++)d+=String.fromCharCode(p[w]);return d}l[254]=l[254]=1,s.string2buf=function(p){var m,d,w,u,b,y=p.length,v=0;for(u=0;u<y;u++)(64512&(d=p.charCodeAt(u)))==55296&&u+1<y&&(64512&(w=p.charCo
vendor: 4,659 bytes, line 50
50deAt(u+1)))==56320&&(d=65536+(d-55296<<10)+(w-56320),u++),v+=d<128?1:d<2048?2:d<65536?3:4;for(m=new i.Buf8(v),u=b=0;b<v;u++)(64512&(d=p.charCodeAt(u)))==55296&&u+1<y&&(64512&(w=p.charCodeAt(u+1)))==56320&&(d=65536+(d-55296<<10)+(w-56320),u++),d<128?m[b++]=d:(d<2048?m[b++]=192|d>>>6:(d<65536?m[b++]=224|d>>>12:(m[b++]=240|d>>>18,m[b++]=128|d>>>12&63),m[b++]=128|d>>>6&63),m[b++]=128|63&d);return m},s.buf2binstring=function(p){return f(p,p.length)},s.binstring2buf=function(p){for(var m=new i.Buf8(p.length),d=0,w=m.length;d<w;d++)m[d]=p.charCodeAt(d);return m},s.buf2string=function(p,m){var d,w,u,b,y=m||p.length,v=new Array(2*y);for(d=w=0;d<y;)if((u=p[d++])<128)v[w++]=u;else if(4<(b=l[u]))v[w++]=65533,d+=b-1;else{for(u&=b===2?31:b===3?15:7;1<b&&d<y;)u=u<<6|63&p[d++],b--;1<b?v[w++]=65533:u<65536?v[w++]=u:(u-=65536,v[w++]=55296|u>>10&1023,v[w++]=56320|1023&u)}return f(v,w)},s.utf8border=function(p,m){var d;for((m=m||p.length)>p.length&&(m=p.length),d=m-1;0<=d&&(192&p[d])==128;)d--;return d<0||d===0?m:d+l[p[d]]>m?d:m}},{"./common":41}],43:[function(r,n,s){n.exports=function(i,a,o,l){for(var h=65535&i|0,f=i>>>16&65535|0,p=0;o!==0;){for(o-=p=2e3<o?2e3:o;f=f+(h=h+a[l++]|0)|0,--p;);h%=65521,f%=65521}return h|f<<16|0}},{}],44:[function(r,n,s){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,n,s){var i=(function(){for(var a,o=[],l=0;l<256;l++){a=l;for(var h=0;h<8;h++)a=1&a?3988292384^a>>>1:a>>>1;o[l]=a}return o})();n.exports=function(a,o,l,h){var f=i,p=h+l;a^=-1;for(var m=h;m<p;m++)a=a>>>8^f[255&(a^o[m])];return-1^a}},{}],46:[function(r,n,s){var i,a=r("../utils/common"),o=r("./trees"),l=r("./adler32"),h=r("./crc32"),f=r("./messages"),p=0,m=4,d=0,w=-2,u=-1,b=4,y=2,v=8,S=9,C=286,x=30,M=19,A=2*C+1,z=15,R=3,B=258,$=B+R+1,I=42,T=113,g=1,P=2,K=3,U=4;function re(c,L){return c.msg=f[L],L}function W(c){return(c<<1)-(4<c?9:0)}function te(c){for(var L=c.length;0<=--L;)c[L]=0}function D(c){var L=c.state,E=L.pending;E>c.avail_out&&(E=c.avail_out),E!==0&&(a.arraySet(c.output,L.pending_buf,L.pending_out,E,c.next_out),c.next_out+=E,L.pending_out+=E,c.total_out+=E,c.avail_out-=E,L.pending-=E,L.pending===0&&(L.pending_out=0))}function N(c,L){o._tr_flush_block(c,0<=c.block_start?c.block_start:-1,c.strstart-c.block_start,L),c.block_start=c.strstart,D(c.strm)}function q(c,L){c.pending_buf[c.pending++]=L}function J(c,L){c.pending_buf[c.pending++]=L>>>8&255,c.pending_buf[c.pending++]=255&L}function G(c,L){var E,_,k=c.max_chain_length,O=c.strstart,j=c.prev_length,Z=c.nice_match,F=c.strstart>c.w_size-$?c.strstart-(c.w_size-$):0,V=c.window,X=c.w_mask,H=c.prev,Q=c.strstart+B,fe=V[O+j-1],le=V[O+j];c.prev_length>=c.good_match&&(k>>=2),Z>c.lookahead&&(Z=c.lookahead);do if(V[(E=L)+j]===le&&V[E+j-1]===fe&&V[E]===V[O]&&V[++E]===V[O+1]){O+=2,E++;do;while(V[++O]===V[++E]&&V[++O]===V[++E]&&V[++O]===V[++E]&&V[++O]===V[++E]&&V[++O]===V[++E]&&V[++O]===V[++E]&&V[++O]===V[++E]&&V[++O]===V[++E]&&O<Q);if(_=B-(Q-O),O=Q-B,j<_){if(c.match_start=L,Z<=(j=_))break;fe=V[O+j-1],le=V[O+j]}}while((L=H[L&X])>F&&--k!=0);return j<=c.lookahead?j:c.lookahead}function ve(c){var L,E,_,k,O,j,Z,F,V,X,H=c.w_size;do{if(k=c.window_size-c.lookahead-c.strstart,c.strstart>=H+(H-$)){for(a.arraySet(c.window,c.window,H,H,0),c.match_start-=H,c.strstart-=H,c.block_start-=H,L=E=c.hash_size;_=c.head[--L],c.head[L]=H<=_?_-H:0,--E;);for(L=E=H;_=c.prev[--L],c.prev[L]=H<=_?_-H:0,--E;);k+=H}if(c.strm.avail_in===0)break;if(j=c.strm,Z=c.window,F=c.strstart+c.lookahead,V=k,X=void 0,X=j.avail_in,V<X&&(X=V),E=X===0?0:(j.avail_in-=X,a.arraySet(Z,j.input,j.next_in,X,F),j.state.wrap===1?j.adler=l(j.adler,Z,X,F):j.state.wrap===2&&(j.adler=h(j.adler,Z,X,F)),j.next_in+=X,j.total_in+=X,X),c.lookahead+=E,c.lookahead+c.insert>=R)for(O=c.strstart-c.insert,c.ins_h=c.window[O],c.ins_h=(c.ins_h<<c.hash_shift^c.window[O+1])&c.hash_mask;c.insert&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[O+R-1])&c.hash_mask,c.prev[O&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=O,O++,c.insert--,!(c.lookahead+c.insert<R)););}while(c.lookahead<$&&c.strm.avail_in!==0)}function ye(c,L){for(var E,_;;){if(c.lookahead<$){if(ve(c),c.lookahead<$&&L===p)return g;if(c.lookahead===0)break}if(E=0,c.lookahead>=R&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+R-1])&c.hash_mask,E=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),E!==0&&
vendor: 5,829 bytes, line 50
50c.strstart-E<=c.w_size-$&&(c.match_length=G(c,E)),c.match_length>=R)if(_=o._tr_tally(c,c.strstart-c.match_start,c.match_length-R),c.lookahead-=c.match_length,c.match_length<=c.max_lazy_match&&c.lookahead>=R){for(c.match_length--;c.strstart++,c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+R-1])&c.hash_mask,E=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart,--c.match_length!=0;);c.strstart++}else c.strstart+=c.match_length,c.match_length=0,c.ins_h=c.window[c.strstart],c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+1])&c.hash_mask;else _=o._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++;if(_&&(N(c,!1),c.strm.avail_out===0))return g}return c.insert=c.strstart<R-1?c.strstart:R-1,L===m?(N(c,!0),c.strm.avail_out===0?K:U):c.last_lit&&(N(c,!1),c.strm.avail_out===0)?g:P}function ne(c,L){for(var E,_,k;;){if(c.lookahead<$){if(ve(c),c.lookahead<$&&L===p)return g;if(c.lookahead===0)break}if(E=0,c.lookahead>=R&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+R-1])&c.hash_mask,E=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),c.prev_length=c.match_length,c.prev_match=c.match_start,c.match_length=R-1,E!==0&&c.prev_length<c.max_lazy_match&&c.strstart-E<=c.w_size-$&&(c.match_length=G(c,E),c.match_length<=5&&(c.strategy===1||c.match_length===R&&4096<c.strstart-c.match_start)&&(c.match_length=R-1)),c.prev_length>=R&&c.match_length<=c.prev_length){for(k=c.strstart+c.lookahead-R,_=o._tr_tally(c,c.strstart-1-c.prev_match,c.prev_length-R),c.lookahead-=c.prev_length-1,c.prev_length-=2;++c.strstart<=k&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+R-1])&c.hash_mask,E=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),--c.prev_length!=0;);if(c.match_available=0,c.match_length=R-1,c.strstart++,_&&(N(c,!1),c.strm.avail_out===0))return g}else if(c.match_available){if((_=o._tr_tally(c,0,c.window[c.strstart-1]))&&N(c,!1),c.strstart++,c.lookahead--,c.strm.avail_out===0)return g}else c.match_available=1,c.strstart++,c.lookahead--}return c.match_available&&(_=o._tr_tally(c,0,c.window[c.strstart-1]),c.match_available=0),c.insert=c.strstart<R-1?c.strstart:R-1,L===m?(N(c,!0),c.strm.avail_out===0?K:U):c.last_lit&&(N(c,!1),c.strm.avail_out===0)?g:P}function oe(c,L,E,_,k){this.good_length=c,this.max_lazy=L,this.nice_length=E,this.max_chain=_,this.func=k}function Se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*A),this.dyn_dtree=new a.Buf16(2*(2*x+1)),this.bl_tree=new a.Buf16(2*(2*M+1)),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(z+1),this.heap=new a.Buf16(2*C+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*C+1),te(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ee(c){var L;return c&&c.state?(c.total_in=c.total_out=0,c.data_type=y,(L=c.state).pending=0,L.pending_out=0,L.wrap<0&&(L.wrap=-L.wrap),L.status=L.wrap?I:T,c.adler=L.wrap===2?0:1,L.last_flush=p,o._tr_init(L),d):re(c,w)}function ke(c){var L=ee(c);return L===d&&(function(E){E.window_size=2*E.w_size,te(E.head),E.max_lazy_match=i[E.level].max_lazy,E.good_match=i[E.level].good_length,E.nice_match=i[E.level].nice_length,E.max_chain_length=i[E.level].max_chain,E.strstart=0,E.block_start=0,E.lookahead=0,E.insert=0,E.match_length=E.prev_length=R-1,E.match_available=0,E.ins_h=0})(c.state),L}function ae(c,L,E,_,k,O){if(!c)return w;var j=1;if(L===u&&(L=6),_<0?(j=0,_=-_):15<_&&(j=2,_-=16),k<1||S<k||E!==v||_<8||15<_||L<0||9<L||O<0||b<O)return re(c,w);_===8&&(_=9);var Z=new Se;return(c.state=Z).strm=c,Z.wrap=j,Z.gzhead=null,Z.w_bits=_,Z.w_size=1<<Z.w_bits,Z.w_mask=Z.w_size-1,Z.hash_bits=k+7,Z.hash_size=1<<Z.hash_bits,Z.hash_mask=Z.hash_size-1,Z.hash_shift=~~((Z.hash_bits+R-1)/R),Z.window=new a.Buf8(2*Z.w_size),Z.head=new a.Buf16(Z.hash_size),Z.prev=new a.Buf16(Z.w_size),Z.lit_bufsize=1<<k+6,Z.pending_buf_size=4*Z.lit_bufsize,Z.pending_buf=new a.Buf8(Z.pending_buf_size),Z.d_buf=1*Z.lit_bufsize,Z.l_buf=3*Z.lit_bufsize,Z.level=L,Z.strategy=O,Z.method=E,ke(c)}i=[new oe(0,0,0,0,function(c,L){var E=65535;for(E>c.pending_buf_size-5&&(E=c.pending_buf_size-5);;){if(c.lookahead<=1){if(ve(c),c.lookahead===0&&L===p)return g;if(c.lookahead===0)break}c.strstart+=c.lookahead,c.lookahead=0;var _=c.block_start+E;if((c.strstart===0||c.strstart>=_)&&(c.lookahead=c.strstart-_,c.strstart=_,N(c,!1),c.strm.avail_out===0)||c.strstart-c.block_start>=c.w_size-$&&(N(c,!1),c.strm.avail_out===0))return g}return c.insert=0,L===m?(N(c,!0),c.strm.avail_out===0?K:U):(c.strstart>c.block_start&&(N(c,!1),c.strm.avail_out),g)}),new oe(4,4,8,4,ye),new oe(4,5,16,8,ye),new oe(4,6,32,32,ye),new oe(4,4,16,16,ne),new oe(8,16,32,32,ne),new oe(8,16,128,128,ne),new oe(8,32,128,256,ne),new oe(32,128,258,1024,ne),new oe(32,258,258,4096,ne)],s.deflateInit=function(c,L){return ae(c,L,v,15,8,0)},s.deflateInit2=ae,s.deflateReset=ke,s.deflateResetKeep=ee,s.deflateSetHeader=function(c,L){return c&&c.state?c.state.wrap!==2?w:(c.state.gzhead=L,d):w},s.deflate=function(c,L){var E,_,k,O;if(!c||!c.state||5<L||L<0)return c?re(c,w):w;
vendor: 19,492 bytes, line 50
50if(_=c.state,!c.output||!c.input&&c.avail_in!==0||_.status===666&&L!==m)return re(c,c.avail_out===0?-5:w);if(_.strm=c,E=_.last_flush,_.last_flush=L,_.status===I)if(_.wrap===2)c.adler=0,q(_,31),q(_,139),q(_,8),_.gzhead?(q(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),q(_,255&_.gzhead.time),q(_,_.gzhead.time>>8&255),q(_,_.gzhead.time>>16&255),q(_,_.gzhead.time>>24&255),q(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),q(_,255&_.gzhead.os),_.gzhead.extra&&_.gzhead.extra.length&&(q(_,255&_.gzhead.extra.length),q(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(c.adler=h(c.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=69):(q(_,0),q(_,0),q(_,0),q(_,0),q(_,0),q(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),q(_,3),_.status=T);else{var j=v+(_.w_bits-8<<4)<<8;j|=(2<=_.strategy||_.level<2?0:_.level<6?1:_.level===6?2:3)<<6,_.strstart!==0&&(j|=32),j+=31-j%31,_.status=T,J(_,j),_.strstart!==0&&(J(_,c.adler>>>16),J(_,65535&c.adler)),c.adler=1}if(_.status===69)if(_.gzhead.extra){for(k=_.pending;_.gzindex<(65535&_.gzhead.extra.length)&&(_.pending!==_.pending_buf_size||(_.gzhead.hcrc&&_.pending>k&&(c.adler=h(c.adler,_.pending_buf,_.pending-k,k)),D(c),k=_.pending,_.pending!==_.pending_buf_size));)q(_,255&_.gzhead.extra[_.gzindex]),_.gzindex++;_.gzhead.hcrc&&_.pending>k&&(c.adler=h(c.adler,_.pending_buf,_.pending-k,k)),_.gzindex===_.gzhead.extra.length&&(_.gzindex=0,_.status=73)}else _.status=73;if(_.status===73)if(_.gzhead.name){k=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>k&&(c.adler=h(c.adler,_.pending_buf,_.pending-k,k)),D(c),k=_.pending,_.pending===_.pending_buf_size)){O=1;break}O=_.gzindex<_.gzhead.name.length?255&_.gzhead.name.charCodeAt(_.gzindex++):0,q(_,O)}while(O!==0);_.gzhead.hcrc&&_.pending>k&&(c.adler=h(c.adler,_.pending_buf,_.pending-k,k)),O===0&&(_.gzindex=0,_.status=91)}else _.status=91;if(_.status===91)if(_.gzhead.comment){k=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>k&&(c.adler=h(c.adler,_.pending_buf,_.pending-k,k)),D(c),k=_.pending,_.pending===_.pending_buf_size)){O=1;break}O=_.gzindex<_.gzhead.comment.length?255&_.gzhead.comment.charCodeAt(_.gzindex++):0,q(_,O)}while(O!==0);_.gzhead.hcrc&&_.pending>k&&(c.adler=h(c.adler,_.pending_buf,_.pending-k,k)),O===0&&(_.status=103)}else _.status=103;if(_.status===103&&(_.gzhead.hcrc?(_.pending+2>_.pending_buf_size&&D(c),_.pending+2<=_.pending_buf_size&&(q(_,255&c.adler),q(_,c.adler>>8&255),c.adler=0,_.status=T)):_.status=T),_.pending!==0){if(D(c),c.avail_out===0)return _.last_flush=-1,d}else if(c.avail_in===0&&W(L)<=W(E)&&L!==m)return re(c,-5);if(_.status===666&&c.avail_in!==0)return re(c,-5);if(c.avail_in!==0||_.lookahead!==0||L!==p&&_.status!==666){var Z=_.strategy===2?(function(F,V){for(var X;;){if(F.lookahead===0&&(ve(F),F.lookahead===0)){if(V===p)return g;break}if(F.match_length=0,X=o._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++,X&&(N(F,!1),F.strm.avail_out===0))return g}return F.insert=0,V===m?(N(F,!0),F.strm.avail_out===0?K:U):F.last_lit&&(N(F,!1),F.strm.avail_out===0)?g:P})(_,L):_.strategy===3?(function(F,V){for(var X,H,Q,fe,le=F.window;;){if(F.lookahead<=B){if(ve(F),F.lookahead<=B&&V===p)return g;if(F.lookahead===0)break}if(F.match_length=0,F.lookahead>=R&&0<F.strstart&&(H=le[Q=F.strstart-1])===le[++Q]&&H===le[++Q]&&H===le[++Q]){fe=F.strstart+B;do;while(H===le[++Q]&&H===le[++Q]&&H===le[++Q]&&H===le[++Q]&&H===le[++Q]&&H===le[++Q]&&H===le[++Q]&&H===le[++Q]&&Q<fe);F.match_length=B-(fe-Q),F.match_length>F.lookahead&&(F.match_length=F.lookahead)}if(F.match_length>=R?(X=o._tr_tally(F,1,F.match_length-R),F.lookahead-=F.match_length,F.strstart+=F.match_length,F.match_length=0):(X=o._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++),X&&(N(F,!1),F.strm.avail_out===0))return g}return F.insert=0,V===m?(N(F,!0),F.strm.avail_out===0?K:U):F.last_lit&&(N(F,!1),F.strm.avail_out===0)?g:P})(_,L):i[_.level].func(_,L);if(Z!==K&&Z!==U||(_.status=666),Z===g||Z===K)return c.avail_out===0&&(_.last_flush=-1),d;if(Z===P&&(L===1?o._tr_align(_):L!==5&&(o._tr_stored_block(_,0,0,!1),L===3&&(te(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),D(c),c.avail_out===0))return _.last_flush=-1,d}return L!==m?d:_.wrap<=0?1:(_.wrap===2?(q(_,255&c.adler),q(_,c.adler>>8&255),q(_,c.adler>>16&255),q(_,c.adler>>24&255),q(_,255&c.total_in),q(_,c.total_in>>8&255),q(_,c.total_in>>16&255),q(_,c.total_in>>24&255)):(J(_,c.adler>>>16),J(_,65535&c.adler)),D(c),0<_.wrap&&(_.wrap=-_.wrap),_.pending!==0?d:1)},s.deflateEnd=function(c){var L;return c&&c.state?(L=c.state.status)!==I&&L!==69&&L!==73&&L!==91&&L!==103&&L!==T&&L!==666?re(c,w):(c.state=null,L===T?re(c,-3):d):w},s.deflateSetDictionary=function(c,L){var E,_,k,O,j,Z,F,V,X=L.length;if(!c||!c.state||(O=(E=c.state).wrap)===2||O===1&&E.status!==I||E.lookahead)return w;for(O===1&&(c.adler=l(c.adler,L,X,0)),E.wrap=0,X>=E.w_size&&(O===0&&(te(E.head),E.strstart=0,E.block_start=0,E.insert=0),V=new a.Buf8(E.w_size),a.arraySet(V,L,X-E.w_size,E.w_size,0),L=V,X=E.w_size),j=c.avail_in,Z=c.next_in,F=c.input,c.avail_in=X,c.next_in=0,c.input=L,ve(E);E.lookahead>=R;){for(_=E.strstart,k=E.lookahead-(R-1);E.ins_h=(E.ins_h<<E.hash_shift^E.window[_+R-1])&E.hash_mask,E.prev[_&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=_,_++,--k;);E.strstart=_,E.lookahead=R-1,ve(E)}return E.strstart+=E.lookahead,E.block_start=E.strstart,E.insert=E.lookahead,E.lookahead=0,E.match_length=E.prev_length=R-1,E.match_available=0,c.next_in=Z,c.input=F,c.avail_in=j,E.wrap=O,d},s.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,n,s){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,n,s){n.exports=function(i,a){var o,l,h,f,p,m,d,w,u,b,y,v,S,C,x,M,A,z,R,B,$,I,T,g,P;o=i.state,l=i.next_in,g=i.input,h=l+(i.avail_in-5),f=i.next_out,P=i.output,p=f-(a-i.avail_out),m=f+(i.avail_out-257),d=o.dmax,w=o.wsize,u=o.whave,b=o.wnext,y=o.window,v=o.hold,S=o.bits,C=o.lencode,x=o.distcode,M=(1<<o.lenbits)-1,A=(1<<o.distbits)-1;e:do{S<15&&(v+=g[l++]<<S,S+=8,v+=g[l++]<<S,S+=8),z=C[v&M];t:for(;;){if(v>>>=R=z>>>24,S-=R,(R=z>>>16&255)===0)P[f++]=65535&z;else{if(!(16&R)){if(!(64&R)){z=C[(65535&z)+(v&(1<<R)-1)];continue t}if(32&R){o.mode=12;break e}i.msg="invalid literal/length code",o.mode=30;break e}B=65535&z,(R&=15)&&(S<R&&(v+=g[l++]<<S,S+=8),B+=v&(1<<R)-1,v>>>=R,S-=R),S<15&&(v+=g[l++]<<S,S+=8,v+=g[l++]<<S,S+=8),z=x[v&A];r:for(;;){if(v>>>=R=z>>>24,S-=R,!(16&(R=z>>>16&255))){if(!(64&R)){z=x[(65535&z)+(v&(1<<R)-1)];continue r}i.msg="invalid distance code",o.mode=30;break e}if($=65535&z,S<(R&=15)&&(v+=g[l++]<<S,(S+=8)<R&&(v+=g[l++]<<S,S+=8)),d<($+=v&(1<<R)-1)){i.msg="invalid distance too far back",o.mode=30;break e}if(v>>>=R,S-=R,(R=f-p)<$){if(u<(R=$-R)&&o.sane){i.msg="invalid distance too far back",o.mode=30;break e}if(T=y,(I=0)===b){if(I+=w-R,R<B){for(B-=R;P[f++]=y[I++],--R;);I=f-$,T=P}}else if(b<R){if(I+=w+b-R,(R-=b)<B){for(B-=R;P[f++]=y[I++],--R;);if(I=0,b<B){for(B-=R=b;P[f++]=y[I++],--R;);I=f-$,T=P}}}else if(I+=b-R,R<B){for(B-=R;P[f++]=y[I++],--R;);I=f-$,T=P}for(;2<B;)P[f++]=T[I++],P[f++]=T[I++],P[f++]=T[I++],B-=3;B&&(P[f++]=T[I++],1<B&&(P[f++]=T[I++]))}else{for(I=f-$;P[f++]=P[I++],P[f++]=P[I++],P[f++]=P[I++],2<(B-=3););B&&(P[f++]=P[I++],1<B&&(P[f++]=P[I++]))}break}}break}}while(l<h&&f<m);l-=B=S>>3,v&=(1<<(S-=B<<3))-1,i.next_in=l,i.next_out=f,i.avail_in=l<h?h-l+5:5-(l-h),i.avail_out=f<m?m-f+257:257-(f-m),o.hold=v,o.bits=S}},{}],49:[function(r,n,s){var i=r("../utils/common"),a=r("./adler32"),o=r("./crc32"),l=r("./inffast"),h=r("./inftrees"),f=1,p=2,m=0,d=-2,w=1,u=852,b=592;function y(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(I){var T;return I&&I.state?(T=I.state,I.total_in=I.total_out=T.total=0,I.msg="",T.wrap&&(I.adler=1&T.wrap),T.mode=w,T.last=0,T.havedict=0,T.dmax=32768,T.head=null,T.hold=0,T.bits=0,T.lencode=T.lendyn=new i.Buf32(u),T.distcode=T.distdyn=new i.Buf32(b),T.sane=1,T.back=-1,m):d}function C(I){var T;return I&&I.state?((T=I.state).wsize=0,T.whave=0,T.wnext=0,S(I)):d}function x(I,T){var g,P;return I&&I.state?(P=I.state,T<0?(g=0,T=-T):(g=1+(T>>4),T<48&&(T&=15)),T&&(T<8||15<T)?d:(P.window!==null&&P.wbits!==T&&(P.window=null),P.wrap=g,P.wbits=T,C(I))):d}function M(I,T){var g,P;return I?(P=new v,(I.state=P).window=null,(g=x(I,T))!==m&&(I.state=null),g):d}var A,z,R=!0;function B(I){if(R){var T;for(A=new i.Buf32(512),z=new i.Buf32(32),T=0;T<144;)I.lens[T++]=8;for(;T<256;)I.lens[T++]=9;for(;T<280;)I.lens[T++]=7;for(;T<288;)I.lens[T++]=8;for(h(f,I.lens,0,288,A,0,I.work,{bits:9}),T=0;T<32;)I.lens[T++]=5;h(p,I.lens,0,32,z,0,I.work,{bits:5}),R=!1}I.lencode=A,I.lenbits=9,I.distcode=z,I.distbits=5}function $(I,T,g,P){var K,U=I.state;return U.window===null&&(U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new i.Buf8(U.wsize)),P>=U.wsize?(i.arraySet(U.window,T,g-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(P<(K=U.wsize-U.wnext)&&(K=P),i.arraySet(U.window,T,g-P,K,U.wnext),(P-=K)?(i.arraySet(U.window,T,g-P,P,0),U.wnext=P,U.whave=U.wsize):(U.wnext+=K,U.wnext===U.wsize&&(U.wnext=0),U.whave<U.wsize&&(U.whave+=K))),0}s.inflateReset=C,s.inflateReset2=x,s.inflateResetKeep=S,s.inflateInit=function(I){return M(I,15)},s.inflateInit2=M,s.inflate=function(I,T){var g,P,K,U,re,W,te,D,N,q,J,G,ve,ye,ne,oe,Se,ee,ke,ae,c,L,E,_,k=0,O=new i.Buf8(4),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return d;(g=I.state).mode===12&&(g.mode=13),re=I.next_out,K=I.output,te=I.avail_out,U=I.next_in,P=I.input,W=I.avail_in,D=g.hold,N=g.bits,q=W,J=te,L=m;e:for(;;)switch(g.mode){case w:if(g.wrap===0){g.mode=13;break}for(;N<16;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if(2&g.wrap&&D===35615){O[g.check=0]=255&D,O[1]=D>>>8&255,g.check=o(g.check,O,2,0),N=D=0,g.mode=2;break}if(g.flags=0,g.head&&(g.head.done=!1),!(1&g.wrap)||(((255&D)<<8)+(D>>8))%31){I.msg="incorrect header check",g.mode=30;break}if((15&D)!=8){I.msg="unknown compression method",g.mode=30;break}if(N-=4,c=8+(15&(D>>>=4)),g.wbits===0)g.wbits=c;else if(c>g.wbits){I.msg="invalid window size",g.mode=30;break}g.dmax=1<<c,I.adler=g.check=1,g.mode=512&D?10:12,N=D=0;break;case 2:for(;N<16;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if(g.flags=D,(255&g.flags)!=8){I.msg="unknown compression method",g.mode=30;break}if(57344&g.flags){I.msg="unknown header flags set",g.mode=30;break}g.head&&(g.head.text=D>>8&1),512&g.flags&&(O[0]=255&D,O[1]=D>>>8&255,g.check=o(g.check,O,2,0)),N=D=0,g.mode=3;case 3:for(;N<32;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}g.head&&(g.head.time=D),512&g.flags&&(O[0]=255&D,O[1]=D>>>8&255,O[2]=D>>>16&255,O[3]=D>>>24&255,g.check=o(g.check,O,4,0)),N=D=0,g.mode=4;case 4:for(;N<16;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}g.head&&(g.head.xflags=255&D,g.head.os=D>>8),512&g.flags&&(O[0]=255&D,O[1]=D>>>8&255,g.check=o(g.check,O,2,0)),N=D=0,g.mode=5;case 5:if(1024&g.flags){for(;N<16;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}g.length=D,g.head&&(g.head.extra_len=D),512&g.flags&&(O[0]=255&D,O[1]=D>>>8&255,g.check=o(g.check,O,2,0)),N=D=0}else g.head&&(g.head.extra=null);g.mode=6;case 6:if(1024&g.flags&&(W<(G=g.length)&&(G=W),G&&(g.head&&(c=g.head.extra_len-g.length,g.head.extra||(g.head.extra=new Array(g.head.extra_len)),i.arraySet(g.head.extra,P,U,G,c)),512&g.flags&&(g.check=o(g.check,P,G,U)),W-=G,U+=G,g.length-=G),g.length))break e;g.length=0,g.mode=7;case 7:if(2048&g.flags){if(W===0)break e;for(G=0;c=P[U+G++],g.head&&c&&g.length<65536&&(g.head.name+=String.fromCharCode(c)),c&&G<W;);if(512&g.flags&&(g.check=o(g.check,P,G,U)),W-=G,U+=G,c)break e}else g.head&&(g.head.name=null);g.length=0,g.mode=8;case 8:if(4096&g.flags){if(W===0)break e;for(G=0;c=P[U+G++],g.head&&c&&g.length<65536&&(g.head.comment+=String.fromCharCode(c)),c&&G<W;);if(512&g.flags&&(g.check=o(g.check,P,G,U)),W-=G,U+=G,c)break e}else g.head&&(g.head.comment=null);g.mode=9;case 9:if(512&g.flags){for(;N<16;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if(D!==(65535&g.check)){I.msg="header crc mismatch",g.mode=30;break}N=D=0}g.head&&(g.head.hcrc=g.flags>>9&1,g.head.done=!0),I.adler=g.check=0,g.mode=12;break;case 10:for(;N<32;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}I.adler=g.check=y(D),N=D=0,g.mode=11;case 11:if(g.havedict===0)return I.next_out=re,I.avail_out=te,I.next_in=U,I.avail_in=W,g.hold=D,g.bits=N,2;I.adler=g.check=1,g.mode=12;case 12:if(T===5||T===6)break e;case 13:if(g.last){D>>>=7&N,N-=7&N,g.mode=27;break}for(;N<3;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}switch(g.last=1&D,N-=1,3&(D>>>=1)){case 0:g.mode=14;break;case 1:if(B(g),g.mode=20,T!==6)break;D>>>=2,N-=2;break e;case 2:g.mode=17;break;case 3:I.msg="invalid block type",g.mode=30}D>>>=2,N-=2;break;case 14:for(D>>>=7&N,N-=7&N;N<32;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if((65535&D)!=(D>>>16^65535)){I.msg="invalid stored block lengths",g.mode=30;break}if(g.length=65535&D,N=D=0,g.mode=15,T===6)break e;case 15:g.mode=16;case 16:if(G=g.length){if(W<G&&(G=W),te<G&&(G=te),G===0)break e;i.arraySet(K,P,U,G,re),W-=G,U+=G,te-=G,re+=G,g.length-=G;break}g.mode=12;break;case 17:for(;N<14;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if(g.nlen=257+(31&D),D>>>=5,N-=5,g.ndist=1+(31&D),D>>>=5,N-=5,g.ncode=4+(15&D),D>>>=4,N-=4,286<g.nlen||30<g.ndist){I.msg="too many length or distance symbols",g.mode=30;break}g.have=0,g.mode=18;case 18:for(;g.have<g.ncode;){for(;N<3;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}g.lens[j[g.have++]]=7&D,D>>>=3,N-=3}for(;g.have<19;)g.lens[j[g.have++]]=0;if(g.lencode=g.lendyn,g.lenbits=7,E={bits:g.lenbits},L=h(0,g.lens,0,19,g.lencode,0,g.work,E),g.lenbits=E.bits,L){I.msg="invalid code lengths set",g.mode=30;break}g.have=0,g.mode=19;case 19:for(;g.have<g.nlen+g.ndist;){for(;oe=(k=g.lencode[D&(1<<g.lenbits)-1])>>>16&255,Se=65535&k,!((ne=k>>>24)<=N);){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if(Se<16)D>>>=ne,N-=ne,g.lens[g.have++]=Se;else{if(Se===16){for(_=ne+2;N<_;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if(D>>>=ne,N-=ne,g.have===0){I.msg="invalid bit length repeat",g.mode=30;break}c=g.lens[g.have-1],G=3+(3&D),D>>>=2,N-=2}else if(Se===17){for(_=ne+3;N<_;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}N-=ne,c=0,G=3+(7&(D>>>=ne)),D>>>=3,N-=3}else{for(_=ne+7;N<_;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}N-=ne,c=0,G=11+(127&(D>>>=ne)),D>>>=7,N-=7}if(g.have+G>g.nlen+g.ndist){I.msg="invalid bit length repeat",g.mode=30;break}for(;G--;)g.lens[g.have++]=c}}if(g.mode===30)break;if(g.lens[256]===0){I.msg="invalid code -- missing end-of-block",g.mode=30;break}if(g.lenbits=9,E={bits:g.lenbits},L=h(f,g.lens,0,g.nlen,g.lencode,0,g.work,E),g.lenbits=E.bits,L){I.msg="invalid literal/lengths set",g.mode=30;break}if(g.distbits=6,g.distcode=g.distdyn,E={bits:g.distbits},L=h(p,g.lens,g.nlen,g.ndist,g.distcode,0,g.work,E),g.distbits=E.bits,L){I.msg="invalid distances set",g.mode=30;break}if(g.mode=20,T===6)break e;case 20:g.mode=21;case 21:if(6<=W&&258<=te){I.next_out=re,I.avail_out=te,I.next_in=U,I.avail_in=W,g.hold=D,g.bits=N,l(I,J),re=I.next_out,K=I.output,te=I.avail_out,U=I.next_in,P=I.input,W=I.avail_in,D=g.hold,N=g.bits,g.mode===12&&(g.back=-1);break}for(g.back=0;oe=(k=g.lencode[D&(1<<g.lenbits)-1])>>>16&255,Se=65535&k,!((ne=k>>>24)<=N);){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if(oe&&!(240&oe)){for(ee=ne,ke=oe,ae=Se;oe=(k=g.lencode[ae+((D&(1<<ee+ke)-1)>>ee)])>>>16&255,Se=65535&k,!(ee+(ne=k>>>24)<=N);){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}D>>>=ee,N-=ee,g.back+=ee}if(D>>>=ne,N-=ne,g.back+=ne,g.length=Se,oe===0){g.mode=26;break}if(32&oe){g.back=-1,g.mode=12;break}if(64&oe){I.msg="invalid literal/length code",g.mode=30;break}g.extra=15&oe,g.mode=22;case 22:if(g.extra){for(_=g.extra;N<_;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}g.length+=D&(1<<g.extra)-1,D>>>=g.extra,N-=g.extra,g.back+=g.extra}g.was=g.length,g.mode=23;case 23:for(;oe=(k=g.distcode[D&(1<<g.distbits)-1])>>>16&255,Se=65535&k,!((ne=k>>>24)<=N);){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if(!(240&oe)){for(ee=ne,ke=oe,ae=Se;oe=(k=g.distcode[ae+((D&(1<<ee+ke)-1)>>ee)])>>>16&255,Se=65535&k,!(ee+(ne=k>>>24)<=N);){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}D>>>=ee,N-=ee,g.back+=ee}if(D>>>=ne,N-=ne,g.back+=ne,64&oe){I.msg="invalid distance code",g.mode=30;break}g.offset=Se,g.extra=15&oe,g.mode=24;case 24:if(g.extra){for(_=g.extra;N<_;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}g.offset+=D&(1<<g.extra)-1,D>>>=g.extra,N-=g.extra,g.back+=g.extra}if(g.offset>g.dmax){I.msg="invalid distance too far back",g.mode=30;break}g.mode=25;case 25:if(te===0)break e;if(G=J-te,g.offset>G){if((G=g.offset-G)>g.whave&&g.sane){I.msg="invalid distance too far back",g.mode=30;break}ve=G>g.wnext?(G-=g.wnext,g.wsize-G):g.wnext-G,G>g.length&&(G=g.length),ye=g.window}else ye=K,ve=re-g.offset,G=g.length;for(te<G&&(G=te),te-=G,g.length-=G;K[re++]=ye[ve++],--G;);g.length===0&&(g.mode=21);break;case 26:if(te===0)break e;K[re++]=g.length,te--,g.mode=21;break;case 27:if(g.wrap){for(;N<32;){if(W===0)break e;W--,D|=P[U++]<<N,N+=8}if(J-=te,I.total_out+=J,g.total+=J,J&&(I.adler=g.check=g.flags?o(g.check,K,J,re-J):a(g.check,K,J,re-J)),J=te,(g.flags?D:y(D))!==g.check){I.msg="incorrect data check",g.mode=30;break}N=D=0}g.mode=28;case 28:if(g.wrap&&g.flags){for(;N<32;){if(W===0)break e;W--,D+=P[U++]<<N,N+=8}if(D!==(4294967295&g.total)){I.msg="incorrect length check",g.mode=30;break}N=D=0}g.mode=29;case 29:L=1;break e;case 30:L=-3;break e;case 31:return-4;default:return d}return I.next_out=re,I.avail_out=te,I.next_in=U,I.avail_in=W,g.hold=D,g.bits=N,(g.wsize||J!==I.avail_out&&g.mode<30&&(g.mode<27||T!==4))&&$(I,I.output,I.next_out,J-I.avail_out)?(g.mode=31,-4):(q-=I.avail_in,J-=I.avail_out,I.total_in+=q,I.total_out+=J,g.total+=J,g.wrap&&J&&(I.adler=g.check=g.flags?o(g.check,K,J,I.next_out-J):a(g.check,K,J,I.next_out-J)),I.data_type=g.bits+(g.last?64:0)+(g.mode===12?128:0)+(g.mode===20||g.mode===15?256:0),(q==0&&J===0||T===4)&&L===m&&(L=-5),L)},s.inflateEnd=function(I){if(!I||!I.state)return d;var T=I.state;return T.window&&(T.window=null),I.state=null,m},s.inflateGetHeader=function(I,T){var g;return I&&I.state&&2&(g=I.state).wrap?((g.head=T).done=!1,m):d},s.inflateSetDictionary=function(I,T){var g,P=T.length;return I&&I.state?(g=I.state).wrap!==0&&g.mode!==11?d:g.mode===11&&a(1,T,P,0)!==g.check?-3:$(I,T,P,P)?(g.mode=31,-4):(g.havedict=1,m):d},s.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,n,s){var i=r("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];
vendor: 9,790 bytes, line 50
50n.exports=function(f,p,m,d,w,u,b,y){var v,S,C,x,M,A,z,R,B,$=y.bits,I=0,T=0,g=0,P=0,K=0,U=0,re=0,W=0,te=0,D=0,N=null,q=0,J=new i.Buf16(16),G=new i.Buf16(16),ve=null,ye=0;for(I=0;I<=15;I++)J[I]=0;for(T=0;T<d;T++)J[p[m+T]]++;for(K=$,P=15;1<=P&&J[P]===0;P--);if(P<K&&(K=P),P===0)return w[u++]=20971520,w[u++]=20971520,y.bits=1,0;for(g=1;g<P&&J[g]===0;g++);for(K<g&&(K=g),I=W=1;I<=15;I++)if(W<<=1,(W-=J[I])<0)return-1;if(0<W&&(f===0||P!==1))return-1;for(G[1]=0,I=1;I<15;I++)G[I+1]=G[I]+J[I];for(T=0;T<d;T++)p[m+T]!==0&&(b[G[p[m+T]]++]=T);if(A=f===0?(N=ve=b,19):f===1?(N=a,q-=257,ve=o,ye-=257,256):(N=l,ve=h,-1),I=g,M=u,re=T=D=0,C=-1,x=(te=1<<(U=K))-1,f===1&&852<te||f===2&&592<te)return 1;for(;;){for(z=I-re,B=b[T]<A?(R=0,b[T]):b[T]>A?(R=ve[ye+b[T]],N[q+b[T]]):(R=96,0),v=1<<I-re,g=S=1<<U;w[M+(D>>re)+(S-=v)]=z<<24|R<<16|B|0,S!==0;);for(v=1<<I-1;D&v;)v>>=1;if(v!==0?(D&=v-1,D+=v):D=0,T++,--J[I]==0){if(I===P)break;I=p[m+b[T]]}if(K<I&&(D&x)!==C){for(re===0&&(re=K),M+=g,W=1<<(U=I-re);U+re<P&&!((W-=J[U+re])<=0);)U++,W<<=1;if(te+=1<<U,f===1&&852<te||f===2&&592<te)return 1;w[C=D&x]=K<<24|U<<16|M-u|0}}return D!==0&&(w[M+D]=I-re<<24|64<<16|0),y.bits=K,0}},{"../utils/common":41}],51:[function(r,n,s){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,n,s){var i=r("../utils/common"),a=0,o=1;function l(k){for(var O=k.length;0<=--O;)k[O]=0}var h=0,f=29,p=256,m=p+1+f,d=30,w=19,u=2*m+1,b=15,y=16,v=7,S=256,C=16,x=17,M=18,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],z=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(m+2));l($);var I=new Array(2*d);l(I);var T=new Array(512);l(T);var g=new Array(256);l(g);var P=new Array(f);l(P);var K,U,re,W=new Array(d);function te(k,O,j,Z,F){this.static_tree=k,this.extra_bits=O,this.extra_base=j,this.elems=Z,this.max_length=F,this.has_stree=k&&k.length}function D(k,O){this.dyn_tree=k,this.max_code=0,this.stat_desc=O}function N(k){return k<256?T[k]:T[256+(k>>>7)]}function q(k,O){k.pending_buf[k.pending++]=255&O,k.pending_buf[k.pending++]=O>>>8&255}function J(k,O,j){k.bi_valid>y-j?(k.bi_buf|=O<<k.bi_valid&65535,q(k,k.bi_buf),k.bi_buf=O>>y-k.bi_valid,k.bi_valid+=j-y):(k.bi_buf|=O<<k.bi_valid&65535,k.bi_valid+=j)}function G(k,O,j){J(k,j[2*O],j[2*O+1])}function ve(k,O){for(var j=0;j|=1&k,k>>>=1,j<<=1,0<--O;);return j>>>1}function ye(k,O,j){var Z,F,V=new Array(b+1),X=0;for(Z=1;Z<=b;Z++)V[Z]=X=X+j[Z-1]<<1;for(F=0;F<=O;F++){var H=k[2*F+1];H!==0&&(k[2*F]=ve(V[H]++,H))}}function ne(k){var O;for(O=0;O<m;O++)k.dyn_ltree[2*O]=0;for(O=0;O<d;O++)k.dyn_dtree[2*O]=0;for(O=0;O<w;O++)k.bl_tree[2*O]=0;k.dyn_ltree[2*S]=1,k.opt_len=k.static_len=0,k.last_lit=k.matches=0}function oe(k){8<k.bi_valid?q(k,k.bi_buf):0<k.bi_valid&&(k.pending_buf[k.pending++]=k.bi_buf),k.bi_buf=0,k.bi_valid=0}function Se(k,O,j,Z){var F=2*O,V=2*j;return k[F]<k[V]||k[F]===k[V]&&Z[O]<=Z[j]}function ee(k,O,j){for(var Z=k.heap[j],F=j<<1;F<=k.heap_len&&(F<k.heap_len&&Se(O,k.heap[F+1],k.heap[F],k.depth)&&F++,!Se(O,Z,k.heap[F],k.depth));)k.heap[j]=k.heap[F],j=F,F<<=1;k.heap[j]=Z}function ke(k,O,j){var Z,F,V,X,H=0;if(k.last_lit!==0)for(;Z=k.pending_buf[k.d_buf+2*H]<<8|k.pending_buf[k.d_buf+2*H+1],F=k.pending_buf[k.l_buf+H],H++,Z===0?G(k,F,O):(G(k,(V=g[F])+p+1,O),(X=A[V])!==0&&J(k,F-=P[V],X),G(k,V=N(--Z),j),(X=z[V])!==0&&J(k,Z-=W[V],X)),H<k.last_lit;);G(k,S,O)}function ae(k,O){var j,Z,F,V=O.dyn_tree,X=O.stat_desc.static_tree,H=O.stat_desc.has_stree,Q=O.stat_desc.elems,fe=-1;for(k.heap_len=0,k.heap_max=u,j=0;j<Q;j++)V[2*j]!==0?(k.heap[++k.heap_len]=fe=j,k.depth[j]=0):V[2*j+1]=0;for(;k.heap_len<2;)V[2*(F=k.heap[++k.heap_len]=fe<2?++fe:0)]=1,k.depth[F]=0,k.opt_len--,H&&(k.static_len-=X[2*F+1]);for(O.max_code=fe,j=k.heap_len>>1;1<=j;j--)ee(k,V,j);for(F=Q;j=k.heap[1],k.heap[1]=k.heap[k.heap_len--],ee(k,V,1),Z=k.heap[1],k.heap[--k.heap_max]=j,k.heap[--k.heap_max]=Z,V[2*F]=V[2*j]+V[2*Z],k.depth[F]=(k.depth[j]>=k.depth[Z]?k.depth[j]:k.depth[Z])+1,V[2*j+1]=V[2*Z+1]=F,k.heap[1]=F++,ee(k,V,1),2<=k.heap_len;);k.heap[--k.heap_max]=k.heap[1],(function(le,Re){var pt,ze,mt,Ie,Zt,Xr,Be=Re.dyn_tree,Ss=Re.max_code,Sa=Re.stat_desc.static_tree,ka=Re.stat_desc.has_stree,_a=Re.stat_desc.extra_bits,ks=Re.stat_desc.extra_base,gt=Re.stat_desc.max_length,Vt=0;for(Ie=0;Ie<=b;Ie++)le.bl_count[Ie]=0;for(Be[2*le.heap[le.heap_max]+1]=0,pt=le.heap_max+1;pt<u;pt++)gt<(Ie=Be[2*Be[2*(ze=le.heap[pt])+1]+1]+1)&&(Ie=gt,Vt++),Be[2*ze+1]=Ie,Ss<ze||(le.bl_count[Ie]++,Zt=0,ks<=ze&&(Zt=_a[ze-ks]),Xr=Be[2*ze],le.opt_len+=Xr*(Ie+Zt),ka&&(le.static_len+=Xr*(Sa[2*ze+1]+Zt)));if(Vt!==0){do{for(Ie=gt-1;le.bl_count[Ie]===0;)Ie--;le.bl_count[Ie]--,le.bl_count[Ie+1]+=2,le.bl_count[gt]--,Vt-=2}while(0<Vt);for(Ie=gt;Ie!==0;Ie--)for(ze=le.bl_count[Ie];ze!==0;)Ss<(mt=le.heap[--pt])||(Be[2*mt+1]!==Ie&&(le.opt_len+=(Ie-Be[2*mt+1])*Be[2*mt],Be[2*mt+1]=Ie),ze--)}})(k,O),ye(V,fe,k.bl_count)}function c(k,O,j){var Z,F,V=-1,X=O[1],H=0,Q=7,fe=4;for(X===0&&(Q=138,fe=3),O[2*(j+1)+1]=65535,Z=0;Z<=j;Z++)F=X,X=O[2*(Z+1)+1],++H<Q&&F===X||(H<fe?k.bl_tree[2*F]+=H:F!==0?(F!==V&&k.bl_tree[2*F]++,k.bl_tree[2*C]++):H<=10?k.bl_tree[2*x]++:k.bl_tree[2*M]++,V=F,fe=(H=0)===X?(Q=138,3):F===X?(Q=6,3):(Q=7,4))}function L(k,O,j){var Z,F,V=-1,X=O[1],H=0,Q=7,fe=4;for(X===0&&(Q=138,fe=3),Z=0;Z<=j;Z++)if(F=X,X=O[2*(Z+1)+1],!(++H<Q&&F===X)){if(H<fe)for(;G(k,F,k.bl_tree),--H!=0;);else F!==0?(F!==V&&(G(k,F,k.bl_tree),H--),G(k,C,k.bl_tree),J(k,H-3,2)):H<=10?(G(k,x,k.bl_tree),J(k,H-3,3)):(G(k,M,k.bl_tree),J(k,H-11,7));V=F,fe=(H=0)===X?(Q=138,3):F===X?(Q=6,3):(Q=7,4)}}l(W);var E=!1;function _(k,O,j,Z){J(k,(h<<1)+(Z?1:0),3),(function(F,V,X,H){oe(F),q(F,X),q(F,~X),i.arraySet(F.pending_buf,F.window,V,X,F.pending),F.pending+=X})(k,O,j)}s._tr_init=function(k){E||((function(){var O,j,Z,F,V,X=new Array(b+1);for(F=Z=0;F<f-1;F++)for(P[F]=Z,O=0;O<1<<A[F];O++)g[Z++]=F;for(g[Z-1]=F,F=V=0;F<16;F++)for(W[F]=V,O=0;O<1<<z[F];O++)T[V++]=F;for(V>>=7;F<d;F++)for(W[F]=V<<7,O=0;O<1<<z[F]-7;O++)T[256+V++]=F;for(j=0;j<=b;j++)X[j]=0;for(O=0;O<=143;)$[2*O+1]=8,O++,X[8]++;for(;O<=255;)$[2*O+1]=9,O++,X[9]++;for(;O<=279;)$[2*O+1]=7,O++,X[7]++;for(;O<=287;)$[2*O+1]=8,O++,X[8]++;for(ye($,m+1,X),O=0;O<d;O++)I[2*O+1]=5,I[2*O]=ve(O,5);K=new te($,A,p+1,m,b),U=new te(I,z,0,d,b),re=new te(new Array(0),R,0,w,v)})(),E=!0),k.l_desc=new D(k.dyn_ltree,K),k.d_desc=new D(k.dyn_dtree,U),k.bl_desc=new D(k.bl_tree,re),k.bi_buf=0,k.bi_valid=0,ne(k)},s._tr_stored_block=_,s._tr_flush_block=function(k,O,j,Z){var F,V,X=0;0<k.level?(k.strm.data_type===2&&(k.strm.data_type=(function(H){var Q,fe=4093624447;for(Q=0;Q<=31;Q++,fe>>>=1)if(1&fe&&H.dyn_ltree[2*Q]!==0)return a;if(H.dyn_ltree[18]!==0||H.dyn_ltree[20]!==0||H.dyn_ltree[26]!==0)return o;for(Q=32;Q<p;Q++)if(H.dyn_ltree[2*Q]!==0)return o;return a})(k)),ae(k,k.l_desc),ae(k,k.d_desc),X=(function(H){var Q;for(c(H,H.dyn_ltree,H.l_desc.max_code),c(H,H.dyn_dtree,H.d_desc.max_code),ae(H,H.bl_desc),Q=w-1;3<=Q&&H.bl_tree[2*B[Q]+1]===0;Q--);return H.opt_len+=3*(Q+1)+5+5+4,Q})(k),F=k.opt_len+3+7>>>3,(V=k.static_len+3+7>>>3)<=F&&(F=V)):F=V=j+5,j+4<=F&&O!==-1?_(k,O,j,Z):k.strategy===4||V===F?(J(k,2+(Z?1:0),3),ke(k,$,I)):(J(k,4+(Z?1:0),3),(function(H,Q,fe,le){var Re;for(J(H,Q-257,5),J(H,fe-1,5),J(H,le-4,4),Re=0;Re<le;Re++)J(H,H.bl_tree[2*B[Re]+1],3);L(H,H.dyn_ltree,Q-1),L(H,H.dyn_dtree,fe-1)})(k,k.l_desc.max_code+1,k.d_desc.max_code+1,X+1),ke(k,k.dyn_ltree,k.dyn_dtree)),ne(k),Z&&oe(k)},s._tr_tally=function(k,O,j){return k.pending_buf[k.d_buf+2*k.last_lit]=O>>>8&255,k.pending_buf[k.d_buf+2*k.last_lit+1]=255&O,k.pending_buf[k.l_buf+k.last_lit]=255&j,k.last_lit++,O===0?k.dyn_ltree[2*j]++:(k.matches++,O--,k.dyn_ltree[2*(g[j]+p+1)]++,k.dyn_dtree[2*N(O)]++),k.last_lit===k.lit_bufsize-1},s._tr_align=function(k){J(k,2,3),G(k,S,$),(function(O){O.bi_valid===16?(q(O,O.bi_buf),O.bi_buf=0,O.bi_valid=0):8<=O.bi_valid&&(O.pending_buf[O.pending++]=255&O.bi_buf,O.bi_buf>>=8,O.bi_valid-=8)})(k)}},{"../utils/common":41}],53:[function(r,n,s){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,n,s){(function(i){(function(a,o){if(!a.setImmediate){var l,h,f,p,m=1,d={},w=!1,u=a.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(a);b=b&&b.setTimeout?b:a,l={}.toString.call(a.process)==="[object process]"?function(C){process.nextTick(function(){v(C)})}:(function(){if(a.postMessage&&!a.importScripts){var C=!0,x=a.onmessage;return a.onmessage=function(){C=!1},a.postMessage("","*"),a.onmessage=x,C}})()?(p="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",S,!1):a.attachEvent("onmessage",S),function(C){a.postMessage(p+C,"*")}):a.MessageChannel?((f=new MessageChannel).port1.onmessage=function(C){v(C.data)},function(C){f.port2.postMessage(C)}):u&&"onreadystatechange"in u.createElement("script")?(h=u.documentElement,function(C){var x=u.createElement("script");x.onreadystatechange=function(){v(C),x.onreadystatechange=null,h.removeChild(x),x=null},h.appendChild(x)}):function(C){setTimeout(v,0,C)},b.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var x=new Array(arguments.length-1),M=0;M<x.length;M++)x[M]=arguments[M+1];var A={callback:C,args:x};return d[m]=A,l(m),m++},b.clearImmediate=y}function y(C){delete d[C]}function v(C){if(w)setTimeout(v,0,C);else{var x=d[C];if(x){w=!0;try{(function(M){var A=M.callback,z=M.args;switch(z.length){case 0:A();break;case 1:A(z[0]);break;case 2:A(z[0],z[1]);break;case 3:A(z[0],z[1],z[2]);break;default:A.apply(o,z)}})(x)}finally{y(C),w=!1}}}}
50function S(C){C.source===a&&typeof C.data=="string"&&C.data.indexOf(p)===0&&v(+C.data.slice(p.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof mr<"u"?mr:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(va);var Of=va.exports;const Af=xf(Of);function Ef(e){try{return JSON.stringify(e)}catch{return"{}"}}class Mf{constructor(t={}){bt(this,"rrwebStopFn",null),bt(this,"isRecording",!1),bt(this,"uiApp",null),bt(this,"mountNode",null),bt(this,"options"),this.options={blockClass:tl,ignoreClass:rl,recordCanvas:!1,emit:()=>{},...t,text:{cancel:"Cancel",download:"Download",recording:"Recording",filename:"trace-report",...t?.text}},this.isRecording=!1}config(t){this.isRecording||(this.options={...this.options,...t})}record(){Ye.clearType(yr.EVENT),this.rrwebStopFn=Wt({emit:t=>{Ye.addRecord(yr.EVENT,t),this.options.emit&&this.options.emit(t)},sampling:{canvas:15},dataURLOptions:{type:"image/webp",quality:.6},blockClass:this.options.blockClass,ignoreClass:this.options.ignoreClass,recordCanvas:!0}
50),Ye.addRecord(yr.BROWSER,{userAgent:navigator.userAgent,language:navigator.language,screen:{width:screen.width,height:screen.height}})}async generateJSON(){const t=await Ye.getAllData();return Ef(t)}async download(){const t=await this.generateJSON(),r=new Af;r.file("trace-report.json",t),r.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:9}}).then(async n=>{const s=new Blob([n],{type:"application/zip"}),i=document.createElement("a"),a=URL.createObjectURL(s);i.href=a,i.download=`${this.options.text.filename}-${Date.now()}.zip`,i.addEventListener("click",()=>{setTimeout(()=>{URL.revokeObjectURL(a),i.remove()},100)}),i.click(),await this.stop()})}initRecordingUI(){Pa(()=>import("./RecordUI-B3mn-MG9-D7brcX6o.js"),[],import.meta.url).then(t=>{const r=t.default,n=document.createElement("div"),s=Ra(r,{text:this.options.text,cancel:async()=>{await this.stop.apply(this)},download:this.download.bind(this)});s.mount(n),document.body.appendChild(n),this.uiApp=s,this.mountNode=n})}unmountRecordingUI(){var t,r;(t=this.uiApp)==null||t.unmount(),(r=this.mountNode)==null||r.remove(),this.mountNode=null,this.uiApp=null}start(){this.isRecording||(this.isRecording=!0,Ye.updateIsRecording(!0),this.initRecordingUI(),this.record())}async stop(){var t;this.isRecording=!1,await Ye.stop(),(t=this.rrwebStopFn)==null||t.call(this),this.rrwebStopFn=null,this.unmountRecordingUI()}getIsRecording(){return this.isRecording}addRecord(t,r){Ye.addRecord(t,r)}}const Rf={class:"w-100% h-100% flex flex-col"},Tf={key:0,class:"flex items-center leading-16px color-text-1"},Ff={class:"flex-1 flex flex-col gap-24px items-center pt-100px"},Nf={class:"text-[#FFF] text-center text-20px font-600 lh-[160%] color-text-1"},Df={key:3,class:"flex flex-col gap-4px items-center"},zf={class:"text-center text-14px font-500 lh-[160%] color-text-1"},tp=Ta({__name:"index",props:Is({isPC:{type:Boolean}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Is(["cancel"],["update:modelValue"]),setup(e,{emit:t}){const{t:r}=Ba(),n=new Mf({text:{download:r("debugTools.trace.download"),recording:r("debugTools.trace.recording"),cancel:r("debugTools.trace.cancel"),filename:r("debugTools.trace.filename")}}),s=Ca(),i={idle:r("debugTools.idle"),running:r("debugTools.running"),success:r("debugTools.success"),failed:r("debugTools.failed")},a=[{target:"CPU",method:xs,key:"cpu"},{target:"FPS",method:el,key:"fps"},{target:"Memory",method:Cs,key:"memory"},{target:"API",method:qa,key:"api"},{target:"Bandwidth",method:Ha,key:"bandwidth"}],o=Fa(e,"modelValue"),l=Kr(""),h=Na({name:"UID",value:""}),f=e,p=t;Da(()=>{s.id?(h.name="UID",h.value=`${s.id}`):(h.name="anonymity_UID",h.value=localStorage.getItem("anonymity_UID")||"")});const m=za(()=>n.getIsRecording()),d=Kr({total:"idle",target:null,percent:0}),w=Kr({});La(()=>d.value.target,v=>{if(!v)return;const S=a.findIndex(x=>x.target===v);if(S===-1)return;const C=S/a.length;d.value.percent=C});const u=async()=>{const v=w.value,S=JSON.stringify({...v,uid:h.value||l.value,userAgent:navigator.userAgent},null,2),C=new Blob([S],{type:"application/json"}),x=URL.createObjectURL(C),M=document.createElement("a");M.href=x,M.download=`performance-${Date.now()}.json`,M.click(),URL.revokeObjectURL(x)},b=async()=>{o.value=!0,d.value.total="running";for(const v of a)d.value.target=v.target,w.value[v.key]=await v.method(),await Oa(100);d.value.total="success",d.value.target=null,o.value=!1,window.bitunix_tracking_sdk?.track("debug_tool_complete",w.value)},y=()=>{p("cancel"),n.start(),setTimeout(()=>{n.addRecord(yr.BASE,{userid:h.value||l.value,cpu:xs(),memory:Cs()})},0)};return(v,S)=>{const C=Ma,x=xa,M=Ea,A=Aa;return $e(),qr("div",Rf,[xe(h).value?($e(),qr("div",Tf,[et("div",null,Ue(xe(h).name)+": "+Ue(xe(h).value),1),yt(C,{class:"ml-10 cursor-pointer",onClick:S[0]||(S[0]=z=>xe(Ua)(xe(h).value||"",xe(r)))})])):_s("",!0),et("div",Ff,[S[1]||(S[1]=et("img",{src:ja,alt:"",class:"w-160px h-160px"},null,-1)),et("span",Nf,Ue(i[xe(d).total]),1),et("div",null,[xe(d).total==="idle"?($e(),Ht(M,{key:0},{default:Je(()=>[yt(x,{type:"primary",class:"rounded-100px",onClick:b},{default:Je(()=>[wt(Ue(xe(r)("debugTools.start")),1)]),_:1}
50),!xe(m)&&f.isPC?($e(),Ht(x,{key:0,type:"primary",class:"rounded-100px",onClick:y},{default:Je(()=>[wt(Ue(xe(r)("debugTools.trace.start")),1)]),_:1})):_s("",!0)]),_:1})):xe(d).total==="success"?($e(),Ht(M,{key:1},{default:Je(()=>[yt(x,{type:"primary",class:"rounded-100px",onClick:u},{default:Je(()=>[wt(Ue(xe(r)("debugTools.download")),1)]),_:1}),yt(x,{type:"text",onClick:b},{default:Je(()=>[wt(Ue(xe(r)("debugTools.restart")),1)]),_:1})]),_:1})):xe(d).total==="failed"?($e(),Ht(x,{key:2,type:"primary",class:"rounded-100px",onClick:b},{default:Je(()=>[wt(Ue(xe(r)("debugTools.restart")),1)]),_:1})):($e(),qr("div",Df,[et("span",zf,Ue(xe(d).target),1),yt(A,{size:"large",width:f.isPC?"568px":"300px",percent:xe(d).percent},null,8,["width","percent"])]))])])])}}});export{tp as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.