@highlight-run/rrweb 2.0.4 → 2.0.5

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.
Files changed (46) hide show
  1. package/dist/plugins/console-record.js +12 -454
  2. package/dist/plugins/console-record.min.js.map +1 -1
  3. package/dist/plugins/console-replay.js +4 -164
  4. package/dist/plugins/console-replay.min.js.map +1 -1
  5. package/dist/plugins/sequential-id-record.js +1 -30
  6. package/dist/plugins/sequential-id-replay.js +1 -33
  7. package/dist/record/rrweb-record-pack.js +3 -664
  8. package/dist/record/rrweb-record-pack.min.js.map +1 -1
  9. package/dist/record/rrweb-record.js +4 -3202
  10. package/dist/record/rrweb-record.min.js +3 -3
  11. package/dist/record/rrweb-record.min.js.map +1 -1
  12. package/dist/replay/rrweb-replay-unpack.css +1 -0
  13. package/dist/replay/rrweb-replay-unpack.js +5 -4914
  14. package/dist/replay/rrweb-replay-unpack.min.css +2 -0
  15. package/dist/replay/rrweb-replay-unpack.min.css.map +1 -0
  16. package/dist/replay/rrweb-replay-unpack.min.js +1 -1
  17. package/dist/replay/rrweb-replay-unpack.min.js.map +1 -1
  18. package/dist/replay/rrweb-replay.css +1 -0
  19. package/dist/replay/rrweb-replay.js +5 -4506
  20. package/dist/replay/rrweb-replay.min.css +2 -0
  21. package/dist/replay/rrweb-replay.min.css.map +1 -0
  22. package/dist/replay/rrweb-replay.min.js +1 -1
  23. package/dist/replay/rrweb-replay.min.js.map +1 -1
  24. package/dist/rrweb-all.css +1 -0
  25. package/dist/rrweb-all.js +16 -8877
  26. package/dist/rrweb-all.min.css +2 -0
  27. package/dist/rrweb-all.min.css.map +1 -0
  28. package/dist/rrweb-all.min.js +1 -1
  29. package/dist/rrweb-all.min.js.map +1 -1
  30. package/dist/rrweb.css +1 -0
  31. package/dist/rrweb.js +6 -7546
  32. package/dist/rrweb.min.css +2 -0
  33. package/dist/rrweb.min.css.map +1 -0
  34. package/dist/rrweb.min.js +1 -1
  35. package/dist/rrweb.min.js.map +1 -1
  36. package/es/rrweb/all.css +1 -0
  37. package/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js +1 -1
  38. package/lib/replay/rrweb-replay-unpack.css +1 -0
  39. package/lib/replay/rrweb-replay-unpack.js +1 -1
  40. package/lib/replay/rrweb-replay.css +1 -0
  41. package/lib/replay/rrweb-replay.js +1 -1
  42. package/lib/rrweb-all.css +1 -0
  43. package/lib/rrweb-all.js +1 -1
  44. package/lib/rrweb.css +1 -0
  45. package/lib/rrweb.js +1 -1
  46. package/package.json +4 -4
@@ -0,0 +1,2 @@
1
+ .replayer-wrapper{position:relative}.replayer-mouse{position:absolute;width:20px;height:20px;transition:left .05s linear,top .05s linear;background-size:contain;background-position:50%;background-repeat:no-repeat;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjcgNSAxOCAxOCIgaGVpZ2h0PSIzMDAiIHdpZHRoPSIzMDAiPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik04LjIgMjAuOXYtMTZsMTEuNiAxMS42SDEzbC0uNC4xeiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0xNy4zIDIxLjZsLTMuNiAxLjVMOSAxMmwzLjctMS41eiIvPjxwYXRoIGQ9Ik0xMS4wMyAxNC4yOTNsMS44NDUtLjc3NCAzLjA5NiA3LjM3Ni0xLjg0NC43NzV6Ii8+PHBhdGggZD0iTTkuMiA3LjN2MTEuMmwzLTIuOS40LS4xaDQuOHoiLz48L3N2Zz4=");border-color:transparent}.replayer-mouse:after{background:transparent}.replayer-mouse.active:after{animation:click .2s ease-in-out 1}.replayer-mouse.touch-device{background-image:none;width:70px;height:70px;border-radius:100%;margin-left:-37px;margin-top:-37px;border:4px solid rgba(73,80,246,0);transition:left 0s linear,top 0s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device.touch-active{border-color:#4950f6;transition:left .25s linear,top .25s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device:after{opacity:0}.replayer-mouse.touch-device.active:after{animation:touch-click .2s ease-in-out 1}.replayer-mouse-tail{position:absolute;pointer-events:none}@keyframes click{0%{opacity:.3;width:20px;height:20px;background:transparent}75%{width:24px;height:24px;opacity:.8;background:#dc2626}to{background:transparent}}@keyframes touch-click{0%{opacity:0;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}
2
+ /*# sourceMappingURL=rrweb-replay-unpack.min.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["style.css"],"names":[],"mappings":"AAAA,kBACE,iBACF,CACA,gBACE,iBAAkB,CAClB,UAAW,CACX,WAAY,CACZ,2CAA+C,CAC/C,uBAAwB,CACxB,uBAAkC,CAClC,2BAA4B,CAC5B,0cAAuzB,CACvzB,wBACF,CAEA,sBACE,sBACF,CAEA,6BACE,iCACF,CACA,6BACE,qBAAsB,CACtB,UAAW,CACX,WAAY,CAGZ,kBAAmB,CACnB,iBAAkB,CAClB,gBAAiB,CACjB,kCAAkC,CAClC,oEACF,CACA,0CACE,oBAAkC,CAClC,wEACF,CACA,mCACE,SACF,CACA,0CACE,uCACF,CACA,qBACE,iBAAkB,CAClB,mBACF,CAEA,iBACE,GACE,UAAY,CACZ,UAAW,CACX,WAAY,CACZ,sBACF,CACA,IACE,UAAW,CACX,WAAY,CACZ,UAAY,CACZ,kBACF,CACA,GACE,sBACF,CACF,CAEA,uBACE,GACE,SAAU,CACV,UAAW,CACX,WACF,CACA,IACE,UAAY,CACZ,UAAW,CACX,WACF,CACF","file":"rrweb-replay-unpack.min.css","sourcesContent":[".replayer-wrapper {\n position: relative;\n}\n.replayer-mouse {\n position: absolute;\n width: 20px;\n height: 20px;\n transition: left 0.05s linear, top 0.05s linear;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iNyA1IDE4IDE4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyOCAyOCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgaGVpZ2h0PSIzMDBweCIgd2lkdGg9IjMwMHB4Ij4NCjxwb2x5Z29uIGZpbGw9IiNGRkZGRkYiIHBvaW50cz0iOC4yLDIwLjkgOC4yLDQuOSAxOS44LDE2LjUgMTMsMTYuNSAxMi42LDE2LjYgIi8+DQo8cG9seWdvbiBmaWxsPSIjRkZGRkZGIiBwb2ludHM9IjE3LjMsMjEuNiAxMy43LDIzLjEgOSwxMiAxMi43LDEwLjUgIi8+DQo8cmVjdCB4PSIxMi41IiB5PSIxMy42IiB0cmFuc2Zvcm09Im1hdHJpeCgwLjkyMjEgLTAuMzg3MSAwLjM4NzEgMC45MjIxIC01Ljc2MDUgNi41OTA5KSIgd2lkdGg9IjIiIGhlaWdodD0iOCIvPg0KPHBvbHlnb24gcG9pbnRzPSI5LjIsNy4zIDkuMiwxOC41IDEyLjIsMTUuNiAxMi42LDE1LjUgMTcuNCwxNS41ICIvPg0KPC9zdmc+DQo=');\n border-color: transparent; /* otherwise we transition from black when .touch-device class is added */\n}\n\n.replayer-mouse::after {\n background: transparent;\n}\n\n.replayer-mouse.active::after {\n animation: click 0.2s ease-in-out 1;\n}\n.replayer-mouse.touch-device {\n background-image: none; /* there's no passive cursor on touch-only screens */\n width: 70px;\n height: 70px;\n border-width: 4px;\n border-style: solid;\n border-radius: 100%;\n margin-left: -37px;\n margin-top: -37px;\n border-color: rgba(73, 80, 246, 0);\n transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device.touch-active {\n border-color: rgba(73, 80, 246, 1);\n transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device::after {\n opacity: 0; /* there's no passive cursor on touch-only screens */\n}\n.replayer-mouse.touch-device.active::after {\n animation: touch-click 0.2s ease-in-out 1;\n}\n.replayer-mouse-tail {\n position: absolute;\n pointer-events: none;\n}\n\n@keyframes click {\n 0% {\n opacity: 0.3;\n width: 20px;\n height: 20px;\n background: transparent;\n }\n 75% {\n width: 24px;\n height: 24px;\n opacity: 0.8;\n background: #dc2626;\n }\n 100% {\n background: transparent;\n }\n}\n\n@keyframes touch-click {\n 0% {\n opacity: 0;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  var rrwebReplay=function(fe){"use strict";var L;(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"})(L||(L={}));function $t(e){return e.nodeType===e.ELEMENT_NODE}var Be=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var r;if(!t)return-1;var n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var r=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(i){return r.removeNodeFromMap(i)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,r){var n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)},e.prototype.replace=function(t,r){this.idNodeMap.set(t,r)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Wt(){return new Be}var Ve=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function jt(e,t){t===void 0&&(t={});var r=1,n=1;function i(g){var p=g.match(/\n/g);p&&(r+=p.length);var b=g.lastIndexOf(`
2
- `);n=b===-1?n+g.length:g.length-b}function s(){var g={line:r,column:n};return function(p){return p.position=new a(g),y(),p}}var a=function(){function g(p){this.start=p,this.end={line:r,column:n},this.source=t.source}return g}();a.prototype.content=e;var u=[];function c(g){var p=new Error(t.source+":"+r+":"+n+": "+g);if(p.reason=g,p.filename=t.source,p.line=r,p.column=n,p.source=e,t.silent)u.push(p);else throw p}function o(){var g=m();return{type:"stylesheet",stylesheet:{source:t.source,rules:g,parsingErrors:u}}}function l(){return f(/^{\s*/)}function d(){return f(/^}/)}function m(){var g,p=[];for(y(),v(p);e.length&&e.charAt(0)!=="}"&&(g=_()||te());)g!==!1&&(p.push(g),v(p));return p}function f(g){var p=g.exec(e);if(p){var b=p[0];return i(b),e=e.slice(b.length),p}}function y(){f(/^\s*/)}function v(g){g===void 0&&(g=[]);for(var p;p=E();)p!==!1&&g.push(p),p=E();return g}function E(){var g=s();if(!(e.charAt(0)!=="/"||e.charAt(1)!=="*")){for(var p=2;e.charAt(p)!==""&&(e.charAt(p)!=="*"||e.charAt(p+1)!=="/");)++p;if(p+=2,e.charAt(p-1)==="")return c("End of comment missing");var b=e.slice(2,p-2);return n+=2,i(b),e=e.slice(p),n+=2,g({type:"comment",comment:b})}}function h(){var g=f(/^([^{]+)/);if(g)return z(g[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(p){return p.replace(/,/g,"\u200C")}).split(/\s*(?![^(]*\)),\s*/).map(function(p){return p.replace(/\u200C/g,",")})}function T(){var g=s(),p=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(p){var b=z(p[0]);if(!f(/^:\s*/))return c("property missing ':'");var C=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),P=g({type:"declaration",property:b.replace(Ve,""),value:C?z(C[0]).replace(Ve,""):""});return f(/^[;\s]*/),P}}function N(){var g=[];if(!l())return c("missing '{'");v(g);for(var p;p=T();)p!==!1&&(g.push(p),v(g)),p=T();return d()?g:c("missing '}'")}function R(){for(var g,p=[],b=s();g=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)p.push(g[1]),f(/^,\s*/);if(p.length)return b({type:"keyframe",values:p,declarations:N()})}function F(){var g=s(),p=f(/^@([-\w]+)?keyframes\s*/);if(p){var b=p[1];if(p=f(/^([-\w]+)\s*/),!p)return c("@keyframes missing name");var C=p[1];if(!l())return c("@keyframes missing '{'");for(var P,Z=v();P=R();)Z.push(P),Z=Z.concat(v());return d()?g({type:"keyframes",name:C,vendor:b,keyframes:Z}):c("@keyframes missing '}'")}}function O(){var g=s(),p=f(/^@supports *([^{]+)/);if(p){var b=z(p[1]);if(!l())return c("@supports missing '{'");var C=v().concat(m());return d()?g({type:"supports",supports:b,rules:C}):c("@supports missing '}'")}}function M(){var g=s(),p=f(/^@host\s*/);if(p){if(!l())return c("@host missing '{'");var b=v().concat(m());return d()?g({type:"host",rules:b}):c("@host missing '}'")}}function k(){var g=s(),p=f(/^@media *([^{]+)/);if(p){var b=z(p[1]);if(!l())return c("@media missing '{'");var C=v().concat(m());return d()?g({type:"media",media:b,rules:C}):c("@media missing '}'")}}function $(){var g=s(),p=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(p)return g({type:"custom-media",name:z(p[1]),media:z(p[2])})}function me(){var g=s(),p=f(/^@page */);if(p){var b=h()||[];if(!l())return c("@page missing '{'");for(var C=v(),P;P=T();)C.push(P),C=C.concat(v());return d()?g({type:"page",selectors:b,declarations:C}):c("@page missing '}'")}}function pe(){var g=s(),p=f(/^@([-\w]+)?document *([^{]+)/);if(p){var b=z(p[1]),C=z(p[2]);if(!l())return c("@document missing '{'");var P=v().concat(m());return d()?g({type:"document",document:C,vendor:b,rules:P}):c("@document missing '}'")}}function J(){var g=s(),p=f(/^@font-face\s*/);if(p){if(!l())return c("@font-face missing '{'");for(var b=v(),C;C=T();)b.push(C),b=b.concat(v());return d()?g({type:"font-face",declarations:b}):c("@font-face missing '}'")}}var H=B("import"),K=B("charset"),se=B("namespace");function B(g){var p=new RegExp("^@"+g+"\\s*([^;]+);");return function(){var b=s(),C=f(p);if(C){var P={type:g};return P[g]=C[1].trim(),b(P)}}}function _(){if(e[0]==="@")return F()||k()||$()||O()||H()||K()||se()||pe()||me()||M()||J()}function te(){var g=s(),p=h();return p?(v(),g({type:"rule",selectors:p,declarations:N()})):c("selector missing")}return we(o())}function z(e){return e?e.replace(/^\s+|\s+$/g,""):""}function we(e,t){for(var r=e&&typeof e.type=="string",n=r?e:t,i=0,s=Object.keys(e);i<s.length;i++){var a=s[i],u=e[a];Array.isArray(u)?u.forEach(function(c){we(c,n)}):u&&typeof u=="object"&&we(u,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var $e={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function Gt(e){var t=$e[e.tagName]?$e[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Ht(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var We=/([^\\]):hover/,Yt=new RegExp(We.source,"g");function je(e,t){var r;if(!(!((r=window.HIG_CONFIGURATION)===null||r===void 0)&&r.enableOnHoverClass))return e;var n=t?.stylesWithHoverClass.get(e);if(n)return n;var i=jt(e,{silent:!0});if(!i.stylesheet)return e;var s=[];if(i.stylesheet.rules.forEach(function(c){"selectors"in c&&(c.selectors||[]).forEach(function(o){We.test(o)&&s.push(o)})}),s.length===0)return e;var a=new RegExp(s.filter(function(c,o){return s.indexOf(c)===o}).sort(function(c,o){return o.length-c.length}).map(function(c){return Ht(c)}).join("|"),"g"),u=e.replace(a,function(c){var o=c.replace(Yt,"$1.\\:hover");return c+", "+o});return t?.stylesWithHoverClass.set(e,u),u}function Ge(){var e=new Map;return{stylesWithHoverClass:e}}function zt(e,t){var r=t.doc,n=t.hackCss,i=t.cache;switch(e.type){case L.Document:return r.implementation.createDocument(null,"",null);case L.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case L.Element:var s=Gt(e),a;e.isSVG?a=r.createElementNS("http://www.w3.org/2000/svg",s):a=r.createElement(s);var u=function(o){if(!e.attributes.hasOwnProperty(o))return"continue";var l=e.attributes[o];if(s==="option"&&o==="selected"&&l===!1)return"continue";if(l=typeof l=="boolean"||typeof l=="number"?"":l,o.startsWith("rr_")){if(s==="canvas"&&o==="rr_dataURL"){var d=document.createElement("img");d.src=l,d.onload=function(){var M=a.getContext("2d");M&&M.drawImage(d,0,0,d.width,d.height)}}else if(s==="img"&&o==="rr_dataURL"){var m=a;m.currentSrc.startsWith("data:")||(m.setAttribute("rrweb-original-src",e.attributes.src),m.src=l)}if(o==="rr_width")a.style.width=l;else if(o==="rr_height")a.style.height=l;else if(o==="rr_mediaCurrentTime")a.currentTime=e.attributes.rr_mediaCurrentTime;else if(o==="rr_mediaState")switch(l){case"played":a.play().catch(function(M){return console.warn("media playback error",M)});break;case"paused":a.pause();break}}else{var f=s==="textarea"&&o==="value",y=s==="style"&&o==="_cssText";if(y&&n&&(l=je(l,i),typeof l=="string")){for(var v=/url\(\"https:\/\/\S*(.eot|.woff2|.ttf|.woff)\S*\"\)/gm,E=void 0,h=[],T="https://replay-cors-proxy.highlightrun.workers.dev";(E=v.exec(l))!==null;)E.index===v.lastIndex&&v.lastIndex++,E.forEach(function(M,k){if(k===0){var $=M.slice(5,M.length-2);h.push({originalUrl:$,proxyUrl:$.replace($,T+"?url="+$)})}});h.forEach(function(M){l=l.replace(M.originalUrl,M.proxyUrl)})}if(f||y){for(var N=r.createTextNode(l),R=0,F=Array.from(a.childNodes);R<F.length;R++){var O=F[R];O.nodeType===a.TEXT_NODE&&a.removeChild(O)}return a.appendChild(N),"continue"}try{if(e.isSVG&&o==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",o,l);else if(o==="onload"||o==="onclick"||o.substring(0,7)==="onmouse")a.setAttribute("_"+o,l);else{if(s==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&o==="content")return a.setAttribute("csp-content",l),"continue";s==="link"&&e.attributes.rel==="preload"&&e.attributes.as==="script"||s==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(s==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",e.attributes.srcset):a.setAttribute(o,l))}}catch{}}};for(var c in e.attributes)u(c);if(e.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return a;case L.Text:return r.createTextNode(e.isStyle&&n?je(e.textContent,i):e.textContent);case L.CDATA:return r.createCDATASection(e.textContent);case L.Comment:return r.createComment(e.textContent);default:return null}}function ve(e,t){var r=t.doc,n=t.mirror,i=t.skipChild,s=i===void 0?!1:i,a=t.hackCss,u=a===void 0?!0:a,c=t.afterAppend,o=t.cache,l=zt(e,{doc:r,hackCss:u,cache:o});if(!l)return null;if(e.rootId&&console.assert(n.getNode(e.rootId)===r,"Target document should have the same root id."),e.type===L.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==L.DocumentType&&(e.childNodes[0].type===L.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=r),n.add(l,e),(e.type===L.Document||e.type===L.Element)&&!s)for(var d=0,m=e.childNodes;d<m.length;d++){var f=m[d],y=ve(f,{doc:r,mirror:n,skipChild:!1,hackCss:u,afterAppend:c,cache:o});if(!y){console.warn("Failed to rebuild",f);continue}f.isShadow&&$t(l)&&l.shadowRoot?l.shadowRoot.appendChild(y):l.appendChild(y),c&&c(y)}return l}function Xt(e,t){function r(a){t(a)}for(var n=0,i=e.getIds();n<i.length;n++){var s=i[n];e.has(s)&&r(e.getNode(s))}}function Qt(e,t){var r=t.getMeta(e);if(r?.type===L.Element){var n=e;for(var i in r.attributes)if(r.attributes.hasOwnProperty(i)&&i.startsWith("rr_")){var s=r.attributes[i];i==="rr_scrollLeft"&&(n.scrollLeft=s),i==="rr_scrollTop"&&(n.scrollTop=s)}}}function qt(e,t){var r=t.doc,n=t.onVisit,i=t.hackCss,s=i===void 0?!0:i,a=t.afterAppend,u=t.cache,c=t.mirror,o=c===void 0?new Be:c,l=ve(e,{doc:r,mirror:o,skipChild:!1,hackCss:s,afterAppend:a,cache:u});return Xt(o,function(d){n&&n(d),Qt(d,o)}),l}var w;(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"})(w||(w={}));var Jt=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var r;if(!t)return-1;var n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var r=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(i){return r.removeNodeFromMap(i)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,r){var n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)},e.prototype.replace=function(t,r){this.idNodeMap.set(t,r)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Kt(){return new Jt}function Zt(e){const t={},r=/;(?![^(]*\))/g,n=/:(.+)/,i=/\/\*.*?\*\//g;return e.replace(i,"").split(r).forEach(function(s){if(s){const a=s.split(n);a.length>1&&(t[be(a[0].trim())]=a[1].trim())}}),t}function He(e){const t=[];for(const r in e){const n=e[r];if(typeof n!="string")continue;const i=nr(r);t.push(`${i}: ${n};`)}return t.join(" ")}const er=/-([a-z])/g,tr=/^--[a-zA-Z0-9-]+$/,be=e=>tr.test(e)?e:e.replace(er,(t,r)=>r?r.toUpperCase():""),rr=/\B([A-Z])/g,nr=e=>e.replace(rr,"-$1").toLowerCase();class W{constructor(...t){this.childNodes=[],this.parentElement=null,this.parentNode=null,this.ELEMENT_NODE=A.ELEMENT_NODE,this.TEXT_NODE=A.TEXT_NODE}get firstChild(){return this.childNodes[0]||null}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){const t=this.parentNode;if(!t)return null;const r=t.childNodes,n=r.indexOf(this);return r[n+1]||null}contains(t){if(t===this)return!0;for(const r of this.childNodes)if(r.contains(t))return!0;return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function ir(e){return class Vt extends e{constructor(){super(...arguments),this.nodeType=A.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=w.Document,this.textContent=null}get documentElement(){return this.childNodes.find(r=>r.RRNodeType===w.Element&&r.tagName==="HTML")||null}get body(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===w.Element&&n.tagName==="BODY"))||null}get head(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===w.Element&&n.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(r){const n=r.RRNodeType;if((n===w.Element||n===w.DocumentType)&&this.childNodes.some(i=>i.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${n===w.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);return r.parentElement=null,r.parentNode=this,this.childNodes.push(r),r}insertBefore(r,n){const i=r.RRNodeType;if((i===w.Element||i===w.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===w.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);if(n===null)return this.appendChild(r);const s=this.childNodes.indexOf(n);if(s==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(s,0,r),r.parentElement=null,r.parentNode=this,r}removeChild(r){const n=this.childNodes.indexOf(r);if(n===-1)throw new Error("Failed to execute 'removeChild' on 'RRDocument': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(n,1),r.parentElement=null,r.parentNode=null,r}open(){this.childNodes=[]}close(){}write(r){let n;if(r==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?n="-//W3C//DTD XHTML 1.0 Transitional//EN":r==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(n="-//W3C//DTD HTML 4.0 Transitional//EN"),n){const i=this.createDocumentType("html",n,"");this.open(),this.appendChild(i)}}createDocument(r,n,i){return new Vt}createDocumentType(r,n,i){const s=new(Ye(W))(r,n,i);return s.ownerDocument=this,s}createElement(r){const n=new(ze(W))(r);return n.ownerDocument=this,n}createElementNS(r,n){return this.createElement(n)}createTextNode(r){const n=new(Xe(W))(r);return n.ownerDocument=this,n}createComment(r){const n=new(Qe(W))(r);return n.ownerDocument=this,n}createCDATASection(r){const n=new(qe(W))(r);return n.ownerDocument=this,n}toString(){return"RRDocument"}}}function Ye(e){return class extends e{constructor(t,r,n){super(),this.nodeType=A.DOCUMENT_TYPE_NODE,this.RRNodeType=w.DocumentType,this.textContent=null,this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}}}function ze(e){return class extends e{constructor(t){super(),this.nodeType=A.ELEMENT_NODE,this.RRNodeType=w.Element,this.attributes={},this.shadowRoot=null,this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.childNodes=[this.ownerDocument.createTextNode(t)]}get classList(){return new sr(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?Zt(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,i,s)=>{if(r.test(n))return;const a=be(n);i?t[a]=i:delete t[a],s==="important"&&(t[a]+=" !important"),this.attributes.style=He(t)},t.removeProperty=n=>{if(r.test(n))return"";const i=be(n),s=t[i]||"";return delete t[i],this.attributes.style=He(t),s},t}getAttribute(t){return this.attributes[t]||null}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return this.childNodes.push(t),t.parentNode=this,t.parentElement=this,t}insertBefore(t,r){if(r===null)return this.appendChild(t);const n=this.childNodes.indexOf(r);if(n==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(n,0,t),t.parentElement=this,t.parentNode=this,t}removeChild(t){const r=this.childNodes.indexOf(t);if(r===-1)throw new Error("Failed to execute 'removeChild' on 'RRElement': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(r,1),t.parentElement=null,t.parentNode=null,t}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}}function or(e){return class extends e{attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}function Xe(e){return class extends e{constructor(t){super(),this.nodeType=A.TEXT_NODE,this.nodeName="#text",this.RRNodeType=w.Text,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function Qe(e){return class extends e{constructor(t){super(),this.nodeType=A.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=w.Comment,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function qe(e){return class extends e{constructor(t){super(),this.nodeName="#cdata-section",this.nodeType=A.CDATA_SECTION_NODE,this.RRNodeType=w.CDATA,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class sr{constructor(t,r){if(this.classes=[],this.add=(...n)=>{for(const i of n){const s=String(i);this.classes.indexOf(s)>=0||this.classes.push(s)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...n)=>{this.classes=this.classes.filter(i=>n.indexOf(i)===-1),this.onChange&&this.onChange(this.classes.join(" "))},t){const n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}}var A;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(A||(A={}));const De={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};function Y(e,t,r,n){const i=e.childNodes,s=t.childNodes;n=n||t.mirror||t.ownerDocument.mirror,(i.length>0||s.length>0)&&Je(Array.from(i),s,e,r,n);let a=null,u=null;switch(t.RRNodeType){case w.Document:{u=t.scrollData;break}case w.Element:{const c=e,o=t;switch(ar(c,o,n),u=o.scrollData,a=o.inputData,o.tagName){case"AUDIO":case"VIDEO":{const l=e,d=o;d.paused!==void 0&&(d.paused?l.pause():l.play()),d.muted!==void 0&&(l.muted=d.muted),d.volume!==void 0&&(l.volume=d.volume),d.currentTime!==void 0&&(l.currentTime=d.currentTime);break}case"CANVAS":t.canvasMutations.forEach(l=>r.applyCanvas(l.event,l.mutation,e));break;case"STYLE":cr(c,t.rules);break}if(o.shadowRoot){c.shadowRoot||c.attachShadow({mode:"open"});const l=c.shadowRoot.childNodes,d=o.shadowRoot.childNodes;(l.length>0||d.length>0)&&Je(Array.from(l),d,c.shadowRoot,r,n)}break}case w.Text:case w.Comment:case w.CDATA:e.textContent!==t.data&&(e.textContent=t.data);break}if(u&&r.applyScroll(u,!0),a&&r.applyInput(a),t.nodeName==="IFRAME"){const c=e.contentDocument,o=t;if(c){const l=n.getMeta(o.contentDocument);l&&r.mirror.add(c,Object.assign({},l)),Y(c,o.contentDocument,r,n)}}}function ar(e,t,r){const n=e.attributes,i=t.attributes;for(const s in i){const a=i[s],u=r.getMeta(t);if(u&&"isSVG"in u&&u.isSVG&&De[s])e.setAttributeNS(De[s],s,a);else if(t.tagName==="CANVAS"&&s==="rr_dataURL"){const c=document.createElement("img");c.src=a,c.onload=()=>{const o=e.getContext("2d");o&&o.drawImage(c,0,0,c.width,c.height)}}else e.setAttribute(s,a)}for(const{name:s}of Array.from(n))s in i||e.removeAttribute(s);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Je(e,t,r,n,i){var s,a;let u=0,c=e.length-1,o=0,l=t.length-1,d=e[u],m=e[c],f=t[o],y=t[l],v,E;for(;u<=c&&o<=l;)if(d===void 0)d=e[++u];else if(m===void 0)m=e[--c];else if(n.mirror.getId(d)===i.getId(f))Y(d,f,n,i),d=e[++u],f=t[++o];else if(n.mirror.getId(m)===i.getId(y))Y(m,y,n,i),m=e[--c],y=t[--l];else if(n.mirror.getId(d)===i.getId(y))r.insertBefore(d,m.nextSibling),Y(d,y,n,i),d=e[++u],y=t[--l];else if(n.mirror.getId(m)===i.getId(f))r.insertBefore(m,d),Y(m,f,n,i),m=e[--c],f=t[++o];else{if(!v){v={};for(let h=u;h<=c;h++){const T=e[h];T&&n.mirror.hasNode(T)&&(v[n.mirror.getId(T)]=h)}}if(E=v[i.getId(f)],E){const h=e[E];r.insertBefore(h,d),Y(h,f,n,i),e[E]=void 0}else{const h=Ce(f,n.mirror,i);((s=n.mirror.getMeta(r))===null||s===void 0?void 0:s.type)===w.Document&&((a=n.mirror.getMeta(h))===null||a===void 0?void 0:a.type)===w.Element&&r.documentElement&&(r.removeChild(r.documentElement),e[u]=void 0,d=void 0),r.insertBefore(h,d||null),Y(h,f,n,i)}f=t[++o]}if(u>c){const h=t[l+1];let T=null;for(h&&r.childNodes.forEach(N=>{n.mirror.getId(N)===i.getId(h)&&(T=N)});o<=l;++o){const N=Ce(t[o],n.mirror,i);r.insertBefore(N,T),Y(N,t[o],n,i)}}else if(o>l)for(;u<=c;u++){const h=e[u];h&&(r.removeChild(h),n.mirror.removeNodeFromMap(h))}}function Ce(e,t,r){let n=t.getNode(r.getId(e));const i=r.getMeta(e);if(n!==null)return n;switch(e.RRNodeType){case w.Document:n=new Document;break;case w.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case w.Element:{e.tagName.toLowerCase(),i&&"isSVG"in i&&i?.isSVG?n=document.createElementNS(De.svg,e.tagName.toLowerCase()):n=document.createElement(e.tagName);break}case w.Text:n=document.createTextNode(e.data);break;case w.Comment:n=document.createComment(e.data);break;case w.CDATA:n=document.createCDATASection(e.data);break}return i&&t.add(n,Object.assign({},i)),n}function ae(e,t){const r=e[t[0]];return t.length===1?r:ae(r.cssRules[t[1]].cssRules,t.slice(2))}var j;(function(e){e[e.Insert=0]="Insert",e[e.Remove=1]="Remove",e[e.Snapshot=2]="Snapshot",e[e.SetProperty=3]="SetProperty",e[e.RemoveProperty=4]="RemoveProperty"})(j||(j={}));function Ke(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function cr(e,t){const r=e.sheet;t.forEach(n=>{if(n.type===j.Insert)try{if(Array.isArray(n.index)){const{positions:i,index:s}=Ke(n.index);ae(r.cssRules,i).insertRule(n.cssText,s)}else r.insertRule(n.cssText,n.index)}catch{}else if(n.type===j.Remove)try{if(Array.isArray(n.index)){const{positions:i,index:s}=Ke(n.index);ae(r.cssRules,i).deleteRule(s||0)}else r.deleteRule(n.index)}catch{}else n.type===j.SetProperty?ae(r.cssRules,n.index).style.setProperty(n.property,n.value,n.priority):n.type===j.RemoveProperty&&ae(r.cssRules,n.index).style.removeProperty(n.property)})}class re extends ir(W){constructor(t){super(),this._unserializedId=-1,this.mirror=Tr(),this.scrollData=null,t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new re}createDocumentType(t,r,n){const i=new lr(t,r,n);return i.ownerDocument=this,i}createElement(t){const r=t.toUpperCase();let n;switch(r){case"AUDIO":case"VIDEO":n=new ur(r);break;case"IFRAME":n=new mr(r,this.mirror);break;case"CANVAS":n=new dr(r);break;case"STYLE":n=new hr(r);break;default:n=new ce(r);break}return n.ownerDocument=this,n}createComment(t){const r=new fr(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new vr(t);return r.ownerDocument=this,r}createTextNode(t){const r=new pr(t);return r.ownerDocument=this,r}destroyTree(){this.childNodes=[],this.mirror.reset()}open(){super.open(),this._unserializedId=-1}}const lr=Ye(W);class ce extends ze(W){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class ur extends or(ce){}class dr extends ce{constructor(){super(...arguments),this.canvasMutations=[]}getContext(){return null}}class hr extends ce{constructor(){super(...arguments),this.rules=[]}}class mr extends ce{constructor(t,r){super(t),this.contentDocument=new re,this.contentDocument.mirror=r}}const pr=Xe(W),fr=Qe(W),vr=qe(W);function gr(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Ze(e,t,r,n){let i;switch(e.nodeType){case A.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?i=n.contentDocument:(i=t,i.compatMode=e.compatMode);break;case A.DOCUMENT_TYPE_NODE:const a=e;i=t.createDocumentType(a.name,a.publicId,a.systemId);break;case A.ELEMENT_NODE:const u=e,c=gr(u);i=t.createElement(c);const o=i;for(const{name:l,value:d}of Array.from(u.attributes))o.attributes[l]=d;u.scrollLeft&&(o.scrollLeft=u.scrollLeft),u.scrollTop&&(o.scrollTop=u.scrollTop);break;case A.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case A.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case A.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case A.DOCUMENT_FRAGMENT_NODE:i=n.attachShadow({mode:"open"});break;default:return null}let s=r.getMeta(e);return t instanceof re&&(s||(s=et(i,t.unserializedId),r.add(e,s)),t.mirror.add(i,Object.assign({},s))),i}function yr(e,t=Kt(),r=new re){function n(i,s){const a=Ze(i,r,t,s);a!==null&&(s?.nodeName!=="IFRAME"&&i.nodeType!==A.DOCUMENT_FRAGMENT_NODE&&(s?.appendChild(a),a.parentNode=s,a.parentElement=s),i.nodeName==="IFRAME"?n(i.contentDocument,a):(i.nodeType===A.DOCUMENT_NODE||i.nodeType===A.ELEMENT_NODE||i.nodeType===A.DOCUMENT_FRAGMENT_NODE)&&(i.nodeType===A.ELEMENT_NODE&&i.shadowRoot&&n(i.shadowRoot,a),i.childNodes.forEach(u=>n(u,a))))}return n(e,null),r}function Tr(){return new Er}class Er{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function et(e,t){switch(e.RRNodeType){case w.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case w.DocumentType:const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId};case w.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case w.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case w.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case w.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function tt(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(i){i(n)}),(e["*"]||[]).slice().map(function(i){i(r,n)})}}}var Nr=Object.freeze({__proto__:null,default:tt});function wr(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,n=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||c,scrollIntoView:r.prototype.scrollIntoView},s=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function a(h){const T=["MSIE ","Trident/","Edge/"];return new RegExp(T.join("|")).test(h)}const u=a(e.navigator.userAgent)?1:0;function c(h,T){this.scrollLeft=h,this.scrollTop=T}function o(h){return .5*(1-Math.cos(Math.PI*h))}function l(h){if(h===null||typeof h!="object"||h.behavior===void 0||h.behavior==="auto"||h.behavior==="instant")return!0;if(typeof h=="object"&&h.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+h.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(h,T){if(T==="Y")return h.clientHeight+u<h.scrollHeight;if(T==="X")return h.clientWidth+u<h.scrollWidth}function m(h,T){const N=e.getComputedStyle(h,null)["overflow"+T];return N==="auto"||N==="scroll"}function f(h){const T=d(h,"Y")&&m(h,"Y"),N=d(h,"X")&&m(h,"X");return T||N}function y(h){for(;h!==t.body&&f(h)===!1;)h=h.parentNode||h.host;return h}function v(h){const T=s();let N,R,F,O=(T-h.startTime)/n;O=O>1?1:O,N=o(O),R=h.startX+(h.x-h.startX)*N,F=h.startY+(h.y-h.startY)*N,h.method.call(h.scrollable,R,F),(R!==h.x||F!==h.y)&&e.requestAnimationFrame(v.bind(e,h))}function E(h,T,N){let R,F,O,M;const k=s();h===t.body?(R=e,F=e.scrollX||e.pageXOffset,O=e.scrollY||e.pageYOffset,M=i.scroll):(R=h,F=h.scrollLeft,O=h.scrollTop,M=c),v({scrollable:R,method:M,startTime:k,startX:F,startY:O,x:T,y:N})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){i.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}E.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])){i.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}E.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(l(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const h=arguments[0].left,T=arguments[0].top;E.call(this,this,typeof h>"u"?this.scrollLeft:~~h,typeof T>"u"?this.scrollTop:~~T)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(l(arguments[0])===!0){i.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const h=y(this),T=h.getBoundingClientRect(),N=this.getBoundingClientRect();h!==t.body?(E.call(this,h,h.scrollLeft+N.left-T.left,h.scrollTop+N.top-T.top),e.getComputedStyle(h).position!=="fixed"&&e.scrollBy({left:T.left,top:T.top,behavior:"smooth"})):e.scrollBy({left:N.left,top:N.top,behavior:"smooth"})}}var S=(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))(S||{}),I=(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))(I||{}),U=(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))(U||{}),ge=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ge||{}),xe=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e))(xe||{}),D=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e))(D||{});class br{constructor(t=[],r){this.timeOffset=0,this.raf=null,this.actions=t,this.speed=r}addAction(t){const r=this.findActionIndex(t);this.actions.splice(r,0,t)}addActions(t){this.actions=this.actions.concat(t)}replaceActions(t){this.actions.length=0,this.actions.splice(0,0,...t)}start(){this.timeOffset=0;let t=performance.now();const{actions:r}=this,n=this;function i(){const s=performance.now();for(n.timeOffset+=(s-t)*n.speed,t=s;r.length;){const a=r[0];if(n.timeOffset>=a.delay)r.shift(),a.doAction();else break}(r.length>0||n.liveMode)&&(n.raf=requestAnimationFrame(i))}this.raf=requestAnimationFrame(i)}clear(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}toggleLiveMode(t){this.liveMode=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){const i=Math.floor((r+n)/2);if(this.actions[i].delay<t.delay)r=i+1;else if(this.actions[i].delay>t.delay)n=i-1;else return i+1}return r}}function Me(e,t){if(e.type===S.IncrementalSnapshot&&e.data.source===I.MouseMove){const r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
2
+ `);n=b===-1?n+g.length:g.length-b}function s(){var g={line:r,column:n};return function(p){return p.position=new a(g),y(),p}}var a=function(){function g(p){this.start=p,this.end={line:r,column:n},this.source=t.source}return g}();a.prototype.content=e;var u=[];function c(g){var p=new Error(t.source+":"+r+":"+n+": "+g);if(p.reason=g,p.filename=t.source,p.line=r,p.column=n,p.source=e,t.silent)u.push(p);else throw p}function o(){var g=m();return{type:"stylesheet",stylesheet:{source:t.source,rules:g,parsingErrors:u}}}function l(){return f(/^{\s*/)}function d(){return f(/^}/)}function m(){var g,p=[];for(y(),v(p);e.length&&e.charAt(0)!=="}"&&(g=_()||te());)g!==!1&&(p.push(g),v(p));return p}function f(g){var p=g.exec(e);if(p){var b=p[0];return i(b),e=e.slice(b.length),p}}function y(){f(/^\s*/)}function v(g){g===void 0&&(g=[]);for(var p;p=E();)p!==!1&&g.push(p),p=E();return g}function E(){var g=s();if(!(e.charAt(0)!=="/"||e.charAt(1)!=="*")){for(var p=2;e.charAt(p)!==""&&(e.charAt(p)!=="*"||e.charAt(p+1)!=="/");)++p;if(p+=2,e.charAt(p-1)==="")return c("End of comment missing");var b=e.slice(2,p-2);return n+=2,i(b),e=e.slice(p),n+=2,g({type:"comment",comment:b})}}function h(){var g=f(/^([^{]+)/);if(g)return z(g[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(p){return p.replace(/,/g,"\u200C")}).split(/\s*(?![^(]*\)),\s*/).map(function(p){return p.replace(/\u200C/g,",")})}function T(){var g=s(),p=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(p){var b=z(p[0]);if(!f(/^:\s*/))return c("property missing ':'");var C=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),P=g({type:"declaration",property:b.replace(Ve,""),value:C?z(C[0]).replace(Ve,""):""});return f(/^[;\s]*/),P}}function N(){var g=[];if(!l())return c("missing '{'");v(g);for(var p;p=T();)p!==!1&&(g.push(p),v(g)),p=T();return d()?g:c("missing '}'")}function R(){for(var g,p=[],b=s();g=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)p.push(g[1]),f(/^,\s*/);if(p.length)return b({type:"keyframe",values:p,declarations:N()})}function F(){var g=s(),p=f(/^@([-\w]+)?keyframes\s*/);if(p){var b=p[1];if(p=f(/^([-\w]+)\s*/),!p)return c("@keyframes missing name");var C=p[1];if(!l())return c("@keyframes missing '{'");for(var P,Z=v();P=R();)Z.push(P),Z=Z.concat(v());return d()?g({type:"keyframes",name:C,vendor:b,keyframes:Z}):c("@keyframes missing '}'")}}function O(){var g=s(),p=f(/^@supports *([^{]+)/);if(p){var b=z(p[1]);if(!l())return c("@supports missing '{'");var C=v().concat(m());return d()?g({type:"supports",supports:b,rules:C}):c("@supports missing '}'")}}function M(){var g=s(),p=f(/^@host\s*/);if(p){if(!l())return c("@host missing '{'");var b=v().concat(m());return d()?g({type:"host",rules:b}):c("@host missing '}'")}}function k(){var g=s(),p=f(/^@media *([^{]+)/);if(p){var b=z(p[1]);if(!l())return c("@media missing '{'");var C=v().concat(m());return d()?g({type:"media",media:b,rules:C}):c("@media missing '}'")}}function $(){var g=s(),p=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(p)return g({type:"custom-media",name:z(p[1]),media:z(p[2])})}function me(){var g=s(),p=f(/^@page */);if(p){var b=h()||[];if(!l())return c("@page missing '{'");for(var C=v(),P;P=T();)C.push(P),C=C.concat(v());return d()?g({type:"page",selectors:b,declarations:C}):c("@page missing '}'")}}function pe(){var g=s(),p=f(/^@([-\w]+)?document *([^{]+)/);if(p){var b=z(p[1]),C=z(p[2]);if(!l())return c("@document missing '{'");var P=v().concat(m());return d()?g({type:"document",document:C,vendor:b,rules:P}):c("@document missing '}'")}}function J(){var g=s(),p=f(/^@font-face\s*/);if(p){if(!l())return c("@font-face missing '{'");for(var b=v(),C;C=T();)b.push(C),b=b.concat(v());return d()?g({type:"font-face",declarations:b}):c("@font-face missing '}'")}}var H=B("import"),K=B("charset"),se=B("namespace");function B(g){var p=new RegExp("^@"+g+"\\s*([^;]+);");return function(){var b=s(),C=f(p);if(C){var P={type:g};return P[g]=C[1].trim(),b(P)}}}function _(){if(e[0]==="@")return F()||k()||$()||O()||H()||K()||se()||pe()||me()||M()||J()}function te(){var g=s(),p=h();return p?(v(),g({type:"rule",selectors:p,declarations:N()})):c("selector missing")}return we(o())}function z(e){return e?e.replace(/^\s+|\s+$/g,""):""}function we(e,t){for(var r=e&&typeof e.type=="string",n=r?e:t,i=0,s=Object.keys(e);i<s.length;i++){var a=s[i],u=e[a];Array.isArray(u)?u.forEach(function(c){we(c,n)}):u&&typeof u=="object"&&we(u,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var $e={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function Gt(e){var t=$e[e.tagName]?$e[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Ht(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var We=/([^\\]):hover/,Yt=new RegExp(We.source,"g");function je(e,t){var r;if(!(!((r=window?.HIG_CONFIGURATION)===null||r===void 0)&&r.enableOnHoverClass))return e;var n=t?.stylesWithHoverClass.get(e);if(n)return n;var i=jt(e,{silent:!0});if(!i.stylesheet)return e;var s=[];if(i.stylesheet.rules.forEach(function(c){"selectors"in c&&(c.selectors||[]).forEach(function(o){We.test(o)&&s.push(o)})}),s.length===0)return e;var a=new RegExp(s.filter(function(c,o){return s.indexOf(c)===o}).sort(function(c,o){return o.length-c.length}).map(function(c){return Ht(c)}).join("|"),"g"),u=e.replace(a,function(c){var o=c.replace(Yt,"$1.\\:hover");return c+", "+o});return t?.stylesWithHoverClass.set(e,u),u}function Ge(){var e=new Map;return{stylesWithHoverClass:e}}function zt(e,t){var r=t.doc,n=t.hackCss,i=t.cache;switch(e.type){case L.Document:return r.implementation.createDocument(null,"",null);case L.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case L.Element:var s=Gt(e),a;e.isSVG?a=r.createElementNS("http://www.w3.org/2000/svg",s):a=r.createElement(s);var u=function(o){if(!e.attributes.hasOwnProperty(o))return"continue";var l=e.attributes[o];if(s==="option"&&o==="selected"&&l===!1)return"continue";if(l=typeof l=="boolean"||typeof l=="number"?"":l,o.startsWith("rr_")){if(s==="canvas"&&o==="rr_dataURL"){var d=document.createElement("img");d.src=l,d.onload=function(){var M=a.getContext("2d");M&&M.drawImage(d,0,0,d.width,d.height)}}else if(s==="img"&&o==="rr_dataURL"){var m=a;m.currentSrc.startsWith("data:")||(m.setAttribute("rrweb-original-src",e.attributes.src),m.src=l)}if(o==="rr_width")a.style.width=l;else if(o==="rr_height")a.style.height=l;else if(o==="rr_mediaCurrentTime")a.currentTime=e.attributes.rr_mediaCurrentTime;else if(o==="rr_mediaState")switch(l){case"played":a.play().catch(function(M){return console.warn("media playback error",M)});break;case"paused":a.pause();break}}else{var f=s==="textarea"&&o==="value",y=s==="style"&&o==="_cssText";if(y&&n&&(l=je(l,i),typeof l=="string")){for(var v=/url\(\"https:\/\/\S*(.eot|.woff2|.ttf|.woff)\S*\"\)/gm,E=void 0,h=[],T="https://replay-cors-proxy.highlightrun.workers.dev";(E=v.exec(l))!==null;)E.index===v.lastIndex&&v.lastIndex++,E.forEach(function(M,k){if(k===0){var $=M.slice(5,M.length-2);h.push({originalUrl:$,proxyUrl:$.replace($,T+"?url="+$)})}});h.forEach(function(M){l=l.replace(M.originalUrl,M.proxyUrl)})}if(f||y){for(var N=r.createTextNode(l),R=0,F=Array.from(a.childNodes);R<F.length;R++){var O=F[R];O.nodeType===a.TEXT_NODE&&a.removeChild(O)}return a.appendChild(N),"continue"}try{if(e.isSVG&&o==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",o,l);else if(o==="onload"||o==="onclick"||o.substring(0,7)==="onmouse")a.setAttribute("_"+o,l);else{if(s==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&o==="content")return a.setAttribute("csp-content",l),"continue";s==="link"&&e.attributes.rel==="preload"&&e.attributes.as==="script"||s==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(s==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",e.attributes.srcset):a.setAttribute(o,l))}}catch{}}};for(var c in e.attributes)u(c);if(e.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return a;case L.Text:return r.createTextNode(e.isStyle&&n?je(e.textContent,i):e.textContent);case L.CDATA:return r.createCDATASection(e.textContent);case L.Comment:return r.createComment(e.textContent);default:return null}}function ve(e,t){var r=t.doc,n=t.mirror,i=t.skipChild,s=i===void 0?!1:i,a=t.hackCss,u=a===void 0?!0:a,c=t.afterAppend,o=t.cache,l=zt(e,{doc:r,hackCss:u,cache:o});if(!l)return null;if(e.rootId&&console.assert(n.getNode(e.rootId)===r,"Target document should have the same root id."),e.type===L.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==L.DocumentType&&(e.childNodes[0].type===L.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=r),n.add(l,e),(e.type===L.Document||e.type===L.Element)&&!s)for(var d=0,m=e.childNodes;d<m.length;d++){var f=m[d],y=ve(f,{doc:r,mirror:n,skipChild:!1,hackCss:u,afterAppend:c,cache:o});if(!y){console.warn("Failed to rebuild",f);continue}f.isShadow&&$t(l)&&l.shadowRoot?l.shadowRoot.appendChild(y):l.appendChild(y),c&&c(y)}return l}function Xt(e,t){function r(a){t(a)}for(var n=0,i=e.getIds();n<i.length;n++){var s=i[n];e.has(s)&&r(e.getNode(s))}}function Qt(e,t){var r=t.getMeta(e);if(r?.type===L.Element){var n=e;for(var i in r.attributes)if(r.attributes.hasOwnProperty(i)&&i.startsWith("rr_")){var s=r.attributes[i];i==="rr_scrollLeft"&&(n.scrollLeft=s),i==="rr_scrollTop"&&(n.scrollTop=s)}}}function qt(e,t){var r=t.doc,n=t.onVisit,i=t.hackCss,s=i===void 0?!0:i,a=t.afterAppend,u=t.cache,c=t.mirror,o=c===void 0?new Be:c,l=ve(e,{doc:r,mirror:o,skipChild:!1,hackCss:s,afterAppend:a,cache:u});return Xt(o,function(d){n&&n(d),Qt(d,o)}),l}var w;(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"})(w||(w={}));var Jt=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var r;if(!t)return-1;var n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var r=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(i){return r.removeNodeFromMap(i)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,r){var n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)},e.prototype.replace=function(t,r){this.idNodeMap.set(t,r)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Kt(){return new Jt}function Zt(e){const t={},r=/;(?![^(]*\))/g,n=/:(.+)/,i=/\/\*.*?\*\//g;return e.replace(i,"").split(r).forEach(function(s){if(s){const a=s.split(n);a.length>1&&(t[be(a[0].trim())]=a[1].trim())}}),t}function He(e){const t=[];for(const r in e){const n=e[r];if(typeof n!="string")continue;const i=nr(r);t.push(`${i}: ${n};`)}return t.join(" ")}const er=/-([a-z])/g,tr=/^--[a-zA-Z0-9-]+$/,be=e=>tr.test(e)?e:e.replace(er,(t,r)=>r?r.toUpperCase():""),rr=/\B([A-Z])/g,nr=e=>e.replace(rr,"-$1").toLowerCase();class W{constructor(...t){this.childNodes=[],this.parentElement=null,this.parentNode=null,this.ELEMENT_NODE=A.ELEMENT_NODE,this.TEXT_NODE=A.TEXT_NODE}get firstChild(){return this.childNodes[0]||null}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){const t=this.parentNode;if(!t)return null;const r=t.childNodes,n=r.indexOf(this);return r[n+1]||null}contains(t){if(t===this)return!0;for(const r of this.childNodes)if(r.contains(t))return!0;return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function ir(e){return class Vt extends e{constructor(){super(...arguments),this.nodeType=A.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=w.Document,this.textContent=null}get documentElement(){return this.childNodes.find(r=>r.RRNodeType===w.Element&&r.tagName==="HTML")||null}get body(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===w.Element&&n.tagName==="BODY"))||null}get head(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===w.Element&&n.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(r){const n=r.RRNodeType;if((n===w.Element||n===w.DocumentType)&&this.childNodes.some(i=>i.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${n===w.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);return r.parentElement=null,r.parentNode=this,this.childNodes.push(r),r}insertBefore(r,n){const i=r.RRNodeType;if((i===w.Element||i===w.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===w.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);if(n===null)return this.appendChild(r);const s=this.childNodes.indexOf(n);if(s==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(s,0,r),r.parentElement=null,r.parentNode=this,r}removeChild(r){const n=this.childNodes.indexOf(r);if(n===-1)throw new Error("Failed to execute 'removeChild' on 'RRDocument': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(n,1),r.parentElement=null,r.parentNode=null,r}open(){this.childNodes=[]}close(){}write(r){let n;if(r==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?n="-//W3C//DTD XHTML 1.0 Transitional//EN":r==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(n="-//W3C//DTD HTML 4.0 Transitional//EN"),n){const i=this.createDocumentType("html",n,"");this.open(),this.appendChild(i)}}createDocument(r,n,i){return new Vt}createDocumentType(r,n,i){const s=new(Ye(W))(r,n,i);return s.ownerDocument=this,s}createElement(r){const n=new(ze(W))(r);return n.ownerDocument=this,n}createElementNS(r,n){return this.createElement(n)}createTextNode(r){const n=new(Xe(W))(r);return n.ownerDocument=this,n}createComment(r){const n=new(Qe(W))(r);return n.ownerDocument=this,n}createCDATASection(r){const n=new(qe(W))(r);return n.ownerDocument=this,n}toString(){return"RRDocument"}}}function Ye(e){return class extends e{constructor(t,r,n){super(),this.nodeType=A.DOCUMENT_TYPE_NODE,this.RRNodeType=w.DocumentType,this.textContent=null,this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}}}function ze(e){return class extends e{constructor(t){super(),this.nodeType=A.ELEMENT_NODE,this.RRNodeType=w.Element,this.attributes={},this.shadowRoot=null,this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.childNodes=[this.ownerDocument.createTextNode(t)]}get classList(){return new sr(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?Zt(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,i,s)=>{if(r.test(n))return;const a=be(n);i?t[a]=i:delete t[a],s==="important"&&(t[a]+=" !important"),this.attributes.style=He(t)},t.removeProperty=n=>{if(r.test(n))return"";const i=be(n),s=t[i]||"";return delete t[i],this.attributes.style=He(t),s},t}getAttribute(t){return this.attributes[t]||null}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return this.childNodes.push(t),t.parentNode=this,t.parentElement=this,t}insertBefore(t,r){if(r===null)return this.appendChild(t);const n=this.childNodes.indexOf(r);if(n==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(n,0,t),t.parentElement=this,t.parentNode=this,t}removeChild(t){const r=this.childNodes.indexOf(t);if(r===-1)throw new Error("Failed to execute 'removeChild' on 'RRElement': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(r,1),t.parentElement=null,t.parentNode=null,t}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}}function or(e){return class extends e{attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}function Xe(e){return class extends e{constructor(t){super(),this.nodeType=A.TEXT_NODE,this.nodeName="#text",this.RRNodeType=w.Text,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function Qe(e){return class extends e{constructor(t){super(),this.nodeType=A.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=w.Comment,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function qe(e){return class extends e{constructor(t){super(),this.nodeName="#cdata-section",this.nodeType=A.CDATA_SECTION_NODE,this.RRNodeType=w.CDATA,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class sr{constructor(t,r){if(this.classes=[],this.add=(...n)=>{for(const i of n){const s=String(i);this.classes.indexOf(s)>=0||this.classes.push(s)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...n)=>{this.classes=this.classes.filter(i=>n.indexOf(i)===-1),this.onChange&&this.onChange(this.classes.join(" "))},t){const n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}}var A;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(A||(A={}));const De={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};function Y(e,t,r,n){const i=e.childNodes,s=t.childNodes;n=n||t.mirror||t.ownerDocument.mirror,(i.length>0||s.length>0)&&Je(Array.from(i),s,e,r,n);let a=null,u=null;switch(t.RRNodeType){case w.Document:{u=t.scrollData;break}case w.Element:{const c=e,o=t;switch(ar(c,o,n),u=o.scrollData,a=o.inputData,o.tagName){case"AUDIO":case"VIDEO":{const l=e,d=o;d.paused!==void 0&&(d.paused?l.pause():l.play()),d.muted!==void 0&&(l.muted=d.muted),d.volume!==void 0&&(l.volume=d.volume),d.currentTime!==void 0&&(l.currentTime=d.currentTime);break}case"CANVAS":t.canvasMutations.forEach(l=>r.applyCanvas(l.event,l.mutation,e));break;case"STYLE":cr(c,t.rules);break}if(o.shadowRoot){c.shadowRoot||c.attachShadow({mode:"open"});const l=c.shadowRoot.childNodes,d=o.shadowRoot.childNodes;(l.length>0||d.length>0)&&Je(Array.from(l),d,c.shadowRoot,r,n)}break}case w.Text:case w.Comment:case w.CDATA:e.textContent!==t.data&&(e.textContent=t.data);break}if(u&&r.applyScroll(u,!0),a&&r.applyInput(a),t.nodeName==="IFRAME"){const c=e.contentDocument,o=t;if(c){const l=n.getMeta(o.contentDocument);l&&r.mirror.add(c,Object.assign({},l)),Y(c,o.contentDocument,r,n)}}}function ar(e,t,r){const n=e.attributes,i=t.attributes;for(const s in i){const a=i[s],u=r.getMeta(t);if(u&&"isSVG"in u&&u.isSVG&&De[s])e.setAttributeNS(De[s],s,a);else if(t.tagName==="CANVAS"&&s==="rr_dataURL"){const c=document.createElement("img");c.src=a,c.onload=()=>{const o=e.getContext("2d");o&&o.drawImage(c,0,0,c.width,c.height)}}else e.setAttribute(s,a)}for(const{name:s}of Array.from(n))s in i||e.removeAttribute(s);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Je(e,t,r,n,i){var s,a;let u=0,c=e.length-1,o=0,l=t.length-1,d=e[u],m=e[c],f=t[o],y=t[l],v,E;for(;u<=c&&o<=l;)if(d===void 0)d=e[++u];else if(m===void 0)m=e[--c];else if(n.mirror.getId(d)===i.getId(f))Y(d,f,n,i),d=e[++u],f=t[++o];else if(n.mirror.getId(m)===i.getId(y))Y(m,y,n,i),m=e[--c],y=t[--l];else if(n.mirror.getId(d)===i.getId(y))r.insertBefore(d,m.nextSibling),Y(d,y,n,i),d=e[++u],y=t[--l];else if(n.mirror.getId(m)===i.getId(f))r.insertBefore(m,d),Y(m,f,n,i),m=e[--c],f=t[++o];else{if(!v){v={};for(let h=u;h<=c;h++){const T=e[h];T&&n.mirror.hasNode(T)&&(v[n.mirror.getId(T)]=h)}}if(E=v[i.getId(f)],E){const h=e[E];r.insertBefore(h,d),Y(h,f,n,i),e[E]=void 0}else{const h=Ce(f,n.mirror,i);((s=n.mirror.getMeta(r))===null||s===void 0?void 0:s.type)===w.Document&&((a=n.mirror.getMeta(h))===null||a===void 0?void 0:a.type)===w.Element&&r.documentElement&&(r.removeChild(r.documentElement),e[u]=void 0,d=void 0),r.insertBefore(h,d||null),Y(h,f,n,i)}f=t[++o]}if(u>c){const h=t[l+1];let T=null;for(h&&r.childNodes.forEach(N=>{n.mirror.getId(N)===i.getId(h)&&(T=N)});o<=l;++o){const N=Ce(t[o],n.mirror,i);r.insertBefore(N,T),Y(N,t[o],n,i)}}else if(o>l)for(;u<=c;u++){const h=e[u];h&&(r.removeChild(h),n.mirror.removeNodeFromMap(h))}}function Ce(e,t,r){let n=t.getNode(r.getId(e));const i=r.getMeta(e);if(n!==null)return n;switch(e.RRNodeType){case w.Document:n=new Document;break;case w.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case w.Element:{e.tagName.toLowerCase(),i&&"isSVG"in i&&i?.isSVG?n=document.createElementNS(De.svg,e.tagName.toLowerCase()):n=document.createElement(e.tagName);break}case w.Text:n=document.createTextNode(e.data);break;case w.Comment:n=document.createComment(e.data);break;case w.CDATA:n=document.createCDATASection(e.data);break}return i&&t.add(n,Object.assign({},i)),n}function ae(e,t){const r=e[t[0]];return t.length===1?r:ae(r.cssRules[t[1]].cssRules,t.slice(2))}var j;(function(e){e[e.Insert=0]="Insert",e[e.Remove=1]="Remove",e[e.Snapshot=2]="Snapshot",e[e.SetProperty=3]="SetProperty",e[e.RemoveProperty=4]="RemoveProperty"})(j||(j={}));function Ke(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function cr(e,t){const r=e.sheet;t.forEach(n=>{if(n.type===j.Insert)try{if(Array.isArray(n.index)){const{positions:i,index:s}=Ke(n.index);ae(r.cssRules,i).insertRule(n.cssText,s)}else r.insertRule(n.cssText,n.index)}catch{}else if(n.type===j.Remove)try{if(Array.isArray(n.index)){const{positions:i,index:s}=Ke(n.index);ae(r.cssRules,i).deleteRule(s||0)}else r.deleteRule(n.index)}catch{}else n.type===j.SetProperty?ae(r.cssRules,n.index).style.setProperty(n.property,n.value,n.priority):n.type===j.RemoveProperty&&ae(r.cssRules,n.index).style.removeProperty(n.property)})}class re extends ir(W){constructor(t){super(),this._unserializedId=-1,this.mirror=Tr(),this.scrollData=null,t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new re}createDocumentType(t,r,n){const i=new lr(t,r,n);return i.ownerDocument=this,i}createElement(t){const r=t.toUpperCase();let n;switch(r){case"AUDIO":case"VIDEO":n=new ur(r);break;case"IFRAME":n=new mr(r,this.mirror);break;case"CANVAS":n=new dr(r);break;case"STYLE":n=new hr(r);break;default:n=new ce(r);break}return n.ownerDocument=this,n}createComment(t){const r=new fr(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new vr(t);return r.ownerDocument=this,r}createTextNode(t){const r=new pr(t);return r.ownerDocument=this,r}destroyTree(){this.childNodes=[],this.mirror.reset()}open(){super.open(),this._unserializedId=-1}}const lr=Ye(W);class ce extends ze(W){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class ur extends or(ce){}class dr extends ce{constructor(){super(...arguments),this.canvasMutations=[]}getContext(){return null}}class hr extends ce{constructor(){super(...arguments),this.rules=[]}}class mr extends ce{constructor(t,r){super(t),this.contentDocument=new re,this.contentDocument.mirror=r}}const pr=Xe(W),fr=Qe(W),vr=qe(W);function gr(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Ze(e,t,r,n){let i;switch(e.nodeType){case A.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?i=n.contentDocument:(i=t,i.compatMode=e.compatMode);break;case A.DOCUMENT_TYPE_NODE:const a=e;i=t.createDocumentType(a.name,a.publicId,a.systemId);break;case A.ELEMENT_NODE:const u=e,c=gr(u);i=t.createElement(c);const o=i;for(const{name:l,value:d}of Array.from(u.attributes))o.attributes[l]=d;u.scrollLeft&&(o.scrollLeft=u.scrollLeft),u.scrollTop&&(o.scrollTop=u.scrollTop);break;case A.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case A.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case A.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case A.DOCUMENT_FRAGMENT_NODE:i=n.attachShadow({mode:"open"});break;default:return null}let s=r.getMeta(e);return t instanceof re&&(s||(s=et(i,t.unserializedId),r.add(e,s)),t.mirror.add(i,Object.assign({},s))),i}function yr(e,t=Kt(),r=new re){function n(i,s){const a=Ze(i,r,t,s);a!==null&&(s?.nodeName!=="IFRAME"&&i.nodeType!==A.DOCUMENT_FRAGMENT_NODE&&(s?.appendChild(a),a.parentNode=s,a.parentElement=s),i.nodeName==="IFRAME"?n(i.contentDocument,a):(i.nodeType===A.DOCUMENT_NODE||i.nodeType===A.ELEMENT_NODE||i.nodeType===A.DOCUMENT_FRAGMENT_NODE)&&(i.nodeType===A.ELEMENT_NODE&&i.shadowRoot&&n(i.shadowRoot,a),i.childNodes.forEach(u=>n(u,a))))}return n(e,null),r}function Tr(){return new Er}class Er{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function et(e,t){switch(e.RRNodeType){case w.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case w.DocumentType:const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId};case w.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case w.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case w.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case w.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function tt(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(i){i(n)}),(e["*"]||[]).slice().map(function(i){i(r,n)})}}}var Nr=Object.freeze({__proto__:null,default:tt});function wr(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,n=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||c,scrollIntoView:r.prototype.scrollIntoView},s=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function a(h){const T=["MSIE ","Trident/","Edge/"];return new RegExp(T.join("|")).test(h)}const u=a(e.navigator.userAgent)?1:0;function c(h,T){this.scrollLeft=h,this.scrollTop=T}function o(h){return .5*(1-Math.cos(Math.PI*h))}function l(h){if(h===null||typeof h!="object"||h.behavior===void 0||h.behavior==="auto"||h.behavior==="instant")return!0;if(typeof h=="object"&&h.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+h.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(h,T){if(T==="Y")return h.clientHeight+u<h.scrollHeight;if(T==="X")return h.clientWidth+u<h.scrollWidth}function m(h,T){const N=e.getComputedStyle(h,null)["overflow"+T];return N==="auto"||N==="scroll"}function f(h){const T=d(h,"Y")&&m(h,"Y"),N=d(h,"X")&&m(h,"X");return T||N}function y(h){for(;h!==t.body&&f(h)===!1;)h=h.parentNode||h.host;return h}function v(h){const T=s();let N,R,F,O=(T-h.startTime)/n;O=O>1?1:O,N=o(O),R=h.startX+(h.x-h.startX)*N,F=h.startY+(h.y-h.startY)*N,h.method.call(h.scrollable,R,F),(R!==h.x||F!==h.y)&&e.requestAnimationFrame(v.bind(e,h))}function E(h,T,N){let R,F,O,M;const k=s();h===t.body?(R=e,F=e.scrollX||e.pageXOffset,O=e.scrollY||e.pageYOffset,M=i.scroll):(R=h,F=h.scrollLeft,O=h.scrollTop,M=c),v({scrollable:R,method:M,startTime:k,startX:F,startY:O,x:T,y:N})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){i.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}E.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])){i.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}E.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(l(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const h=arguments[0].left,T=arguments[0].top;E.call(this,this,typeof h>"u"?this.scrollLeft:~~h,typeof T>"u"?this.scrollTop:~~T)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(l(arguments[0])===!0){i.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const h=y(this),T=h.getBoundingClientRect(),N=this.getBoundingClientRect();h!==t.body?(E.call(this,h,h.scrollLeft+N.left-T.left,h.scrollTop+N.top-T.top),e.getComputedStyle(h).position!=="fixed"&&e.scrollBy({left:T.left,top:T.top,behavior:"smooth"})):e.scrollBy({left:N.left,top:N.top,behavior:"smooth"})}}var S=(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))(S||{}),I=(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))(I||{}),U=(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))(U||{}),ge=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ge||{}),xe=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e))(xe||{}),D=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e))(D||{});class br{constructor(t=[],r){this.timeOffset=0,this.raf=null,this.actions=t,this.speed=r}addAction(t){const r=this.findActionIndex(t);this.actions.splice(r,0,t)}addActions(t){this.actions=this.actions.concat(t)}replaceActions(t){this.actions.length=0,this.actions.splice(0,0,...t)}start(){this.timeOffset=0;let t=performance.now();const{actions:r}=this,n=this;function i(){const s=performance.now();for(n.timeOffset+=(s-t)*n.speed,t=s;r.length;){const a=r[0];if(n.timeOffset>=a.delay)r.shift(),a.doAction();else break}(r.length>0||n.liveMode)&&(n.raf=requestAnimationFrame(i))}this.raf=requestAnimationFrame(i)}clear(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}toggleLiveMode(t){this.liveMode=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){const i=Math.floor((r+n)/2);if(this.actions[i].delay<t.delay)r=i+1;else if(this.actions[i].delay>t.delay)n=i-1;else return i+1}return r}}function Me(e,t){if(e.type===S.IncrementalSnapshot&&e.data.source===I.MouseMove){const r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any