web-tracing-core 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__test__/css/performance.css +3 -0
- package/__test__/err-batch.spec.ts +47 -0
- package/__test__/err.spec.ts +82 -0
- package/__test__/event.spec.ts +62 -0
- package/__test__/html/performance.html +57 -0
- package/__test__/html/recordscreen.html +39 -0
- package/__test__/http.spec.ts +143 -0
- package/__test__/img/performance.png +0 -0
- package/__test__/js/performance.js +3 -0
- package/__test__/performance.spec.ts +112 -0
- package/__test__/recordscreen.spec.ts +50 -0
- package/__test__/utils/index.ts +99 -0
- package/__test__/utils/pollify.ts +14 -0
- package/__test__/utils.spec.ts +18 -0
- package/dist/LICENSE +21 -0
- package/dist/README.md +97 -0
- package/dist/index.cjs +15943 -0
- package/dist/index.d.ts +323 -0
- package/dist/index.iife.js +15946 -0
- package/dist/index.iife.min.js +28 -0
- package/dist/index.mjs +15913 -0
- package/dist/package.json +49 -0
- package/index.ts +75 -0
- package/package.json +49 -0
- package/src/common/config.ts +13 -0
- package/src/common/constant.ts +57 -0
- package/src/common/index.ts +2 -0
- package/src/lib/base.ts +129 -0
- package/src/lib/err-batch.ts +134 -0
- package/src/lib/err.ts +323 -0
- package/src/lib/event-dwell.ts +63 -0
- package/src/lib/event.ts +252 -0
- package/src/lib/eventBus.ts +97 -0
- package/src/lib/exportMethods.ts +208 -0
- package/src/lib/http.ts +197 -0
- package/src/lib/intersectionObserver.ts +164 -0
- package/src/lib/line-status.ts +45 -0
- package/src/lib/options.ts +325 -0
- package/src/lib/performance.ts +302 -0
- package/src/lib/pv.ts +199 -0
- package/src/lib/recordscreen.ts +169 -0
- package/src/lib/replace.ts +371 -0
- package/src/lib/sendData.ts +264 -0
- package/src/observer/computed.ts +52 -0
- package/src/observer/config.ts +1 -0
- package/src/observer/dep.ts +21 -0
- package/src/observer/index.ts +91 -0
- package/src/observer/ref.ts +80 -0
- package/src/observer/types.ts +22 -0
- package/src/observer/watch.ts +19 -0
- package/src/observer/watcher.ts +88 -0
- package/src/types/index.ts +126 -0
- package/src/utils/debug.ts +17 -0
- package/src/utils/element.ts +47 -0
- package/src/utils/fingerprintjs.ts +2132 -0
- package/src/utils/getIps.ts +127 -0
- package/src/utils/global.ts +49 -0
- package/src/utils/index.ts +551 -0
- package/src/utils/is.ts +78 -0
- package/src/utils/localStorage.ts +70 -0
- package/src/utils/session.ts +27 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
(function(I){"use strict";function rt(e){return function(n){return Object.prototype.toString.call(n)===`[object ${e}]`}}const ar=rt("RegExp"),sc=rt("Number"),cc=rt("String"),lc=rt("Boolean"),uc=rt("Function"),An=rt("Array"),dc=rt("Window"),or=e=>lc(e)&&String(e)==="false";function fc(e){return cc(e)&&e.trim()===""||e===void 0||e===null}const hc=dc(typeof window<"u"?window:0),pc=!!window?.process?.versions?.electron,sr=typeof navigator<"u"&&navigator.userAgent.includes("jsdom")||typeof window<"u"&&window.jsdom;function ki(){return hc||pc||sr?window:{}}function gc(){return E.__webTracing__=E.__webTracing__||{},E.__webTracing__}function mc(){return!!E.__webTracingInit__}const E=ki(),pe=gc();class Ue{subs=new Set;static target;addSub(){Ue.target&&this.subs.add(Ue.target)}notify(...n){this.subs.forEach(function(t){t.proxy.dirty=!0,t.update(...n)})}}const cr="__webtracingobserver__";function bc(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class vc{target;constructor(n){this.target=n}defineReactive(){const n=new Ue,t=yc(()=>{n.addSub()},r=>{n.notify(r)});return new Proxy(this.target,t)}}function yc(e,n){const t=new WeakMap,r={get(i,a,c){const o=Reflect.get(i,a,c);if(e&&e(),typeof o=="object"&&o!==null&&!bc(o)){let s=t.get(o);return s||(s=new Proxy(o,r),t.set(o,s)),s}return o},set(i,a,c,o){const s=Reflect.get(i,a,o);if(s===c)return s;const l=JSON.parse(JSON.stringify(i)),u=Reflect.set(i,a,c,o);return n&&n(l),u}};return r}const _c=new WeakMap;function Ic(e){const n={value:e};n[cr]=!0;const t=new vc(n),r=t.defineReactive();return _c.set(t,r),r}function Cc(e){return!!e[cr]}const Ei=[];function xi(e){Ue.target&&Ei.push(Ue.target),Ue.target=e}function Ri(){Ue.target=Ei.pop()}class Li{vm;computed;watch;proxy;dep;getter;callback;constructor(n,t,r){const{computed:i,watch:a,callback:c}=t;this.getter=r,this.computed=i||!1,this.watch=a||!1,this.callback=c,this.proxy={value:"",dirty:!0},this.vm=n,i?this.dep=new Ue:a?this.watchGet():this.get()}update(n){this.computed?this.dep.notify():this.watch?n!==this.proxy.value&&this.callback&&this.callback(this.proxy.value,n):this.get()}get(){xi(this);const n=this.computed?Ti.get(this.vm).call(this.vm):"";return n!==this.proxy.value&&(this.proxy.dirty=!1,this.proxy.value=n),Ri(),n}watchGet(){xi(this),this.proxy.dirty=!1,this.getter&&(this.proxy.value=this.getter()),Ri()}depend(){this.dep.addSub()}}class Sc{target;constructor(n){this.target=n}defineReactive(){const n=new Li(this,{computed:!0}),t={get(){return n.proxy.dirty?(n.depend(),n.get()):(n.depend(),n.proxy.value)}};return new Proxy(this.target,t)}}const Ti=new WeakMap;function wc(e){const n={value:0};n[cr]=!0;const t=new Sc(n),r=t.defineReactive();return Ti.set(t,e),r}function Ac(e,n){new Li("",{watch:!0,callback:e},n)}function kc(e,n){Cc(e)&&Ac((t,r)=>{n(t,r)},function(){return e.value})}function lr(){return!!window.Proxy}function Ec(e){return lr()?Ic(e):{value:e}}function Oi(e){return lr()?wc(e):{value:e()}}function xc(e,n){return lr()?kc(e,n):()=>({})}class Rc{dsn="";appName="";appCode="";appVersion="";userUuid="";sdkUserUuid="";debug=!1;pv={core:!1};performance={core:!1,firstResource:!1,server:!1};error={core:!1,server:!1};event={core:!1};recordScreen=!0;timeout=5e3;maxQueueLength=200;checkRecoverInterval=1;ext={};tracesSampleRate=1;cacheMaxLength=5;cacheWatingTime=5e3;ignoreErrors=[];ignoreRequest=[];scopeError=!1;localization=!1;sendTypeByXmlBody=!1;beforePushEventList=[];beforeSendData=[];afterSendData=[];localizationOverFlow=()=>{};constructor(n){const t=this.transitionOptions(n);t.ignoreRequest.push(new RegExp(t.dsn)),kn(this,t)}transitionOptions(n){const t=kn({},this,n),{beforePushEventList:r,beforeSendData:i,afterSendData:a}=n,{pv:c,performance:o,error:s,event:l}=t;return typeof c=="boolean"&&(t.pv={core:c}),typeof o=="boolean"&&(t.performance={core:o,firstResource:o,server:o}),typeof s=="boolean"&&(t.error={core:s,server:s}),typeof l=="boolean"&&(t.event={core:l}),r&&(t.beforePushEventList=[r]),i&&(t.beforeSendData=[i]),a&&(t.afterSendData=[a]),n.timeout!==void 0&&(t.timeout=n.timeout),n.maxQueueLength!==void 0&&(t.maxQueueLength=n.maxQueueLength),n.checkRecoverInterval!==void 0&&(t.checkRecoverInterval=n.checkRecoverInterval),t}}function Lc(e){const{dsn:n,appName:t,appCode:r,appVersion:i,userUuid:a,debug:c,recordScreen:o,pv:s,performance:l,error:u,event:d,ext:h,tracesSampleRate:f,cacheMaxLength:p,cacheWatingTime:_,ignoreErrors:g,ignoreRequest:v,scopeError:b,localization:y,sendTypeByXmlBody:m,beforePushEventList:k,beforeSendData:L,timeout:C,maxQueueLength:A,checkRecoverInterval:R}=e,S=[];return s&&typeof s=="object"?S.push(F(s.core,"pv.core","boolean")):S.push(F(s,"pv","boolean")),l&&typeof l=="object"?S.push(F(l.core,"performance.core","boolean"),F(l.firstResource,"performance.firstResource","boolean"),F(l.server,"performance.server","boolean")):S.push(F(l,"performance","boolean")),u&&typeof u=="object"?S.push(F(u.core,"error.core","boolean"),F(u.server,"error.server","boolean")):S.push(F(u,"error","boolean")),d&&typeof d=="object"?S.push(F(d.core,"event.core","boolean")):S.push(F(d,"event","boolean")),[F(n,"dsn","string"),F(t,"appName","string"),F(r,"appCode","string"),F(i,"appVersion","string"),F(a,"userUuid","string"),F(c,"debug","boolean"),F(o,"recordScreen","boolean"),F(h,"ext","object"),F(f,"tracesSampleRate","number"),F(p,"cacheMaxLength","number"),F(_,"cacheWatingTime","number"),F(g,"ignoreErrors","array"),Ni(g,"ignoreErrors",["string","regexp"]),F(v,"ignoreRequest","array"),Ni(v,"ignoreRequest",["string","regexp"]),F(b,"scopeError","boolean"),F(y,"localization","boolean"),F(m,"sendTypeByXmlBody","boolean"),F(k,"beforePushEventList","function"),F(L,"beforeSendData","function"),F(C,"timeout","number"),F(A,"maxQueueLength","number"),F(R,"checkRecoverInterval","number")].every(Q=>!!Q)}function Tc(e){return[Mi(e.appName,"appName"),Mi(e.dsn,"dsn")].every(t=>!!t)}function Mi(e,n){return fc(e)?(it(`\u3010${n}\u3011\u53C2\u6570\u5FC5\u586B`),!1):!0}function F(e,n,t){return!e||yt(e)===t?!0:(it(`TypeError:\u3010${n}\u3011\u671F\u671B\u4F20\u5165${t}\u7C7B\u578B\uFF0C\u76EE\u524D\u662F${yt(e)}\u7C7B\u578B`),!1)}function Ni(e,n,t){if(!e)return!0;let r=!0;return e.forEach(i=>{t.includes(yt(i))||(it(`TypeError:\u3010${n}\u3011\u6570\u7EC4\u5185\u7684\u503C\u671F\u671B\u4F20\u5165${t.join("|")}\u7C7B\u578B\uFF0C\u76EE\u524D\u503C${i}\u662F${yt(i)}\u7C7B\u578B`),r=!1)}),r}I.options=void 0;function Oc(e){return!Tc(e)||!Lc(e)?!1:(I.options=Ec(new Rc(e)),pe.options=I.options,!0)}function bt(...e){I.options.value.debug&&console.log("@web-tracing: ",...e)}function it(...e){console.error("@web-tracing: ",...e)}function Ie(e,n,t,r=!1){e.addEventListener(n,t,r)}function vt(e,n,t,r=!1){if(e!==void 0&&(n in e||r)){const i=e[n],a=t(i);uc(a)&&(e[n]=a)}}function Vt(e){return Object.keys(e).forEach(n=>{const t=e[n];sc(t)&&(e[n]=t===0?void 0:parseFloat(t.toFixed(2)))}),e}function me(){return typeof document>"u"||document.location==null?"":document.location.href}function W(){return Date.now()}function Fi(e,n,t=!1){let r=null,i;return function(...a){i=a,r===null&&(t&&e.apply(this,i),r=setTimeout(()=>{r=null,e.apply(this,i)},n))}}function Mc(e,n,t=!1){let r=null;return function(...i){t&&(e.call(this,...i),t=!1),r&&clearTimeout(r),r=setTimeout(()=>{e.call(this,...i)},n)}}function ur(e,...n){const t=new Map;for(const r of e){const i=n.filter(a=>r[a]).map(a=>r[a]).join(":");t.has(i)||t.set(i,[]),t.get(i).push(r)}return Array.from(t.values())}function kn(e,...n){return n.forEach(t=>{for(const r in t)t[r]!==null&&ar(t[r])?e[r]=t[r]:t[r]!==null&&typeof t[r]=="object"?e[r]=kn(e[r]||(An(t[r])?[]:{}),t[r]):e[r]=t[r]}),e}function ie(e){return mc()?!0:(it(`${e} \u9700\u8981\u5728SDK\u521D\u59CB\u5316\u4E4B\u540E\u4F7F\u7528`),!1)}function yt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function _t(e,n){return e in n}function Nc(e){return Math.random()<=e}function It(e,n,t="0"){const r=String(e);if(r.length<n){let i=r;for(let a=0;a<n-r.length;a+=1)i=t+i;return i}return r}function Fc(e){return e.split("?")[0]}function dr(){const e=new Date,n=parseInt(`${e.getFullYear()}${It(e.getMonth()+1,2)}${It(e.getDate(),2)}`,10).toString(16),t=parseInt(`${It(e.getHours(),2)}${It(e.getMinutes(),2)}${It(e.getSeconds(),2)}${It(e.getMilliseconds(),3)}`,10).toString(16);let r=n+t.length+t;for(;r.length<32;)r+=Math.floor(Math.random()*16).toString(16);return`${r.slice(0,8)}-${r.slice(8,16)}-${r.slice(16)}`}function fr(e){const n=document.cookie.match(new RegExp(`${e}=([^;]+)(;|$)`));return n?n[1]:void 0}function Dc(e,n){return navigator.sendBeacon(e,JSON.stringify(n))}const En=[];function Zc(e,n){return new Promise(t=>{const r=new Image;r.src=`${e}?v=${encodeURIComponent(JSON.stringify(n))}`,En.push(r),r.onload=()=>{t()},r.onerror=function(){t()}})}function Di(e,n,t=5e3){return new Promise((r,i)=>{const a=new XMLHttpRequest;a.open("post",e),a.setRequestHeader("content-type","application/json"),a.timeout=t,a.send(JSON.stringify(n)),a.onreadystatechange=function(){a.readyState===4&&(a.status>=200&&a.status<300?r():i(new Error("@web-tracing XMLHttpRequest error: "+a.status)))},a.ontimeout=function(){i(new Error("@web-tracing XMLHttpRequest timeout"))},a.onerror=function(){i(new Error("@web-tracing XMLHttpRequest network error"))}})}function xn(e,n,t){if(e.length===0)return t;let r;for(let i=0;i<e.length;i++){const a=e[i];i===0||n?r=a(t):r=a(r)}return r}function hr(e){return An(e)?e:[e]}const Bc=Array.prototype.map||function(n){const t=[];for(let r=0;r<this.length;r+=1)t.push(n(this[r],r,this));return t};function Zi(e,n){return Bc.call(e,n)}const Uc=Array.prototype.filter||function(n){const t=[];for(let r=0;r<this.length;r+=1)n(this[r],r,this)&&t.push(this[r]);return t};function zc(e,n){return Uc.call(e,n)}const Wc=window.requestIdleCallback||window.requestAnimationFrame||(e=>setTimeout(e,17));function Bi(e,n){const t=JSON.stringify(e);return new TextEncoder().encode(t).length/1024>n}function pr(e){if(!e)return{};const n={},t=e.split("?")[1];if(t){const r=t.split("&");for(const i of r){const[a,c]=i.split("=");n[decodeURIComponent(a)]=decodeURIComponent(c)}}return n}function gr(e,n=new Map){if(e!==null&&typeof e=="object"){let t=n.get(e);return t||(e instanceof Array?(t=[],n.set(e,t),e.forEach((r,i)=>{t[i]=gr(r,n)})):(t={},n.set(e,t),Object.keys(e).forEach(r=>{_t(r,e)&&(t[r]=gr(e[r],n))})),t)}return e}function ze(e,n,t,r=!1){e.removeEventListener(n,t,r)}var Hc="2.1.0";const Ui="_webtracing_device_id",mr="_webtracing_session_id",Pc=18e5,br="_webtracing_localization_key",Vc=Hc;var w=(e=>(e.ERROR="error",e.CONSOLEERROR="consoleError",e.UNHANDLEDREJECTION="unhandledrejection",e.CLICK="click",e.LOAD="load",e.BEFOREUNLOAD="beforeunload",e.FETCH="fetch",e.XHROPEN="xhr-open",e.XHRSEND="xhr-send",e.HASHCHANGE="hashchange",e.HISTORYPUSHSTATE="history-pushState",e.HISTORYREPLACESTATE="history-replaceState",e.POPSTATE="popstate",e.READYSTATECHANGE="readystatechange",e.ONLINE="online",e.OFFLINE="offline",e))(w||{}),be=(e=>(e.PV="pv",e.PVDURATION="pv-duration",e.ERROR="error",e.PERFORMANCE="performance",e.CLICK="click",e.DWELL="dwell",e.CUSTOM="custom",e.INTERSECTION="intersection",e))(be||{}),q=(e=>(e.PAGE="page",e.RESOURCE="resource",e.SERVER="server",e.CODE="code",e.REJECT="reject",e.CONSOLEERROR="console.error",e))(q||{});const Gc={0:"navigate",1:"reload",2:"back_forward",255:"reserved"};class Xc{handlers;constructor(){this.handlers={}}addEvent(n){!this.handlers[n.type]&&(this.handlers[n.type]=[]),this._getCallbackIndex(n)===-1&&this.handlers[n.type]?.push(n.callback)}delEvent(n){const t=this._getCallbackIndex(n);t!==-1&&this.handlers[n.type]?.splice(t,1)}changeEvent(n,t){const r=this._getCallbackIndex(n);r!==-1&&this.handlers[n.type]?.splice(r,1,t)}getEvent(n){return this.handlers[n]||[]}runEvent(n,...t){this.getEvent(n).forEach(i=>{i(...t)})}_getCallbackIndex(n){if(this.handlers[n.type]){const t=this.handlers[n.type];return t?t.findIndex(r=>r===n.callback):-1}else return-1}removeEvents(n){n.forEach(t=>{delete this.handlers[t]})}}const O=pe.eventBus||(pe.eventBus=new Xc),P={consoleError:null,xhrOpen:null,xhrSend:null,fetch:null,historyPushState:null,historyReplaceState:null},H={error:null,unhandledrejection:null,click:null,load:null,beforeunload:null,hashchange:null,popstate:null,offline:null,online:null};function jc(){for(const e in w)_t(e,w)&&Yc(e)}function Yc(e){if(!_t(e,w))return;switch(w[e]){case w.ERROR:Jc(w.ERROR);break;case w.UNHANDLEDREJECTION:Kc(w.UNHANDLEDREJECTION);break;case w.CONSOLEERROR:Qc(w.CONSOLEERROR);break;case w.CLICK:qc(w.CLICK);break;case w.LOAD:$c(w.LOAD);break;case w.BEFOREUNLOAD:el(w.BEFOREUNLOAD);break;case w.XHROPEN:tl(w.XHROPEN);break;case w.XHRSEND:nl(w.XHRSEND);break;case w.FETCH:rl(w.FETCH);break;case w.HASHCHANGE:il(w.HASHCHANGE);break;case w.HISTORYPUSHSTATE:ol(w.HISTORYPUSHSTATE);break;case w.HISTORYREPLACESTATE:al(w.HISTORYREPLACESTATE);break;case w.POPSTATE:sl(w.POPSTATE);break;case w.OFFLINE:cl(w.OFFLINE);break;case w.ONLINE:ll(w.ONLINE);break}}function Jc(e){const n=function(t){O.runEvent(e,t)};H.error=n,Ie(E,"error",n,!0)}function Kc(e){const n=function(t){O.runEvent(e,t)};H.unhandledrejection=n,Ie(E,"unhandledrejection",n)}function Qc(e){P.consoleError=console.error,vt(console,"error",n=>function(...t){t[0]&&t[0].slice&&t[0].slice(0,12)==="@web-tracing"||O.runEvent(e,t),n.apply(this,t)})}function qc(e){if(!("document"in E))return;const n=Fi(O.runEvent,100,!0),t=function(r){n.call(O,e,r)};H.click=t,Ie(E.document,"click",t,!0)}function $c(e){const n=function(t){O.runEvent(e,t)};H.load=n,Ie(E,"load",n,!0)}function el(e){const n=function(t){O.runEvent(e,t)};H.beforeunload=n,Ie(E,"beforeunload",n,!1)}function tl(e){"XMLHttpRequest"in E&&(P.xhrOpen=XMLHttpRequest.prototype.open,vt(XMLHttpRequest.prototype,"open",n=>function(...t){O.runEvent(e,...t),n.apply(this,t)}))}function nl(e){"XMLHttpRequest"in E&&(P.xhrSend=XMLHttpRequest.prototype.send,vt(XMLHttpRequest.prototype,"send",n=>function(...t){O.runEvent(e,this,...t),n.apply(this,t)}))}function rl(e){"fetch"in E&&(P.fetch=E.fetch,vt(E,"fetch",n=>function(...t){const r=W(),i={};return n.apply(E,t).then(a=>(O.runEvent(e,t[0],t[1],a,r,i),a))}))}function il(e){const n=function(t){O.runEvent(e,t)};H.hashchange=n,Ie(E,"hashchange",n)}function al(e){P.historyReplaceState=history.replaceState,vt(history,"replaceState",n=>function(...t){O.runEvent(e,...t),n.apply(this,t)})}function ol(e){P.historyPushState=history.pushState,vt(history,"pushState",n=>function(...t){O.runEvent(e,...t),n.apply(this,t)})}function sl(e){const n=function(t){O.runEvent(e,t)};H.popstate=n,Ie(E,"popstate",n)}function cl(e){const n=function(t){O.runEvent(e,t)};H.offline=n,Ie(E,"offline",n)}function ll(e){const n=function(t){O.runEvent(e,t)};H.offline=n,Ie(E,"offline",n)}function ul(){P.consoleError&&console.error!==P.consoleError&&(console.error=P.consoleError),P.xhrOpen&&XMLHttpRequest.prototype.open!==P.xhrOpen&&(XMLHttpRequest.prototype.open=P.xhrOpen),P.xhrSend&&XMLHttpRequest.prototype.send!==P.xhrSend&&(XMLHttpRequest.prototype.send=P.xhrSend),P.fetch&&E.fetch!==P.fetch&&(E.fetch=P.fetch),P.historyPushState&&history.pushState!==P.historyPushState&&(history.pushState=P.historyPushState),P.historyReplaceState&&history.replaceState!==P.historyReplaceState&&(history.replaceState=P.historyReplaceState),H.error&&ze(E,"error",H.error,!0),H.unhandledrejection&&ze(E,"unhandledrejection",H.unhandledrejection),H.click&&ze(E.document,"click",H.click,!0),H.load&&ze(E,"load",H.load,!0),H.beforeunload&&ze(E,"beforeunload",H.beforeunload,!1),H.hashchange&&ze(E,"hashchange",H.hashchange),H.popstate&&ze(E,"popstate",H.popstate),H.offline&&ze(E,"offline",H.offline),H.online&&ze(E,"online",H.online),Object.keys(P).forEach(e=>{P[e]=null}),Object.keys(H).forEach(e=>{H[e]=null})}let vr=function(){return vr=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(const i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},vr.apply(this,arguments)};function We(e,n,t,r){return new(t||(t=Promise))(function(i,a){function c(l){try{s(r.next(l))}catch(u){a(u)}}function o(l){try{s(r.throw(l))}catch(u){a(u)}}function s(l){let u;l.done?i(l.value):(u=l.value,u instanceof t?u:new t(function(d){d(u)})).then(c,o)}s((r=r.apply(e,n||[])).next())})}function Le(e,n){let t,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(s){return function(l){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(c=0)),c;)try{if(t=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,r=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(i=c.trys,!((i=i.length>0&&i[i.length-1])||u[0]!==6&&u[0]!==2)){c=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){c.label=u[1];break}if(u[0]===6&&c.label<i[1]){c.label=i[1],i=u;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(u);break}i[2]&&c.ops.pop(),c.trys.pop();continue}u=n.call(e,c)}catch(d){u=[6,d],r=0}finally{t=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([s,l])}}}function Ct(e,n,t){if(t||arguments.length===2)for(var r,i=0,a=n.length;i<a;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}function He(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function zi(e){return!!e&&typeof e.then=="function"}function Wi(e,n){try{const t=e();zi(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(t){n(!1,t)}}function Hi(e,n,t){return t===void 0&&(t=16),We(this,void 0,void 0,function(){let r,i,a;return Le(this,function(c){switch(c.label){case 0:r=Date.now(),i=0,c.label=1;case 1:return i<e.length?(n(e[i],i),(a=Date.now())>=r+t?(r=a,[4,He(0)]):[3,3]):[3,4];case 2:c.sent(),c.label=3;case 3:return++i,[3,1];case 4:return[2]}})})}function Rn(e){e.then(void 0,function(){})}function Ye(e,n){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];const t=[0,0,0,0];return t[3]+=e[3]+n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]+n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]+n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]+n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function Ce(e,n){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];const t=[0,0,0,0];return t[3]+=e[3]*n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]*n[3],t[1]+=t[2]>>>16,t[2]&=65535,t[2]+=e[3]*n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]*n[3],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[2]*n[2],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[3]*n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function St(e,n){return(n%=64)===32?[e[1],e[0]]:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n|e[0]>>>32-n]:(n-=32,[e[1]<<n|e[0]>>>32-n,e[0]<<n|e[1]>>>32-n])}function ve(e,n){return(n%=64)===0?e:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n]:[e[1]<<n-32,0]}function X(e,n){return[e[0]^n[0],e[1]^n[1]]}function Pi(e){return e=X(e,[0,e[0]>>>1]),e=X(e=Ce(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=X(e=Ce(e,[3301882366,444984403]),[0,e[0]>>>1])}function dl(e,n){n=n||0;let t,r=(e=e||"").length%16,i=e.length-r,a=[0,n],c=[0,n],o=[0,0],s=[0,0],l=[2277735313,289559509],u=[1291169091,658871167];for(t=0;t<i;t+=16)o=[255&e.charCodeAt(t+4)|(255&e.charCodeAt(t+5))<<8|(255&e.charCodeAt(t+6))<<16|(255&e.charCodeAt(t+7))<<24,255&e.charCodeAt(t)|(255&e.charCodeAt(t+1))<<8|(255&e.charCodeAt(t+2))<<16|(255&e.charCodeAt(t+3))<<24],s=[255&e.charCodeAt(t+12)|(255&e.charCodeAt(t+13))<<8|(255&e.charCodeAt(t+14))<<16|(255&e.charCodeAt(t+15))<<24,255&e.charCodeAt(t+8)|(255&e.charCodeAt(t+9))<<8|(255&e.charCodeAt(t+10))<<16|(255&e.charCodeAt(t+11))<<24],o=St(o=Ce(o,l),31),a=Ye(a=St(a=X(a,o=Ce(o,u)),27),c),a=Ye(Ce(a,[0,5]),[0,1390208809]),s=St(s=Ce(s,u),33),c=Ye(c=St(c=X(c,s=Ce(s,l)),31),a),c=Ye(Ce(c,[0,5]),[0,944331445]);switch(o=[0,0],s=[0,0],r){case 15:s=X(s,ve([0,e.charCodeAt(t+14)],48));case 14:s=X(s,ve([0,e.charCodeAt(t+13)],40));case 13:s=X(s,ve([0,e.charCodeAt(t+12)],32));case 12:s=X(s,ve([0,e.charCodeAt(t+11)],24));case 11:s=X(s,ve([0,e.charCodeAt(t+10)],16));case 10:s=X(s,ve([0,e.charCodeAt(t+9)],8));case 9:s=Ce(s=X(s,[0,e.charCodeAt(t+8)]),u),c=X(c,s=Ce(s=St(s,33),l));case 8:o=X(o,ve([0,e.charCodeAt(t+7)],56));case 7:o=X(o,ve([0,e.charCodeAt(t+6)],48));case 6:o=X(o,ve([0,e.charCodeAt(t+5)],40));case 5:o=X(o,ve([0,e.charCodeAt(t+4)],32));case 4:o=X(o,ve([0,e.charCodeAt(t+3)],24));case 3:o=X(o,ve([0,e.charCodeAt(t+2)],16));case 2:o=X(o,ve([0,e.charCodeAt(t+1)],8));case 1:o=Ce(o=X(o,[0,e.charCodeAt(t)]),l),a=X(a,o=Ce(o=St(o,31),u))}return a=Ye(a=X(a,[0,e.length]),c=X(c,[0,e.length])),c=Ye(c,a),a=Ye(a=Pi(a),c=Pi(c)),c=Ye(c,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function yr(e){return parseInt(e)}function Ee(e){return parseFloat(e)}function Pe(e,n){return typeof e=="number"&&isNaN(e)?n:e}function xe(e){return e.reduce(function(n,t){return n+(t?1:0)},0)}function Vi(e,n){if(n===void 0&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;const t=1/n;return Math.round(e*t)/t}function Gi(e){return e&&typeof e=="object"&&"message"in e?e:{message:e}}function fl(e){return typeof e!="function"}function hl(e,n,t){const r=Object.keys(e).filter(function(a){return!function(c,o){for(let s=0,l=c.length;s<l;++s)if(c[s]===o)return!0;return!1}(t,a)}),i=Array(r.length);return Hi(r,function(a,c){i[c]=function(o,s){const l=new Promise(function(u){const d=Date.now();Wi(o.bind(null,s),function(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];const p=Date.now()-d;if(!h[0])return u(function(){return{error:Gi(h[1]),duration:p}});const _=h[1];if(fl(_))return u(function(){return{value:_,duration:p}});u(function(){return new Promise(function(g){const v=Date.now();Wi(_,function(){for(var b=[],y=0;y<arguments.length;y++)b[y]=arguments[y];const m=p+Date.now()-v;if(!b[0])return g({error:Gi(b[1]),duration:m});g({value:b[1],duration:m})})})})})});return Rn(l),function(){return l.then(function(u){return u()})}}(e[a],n)}),function(){return We(this,void 0,void 0,function(){let a,c,o,s,l,u;return Le(this,function(d){switch(d.label){case 0:for(a={},c=0,o=r;c<o.length;c++)s=o[c],a[s]=void 0;l=Array(r.length),u=function(){let h;return Le(this,function(f){switch(f.label){case 0:return h=!0,[4,Hi(r,function(p,_){if(!l[_])if(i[_]){const g=i[_]().then(function(v){return a[p]=v});Rn(g),l[_]=g}else h=!1})];case 1:return f.sent(),h?[2,"break"]:[4,He(1)];case 2:return f.sent(),[2]}})},d.label=1;case 1:return[5,u()];case 2:if(d.sent()==="break")return[3,4];d.label=3;case 3:return[3,1];case 4:return[4,Promise.all(l)];case 5:return d.sent(),[2,a]}})})}}function Xi(){const e=window,n=navigator;return xe(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function pl(){const e=window,n=navigator;return xe(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!Xi()}function _r(){const e=window,n=navigator;return xe(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,n.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Gt(){const e=window,n=navigator;return xe(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,n.vendor.indexOf("Apple")===0,"getStorageUpdates"in n,"WebKitMediaKeys"in e])>=4}function Ir(){const e=window;return xe(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function gl(){let e,n,t=window;return xe(["buildID"in navigator,"MozAppearance"in((n=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&n!==void 0?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function ml(){const e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function ji(){const e=_r(),n=gl();if(!e&&!n)return!1;const t=window;return xe(["onorientationchange"in t,"orientation"in t,e&&!("SharedWorker"in t),n&&/android/i.test(navigator.appVersion)])>=2}function Yi(e){const n=new Error(e);return n.name=e,n}function Ji(e,n,t){let r,i,a;return t===void 0&&(t=50),We(this,void 0,void 0,function(){let c,o;return Le(this,function(s){switch(s.label){case 0:c=document,s.label=1;case 1:return c.body?[3,3]:[4,He(t)];case 2:return s.sent(),[3,1];case 3:o=c.createElement("iframe"),s.label=4;case 4:return s.trys.push([4,,10,11]),[4,new Promise(function(l,u){let d=!1,h=function(){d=!0,l()};o.onload=h,o.onerror=function(_){d=!0,u(_)};const f=o.style;f.setProperty("display","block","important"),f.position="absolute",f.top="0",f.left="0",f.visibility="hidden",n&&"srcdoc"in o?o.srcdoc=n:o.src="about:blank",c.body.appendChild(o);const p=function(){let _,g;d||(((g=(_=o.contentWindow)===null||_===void 0?void 0:_.document)===null||g===void 0?void 0:g.readyState)==="complete"?h():setTimeout(p,10))};p()})];case 5:s.sent(),s.label=6;case 6:return!((i=(r=o.contentWindow)===null||r===void 0?void 0:r.document)===null||i===void 0)&&i.body?[3,8]:[4,He(t)];case 7:return s.sent(),[3,6];case 8:return[4,e(o,o.contentWindow)];case 9:return[2,s.sent()];case 10:return(a=o.parentNode)===null||a===void 0||a.removeChild(o),[7];case 11:return[2]}})})}function bl(e){for(var n=function(o){for(var s,l,u="Unexpected syntax '".concat(o,"'"),d=/^\s*([a-z-]*)(.*)$/i.exec(o),h=d[1]||void 0,f={},p=/([.:#][\w-]+|\[.+?\])/gi,_=function(v,b){f[v]=f[v]||[],f[v].push(b)};;){const v=p.exec(d[2]);if(!v)break;const b=v[0];switch(b[0]){case".":_("class",b.slice(1));break;case"#":_("id",b.slice(1));break;case"[":var g=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(b);if(!g)throw new Error(u);_(g[1],(l=(s=g[4])!==null&&s!==void 0?s:g[5])!==null&&l!==void 0?l:"");break;default:throw new Error(u)}}return[h,f]}(e),t=n[0],r=n[1],i=document.createElement(t??"div"),a=0,c=Object.keys(r);a<c.length;a++){const o=c[a],s=r[o].join(" ");o==="style"?vl(i.style,s):i.setAttribute(o,s)}return i}function vl(e,n){for(let t=0,r=n.split(";");t<r.length;t++){const i=r[t],a=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(a){const c=a[1],o=a[2],s=a[4];e.setProperty(c,o,s||"")}}}const wt=["monospace","sans-serif","serif"],Ki=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Cr(e){return e.toDataURL()}let Ln,Sr;function yl(){const e=this;return function(){if(Sr===void 0){const n=function(){const t=wr();Ar(t)?Sr=setTimeout(n,2500):(Ln=t,Sr=void 0)};n()}}(),function(){return We(e,void 0,void 0,function(){let n;return Le(this,function(t){switch(t.label){case 0:return Ar(n=wr())?Ln?[2,Ct([],Ln,!0)]:ml()?[4,(r=document,(r.exitFullscreen||r.msExitFullscreen||r.mozCancelFullScreen||r.webkitExitFullscreen).call(r))]:[3,2]:[3,2];case 1:t.sent(),n=wr(),t.label=2;case 2:return Ar(n)||(Ln=n),[2,n]}let r})})}}function wr(){const e=screen;return[Pe(Ee(e.availTop),null),Pe(Ee(e.width)-Ee(e.availWidth)-Pe(Ee(e.availLeft),0),null),Pe(Ee(e.height)-Ee(e.availHeight)-Pe(Ee(e.availTop),0),null),Pe(Ee(e.availLeft),null)]}function Ar(e){for(let n=0;n<4;++n)if(e[n])return!1;return!0}function _l(e){let n;return We(this,void 0,void 0,function(){let t,r,i,a,c,o,s;return Le(this,function(l){switch(l.label){case 0:for(t=document,r=t.createElement("div"),i=new Array(e.length),a={},Qi(r),s=0;s<e.length;++s)c=bl(e[s]),Qi(o=t.createElement("div")),o.appendChild(c),r.appendChild(o),i[s]=c;l.label=1;case 1:return t.body?[3,3]:[4,He(50)];case 2:return l.sent(),[3,1];case 3:t.body.appendChild(r);try{for(s=0;s<e.length;++s)i[s].offsetParent||(a[e[s]]=!0)}finally{(n=r.parentNode)===null||n===void 0||n.removeChild(r)}return[2,a]}})})}function Qi(e){e.style.setProperty("display","block","important")}function qi(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function $i(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function At(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function ea(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function ta(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}const B=Math,se=function(){return 0},kr={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Il={fonts:function(){return Ji(function(e,n){const t=n.document,r=t.body;r.style.fontSize="48px";const i=t.createElement("div"),a={},c={},o=function(u){const d=t.createElement("span"),h=d.style;return h.position="absolute",h.top="0",h.left="0",h.fontFamily=u,d.textContent="mmMwWLliI0O&1",i.appendChild(d),d},s=wt.map(o),l=function(){for(var u={},d=function(p){u[p]=wt.map(function(_){return function(g,v){return o("'".concat(g,"',").concat(v))}(p,_)})},h=0,f=Ki;h<f.length;h++)d(f[h]);return u}();r.appendChild(i);for(let u=0;u<wt.length;u++)a[wt[u]]=s[u].offsetWidth,c[wt[u]]=s[u].offsetHeight;return Ki.filter(function(u){return n=l[u],wt.some(function(d,h){return n[h].offsetWidth!==a[d]||n[h].offsetHeight!==c[d]})})})},domBlockers:function(e){const n=(e===void 0?{}:e).debug;return We(this,void 0,void 0,function(){let t,r,i,a,c;return Le(this,function(o){switch(o.label){case 0:return Gt()||ji()?(s=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",s("YVt0aXRsZT0iN25hZ2EgcG9rZXIiIGld"),'[title="ALIENBOLA" i]'],abpvn:["#quangcaomb",s("Lmlvc0Fkc2lvc0Fkcy1sYXlvdXQ="),".quangcao",s("W2hyZWZePSJodHRwczovL3I4OC52bi8iXQ=="),s("W2hyZWZePSJodHRwczovL3piZXQudm4vIl0=")],adBlockFinland:[".mainostila",s("LnNwb25zb3JpdA=="),".ylamainos",s("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),s("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",s("I2FkMl9pbmxpbmU=")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",s("LmhlYWRlci1ibG9ja2VkLWFk"),s("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:['amp-embed[type="zen"]',".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil"],adGuardBase:[".BetterJsPopOverlay",s("I2FkXzMwMFgyNTA="),s("I2Jhbm5lcmZsb2F0MjI="),s("I2FkLWJhbm5lcg=="),s("I2NhbXBhaWduLWJhbm5lcg==")],adGuardChinese:[s("LlppX2FkX2FfSA=="),s("YVtocmVmKj0iL29kMDA1LmNvbSJd"),s("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),".qq_nr_lad","#widget-quan"],adGuardFrench:[s("I2Jsb2NrLXZpZXdzLWFkcy1zaWRlYmFyLWJsb2NrLWJsb2Nr"),"#pavePub",s("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv"],adGuardGerman:[s("LmJhbm5lcml0ZW13ZXJidW5nX2hlYWRfMQ=="),s("LmJveHN0YXJ0d2VyYnVuZw=="),s("LndlcmJ1bmcz"),s("YVtocmVmXj0iaHR0cDovL3d3dy5laXMuZGUvaW5kZXgucGh0bWw/cmVmaWQ9Il0="),s("YVtocmVmXj0iaHR0cHM6Ly93d3cudGlwaWNvLmNvbS8/YWZmaWxpYXRlSWQ9Il0=")],adGuardJapanese:["#kauli_yad_1",s("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),s("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),s("LmFkZ29vZ2xl"),s("LmFkX3JlZ3VsYXIz")],adGuardMobile:[s("YW1wLWF1dG8tYWRz"),s("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",s("I2FkX2ludmlld19hcmVh")],adGuardRussian:[s("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),s("LnJlY2xhbWE="),'div[id^="smi2adblock"]',s("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),s("I2FkX3NxdWFyZQ==")],adGuardSocial:[s("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),s("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",s("W2hyZWZePSJodHRwOi8vYWRzLmdsaXNwYS5jb20vIl0=")],adGuardTrackingProtection:["#qoo-counter",s("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),s("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),s("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",s("I3Jla2xhbWk="),s("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),s("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),s("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[s("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers",s("I25ld0Fk")],easyList:[s("I0FEX0NPTlRST0xfMjg="),s("LnNlY29uZC1wb3N0LWFkcy13cmFwcGVy"),".universalboxADVBOX03",s("LmFkdmVydGlzZW1lbnQtNzI4eDkw"),s("LnNxdWFyZV9hZHM=")],easyListChina:[s("YVtocmVmKj0iLndlbnNpeHVldGFuZy5jb20vIl0="),s("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),s("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box"],easyListCookie:["#AdaCompliance.app-notice",".text-center.rgpd",".panel--cookie",".js-cookies-andromeda",".elxtr-consent"],easyListCzechSlovak:["#onlajny-stickers",s("I3Jla2xhbW5pLWJveA=="),s("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",s("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[s("I2FkdmVydGVudGll"),s("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",s("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:[s("I0FkX1dpbjJkYXk="),s("I3dlcmJ1bmdzYm94MzAw"),s("YVtocmVmXj0iaHR0cDovL3d3dy5yb3RsaWNodGthcnRlaS5jb20vP3NjPSJd"),s("I3dlcmJ1bmdfd2lkZXNreXNjcmFwZXJfc2NyZWVu"),s("YVtocmVmXj0iaHR0cDovL2xhbmRpbmcucGFya3BsYXR6a2FydGVpLmNvbS8/YWc9Il0=")],easyListItaly:[s("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",s("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),s("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),s("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[s("LnJla2xhbW9zX3RhcnBhcw=="),s("LnJla2xhbW9zX251b3JvZG9z"),s("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),s("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),s("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[s("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#feedback-tab","#taboola-below-article",".feedburnerFeedBlock",".widget-feedburner-counter",'[title="Subscribe to our blog"]'],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:[".td-tags-and-social-wrapper-box",".twitterContainer",".youtube-social",'a[title^="Like us on Facebook"]','img[alt^="Share on Digg"]'],frellwitSwedish:[s("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),s("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",s("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[s("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),s("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),s("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",s("LmFkX19tYWlu"),s("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container",".cookie-msg-info-container","#cookies-policy-sticky"],icelandicAbp:[s("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[s("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),s("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[s("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),s("I2xpdmVyZUFkV3JhcHBlcg=="),s("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),s("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[s("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",s("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),s("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),s("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[s("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),s("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),s("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",s("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),s("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),s("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),s("ZGl2I3NrYXBpZWNfYWQ=")],ro:[s("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),'a[href^="/magazin/"]',s("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),s("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),s("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd")],ruAd:[s("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),s("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),s("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",s("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),s("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",s("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},r=Object.keys(t),[4,_l((c=[]).concat.apply(c,r.map(function(l){return t[l]})))]):[2,void 0];case 1:return i=o.sent(),n&&function(l,u){for(var d="DOM blockers debug:\n```",h=0,f=Object.keys(l);h<f.length;h++){const p=f[h];d+=`
|
|
2
|
+
`.concat(p,":");for(let _=0,g=l[p];_<g.length;_++){const v=g[_];d+=`
|
|
3
|
+
`.concat(u[v]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(v)}}console.log("".concat(d,"\n```"))}(t,i),(a=r.filter(function(l){const u=t[l];return xe(u.map(function(d){return i[d]}))>.6*u.length})).sort(),[2,a]}let s})})},fontPreferences:function(){return function(e,n){return n===void 0&&(n=4e3),Ji(function(t,r){const i=r.document,a=i.body,c=a.style;c.width="".concat(n,"px"),c.webkitTextSizeAdjust=c.textSizeAdjust="none",_r()?a.style.zoom="".concat(1/r.devicePixelRatio):Gt()&&(a.style.zoom="reset");const o=i.createElement("div");return o.textContent=Ct([],Array(n/20<<0),!0).map(function(){return"word"}).join(" "),a.appendChild(o),e(i,a)})}(function(e,n){for(var t={},r={},i=0,a=Object.keys(kr);i<a.length;i++){var c=a[i],o=kr[c],s=o[0],l=s===void 0?{}:s,u=o[1],d=u===void 0?"mmMwWLliI0fiflO&1":u,h=e.createElement("span");h.textContent=d,h.style.whiteSpace="nowrap";for(let f=0,p=Object.keys(l);f<p.length;f++){const _=p[f],g=l[_];g!==void 0&&(h.style[_]=g)}t[c]=h,n.appendChild(e.createElement("br")),n.appendChild(h)}for(let f=0,p=Object.keys(kr);f<p.length;f++)r[c=p[f]]=t[c].getBoundingClientRect().width;return r})},audio:function(){const e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(Gt()&&!Ir()&&!function(){const l=window;return xe(["DOMRectList"in l,"RTCPeerConnectionIceEvent"in l,"SVGGeometryElement"in l,"ontransitioncancel"in l])>=3}())return-1;const t=new n(1,5e3,44100),r=t.createOscillator();r.type="triangle",r.frequency.value=1e4;const i=t.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,r.connect(i),i.connect(t.destination),r.start(0);const a=function(l){let u=3,d=500,h=500,f=5e3,p=function(){};return[new Promise(function(_,g){let v=!1,b=0,y=0;l.oncomplete=function(L){return _(L.renderedBuffer)};const m=function(){setTimeout(function(){return g(Yi("timeout"))},Math.min(h,y+f-Date.now()))},k=function(){try{const L=l.startRendering();switch(zi(L)&&Rn(L),l.state){case"running":y=Date.now(),v&&m();break;case"suspended":document.hidden||b++,v&&b>=u?g(Yi("suspended")):setTimeout(k,d)}}catch(L){g(L)}};k(),p=function(){v||(v=!0,y>0&&m())}}),p]}(t),c=a[0],o=a[1],s=c.then(function(l){return function(u){for(var d=0,h=0;h<u.length;++h)d+=Math.abs(u[h]);return d}(l.getChannelData(0).subarray(4500))},function(l){if(l.name==="timeout"||l.name==="suspended")return-3;throw l});return Rn(s),function(){return o(),s}},screenFrame:function(){const e=this,n=yl();return function(){return We(e,void 0,void 0,function(){let t,r;return Le(this,function(i){switch(i.label){case 0:return[4,n()];case 1:return t=i.sent(),[2,[(r=function(a){return a===null?null:Vi(a,10)})(t[0]),r(t[1]),r(t[2]),r(t[3])]]}})})}},osCpu:function(){return navigator.oscpu},languages:function(){let e,n=navigator,t=[],r=n.language||n.userLanguage||n.browserLanguage||n.systemLanguage;if(r!==void 0&&t.push([r]),Array.isArray(n.languages))_r()&&xe([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||t.push(n.languages);else if(typeof n.languages=="string"){const i=n.languages;i&&t.push(i.split(","))}return t},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return Pe(Ee(navigator.deviceMemory),void 0)},screenResolution:function(){const e=screen,n=function(r){return Pe(yr(r),null)},t=[n(e.width),n(e.height)];return t.sort().reverse(),t},hardwareConcurrency:function(){return Pe(yr(navigator.hardwareConcurrency),void 0)},timezone:function(){let e,n=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(n){const i=new n().resolvedOptions().timeZone;if(i)return i}let t,r=(t=new Date().getFullYear(),-Math.max(Ee(new Date(t,0,1).getTimezoneOffset()),Ee(new Date(t,6,1).getTimezoneOffset())));return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!Xi()&&!pl())try{return!!window.indexedDB}catch{return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){const e=navigator.platform;return e==="MacIntel"&&Gt()&&!Ir()?function(){if(navigator.platform==="iPad")return!0;const n=screen,t=n.width/n.height;return xe(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){const e=navigator.plugins;if(e){for(var n=[],t=0;t<e.length;++t){const a=e[t];if(a){for(var r=[],i=0;i<a.length;++i){const c=a[i];r.push({type:c.type,suffixes:c.suffixes})}n.push({name:a.name,description:a.description,mimeTypes:r})}}return n}},canvas:function(){let e,n,t=!1,r=function(){const c=document.createElement("canvas");return c.width=1,c.height=1,[c,c.getContext("2d")]}(),i=r[0],a=r[1];if(function(c,o){return!(!o||!c.toDataURL)}(i,a)){t=function(o){return o.rect(0,0,10,10),o.rect(2,2,6,6),!o.isPointInPath(5,5,"evenodd")}(a),function(o,s){o.width=240,o.height=60,s.textBaseline="alphabetic",s.fillStyle="#f60",s.fillRect(100,1,62,20),s.fillStyle="#069",s.font='11pt "Times New Roman"';const l="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));s.fillText(l,2,15),s.fillStyle="rgba(102, 204, 0, 0.2)",s.font="18pt Arial",s.fillText(l,4,45)}(i,a);const c=Cr(i);c!==Cr(i)?e=n="unstable":(n=c,function(o,s){o.width=122,o.height=110,s.globalCompositeOperation="multiply";for(let l=0,u=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];l<u.length;l++){const d=u[l],h=d[0],f=d[1],p=d[2];s.fillStyle=h,s.beginPath(),s.arc(f,p,40,0,2*Math.PI,!0),s.closePath(),s.fill()}s.fillStyle="#f9c",s.arc(60,60,60,0,2*Math.PI,!0),s.arc(60,60,20,0,2*Math.PI,!0),s.fill("evenodd")}(i,a),e=Cr(i))}else e=n="";return{winding:t,geometry:e,text:n}},touchSupport:function(){let e,n=navigator,t=0;n.maxTouchPoints!==void 0?t=yr(n.maxTouchPoints):n.msMaxTouchPoints!==void 0&&(t=n.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch{e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],n=0,t=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<t.length;n++){const r=t[n],i=window[r];i&&typeof i=="object"&&e.push(r)}return e.sort()},cookiesEnabled:function(){const e=document;try{e.cookie="cookietest=1; SameSite=Strict;";const n=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch{return!1}},colorGamut:function(){for(let e=0,n=["rec2020","p3","srgb"];e<n.length;e++){const t=n[e];if(matchMedia("(color-gamut: ".concat(t,")")).matches)return t}},invertedColors:function(){return!!qi("inverted")||!qi("none")&&void 0},forcedColors:function(){return!!$i("active")||!$i("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return At("no-preference")?0:At("high")||At("more")?1:At("low")||At("less")?-1:At("forced")?10:void 0},reducedMotion:function(){return!!ea("reduce")||!ea("no-preference")&&void 0},hdr:function(){return!!ta("high")||!ta("standard")&&void 0},math:function(){let e,n=B.acos||se,t=B.acosh||se,r=B.asin||se,i=B.asinh||se,a=B.atanh||se,c=B.atan||se,o=B.sin||se,s=B.sinh||se,l=B.cos||se,u=B.cosh||se,d=B.tan||se,h=B.tanh||se,f=B.exp||se,p=B.expm1||se,_=B.log1p||se;return{acos:n(.12312423423423424),acosh:t(1e308),acoshPf:(e=1e154,B.log(e+B.sqrt(e*e-1))),asin:r(.12312423423423424),asinh:i(1),asinhPf:function(g){return B.log(g+B.sqrt(g*g+1))}(1),atanh:a(.5),atanhPf:function(g){return B.log((1+g)/(1-g))/2}(.5),atan:c(.5),sin:o(-1e300),sinh:s(1),sinhPf:function(g){return B.exp(g)-1/B.exp(g)/2}(1),cos:l(10.000000000123),cosh:u(1),coshPf:function(g){return(B.exp(g)+1/B.exp(g))/2}(1),tan:d(-1e300),tanh:h(1),tanhPf:function(g){return(B.exp(2*g)-1)/(B.exp(2*g)+1)}(1),exp:f(1),expm1:p(1),expm1Pf:function(g){return B.exp(g)-1}(1),log1p:_(10),log1pPf:function(g){return B.log(1+g)}(10),powPI:function(g){return B.pow(B.PI,g)}(-100)}},videoCard:function(){let e,n=document.createElement("canvas"),t=(e=n.getContext("webgl"))!==null&&e!==void 0?e:n.getContext("experimental-webgl");if(t&&"getExtension"in t){const r=t.getExtension("WEBGL_debug_renderer_info");if(r)return{vendor:(t.getParameter(r.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(t.getParameter(r.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){const e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}};function Cl(e){const n=function(r){if(ji())return .4;if(Gt())return Ir()?.5:.3;const i=r.platform.value||"";return/^Win/.test(i)?.6:/^Mac/.test(i)?.5:.7}(e),t=function(r){return Vi(.99+.01*r,1e-4)}(n);return{score:n,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(t))}}function Sl(e){return JSON.stringify(e,function(n,t){return t instanceof Error?vr({name:(Ct=t).name,message:Ct.message,stack:(He=Ct.stack)===null||He===void 0?void 0:He.split(`
|
|
4
|
+
`)},Ct):t},2)}function wl(e){return dl(function(n){for(var t="",r=0,i=Object.keys(n).sort();r<i.length;r++){const a=i[r],c=n[a],o=c.error?"error":JSON.stringify(c.value);t+="".concat(t?"|":"").concat(a.replace(/([:|\\])/g,"\\$1"),":").concat(o)}return t}(e))}function Al(e){return e===void 0&&(e=50),function(n,t){t===void 0&&(t=1/0);const r=window.requestIdleCallback;return r?new Promise(function(i){return r.call(window,function(){return i()},{timeout:t})}):He(Math.min(n,t))}(e,2*e)}function kl(e,n){const t=Date.now();return{get:function(r){return We(this,void 0,void 0,function(){let i,a,c;return Le(this,function(o){switch(o.label){case 0:return i=Date.now(),[4,e()];case 1:return a=o.sent(),c=function(s){let l;return{get visitorId(){return l===void 0&&(l=wl(this.components)),l},set visitorId(u){l=u},confidence:Cl(s),components:s,version:"3.4.1"}}(a),(n||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(c.version,`
|
|
5
|
+
userAgent: `).concat(navigator.userAgent,`
|
|
6
|
+
timeBetweenLoadAndGet: `).concat(i-t,`
|
|
7
|
+
visitorId: `).concat(c.visitorId,`
|
|
8
|
+
components: `).concat(Sl(a),"\n```")),[2,c]}})})}}}function El(e){const n=e===void 0?{}:e,t=n.delayFallback,r=n.debug;return n.monitoring,We(this,void 0,void 0,function(){return Le(this,function(i){switch(i.label){case 0:return[4,Al(t)];case 1:return i.sent(),[2,kl(hl(Il,{debug:r},[]),r)]}})})}function Er(){const e=fr(mr)||`s_${dr()}`,n=new Date(W()+Pc);return document.cookie=`${mr}=${e};path=/;max-age=1800;expires=${n.toUTCString()}`,e}function xl(){return fr(mr)||Er()}Er();function Rl(e){return na.test(e)}function Ll(e){return ra.test(e)}const na=/((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])/,ra=/((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))/,Tl=[ra,na];function Ol(e){let n,t=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;function r(){(n=new t({iceServers:[{urls:"stun:stun.l.google.com:19302"}]})).onicecandidate=c=>a(c),n.createDataChannel("fake_data_channel")}function i(){return n.createOffer().then(c=>n.setLocalDescription(c))}function a(c){c&&c.candidate&&c.candidate.candidate&&e(c&&c.candidate&&c.candidate.candidate)}return{start:function(){r(),i()},stop:function(){if(n)try{n.close()}finally{n.onicecandidate=()=>{},n=null}},createConnection:r,createStunRequest:i,handleCandidates:a}}function xr(e){if(e&&e<100)throw new Error("Custom timeout cannot be under 100 milliseconds.");const n=[],t=Ol(function(i){const a=[];for(const c of Tl){const o=[],s=c.exec(i);if(s){for(let l=0;l<s.length;l++)(Rl(s[l])||Ll(s[l]))&&o.push(s[l]);a.push(o)}}(function(c){n.includes(c)||n.push(r(c.flat(1/0)))})(a.flat(1/0))});function r(i){return Array.from(new Set(i))}return new Promise(function(i,a){t.start(),setTimeout(()=>{n&&n!==[]?i(r(n.flat(1/0))):a("No IP addresses were found."),t.stop()},e||500)})}function Rr(e){return new Promise(function(n,t){const r=[];xr(e).then(i=>{i.forEach(a=>{a.match(/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/)?r.push({ip:a,type:"private",IPv4:!0}):a.match(/((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))/)?r.push({ip:a,type:"IPv6",IPv4:!1}):r.push({ip:a,type:"public",IPv4:!0})}),n(r)}).catch(t)})}function Ml(e){return Rr(e).then(n=>{const t=n.filter(r=>r.IPv4);for(let r=0;r<t.length;r++)t[r]=t[r].ip;return t||""})}function Nl(e){return Rr(e).then(n=>{const t=n.filter(r=>r.type==="IPv6");for(let r=0;r<t.length;r++)t[r]=t[r].ip;return t?t.ip:""})}function ia(e){return Object.assign(xr(e),{types:Rr,public:xr,IPv4:Ml,IPv6:Nl})}class Lr{static maxSize=5*1024*1e3;static getItem(n){const t=localStorage.getItem(n);return t?JSON.parse(t):null}static setItem(n,t){localStorage.setItem(n,JSON.stringify(t))}static removeItem(n){localStorage.removeItem(n)}static getSize(){let n=0;for(let t=0;t<localStorage.length;t++){const r=localStorage.key(t);if(r){const i=localStorage.getItem(r);i&&(n+=this.getBytes(i))}}return n}static setSendDataItem(n,t){if(this.getSize()>=this.maxSize)return!1;const r=this.getItem(n)||{baseInfo:{},eventInfo:[]},i={baseInfo:kn(r.baseInfo,t.baseInfo),eventInfo:r.eventInfo.concat(t.eventInfo)};return this.setItem(n,i),!0}static getBytes(n){return new Blob([n]).size}}class Fl{events=[];timeoutID;isServerAvailable=!0;retryTimer;send(){if(!this.events.length||!this.isServerAvailable)return;const n=this.events.slice(0,I.options.value.cacheMaxLength);this.events=this.events.slice(I.options.value.cacheMaxLength);const t=W(),r=Oi(()=>({baseInfo:{...kt.base?.value,sendTime:t,userUuid:I.options.value.userUuid},eventInfo:Zi(n,a=>(a.sendTime=t,a))}));if(I.options.value.localization){Lr.setSendDataItem(br,r.value)||I.options.value.localizationOverFlow(r.value);return}const i=xn(I.options.value.beforeSendData,!1,r.value);or(i)||this.validateObject(i,"beforeSendData")&&(bt("send events",r.value),this.executeSend(I.options.value.dsn,i).then(a=>{a.success===!1?this.handleServerError():(this.isServerAvailable=!0,xn(I.options.value.afterSendData,!0,{...a,params:i}))}),this.events.length&&Wc(this.send.bind(this)))}handleServerError(){if(this.isServerAvailable=!1,this.retryTimer&&clearTimeout(this.retryTimer),I.options.value.checkRecoverInterval===-1)return;const n=(I.options.value.checkRecoverInterval??1)*60*1e3;this.retryTimer=setTimeout(()=>{this.testServerAvailable()},n)}testServerAvailable(){Di(I.options.value.dsn,{ping:1},I.options.value.timeout).then(()=>{this.isServerAvailable=!0,this.retryTimer&&clearTimeout(this.retryTimer),this.events.length&&this.send()}).catch(()=>{this.handleServerError()})}sendLocal(n){const t=xn(I.options.value.beforeSendData,!1,n);or(t)||this.validateObject(t,"beforeSendData")&&(bt("send events",t),this.executeSend(I.options.value.dsn,t))}emit(n,t=!1){if(!n||!pe.lineStatus.onLine||!t&&!Nc(I.options.value.tracesSampleRate))return;An(n)||(n=[n]);const r=I.options.value.maxQueueLength??200;if(!this.isServerAvailable&&this.events.length>=r){this.events=this.events.slice(this.events.length-r+n.length).concat(n);return}const i=xn(I.options.value.beforePushEventList,!1,n);or(i)||this.validateObject(i,"beforePushEventList")&&(this.events=this.events.concat(i),Er(),this.timeoutID&&clearTimeout(this.timeoutID),kt._initSuccess&&(this.events.length>=I.options.value.cacheMaxLength||t?this.send():this.timeoutID=setTimeout(this.send.bind(this),I.options.value.cacheWatingTime)))}executeSend(n,t){let r=1;return I.options.value.sendTypeByXmlBody?r=3:E.navigator?r=Bi(t,60)?3:1:r=Bi(t,2)?3:2,new Promise(i=>{switch(r){case 1:i({sendType:"sendBeacon",success:Dc(n,t)});break;case 2:Zc(n,t).then(()=>{i({sendType:"image",success:!0})}).catch(()=>{i({sendType:"image",success:!1})});break;case 3:Di(n,t,I.options.value.timeout).then(()=>{i({sendType:"xml",success:!0})}).catch(()=>{i({sendType:"xml",success:!1})});break}})}validateObject(n,t){return n===!1?!1:n?["object","array"].includes(yt(n))?!0:(it(`TypeError: ${t}\u671F\u671B\u8FD4\u56DE {} \u6216\u8005 [] \u7C7B\u578B\uFF0C\u76EE\u524D\u662F${yt(n)}\u7C7B\u578B`),!1):(it(`NullError: ${t}\u671F\u671B\u8FD4\u56DE {} \u6216\u8005 [] \u7C7B\u578B\uFF0C\u76EE\u524D\u65E0\u8FD4\u56DE\u503C`),!1)}destroy(){this.timeoutID&&clearTimeout(this.timeoutID),this.retryTimer&&clearTimeout(this.retryTimer),this.events=[],this.isServerAvailable=!0}}let Y;function Dl(){pe.sendData=new Fl,Y=pe.sendData}class Zl{base;pageId;sdkUserUuid="";device;_initSuccess=!1;constructor(){this.pageId=dr(),this.initSdkUserUuid().then(()=>{this.initDevice(),this.initBase()}).finally(()=>{this._initSuccess=!0,Y.emit([])})}initDevice(){const{screen:n}=ki(),{clientWidth:t,clientHeight:r}=document.documentElement,{width:i,height:a,colorDepth:c,pixelDepth:o}=n;let s=fr(Ui);s||(s=`t_${dr()}`,document.cookie=`${Ui}=${s};path=/;`),this.device={clientHeight:r,clientWidth:t,colorDepth:c,pixelDepth:o,deviceId:s,screenWidth:i,screenHeight:a,vendor:navigator.vendor,platform:navigator.platform}}initBase(){const n=xl();let t="";this.base=Oi(()=>({...this.device,userUuid:I.options.value.userUuid,sdkUserUuid:this.sdkUserUuid,ext:I.options.value.ext,appName:I.options.value.appName,appCode:I.options.value.appCode,pageId:this.pageId,sessionId:n,sdkVersion:Vc,ip:t})),!sr&&ia().then(r=>{this.base.value.ip=r[0],t=r[0]})}initSdkUserUuid(){return sr?Promise.resolve().then(()=>{this.sdkUserUuid="unit-test-id",I.options.value.sdkUserUuid="unit-test-id"}):El({}).then(n=>n.get()).then(n=>{const t=n.visitorId;this.sdkUserUuid=t,I.options.value.sdkUserUuid=t})}}let kt;function Bl(){kt=new Zl,pe.baseInfo=kt}class Ul{onLine=!0;constructor(){this.init()}init(){O.addEvent({type:w.OFFLINE,callback:n=>{n.type==="offline"&&(bt("\u7F51\u7EDC\u65AD\u5F00"),this.onLine=!1)}}),O.addEvent({type:w.ONLINE,callback:n=>{n.type==="online"&&(bt("\u7F51\u7EDC\u8FDE\u63A5"),this.onLine=!0)}})}}function zl(){pe.lineStatus=new Ul,pe.lineStatus}var $;(function(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"})($||($={}));function Wl(e){return e.nodeType===e.ELEMENT_NODE}function Xt(e){var n=e?.host;return n?.shadowRoot===e}function jt(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Hl(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function Tr(e){try{var n=e.rules||e.cssRules;return n?Hl(Array.from(n).map(aa).join("")):null}catch{return null}}function aa(e){var n=e.cssText;if(Pl(e))try{n=Tr(e.styleSheet)||n}catch{}return n}function Pl(e){return"styleSheet"in e}var oa=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(n){var t;if(!n)return-1;var r=(t=this.getMeta(n))===null||t===void 0?void 0:t.id;return r??-1},e.prototype.getNode=function(n){return this.idNodeMap.get(n)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(n){return this.nodeMetaMap.get(n)||null},e.prototype.removeNodeFromMap=function(n){var t=this,r=this.getId(n);this.idNodeMap.delete(r),n.childNodes&&n.childNodes.forEach(function(i){return t.removeNodeFromMap(i)})},e.prototype.has=function(n){return this.idNodeMap.has(n)},e.prototype.hasNode=function(n){return this.nodeMetaMap.has(n)},e.prototype.add=function(n,t){var r=t.id;this.idNodeMap.set(r,n),this.nodeMetaMap.set(n,t)},e.prototype.replace=function(n,t){var r=this.getNode(n);if(r){var i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(n,t)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Vl(){return new oa}function Or(e){var n=e.maskInputOptions,t=e.tagName,r=e.type,i=e.value,a=e.maskInputFn,c=i||"";return(n[t.toLowerCase()]||n[r])&&(a?c=a(c):c="*".repeat(c.length)),c}var sa="__rrweb_original__";function Gl(e){var n=e.getContext("2d");if(!n)return!0;for(var t=50,r=0;r<e.width;r+=t)for(var i=0;i<e.height;i+=t){var a=n.getImageData,c=sa in a?a[sa]:a,o=new Uint32Array(c.call(n,r,i,Math.min(t,e.width-r),Math.min(t,e.height-i)).data.buffer);if(o.some(function(s){return s!==0}))return!1}return!0}var Xl=1,jl=new RegExp("[^a-z0-9-_:]"),Yt=-2;function ca(){return Xl++}function Yl(e){if(e instanceof HTMLFormElement)return"form";var n=e.tagName.toLowerCase().trim();return jl.test(n)?"div":n}function Jl(e){return e.cssRules?Array.from(e.cssRules).map(function(n){return n.cssText||""}).join(""):""}function Kl(e){var n="";return e.indexOf("//")>-1?n=e.split("/").slice(0,3).join("/"):n=e.split("/")[0],n=n.split("?")[0],n}var Et,la,Ql=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ql=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,$l=/^(data:)([^,]*),(.*)/i;function Tn(e,n){return(e||"").replace(Ql,function(t,r,i,a,c,o){var s=i||c||o,l=r||a||"";if(!s)return t;if(!ql.test(s)||$l.test(s))return"url(".concat(l).concat(s).concat(l,")");if(s[0]==="/")return"url(".concat(l).concat(Kl(n)+s).concat(l,")");var u=n.split("/"),d=s.split("/");u.pop();for(var h=0,f=d;h<f.length;h++){var p=f[h];p!=="."&&(p===".."?u.pop():u.push(p))}return"url(".concat(l).concat(u.join("/")).concat(l,")")})}var eu=/^[^ \t\n\r\u000c]+/,tu=/^[, \t\n\r\u000c]+/;function nu(e,n){if(n.trim()==="")return n;var t=0;function r(l){var u,d=l.exec(n.substring(t));return d?(u=d[0],t+=u.length,u):""}for(var i=[];r(tu),!(t>=n.length);){var a=r(eu);if(a.slice(-1)===",")a=xt(e,a.substring(0,a.length-1)),i.push(a);else{var c="";a=xt(e,a);for(var o=!1;;){var s=n.charAt(t);if(s===""){i.push((a+c).trim());break}else if(o)s===")"&&(o=!1);else if(s===","){t+=1,i.push((a+c).trim());break}else s==="("&&(o=!0);c+=s,t+=1}}}return i.join(", ")}function xt(e,n){if(!n||n.trim()==="")return n;var t=e.createElement("a");return t.href=n,t.href}function ru(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Mr(){var e=document.createElement("a");return e.href="",e.href}function ua(e,n,t,r){return t==="src"||t==="href"&&r&&!(n==="use"&&r[0]==="#")||t==="xlink:href"&&r&&r[0]!=="#"||t==="background"&&r&&(n==="table"||n==="td"||n==="th")?xt(e,r):t==="srcset"&&r?nu(e,r):t==="style"&&r?Tn(r,Mr()):n==="object"&&t==="data"&&r?xt(e,r):r}function iu(e,n,t){if(typeof n=="string"){if(e.classList.contains(n))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(n.test(i))return!0}return t?e.matches(t):!1}function On(e,n,t){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return t?On(e.parentNode,n,t):!1;for(var r=e.classList.length;r--;){var i=e.classList[r];if(n.test(i))return!0}return t?On(e.parentNode,n,t):!1}function da(e,n,t){var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(r===null)return!1;if(typeof n=="string"){if(r.classList.contains(n)||r.closest(".".concat(n)))return!0}else if(On(r,n,!0))return!0;return!!(t&&(r.matches(t)||r.closest(t)))}function au(e,n,t){var r=e.contentWindow;if(r){var i=!1,a;try{a=r.document.readyState}catch{return}if(a!=="complete"){var c=setTimeout(function(){i||(n(),i=!0)},t);e.addEventListener("load",function(){clearTimeout(c),i=!0,n()});return}var o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return setTimeout(n,0),e.addEventListener("load",n);e.addEventListener("load",n)}}function ou(e,n,t){var r=!1,i;try{i=e.sheet}catch{return}if(!i){var a=setTimeout(function(){r||(n(),r=!0)},t);e.addEventListener("load",function(){clearTimeout(a),r=!0,n()})}}function su(e,n){var t=n.doc,r=n.mirror,i=n.blockClass,a=n.blockSelector,c=n.maskTextClass,o=n.maskTextSelector,s=n.inlineStylesheet,l=n.maskInputOptions,u=l===void 0?{}:l,d=n.maskTextFn,h=n.maskInputFn,f=n.dataURLOptions,p=f===void 0?{}:f,_=n.inlineImages,g=n.recordCanvas,v=n.keepIframeSrcFn,b=n.newlyAddedElement,y=b===void 0?!1:b,m=cu(t,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:$.Document,childNodes:[],compatMode:e.compatMode}:{type:$.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:$.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:m};case e.ELEMENT_NODE:return uu(e,{doc:t,blockClass:i,blockSelector:a,inlineStylesheet:s,maskInputOptions:u,maskInputFn:h,dataURLOptions:p,inlineImages:_,recordCanvas:g,keepIframeSrcFn:v,newlyAddedElement:y,rootId:m});case e.TEXT_NODE:return lu(e,{maskTextClass:c,maskTextSelector:o,maskTextFn:d,rootId:m});case e.CDATA_SECTION_NODE:return{type:$.CDATA,textContent:"",rootId:m};case e.COMMENT_NODE:return{type:$.Comment,textContent:e.textContent||"",rootId:m};default:return!1}}function cu(e,n){if(n.hasNode(e)){var t=n.getId(e);return t===1?void 0:t}}function lu(e,n){var t,r=n.maskTextClass,i=n.maskTextSelector,a=n.maskTextFn,c=n.rootId,o=e.parentNode&&e.parentNode.tagName,s=e.textContent,l=o==="STYLE"?!0:void 0,u=o==="SCRIPT"?!0:void 0;if(l&&s){try{e.nextSibling||e.previousSibling||!((t=e.parentNode.sheet)===null||t===void 0)&&t.cssRules&&(s=Jl(e.parentNode.sheet))}catch(d){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(d),e)}s=Tn(s,Mr())}return u&&(s="SCRIPT_PLACEHOLDER"),!l&&!u&&s&&da(e,r,i)&&(s=a?a(s):s.replace(/[\S]/g,"*")),{type:$.Text,textContent:s||"",isStyle:l,rootId:c}}function uu(e,n){for(var t=n.doc,r=n.blockClass,i=n.blockSelector,a=n.inlineStylesheet,c=n.maskInputOptions,o=c===void 0?{}:c,s=n.maskInputFn,l=n.dataURLOptions,u=l===void 0?{}:l,d=n.inlineImages,h=n.recordCanvas,f=n.keepIframeSrcFn,p=n.newlyAddedElement,_=p===void 0?!1:p,g=n.rootId,v=iu(e,r,i),b=Yl(e),y={},m=e.attributes.length,k=0;k<m;k++){var L=e.attributes[k];y[L.name]=ua(t,b,L.name,L.value)}if(b==="link"&&a){var C=Array.from(t.styleSheets).find(function(fe){return fe.href===e.href}),A=null;C&&(A=Tr(C)),A&&(delete y.rel,delete y.href,y._cssText=Tn(A,C.href))}if(b==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var A=Tr(e.sheet);A&&(y._cssText=Tn(A,Mr()))}if(b==="input"||b==="textarea"||b==="select"){var R=e.value,S=e.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&R?y.value=Or({type:y.type,tagName:b,value:R,maskInputOptions:o,maskInputFn:s}):S&&(y.checked=S)}if(b==="option"&&(e.selected&&!o.select?y.selected=!0:delete y.selected),b==="canvas"&&h){if(e.__context==="2d")Gl(e)||(y.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){var x=e.toDataURL(u.type,u.quality),Q=document.createElement("canvas");Q.width=e.width,Q.height=e.height;var de=Q.toDataURL(u.type,u.quality);x!==de&&(y.rr_dataURL=x)}}if(b==="img"&&d){Et||(Et=t.createElement("canvas"),la=Et.getContext("2d"));var G=e,re=G.crossOrigin;G.crossOrigin="anonymous";var Ae=function(){try{Et.width=G.naturalWidth,Et.height=G.naturalHeight,la.drawImage(G,0,0),y.rr_dataURL=Et.toDataURL(u.type,u.quality)}catch(fe){console.warn("Cannot inline img src=".concat(G.currentSrc,"! Error: ").concat(fe))}re?y.crossOrigin=re:G.removeAttribute("crossorigin")};G.complete&&G.naturalWidth!==0?Ae():G.onload=Ae}if((b==="audio"||b==="video")&&(y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime),_||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),v){var je=e.getBoundingClientRect(),Fe=je.width,ke=je.height;y={class:y.class,rr_width:"".concat(Fe,"px"),rr_height:"".concat(ke,"px")}}return b==="iframe"&&!f(y.src)&&(e.contentDocument||(y.rr_src=y.src),delete y.src),{type:$.Element,tagName:b,attributes:y,childNodes:[],isSVG:ru(e)||void 0,needBlock:v,rootId:g}}function V(e){return e===void 0?"":e.toLowerCase()}function du(e,n){if(n.comment&&e.type===$.Comment)return!0;if(e.type===$.Element){if(n.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"&&e.attributes.href.endsWith(".js")))return!0;if(n.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(V(e.attributes.name).match(/^msapplication-tile(image|color)$/)||V(e.attributes.name)==="application-name"||V(e.attributes.rel)==="icon"||V(e.attributes.rel)==="apple-touch-icon"||V(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(n.headMetaDescKeywords&&V(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(V(e.attributes.property).match(/^(og|twitter|fb):/)||V(e.attributes.name).match(/^(og|twitter):/)||V(e.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(V(e.attributes.name)==="robots"||V(e.attributes.name)==="googlebot"||V(e.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(V(e.attributes.name)==="author"||V(e.attributes.name)==="generator"||V(e.attributes.name)==="framework"||V(e.attributes.name)==="publisher"||V(e.attributes.name)==="progid"||V(e.attributes.property).match(/^article:/)||V(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(V(e.attributes.name)==="google-site-verification"||V(e.attributes.name)==="yandex-verification"||V(e.attributes.name)==="csrf-token"||V(e.attributes.name)==="p:domain_verify"||V(e.attributes.name)==="verify-v1"||V(e.attributes.name)==="verification"||V(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Rt(e,n){var t=n.doc,r=n.mirror,i=n.blockClass,a=n.blockSelector,c=n.maskTextClass,o=n.maskTextSelector,s=n.skipChild,l=s===void 0?!1:s,u=n.inlineStylesheet,d=u===void 0?!0:u,h=n.maskInputOptions,f=h===void 0?{}:h,p=n.maskTextFn,_=n.maskInputFn,g=n.slimDOMOptions,v=n.dataURLOptions,b=v===void 0?{}:v,y=n.inlineImages,m=y===void 0?!1:y,k=n.recordCanvas,L=k===void 0?!1:k,C=n.onSerialize,A=n.onIframeLoad,R=n.iframeLoadTimeout,S=R===void 0?5e3:R,x=n.onStylesheetLoad,Q=n.stylesheetLoadTimeout,de=Q===void 0?5e3:Q,G=n.keepIframeSrcFn,re=G===void 0?function(){return!1}:G,Ae=n.newlyAddedElement,je=Ae===void 0?!1:Ae,Fe=n.preserveWhiteSpace,ke=Fe===void 0?!0:Fe,fe=su(e,{doc:t,mirror:r,blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:o,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:_,dataURLOptions:b,inlineImages:m,recordCanvas:L,keepIframeSrcFn:re,newlyAddedElement:je});if(!fe)return console.warn(e,"not serialized"),null;var tt;r.hasNode(e)?tt=r.getId(e):du(fe,g)||!ke&&fe.type===$.Text&&!fe.isStyle&&!fe.textContent.replace(/^\s+|\s+$/gm,"").length?tt=Yt:tt=ca();var K=Object.assign(fe,{id:tt});if(r.add(e,K),tt===Yt)return null;C&&C(e);var wn=!l;if(K.type===$.Element){wn=wn&&!K.needBlock,delete K.needBlock;var De=e.shadowRoot;De&&jt(De)&&(K.isShadowHost=!0)}if((K.type===$.Document||K.type===$.Element)&&wn){g.headWhitespace&&K.type===$.Element&&K.tagName==="head"&&(ke=!1);for(var Ze={doc:t,mirror:r,blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:o,skipChild:l,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:_,slimDOMOptions:g,dataURLOptions:b,inlineImages:m,recordCanvas:L,preserveWhiteSpace:ke,onSerialize:C,onIframeLoad:A,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:de,keepIframeSrcFn:re},nt=0,T=Array.from(e.childNodes);nt<T.length;nt++){var he=T[nt],U=Rt(he,Ze);U&&K.childNodes.push(U)}if(Wl(e)&&e.shadowRoot)for(var te=0,Be=Array.from(e.shadowRoot.childNodes);te<Be.length;te++){var he=Be[te],U=Rt(he,Ze);U&&(jt(e.shadowRoot)&&(U.isShadow=!0),K.childNodes.push(U))}}return e.parentNode&&Xt(e.parentNode)&&jt(e.parentNode)&&(K.isShadow=!0),K.type===$.Element&&K.tagName==="iframe"&&au(e,function(){var z=e.contentDocument;if(z&&A){var Pt=Rt(z,{doc:z,mirror:r,blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:_,slimDOMOptions:g,dataURLOptions:b,inlineImages:m,recordCanvas:L,preserveWhiteSpace:ke,onSerialize:C,onIframeLoad:A,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:de,keepIframeSrcFn:re});Pt&&A(e,Pt)}},S),K.type===$.Element&&K.tagName==="link"&&K.attributes.rel==="stylesheet"&&ou(e,function(){if(x){var z=Rt(e,{doc:t,mirror:r,blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:_,slimDOMOptions:g,dataURLOptions:b,inlineImages:m,recordCanvas:L,preserveWhiteSpace:ke,onSerialize:C,onIframeLoad:A,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:de,keepIframeSrcFn:re});z&&x(e,z)}},de),K}function fu(e,n){var t=n||{},r=t.mirror,i=r===void 0?new oa:r,a=t.blockClass,c=a===void 0?"rr-block":a,o=t.blockSelector,s=o===void 0?null:o,l=t.maskTextClass,u=l===void 0?"rr-mask":l,d=t.maskTextSelector,h=d===void 0?null:d,f=t.inlineStylesheet,p=f===void 0?!0:f,_=t.inlineImages,g=_===void 0?!1:_,v=t.recordCanvas,b=v===void 0?!1:v,y=t.maskAllInputs,m=y===void 0?!1:y,k=t.maskTextFn,L=t.maskInputFn,C=t.slimDOM,A=C===void 0?!1:C,R=t.dataURLOptions,S=t.preserveWhiteSpace,x=t.onSerialize,Q=t.onIframeLoad,de=t.iframeLoadTimeout,G=t.onStylesheetLoad,re=t.stylesheetLoadTimeout,Ae=t.keepIframeSrcFn,je=Ae===void 0?function(){return!1}:Ae,Fe=m===!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===!1?{password:!0}:m,ke=A===!0||A==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:A==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:A===!1?{}:A;return Rt(e,{doc:e,mirror:i,blockClass:c,blockSelector:s,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:Fe,maskTextFn:k,maskInputFn:L,slimDOMOptions:ke,dataURLOptions:R,inlineImages:g,recordCanvas:b,preserveWhiteSpace:S,onSerialize:x,onIframeLoad:Q,iframeLoadTimeout:de,onStylesheetLoad:G,stylesheetLoadTimeout:re,keepIframeSrcFn:je,newlyAddedElement:!1})}function ce(e,n,t=document){const r={capture:!0,passive:!0};return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}const Lt=`Please stop import mirror directly. Instead of that,\r
|
|
9
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
10
|
+
or you can use record.mirror to access the mirror instance during recording.`;let fa={map:{},getId(){return console.error(Lt),-1},getNode(){return console.error(Lt),null},removeNodeFromMap(){console.error(Lt)},has(){return console.error(Lt),!1},reset(){console.error(Lt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(fa=new Proxy(fa,{get(e,n,t){return n==="map"&&console.error(Lt),Reflect.get(e,n,t)}}));function Jt(e,n,t={}){let r=null,i=0;return function(...a){const c=Date.now();!i&&t.leading===!1&&(i=c);const o=n-(c-i),s=this;o<=0||o>n?(r&&(clearTimeout(r),r=null),i=c,e.apply(s,a)):!r&&t.trailing!==!1&&(r=setTimeout(()=>{i=t.leading===!1?0:Date.now(),r=null,e.apply(s,a)},o))}}function Mn(e,n,t,r,i=window){const a=i.Object.getOwnPropertyDescriptor(e,n);return i.Object.defineProperty(e,n,r?t:{set(c){setTimeout(()=>{t.set.call(this,c)},0),a&&a.set&&a.set.call(this,c)}}),()=>Mn(e,n,a||{},!0)}function Kt(e,n,t){try{if(!(n in e))return()=>{};const r=e[n],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[n]=i,()=>{e[n]=r}}catch{return()=>{}}}function ha(e){var n,t,r,i,a,c;const o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o?.documentElement.scrollLeft||((t=(n=o?.body)===null||n===void 0?void 0:n.parentElement)===null||t===void 0?void 0:t.scrollLeft)||((r=o?.body)===null||r===void 0?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:o?.documentElement.scrollTop||((a=(i=o?.body)===null||i===void 0?void 0:i.parentElement)===null||a===void 0?void 0:a.scrollTop)||((c=o?.body)===null||c===void 0?void 0:c.scrollTop)||0}}function pa(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ga(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function le(e,n,t,r){if(!e)return!1;const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!i)return!1;if(typeof n=="string"){if(i.classList.contains(n)||r&&i.closest("."+n)!==null)return!0}else if(On(i,n,r))return!0;return!!(t&&(i.matches(t)||r&&i.closest(t)!==null))}function hu(e,n){return n.getId(e)!==-1}function Nr(e,n){return n.getId(e)===Yt}function ma(e,n){if(Xt(e))return!1;const t=n.getId(e);return n.has(t)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?ma(e.parentNode,n):!0:!0}function ba(e){return!!e.changedTouches}function pu(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),Node.prototype.contains||(Node.prototype.contains=(...n)=>{let t=n[0];if(!(0 in n))throw new TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}function va(e,n){return!!(e.nodeName==="IFRAME"&&n.getMeta(e))}function ya(e,n){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&n.getMeta(e))}function Fr(e){return!!e?.shadowRoot}class gu{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(n){var t;return(t=this.styleIDMap.get(n))!==null&&t!==void 0?t:-1}has(n){return this.styleIDMap.has(n)}add(n,t){if(this.has(n))return this.getId(n);let r;return t===void 0?r=this.id++:r=t,this.styleIDMap.set(n,r),this.idStyleMap.set(r,n),r}getStyle(n){return this.idStyleMap.get(n)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function _a(e){var n,t;let r=null;return((t=(n=e.getRootNode)===null||n===void 0?void 0:n.call(e))===null||t===void 0?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function mu(e){let n=e,t;for(;t=_a(n);)n=t;return n}function bu(e){const n=e.ownerDocument;if(!n)return!1;const t=mu(e);return n.contains(t)}function Ia(e){const n=e.ownerDocument;return n?n.contains(e)||bu(e):!1}var D=(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))(D||{}),N=(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))(N||{}),Dr=(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))(Dr||{}),Tt=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Tt||{});function Ca(e){return"__ln"in e}class vu{constructor(){this.length=0,this.head=null}get(n){if(n>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<n;r++)t=t?.next||null;return t}addNode(n){const t={value:n,previous:null,next:null};if(n.__ln=t,n.previousSibling&&Ca(n.previousSibling)){const r=n.previousSibling.__ln.next;t.next=r,t.previous=n.previousSibling.__ln,n.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(n.nextSibling&&Ca(n.nextSibling)&&n.nextSibling.__ln.previous){const r=n.nextSibling.__ln.previous;t.previous=r,t.next=n.nextSibling.__ln,n.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;this.length++}removeNode(n){const t=n.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),n.__ln&&delete n.__ln,this.length--)}}const Sa=(e,n)=>`${e}@${n}`;class yu{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=n=>{n.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const n=[],t=new vu,r=o=>{let s=o,l=Yt;for(;l===Yt;)s=s&&s.nextSibling,l=s&&this.mirror.getId(s);return l},i=o=>{if(!o.parentNode||!Ia(o))return;const s=Xt(o.parentNode)?this.mirror.getId(_a(o)):this.mirror.getId(o.parentNode),l=r(o);if(s===-1||l===-1)return t.addNode(o);const u=Rt(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{va(d,this.mirror)&&this.iframeManager.addIframe(d),ya(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Fr(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(d,h)=>{this.iframeManager.attachIframe(d,h),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,h)=>{this.stylesheetManager.attachLinkElement(d,h)}});u&&n.push({parentId:s,nextId:l,node:u})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const o of Array.from(this.movedSet.values()))wa(this.removes,o,this.mirror)&&!this.movedSet.has(o.parentNode)||i(o);for(const o of Array.from(this.addedSet.values()))!ka(this.droppedSet,o)&&!wa(this.removes,o,this.mirror)||ka(this.movedSet,o)?i(o):this.droppedSet.add(o);let a=null;for(;t.length;){let o=null;if(a){const s=this.mirror.getId(a.value.parentNode),l=r(a.value);s!==-1&&l!==-1&&(o=a)}if(!o)for(let s=t.length-1;s>=0;s--){const l=t.get(s);if(l){const u=this.mirror.getId(l.value.parentNode);if(r(l.value)===-1)continue;if(u!==-1){o=l;break}else{const h=l.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const f=h.parentNode.host;if(this.mirror.getId(f)!==-1){o=l;break}}}}}if(!o){for(;t.head;)t.removeNode(t.head.value);break}a=o.previous,t.removeNode(o.value),i(o.value)}const c={texts:this.texts.map(o=>({id:this.mirror.getId(o.node),value:o.value})).filter(o=>this.mirror.has(o.id)),attributes:this.attributes.map(o=>({id:this.mirror.getId(o.node),attributes:o.attributes})).filter(o=>this.mirror.has(o.id)),removes:this.removes,adds:n};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(c))},this.processMutation=n=>{if(!Nr(n.target,this.mirror))switch(n.type){case"characterData":{const t=n.target.textContent;!le(n.target,this.blockClass,this.blockSelector,!1)&&t!==n.oldValue&&this.texts.push({value:da(n.target,this.maskTextClass,this.maskTextSelector)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:n.target});break}case"attributes":{const t=n.target;let r=n.target.getAttribute(n.attributeName);if(n.attributeName==="value"&&(r=Or({maskInputOptions:this.maskInputOptions,tagName:n.target.tagName,type:n.target.getAttribute("type"),value:r,maskInputFn:this.maskInputFn})),le(n.target,this.blockClass,this.blockSelector,!1)||r===n.oldValue)return;let i=this.attributes.find(a=>a.node===n.target);if(t.tagName==="IFRAME"&&n.attributeName==="src"&&!this.keepIframeSrcFn(r))if(!t.contentDocument)n.attributeName="rr_src";else return;if(i||(i={node:n.target,attributes:{}},this.attributes.push(i)),n.attributeName==="style"){const a=this.doc.createElement("span");n.oldValue&&a.setAttribute("style",n.oldValue),(i.attributes.style===void 0||i.attributes.style===null)&&(i.attributes.style={});const c=i.attributes.style;for(const o of Array.from(t.style)){const s=t.style.getPropertyValue(o),l=t.style.getPropertyPriority(o);(s!==a.style.getPropertyValue(o)||l!==a.style.getPropertyPriority(o))&&(l===""?c[o]=s:c[o]=[s,l])}for(const o of Array.from(a.style))t.style.getPropertyValue(o)===""&&(c[o]=!1)}else i.attributes[n.attributeName]=ua(this.doc,t.tagName,n.attributeName,r);break}case"childList":{if(le(n.target,this.blockClass,this.blockSelector,!0))return;n.addedNodes.forEach(t=>this.genAdds(t,n.target)),n.removedNodes.forEach(t=>{const r=this.mirror.getId(t),i=Xt(n.target)?this.mirror.getId(n.target.host):this.mirror.getId(n.target);le(n.target,this.blockClass,this.blockSelector,!1)||Nr(t,this.mirror)||!hu(t,this.mirror)||(this.addedSet.has(t)?(Zr(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(n.target)&&r===-1||ma(n.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Sa(r,i)]?Zr(this.movedSet,t):this.removes.push({parentId:i,id:r,isShadow:Xt(n.target)&&jt(n.target)?!0:void 0})),this.mapRemoves.push(t))});break}}},this.genAdds=(n,t)=>{if(!this.processedNodeManager.inOtherBuffer(n,this)){if(this.mirror.hasNode(n)){if(Nr(n,this.mirror))return;this.movedSet.add(n);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&r!==-1&&(this.movedMap[Sa(this.mirror.getId(n),r)]=!0)}else this.addedSet.add(n),this.droppedSet.delete(n);le(n,this.blockClass,this.blockSelector,!1)||(n.childNodes.forEach(r=>this.genAdds(r)),Fr(n)&&n.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,n)}))}}}init(n){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=n[t]})}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 Zr(e,n){e.delete(n),n.childNodes.forEach(t=>Zr(e,t))}function wa(e,n,t){return e.length===0?!1:Aa(e,n,t)}function Aa(e,n,t){const{parentNode:r}=n;if(!r)return!1;const i=t.getId(r);return e.some(a=>a.id===i)?!0:Aa(e,r,t)}function ka(e,n){return e.size===0?!1:Ea(e,n)}function Ea(e,n){const{parentNode:t}=n;return t?e.has(t)?!0:Ea(e,t):!1}class _u{constructor(){this.nodeMap=new WeakMap,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.periodicallyClear()})}inOtherBuffer(n,t){const r=this.nodeMap.get(n);return r&&Array.from(r).some(i=>i!==t)}add(n,t){this.nodeMap.set(n,(this.nodeMap.get(n)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}}const at=[],xa=new _u;function Qt(e){try{if("composedPath"in e){const n=e.composedPath();if(n.length)return n[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch{return e.target}}function Ra(e,n){var t,r;const i=new yu;at.push(i),i.init(e);let a=window.MutationObserver||window.__rrMutationObserver;const c=(r=(t=window?.Zone)===null||t===void 0?void 0:t.__symbol__)===null||r===void 0?void 0:r.call(t,"MutationObserver");c&&window[c]&&(a=window[c]);const o=new a(i.processMutations.bind(i));return o.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Iu({mousemoveCb:e,sampling:n,doc:t,mirror:r}){if(n.mousemove===!1)return()=>{};const i=typeof n.mousemove=="number"?n.mousemove:50,a=typeof n.mousemoveCallback=="number"?n.mousemoveCallback:500;let c=[],o;const s=Jt(d=>{const h=Date.now()-o;e(c.map(f=>(f.timeOffset-=h,f)),d),c=[],o=null},a),l=Jt(d=>{const h=Qt(d),{clientX:f,clientY:p}=ba(d)?d.changedTouches[0]:d;o||(o=Date.now()),c.push({x:f,y:p,id:r.getId(h),timeOffset:Date.now()-o}),s(typeof DragEvent<"u"&&d instanceof DragEvent?N.Drag:d instanceof MouseEvent?N.MouseMove:N.TouchMove)},i,{trailing:!1}),u=[ce("mousemove",l,t),ce("touchmove",l,t),ce("drag",l,t)];return()=>{u.forEach(d=>d())}}function Cu({mouseInteractionCb:e,doc:n,mirror:t,blockClass:r,blockSelector:i,sampling:a}){if(a.mouseInteraction===!1)return()=>{};const c=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,o=[],s=l=>u=>{const d=Qt(u);if(le(d,r,i,!0))return;const h=ba(u)?u.changedTouches[0]:u;if(!h)return;const f=t.getId(d),{clientX:p,clientY:_}=h;e({type:Dr[l],id:f,x:p,y:_})};return Object.keys(Dr).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&c[l]!==!1).forEach(l=>{const u=l.toLowerCase(),d=s(l);o.push(ce(u,d,n))}),()=>{o.forEach(l=>l())}}function La({scrollCb:e,doc:n,mirror:t,blockClass:r,blockSelector:i,sampling:a}){const c=Jt(o=>{const s=Qt(o);if(!s||le(s,r,i,!0))return;const l=t.getId(s);if(s===n&&n.defaultView){const u=ha(n.defaultView);e({id:l,x:u.left,y:u.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})},a.scroll||100);return ce("scroll",c,n)}function Su({viewportResizeCb:e}){let n=-1,t=-1;const r=Jt(()=>{const i=pa(),a=ga();(n!==i||t!==a)&&(e({width:Number(a),height:Number(i)}),n=i,t=a)},200);return ce("resize",r,window)}function Ta(e,n){const t=Object.assign({},e);return n||delete t.userTriggered,t}const wu=["INPUT","TEXTAREA","SELECT"],Oa=new WeakMap;function Au({inputCb:e,doc:n,mirror:t,blockClass:r,blockSelector:i,ignoreClass:a,maskInputOptions:c,maskInputFn:o,sampling:s,userTriggeredOnInput:l}){function u(v){let b=Qt(v);const y=v.isTrusted;if(b&&b.tagName==="OPTION"&&(b=b.parentElement),!b||!b.tagName||wu.indexOf(b.tagName)<0||le(b,r,i,!0))return;const m=b.type;if(b.classList.contains(a))return;let k=b.value,L=!1;m==="radio"||m==="checkbox"?L=b.checked:(c[b.tagName.toLowerCase()]||c[m])&&(k=Or({maskInputOptions:c,tagName:b.tagName,type:m,value:k,maskInputFn:o})),d(b,Ta({text:k,isChecked:L,userTriggered:y},l));const C=b.name;m==="radio"&&C&&L&&n.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach(A=>{A!==b&&d(A,Ta({text:A.value,isChecked:!L,userTriggered:!1},l))})}function d(v,b){const y=Oa.get(v);if(!y||y.text!==b.text||y.isChecked!==b.isChecked){Oa.set(v,b);const m=t.getId(v);e(Object.assign(Object.assign({},b),{id:m}))}}const f=(s.input==="last"?["change"]:["input","change"]).map(v=>ce(v,u,n)),p=n.defaultView;if(!p)return()=>{f.forEach(v=>v())};const _=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),g=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&f.push(...g.map(v=>Mn(v[0],v[1],{set(){u({target:this})}},!1,p))),()=>{f.forEach(v=>v())}}function Nn(e){const n=[];function t(r,i){if(Fn("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Fn("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Fn("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Fn("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const c=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(c)}else if(r.parentStyleSheet){const c=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(c)}return i}return t(e,n)}function Je(e,n,t){let r,i;return e?(e.ownerNode?r=n.getId(e.ownerNode):i=t.getId(e),{styleId:i,id:r}):{}}function ku({styleSheetRuleCb:e,mirror:n,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=function(u,d){const{id:h,styleId:f}=Je(this,n,t.styleMirror);return(h&&h!==-1||f&&f!==-1)&&e({id:h,styleId:f,adds:[{rule:u,index:d}]}),i.apply(this,[u,d])};const a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=function(u){const{id:d,styleId:h}=Je(this,n,t.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,removes:[{index:u}]}),a.apply(this,[u])};let c;r.CSSStyleSheet.prototype.replace&&(c=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=function(u){const{id:d,styleId:h}=Je(this,n,t.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,replace:u}),c.apply(this,[u])});let o;r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=function(u){const{id:d,styleId:h}=Je(this,n,t.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,replaceSync:u}),o.apply(this,[u])});const s={};Dn("CSSGroupingRule")?s.CSSGroupingRule=r.CSSGroupingRule:(Dn("CSSMediaRule")&&(s.CSSMediaRule=r.CSSMediaRule),Dn("CSSConditionRule")&&(s.CSSConditionRule=r.CSSConditionRule),Dn("CSSSupportsRule")&&(s.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(s).forEach(([u,d])=>{l[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=function(h,f){const{id:p,styleId:_}=Je(this.parentStyleSheet,n,t.styleMirror);return(p&&p!==-1||_&&_!==-1)&&e({id:p,styleId:_,adds:[{rule:h,index:[...Nn(this),f||0]}]}),l[u].insertRule.apply(this,[h,f])},d.prototype.deleteRule=function(h){const{id:f,styleId:p}=Je(this.parentStyleSheet,n,t.styleMirror);return(f&&f!==-1||p&&p!==-1)&&e({id:f,styleId:p,removes:[{index:[...Nn(this),h]}]}),l[u].deleteRule.apply(this,[h])}}),()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,c&&(r.CSSStyleSheet.prototype.replace=c),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(s).forEach(([u,d])=>{d.prototype.insertRule=l[u].insertRule,d.prototype.deleteRule=l[u].deleteRule})}}function Ma({mirror:e,stylesheetManager:n},t){var r,i,a;let c=null;t.nodeName==="#document"?c=e.getId(t):c=e.getId(t.host);const o=t.nodeName==="#document"?(r=t.defaultView)===null||r===void 0?void 0:r.Document:(a=(i=t.ownerDocument)===null||i===void 0?void 0:i.defaultView)===null||a===void 0?void 0:a.ShadowRoot,s=Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets");return c===null||c===-1||!o||!s?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){var l;return(l=s.get)===null||l===void 0?void 0:l.call(this)},set(l){var u;const d=(u=s.set)===null||u===void 0?void 0:u.call(this,l);if(c!==null&&c!==-1)try{n.adoptStyleSheets(l,c)}catch{}return d}}),()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})}function Eu({styleDeclarationCb:e,mirror:n,ignoreCSSAttributes:t,stylesheetManager:r},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=function(o,s,l){var u;if(t.has(o))return a.apply(this,[o,s,l]);const{id:d,styleId:h}=Je((u=this.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,n,r.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,set:{property:o,value:s,priority:l},index:Nn(this.parentRule)}),a.apply(this,[o,s,l])};const c=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=function(o){var s;if(t.has(o))return c.apply(this,[o]);const{id:l,styleId:u}=Je((s=this.parentRule)===null||s===void 0?void 0:s.parentStyleSheet,n,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:o},index:Nn(this.parentRule)}),c.apply(this,[o])},()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=c}}function xu({mediaInteractionCb:e,blockClass:n,blockSelector:t,mirror:r,sampling:i}){const a=o=>Jt(s=>{const l=Qt(s);if(!l||le(l,n,t,!0))return;const{currentTime:u,volume:d,muted:h,playbackRate:f}=l;e({type:o,id:r.getId(l),currentTime:u,volume:d,muted:h,playbackRate:f})},i.media||500),c=[ce("play",a(0)),ce("pause",a(1)),ce("seeked",a(2)),ce("volumechange",a(3)),ce("ratechange",a(4))];return()=>{c.forEach(o=>o())}}function Ru({fontCb:e,doc:n}){const t=n.defaultView;if(!t)return()=>{};const r=[],i=new WeakMap,a=t.FontFace;t.FontFace=function(s,l,u){const d=new a(s,l,u);return i.set(d,{family:s,buffer:typeof l!="string",descriptors:u,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),d};const c=Kt(n.fonts,"add",function(o){return function(s){return setTimeout(()=>{const l=i.get(s);l&&(e(l),i.delete(s))},0),o.apply(this,[s])}});return r.push(()=>{t.FontFace=a}),r.push(c),()=>{r.forEach(o=>o())}}function Lu(e){const{doc:n,mirror:t,blockClass:r,blockSelector:i,selectionCb:a}=e;let c=!0;const o=()=>{const s=n.getSelection();if(!s||c&&s?.isCollapsed)return;c=s.isCollapsed||!1;const l=[],u=s.rangeCount||0;for(let d=0;d<u;d++){const h=s.getRangeAt(d),{startContainer:f,startOffset:p,endContainer:_,endOffset:g}=h;le(f,r,i,!0)||le(_,r,i,!0)||l.push({start:t.getId(f),startOffset:p,end:t.getId(_),endOffset:g})}a({ranges:l})};return o(),ce("selectionchange",o)}function Tu(e,n){const{mutationCb:t,mousemoveCb:r,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:c,inputCb:o,mediaInteractionCb:s,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:d,fontCb:h,selectionCb:f}=e;e.mutationCb=(...p)=>{n.mutation&&n.mutation(...p),t(...p)},e.mousemoveCb=(...p)=>{n.mousemove&&n.mousemove(...p),r(...p)},e.mouseInteractionCb=(...p)=>{n.mouseInteraction&&n.mouseInteraction(...p),i(...p)},e.scrollCb=(...p)=>{n.scroll&&n.scroll(...p),a(...p)},e.viewportResizeCb=(...p)=>{n.viewportResize&&n.viewportResize(...p),c(...p)},e.inputCb=(...p)=>{n.input&&n.input(...p),o(...p)},e.mediaInteractionCb=(...p)=>{n.mediaInteaction&&n.mediaInteaction(...p),s(...p)},e.styleSheetRuleCb=(...p)=>{n.styleSheetRule&&n.styleSheetRule(...p),l(...p)},e.styleDeclarationCb=(...p)=>{n.styleDeclaration&&n.styleDeclaration(...p),u(...p)},e.canvasMutationCb=(...p)=>{n.canvasMutation&&n.canvasMutation(...p),d(...p)},e.fontCb=(...p)=>{n.font&&n.font(...p),h(...p)},e.selectionCb=(...p)=>{n.selection&&n.selection(...p),f(...p)}}function Ou(e,n={}){const t=e.doc.defaultView;if(!t)return()=>{};Tu(e,n);const r=Ra(e,e.doc),i=Iu(e),a=Cu(e),c=La(e),o=Su(e),s=Au(e),l=xu(e),u=ku(e,{win:t}),d=Ma(e,e.doc),h=Eu(e,{win:t}),f=e.collectFonts?Ru(e):()=>{},p=Lu(e),_=[];for(const g of e.plugins)_.push(g.observer(g.callback,t,g.options));return()=>{at.forEach(g=>g.reset()),r.disconnect(),i(),a(),c(),o(),s(),l(),u(),d(),h(),f(),p(),_.forEach(g=>g())}}function Fn(e){return typeof window[e]<"u"}function Dn(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Na{constructor(n){this.generateIdFn=n,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(n,t,r,i){const a=r||this.getIdToRemoteIdMap(n),c=i||this.getRemoteIdToIdMap(n);let o=a.get(t);return o||(o=this.generateIdFn(),a.set(t,o),c.set(o,t)),o}getIds(n,t){const r=this.getIdToRemoteIdMap(n),i=this.getRemoteIdToIdMap(n);return t.map(a=>this.getId(n,a,r,i))}getRemoteId(n,t,r){const i=r||this.getRemoteIdToIdMap(n);if(typeof t!="number")return t;const a=i.get(t);return a||-1}getRemoteIds(n,t){const r=this.getRemoteIdToIdMap(n);return t.map(i=>this.getRemoteId(n,i,r))}reset(n){if(!n){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(n),this.iframeRemoteIdToIdMap.delete(n)}getIdToRemoteIdMap(n){let t=this.iframeIdToRemoteIdMap.get(n);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(n,t)),t}getRemoteIdToIdMap(n){let t=this.iframeRemoteIdToIdMap.get(n);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(n,t)),t}}class Mu{constructor(n){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Na(ca),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=n.mutationCb,this.wrappedEmit=n.wrappedEmit,this.stylesheetManager=n.stylesheetManager,this.recordCrossOriginIframes=n.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Na(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=n.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(n){this.iframes.set(n,!0),n.contentWindow&&this.crossOriginIframeMap.set(n.contentWindow,n)}addLoadListener(n){this.loadListener=n}attachIframe(n,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(n),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,n),n.contentDocument&&n.contentDocument.adoptedStyleSheets&&n.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.contentDocument.adoptedStyleSheets,this.mirror.getId(n.contentDocument))}handleMessage(n){const t=n;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!n.source)return;const i=this.crossOriginIframeMap.get(n.source);if(!i)return;const a=this.transformCrossOriginEvent(i,t.data.event);a&&this.wrappedEmit(a,t.data.isCheckout)}transformCrossOriginEvent(n,t){var r;switch(t.type){case D.FullSnapshot:{this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(t.data.node,n);const i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:D.IncrementalSnapshot,data:{source:N.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case D.Meta:case D.Load:case D.DomContentLoaded:return!1;case D.Plugin:return t;case D.Custom:return this.replaceIds(t.data.payload,n,["id","parentId","previousId","nextId"]),t;case D.IncrementalSnapshot:switch(t.data.source){case N.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,n);const a=this.crossOriginIframeRootIdMap.get(n);a&&this.patchRootIdOnNode(i.node,a)}),t.data.removes.forEach(i=>{this.replaceIds(i,n,["parentId","id"])}),t.data.attributes.forEach(i=>{this.replaceIds(i,n,["id"])}),t.data.texts.forEach(i=>{this.replaceIds(i,n,["id"])}),t;case N.Drag:case N.TouchMove:case N.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,n,["id"])}),t;case N.ViewportResize:return!1;case N.MediaInteraction:case N.MouseInteraction:case N.Scroll:case N.CanvasMutation:case N.Input:return this.replaceIds(t.data,n,["id"]),t;case N.StyleSheetRule:case N.StyleDeclaration:return this.replaceIds(t.data,n,["id"]),this.replaceStyleIds(t.data,n,["styleId"]),t;case N.Font:return t;case N.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,n,["start","end"])}),t;case N.AdoptedStyleSheet:return this.replaceIds(t.data,n,["id"]),this.replaceStyleIds(t.data,n,["styleIds"]),(r=t.data.styles)===null||r===void 0||r.forEach(i=>{this.replaceStyleIds(i,n,["styleId"])}),t}}}replace(n,t,r,i){for(const a of i)!Array.isArray(t[a])&&typeof t[a]!="number"||(Array.isArray(t[a])?t[a]=n.getIds(r,t[a]):t[a]=n.getId(r,t[a]));return t}replaceIds(n,t,r){return this.replace(this.crossOriginIframeMirror,n,t,r)}replaceStyleIds(n,t,r){return this.replace(this.crossOriginIframeStyleMirror,n,t,r)}replaceIdOnNode(n,t){this.replaceIds(n,t,["id","rootId"]),"childNodes"in n&&n.childNodes.forEach(r=>{this.replaceIdOnNode(r,t)})}patchRootIdOnNode(n,t){n.type!==$.Document&&!n.rootId&&(n.rootId=t),"childNodes"in n&&n.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}}class Nu{constructor(n){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=n.mutationCb,this.scrollCb=n.scrollCb,this.bypassOptions=n.bypassOptions,this.mirror=n.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(n,t){if(!jt(n)||this.shadowDoms.has(n))return;this.shadowDoms.add(n);const r=Ra(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),n);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(La(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:n,mirror:this.mirror}))),setTimeout(()=>{n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n.host)),this.restoreHandlers.push(Ma({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},n))},0)}observeAttachShadow(n){!n.contentWindow||!n.contentDocument||this.patchAttachShadow(n.contentWindow.Element,n.contentDocument)}patchAttachShadow(n,t){const r=this;this.restoreHandlers.push(Kt(n.prototype,"attachShadow",function(i){return function(a){const c=i.call(this,a);return this.shadowRoot&&Ia(this)&&r.addShadowRoot(this.shadowRoot,t),c}}))}reset(){this.restoreHandlers.forEach(n=>{try{n()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}/*! *****************************************************************************
|
|
11
|
+
Copyright (c) Microsoft Corporation.
|
|
12
|
+
|
|
13
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
14
|
+
purpose with or without fee is hereby granted.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
17
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
18
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
19
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
20
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
21
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
23
|
+
***************************************************************************** */function Fu(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t}function Du(e,n,t,r){function i(a){return a instanceof t?a:new t(function(c){c(a)})}return new(t||(t=Promise))(function(a,c){function o(u){try{l(r.next(u))}catch(d){c(d)}}function s(u){try{l(r.throw(u))}catch(d){c(d)}}function l(u){u.done?a(u.value):i(u.value).then(o,s)}l((r=r.apply(e,n||[])).next())})}for(var Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zu=typeof Uint8Array>"u"?[]:new Uint8Array(256),Zn=0;Zn<Ot.length;Zn++)Zu[Ot.charCodeAt(Zn)]=Zn;var Bu=function(e){var n=new Uint8Array(e),t,r=n.length,i="";for(t=0;t<r;t+=3)i+=Ot[n[t]>>2],i+=Ot[(n[t]&3)<<4|n[t+1]>>4],i+=Ot[(n[t+1]&15)<<2|n[t+2]>>6],i+=Ot[n[t+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const Fa=new Map;function Uu(e,n){let t=Fa.get(e);return t||(t=new Map,Fa.set(e,t)),t.has(n)||t.set(n,[]),t.get(n)}const Da=(e,n,t)=>{if(!e||!(Ba(e,n)||typeof e=="object"))return;const r=e.constructor.name,i=Uu(t,r);let a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function Bn(e,n,t){if(e instanceof Array)return e.map(r=>Bn(r,n,t));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 r=e.constructor.name,i=Bu(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Bn(e.buffer,n,t),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Bn(e.data,n,t),e.width,e.height]};if(Ba(e,n)||typeof e=="object"){const r=e.constructor.name,i=Da(e,n,t);return{rr_type:r,index:i}}}}return e}const Za=(e,n,t)=>[...e].map(r=>Bn(r,n,t)),Ba=(e,n)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof n[i]=="function").find(i=>e instanceof n[i]);function zu(e,n,t,r){const i=[],a=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype);for(const c of a)try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")continue;const o=Kt(n.CanvasRenderingContext2D.prototype,c,function(s){return function(...l){return le(this.canvas,t,r,!0)||setTimeout(()=>{const u=Za([...l],n,this);e(this.canvas,{type:Tt["2D"],property:c,args:u})},0),s.apply(this,l)}});i.push(o)}catch{const s=Mn(n.CanvasRenderingContext2D.prototype,c,{set(l){e(this.canvas,{type:Tt["2D"],property:c,args:[l],setter:!0})}});i.push(s)}return()=>{i.forEach(c=>c())}}function Ua(e,n,t){const r=[];try{const i=Kt(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...o){return le(this,n,t,!0)||"__context"in this||(this.__context=c),a.apply(this,[c,...o])}});r.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(i=>i())}}function za(e,n,t,r,i,a,c){const o=[],s=Object.getOwnPropertyNames(e);for(const l of s)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;const u=Kt(e,l,function(d){return function(...h){const f=d.apply(this,h);if(Da(f,c,this),!le(this.canvas,r,i,!0)){const p=Za([...h],c,this),_={type:n,property:l,args:p};t(this.canvas,_)}return f}});o.push(u)}catch{const d=Mn(e,l,{set(h){t(this.canvas,{type:n,property:l,args:[h],setter:!0})}});o.push(d)}return o}function Wu(e,n,t,r,i){const a=[];return a.push(...za(n.WebGLRenderingContext.prototype,Tt.WebGL,e,t,r,i,n)),typeof n.WebGL2RenderingContext<"u"&&a.push(...za(n.WebGL2RenderingContext.prototype,Tt.WebGL2,e,t,r,i,n)),()=>{a.forEach(c=>c())}}var Wa=null;try{var Hu=typeof module<"u"&&typeof module.require=="function"&&module.require("worker_threads")||typeof __non_webpack_require__=="function"&&__non_webpack_require__("worker_threads")||typeof require=="function"&&require("worker_threads");Wa=Hu.Worker}catch{}function Pu(e,n){return Buffer.from(e,"base64").toString(n?"utf16":"utf8")}function Vu(e,n,t){var r=n===void 0?null:n,i=t===void 0?!1:t,a=Pu(e,i),c=a.indexOf(`
|
|
24
|
+
`,10)+1,o=a.substring(c)+(r?"//# sourceMappingURL="+r:"");return function(l){return new Wa(o,Object.assign({},l,{eval:!0}))}}function Gu(e,n){var t=atob(e);if(n){for(var r=new Uint8Array(t.length),i=0,a=t.length;i<a;++i)r[i]=t.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return t}function Xu(e,n,t){var r=n===void 0?null:n,i=t===void 0?!1:t,a=Gu(e,i),c=a.indexOf(`
|
|
25
|
+
`,10)+1,o=a.substring(c)+(r?"//# sourceMappingURL="+r:""),s=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(s)}function ju(e,n,t){var r;return function(a){return r=r||Xu(e,n,t),new Worker(r,a)}}var Yu=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";function Ju(){return Yu}function Ku(e,n,t){return Ju()?Vu(e,n,t):ju(e,n,t)}var Qu=Ku("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NDQogICAgTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1INCiAgICBPVEhFUiBUT1JUSU9VUyBBQ1RJT04sIEFSSVNJTkcgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgVVNFIE9SDQogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4NCiAgICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqLw0KDQogICAgZnVuY3Rpb24gX19hd2FpdGVyKHRoaXNBcmcsIF9hcmd1bWVudHMsIFAsIGdlbmVyYXRvcikgew0KICAgICAgICBmdW5jdGlvbiBhZG9wdCh2YWx1ZSkgeyByZXR1cm4gdmFsdWUgaW5zdGFuY2VvZiBQID8gdmFsdWUgOiBuZXcgUChmdW5jdGlvbiAocmVzb2x2ZSkgeyByZXNvbHZlKHZhbHVlKTsgfSk7IH0NCiAgICAgICAgcmV0dXJuIG5ldyAoUCB8fCAoUCA9IFByb21pc2UpKShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7DQogICAgICAgICAgICBmdW5jdGlvbiBmdWxmaWxsZWQodmFsdWUpIHsgdHJ5IHsgc3RlcChnZW5lcmF0b3IubmV4dCh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiByZWplY3RlZCh2YWx1ZSkgeyB0cnkgeyBzdGVwKGdlbmVyYXRvclsidGhyb3ciXSh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiBzdGVwKHJlc3VsdCkgeyByZXN1bHQuZG9uZSA/IHJlc29sdmUocmVzdWx0LnZhbHVlKSA6IGFkb3B0KHJlc3VsdC52YWx1ZSkudGhlbihmdWxmaWxsZWQsIHJlamVjdGVkKTsgfQ0KICAgICAgICAgICAgc3RlcCgoZ2VuZXJhdG9yID0gZ2VuZXJhdG9yLmFwcGx5KHRoaXNBcmcsIF9hcmd1bWVudHMgfHwgW10pKS5uZXh0KCkpOw0KICAgICAgICB9KTsNCiAgICB9CgogICAgLyoKICAgICAqIGJhc2U2NC1hcnJheWJ1ZmZlciAxLjAuMSA8aHR0cHM6Ly9naXRodWIuY29tL25pa2xhc3ZoL2Jhc2U2NC1hcnJheWJ1ZmZlcj4KICAgICAqIENvcHlyaWdodCAoYykgMjAyMSBOaWtsYXMgdm9uIEhlcnR6ZW4gPGh0dHBzOi8vaGVydHplbi5jb20+CiAgICAgKiBSZWxlYXNlZCB1bmRlciBNSVQgTGljZW5zZQogICAgICovCiAgICB2YXIgY2hhcnMgPSAnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyc7CiAgICAvLyBVc2UgYSBsb29rdXAgdGFibGUgdG8gZmluZCB0aGUgaW5kZXguCiAgICB2YXIgbG9va3VwID0gdHlwZW9mIFVpbnQ4QXJyYXkgPT09ICd1bmRlZmluZWQnID8gW10gOiBuZXcgVWludDhBcnJheSgyNTYpOwogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGFycy5sZW5ndGg7IGkrKykgewogICAgICAgIGxvb2t1cFtjaGFycy5jaGFyQ29kZUF0KGkpXSA9IGk7CiAgICB9CiAgICB2YXIgZW5jb2RlID0gZnVuY3Rpb24gKGFycmF5YnVmZmVyKSB7CiAgICAgICAgdmFyIGJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYXJyYXlidWZmZXIpLCBpLCBsZW4gPSBieXRlcy5sZW5ndGgsIGJhc2U2NCA9ICcnOwogICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkgKz0gMykgewogICAgICAgICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaV0gPj4gMl07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1soKGJ5dGVzW2ldICYgMykgPDwgNCkgfCAoYnl0ZXNbaSArIDFdID4+IDQpXTsKICAgICAgICAgICAgYmFzZTY0ICs9IGNoYXJzWygoYnl0ZXNbaSArIDFdICYgMTUpIDw8IDIpIHwgKGJ5dGVzW2kgKyAyXSA+PiA2KV07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1tieXRlc1tpICsgMl0gJiA2M107CiAgICAgICAgfQogICAgICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgJz0nOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgJz09JzsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGJhc2U2NDsKICAgIH07CgogICAgY29uc3QgbGFzdEJsb2JNYXAgPSBuZXcgTWFwKCk7DQogICAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gbmV3IE1hcCgpOw0KICAgIGZ1bmN0aW9uIGdldFRyYW5zcGFyZW50QmxvYkZvcih3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucykgew0KICAgICAgICByZXR1cm4gX19hd2FpdGVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICAgICAgY29uc3QgaWQgPSBgJHt3aWR0aH0tJHtoZWlnaHR9YDsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgaWYgKHRyYW5zcGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgY29uc3QgeyBpZCwgYml0bWFwLCB3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucyB9ID0gZS5kYXRhOw0KICAgICAgICAgICAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zKTsNCiAgICAgICAgICAgICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCcyZCcpOw0KICAgICAgICAgICAgICAgIGN0eC5kcmF3SW1hZ2UoYml0bWFwLCAwLCAwKTsNCiAgICAgICAgICAgICAgICBiaXRtYXAuY2xvc2UoKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IHR5cGUgPSBibG9iLnR5cGU7DQogICAgICAgICAgICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSB5aWVsZCBibG9iLmFycmF5QnVmZmVyKCk7DQogICAgICAgICAgICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsNCiAgICAgICAgICAgICAgICBpZiAoIWxhc3RCbG9iTWFwLmhhcyhpZCkgJiYgKHlpZWxkIHRyYW5zcGFyZW50QmFzZTY0KSA9PT0gYmFzZTY0KSB7DQogICAgICAgICAgICAgICAgICAgIGxhc3RCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo=",null,!1);class qu{constructor(n){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(s,l)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(s)||this.pendingCanvasMutations.set(s,[]),this.pendingCanvasMutations.get(s).push(l)};const{sampling:t="all",win:r,blockClass:i,blockSelector:a,recordCanvas:c,dataURLOptions:o}=n;this.mutationCb=n.mutationCb,this.mirror=n.mirror,c&&t==="all"&&this.initCanvasMutationObserver(r,i,a),c&&typeof t=="number"&&this.initCanvasFPSObserver(t,r,i,a,{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(n,t,r,i,a){const c=Ua(t,r,i),o=new Map,s=new Qu;s.onmessage=p=>{const{id:_}=p.data;if(o.set(_,!1),!("base64"in p.data))return;const{base64:g,type:v,width:b,height:y}=p.data;this.mutationCb({id:_,type:Tt["2D"],commands:[{property:"clearRect",args:[0,0,b,y]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:v}]},0,0]}]})};const l=1e3/n;let u=0,d;const h=()=>{const p=[];return t.document.querySelectorAll("canvas").forEach(_=>{le(_,r,i,!0)||p.push(_)}),p},f=p=>{if(u&&p-u<l){d=requestAnimationFrame(f);return}u=p,h().forEach(_=>Du(this,void 0,void 0,function*(){var g;const v=this.mirror.getId(_);if(o.get(v))return;if(o.set(v,!0),["webgl","webgl2"].includes(_.__context)){const y=_.getContext(_.__context);((g=y?.getContextAttributes())===null||g===void 0?void 0:g.preserveDrawingBuffer)===!1&&y?.clear(y.COLOR_BUFFER_BIT)}const b=yield createImageBitmap(_);s.postMessage({id:v,bitmap:b,width:_.width,height:_.height,dataURLOptions:a.dataURLOptions},[b])})),d=requestAnimationFrame(f)};d=requestAnimationFrame(f),this.resetObservers=()=>{c(),cancelAnimationFrame(d)}}initCanvasMutationObserver(n,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=Ua(n,t,r),a=zu(this.processMutation.bind(this),n,t,r),c=Wu(this.processMutation.bind(this),n,t,r,this.mirror);this.resetObservers=()=>{i(),a(),c()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const n=t=>{this.rafStamps.latestId=t,requestAnimationFrame(n)};requestAnimationFrame(n)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((n,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(n,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(n);if(!r||t===-1)return;const i=r.map(c=>Fu(c,["type"])),{type:a}=r[0];this.mutationCb({id:t,type:a,commands:i}),this.pendingCanvasMutations.delete(n)}}class $u{constructor(n){this.trackedLinkElements=new WeakSet,this.styleMirror=new gu,this.mutationCb=n.mutationCb,this.adoptedStyleSheetCb=n.adoptedStyleSheetCb}attachLinkElement(n,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(n)}trackLinkElement(n){this.trackedLinkElements.has(n)||(this.trackedLinkElements.add(n),this.trackStylesheetInLinkElement(n))}adoptStyleSheets(n,t){if(n.length===0)return;const r={id:t,styleIds:[]},i=[];for(const a of n){let c;if(this.styleMirror.has(a))c=this.styleMirror.getId(a);else{c=this.styleMirror.add(a);const o=Array.from(a.rules||CSSRule);i.push({styleId:c,rules:o.map((s,l)=>({rule:aa(s),index:l}))})}r.styleIds.push(c)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(n){}}function ee(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let J,Un,Br,zn=!1;const Re=Vl();function qt(e={}){const{emit:n,checkoutEveryNms:t,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:a=null,ignoreClass:c="rr-ignore",maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:l=!0,maskAllInputs:u,maskInputOptions:d,slimDOMOptions:h,maskInputFn:f,maskTextFn:p,hooks:_,packFn:g,sampling:v={},dataURLOptions:b={},mousemoveWait:y,recordCanvas:m=!1,recordCrossOriginIframes:k=!1,recordAfter:L=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:C=!1,collectFonts:A=!1,inlineImages:R=!1,plugins:S,keepIframeSrcFn:x=()=>!1,ignoreCSSAttributes:Q=new Set([])}=e,de=k?window.parent===window:!0;let G=!1;if(!de)try{window.parent.document,G=!1}catch{G=!0}if(de&&!n)throw new Error("emit function is required");y!==void 0&&v.mousemove===void 0&&(v.mousemove=y),Re.reset();const re=u===!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}:d!==void 0?d:{password:!0},Ae=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};pu();let je,Fe=0;const ke=T=>{for(const he of S||[])he.eventProcessor&&(T=he.eventProcessor(T));return g&&!G&&(T=g(T)),T};J=(T,he)=>{var U;if(!((U=at[0])===null||U===void 0)&&U.isFrozen()&&T.type!==D.FullSnapshot&&!(T.type===D.IncrementalSnapshot&&T.data.source===N.Mutation)&&at.forEach(te=>te.unfreeze()),de)n?.(ke(T),he);else if(G){const te={type:"rrweb",event:ke(T),origin:window.location.origin,isCheckout:he};window.parent.postMessage(te,"*")}if(T.type===D.FullSnapshot)je=T,Fe=0;else if(T.type===D.IncrementalSnapshot){if(T.data.source===N.Mutation&&T.data.isAttachIframe)return;Fe++;const te=r&&Fe>=r,Be=t&&T.timestamp-je.timestamp>t;(te||Be)&&Un(!0)}};const fe=T=>{J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.Mutation},T)}))},tt=T=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.Scroll},T)})),K=T=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.CanvasMutation},T)})),wn=T=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.AdoptedStyleSheet},T)})),De=new $u({mutationCb:fe,adoptedStyleSheetCb:wn}),Ze=new Mu({mirror:Re,mutationCb:fe,stylesheetManager:De,recordCrossOriginIframes:k,wrappedEmit:J});for(const T of S||[])T.getMirror&&T.getMirror({nodeMirror:Re,crossOriginIframeMirror:Ze.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ze.crossOriginIframeStyleMirror});Br=new qu({recordCanvas:m,mutationCb:K,win:window,blockClass:i,blockSelector:a,mirror:Re,sampling:v.canvas,dataURLOptions:b});const nt=new Nu({mutationCb:fe,scrollCb:tt,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:o,maskTextSelector:s,inlineStylesheet:l,maskInputOptions:re,dataURLOptions:b,maskTextFn:p,maskInputFn:f,recordCanvas:m,inlineImages:R,sampling:v,slimDOMOptions:Ae,iframeManager:Ze,stylesheetManager:De,canvasManager:Br,keepIframeSrcFn:x,processedNodeManager:xa},mirror:Re});Un=(T=!1)=>{J(ee({type:D.Meta,data:{href:window.location.href,width:ga(),height:pa()}}),T),De.reset(),nt.init(),at.forEach(U=>U.lock());const he=fu(document,{mirror:Re,blockClass:i,blockSelector:a,maskTextClass:o,maskTextSelector:s,inlineStylesheet:l,maskAllInputs:re,maskTextFn:p,slimDOM:Ae,dataURLOptions:b,recordCanvas:m,inlineImages:R,onSerialize:U=>{va(U,Re)&&Ze.addIframe(U),ya(U,Re)&&De.trackLinkElement(U),Fr(U)&&nt.addShadowRoot(U.shadowRoot,document)},onIframeLoad:(U,te)=>{Ze.attachIframe(U,te),nt.observeAttachShadow(U)},onStylesheetLoad:(U,te)=>{De.attachLinkElement(U,te)},keepIframeSrcFn:x});if(!he)return console.warn("Failed to snapshot the document");J(ee({type:D.FullSnapshot,data:{node:he,initialOffset:ha(window)}})),at.forEach(U=>U.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&De.adoptStyleSheets(document.adoptedStyleSheets,Re.getId(document))};try{const T=[],he=te=>{var Be;return Ou({mutationCb:fe,mousemoveCb:(z,Pt)=>J(ee({type:D.IncrementalSnapshot,data:{source:Pt,positions:z}})),mouseInteractionCb:z=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.MouseInteraction},z)})),scrollCb:tt,viewportResizeCb:z=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.ViewportResize},z)})),inputCb:z=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.Input},z)})),mediaInteractionCb:z=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.MediaInteraction},z)})),styleSheetRuleCb:z=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.StyleSheetRule},z)})),styleDeclarationCb:z=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.StyleDeclaration},z)})),canvasMutationCb:K,fontCb:z=>J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.Font},z)})),selectionCb:z=>{J(ee({type:D.IncrementalSnapshot,data:Object.assign({source:N.Selection},z)}))},blockClass:i,ignoreClass:c,maskTextClass:o,maskTextSelector:s,maskInputOptions:re,inlineStylesheet:l,sampling:v,recordCanvas:m,inlineImages:R,userTriggeredOnInput:C,collectFonts:A,doc:te,maskInputFn:f,maskTextFn:p,keepIframeSrcFn:x,blockSelector:a,slimDOMOptions:Ae,dataURLOptions:b,mirror:Re,iframeManager:Ze,stylesheetManager:De,shadowDomManager:nt,processedNodeManager:xa,canvasManager:Br,ignoreCSSAttributes:Q,plugins:((Be=S?.filter(z=>z.observer))===null||Be===void 0?void 0:Be.map(z=>({observer:z.observer,options:z.options,callback:Pt=>J(ee({type:D.Plugin,data:{plugin:z.name,payload:Pt}}))})))||[]},_)};Ze.addLoadListener(te=>{try{T.push(he(te.contentDocument))}catch(Be){console.warn(Be)}});const U=()=>{Un(),T.push(he(document)),zn=!0};return document.readyState==="interactive"||document.readyState==="complete"?U():(T.push(ce("DOMContentLoaded",()=>{J(ee({type:D.DomContentLoaded,data:{}})),L==="DOMContentLoaded"&&U()})),T.push(ce("load",()=>{J(ee({type:D.Load,data:{}})),L==="load"&&U()},window))),()=>{T.forEach(te=>te()),zn=!1}}catch(T){console.warn(T)}}qt.addCustomEvent=(e,n)=>{if(!zn)throw new Error("please add custom event after start recording");J(ee({type:D.Custom,data:{tag:e,payload:n}}))},qt.freezePage=()=>{at.forEach(e=>e.freeze())},qt.takeFullSnapshot=e=>{if(!zn)throw new Error("please take full snapshot after start recording");Un(e)},qt.mirror=Re;/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const ed=4,Ha=0,Pa=1,td=2;function Mt(e){let n=e.length;for(;--n>=0;)e[n]=0}const nd=0,Va=1,rd=2,id=3,ad=258,Ur=29,$t=256,en=$t+1+Ur,Nt=30,zr=19,Ga=2*en+1,ot=15,Wr=16,od=7,Hr=256,Xa=16,ja=17,Ya=18,Pr=new Uint8Array([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]),Wn=new Uint8Array([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]),sd=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ja=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cd=512,Ve=new Array((en+2)*2);Mt(Ve);const tn=new Array(Nt*2);Mt(tn);const nn=new Array(cd);Mt(nn);const rn=new Array(ad-id+1);Mt(rn);const Vr=new Array(Ur);Mt(Vr);const Hn=new Array(Nt);Mt(Hn);function Gr(e,n,t,r,i){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let Ka,Qa,qa;function Xr(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const $a=e=>e<256?nn[e]:nn[256+(e>>>7)],an=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},ge=(e,n,t)=>{e.bi_valid>Wr-t?(e.bi_buf|=n<<e.bi_valid&65535,an(e,e.bi_buf),e.bi_buf=n>>Wr-e.bi_valid,e.bi_valid+=t-Wr):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},Te=(e,n,t)=>{ge(e,t[n*2],t[n*2+1])},eo=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},ld=e=>{e.bi_valid===16?(an(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},ud=(e,n)=>{const t=n.dyn_tree,r=n.max_code,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,c=n.stat_desc.extra_bits,o=n.stat_desc.extra_base,s=n.stat_desc.max_length;let l,u,d,h,f,p,_=0;for(h=0;h<=ot;h++)e.bl_count[h]=0;for(t[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Ga;l++)u=e.heap[l],h=t[t[u*2+1]*2+1]+1,h>s&&(h=s,_++),t[u*2+1]=h,!(u>r)&&(e.bl_count[h]++,f=0,u>=o&&(f=c[u-o]),p=t[u*2],e.opt_len+=p*(h+f),a&&(e.static_len+=p*(i[u*2+1]+f)));if(_!==0){do{for(h=s-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[s]--,_-=2}while(_>0);for(h=s;h!==0;h--)for(u=e.bl_count[h];u!==0;)d=e.heap[--l],!(d>r)&&(t[d*2+1]!==h&&(e.opt_len+=(h-t[d*2+1])*t[d*2],t[d*2+1]=h),u--)}},to=(e,n,t)=>{const r=new Array(ot+1);let i=0,a,c;for(a=1;a<=ot;a++)i=i+t[a-1]<<1,r[a]=i;for(c=0;c<=n;c++){let o=e[c*2+1];o!==0&&(e[c*2]=eo(r[o]++,o))}},dd=()=>{let e,n,t,r,i;const a=new Array(ot+1);for(t=0,r=0;r<Ur-1;r++)for(Vr[r]=t,e=0;e<1<<Pr[r];e++)rn[t++]=r;for(rn[t-1]=r,i=0,r=0;r<16;r++)for(Hn[r]=i,e=0;e<1<<Wn[r];e++)nn[i++]=r;for(i>>=7;r<Nt;r++)for(Hn[r]=i<<7,e=0;e<1<<Wn[r]-7;e++)nn[256+i++]=r;for(n=0;n<=ot;n++)a[n]=0;for(e=0;e<=143;)Ve[e*2+1]=8,e++,a[8]++;for(;e<=255;)Ve[e*2+1]=9,e++,a[9]++;for(;e<=279;)Ve[e*2+1]=7,e++,a[7]++;for(;e<=287;)Ve[e*2+1]=8,e++,a[8]++;for(to(Ve,en+1,a),e=0;e<Nt;e++)tn[e*2+1]=5,tn[e*2]=eo(e,5);Ka=new Gr(Ve,Pr,$t+1,en,ot),Qa=new Gr(tn,Wn,0,Nt,ot),qa=new Gr(new Array(0),sd,0,zr,od)},no=e=>{let n;for(n=0;n<en;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Nt;n++)e.dyn_dtree[n*2]=0;for(n=0;n<zr;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Hr*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},ro=e=>{e.bi_valid>8?an(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},io=(e,n,t,r)=>{const i=n*2,a=t*2;return e[i]<e[a]||e[i]===e[a]&&r[n]<=r[t]},jr=(e,n,t)=>{const r=e.heap[t];let i=t<<1;for(;i<=e.heap_len&&(i<e.heap_len&&io(n,e.heap[i+1],e.heap[i],e.depth)&&i++,!io(n,r,e.heap[i],e.depth));)e.heap[t]=e.heap[i],t=i,i<<=1;e.heap[t]=r},ao=(e,n,t)=>{let r,i,a=0,c,o;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+a++]&255,r+=(e.pending_buf[e.sym_buf+a++]&255)<<8,i=e.pending_buf[e.sym_buf+a++],r===0?Te(e,i,n):(c=rn[i],Te(e,c+$t+1,n),o=Pr[c],o!==0&&(i-=Vr[c],ge(e,i,o)),r--,c=$a(r),Te(e,c,t),o=Wn[c],o!==0&&(r-=Hn[c],ge(e,r,o)));while(a<e.sym_next);Te(e,Hr,n)},Yr=(e,n)=>{const t=n.dyn_tree,r=n.stat_desc.static_tree,i=n.stat_desc.has_stree,a=n.stat_desc.elems;let c,o,s=-1,l;for(e.heap_len=0,e.heap_max=Ga,c=0;c<a;c++)t[c*2]!==0?(e.heap[++e.heap_len]=s=c,e.depth[c]=0):t[c*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=s<2?++s:0,t[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(n.max_code=s,c=e.heap_len>>1;c>=1;c--)jr(e,t,c);l=a;do c=e.heap[1],e.heap[1]=e.heap[e.heap_len--],jr(e,t,1),o=e.heap[1],e.heap[--e.heap_max]=c,e.heap[--e.heap_max]=o,t[l*2]=t[c*2]+t[o*2],e.depth[l]=(e.depth[c]>=e.depth[o]?e.depth[c]:e.depth[o])+1,t[c*2+1]=t[o*2+1]=l,e.heap[1]=l++,jr(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],ud(e,n),to(t,s,e.bl_count)},oo=(e,n,t)=>{let r,i=-1,a,c=n[0*2+1],o=0,s=7,l=4;for(c===0&&(s=138,l=3),n[(t+1)*2+1]=65535,r=0;r<=t;r++)a=c,c=n[(r+1)*2+1],!(++o<s&&a===c)&&(o<l?e.bl_tree[a*2]+=o:a!==0?(a!==i&&e.bl_tree[a*2]++,e.bl_tree[Xa*2]++):o<=10?e.bl_tree[ja*2]++:e.bl_tree[Ya*2]++,o=0,i=a,c===0?(s=138,l=3):a===c?(s=6,l=3):(s=7,l=4))},so=(e,n,t)=>{let r,i=-1,a,c=n[0*2+1],o=0,s=7,l=4;for(c===0&&(s=138,l=3),r=0;r<=t;r++)if(a=c,c=n[(r+1)*2+1],!(++o<s&&a===c)){if(o<l)do Te(e,a,e.bl_tree);while(--o!==0);else a!==0?(a!==i&&(Te(e,a,e.bl_tree),o--),Te(e,Xa,e.bl_tree),ge(e,o-3,2)):o<=10?(Te(e,ja,e.bl_tree),ge(e,o-3,3)):(Te(e,Ya,e.bl_tree),ge(e,o-11,7));o=0,i=a,c===0?(s=138,l=3):a===c?(s=6,l=3):(s=7,l=4)}},fd=e=>{let n;for(oo(e,e.dyn_ltree,e.l_desc.max_code),oo(e,e.dyn_dtree,e.d_desc.max_code),Yr(e,e.bl_desc),n=zr-1;n>=3&&e.bl_tree[Ja[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},hd=(e,n,t,r)=>{let i;for(ge(e,n-257,5),ge(e,t-1,5),ge(e,r-4,4),i=0;i<r;i++)ge(e,e.bl_tree[Ja[i]*2+1],3);so(e,e.dyn_ltree,n-1),so(e,e.dyn_dtree,t-1)},pd=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return Ha;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Pa;for(t=32;t<$t;t++)if(e.dyn_ltree[t*2]!==0)return Pa;return Ha};let co=!1;const gd=e=>{co||(dd(),co=!0),e.l_desc=new Xr(e.dyn_ltree,Ka),e.d_desc=new Xr(e.dyn_dtree,Qa),e.bl_desc=new Xr(e.bl_tree,qa),e.bi_buf=0,e.bi_valid=0,no(e)},lo=(e,n,t,r)=>{ge(e,(nd<<1)+(r?1:0),3),ro(e),an(e,t),an(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},md=e=>{ge(e,Va<<1,3),Te(e,Hr,Ve),ld(e)},bd=(e,n,t,r)=>{let i,a,c=0;e.level>0?(e.strm.data_type===td&&(e.strm.data_type=pd(e)),Yr(e,e.l_desc),Yr(e,e.d_desc),c=fd(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=t+5,t+4<=i&&n!==-1?lo(e,n,t,r):e.strategy===ed||a===i?(ge(e,(Va<<1)+(r?1:0),3),ao(e,Ve,tn)):(ge(e,(rd<<1)+(r?1:0),3),hd(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),ao(e,e.dyn_ltree,e.dyn_dtree)),no(e),r&&ro(e)},vd=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(rn[t]+$t+1)*2]++,e.dyn_dtree[$a(n)*2]++),e.sym_next===e.sym_end);var yd=gd,_d=lo,Id=bd,Cd=vd,Sd=md,wd={_tr_init:yd,_tr_stored_block:_d,_tr_flush_block:Id,_tr_tally:Cd,_tr_align:Sd},on=(e,n,t,r)=>{let i=e&65535|0,a=e>>>16&65535|0,c=0;for(;t!==0;){c=t>2e3?2e3:t,t-=c;do i=i+n[r++]|0,a=a+i|0;while(--c);i%=65521,a%=65521}return i|a<<16|0};const Ad=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},kd=new Uint32Array(Ad());var ne=(e,n,t,r)=>{const i=kd,a=r+t;e^=-1;for(let c=r;c<a;c++)e=e>>>8^i[(e^n[c])&255];return e^-1},st={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"},ct={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_MEM_ERROR:-4,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};const{_tr_init:Ed,_tr_stored_block:Jr,_tr_flush_block:xd,_tr_tally:Ke,_tr_align:Rd}=wd,{Z_NO_FLUSH:Qe,Z_PARTIAL_FLUSH:Ld,Z_FULL_FLUSH:Td,Z_FINISH:Se,Z_BLOCK:uo,Z_OK:ae,Z_STREAM_END:fo,Z_STREAM_ERROR:Oe,Z_DATA_ERROR:Od,Z_BUF_ERROR:Kr,Z_DEFAULT_COMPRESSION:Md,Z_FILTERED:Nd,Z_HUFFMAN_ONLY:Pn,Z_RLE:Fd,Z_FIXED:Dd,Z_DEFAULT_STRATEGY:Zd,Z_UNKNOWN:Bd,Z_DEFLATED:Vn}=ct,Ud=9,zd=15,Wd=8,Hd=29,Qr=256+1+Hd,Pd=30,Vd=19,Gd=2*Qr+1,Xd=15,M=3,qe=258,Me=qe+M+1,jd=32,Ft=42,qr=57,$r=69,ei=73,ti=91,ni=103,lt=113,sn=666,ue=1,Dt=2,ut=3,Zt=4,Yd=3,dt=(e,n)=>(e.msg=st[n],n),ho=e=>e*2-(e>4?9:0),$e=e=>{let n=e.length;for(;--n>=0;)e[n]=0},Jd=e=>{let n,t,r,i=e.w_size;n=e.hash_size,r=n;do t=e.head[--r],e.head[r]=t>=i?t-i:0;while(--n);n=i,r=n;do t=e.prev[--r],e.prev[r]=t>=i?t-i:0;while(--n)};let et=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask;const ye=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},_e=(e,n)=>{xd(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,ye(e.strm)},Z=(e,n)=>{e.pending_buf[e.pending++]=n},cn=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},ri=(e,n,t,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,n.set(e.input.subarray(e.next_in,e.next_in+i),t),e.state.wrap===1?e.adler=on(e.adler,n,i,t):e.state.wrap===2&&(e.adler=ne(e.adler,n,i,t)),e.next_in+=i,e.total_in+=i,i)},po=(e,n)=>{let t=e.max_chain_length,r=e.strstart,i,a,c=e.prev_length,o=e.nice_match;const s=e.strstart>e.w_size-Me?e.strstart-(e.w_size-Me):0,l=e.window,u=e.w_mask,d=e.prev,h=e.strstart+qe;let f=l[r+c-1],p=l[r+c];e.prev_length>=e.good_match&&(t>>=2),o>e.lookahead&&(o=e.lookahead);do if(i=n,!(l[i+c]!==p||l[i+c-1]!==f||l[i]!==l[r]||l[++i]!==l[r+1])){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<h);if(a=qe-(h-r),r=h-qe,a>c){if(e.match_start=n,c=a,a>=o)break;f=l[r+c-1],p=l[r+c]}}while((n=d[n&u])>s&&--t!==0);return c<=e.lookahead?c:e.lookahead},Bt=e=>{const n=e.w_size;let t,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-Me)&&(e.window.set(e.window.subarray(n,n+n-r),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),Jd(e),r+=n),e.strm.avail_in===0)break;if(t=ri(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=t,e.lookahead+e.insert>=M)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=et(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=et(e,e.ins_h,e.window[i+M-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<M)););}while(e.lookahead<Me&&e.strm.avail_in!==0)},go=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,c=0,o=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<t&&(r===0&&n!==Se||n===Qe||r!==i+e.strm.avail_in)))break;c=n===Se&&r===i+e.strm.avail_in?1:0,Jr(e,0,0,c),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,ye(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(ri(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(c===0);return o-=e.strm.avail_in,o&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),c?Zt:n!==Qe&&n!==Se&&e.strm.avail_in===0&&e.strstart===e.block_start?Dt:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(ri(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=t||(i||n===Se)&&n!==Qe&&e.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,c=n===Se&&e.strm.avail_in===0&&r===i?1:0,Jr(e,e.block_start,r,c),e.block_start+=r,ye(e.strm)),c?ut:ue)},ii=(e,n)=>{let t,r;for(;;){if(e.lookahead<Me){if(Bt(e),e.lookahead<Me&&n===Qe)return ue;if(e.lookahead===0)break}if(t=0,e.lookahead>=M&&(e.ins_h=et(e,e.ins_h,e.window[e.strstart+M-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-Me&&(e.match_length=po(e,t)),e.match_length>=M)if(r=Ke(e,e.strstart-e.match_start,e.match_length-M),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=M){e.match_length--;do e.strstart++,e.ins_h=et(e,e.ins_h,e.window[e.strstart+M-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=et(e,e.ins_h,e.window[e.strstart+1]);else r=Ke(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(_e(e,!1),e.strm.avail_out===0))return ue}return e.insert=e.strstart<M-1?e.strstart:M-1,n===Se?(_e(e,!0),e.strm.avail_out===0?ut:Zt):e.sym_next&&(_e(e,!1),e.strm.avail_out===0)?ue:Dt},Ut=(e,n)=>{let t,r,i;for(;;){if(e.lookahead<Me){if(Bt(e),e.lookahead<Me&&n===Qe)return ue;if(e.lookahead===0)break}if(t=0,e.lookahead>=M&&(e.ins_h=et(e,e.ins_h,e.window[e.strstart+M-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=M-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-Me&&(e.match_length=po(e,t),e.match_length<=5&&(e.strategy===Nd||e.match_length===M&&e.strstart-e.match_start>4096)&&(e.match_length=M-1)),e.prev_length>=M&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-M,r=Ke(e,e.strstart-1-e.prev_match,e.prev_length-M),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=et(e,e.ins_h,e.window[e.strstart+M-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=M-1,e.strstart++,r&&(_e(e,!1),e.strm.avail_out===0))return ue}else if(e.match_available){if(r=Ke(e,0,e.window[e.strstart-1]),r&&_e(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ue}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Ke(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<M-1?e.strstart:M-1,n===Se?(_e(e,!0),e.strm.avail_out===0?ut:Zt):e.sym_next&&(_e(e,!1),e.strm.avail_out===0)?ue:Dt},Kd=(e,n)=>{let t,r,i,a;const c=e.window;for(;;){if(e.lookahead<=qe){if(Bt(e),e.lookahead<=qe&&n===Qe)return ue;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=M&&e.strstart>0&&(i=e.strstart-1,r=c[i],r===c[++i]&&r===c[++i]&&r===c[++i])){a=e.strstart+qe;do;while(r===c[++i]&&r===c[++i]&&r===c[++i]&&r===c[++i]&&r===c[++i]&&r===c[++i]&&r===c[++i]&&r===c[++i]&&i<a);e.match_length=qe-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=M?(t=Ke(e,1,e.match_length-M),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=Ke(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(_e(e,!1),e.strm.avail_out===0))return ue}return e.insert=0,n===Se?(_e(e,!0),e.strm.avail_out===0?ut:Zt):e.sym_next&&(_e(e,!1),e.strm.avail_out===0)?ue:Dt},Qd=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(Bt(e),e.lookahead===0)){if(n===Qe)return ue;break}if(e.match_length=0,t=Ke(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(_e(e,!1),e.strm.avail_out===0))return ue}return e.insert=0,n===Se?(_e(e,!0),e.strm.avail_out===0?ut:Zt):e.sym_next&&(_e(e,!1),e.strm.avail_out===0)?ue:Dt};function Ne(e,n,t,r,i){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=r,this.func=i}const ln=[new Ne(0,0,0,0,go),new Ne(4,4,8,4,ii),new Ne(4,5,16,8,ii),new Ne(4,6,32,32,ii),new Ne(4,4,16,16,Ut),new Ne(8,16,32,32,Ut),new Ne(8,16,128,128,Ut),new Ne(8,32,128,256,Ut),new Ne(32,128,258,1024,Ut),new Ne(32,258,258,4096,Ut)],qd=e=>{e.window_size=2*e.w_size,$e(e.head),e.max_lazy_match=ln[e.level].max_lazy,e.good_match=ln[e.level].good_length,e.nice_match=ln[e.level].nice_length,e.max_chain_length=ln[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=M-1,e.match_available=0,e.ins_h=0};function $d(){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=Vn,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 Uint16Array(Gd*2),this.dyn_dtree=new Uint16Array((2*Pd+1)*2),this.bl_tree=new Uint16Array((2*Vd+1)*2),$e(this.dyn_ltree),$e(this.dyn_dtree),$e(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Xd+1),this.heap=new Uint16Array(2*Qr+1),$e(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Qr+1),$e(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const un=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==Ft&&n.status!==qr&&n.status!==$r&&n.status!==ei&&n.status!==ti&&n.status!==ni&&n.status!==lt&&n.status!==sn?1:0},mo=e=>{if(un(e))return dt(e,Oe);e.total_in=e.total_out=0,e.data_type=Bd;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?qr:n.wrap?Ft:lt,e.adler=n.wrap===2?0:1,n.last_flush=-2,Ed(n),ae},bo=e=>{const n=mo(e);return n===ae&&qd(e.state),n},ef=(e,n)=>un(e)||e.state.wrap!==2?Oe:(e.state.gzhead=n,ae),vo=(e,n,t,r,i,a)=>{if(!e)return Oe;let c=1;if(n===Md&&(n=6),r<0?(c=0,r=-r):r>15&&(c=2,r-=16),i<1||i>Ud||t!==Vn||r<8||r>15||n<0||n>9||a<0||a>Dd||r===8&&c!==1)return dt(e,Oe);r===8&&(r=9);const o=new $d;return e.state=o,o.strm=e,o.status=Ft,o.wrap=c,o.gzhead=null,o.w_bits=r,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+M-1)/M),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=n,o.strategy=a,o.method=t,bo(e)},tf=(e,n)=>vo(e,n,Vn,zd,Wd,Zd),nf=(e,n)=>{if(un(e)||n>uo||n<0)return e?dt(e,Oe):Oe;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===sn&&n!==Se)return dt(e,e.avail_out===0?Kr:Oe);const r=t.last_flush;if(t.last_flush=n,t.pending!==0){if(ye(e),e.avail_out===0)return t.last_flush=-1,ae}else if(e.avail_in===0&&ho(n)<=ho(r)&&n!==Se)return dt(e,Kr);if(t.status===sn&&e.avail_in!==0)return dt(e,Kr);if(t.status===Ft&&t.wrap===0&&(t.status=lt),t.status===Ft){let i=Vn+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=Pn||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,i|=a<<6,t.strstart!==0&&(i|=jd),i+=31-i%31,cn(t,i),t.strstart!==0&&(cn(t,e.adler>>>16),cn(t,e.adler&65535)),e.adler=1,t.status=lt,ye(e),t.pending!==0)return t.last_flush=-1,ae}if(t.status===qr){if(e.adler=0,Z(t,31),Z(t,139),Z(t,8),t.gzhead)Z(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),Z(t,t.gzhead.time&255),Z(t,t.gzhead.time>>8&255),Z(t,t.gzhead.time>>16&255),Z(t,t.gzhead.time>>24&255),Z(t,t.level===9?2:t.strategy>=Pn||t.level<2?4:0),Z(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(Z(t,t.gzhead.extra.length&255),Z(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=ne(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=$r;else if(Z(t,0),Z(t,0),Z(t,0),Z(t,0),Z(t,0),Z(t,t.level===9?2:t.strategy>=Pn||t.level<2?4:0),Z(t,Yd),t.status=lt,ye(e),t.pending!==0)return t.last_flush=-1,ae}if(t.status===$r){if(t.gzhead.extra){let i=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let o=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+o),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>i&&(e.adler=ne(e.adler,t.pending_buf,t.pending-i,i)),t.gzindex+=o,ye(e),t.pending!==0)return t.last_flush=-1,ae;i=0,a-=o}let c=new Uint8Array(t.gzhead.extra);t.pending_buf.set(c.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>i&&(e.adler=ne(e.adler,t.pending_buf,t.pending-i,i)),t.gzindex=0}t.status=ei}if(t.status===ei){if(t.gzhead.name){let i=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>i&&(e.adler=ne(e.adler,t.pending_buf,t.pending-i,i)),ye(e),t.pending!==0)return t.last_flush=-1,ae;i=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,Z(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>i&&(e.adler=ne(e.adler,t.pending_buf,t.pending-i,i)),t.gzindex=0}t.status=ti}if(t.status===ti){if(t.gzhead.comment){let i=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>i&&(e.adler=ne(e.adler,t.pending_buf,t.pending-i,i)),ye(e),t.pending!==0)return t.last_flush=-1,ae;i=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,Z(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>i&&(e.adler=ne(e.adler,t.pending_buf,t.pending-i,i))}t.status=ni}if(t.status===ni){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(ye(e),t.pending!==0))return t.last_flush=-1,ae;Z(t,e.adler&255),Z(t,e.adler>>8&255),e.adler=0}if(t.status=lt,ye(e),t.pending!==0)return t.last_flush=-1,ae}if(e.avail_in!==0||t.lookahead!==0||n!==Qe&&t.status!==sn){let i=t.level===0?go(t,n):t.strategy===Pn?Qd(t,n):t.strategy===Fd?Kd(t,n):ln[t.level].func(t,n);if((i===ut||i===Zt)&&(t.status=sn),i===ue||i===ut)return e.avail_out===0&&(t.last_flush=-1),ae;if(i===Dt&&(n===Ld?Rd(t):n!==uo&&(Jr(t,0,0,!1),n===Td&&($e(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),ye(e),e.avail_out===0))return t.last_flush=-1,ae}return n!==Se?ae:t.wrap<=0?fo:(t.wrap===2?(Z(t,e.adler&255),Z(t,e.adler>>8&255),Z(t,e.adler>>16&255),Z(t,e.adler>>24&255),Z(t,e.total_in&255),Z(t,e.total_in>>8&255),Z(t,e.total_in>>16&255),Z(t,e.total_in>>24&255)):(cn(t,e.adler>>>16),cn(t,e.adler&65535)),ye(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?ae:fo)},rf=e=>{if(un(e))return Oe;const n=e.state.status;return e.state=null,n===lt?dt(e,Od):ae},af=(e,n)=>{let t=n.length;if(un(e))return Oe;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==Ft||r.lookahead)return Oe;if(i===1&&(e.adler=on(e.adler,n,t,0)),r.wrap=0,t>=r.w_size){i===0&&($e(r.head),r.strstart=0,r.block_start=0,r.insert=0);let s=new Uint8Array(r.w_size);s.set(n.subarray(t-r.w_size,t),0),n=s,t=r.w_size}const a=e.avail_in,c=e.next_in,o=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,Bt(r);r.lookahead>=M;){let s=r.strstart,l=r.lookahead-(M-1);do r.ins_h=et(r,r.ins_h,r.window[s+M-1]),r.prev[s&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=s,s++;while(--l);r.strstart=s,r.lookahead=M-1,Bt(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=M-1,r.match_available=0,e.next_in=c,e.input=o,e.avail_in=a,r.wrap=i,ae};var of=tf,sf=vo,cf=bo,lf=mo,uf=ef,df=nf,ff=rf,hf=af,pf="pako deflate (from Nodeca project)",dn={deflateInit:of,deflateInit2:sf,deflateReset:cf,deflateResetKeep:lf,deflateSetHeader:uf,deflate:df,deflateEnd:ff,deflateSetDictionary:hf,deflateInfo:pf};const gf=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var mf=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const r in t)gf(t,r)&&(e[r]=t[r])}}return e},bf=e=>{let n=0;for(let r=0,i=e.length;r<i;r++)n+=e[r].length;const t=new Uint8Array(n);for(let r=0,i=0,a=e.length;r<a;r++){let c=e[r];t.set(c,i),i+=c.length}return t},Gn={assign:mf,flattenChunks:bf};let yo=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{yo=!1}const fn=new Uint8Array(256);for(let e=0;e<256;e++)fn[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;fn[254]=fn[254]=1;var vf=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,r,i,a,c=e.length,o=0;for(i=0;i<c;i++)t=e.charCodeAt(i),(t&64512)===55296&&i+1<c&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),o+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(o),a=0,i=0;a<o;i++)t=e.charCodeAt(i),(t&64512)===55296&&i+1<c&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const yf=(e,n)=>{if(n<65534&&e.subarray&&yo)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let r=0;r<n;r++)t+=String.fromCharCode(e[r]);return t};var _f=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let r,i;const a=new Array(t*2);for(i=0,r=0;r<t;){let c=e[r++];if(c<128){a[i++]=c;continue}let o=fn[c];if(o>4){a[i++]=65533,r+=o-1;continue}for(c&=o===2?31:o===3?15:7;o>1&&r<t;)c=c<<6|e[r++]&63,o--;if(o>1){a[i++]=65533;continue}c<65536?a[i++]=c:(c-=65536,a[i++]=55296|c>>10&1023,a[i++]=56320|c&1023)}return yf(a,i)},If=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+fn[e[t]]>n?t:n},hn={string2buf:vf,buf2string:_f,utf8border:If};function Cf(){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}var _o=Cf;const Io=Object.prototype.toString,{Z_NO_FLUSH:Sf,Z_SYNC_FLUSH:wf,Z_FULL_FLUSH:Af,Z_FINISH:kf,Z_OK:Xn,Z_STREAM_END:Ef,Z_DEFAULT_COMPRESSION:xf,Z_DEFAULT_STRATEGY:Rf,Z_DEFLATED:Lf}=ct;function pn(e){this.options=Gn.assign({level:xf,method:Lf,chunkSize:16384,windowBits:15,memLevel:8,strategy:Rf},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _o,this.strm.avail_out=0;let t=dn.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==Xn)throw new Error(st[t]);if(n.header&&dn.deflateSetHeader(this.strm,n.header),n.dictionary){let r;if(typeof n.dictionary=="string"?r=hn.string2buf(n.dictionary):Io.call(n.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(n.dictionary):r=n.dictionary,t=dn.deflateSetDictionary(this.strm,r),t!==Xn)throw new Error(st[t]);this._dict_set=!0}}pn.prototype.push=function(e,n){const t=this.strm,r=this.options.chunkSize;let i,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?kf:Sf,typeof e=="string"?t.input=hn.string2buf(e):Io.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),(a===wf||a===Af)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(i=dn.deflate(t,a),i===Ef)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),i=dn.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Xn;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},pn.prototype.onData=function(e){this.chunks.push(e)},pn.prototype.onEnd=function(e){e===Xn&&(this.result=Gn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ai(e,n){const t=new pn(n);if(t.push(e,!0),t.err)throw t.msg||st[t.err];return t.result}function Tf(e,n){return n=n||{},n.raw=!0,ai(e,n)}function Of(e,n){return n=n||{},n.gzip=!0,ai(e,n)}var Mf=pn,Nf=ai,Ff=Tf,Df=Of,Zf=ct,Bf={Deflate:Mf,deflate:Nf,deflateRaw:Ff,gzip:Df,constants:Zf};const jn=16209,Uf=16191;var zf=function(n,t){let r,i,a,c,o,s,l,u,d,h,f,p,_,g,v,b,y,m,k,L,C,A,R,S;const x=n.state;r=n.next_in,R=n.input,i=r+(n.avail_in-5),a=n.next_out,S=n.output,c=a-(t-n.avail_out),o=a+(n.avail_out-257),s=x.dmax,l=x.wsize,u=x.whave,d=x.wnext,h=x.window,f=x.hold,p=x.bits,_=x.lencode,g=x.distcode,v=(1<<x.lenbits)-1,b=(1<<x.distbits)-1;e:do{p<15&&(f+=R[r++]<<p,p+=8,f+=R[r++]<<p,p+=8),y=_[f&v];t:for(;;){if(m=y>>>24,f>>>=m,p-=m,m=y>>>16&255,m===0)S[a++]=y&65535;else if(m&16){k=y&65535,m&=15,m&&(p<m&&(f+=R[r++]<<p,p+=8),k+=f&(1<<m)-1,f>>>=m,p-=m),p<15&&(f+=R[r++]<<p,p+=8,f+=R[r++]<<p,p+=8),y=g[f&b];n:for(;;){if(m=y>>>24,f>>>=m,p-=m,m=y>>>16&255,m&16){if(L=y&65535,m&=15,p<m&&(f+=R[r++]<<p,p+=8,p<m&&(f+=R[r++]<<p,p+=8)),L+=f&(1<<m)-1,L>s){n.msg="invalid distance too far back",x.mode=jn;break e}if(f>>>=m,p-=m,m=a-c,L>m){if(m=L-m,m>u&&x.sane){n.msg="invalid distance too far back",x.mode=jn;break e}if(C=0,A=h,d===0){if(C+=l-m,m<k){k-=m;do S[a++]=h[C++];while(--m);C=a-L,A=S}}else if(d<m){if(C+=l+d-m,m-=d,m<k){k-=m;do S[a++]=h[C++];while(--m);if(C=0,d<k){m=d,k-=m;do S[a++]=h[C++];while(--m);C=a-L,A=S}}}else if(C+=d-m,m<k){k-=m;do S[a++]=h[C++];while(--m);C=a-L,A=S}for(;k>2;)S[a++]=A[C++],S[a++]=A[C++],S[a++]=A[C++],k-=3;k&&(S[a++]=A[C++],k>1&&(S[a++]=A[C++]))}else{C=a-L;do S[a++]=S[C++],S[a++]=S[C++],S[a++]=S[C++],k-=3;while(k>2);k&&(S[a++]=S[C++],k>1&&(S[a++]=S[C++]))}}else if(m&64){n.msg="invalid distance code",x.mode=jn;break e}else{y=g[(y&65535)+(f&(1<<m)-1)];continue n}break}}else if(m&64)if(m&32){x.mode=Uf;break e}else{n.msg="invalid literal/length code",x.mode=jn;break e}else{y=_[(y&65535)+(f&(1<<m)-1)];continue t}break}}while(r<i&&a<o);k=p>>3,r-=k,p-=k<<3,f&=(1<<p)-1,n.next_in=r,n.next_out=a,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=a<o?257+(o-a):257-(a-o),x.hold=f,x.bits=p};const zt=15,Co=852,So=592,wo=0,oi=1,Ao=2,Wf=new Uint16Array([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]),Hf=new Uint8Array([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]),Pf=new Uint16Array([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]),Vf=new Uint8Array([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]);var gn=(e,n,t,r,i,a,c,o)=>{const s=o.bits;let l=0,u=0,d=0,h=0,f=0,p=0,_=0,g=0,v=0,b=0,y,m,k,L,C,A=null,R;const S=new Uint16Array(zt+1),x=new Uint16Array(zt+1);let Q=null,de,G,re;for(l=0;l<=zt;l++)S[l]=0;for(u=0;u<r;u++)S[n[t+u]]++;for(f=s,h=zt;h>=1&&S[h]===0;h--);if(f>h&&(f=h),h===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,o.bits=1,0;for(d=1;d<h&&S[d]===0;d++);for(f<d&&(f=d),g=1,l=1;l<=zt;l++)if(g<<=1,g-=S[l],g<0)return-1;if(g>0&&(e===wo||h!==1))return-1;for(x[1]=0,l=1;l<zt;l++)x[l+1]=x[l]+S[l];for(u=0;u<r;u++)n[t+u]!==0&&(c[x[n[t+u]]++]=u);if(e===wo?(A=Q=c,R=20):e===oi?(A=Wf,Q=Hf,R=257):(A=Pf,Q=Vf,R=0),b=0,u=0,l=d,C=a,p=f,_=0,k=-1,v=1<<f,L=v-1,e===oi&&v>Co||e===Ao&&v>So)return 1;for(;;){de=l-_,c[u]+1<R?(G=0,re=c[u]):c[u]>=R?(G=Q[c[u]-R],re=A[c[u]-R]):(G=32+64,re=0),y=1<<l-_,m=1<<p,d=m;do m-=y,i[C+(b>>_)+m]=de<<24|G<<16|re|0;while(m!==0);for(y=1<<l-1;b&y;)y>>=1;if(y!==0?(b&=y-1,b+=y):b=0,u++,--S[l]===0){if(l===h)break;l=n[t+c[u]]}if(l>f&&(b&L)!==k){for(_===0&&(_=f),C+=d,p=l-_,g=1<<p;p+_<h&&(g-=S[p+_],!(g<=0));)p++,g<<=1;if(v+=1<<p,e===oi&&v>Co||e===Ao&&v>So)return 1;k=b&L,i[k]=f<<24|p<<16|C-a|0}}return b!==0&&(i[C+b]=l-_<<24|64<<16|0),o.bits=f,0};const Gf=0,ko=1,Eo=2,{Z_FINISH:xo,Z_BLOCK:Xf,Z_TREES:Yn,Z_OK:ft,Z_STREAM_END:jf,Z_NEED_DICT:Yf,Z_STREAM_ERROR:we,Z_DATA_ERROR:Ro,Z_MEM_ERROR:Lo,Z_BUF_ERROR:Jf,Z_DEFLATED:To}=ct,Jn=16180,Oo=16181,Mo=16182,No=16183,Fo=16184,Do=16185,Zo=16186,Bo=16187,Uo=16188,zo=16189,Kn=16190,Ge=16191,si=16192,Wo=16193,ci=16194,Ho=16195,Po=16196,Vo=16197,Go=16198,Qn=16199,qn=16200,Xo=16201,jo=16202,Yo=16203,Jo=16204,Ko=16205,li=16206,Qo=16207,qo=16208,j=16209,$o=16210,es=16211,Kf=852,Qf=592,qf=15,ts=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function $f(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ht=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<Jn||n.mode>es?1:0},ns=e=>{if(ht(e))return we;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=Jn,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(Kf),n.distcode=n.distdyn=new Int32Array(Qf),n.sane=1,n.back=-1,ft},rs=e=>{if(ht(e))return we;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,ns(e)},is=(e,n)=>{let t;if(ht(e))return we;const r=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?we:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=t,r.wbits=n,rs(e))},as=(e,n)=>{if(!e)return we;const t=new $f;e.state=t,t.strm=e,t.window=null,t.mode=Jn;const r=is(e,n);return r!==ft&&(e.state=null),r},eh=e=>as(e,qf);let os=!0,ui,di;const th=e=>{if(os){ui=new Int32Array(512),di=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(gn(ko,e.lens,0,288,ui,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;gn(Eo,e.lens,0,32,di,0,e.work,{bits:5}),os=!1}e.lencode=ui,e.lenbits=9,e.distcode=di,e.distbits=5},ss=(e,n,t,r)=>{let i;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(n.subarray(t-r,t-r+i),a.wnext),r-=i,r?(a.window.set(n.subarray(t-r,t),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},nh=(e,n)=>{let t,r,i,a,c,o,s,l,u,d,h,f,p,_,g=0,v,b,y,m,k,L,C,A;const R=new Uint8Array(4);let S,x;const Q=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ht(e)||!e.output||!e.input&&e.avail_in!==0)return we;t=e.state,t.mode===Ge&&(t.mode=si),c=e.next_out,i=e.output,s=e.avail_out,a=e.next_in,r=e.input,o=e.avail_in,l=t.hold,u=t.bits,d=o,h=s,A=ft;e:for(;;)switch(t.mode){case Jn:if(t.wrap===0){t.mode=si;break}for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.wrap&2&&l===35615){t.wbits===0&&(t.wbits=15),t.check=0,R[0]=l&255,R[1]=l>>>8&255,t.check=ne(t.check,R,2,0),l=0,u=0,t.mode=Oo;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",t.mode=j;break}if((l&15)!==To){e.msg="unknown compression method",t.mode=j;break}if(l>>>=4,u-=4,C=(l&15)+8,t.wbits===0&&(t.wbits=C),C>15||C>t.wbits){e.msg="invalid window size",t.mode=j;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=l&512?zo:Ge,l=0,u=0;break;case Oo:for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.flags=l,(t.flags&255)!==To){e.msg="unknown compression method",t.mode=j;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=j;break}t.head&&(t.head.text=l>>8&1),t.flags&512&&t.wrap&4&&(R[0]=l&255,R[1]=l>>>8&255,t.check=ne(t.check,R,2,0)),l=0,u=0,t.mode=Mo;case Mo:for(;u<32;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.head&&(t.head.time=l),t.flags&512&&t.wrap&4&&(R[0]=l&255,R[1]=l>>>8&255,R[2]=l>>>16&255,R[3]=l>>>24&255,t.check=ne(t.check,R,4,0)),l=0,u=0,t.mode=No;case No:for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.head&&(t.head.xflags=l&255,t.head.os=l>>8),t.flags&512&&t.wrap&4&&(R[0]=l&255,R[1]=l>>>8&255,t.check=ne(t.check,R,2,0)),l=0,u=0,t.mode=Fo;case Fo:if(t.flags&1024){for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.length=l,t.head&&(t.head.extra_len=l),t.flags&512&&t.wrap&4&&(R[0]=l&255,R[1]=l>>>8&255,t.check=ne(t.check,R,2,0)),l=0,u=0}else t.head&&(t.head.extra=null);t.mode=Do;case Do:if(t.flags&1024&&(f=t.length,f>o&&(f=o),f&&(t.head&&(C=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(r.subarray(a,a+f),C)),t.flags&512&&t.wrap&4&&(t.check=ne(t.check,r,f,a)),o-=f,a+=f,t.length-=f),t.length))break e;t.length=0,t.mode=Zo;case Zo:if(t.flags&2048){if(o===0)break e;f=0;do C=r[a+f++],t.head&&C&&t.length<65536&&(t.head.name+=String.fromCharCode(C));while(C&&f<o);if(t.flags&512&&t.wrap&4&&(t.check=ne(t.check,r,f,a)),o-=f,a+=f,C)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=Bo;case Bo:if(t.flags&4096){if(o===0)break e;f=0;do C=r[a+f++],t.head&&C&&t.length<65536&&(t.head.comment+=String.fromCharCode(C));while(C&&f<o);if(t.flags&512&&t.wrap&4&&(t.check=ne(t.check,r,f,a)),o-=f,a+=f,C)break e}else t.head&&(t.head.comment=null);t.mode=Uo;case Uo:if(t.flags&512){for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.wrap&4&&l!==(t.check&65535)){e.msg="header crc mismatch",t.mode=j;break}l=0,u=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=Ge;break;case zo:for(;u<32;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}e.adler=t.check=ts(l),l=0,u=0,t.mode=Kn;case Kn:if(t.havedict===0)return e.next_out=c,e.avail_out=s,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=u,Yf;e.adler=t.check=1,t.mode=Ge;case Ge:if(n===Xf||n===Yn)break e;case si:if(t.last){l>>>=u&7,u-=u&7,t.mode=li;break}for(;u<3;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}switch(t.last=l&1,l>>>=1,u-=1,l&3){case 0:t.mode=Wo;break;case 1:if(th(t),t.mode=Qn,n===Yn){l>>>=2,u-=2;break e}break;case 2:t.mode=Po;break;case 3:e.msg="invalid block type",t.mode=j}l>>>=2,u-=2;break;case Wo:for(l>>>=u&7,u-=u&7;u<32;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",t.mode=j;break}if(t.length=l&65535,l=0,u=0,t.mode=ci,n===Yn)break e;case ci:t.mode=Ho;case Ho:if(f=t.length,f){if(f>o&&(f=o),f>s&&(f=s),f===0)break e;i.set(r.subarray(a,a+f),c),o-=f,a+=f,s-=f,c+=f,t.length-=f;break}t.mode=Ge;break;case Po:for(;u<14;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.nlen=(l&31)+257,l>>>=5,u-=5,t.ndist=(l&31)+1,l>>>=5,u-=5,t.ncode=(l&15)+4,l>>>=4,u-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=j;break}t.have=0,t.mode=Vo;case Vo:for(;t.have<t.ncode;){for(;u<3;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.lens[Q[t.have++]]=l&7,l>>>=3,u-=3}for(;t.have<19;)t.lens[Q[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,S={bits:t.lenbits},A=gn(Gf,t.lens,0,19,t.lencode,0,t.work,S),t.lenbits=S.bits,A){e.msg="invalid code lengths set",t.mode=j;break}t.have=0,t.mode=Go;case Go:for(;t.have<t.nlen+t.ndist;){for(;g=t.lencode[l&(1<<t.lenbits)-1],v=g>>>24,b=g>>>16&255,y=g&65535,!(v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(y<16)l>>>=v,u-=v,t.lens[t.have++]=y;else{if(y===16){for(x=v+2;u<x;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(l>>>=v,u-=v,t.have===0){e.msg="invalid bit length repeat",t.mode=j;break}C=t.lens[t.have-1],f=3+(l&3),l>>>=2,u-=2}else if(y===17){for(x=v+3;u<x;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}l>>>=v,u-=v,C=0,f=3+(l&7),l>>>=3,u-=3}else{for(x=v+7;u<x;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}l>>>=v,u-=v,C=0,f=11+(l&127),l>>>=7,u-=7}if(t.have+f>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=j;break}for(;f--;)t.lens[t.have++]=C}}if(t.mode===j)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=j;break}if(t.lenbits=9,S={bits:t.lenbits},A=gn(ko,t.lens,0,t.nlen,t.lencode,0,t.work,S),t.lenbits=S.bits,A){e.msg="invalid literal/lengths set",t.mode=j;break}if(t.distbits=6,t.distcode=t.distdyn,S={bits:t.distbits},A=gn(Eo,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,S),t.distbits=S.bits,A){e.msg="invalid distances set",t.mode=j;break}if(t.mode=Qn,n===Yn)break e;case Qn:t.mode=qn;case qn:if(o>=6&&s>=258){e.next_out=c,e.avail_out=s,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=u,zf(e,h),c=e.next_out,i=e.output,s=e.avail_out,a=e.next_in,r=e.input,o=e.avail_in,l=t.hold,u=t.bits,t.mode===Ge&&(t.back=-1);break}for(t.back=0;g=t.lencode[l&(1<<t.lenbits)-1],v=g>>>24,b=g>>>16&255,y=g&65535,!(v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(b&&!(b&240)){for(m=v,k=b,L=y;g=t.lencode[L+((l&(1<<m+k)-1)>>m)],v=g>>>24,b=g>>>16&255,y=g&65535,!(m+v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}l>>>=m,u-=m,t.back+=m}if(l>>>=v,u-=v,t.back+=v,t.length=y,b===0){t.mode=Ko;break}if(b&32){t.back=-1,t.mode=Ge;break}if(b&64){e.msg="invalid literal/length code",t.mode=j;break}t.extra=b&15,t.mode=Xo;case Xo:if(t.extra){for(x=t.extra;u<x;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.length+=l&(1<<t.extra)-1,l>>>=t.extra,u-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=jo;case jo:for(;g=t.distcode[l&(1<<t.distbits)-1],v=g>>>24,b=g>>>16&255,y=g&65535,!(v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(!(b&240)){for(m=v,k=b,L=y;g=t.distcode[L+((l&(1<<m+k)-1)>>m)],v=g>>>24,b=g>>>16&255,y=g&65535,!(m+v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}l>>>=m,u-=m,t.back+=m}if(l>>>=v,u-=v,t.back+=v,b&64){e.msg="invalid distance code",t.mode=j;break}t.offset=y,t.extra=b&15,t.mode=Yo;case Yo:if(t.extra){for(x=t.extra;u<x;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.offset+=l&(1<<t.extra)-1,l>>>=t.extra,u-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=j;break}t.mode=Jo;case Jo:if(s===0)break e;if(f=h-s,t.offset>f){if(f=t.offset-f,f>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=j;break}f>t.wnext?(f-=t.wnext,p=t.wsize-f):p=t.wnext-f,f>t.length&&(f=t.length),_=t.window}else _=i,p=c-t.offset,f=t.length;f>s&&(f=s),s-=f,t.length-=f;do i[c++]=_[p++];while(--f);t.length===0&&(t.mode=qn);break;case Ko:if(s===0)break e;i[c++]=t.length,s--,t.mode=qn;break;case li:if(t.wrap){for(;u<32;){if(o===0)break e;o--,l|=r[a++]<<u,u+=8}if(h-=s,e.total_out+=h,t.total+=h,t.wrap&4&&h&&(e.adler=t.check=t.flags?ne(t.check,i,h,c-h):on(t.check,i,h,c-h)),h=s,t.wrap&4&&(t.flags?l:ts(l))!==t.check){e.msg="incorrect data check",t.mode=j;break}l=0,u=0}t.mode=Qo;case Qo:if(t.wrap&&t.flags){for(;u<32;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.wrap&4&&l!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=j;break}l=0,u=0}t.mode=qo;case qo:A=jf;break e;case j:A=Ro;break e;case $o:return Lo;case es:default:return we}return e.next_out=c,e.avail_out=s,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=u,(t.wsize||h!==e.avail_out&&t.mode<j&&(t.mode<li||n!==xo))&&ss(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,t.total+=h,t.wrap&4&&h&&(e.adler=t.check=t.flags?ne(t.check,i,h,e.next_out-h):on(t.check,i,h,e.next_out-h)),e.data_type=t.bits+(t.last?64:0)+(t.mode===Ge?128:0)+(t.mode===Qn||t.mode===ci?256:0),(d===0&&h===0||n===xo)&&A===ft&&(A=Jf),A},rh=e=>{if(ht(e))return we;let n=e.state;return n.window&&(n.window=null),e.state=null,ft},ih=(e,n)=>{if(ht(e))return we;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,ft):we},ah=(e,n)=>{const t=n.length;let r,i,a;return ht(e)||(r=e.state,r.wrap!==0&&r.mode!==Kn)?we:r.mode===Kn&&(i=1,i=on(i,n,t,0),i!==r.check)?Ro:(a=ss(e,n,t,t),a?(r.mode=$o,Lo):(r.havedict=1,ft))};var oh=rs,sh=is,ch=ns,lh=eh,uh=as,dh=nh,fh=rh,hh=ih,ph=ah,gh="pako inflate (from Nodeca project)",Xe={inflateReset:oh,inflateReset2:sh,inflateResetKeep:ch,inflateInit:lh,inflateInit2:uh,inflate:dh,inflateEnd:fh,inflateGetHeader:hh,inflateSetDictionary:ph,inflateInfo:gh};function mh(){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}var bh=mh;const cs=Object.prototype.toString,{Z_NO_FLUSH:vh,Z_FINISH:yh,Z_OK:mn,Z_STREAM_END:fi,Z_NEED_DICT:hi,Z_STREAM_ERROR:_h,Z_DATA_ERROR:ls,Z_MEM_ERROR:Ih}=ct;function bn(e){this.options=Gn.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _o,this.strm.avail_out=0;let t=Xe.inflateInit2(this.strm,n.windowBits);if(t!==mn)throw new Error(st[t]);if(this.header=new bh,Xe.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=hn.string2buf(n.dictionary):cs.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=Xe.inflateSetDictionary(this.strm,n.dictionary),t!==mn)))throw new Error(st[t])}bn.prototype.push=function(e,n){const t=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let a,c,o;if(this.ended)return!1;for(n===~~n?c=n:c=n===!0?yh:vh,cs.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),a=Xe.inflate(t,c),a===hi&&i&&(a=Xe.inflateSetDictionary(t,i),a===mn?a=Xe.inflate(t,c):a===ls&&(a=hi));t.avail_in>0&&a===fi&&t.state.wrap>0&&e[t.next_in]!==0;)Xe.inflateReset(t),a=Xe.inflate(t,c);switch(a){case _h:case ls:case hi:case Ih:return this.onEnd(a),this.ended=!0,!1}if(o=t.avail_out,t.next_out&&(t.avail_out===0||a===fi))if(this.options.to==="string"){let s=hn.utf8border(t.output,t.next_out),l=t.next_out-s,u=hn.buf2string(t.output,s);t.next_out=l,t.avail_out=r-l,l&&t.output.set(t.output.subarray(s,s+l),0),this.onData(u)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===mn&&o===0)){if(a===fi)return a=Xe.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},bn.prototype.onData=function(e){this.chunks.push(e)},bn.prototype.onEnd=function(e){e===mn&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Gn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function pi(e,n){const t=new bn(n);if(t.push(e),t.err)throw t.msg||st[t.err];return t.result}function Ch(e,n){return n=n||{},n.raw=!0,pi(e,n)}var Sh=bn,wh=pi,Ah=Ch,kh=pi,Eh=ct,xh={Inflate:Sh,inflate:wh,inflateRaw:Ah,ungzip:kh,constants:Eh};const{Deflate:Rh,deflate:Lh,deflateRaw:Th,gzip:Oh}=Bf,{Inflate:Mh,inflate:Nh,inflateRaw:Fh,ungzip:Dh}=xh;var Zh=Rh,Bh=Lh,Uh=Th,zh=Oh,Wh=Mh,Hh=Nh,Ph=Fh,Vh=Dh,Gh=ct,us={Deflate:Zh,deflate:Bh,deflateRaw:Uh,gzip:zh,Inflate:Wh,inflate:Hh,inflateRaw:Ph,ungzip:Vh,constants:Gh};const ds="3.7.8",Xh=ds,Wt=typeof Buffer=="function",fs=typeof TextDecoder=="function"?new TextDecoder:void 0,hs=typeof TextEncoder=="function"?new TextEncoder:void 0,jh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",vn=Array.prototype.slice.call(jh),$n=(e=>{let n={};return e.forEach((t,r)=>n[t]=r),n})(vn),Yh=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,oe=String.fromCharCode.bind(String),ps=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),gs=e=>e.replace(/=/g,"").replace(/[+\/]/g,n=>n=="+"?"-":"_"),ms=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),bs=e=>{let n,t,r,i,a="";const c=e.length%3;for(let o=0;o<e.length;){if((t=e.charCodeAt(o++))>255||(r=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw new TypeError("invalid character found");n=t<<16|r<<8|i,a+=vn[n>>18&63]+vn[n>>12&63]+vn[n>>6&63]+vn[n&63]}return c?a.slice(0,c-3)+"===".substring(c):a},gi=typeof btoa=="function"?e=>btoa(e):Wt?e=>Buffer.from(e,"binary").toString("base64"):bs,mi=Wt?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,i=e.length;r<i;r+=4096)t.push(oe.apply(null,e.subarray(r,r+4096)));return gi(t.join(""))},er=(e,n=!1)=>n?gs(mi(e)):mi(e),Jh=e=>{if(e.length<2){var n=e.charCodeAt(0);return n<128?e:n<2048?oe(192|n>>>6)+oe(128|n&63):oe(224|n>>>12&15)+oe(128|n>>>6&63)+oe(128|n&63)}else{var n=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return oe(240|n>>>18&7)+oe(128|n>>>12&63)+oe(128|n>>>6&63)+oe(128|n&63)}},Kh=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,vs=e=>e.replace(Kh,Jh),ys=Wt?e=>Buffer.from(e,"utf8").toString("base64"):hs?e=>mi(hs.encode(e)):e=>gi(vs(e)),Ht=(e,n=!1)=>n?gs(ys(e)):ys(e),_s=e=>Ht(e,!0),Qh=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,qh=e=>{switch(e.length){case 4:var n=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),t=n-65536;return oe((t>>>10)+55296)+oe((t&1023)+56320);case 3:return oe((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return oe((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Is=e=>e.replace(Qh,qh),Cs=e=>{if(e=e.replace(/\s+/g,""),!Yh.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let n,t,r,i=[];for(let a=0;a<e.length;)n=$n[e.charAt(a++)]<<18|$n[e.charAt(a++)]<<12|(t=$n[e.charAt(a++)])<<6|(r=$n[e.charAt(a++)]),t===64?i.push(oe(n>>16&255)):r===64?i.push(oe(n>>16&255,n>>8&255)):i.push(oe(n>>16&255,n>>8&255,n&255));return i.join("")},bi=typeof atob=="function"?e=>atob(ms(e)):Wt?e=>Buffer.from(e,"base64").toString("binary"):Cs,Ss=Wt?e=>ps(Buffer.from(e,"base64")):e=>ps(bi(e).split("").map(n=>n.charCodeAt(0))),ws=e=>Ss(As(e)),$h=Wt?e=>Buffer.from(e,"base64").toString("utf8"):fs?e=>fs.decode(Ss(e)):e=>Is(bi(e)),As=e=>ms(e.replace(/[-_]/g,n=>n=="-"?"+":"/")),vi=e=>$h(As(e)),ep=e=>{if(typeof e!="string")return!1;const n=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(n)||!/[^\s0-9a-zA-Z\-_]/.test(n)},ks=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Es=function(){const e=(n,t)=>Object.defineProperty(String.prototype,n,ks(t));e("fromBase64",function(){return vi(this)}),e("toBase64",function(n){return Ht(this,n)}),e("toBase64URI",function(){return Ht(this,!0)}),e("toBase64URL",function(){return Ht(this,!0)}),e("toUint8Array",function(){return ws(this)})},xs=function(){const e=(n,t)=>Object.defineProperty(Uint8Array.prototype,n,ks(t));e("toBase64",function(n){return er(this,n)}),e("toBase64URI",function(){return er(this,!0)}),e("toBase64URL",function(){return er(this,!0)})},tr={version:ds,VERSION:Xh,atob:bi,atobPolyfill:Cs,btoa:gi,btoaPolyfill:bs,fromBase64:vi,toBase64:Ht,encode:Ht,encodeURI:_s,encodeURL:_s,utob:vs,btou:Is,decode:vi,isValid:ep,fromUint8Array:er,toUint8Array:ws,extendString:Es,extendUint8Array:xs,extendBuiltins:()=>{Es(),xs()}},tp=5e3,np=3;let pt;class Rs{eventList=[{scope:`${W()}-`,eventList:[]}];closeCallback;constructor(){this.init()}init(){this.closeCallback=qt({emit:(n,t)=>{const r=this.eventList[this.eventList.length-1];r.eventList.push(n),t&&(this.eventList.length>0&&(this.eventList[this.eventList.length-1].scope=r.scope+W()),this.eventList.length>np&&this.eventList.shift(),this.eventList.push({scope:`${W()}-`,eventList:[]}))},recordCanvas:!0,checkoutEveryNms:tp})}close(){this.closeCallback?.(),this.closeCallback=void 0}}function rp(){xc(I.options,(e,n)=>{e.recordScreen!==n.recordScreen&&(e.recordScreen?pt=new Rs:(pt?.close(),pt=void 0))}),pt=I.options.value.recordScreen?new Rs:void 0}function ip(){return pt?.eventList??[]}function ap(e){if(!e)return e;const n=typeof e!="string"&&typeof e!="number"?JSON.stringify(e):e,t=tr.encode(n),r=us.gzip(t),i=Array.from(r);let a="";return i.forEach(c=>{a+=String.fromCharCode(c)}),tr.btoa(a)}function op(e){const t=tr.atob(e).split("").map(function(u){return u.charCodeAt(0)}),r=new Uint8Array(t),i=us.ungzip(r);let a="";const c=8*1024;let o;for(o=0;o<i.length/c;o++)a+=String.fromCharCode.apply(null,i.slice(o*c,(o+1)*c));a+=String.fromCharCode.apply(null,i.slice(o*c));const s=tr.decode(a);let l="";try{l=JSON.parse(s)}catch(u){/Unexpected token o in JSON at position 0/.test(u)&&(l=s)}return l}function sp(){pt?.close(),pt=void 0}const cp=2e3,lp=2e4,nr=5,yi=["errMessage","eventId","requestUrl"];class up{cacheErrorA;cacheErrorB;throttleProxyAddCacheErrorA;throttleProxyAddCacheErrorB;constructor(){this.cacheErrorA=[],this.cacheErrorB=[],this.throttleProxyAddCacheErrorA=Mc(this.proxyAddCacheErrorA,cp),this.throttleProxyAddCacheErrorB=Fi(this.proxyAddCacheErrorB,lp)}proxyAddCacheErrorA(){let n=this.cacheErrorA.length;if(!n)return;const t=ur(this.cacheErrorA,...yi),r=t.filter(a=>a.length<nr),i=t.filter(a=>a.length>=nr);if(r.length&&Y.emit(r.flat(1/0)),i.length){const a=[];i.forEach(c=>{const o=c[0];o.batchError=!0,o.batchErrorLength=c.length,o.batchErrorLastHappenTime=c[c.length-1].triggerTime,a.push(o)}),this.cacheErrorB.push(...a),this.throttleProxyAddCacheErrorB()}for(;n--;)this.cacheErrorA.shift()}proxyAddCacheErrorB(){let n=this.cacheErrorB.length;if(!n)return;const t=ur(this.cacheErrorB,...yi);for(;n--;)this.cacheErrorB.shift();const r=[];t.forEach(i=>{const a=i[0];i.length>1&&(a.batchErrorLength=i.reduce((c,o)=>c+=o.batchErrorLength,0),a.batchErrorLastHappenTime=i[i.length-1].triggerTime),r.push(a)}),Y.emit(r)}sendAllCacheError(){const n=this.cacheErrorA.concat(this.cacheErrorB),t=ur(n,...yi),r=t.filter(a=>a.length<nr),i=t.filter(a=>a.length>=nr);if(r.length&&Y.emit(r.flat(1/0),!0),i.length){const a=[];i.forEach(c=>{const o=c[0];o.batchError=!0,o.batchErrorLength=c.length,o.batchErrorLastHappenTime=c[c.length-1].triggerTime,a.push(o)}),Y.emit(a,!0)}}pushCacheErrorA(n){this.cacheErrorA.push(n),this.throttleProxyAddCacheErrorA(),this.cacheErrorA.length>=50&&(this.proxyAddCacheErrorA(),this.proxyAddCacheErrorB())}}let _i;function dp(){_i=new up}function fp(e){return e.map(t=>{if(t===null)return"null";if(t===void 0)return"undefined";if(typeof t=="string")return t;if(typeof t=="number"||typeof t=="boolean")return String(t);if(typeof t=="function")return`[Function: ${t.name||"anonymous"}]`;if(t instanceof Error)return`${t.name}: ${t.message}${t.stack?`
|
|
26
|
+
`+t.stack:""}`;if(typeof t=="object")try{return JSON.stringify(t,null,2)}catch{return t.toString()}return String(t)}).join(" | ")}function Ls(e){const{stack:n="",message:t=""}=e,r={eventId:q.CODE,errMessage:t,errStack:n};if(n){const i=/^\s*at\s*([^(]+)\s*\((.+?):(\d+):(\d+)\)$/,a=/^\s*([^@]*)@(.+?):(\d+):(\d+)$/,c=n.replace(new RegExp(`^[\\w\\s:]*${t}
|
|
27
|
+
`),""),s=Zi(zc(c.split(`
|
|
28
|
+
`),l=>l),l=>{const u=l.match(i);if(u)return{triggerPageUrl:u[2],line:u[3],col:u[4]};const d=l.match(a);return d?{triggerPageUrl:d[2],line:d[3],col:d[4]}:{}})[0]||{};return{...r,...s}}return r}function rr(e){if(e instanceof Error){const{message:n,stack:t,lineNumber:r,fileName:i,columnNumber:a}=e;return i?{errMessage:n,errStack:t,eventId:q.CODE,line:r,col:a,triggerPageUrl:i}:Ls(e)}return e.message?Ls(e):typeof e=="string"?{eventId:q.REJECT,errMessage:e}:An(e)?{eventId:q.CONSOLEERROR,errMessage:fp(e)}:{}}function hp(e){return e.reason!==void 0}function Ts(e){if(hp(e))return{eventId:q.CODE,...rr(e.reason)};const{target:n}=e;if(n instanceof HTMLElement&&n.nodeType===1){const t={initiatorType:n.nodeName.toLowerCase(),eventId:q.RESOURCE,requestUrl:""};switch(n.nodeName.toLowerCase()){case"link":t.requestUrl=n.href;break;default:t.requestUrl=n.currentSrc||n.src}return t}if(e.error){const t=e.error;return t.fileName=t.filename||e.filename,t.columnNumber=t.colno||e.colno,t.lineNumber=t.lineno||e.lineno,{eventId:q.CODE,...rr(t)}}return{eventId:q.CODE,line:E.event.errorLine,col:E.event.errorCharacter,errMessage:E.event.errorMessage,triggerPageUrl:E.event.errorUrl}}function Ii(e){if(!I.options.value.ignoreErrors.length)return!1;let n=e.errMessage||e.message;return n?(n=String(n),I.options.value.ignoreErrors.some(t=>ar(t)?t.test(n)?(bt(`ignoreErrors\u62E6\u622A\u6210\u529F - \u622A\u6761\u4EF6:${t} \u9519\u8BEF\u4FE1\u606F:${n}`),!0):!1:n===t?(bt(`ignoreErrors\u62E6\u622A\u6210\u529F - \u622A\u6761\u4EF6:${t} \u9519\u8BEF\u4FE1\u606F:${n}`),!0):!1)):!1}function pp(){return JSON.parse(JSON.stringify(ip())).slice(-2).map(n=>n.eventList).flat()}function ir(e,n=!1){const t={...e,eventType:be.ERROR,recordscreen:I.options.value.recordScreen?ap(pp()):null,triggerPageUrl:me(),triggerTime:W()};I.options.value.scopeError?_i.pushCacheErrorA(t):Y.emit(t,n)}function gp(){I.options.value.error.core&&(I.options.value.scopeError&&(dp(),O.addEvent({type:w.BEFOREUNLOAD,callback:()=>{_i.sendAllCacheError()}})),O.addEvent({type:w.ERROR,callback:e=>{const n=Ts(e);Ii(n)||ir(n)}}),O.addEvent({type:w.UNHANDLEDREJECTION,callback:e=>{const n=Ts(e);Ii(n)||ir(n)}}),O.addEvent({type:w.CONSOLEERROR,callback:e=>{const n=rr(e);Ii(n)||ir({eventId:q.CODE,...n})}}))}function Ci(e={},n=!1){ir(e,n)}function mp(){O.removeEvents([w.ERROR,w.UNHANDLEDREJECTION,w.CONSOLEERROR])}function Si(e,n){return e.find(t=>t.hasAttribute&&t.hasAttribute(n))}function Os(e){if(e.length>0){const n=["em","b","strong","span","img","i","code"];return e.filter(({tagName:r})=>n.indexOf(r.toLowerCase())>=0).length===e.length}return!0}function Ms(e,n=""){if(!e)return n;const t=e.parentElement,{id:r}=e,i=e.tagName.toLowerCase(),a=n?`>${n}`:"";return!t||t===document.documentElement||t===document.body?`${i}${a}`:r?`#${r}${a}`:Ms(t,`${i}${a}`)}class bp{eventId="";eventType="";title="";triggerPageUrl="";x=-1;y=-1;params={};elementPath="";triggerTime=-1;constructor(n={}){Object.keys(n).forEach(t=>{_t(t,n)&&(this[t]=n[t]||null)})}}function vp(){O.addEvent({type:w.CLICK,callback:e=>{const n=new bp({eventType:be.CLICK}),t=e.composedPath()?e.composedPath():e.target?yp(e.target):[],r=t.find(s=>s.hasAttribute&&(s.hasAttribute("data-warden-container")||s.hasAttribute("data-warden-event-id")||s.hasAttribute("data-warden-title")));if(!r)return;const{scrollTop:i,scrollLeft:a}=document.documentElement,{top:c,left:o}=e.target.getBoundingClientRect();n.x=o+a,n.y=c+i,n.triggerTime=W(),n.triggerPageUrl=me(),n.title=_p(r),n.eventId=Sp(t),n.params=wp(t),n.elementPath=Ms(r).slice(-128),Y.emit(n)}})}function yp(e,n={includeSelf:!0,order:"asc"}){if(!e)return[];const{includeSelf:t,order:r}=n;let i=t?e:e.parentElement,a=[];for(;i;)a=r==="asc"?a.concat(i):[i].concat(a),i=i.parentElement;return a}function _p(e){const n=Ns(e);if(n)return n;let t=e.parentElement;for(;t&&t!==document.body&&!t.hasAttribute("data-warden-container");)t=t.parentElement;const r=Ns(t);if(r)return r;const{tagName:i}=e;return!e.hasChildNodes()||i.toLowerCase()==="svg"?Ip(e):Cp(e)}function Ns(e){return e?e.hasAttribute("data-warden-title")?e.getAttribute("data-warden-title"):e.title:""}function Ip(e){const{tagName:n,textContent:t}=e;if(n==="IMG")return e.getAttribute("alt")||null;if(n==="svg"){const r=[...Array(e.children)].find(i=>i.tagName==="use");if(r)return r.getAttribute("xlink:href")||null}return t}function Cp(e){const{tagName:n,textContent:t}=e;if(n==="A")return Os([...Array.from(e.children)])?t:e.getAttribute("href")||null;if(n==="BUTTON"){const i=e.getAttribute("name"),a=Os([...Array.from(e.children)]);return i||a?t:e.getAttribute("href")||null}const{length:r}=[...Array.from(e.children)].filter(()=>e.hasChildNodes());return r>0?null:t}function Sp(e=[]){const n=Si(e,"data-warden-event-id");if(n)return n.getAttribute("data-warden-event-id");const t=Si(e,"title");if(t)return t.getAttribute("title");const r=Si(e,"data-warden-container");if(r){if(r.getAttribute("data-warden-event-id"))return r.getAttribute("data-warden-event-id");if(r.getAttribute("title"))return r.getAttribute("title");const i=r.getAttribute("data-warden-container");if(typeof i=="string"&&i)return i}return e[0].tagName.toLowerCase()}function wp(e=[]){const n=/^data-warden-/;let t,r=-1;for(let s=0;s<e.length;s++){const l=e[s];if(t=(l&&l.attributes&&Array.from(l.attributes)||[]).find(d=>d.nodeName.match(n)?d.nodeName.match(n):d.nodeName.indexOf("data-warden-container")!==-1),t){r=s;break}}if(r<0)return{};const i=e[r],a=Array.from(i.attributes)||[],c={},o=["container","title","event-id"];return a.forEach(s=>{if(s.nodeName.indexOf("data-warden")<0)return;const l=s.nodeName.replace(n,"");o.includes(l)||(c[l]=s.nodeValue)}),c}function Ap(){I.options.value.event.core&&vp()}function kp(e={},n=!1){Y.emit({...e,eventType:be.CUSTOM,triggerTime:W(),triggerPageUrl:me()},n)}function Ep(){O.removeEvents([w.CLICK,w.LOAD])}const gt={performance:!!E.performance,getEntriesByType:!!(E.performance&&E.performance.getEntriesByType),PerformanceObserver:"PerformanceObserver"in E,MutationObserver:"MutationObserver"in E,PerformanceNavigationTiming:"PerformanceNavigationTiming"in E},xp={initiatorType:"",transferSize:0,encodedBodySize:0,decodedBodySize:0,duration:0,redirectStart:0,redirectEnd:0,startTime:0,fetchStart:0,domainLookupStart:0,domainLookupEnd:0,connectStart:0,connectEnd:0,requestStart:0,responseStart:0,responseEnd:0,workerStart:0};function Fs(e){const n=["img","script","link","audio","video","css"],t=e.getEntriesByType("resource"),r=[];return t.forEach(i=>{const{initiatorType:a=""}=i;if(n.indexOf(a.toLowerCase())<0)return;if(En.length){const o=En.findIndex(s=>s.src===i.name);if(o!==-1){En.splice(o,1);return}}const c={};Object.keys(xp).forEach(o=>{_t(o,i)&&(c[o]=i[o])}),r.push(Vt({...c,eventType:be.PERFORMANCE,eventId:q.RESOURCE,requestUrl:i.name,triggerTime:W(),triggerPageUrl:me()}))}),r.length&&Y.emit(r),r}let yn=null,_n=null;function Rp(){const e=["img","script","link"];yn=new MutationObserver(n=>{for(let t=0;t<n.length;t+=1){const r=W(),{addedNodes:i=[]}=n[t];i.forEach(a=>{const{nodeName:c}=a;e.indexOf(c.toLowerCase())!==-1&&(Ie(a,w.LOAD,function(){Y.emit(Vt({eventType:be.PERFORMANCE,eventId:q.RESOURCE,requestUrl:a.src||a.href,duration:W()-r,triggerTime:W(),triggerPageUrl:me()}))}),Ie(a,w.ERROR,function(){Y.emit(Vt({eventType:be.PERFORMANCE,eventId:q.RESOURCE,requestUrl:a.src||a.href,responseStatus:"error",duration:W()-r,triggerTime:W(),triggerPageUrl:me()}))}))})}}),yn.observe(E.document,{subtree:!0,childList:!0})}function Lp(){const e={},{performance:n}=E;let t=n.timing;if(e.fmp=0,gt.getEntriesByType){const i=n.getEntriesByType("paint");if(i.length&&(e.fmp=i[i.length-1].startTime),gt.PerformanceNavigationTiming){const a=n.getEntriesByType("navigation")[0];a&&(t=a)}}e.fmp&>.PerformanceNavigationTiming&&(e.fmp-=t.fetchStart),e.tti=t.domInteractive-t.fetchStart,e.ready=t.domContentLoadedEventEnd-t.fetchStart,e.loadon=t.loadEventStart-t.fetchStart,e.firstbyte=t.responseStart-t.domainLookupStart,e.dns=t.domainLookupEnd-t.domainLookupStart,e.appcache=t.domainLookupStart-t.fetchStart,e.tcp=t.connectEnd-t.connectStart,e.ttfb=t.responseStart-t.requestStart,e.trans=t.responseEnd-t.responseStart,e.dom=t.domInteractive-t.responseEnd,e.res=t.loadEventStart-t.domContentLoadedEventEnd,e.ssllink=t.connectEnd-t.secureConnectionStart,e.redirect=t.redirectEnd-t.redirectStart,e.unloadTime=t.unloadEventEnd-t.unloadEventStart;const r={...e,triggerPageUrl:me()};pe.firstScreen={...r},Y.emit(Vt({...r,eventType:be.PERFORMANCE,eventId:q.PAGE}))}function Ds(){gt.performance&&I.options.value.performance.firstResource&&Lp(),gt.performance&&I.options.value.performance.core&&(Fs(E.performance),gt.PerformanceObserver?(_n=new PerformanceObserver(Fs),_n.observe({entryTypes:["resource"]})):gt.MutationObserver&&Rp())}function Tp(){!I.options.value.performance.firstResource&&!I.options.value.performance.core||(document.readyState==="complete"?Ds():O.addEvent({type:w.LOAD,callback:()=>{Ds()}}))}function wi(e={},n=!1){const t={...e,triggerTime:W(),triggerPageUrl:me(),eventType:be.PERFORMANCE};Y.emit(Vt(t),n)}function Op(){yn&&(yn.disconnect(),yn=null),_n&&(_n.disconnect(),_n=null)}function Mp(){O.addEvent({type:w.FETCH,callback:async(e,n={},t,r,i={})=>{const{method:a="GET",body:c={}}=n,{url:o,status:s,statusText:l}=t,u=String(a).toLocaleLowerCase();Zs(o)||(s===200||s===304?I.options.value.performance.server&&wi({eventId:q.SERVER,requestUrl:o,triggerTime:r,duration:W()-r,responseStatus:s,requestMethod:u,requestType:"fetch",...i,params:a.toUpperCase()==="POST"?c:pr(o)}):I.options.value.error.server&&Ci({eventId:q.SERVER,triggerTime:r,duration:W()-r,errMessage:l,requestUrl:Fc(o),responseStatus:s,requestMethod:u,requestType:"fetch",...i,params:a.toUpperCase()==="POST"?c:pr(o)}))}})}class Np{requestUrl="";requestMethod="";requestParams={};triggerTime=-1;constructor(n={}){Object.keys(n).forEach(t=>{_t(t,n)&&(this[t]=n[t]||null)})}}function Fp(){const e=new Np;O.addEvent({type:w.XHROPEN,callback:(n,t)=>{e.requestMethod=String(n).toLocaleLowerCase(),e.requestUrl=t,e.requestParams=pr(t)}}),O.addEvent({type:w.XHRSEND,callback:(n,t)=>{Ie(n,w.READYSTATECHANGE,function(){const{readyState:r,status:i,responseURL:a,statusText:c}=n,o=n.responseType===""||n.responseType==="text"?n.responseText:"";if(r===4){const s=a||e.requestUrl;if(Zs(s))return;i===200||i===304?I.options.value.performance.server&&wi({eventId:q.SERVER,requestUrl:s,requestMethod:e.requestMethod,requestType:"xhr",responseStatus:i,duration:W()-e.triggerTime,params:e.requestMethod==="post"?t:e.requestParams}):I.options.value.error.server&&Ci({eventId:q.SERVER,errMessage:c||o,requestUrl:s,requestMethod:e.requestMethod,requestType:"xhr",responseStatus:i,params:e.requestMethod==="post"?t:e.requestParams})}}),e.triggerTime=W()}})}function Zs(e){return!I.options.value.ignoreRequest.length||!e?!1:I.options.value.ignoreRequest.some(n=>ar(n)?!!n.test(e):e===n)}function Dp(){!I.options.value.performance.server&&!I.options.value.error.server||(Fp(),Mp())}function Zp(){O.removeEvents([w.FETCH,w.XHROPEN,w.XHRSEND])}let mt=me();function Bp(){if(!I.options.value.pv.core)return;let e=!1,n=!1;Cn({referer:document.referrer}),O.addEvent({type:w.HISTORYPUSHSTATE,callback:()=>{n||(e=!1,Cn({action:"navigation"}))}}),O.addEvent({type:w.HISTORYREPLACESTATE,callback:()=>{n=!0,e=!1,Cn({action:"navigation"}),setTimeout(()=>{n=!1},100)}}),O.addEvent({type:w.HASHCHANGE,callback:()=>{n||(e||Cn(),e=!1)}}),O.addEvent({type:w.POPSTATE,callback:()=>{if(!n){if(E.location.hash!==""){const t=mt.indexOf("#")>0?mt.slice(0,mt.indexOf("#")):mt;if(E.location.href.slice(0,E.location.href.indexOf("#"))===t)return}e=!0,Cn()}}}),O.addEvent({type:w.BEFOREUNLOAD,callback:()=>{const t=W()-Ai;Object.values(In).length>0&&t>100&&Y.emit({...In,durationTime:t},!0)}})}let Ai=W(),In={};function Cn(e={}){const{referer:n=mt,action:t,params:r,title:i}=e;let a=t;a||(a=Gc[performance.navigation.type]||""),setTimeout(()=>{mt=me();const c={eventType:be.PV,eventId:kt.pageId,triggerPageUrl:me(),referer:n,params:r,title:i||document.title,action:a,triggerTime:W()};Y.emit(c);const o=W()-Ai;Ai=W(),Object.values(In).length>0&&o>100&&Y.emit({...In,durationTime:o}),In={...c,eventType:be.PVDURATION}},i?0:17)}function Up(e={},n=!1){Y.emit({referer:mt,title:document.title,...e,eventType:be.PV,eventId:kt.pageId,triggerPageUrl:me(),triggerTime:W()},n)}function zp(){O.removeEvents([w.HISTORYPUSHSTATE,w.HISTORYREPLACESTATE,w.HASHCHANGE,w.POPSTATE,w.BEFOREUNLOAD])}class Wp{ioMap={};targetMap=[];options={root:null,rootMargin:"0px",threshold:.5};initObserver(n){return new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const i=this.targetMap.find(a=>a.target===r.target);i&&(i.showTime=W())}else{const i=this.targetMap.find(a=>a.target===r.target);if(i){if(!i.showTime)return;i.showEndTime=W(),this.sendEvent(i)}}})},{...this.options,threshold:n})}sendEvent(n){Y.emit({eventType:be.INTERSECTION,triggerPageUrl:me(),...n})}observe(n){hr(n).forEach(r=>{const i=hr(r.target);Object.prototype.hasOwnProperty.call(this.ioMap,r.threshold)||(this.ioMap[r.threshold]=this.initObserver(r.threshold||.5)),i.forEach(a=>{this.targetMap.findIndex(o=>o.target===a)===-1&&(this.ioMap[r.threshold].observe(a),this.targetMap.push({target:a,threshold:r.threshold,observeTime:W(),params:r.params}))})})}unobserve(n){hr(n).forEach(r=>{const i=this.targetMap.findIndex(c=>c.target===r);if(i===-1)return;const a=this.ioMap[this.targetMap[i].threshold];a&&(this.targetMap.splice(i,1),a.unobserve(r))})}disconnect(){for(const n in this.ioMap)Object.prototype.hasOwnProperty.call(this.ioMap,n)&&this.ioMap[n].disconnect();this.targetMap=[],this.ioMap={}}}let Sn;function Hp(){pe.intersection=new Wp,Sn=pe.intersection}function Pp(){Sn?.disconnect()}function Bs(e){return op(e)}function Us(e){ie("beforePushEventList")&&I.options.value.beforePushEventList.push(e)}function zs(e){ie("beforeSendData")&&I.options.value.beforeSendData.push(e)}function Ws(e){ie("afterSendData")&&I.options.value.afterSendData.push(e)}function Hs(e){ie("setUserUuid")&&(I.options.value.userUuid=e)}function Ps(){if(ie("getUserUuid"))return I.options.value.userUuid}function Vs(){if(ie("getSDKUserUuid"))return I.options.value.sdkUserUuid}function Gs(){if(ie("getBaseInfo"))return{...pe.baseInfo.base,userUuid:I.options.value.userUuid}}function Xs(){if(ie("getFirstScreen"))return{...pe.firstScreen}}function js(e={},n=!1){if(ie("traceError"))return Ci(e,n)}function Ys(e={},n=!1){if(ie("tracePerformance"))return wi(e,n)}function Js(e={},n=!1){if(ie("traceCustomEvent"))return kp(e,n)}function Ks(e={},n=!1){if(ie("tracePageView"))return Up(e,n)}function Qs(){return ia().then(e=>e[0])}function qs(e){ie("intersectionObserver")&&Sn.observe(e)}function $s(e){ie("intersectionUnobserve")&&Sn.unobserve(e)}function ec(){ie("intersectionDisconnect")&&Sn.disconnect()}function tc(){if(!ie("sendData")&&!I.options.value.localization)return;const e=Lr.getItem(br);e&&(Y.sendLocal(e),Lr.removeItem(br))}function nc(e){!ie("localizationOverFlow")&&!I.options.value.localization||(I.options.value.localizationOverFlow=e)}function rc(){return gr(I.options.value)}var ic=Object.freeze({__proto__:null,afterSendData:Ws,beforePushEventList:Us,beforeSendData:zs,getBaseInfo:Gs,getFirstScreen:Xs,getIPs:Qs,getOptions:rc,getSDKUserUuid:Vs,getUserUuid:Ps,intersectionDisconnect:ec,intersectionObserver:qs,intersectionUnobserve:$s,sendLocal:tc,setLocalizationOverFlow:nc,setUserUuid:Hs,traceCustomEvent:Js,traceError:js,tracePageView:Ks,tracePerformance:Ys,unzipRecordscreen:Bs});function ac(e){E.__webTracingInit__||Oc(e)&&(jc(),Bl(),Dl(),zl(),gp(),Ap(),Dp(),Tp(),Bp(),Hp(),I.options.value.recordScreen&&rp(),E.__webTracingInit__=!0)}function oc(){Ep(),mp(),Zp(),Op(),Pp(),sp(),zp(),ul(),Y&&Y.destroy(),E.__webTracingInit__=!1}var Vp={init:ac,destroyTracing:oc,...ic,options:I.options};I.SENDID=q,I.afterSendData=Ws,I.beforePushEventList=Us,I.beforeSendData=zs,I.default=Vp,I.destroyTracing=oc,I.exportMethods=ic,I.getBaseInfo=Gs,I.getFirstScreen=Xs,I.getIPs=Qs,I.getOptions=rc,I.getSDKUserUuid=Vs,I.getUserUuid=Ps,I.init=ac,I.intersectionDisconnect=ec,I.intersectionObserver=qs,I.intersectionUnobserve=$s,I.logError=it,I.parseError=rr,I.sendLocal=tc,I.setLocalizationOverFlow=nc,I.setUserUuid=Hs,I.traceCustomEvent=Js,I.traceError=js,I.tracePageView=Ks,I.tracePerformance=Ys,I.unzipRecordscreen=Bs,Object.defineProperty(I,"__esModule",{value:!0})})(this.WebTracing=this.WebTracing||{});
|